2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for libratbox devel.
5 # $Id: configure.ac 25689 2008-07-10 17:13:27Z androsyn $
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be more Bourne compatible
16 DUALCASE
=1; export DUALCASE
# for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in
26 *posix
*) set -o posix
;;
35 # Avoid depending upon Character Ranges.
36 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits
='0123456789'
40 as_cr_alnum
=$as_cr_Letters$as_cr_digits
42 # The user is always right.
43 if test "${PATH_SEPARATOR+set}" != set; then
44 echo "#! /bin/sh" >conf$$.sh
45 echo "exit 0" >>conf$$.sh
47 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
55 # Support unset when possible.
56 if ( (MAIL
=60; unset MAIL
) || exit) >/dev
/null
2>&1; then
64 # We need space, tab and new line, in precisely that order. Quoting is
65 # there to prevent editors from complaining about space-tab.
66 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
67 # splitting by setting IFS to empty value.)
72 # Find who we are. Look in the path if we contain no directory separator.
74 *[\\/]* ) as_myself
=$0 ;;
75 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
79 test -z "$as_dir" && as_dir
=.
80 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
86 # We did not find ourselves, most probably we were run as `sh COMMAND'
87 # in which case we are not to be found in the path.
88 if test "x$as_myself" = x
; then
91 if test ! -f "$as_myself"; then
92 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
96 # Work around bugs in pre-3.0 UWIN ksh.
97 for as_var
in ENV MAIL MAILPATH
98 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
106 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
110 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111 eval $as_var=C
; export $as_var
113 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
117 # Required to use basename.
118 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
119 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
125 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
132 # Name of the executable.
133 as_me
=`$as_basename -- "$0" ||
134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135 X"$0" : 'X\(//\)$' \| \
136 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
138 sed '/^.*\/\([^/][^/]*\)\/*$/{
156 if test "x$CONFIG_SHELL" = x
; then
157 if (eval ":") 2>/dev
/null
; then
163 if test $as_have_required = yes && (eval ":
173 as_func_ret_success () {
176 as_func_ret_failure () {
181 if as_func_success; then
185 echo as_func_success failed.
188 if as_func_failure; then
190 echo as_func_failure succeeded.
193 if as_func_ret_success; then
197 echo as_func_ret_success failed.
200 if as_func_ret_failure; then
202 echo as_func_ret_failure succeeded.
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
209 echo positional parameters were not saved.
212 test \$exitcode = 0) || { (exit 1); exit 1; }
217 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219 ") 2> /dev
/null
; then
223 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
224 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
227 test -z "$as_dir" && as_dir
=.
230 for as_base
in sh bash ksh sh5
; do
231 as_candidate_shells
="$as_candidate_shells $as_dir/$as_base"
238 for as_shell
in $as_candidate_shells $SHELL; do
239 # Try only shells that exist, to save several forks.
240 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241 { ("$as_shell") 2> /dev
/null
<<\_ASEOF
242 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
245 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246 # is contrary to our usage. Disable this feature.
247 alias -g '${1+"$@"}'='"$@"'
250 case `(set -o) 2>/dev/null` in
251 *posix
*) set -o posix
;;
260 CONFIG_SHELL
=$as_shell
262 if { "$as_shell" 2> /dev
/null
<<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
266 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267 # is contrary to our usage. Disable this feature.
268 alias -g '${1+"$@"}'='"$@"'
271 case `(set -o) 2>/dev/null` in
272 *posix
*) set -o posix
;;
288 as_func_ret_success
() {
291 as_func_ret_failure
() {
296 if as_func_success
; then
300 echo as_func_success failed.
303 if as_func_failure
; then
305 echo as_func_failure succeeded.
308 if as_func_ret_success
; then
312 echo as_func_ret_success failed.
315 if as_func_ret_failure
; then
317 echo as_func_ret_failure succeeded.
320 if ( set x
; as_func_ret_success y
&& test x
= "$1" ); then
324 echo positional parameters were not saved.
327 test $exitcode = 0) || { (exit 1); exit 1; }
332 test "x$as_lineno_1" != "x$as_lineno_2" &&
333 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
344 if test "x$CONFIG_SHELL" != x
; then
345 for as_var
in BASH_ENV ENV
346 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
349 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
353 if test $as_have_required = no
; then
354 echo This
script requires a shell
more modern than all the
355 echo shells that I found on your system. Please
install a
356 echo modern shell
, or manually run the
script under such a
357 echo shell
if you
do have one.
358 { (exit 1); exit 1; }
368 (eval "as_func_return () {
377 as_func_ret_success () {
380 as_func_ret_failure () {
385 if as_func_success; then
389 echo as_func_success failed.
392 if as_func_failure; then
394 echo as_func_failure succeeded.
397 if as_func_ret_success; then
401 echo as_func_ret_success failed.
404 if as_func_ret_failure; then
406 echo as_func_ret_failure succeeded.
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
413 echo positional parameters were not saved.
416 test \$exitcode = 0") || {
417 echo No shell found that supports shell functions.
418 echo Please tell autoconf@gnu.org about your system
,
419 echo including any error possibly output before this
427 test "x$as_lineno_1" != "x$as_lineno_2" &&
428 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
430 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431 # uniformly replaced by the line number. The first 'sed' inserts a
432 # line-number line after each line using $LINENO; the second 'sed'
433 # does the real work. The second script uses 'N' to pair each
434 # line-number line with the line containing $LINENO, and appends
435 # trailing '-' during substitution so that $LINENO is not a special
437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438 # scripts with optimization help from Paolo Bonzini. Blame Lee
439 # E. McMahon (1931-1989) for sed's syntax. :-)
451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
455 chmod +x
"$as_me.lineno" ||
456 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457 { (exit 1); exit 1; }; }
459 # Don't try to exec as it changes $[0], causing all sort of problems
460 # (the dirname of $[0] is not the place where we might find the
461 # original and so on. Autoconf is especially sensitive to this).
463 # Exit status is that of the last command.
468 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
474 ECHO_C
= ECHO_N
= ECHO_T
=
478 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
485 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
486 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
492 rm -f conf$$ conf$$.exe conf$$.
file
493 if test -d conf$$.dir
; then
494 rm -f conf$$.dir
/conf$$.
file
500 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
502 # ... but there are two gotchas:
503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505 # In both cases, we have to default to `cp -p'.
506 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe
||
508 elif ln conf$$.
file conf$$
2>/dev
/null
; then
513 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
514 rmdir conf$$.dir
2>/dev
/null
516 if mkdir -p .
2>/dev
/null
; then
519 test -d .
/-p && rmdir .
/-p
523 if test -x / >/dev
/null
2>&1; then
526 if ls -dL / >/dev
/null
2>&1; then
533 if test -d "$1"; then
539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540 ???[sx]*):;;*)false;;esac;fi
544 as_executable_p
=$as_test_x
546 # Sed expression to map a string onto a valid CPP name.
547 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
549 # Sed expression to map a string onto a valid variable name.
550 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555 # Check that we are running under the correct shell.
556 SHELL
=${CONFIG_SHELL-/bin/sh}
560 # Remove one level of quotation (which was required for Make).
561 ECHO
=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
566 if test "X$1" = X
--no-reexec; then
567 # Discard the --no-reexec flag, and continue.
569 elif test "X$1" = X
--fallback-echo; then
570 # Avoid inline document here, it may be left over
572 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
573 # Yippee, $echo works!
576 # Restart under the correct shell.
577 exec $SHELL "$0" --no-reexec ${1+"$@"}
580 if test "X$1" = X
--fallback-echo; then
581 # used as fallback echo
589 # The HP-UX ksh and POSIX shell print the target directory to stdout
591 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
593 if test -z "$ECHO"; then
594 if test "X${echo_test_string+set}" != Xset
; then
595 # find a string as large as possible, as long as the shell can cope with it
596 for cmd
in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
597 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
598 if (echo_test_string
=`eval $cmd`) 2>/dev
/null
&&
599 echo_test_string
=`eval $cmd` &&
600 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev
/null
607 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
608 echo_testing_string
=`($echo "$echo_test_string") 2>/dev/null` &&
609 test "X$echo_testing_string" = "X$echo_test_string"; then
612 # The Solaris, AIX, and Digital Unix default echo programs unquote
613 # backslashes. This makes it impossible to quote backslashes using
614 # echo "$something" | sed 's/\\/\\\\/g'
616 # So, first we look for a working echo in the user's PATH.
618 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
619 for dir
in $PATH /usr
/ucb
; do
621 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
622 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
623 echo_testing_string
=`($dir/echo "$echo_test_string") 2>/dev/null` &&
624 test "X$echo_testing_string" = "X$echo_test_string"; then
631 if test "X$echo" = Xecho
; then
632 # We didn't find a better echo, so look for alternatives.
633 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
634 echo_testing_string
=`(print -r "$echo_test_string") 2>/dev/null` &&
635 test "X$echo_testing_string" = "X$echo_test_string"; then
636 # This shell has a builtin print -r that does the trick.
638 elif (test -f /bin
/ksh
|| test -f /bin
/ksh
$ac_exeext) &&
639 test "X$CONFIG_SHELL" != X
/bin
/ksh
; then
640 # If we have ksh, try running configure again with it.
641 ORIGINAL_CONFIG_SHELL
=${CONFIG_SHELL-/bin/sh}
642 export ORIGINAL_CONFIG_SHELL
643 CONFIG_SHELL
=/bin
/ksh
645 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
649 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
650 echo_testing_string
=`($echo "$echo_test_string") 2>/dev/null` &&
651 test "X$echo_testing_string" = "X$echo_test_string"; then
654 elif echo_testing_string
=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
655 test "X$echo_testing_string" = 'X\t' &&
656 echo_testing_string
=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
657 test "X$echo_testing_string" = "X$echo_test_string"; then
658 CONFIG_SHELL
=$ORIGINAL_CONFIG_SHELL
660 SHELL
="$CONFIG_SHELL"
662 echo="$CONFIG_SHELL $0 --fallback-echo"
663 elif echo_testing_string
=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
664 test "X$echo_testing_string" = 'X\t' &&
665 echo_testing_string
=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
666 test "X$echo_testing_string" = "X$echo_test_string"; then
667 echo="$CONFIG_SHELL $0 --fallback-echo"
669 # maybe with a smaller string...
672 for cmd
in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
673 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev
/null
680 if test "$prev" != 'sed 50q "$0"'; then
681 echo_test_string
=`eval $prev`
682 export echo_test_string
683 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
685 # Oops. We lost completely, so just stick with echo.
694 # Copy echo and quote the copy suitably for passing to libtool from
695 # the Makefile, instead of quoting the original, which is used later.
697 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
698 ECHO
="$CONFIG_SHELL \\\$\$0 --fallback-echo"
704 tagnames
=${tagnames+${tagnames},}CXX
706 tagnames
=${tagnames+${tagnames},}F77
708 exec 7<&0 </dev
/null
6>&1
711 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
712 # so uname gets run too.
713 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
718 ac_default_prefix
=/usr
/local
720 ac_config_libobj_dir
=.
726 SHELL
=${CONFIG_SHELL-/bin/sh}
728 # Identity of this package.
729 PACKAGE_NAME
='libratbox'
730 PACKAGE_TARNAME
='libratbox'
731 PACKAGE_VERSION
='devel'
732 PACKAGE_STRING
='libratbox devel'
735 ac_default_prefix
=/usr
/local
/libratbox
736 # Factoring default headers for most tests.
737 ac_includes_default
="\
739 #ifdef HAVE_SYS_TYPES_H
740 # include <sys/types.h>
742 #ifdef HAVE_SYS_STAT_H
743 # include <sys/stat.h>
749 # ifdef HAVE_STDLIB_H
754 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
759 #ifdef HAVE_STRINGS_H
760 # include <strings.h>
762 #ifdef HAVE_INTTYPES_H
763 # include <inttypes.h>
781 program_transform_name
823 INSTALL_STRIP_PROGRAM
851 MAINTAINER_MODE_FALSE
904 ac_precious_vars
='build_alias
922 ac_subdirs_all
='libltdl'
924 # Initialize some variables set by options.
926 ac_init_version
=false
927 # The variables have the same names as the options, with
928 # dashes changed to underlines.
936 program_transform_name
=s
,x
,x
,
944 # Installation directory options.
945 # These are left unexpanded so users can "make install exec_prefix=/foo"
946 # and all the variables that are supposed to be based on exec_prefix
947 # by default will actually change.
948 # Use braces instead of parens because sh, perl, etc. also accept them.
949 # (The list follows the same order as the GNU Coding Standards.)
950 bindir
='${exec_prefix}/bin'
951 sbindir
='${exec_prefix}/sbin'
952 libexecdir
='${exec_prefix}/libexec'
953 datarootdir
='${prefix}/share'
954 datadir
='${datarootdir}'
955 sysconfdir
='${prefix}/etc'
956 sharedstatedir
='${prefix}/com'
957 localstatedir
='${prefix}/var'
958 includedir
='${prefix}/include'
959 oldincludedir
='/usr/include'
960 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
961 infodir
='${datarootdir}/info'
966 libdir
='${exec_prefix}/lib'
967 localedir
='${datarootdir}/locale'
968 mandir
='${datarootdir}/man'
974 # If the previous option needs an argument, assign it.
975 if test -n "$ac_prev"; then
976 eval $ac_prev=\
$ac_option
982 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
986 # Accept the important Cygnus configure options, so we can diagnose typos.
988 case $ac_dashdash$ac_option in
992 -bindir | --bindir | --bindi | --bind | --bin | --bi)
994 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
997 -build | --build | --buil | --bui | --bu)
998 ac_prev
=build_alias
;;
999 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1000 build_alias
=$ac_optarg ;;
1002 -cache-file | --cache-file | --cache-fil | --cache-fi \
1003 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1004 ac_prev
=cache_file
;;
1005 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1006 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1007 cache_file
=$ac_optarg ;;
1009 --config-cache | -C)
1010 cache_file
=config.cache
;;
1012 -datadir | --datadir | --datadi | --datad)
1014 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1015 datadir
=$ac_optarg ;;
1017 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1018 | --dataroo | --dataro | --datar)
1019 ac_prev
=datarootdir
;;
1020 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1021 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1022 datarootdir
=$ac_optarg ;;
1024 -disable-* | --disable-*)
1025 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1026 # Reject names that are not valid shell variable names.
1027 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1028 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1029 { (exit 1); exit 1; }; }
1030 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
1031 eval enable_
$ac_feature=no
;;
1033 -docdir | --docdir | --docdi | --doc | --do)
1035 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1036 docdir
=$ac_optarg ;;
1038 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1040 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1041 dvidir
=$ac_optarg ;;
1043 -enable-* | --enable-*)
1044 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1045 # Reject names that are not valid shell variable names.
1046 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1047 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1048 { (exit 1); exit 1; }; }
1049 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
1050 eval enable_
$ac_feature=\
$ac_optarg ;;
1052 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1053 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1054 | --exec | --exe | --ex)
1055 ac_prev
=exec_prefix
;;
1056 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1057 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1058 | --exec=* | --exe=* | --ex=*)
1059 exec_prefix
=$ac_optarg ;;
1061 -gas | --gas | --ga | --g)
1062 # Obsolete; use --with-gas.
1065 -help | --help | --hel | --he | -h)
1066 ac_init_help
=long
;;
1067 -help=r
* | --help=r
* | --hel=r
* | --he=r
* | -hr*)
1068 ac_init_help
=recursive
;;
1069 -help=s
* | --help=s
* | --hel=s
* | --he=s
* | -hs*)
1070 ac_init_help
=short
;;
1072 -host | --host | --hos | --ho)
1073 ac_prev
=host_alias
;;
1074 -host=* | --host=* | --hos=* | --ho=*)
1075 host_alias
=$ac_optarg ;;
1077 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1079 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1081 htmldir
=$ac_optarg ;;
1083 -includedir | --includedir | --includedi | --included | --include \
1084 | --includ | --inclu | --incl | --inc)
1085 ac_prev
=includedir
;;
1086 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1087 | --includ=* | --inclu=* | --incl=* | --inc=*)
1088 includedir
=$ac_optarg ;;
1090 -infodir | --infodir | --infodi | --infod | --info | --inf)
1092 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1093 infodir
=$ac_optarg ;;
1095 -libdir | --libdir | --libdi | --libd)
1097 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1098 libdir
=$ac_optarg ;;
1100 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1101 | --libexe | --libex | --libe)
1102 ac_prev
=libexecdir
;;
1103 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1104 | --libexe=* | --libex=* | --libe=*)
1105 libexecdir
=$ac_optarg ;;
1107 -localedir | --localedir | --localedi | --localed | --locale)
1108 ac_prev
=localedir
;;
1109 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1110 localedir
=$ac_optarg ;;
1112 -localstatedir | --localstatedir | --localstatedi | --localstated \
1113 | --localstate | --localstat | --localsta | --localst | --locals)
1114 ac_prev
=localstatedir
;;
1115 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1116 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1117 localstatedir
=$ac_optarg ;;
1119 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1121 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1122 mandir
=$ac_optarg ;;
1124 -nfp | --nfp | --nf)
1125 # Obsolete; use --without-fp.
1128 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1129 | --no-cr | --no-c | -n)
1132 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1133 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1136 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1137 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1138 | --oldin | --oldi | --old | --ol | --o)
1139 ac_prev
=oldincludedir
;;
1140 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1141 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1142 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1143 oldincludedir
=$ac_optarg ;;
1145 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1147 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1148 prefix
=$ac_optarg ;;
1150 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1151 | --program-pre | --program-pr | --program-p)
1152 ac_prev
=program_prefix
;;
1153 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1154 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1155 program_prefix
=$ac_optarg ;;
1157 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1158 | --program-suf | --program-su | --program-s)
1159 ac_prev
=program_suffix
;;
1160 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1161 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1162 program_suffix
=$ac_optarg ;;
1164 -program-transform-name | --program-transform-name \
1165 | --program-transform-nam | --program-transform-na \
1166 | --program-transform-n | --program-transform- \
1167 | --program-transform | --program-transfor \
1168 | --program-transfo | --program-transf \
1169 | --program-trans | --program-tran \
1170 | --progr-tra | --program-tr | --program-t)
1171 ac_prev
=program_transform_name
;;
1172 -program-transform-name=* | --program-transform-name=* \
1173 | --program-transform-nam=* | --program-transform-na=* \
1174 | --program-transform-n=* | --program-transform-=* \
1175 | --program-transform=* | --program-transfor=* \
1176 | --program-transfo=* | --program-transf=* \
1177 | --program-trans=* | --program-tran=* \
1178 | --progr-tra=* | --program-tr=* | --program-t=*)
1179 program_transform_name
=$ac_optarg ;;
1181 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1183 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1184 pdfdir
=$ac_optarg ;;
1186 -psdir | --psdir | --psdi | --psd | --ps)
1188 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1191 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1192 | -silent | --silent | --silen | --sile | --sil)
1195 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1197 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1199 sbindir
=$ac_optarg ;;
1201 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1202 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1203 | --sharedst | --shareds | --shared | --share | --shar \
1205 ac_prev
=sharedstatedir
;;
1206 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1207 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1208 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1210 sharedstatedir
=$ac_optarg ;;
1212 -site | --site | --sit)
1214 -site=* | --site=* | --sit=*)
1217 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1219 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1220 srcdir
=$ac_optarg ;;
1222 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1223 | --syscon | --sysco | --sysc | --sys | --sy)
1224 ac_prev
=sysconfdir
;;
1225 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1226 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1227 sysconfdir
=$ac_optarg ;;
1229 -target | --target | --targe | --targ | --tar | --ta | --t)
1230 ac_prev
=target_alias
;;
1231 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1232 target_alias
=$ac_optarg ;;
1234 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1237 -version | --version | --versio | --versi | --vers | -V)
1238 ac_init_version
=: ;;
1241 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1242 # Reject names that are not valid shell variable names.
1243 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1244 { echo "$as_me: error: invalid package name: $ac_package" >&2
1245 { (exit 1); exit 1; }; }
1246 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1247 eval with_
$ac_package=\
$ac_optarg ;;
1249 -without-* | --without-*)
1250 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1251 # Reject names that are not valid shell variable names.
1252 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1253 { echo "$as_me: error: invalid package name: $ac_package" >&2
1254 { (exit 1); exit 1; }; }
1255 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1256 eval with_
$ac_package=no
;;
1259 # Obsolete; use --with-x.
1262 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1263 | --x-incl | --x-inc | --x-in | --x-i)
1264 ac_prev
=x_includes
;;
1265 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1266 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1267 x_includes
=$ac_optarg ;;
1269 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1270 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1271 ac_prev
=x_libraries
;;
1272 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1273 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1274 x_libraries
=$ac_optarg ;;
1276 -*) { echo "$as_me: error: unrecognized option: $ac_option
1277 Try \`$0 --help' for more information." >&2
1278 { (exit 1); exit 1; }; }
1282 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1283 # Reject names that are not valid shell variable names.
1284 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1285 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1286 { (exit 1); exit 1; }; }
1287 eval $ac_envvar=\
$ac_optarg
1288 export $ac_envvar ;;
1291 # FIXME: should be removed in autoconf 3.0.
1292 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1293 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1294 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1295 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1301 if test -n "$ac_prev"; then
1302 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1303 { echo "$as_me: error: missing argument to $ac_option" >&2
1304 { (exit 1); exit 1; }; }
1307 # Be sure to have absolute directory names.
1308 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1309 datadir sysconfdir sharedstatedir localstatedir includedir \
1310 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1311 libdir localedir mandir
1313 eval ac_val
=\$
$ac_var
1315 [\\/$
]* | ?
:[\\/]* ) continue;;
1316 NONE
| '' ) case $ac_var in *prefix
) continue;; esac;;
1318 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1319 { (exit 1); exit 1; }; }
1322 # There might be people who depend on the old broken behavior: `$host'
1323 # used to hold the argument of --host etc.
1324 # FIXME: To remove some day.
1327 target
=$target_alias
1329 # FIXME: To remove some day.
1330 if test "x$host_alias" != x
; then
1331 if test "x$build_alias" = x
; then
1332 cross_compiling
=maybe
1333 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1334 If a cross compiler is detected then cross compile mode will be used." >&2
1335 elif test "x$build_alias" != "x$host_alias"; then
1341 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1343 test "$silent" = yes && exec 6>/dev
/null
1346 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1347 ac_ls_di
=`ls -di .` &&
1348 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1349 { echo "$as_me: error: Working directory cannot be determined" >&2
1350 { (exit 1); exit 1; }; }
1351 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1352 { echo "$as_me: error: pwd does not report name of working directory" >&2
1353 { (exit 1); exit 1; }; }
1356 # Find the source files, if location was not specified.
1357 if test -z "$srcdir"; then
1358 ac_srcdir_defaulted
=yes
1359 # Try the directory containing this script, then the parent directory.
1360 ac_confdir
=`$as_dirname -- "$0" ||
1361 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1362 X"$0" : 'X\(//\)[^/]' \| \
1363 X"$0" : 'X\(//\)$' \| \
1364 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1366 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1384 if test ! -r "$srcdir/$ac_unique_file"; then
1388 ac_srcdir_defaulted
=no
1390 if test ! -r "$srcdir/$ac_unique_file"; then
1391 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1392 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1393 { (exit 1); exit 1; }; }
1395 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1397 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1398 { (exit 1); exit 1; }; }
1400 # When building in place, set srcdir=.
1401 if test "$ac_abs_confdir" = "$ac_pwd"; then
1404 # Remove unnecessary trailing slashes from srcdir.
1405 # Double slashes in file names in object file debugging info
1406 # mess up M-x gdb in Emacs.
1408 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1410 for ac_var
in $ac_precious_vars; do
1411 eval ac_env_
${ac_var}_set
=\
${${ac_var}+set}
1412 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1413 eval ac_cv_env_
${ac_var}_set
=\
${${ac_var}+set}
1414 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1418 # Report the --help message.
1420 if test "$ac_init_help" = "long"; then
1421 # Omit some internal or obsolete options to make the list less imposing.
1422 # This message is too long to be a string in the A/UX 3.1 sh.
1424 \`configure' configures libratbox devel to adapt to many kinds of systems.
1426 Usage: $0 [OPTION]... [VAR=VALUE]...
1428 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1429 VAR=VALUE. See below for descriptions of some of the useful variables.
1431 Defaults for the options are specified in brackets.
1434 -h, --help display this help and exit
1435 --help=short display options specific to this package
1436 --help=recursive display the short help of all the included packages
1437 -V, --version display version information and exit
1438 -q, --quiet, --silent do not print \`checking...' messages
1439 --cache-file=FILE cache test results in FILE [disabled]
1440 -C, --config-cache alias for \`--cache-file=config.cache'
1441 -n, --no-create do not create output files
1442 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1444 Installation directories:
1445 --prefix=PREFIX install architecture-independent files in PREFIX
1446 [$ac_default_prefix]
1447 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1450 By default, \`make install' will install all the files in
1451 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1452 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1453 for instance \`--prefix=\$HOME'.
1455 For better control, use the options below.
1457 Fine tuning of the installation directories:
1458 --bindir=DIR user executables [EPREFIX/bin]
1459 --sbindir=DIR system admin executables [EPREFIX/sbin]
1460 --libexecdir=DIR program executables [EPREFIX/libexec]
1461 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1462 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1463 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1464 --libdir=DIR object code libraries [EPREFIX/lib]
1465 --includedir=DIR C header files [PREFIX/include]
1466 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1467 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1468 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1469 --infodir=DIR info documentation [DATAROOTDIR/info]
1470 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1471 --mandir=DIR man documentation [DATAROOTDIR/man]
1472 --docdir=DIR documentation root [DATAROOTDIR/doc/libratbox]
1473 --htmldir=DIR html documentation [DOCDIR]
1474 --dvidir=DIR dvi documentation [DOCDIR]
1475 --pdfdir=DIR pdf documentation [DOCDIR]
1476 --psdir=DIR ps documentation [DOCDIR]
1482 --program-prefix=PREFIX prepend PREFIX to installed program names
1483 --program-suffix=SUFFIX append SUFFIX to installed program names
1484 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1487 --build=BUILD configure
for building on BUILD
[guessed
]
1488 --host=HOST cross
-compile to build programs to run on HOST
[BUILD
]
1492 if test -n "$ac_init_help"; then
1493 case $ac_init_help in
1494 short
| recursive
) echo "Configuration of libratbox devel:";;
1499 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1500 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1501 --disable-dependency-tracking speeds up one
-time build
1502 --enable-dependency-tracking do not reject slow dependency extractors
1503 --enable-static[=PKGS
] build static libraries
[default
=no
]
1504 --enable-shared[=PKGS
] build shared libraries
[default
=yes]
1505 --enable-maintainer-mode enable make rules and dependencies not useful
1506 (and sometimes confusing
) to the casual installer
1507 --enable-fast-install[=PKGS
]
1508 optimize
for fast installation
[default
=yes]
1509 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1510 --disable-ipv6 Disable IPv6 support
1511 --enable-openssl=DIR Enable OpenSSL support
(DIR optional
).
1512 --disable-openssl Disable OpenSSL support.
1513 --enable-gnutls Enable GnuTLS support.
1514 --disable-gnutls Disable GnuTLS support.
1515 --enable-assert Enable assert
(). Choose between soft
(warnings
) and
1516 hard
(aborts the daemon
)
1517 --enable-profile Enable profiling
1518 --disable-balloc Disable the block allocator.
1519 --enable-warnings Enable all sorts of warnings
for debugging.
1522 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1523 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1524 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1525 --with-pic try to use only PIC
/non
-PIC objects
[default
=use
1527 --with-tags[=TAGS
] include additional configurations
[automatic
]
1529 Some influential environment variables
:
1530 CC C compiler
command
1531 CFLAGS C compiler flags
1532 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1533 nonstandard directory
<lib dir
>
1534 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1535 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1536 you have headers
in a nonstandard directory
<include dir
>
1538 CXX C
++ compiler
command
1539 CXXFLAGS C
++ compiler flags
1540 CXXCPP C
++ preprocessor
1541 F77 Fortran
77 compiler
command
1542 FFLAGS Fortran
77 compiler flags
1543 PKG_CONFIG path to pkg
-config utility
1545 C compiler flags
for GNUTLS
, overriding pkg
-config
1546 GNUTLS_LIBS linker flags
for GNUTLS
, overriding pkg
-config
1548 Use these variables to override the choices made by
`configure' or to help
1549 it to find libraries and programs with nonstandard names/locations.
1555 if test "$ac_init_help" = "recursive"; then
1556 # If there are subdirs, report their specific --help.
1557 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1558 test -d "$ac_dir" || continue
1562 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1564 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1565 # A ".." for each directory in $ac_dir_suffix.
1566 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1567 case $ac_top_builddir_sub in
1568 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1569 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1572 ac_abs_top_builddir=$ac_pwd
1573 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1574 # for backward compatibility:
1575 ac_top_builddir=$ac_top_build_prefix
1578 .) # We are building in place.
1580 ac_top_srcdir=$ac_top_builddir_sub
1581 ac_abs_top_srcdir=$ac_pwd ;;
1582 [\\/]* | ?:[\\/]* ) # Absolute name.
1583 ac_srcdir=$srcdir$ac_dir_suffix;
1584 ac_top_srcdir=$srcdir
1585 ac_abs_top_srcdir=$srcdir ;;
1587 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1588 ac_top_srcdir=$ac_top_build_prefix$srcdir
1589 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1591 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1593 cd "$ac_dir" || { ac_status=$?; continue; }
1594 # Check for guested configure.
1595 if test -f "$ac_srcdir/configure.gnu"; then
1597 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1598 elif test -f "$ac_srcdir/configure"; then
1600 $SHELL "$ac_srcdir/configure" --help=recursive
1602 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1604 cd "$ac_pwd" || { ac_status=$?; break; }
1608 test -n "$ac_init_help" && exit $ac_status
1609 if $ac_init_version; then
1611 libratbox configure devel
1612 generated by GNU Autoconf 2.61
1614 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1615 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1616 This configure script is free software; the Free Software Foundation
1617 gives unlimited permission to copy, distribute and modify it.
1619 $Id: configure.ac 25689 2008-07-10 17:13:27Z androsyn $
1623 cat >config.log <<_ACEOF
1624 This file contains any messages produced by compilers while
1625 running configure, to aid debugging if configure makes a mistake.
1627 It was created by libratbox $as_me devel, which was
1628 generated by GNU Autoconf 2.61. Invocation command line was
1640 hostname = `(hostname
|| uname
-n) 2>/dev
/null
| sed 1q
`
1641 uname -m = `(uname
-m) 2>/dev
/null
|| echo unknown
`
1642 uname -r = `(uname
-r) 2>/dev
/null
|| echo unknown
`
1643 uname -s = `(uname
-s) 2>/dev
/null
|| echo unknown
`
1644 uname -v = `(uname
-v) 2>/dev
/null
|| echo unknown
`
1646 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null
|| echo unknown
`
1647 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null
|| echo unknown
`
1649 /bin/arch = `(/bin
/arch
) 2>/dev
/null
|| echo unknown
`
1650 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null
|| echo unknown
`
1651 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null
|| echo unknown
`
1652 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null
|| echo unknown
`
1653 /bin/machine = `(/bin
/machine
) 2>/dev
/null
|| echo unknown
`
1654 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null
|| echo unknown
`
1655 /bin/universe = `(/bin
/universe
) 2>/dev
/null
|| echo unknown
`
1659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1663 test -z "$as_dir" && as_dir=.
1664 echo "PATH: $as_dir"
1680 # Keep a trace of the command line.
1681 # Strip out --no-create and --no-recursion so they do not pile up.
1682 # Strip out --silent because we don't want to record it for future runs.
1683 # Also quote any args containing shell meta-characters.
1684 # Make two passes to allow for proper duplicate-argument suppression.
1688 ac_must_keep_next=false
1694 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1695 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1696 | -silent | --silent | --silen | --sile | --sil)
1699 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1702 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1704 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1705 if test $ac_must_keep_next = true; then
1706 ac_must_keep_next=false # Got value, back to normal.
1709 *=* | --config-cache | -C | -disable-* | --disable-* \
1710 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1711 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1712 | -with-* | --with-* | -without-* | --without-* | --x)
1713 case "$ac_configure_args0 " in
1714 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1717 -* ) ac_must_keep_next=true ;;
1720 ac_configure_args="$ac_configure_args '$ac_arg'"
1725 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1726 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1728 # When interrupted or exit'd, cleanup temporary files, and complete
1729 # config.log. We remove comments because anyway the quotes in there
1730 # would cause problems or look ugly.
1731 # WARNING: Use '\'' to represent an apostrophe within the trap.
1732 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1733 trap 'exit_status=$?
1734 # Save into config.log some information that might help in debugging.
1739 ## ---------------- ##
1740 ## Cache variables. ##
1741 ## ---------------- ##
1744 # The following way of writing the cache mishandles newlines in values,
1746 for ac_var in `(set) 2>&1 | sed -n '\''s
/^\
([a
-zA-Z_][a
-zA-Z0-9_]*\
)=.
*/\
1/p
'\''`; do
1747 eval ac_val=\$$ac_var
1751 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1752 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1755 _ | IFS | as_nl) ;; #(
1756 *) $as_unset $ac_var ;;
1761 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1762 *${as_nl}ac_space=\ *)
1764 "s/'\''/'\''\\\\'\'''\''/g;
1765 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1768 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1776 ## ----------------- ##
1777 ## Output variables. ##
1778 ## ----------------- ##
1781 for ac_var in $ac_subst_vars
1783 eval ac_val=\$$ac_var
1785 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1787 echo "$ac_var='\''$ac_val'\''"
1791 if test -n "$ac_subst_files"; then
1793 ## ------------------- ##
1794 ## File substitutions. ##
1795 ## ------------------- ##
1798 for ac_var in $ac_subst_files
1800 eval ac_val=\$$ac_var
1802 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1804 echo "$ac_var='\''$ac_val'\''"
1809 if test -s confdefs.h; then
1819 test "$ac_signal" != 0 &&
1820 echo "$as_me: caught signal $ac_signal"
1821 echo "$as_me: exit $exit_status"
1823 rm -f core *.core core.conftest.* &&
1824 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1827 for ac_signal in 1 2 13 15; do
1828 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1832 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1833 rm -f -r conftest* confdefs.h
1835 # Predefined preprocessor variables.
1837 cat >>confdefs.h <<_ACEOF
1838 #define PACKAGE_NAME "$PACKAGE_NAME"
1842 cat >>confdefs.h <<_ACEOF
1843 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1847 cat >>confdefs.h <<_ACEOF
1848 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1852 cat >>confdefs.h <<_ACEOF
1853 #define PACKAGE_STRING "$PACKAGE_STRING"
1857 cat >>confdefs.h <<_ACEOF
1858 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1862 # Let the site file select an alternate cache file if it wants to.
1863 # Prefer explicitly selected file to automatically selected ones.
1864 if test -n "$CONFIG_SITE"; then
1865 set x "$CONFIG_SITE"
1866 elif test "x$prefix" != xNONE; then
1867 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1869 set x "$ac_default_prefix/share/config.site" \
1870 "$ac_default_prefix/etc/config.site"
1875 if test -r "$ac_site_file"; then
1876 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1877 echo "$as_me: loading site script $ac_site_file" >&6;}
1878 sed 's/^/| /' "$ac_site_file" >&5
1883 if test -r "$cache_file"; then
1884 # Some versions of bash will fail to source /dev/null (special
1885 # files actually), so we avoid doing that.
1886 if test -f "$cache_file"; then
1887 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1888 echo "$as_me: loading cache $cache_file" >&6;}
1890 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1891 *) . "./$cache_file";;
1895 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1896 echo "$as_me: creating cache $cache_file" >&6;}
1900 # Check that the precious variables saved in the cache have kept the same
1902 ac_cache_corrupted=false
1903 for ac_var in $ac_precious_vars; do
1904 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1905 eval ac_new_set=\$ac_env_${ac_var}_set
1906 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1907 eval ac_new_val=\$ac_env_${ac_var}_value
1908 case $ac_old_set,$ac_new_set in
1910 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1911 echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1912 ac_cache_corrupted=: ;;
1914 { echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1915 echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1916 ac_cache_corrupted=: ;;
1919 if test "x$ac_old_val" != "x$ac_new_val"; then
1920 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1921 echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1922 { echo "$as_me:$LINENO: former value
: $ac_old_val" >&5
1923 echo "$as_me: former value
: $ac_old_val" >&2;}
1924 { echo "$as_me:$LINENO: current value
: $ac_new_val" >&5
1925 echo "$as_me: current value
: $ac_new_val" >&2;}
1926 ac_cache_corrupted=:
1929 # Pass precious variables to config.status.
1930 if test "$ac_new_set" = set; then
1932 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1933 *) ac_arg=$ac_var=$ac_new_val ;;
1935 case " $ac_configure_args " in
1936 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1937 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1941 if $ac_cache_corrupted; then
1942 { echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
1943 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
1944 { { echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
1945 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
1946 { (exit 1); exit 1; }; }
1974 ac_cpp='$CPP $CPPFLAGS'
1975 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1976 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1977 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1980 am__api_version='1.10'
1983 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1984 if test -f "$ac_dir/install-sh"; then
1986 ac_install_sh="$ac_aux_dir/install-sh -c"
1988 elif test -f "$ac_dir/install.sh"; then
1990 ac_install_sh="$ac_aux_dir/install.sh -c"
1992 elif test -f "$ac_dir/shtool"; then
1994 ac_install_sh="$ac_aux_dir/shtool install -c"
1998 if test -z "$ac_aux_dir"; then
1999 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2000 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2001 { (exit 1); exit 1; }; }
2004 # These three variables are undocumented and unsupported,
2005 # and are intended to be withdrawn in a future Autoconf release.
2006 # They can cause serious problems if a builder's source tree is in a directory
2007 # whose full name contains unusual characters.
2008 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2009 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2010 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2013 # Find a good install program. We prefer a C program (faster),
2014 # so one script is as good as another. But avoid the broken or
2015 # incompatible versions:
2016 # SysV /etc/install, /usr/sbin/install
2017 # SunOS /usr/etc/install
2018 # IRIX /sbin/install
2020 # AmigaOS /C/install, which installs bootblocks on floppy discs
2021 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2022 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2023 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2024 # OS/2's system install, which has a completely different semantic
2025 # ./install, which can be erroneously created by make from ./install.sh.
2026 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2027 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2028 if test -z "$INSTALL"; then
2029 if test "${ac_cv_path_install+set}" = set; then
2030 echo $ECHO_N "(cached) $ECHO_C" >&6
2032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2036 test -z "$as_dir" && as_dir=.
2037 # Account for people who put trailing slashes in PATH elements.
2039 ./ | .// | /cC/* | \
2040 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2041 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2044 # OSF1 and SCO ODT 3.0 have their own names for install.
2045 # Don't use installbsd from OSF since it installs stuff as root
2047 for ac_prog in ginstall scoinst install; do
2048 for ac_exec_ext in '' $ac_executable_extensions; do
2049 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2050 if test $ac_prog = install &&
2051 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2052 # AIX install. It has an incompatible calling convention.
2054 elif test $ac_prog = install &&
2055 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2056 # program-specific install script used by HP pwplus--don't use.
2059 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2072 if test "${ac_cv_path_install+set}" = set; then
2073 INSTALL=$ac_cv_path_install
2075 # As a last resort, use the slow shell script. Don't cache a
2076 # value for INSTALL within a source directory, because that will
2077 # break other packages using the cache if that directory is
2078 # removed, or if the value is a relative name.
2079 INSTALL=$ac_install_sh
2082 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2083 echo "${ECHO_T}$INSTALL" >&6; }
2085 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2086 # It thinks the first close brace ends the variable substitution.
2087 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2089 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2091 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2093 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2094 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2097 echo timestamp > conftest.file
2098 # Do `set' in a subshell so we don't clobber the current shell
's
2099 # arguments. Must try -L first in case configure is actually a
2100 # symlink; some systems play weird games with the mod time of symlinks
2101 # (eg FreeBSD returns the mod time of the symlink's containing
2104 set X
`ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2105 if test "$*" = "X"; then
2107 set X
`ls -t $srcdir/configure conftest.file`
2110 if test "$*" != "X $srcdir/configure conftest.file" \
2111 && test "$*" != "X conftest.file $srcdir/configure"; then
2113 # If neither matched, then we have a broken ls. This can happen
2114 # if, for instance, CONFIG_SHELL is bash and it inherits a
2115 # broken ls alias from the environment. This has actually
2116 # happened. Such a system could not be considered "sane".
2117 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2118 alias in your environment" >&5
2119 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2120 alias in your environment" >&2;}
2121 { (exit 1); exit 1; }; }
2124 test "$2" = conftest.
file
2130 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2131 Check your system clock" >&5
2132 echo "$as_me: error: newly created file is older than distributed files!
2133 Check your system clock" >&2;}
2134 { (exit 1); exit 1; }; }
2136 { echo "$as_me:$LINENO: result: yes" >&5
2137 echo "${ECHO_T}yes" >&6; }
2138 test "$program_prefix" != NONE
&&
2139 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2140 # Use a double $ so make ignores it.
2141 test "$program_suffix" != NONE
&&
2142 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2143 # Double any \ or $. echo might interpret backslashes.
2144 # By default was `s,x,x', remove it if useless.
2145 cat <<\_ACEOF
>conftest.
sed
2146 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
2148 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
2151 # expand $ac_aux_dir to an absolute path
2152 am_aux_dir
=`cd $ac_aux_dir && pwd`
2154 test x
"${MISSING+set}" = xset
|| MISSING
="\${SHELL} $am_aux_dir/missing"
2155 # Use eval to expand $SHELL
2156 if eval "$MISSING --run true"; then
2157 am_missing_run
="$MISSING --run "
2160 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2161 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2164 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2165 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2166 if test -z "$MKDIR_P"; then
2167 if test "${ac_cv_path_mkdir+set}" = set; then
2168 echo $ECHO_N "(cached) $ECHO_C" >&6
2170 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2171 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
2174 test -z "$as_dir" && as_dir
=.
2175 for ac_prog
in mkdir gmkdir
; do
2176 for ac_exec_ext
in '' $ac_executable_extensions; do
2177 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2178 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2179 'mkdir (GNU coreutils) '* | \
2180 'mkdir (coreutils) '* | \
2181 'mkdir (fileutils) '4.1*)
2182 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
2192 if test "${ac_cv_path_mkdir+set}" = set; then
2193 MKDIR_P
="$ac_cv_path_mkdir -p"
2195 # As a last resort, use the slow shell script. Don't cache a
2196 # value for MKDIR_P within a source directory, because that will
2197 # break other packages using the cache if that directory is
2198 # removed, or if the value is a relative name.
2199 test -d .
/--version && rmdir .
/--version
2200 MKDIR_P
="$ac_install_sh -d"
2203 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2204 echo "${ECHO_T}$MKDIR_P" >&6; }
2208 [\\/$
]* | ?
:[\\/]*) ;;
2209 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
2212 for ac_prog
in gawk mawk nawk
awk
2214 # Extract the first word of "$ac_prog", so it can be a program name with args.
2215 set dummy
$ac_prog; ac_word
=$2
2216 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2217 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2218 if test "${ac_cv_prog_AWK+set}" = set; then
2219 echo $ECHO_N "(cached) $ECHO_C" >&6
2221 if test -n "$AWK"; then
2222 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2224 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2228 test -z "$as_dir" && as_dir
=.
2229 for ac_exec_ext
in '' $ac_executable_extensions; do
2230 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2231 ac_cv_prog_AWK
="$ac_prog"
2232 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2242 if test -n "$AWK"; then
2243 { echo "$as_me:$LINENO: result: $AWK" >&5
2244 echo "${ECHO_T}$AWK" >&6; }
2246 { echo "$as_me:$LINENO: result: no" >&5
2247 echo "${ECHO_T}no" >&6; }
2251 test -n "$AWK" && break
2254 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2255 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2256 set x
${MAKE-make}; ac_make
=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2257 if { as_var
=ac_cv_prog_make_
${ac_make}_set
; eval "test \"\${$as_var+set}\" = set"; }; then
2258 echo $ECHO_N "(cached) $ECHO_C" >&6
2260 cat >conftest.
make <<\_ACEOF
2263 @
echo '@@@%%%=$(MAKE)=@@@%%%'
2265 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2266 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2268 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
2270 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
2274 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
2275 { echo "$as_me:$LINENO: result: yes" >&5
2276 echo "${ECHO_T}yes" >&6; }
2279 { echo "$as_me:$LINENO: result: no" >&5
2280 echo "${ECHO_T}no" >&6; }
2281 SET_MAKE
="MAKE=${MAKE-make}"
2284 rm -rf .tst
2>/dev
/null
2285 mkdir .tst
2>/dev
/null
2286 if test -d .tst
; then
2291 rmdir .tst
2>/dev
/null
2293 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2294 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2295 # is not polluted with repeated "-I."
2296 am__isrc
=' -I$(srcdir)'
2297 # test to see if srcdir already configured
2298 if test -f $srcdir/config.status
; then
2299 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2300 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2301 { (exit 1); exit 1; }; }
2305 # test whether we have cygpath
2306 if test -z "$CYGPATH_W"; then
2307 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
2308 CYGPATH_W
='cygpath -w'
2315 # Define the identity of the package.
2320 # Some tools Automake needs.
2322 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2325 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2328 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2331 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
2334 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
2336 install_sh
=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2338 # Installed binaries are usually stripped using `strip' when the user
2339 # run `make install-strip'. However `strip' might not be the right
2340 # tool to use in cross-compilation environments, therefore Automake
2341 # will honor the `STRIP' environment variable to overrule this program.
2342 if test "$cross_compiling" != no
; then
2343 if test -n "$ac_tool_prefix"; then
2344 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2345 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
2346 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2347 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2348 if test "${ac_cv_prog_STRIP+set}" = set; then
2349 echo $ECHO_N "(cached) $ECHO_C" >&6
2351 if test -n "$STRIP"; then
2352 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
2354 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2358 test -z "$as_dir" && as_dir
=.
2359 for ac_exec_ext
in '' $ac_executable_extensions; do
2360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2361 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
2362 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2371 STRIP
=$ac_cv_prog_STRIP
2372 if test -n "$STRIP"; then
2373 { echo "$as_me:$LINENO: result: $STRIP" >&5
2374 echo "${ECHO_T}$STRIP" >&6; }
2376 { echo "$as_me:$LINENO: result: no" >&5
2377 echo "${ECHO_T}no" >&6; }
2382 if test -z "$ac_cv_prog_STRIP"; then
2384 # Extract the first word of "strip", so it can be a program name with args.
2385 set dummy strip
; ac_word
=$2
2386 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2387 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2388 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2389 echo $ECHO_N "(cached) $ECHO_C" >&6
2391 if test -n "$ac_ct_STRIP"; then
2392 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
2394 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2398 test -z "$as_dir" && as_dir
=.
2399 for ac_exec_ext
in '' $ac_executable_extensions; do
2400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2401 ac_cv_prog_ac_ct_STRIP
="strip"
2402 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2411 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
2412 if test -n "$ac_ct_STRIP"; then
2413 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2414 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2416 { echo "$as_me:$LINENO: result: no" >&5
2417 echo "${ECHO_T}no" >&6; }
2420 if test "x$ac_ct_STRIP" = x
; then
2423 case $cross_compiling:$ac_tool_warned in
2425 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2426 whose name does not start with the host triplet. If you think this
2427 configuration is useful to you, please write to autoconf@gnu.org." >&5
2428 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2429 whose name does not start with the host triplet. If you think this
2430 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2431 ac_tool_warned
=yes ;;
2436 STRIP
="$ac_cv_prog_STRIP"
2440 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
2442 # We need awk for the "check" target. The system "awk" is bad on
2444 # Always define AMTAR for backward compatibility.
2446 AMTAR
=${AMTAR-"${am_missing_run}tar"}
2448 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
2455 ac_config_headers
="$ac_config_headers include/libratbox_config.h"
2460 cat >>confdefs.h
<<\_ACEOF
2461 #define _GNU_SOURCE 1
2466 DEPDIR
="${am__leading_dot}deps"
2468 ac_config_commands
="$ac_config_commands depfiles"
2471 am_make
=${MAKE-make}
2472 cat > confinc
<< 'END'
2477 # If we don't find an include directive, just comment out the code.
2478 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2479 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2483 # First try GNU make style include.
2484 echo "include confinc" > confmf
2485 # We grep out `Entering directory' and `Leaving directory'
2486 # messages which can occur if `w' ends up in MAKEFLAGS.
2487 # In particular we don't look at `^make:' because GNU make might
2488 # be invoked under some other name (usually "gmake"), in which
2489 # case it prints its new name instead of `make'.
2490 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2495 # Now try BSD make style include.
2496 if test "$am__include" = "#"; then
2497 echo '.include "confinc"' > confmf
2498 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2499 am__include
=.include
2506 { echo "$as_me:$LINENO: result: $_am_result" >&5
2507 echo "${ECHO_T}$_am_result" >&6; }
2508 rm -f confinc confmf
2510 # Check whether --enable-dependency-tracking was given.
2511 if test "${enable_dependency_tracking+set}" = set; then
2512 enableval
=$enable_dependency_tracking;
2515 if test "x$enable_dependency_tracking" != xno
; then
2516 am_depcomp
="$ac_aux_dir/depcomp"
2519 if test "x$enable_dependency_tracking" != xno; then
2529 ac_cpp
='$CPP $CPPFLAGS'
2530 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2531 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2532 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2533 if test -n "$ac_tool_prefix"; then
2534 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2535 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2536 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2537 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2538 if test "${ac_cv_prog_CC+set}" = set; then
2539 echo $ECHO_N "(cached) $ECHO_C" >&6
2541 if test -n "$CC"; then
2542 ac_cv_prog_CC
="$CC" # Let the user override the test.
2544 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2548 test -z "$as_dir" && as_dir
=.
2549 for ac_exec_ext
in '' $ac_executable_extensions; do
2550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2551 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2552 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2562 if test -n "$CC"; then
2563 { echo "$as_me:$LINENO: result: $CC" >&5
2564 echo "${ECHO_T}$CC" >&6; }
2566 { echo "$as_me:$LINENO: result: no" >&5
2567 echo "${ECHO_T}no" >&6; }
2572 if test -z "$ac_cv_prog_CC"; then
2574 # Extract the first word of "gcc", so it can be a program name with args.
2575 set dummy gcc
; ac_word
=$2
2576 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2577 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2578 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2579 echo $ECHO_N "(cached) $ECHO_C" >&6
2581 if test -n "$ac_ct_CC"; then
2582 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2584 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2588 test -z "$as_dir" && as_dir
=.
2589 for ac_exec_ext
in '' $ac_executable_extensions; do
2590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2591 ac_cv_prog_ac_ct_CC
="gcc"
2592 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2601 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2602 if test -n "$ac_ct_CC"; then
2603 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2604 echo "${ECHO_T}$ac_ct_CC" >&6; }
2606 { echo "$as_me:$LINENO: result: no" >&5
2607 echo "${ECHO_T}no" >&6; }
2610 if test "x$ac_ct_CC" = x
; then
2613 case $cross_compiling:$ac_tool_warned in
2615 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2616 whose name does not start with the host triplet. If you think this
2617 configuration is useful to you, please write to autoconf@gnu.org." >&5
2618 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2619 whose name does not start with the host triplet. If you think this
2620 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2621 ac_tool_warned
=yes ;;
2629 if test -z "$CC"; then
2630 if test -n "$ac_tool_prefix"; then
2631 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2632 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2633 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2634 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2635 if test "${ac_cv_prog_CC+set}" = set; then
2636 echo $ECHO_N "(cached) $ECHO_C" >&6
2638 if test -n "$CC"; then
2639 ac_cv_prog_CC
="$CC" # Let the user override the test.
2641 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2645 test -z "$as_dir" && as_dir
=.
2646 for ac_exec_ext
in '' $ac_executable_extensions; do
2647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2648 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2649 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2659 if test -n "$CC"; then
2660 { echo "$as_me:$LINENO: result: $CC" >&5
2661 echo "${ECHO_T}$CC" >&6; }
2663 { echo "$as_me:$LINENO: result: no" >&5
2664 echo "${ECHO_T}no" >&6; }
2670 if test -z "$CC"; then
2671 # Extract the first word of "cc", so it can be a program name with args.
2672 set dummy cc
; ac_word
=$2
2673 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2674 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2675 if test "${ac_cv_prog_CC+set}" = set; then
2676 echo $ECHO_N "(cached) $ECHO_C" >&6
2678 if test -n "$CC"; then
2679 ac_cv_prog_CC
="$CC" # Let the user override the test.
2682 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2686 test -z "$as_dir" && as_dir
=.
2687 for ac_exec_ext
in '' $ac_executable_extensions; do
2688 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2689 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2690 ac_prog_rejected
=yes
2694 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2701 if test $ac_prog_rejected = yes; then
2702 # We found a bogon in the path, so make sure we never use it.
2703 set dummy
$ac_cv_prog_CC
2705 if test $# != 0; then
2706 # We chose a different compiler from the bogus one.
2707 # However, it has the same basename, so the bogon will be chosen
2708 # first if we set CC to just the basename; use the full file name.
2710 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2716 if test -n "$CC"; then
2717 { echo "$as_me:$LINENO: result: $CC" >&5
2718 echo "${ECHO_T}$CC" >&6; }
2720 { echo "$as_me:$LINENO: result: no" >&5
2721 echo "${ECHO_T}no" >&6; }
2726 if test -z "$CC"; then
2727 if test -n "$ac_tool_prefix"; then
2728 for ac_prog
in cl.exe
2730 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2731 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2732 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2733 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2734 if test "${ac_cv_prog_CC+set}" = set; then
2735 echo $ECHO_N "(cached) $ECHO_C" >&6
2737 if test -n "$CC"; then
2738 ac_cv_prog_CC
="$CC" # Let the user override the test.
2740 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2744 test -z "$as_dir" && as_dir
=.
2745 for ac_exec_ext
in '' $ac_executable_extensions; do
2746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2747 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2748 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2758 if test -n "$CC"; then
2759 { echo "$as_me:$LINENO: result: $CC" >&5
2760 echo "${ECHO_T}$CC" >&6; }
2762 { echo "$as_me:$LINENO: result: no" >&5
2763 echo "${ECHO_T}no" >&6; }
2767 test -n "$CC" && break
2770 if test -z "$CC"; then
2772 for ac_prog
in cl.exe
2774 # Extract the first word of "$ac_prog", so it can be a program name with args.
2775 set dummy
$ac_prog; ac_word
=$2
2776 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2777 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2778 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2779 echo $ECHO_N "(cached) $ECHO_C" >&6
2781 if test -n "$ac_ct_CC"; then
2782 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2784 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2788 test -z "$as_dir" && as_dir
=.
2789 for ac_exec_ext
in '' $ac_executable_extensions; do
2790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2791 ac_cv_prog_ac_ct_CC
="$ac_prog"
2792 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2801 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2802 if test -n "$ac_ct_CC"; then
2803 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2804 echo "${ECHO_T}$ac_ct_CC" >&6; }
2806 { echo "$as_me:$LINENO: result: no" >&5
2807 echo "${ECHO_T}no" >&6; }
2811 test -n "$ac_ct_CC" && break
2814 if test "x$ac_ct_CC" = x
; then
2817 case $cross_compiling:$ac_tool_warned in
2819 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2820 whose name does not start with the host triplet. If you think this
2821 configuration is useful to you, please write to autoconf@gnu.org." >&5
2822 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2823 whose name does not start with the host triplet. If you think this
2824 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2825 ac_tool_warned
=yes ;;
2834 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2835 See \`config.log' for more details." >&5
2836 echo "$as_me: error: no acceptable C compiler found in \$PATH
2837 See \`config.log' for more details." >&2;}
2838 { (exit 1); exit 1; }; }
2840 # Provide some information about the compiler.
2841 echo "$as_me:$LINENO: checking for C compiler version" >&5
2842 ac_compiler
=`set X $ac_compile; echo $2`
2843 { (ac_try
="$ac_compiler --version >&5"
2845 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
2846 *) ac_try_echo=$ac_try;;
2848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2849 (eval "$ac_compiler --version >&5") 2>&5
2851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2852 (exit $ac_status); }
2853 { (ac_try="$ac_compiler -v >&5"
2855 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
2856 *) ac_try_echo
=$ac_try;;
2858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2859 (eval "$ac_compiler -v >&5") 2>&5
2861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2862 (exit $ac_status); }
2863 { (ac_try
="$ac_compiler -V >&5"
2865 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
2866 *) ac_try_echo=$ac_try;;
2868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2869 (eval "$ac_compiler -V >&5") 2>&5
2871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2872 (exit $ac_status); }
2874 cat >conftest.$ac_ext <<_ACEOF
2877 cat confdefs.h >>conftest.$ac_ext
2878 cat >>conftest.$ac_ext <<_ACEOF
2879 /* end confdefs.h. */
2889 ac_clean_files_save=$ac_clean_files
2890 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2891 # Try to create an executable without -o first, disregard a.out.
2892 # It will help us diagnose broken compilers, and finding out an intuition
2894 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2895 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2896 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2898 # List of possible output files, starting from the most likely.
2899 # The algorithm is not robust to junk in `.
', hence go to wildcards (a.*)
2900 # only as a last resort. b.out is created by i960 compilers.
2901 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
'
2903 # The IRIX 6 linker writes into existing files which may not be
2904 # executable, retaining their permissions. Remove them first so a
2905 # subsequent execution test works.
2907 for ac_file in $ac_files
2910 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2911 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2916 if { (ac_try="$ac_link_default"
2918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2919 *) ac_try_echo=$ac_try;;
2921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2922 (eval "$ac_link_default") 2>&5
2924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2925 (exit $ac_status); }; then
2926 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2927 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2928 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2929 # so that the user can short-circuit this test for compilers unknown to
2931 for ac_file
in $ac_files ''
2933 test -f "$ac_file" || continue
2935 *.
$ac_ext | *.xcoff
| *.tds
| *.d
| *.pdb
| *.xSYM
| *.bb
| *.bbg
| *.map
| *.inf
| *.o
| *.obj
)
2938 # We found the default executable, but exeext='' is most
2942 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
2944 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2946 # We set ac_cv_exeext here because the later test for it is not
2947 # safe: cross compilers may not add the suffix if given an `-o'
2948 # argument, so we may need to know it at that point already.
2949 # Even if this section looks crufty: it has the advantage of
2956 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
2962 { echo "$as_me:$LINENO: result: $ac_file" >&5
2963 echo "${ECHO_T}$ac_file" >&6; }
2964 if test -z "$ac_file"; then
2965 echo "$as_me: failed program was:" >&5
2966 sed 's/^/| /' conftest.
$ac_ext >&5
2968 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2969 See \`config.log' for more details." >&5
2970 echo "$as_me: error: C compiler cannot create executables
2971 See \`config.log' for more details." >&2;}
2972 { (exit 77); exit 77; }; }
2975 ac_exeext
=$ac_cv_exeext
2977 # Check that the compiler produces executables we can run. If not, either
2978 # the compiler is broken, or we cross compile.
2979 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2980 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2981 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2982 # If not cross compiling, check that we can run a simple program.
2983 if test "$cross_compiling" != yes; then
2984 if { ac_try
='./$ac_file'
2985 { (case "(($ac_try" in
2986 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
2987 *) ac_try_echo=$ac_try;;
2989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2990 (eval "$ac_try") 2>&5
2992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2993 (exit $ac_status); }; }; then
2996 if test "$cross_compiling" = maybe; then
2999 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3000 If you meant to cross compile, use \`--host'.
3001 See \`config.log' for more details.
" >&5
3002 echo "$as_me: error
: cannot run C compiled programs.
3003 If you meant to cross compile
, use \
`--host'.
3004 See \`config.log
' for more details." >&2;}
3005 { (exit 1); exit 1; }; }
3009 { echo "$as_me:$LINENO: result: yes" >&5
3010 echo "${ECHO_T}yes" >&6; }
3012 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3013 ac_clean_files=$ac_clean_files_save
3014 # Check that the compiler produces executables we can run. If not, either
3015 # the compiler is broken, or we cross compile.
3016 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3017 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3018 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3019 echo "${ECHO_T}$cross_compiling" >&6; }
3021 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3022 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3023 if { (ac_try="$ac_link"
3025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3026 *) ac_try_echo=$ac_try;;
3028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3029 (eval "$ac_link") 2>&5
3031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3032 (exit $ac_status); }; then
3033 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3034 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3035 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3037 for ac_file
in conftest.exe conftest conftest.
*; do
3038 test -f "$ac_file" || continue
3040 *.
$ac_ext | *.xcoff
| *.tds
| *.d
| *.pdb
| *.xSYM
| *.bb
| *.bbg
| *.map
| *.inf
| *.o
| *.obj
) ;;
3041 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3047 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3048 See \`config.log' for more details." >&5
3049 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3050 See \`config.log' for more details." >&2;}
3051 { (exit 1); exit 1; }; }
3054 rm -f conftest
$ac_cv_exeext
3055 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3056 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3058 rm -f conftest.
$ac_ext
3059 EXEEXT
=$ac_cv_exeext
3061 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3062 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3063 if test "${ac_cv_objext+set}" = set; then
3064 echo $ECHO_N "(cached) $ECHO_C" >&6
3066 cat >conftest.
$ac_ext <<_ACEOF
3069 cat confdefs.h
>>conftest.
$ac_ext
3070 cat >>conftest.
$ac_ext <<_ACEOF
3071 /* end confdefs.h. */
3081 rm -f conftest.o conftest.obj
3082 if { (ac_try
="$ac_compile"
3084 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
3085 *) ac_try_echo=$ac_try;;
3087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3088 (eval "$ac_compile") 2>&5
3090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3091 (exit $ac_status); }; then
3092 for ac_file in conftest.o conftest.obj conftest.*; do
3093 test -f "$ac_file" || continue;
3095 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3096 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3101 echo "$as_me: failed program was:" >&5
3102 sed 's/^/| /' conftest.$ac_ext >&5
3104 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3105 See \`config.log
' for more details." >&5
3106 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3107 See \`config.log' for more details.
" >&2;}
3108 { (exit 1); exit 1; }; }
3111 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3113 { echo "$as_me:$LINENO: result
: $ac_cv_objext" >&5
3114 echo "${ECHO_T}$ac_cv_objext" >&6; }
3115 OBJEXT=$ac_cv_objext
3117 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
3118 echo $ECHO_N "checking whether we are using the GNU C compiler...
$ECHO_C" >&6; }
3119 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3120 echo $ECHO_N "(cached
) $ECHO_C" >&6
3122 cat >conftest.$ac_ext <<_ACEOF
3125 cat confdefs.h >>conftest.$ac_ext
3126 cat >>conftest.$ac_ext <<_ACEOF
3127 /* end confdefs.h. */
3140 rm -f conftest.$ac_objext
3141 if { (ac_try="$ac_compile"
3143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3144 *) ac_try_echo=$ac_try;;
3146 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3147 (eval "$ac_compile") 2>conftest.er1
3149 grep -v '^ *+' conftest.er1 >conftest.err
3151 cat conftest.err >&5
3152 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3153 (exit $ac_status); } && {
3154 test -z "$ac_c_werror_flag" ||
3155 test ! -s conftest.err
3156 } && test -s conftest.$ac_objext; then
3159 echo "$as_me: failed program was
:" >&5
3160 sed 's/^/| /' conftest.$ac_ext >&5
3165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3166 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3169 { echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
3170 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3171 GCC=`test $ac_compiler_gnu = yes && echo yes`
3172 ac_test_CFLAGS=${CFLAGS+set}
3173 ac_save_CFLAGS=$CFLAGS
3174 { echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
3175 echo $ECHO_N "checking whether
$CC accepts
-g...
$ECHO_C" >&6; }
3176 if test "${ac_cv_prog_cc_g+set}" = set; then
3177 echo $ECHO_N "(cached
) $ECHO_C" >&6
3179 ac_save_c_werror_flag=$ac_c_werror_flag
3180 ac_c_werror_flag=yes
3183 cat >conftest.$ac_ext <<_ACEOF
3186 cat confdefs.h >>conftest.$ac_ext
3187 cat >>conftest.$ac_ext <<_ACEOF
3188 /* end confdefs.h. */
3198 rm -f conftest.$ac_objext
3199 if { (ac_try="$ac_compile"
3201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3202 *) ac_try_echo=$ac_try;;
3204 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3205 (eval "$ac_compile") 2>conftest.er1
3207 grep -v '^ *+' conftest.er1 >conftest.err
3209 cat conftest.err >&5
3210 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3211 (exit $ac_status); } && {
3212 test -z "$ac_c_werror_flag" ||
3213 test ! -s conftest.err
3214 } && test -s conftest.$ac_objext; then
3217 echo "$as_me: failed program was
:" >&5
3218 sed 's/^/| /' conftest.$ac_ext >&5
3221 cat >conftest.$ac_ext <<_ACEOF
3224 cat confdefs.h >>conftest.$ac_ext
3225 cat >>conftest.$ac_ext <<_ACEOF
3226 /* end confdefs.h. */
3236 rm -f conftest.$ac_objext
3237 if { (ac_try="$ac_compile"
3239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3240 *) ac_try_echo=$ac_try;;
3242 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3243 (eval "$ac_compile") 2>conftest.er1
3245 grep -v '^ *+' conftest.er1 >conftest.err
3247 cat conftest.err >&5
3248 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3249 (exit $ac_status); } && {
3250 test -z "$ac_c_werror_flag" ||
3251 test ! -s conftest.err
3252 } && test -s conftest.$ac_objext; then
3255 echo "$as_me: failed program was
:" >&5
3256 sed 's/^/| /' conftest.$ac_ext >&5
3258 ac_c_werror_flag=$ac_save_c_werror_flag
3260 cat >conftest.$ac_ext <<_ACEOF
3263 cat confdefs.h >>conftest.$ac_ext
3264 cat >>conftest.$ac_ext <<_ACEOF
3265 /* end confdefs.h. */
3275 rm -f conftest.$ac_objext
3276 if { (ac_try="$ac_compile"
3278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3279 *) ac_try_echo=$ac_try;;
3281 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3282 (eval "$ac_compile") 2>conftest.er1
3284 grep -v '^ *+' conftest.er1 >conftest.err
3286 cat conftest.err >&5
3287 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3288 (exit $ac_status); } && {
3289 test -z "$ac_c_werror_flag" ||
3290 test ! -s conftest.err
3291 } && test -s conftest.$ac_objext; then
3294 echo "$as_me: failed program was
:" >&5
3295 sed 's/^/| /' conftest.$ac_ext >&5
3300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3307 ac_c_werror_flag=$ac_save_c_werror_flag
3309 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
3310 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3311 if test "$ac_test_CFLAGS" = set; then
3312 CFLAGS=$ac_save_CFLAGS
3313 elif test $ac_cv_prog_cc_g = yes; then
3314 if test "$GCC" = yes; then
3320 if test "$GCC" = yes; then
3326 { echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
3327 echo $ECHO_N "checking
for $CC option to accept ISO C89...
$ECHO_C" >&6; }
3328 if test "${ac_cv_prog_cc_c89+set}" = set; then
3329 echo $ECHO_N "(cached
) $ECHO_C" >&6
3331 ac_cv_prog_cc_c89=no
3333 cat >conftest.$ac_ext <<_ACEOF
3336 cat confdefs.h >>conftest.$ac_ext
3337 cat >>conftest.$ac_ext <<_ACEOF
3338 /* end confdefs.h. */
3341 #include <sys/types.h>
3342 #include <sys/stat.h>
3343 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3344 struct buf { int x; };
3345 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3346 static char *e (p, i)
3352 static char *f (char * (*g) (char **, int), char **p, ...)
3357 s = g (p, va_arg (v,int));
3362 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3363 function prototypes and stuff, but not '\xHH' hex character constants.
3364 These don't provoke an error unfortunately, instead are silently treated
3365 as 'x'. The following induces an error, until -std is added to get
3366 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3367 array size at least. It's necessary to write '\x00'==0 to get something
3368 that's true only with -std. */
3369 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3371 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3372 inside strings and character constants. */
3374 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3376 int test (int i, double x);
3377 struct s1 {int (*f) (int a);};
3378 struct s2 {int (*f) (double a);};
3379 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3385 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3390 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3391 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3393 CC="$ac_save_CC $ac_arg"
3394 rm -f conftest.$ac_objext
3395 if { (ac_try="$ac_compile"
3397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3398 *) ac_try_echo=$ac_try;;
3400 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3401 (eval "$ac_compile") 2>conftest.er1
3403 grep -v '^ *+' conftest.er1 >conftest.err
3405 cat conftest.err >&5
3406 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3407 (exit $ac_status); } && {
3408 test -z "$ac_c_werror_flag" ||
3409 test ! -s conftest.err
3410 } && test -s conftest.$ac_objext; then
3411 ac_cv_prog_cc_c89=$ac_arg
3413 echo "$as_me: failed program was
:" >&5
3414 sed 's/^/| /' conftest.$ac_ext >&5
3419 rm -f core conftest.err conftest.$ac_objext
3420 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
3422 rm -f conftest.$ac_ext
3427 case "x
$ac_cv_prog_cc_c89" in
3429 { echo "$as_me:$LINENO: result
: none needed
" >&5
3430 echo "${ECHO_T}none needed
" >&6; } ;;
3432 { echo "$as_me:$LINENO: result
: unsupported
" >&5
3433 echo "${ECHO_T}unsupported
" >&6; } ;;
3435 CC="$CC $ac_cv_prog_cc_c89"
3436 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
3437 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3442 ac_cpp='$CPP $CPPFLAGS'
3443 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3444 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3445 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3447 depcc="$CC" am_compiler_list=
3449 { echo "$as_me:$LINENO: checking dependency style of
$depcc" >&5
3450 echo $ECHO_N "checking dependency style of
$depcc...
$ECHO_C" >&6; }
3451 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3452 echo $ECHO_N "(cached
) $ECHO_C" >&6
3454 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3455 # We make a subdir and do the tests there. Otherwise we can end up
3456 # making bogus files that we don't know about and never remove. For
3457 # instance it was reported that on HP-UX the gcc test will end up
3458 # making a dummy file named `D' -- because `-MD' means `put the output
3461 # Copy depcomp to subdir because otherwise we won't find it if we're
3462 # using a relative directory.
3463 cp "$am_depcomp" conftest.dir
3465 # We will build objects and dependencies in a subdirectory because
3466 # it helps to detect inapplicable dependency modes. For instance
3467 # both Tru64's cc and ICC support -MD to output dependencies as a
3468 # side effect of compilation, but ICC will put the dependencies in
3469 # the current directory while Tru64 will put them in the object
3473 am_cv_CC_dependencies_compiler_type=none
3474 if test "$am_compiler_list" = ""; then
3475 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3477 for depmode in $am_compiler_list; do
3478 # Setup a source with many dependencies, because some compilers
3479 # like to wrap large dependency lists on column 80 (with \), and
3480 # we should not choose a depcomp mode which is confused by this.
3482 # We need to recreate these files for each test, as the compiler may
3483 # overwrite some of them when testing with obscure command lines.
3484 # This happens at least with the AIX C compiler.
3486 for i in 1 2 3 4 5 6; do
3487 echo '#include "conftst
'$i'.h
"' >> sub/conftest.c
3488 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3489 # Solaris 8's {/usr,}/bin/sh.
3490 touch sub/conftst$i.h
3492 echo "${am__include} ${am__quote}sub
/conftest.Po
${am__quote}" > confmf
3496 # after this tag, mechanisms are not by side-effect, so they'll
3497 # only be used when explicitly requested
3498 if test "x
$enable_dependency_tracking" = xyes; then
3506 # We check with `-c' and `-o' for the sake of the "dashmstdout
"
3507 # mode. It turns out that the SunPro C++ compiler does not properly
3508 # handle `-M -o', and we need to detect this.
3509 if depmode=$depmode \
3510 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3511 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3512 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3513 >/dev/null 2>conftest.err &&
3514 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3515 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3516 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3517 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3518 # icc doesn't choke on unknown options, it will just issue warnings
3519 # or remarks (even with -Werror). So we grep stderr for any message
3520 # that says an option was ignored or not supported.
3521 # When given -MP, icc 7.0 and 7.1 complain thusly:
3522 # icc: Command line warning: ignoring option '-M'; no argument required
3523 # The diagnosis changed in icc 8.0:
3524 # icc: Command line remark: option '-MP' not supported
3525 if (grep 'ignoring option' conftest.err ||
3526 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3527 am_cv_CC_dependencies_compiler_type=$depmode
3536 am_cv_CC_dependencies_compiler_type=none
3540 { echo "$as_me:$LINENO: result
: $am_cv_CC_dependencies_compiler_type" >&5
3541 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3542 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3545 test "x
$enable_dependency_tracking" != xno \
3546 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3548 am__fastdepCC_FALSE='#'
3550 am__fastdepCC_TRUE='#'
3551 am__fastdepCC_FALSE=
3555 { echo "$as_me:$LINENO: checking
for $CC option to accept ISO C99
" >&5
3556 echo $ECHO_N "checking
for $CC option to accept ISO C99...
$ECHO_C" >&6; }
3557 if test "${ac_cv_prog_cc_c99+set}" = set; then
3558 echo $ECHO_N "(cached
) $ECHO_C" >&6
3560 ac_cv_prog_cc_c99=no
3562 cat >conftest.$ac_ext <<_ACEOF
3565 cat confdefs.h >>conftest.$ac_ext
3566 cat >>conftest.$ac_ext <<_ACEOF
3567 /* end confdefs.h. */
3569 #include <stdbool.h>
3574 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3575 #define debug(...) fprintf (stderr, __VA_ARGS__)
3576 #define showlist(...) puts (#__VA_ARGS__)
3577 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3579 test_varargs_macros (void)
3584 debug ("X
= %d
\n", x);
3585 showlist (The first, second, and third items.);
3586 report (x>y, "x is
%d but y is
%d
", x, y);
3589 // Check long long types.
3590 #define BIG64 18446744073709551615ull
3591 #define BIG32 4294967295ul
3592 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3594 your preprocessor is broken;
3598 your preprocessor is broken;
3600 static long long int bignum = -9223372036854775807LL;
3601 static unsigned long long int ubignum = BIG64;
3603 struct incomplete_array
3611 const wchar_t *name;
3615 typedef const char *ccp;
3618 test_restrict (ccp restrict text)
3620 // See if C++-style comments work.
3621 // Iterate through items via the restricted pointer.
3622 // Also check for declarations in for loops.
3623 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3628 // Check varargs and va_copy.
3630 test_varargs (const char *format, ...)
3633 va_start (args, format);
3635 va_copy (args_copy, args);
3646 str = va_arg (args_copy, const char *);
3649 number = va_arg (args_copy, int);
3652 fnumber = va_arg (args_copy, double);
3667 _Bool success = false;
3670 if (test_restrict ("String literal
") == 0)
3672 char *restrict newvar = "Another string
";
3675 test_varargs ("s
, d
' f .", "string", 65, 34.234);
3676 test_varargs_macros ();
3678 // Check flexible array members.
3679 struct incomplete_array *ia =
3680 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3682 for (int i = 0; i < ia->datasize; ++i)
3683 ia->data[i] = i * 1.234;
3685 // Check named initializers.
3686 struct named_init ni = {
3688 .name = L"Test wide string",
3689 .average = 543.34343,
3694 int dynamic_array[ni.number];
3695 dynamic_array[ni.number - 1] = 543;
3697 // work around unused variable warnings
3698 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x
'
3699 || dynamic_array[ni.number - 1] != 543);
3705 for ac_arg in '' -std=gnu99 -c99 -qlanglvl=extc99
3707 CC="$ac_save_CC $ac_arg"
3708 rm -f conftest.$ac_objext
3709 if { (ac_try="$ac_compile"
3711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3712 *) ac_try_echo=$ac_try;;
3714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3715 (eval "$ac_compile") 2>conftest.er1
3717 grep -v '^
*+' conftest.er1 >conftest.err
3719 cat conftest.err >&5
3720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3721 (exit $ac_status); } && {
3722 test -z "$ac_c_werror_flag" ||
3723 test ! -s conftest.err
3724 } && test -s conftest.$ac_objext; then
3725 ac_cv_prog_cc_c99=$ac_arg
3727 echo "$as_me: failed program was:" >&5
3728 sed 's
/^
/| /' conftest.$ac_ext >&5
3733 rm -f core conftest.err conftest.$ac_objext
3734 test "x$ac_cv_prog_cc_c99" != "xno" && break
3736 rm -f conftest.$ac_ext
3741 case "x$ac_cv_prog_cc_c99" in
3743 { echo "$as_me:$LINENO: result: none needed" >&5
3744 echo "${ECHO_T}none needed" >&6; } ;;
3746 { echo "$as_me:$LINENO: result: unsupported" >&5
3747 echo "${ECHO_T}unsupported" >&6; } ;;
3749 CC="$CC $ac_cv_prog_cc_c99"
3750 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
3751 echo "${ECHO_T}$ac_cv_prog_cc_c99" >&6; } ;;
3757 if test x"$ac_cv_prog_cc_c99" = "xno"; then
3758 { { echo "$as_me:$LINENO: error: ircd-ratbox requires a C99 capable compiler" >&5
3759 echo "$as_me: error: ircd-ratbox requires a C99 capable compiler" >&2;}
3760 { (exit 1); exit 1; }; }
3764 # Find a good install program. We prefer a C program (faster),
3765 # so one script is as good as another. But avoid the broken or
3766 # incompatible versions:
3767 # SysV /etc/install, /usr/sbin/install
3768 # SunOS /usr/etc/install
3769 # IRIX /sbin/install
3771 # AmigaOS /C/install, which installs bootblocks on floppy discs
3772 # AIX 4 /usr/bin/installbsd, which doesn't work without a
-g flag
3773 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3774 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3775 # OS/2's system install, which has a completely different semantic
3776 # ./install, which can be erroneously created by make from ./install.sh.
3777 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3778 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3779 if test -z "$INSTALL"; then
3780 if test "${ac_cv_path_install+set}" = set; then
3781 echo $ECHO_N "(cached) $ECHO_C" >&6
3783 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3787 test -z "$as_dir" && as_dir
=.
3788 # Account for people who put trailing slashes in PATH elements.
3790 .
/ | .
// | /cC
/* | \
3791 /etc
/* | /usr
/sbin
/* | /usr
/etc
/* | /sbin
/* | /usr
/afsws
/bin
/* | \
3792 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
3795 # OSF1 and SCO ODT 3.0 have their own names for install.
3796 # Don't use installbsd from OSF since it installs stuff as root
3798 for ac_prog
in ginstall scoinst
install; do
3799 for ac_exec_ext
in '' $ac_executable_extensions; do
3800 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3801 if test $ac_prog = install &&
3802 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3803 # AIX install. It has an incompatible calling convention.
3805 elif test $ac_prog = install &&
3806 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3807 # program-specific install script used by HP pwplus--don't use.
3810 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3823 if test "${ac_cv_path_install+set}" = set; then
3824 INSTALL
=$ac_cv_path_install
3826 # As a last resort, use the slow shell script. Don't cache a
3827 # value for INSTALL within a source directory, because that will
3828 # break other packages using the cache if that directory is
3829 # removed, or if the value is a relative name.
3830 INSTALL
=$ac_install_sh
3833 { echo "$as_me:$LINENO: result: $INSTALL" >&5
3834 echo "${ECHO_T}$INSTALL" >&6; }
3836 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3837 # It thinks the first close brace ends the variable substitution.
3838 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3840 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3842 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3844 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3845 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3846 if test "${ac_cv_path_GREP+set}" = set; then
3847 echo $ECHO_N "(cached) $ECHO_C" >&6
3849 # Extract the first word of "grep ggrep" to use in msg output
3850 if test -z "$GREP"; then
3851 set dummy
grep ggrep
; ac_prog_name
=$2
3852 if test "${ac_cv_path_GREP+set}" = set; then
3853 echo $ECHO_N "(cached) $ECHO_C" >&6
3855 ac_path_GREP_found
=false
3856 # Loop through the user's path and test for each of PROGNAME-LIST
3857 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3858 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3861 test -z "$as_dir" && as_dir
=.
3862 for ac_prog
in grep ggrep
; do
3863 for ac_exec_ext
in '' $ac_executable_extensions; do
3864 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3865 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3866 # Check for GNU ac_path_GREP and select it if it is found.
3867 # Check for GNU $ac_path_GREP
3868 case `"$ac_path_GREP" --version 2>&1` in
3870 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3873 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3876 cat "conftest.in" "conftest.in" >"conftest.tmp"
3877 mv "conftest.tmp" "conftest.in"
3878 cp "conftest.in" "conftest.nl"
3879 echo 'GREP' >> "conftest.nl"
3880 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null
|| break
3881 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 || break
3882 ac_count
=`expr $ac_count + 1`
3883 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3884 # Best one so far, save it but keep looking for a better one
3885 ac_cv_path_GREP
="$ac_path_GREP"
3886 ac_path_GREP_max
=$ac_count
3888 # 10*(2^10) chars as input seems more than enough
3889 test $ac_count -gt 10 && break
3891 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3895 $ac_path_GREP_found && break 3
3905 GREP
="$ac_cv_path_GREP"
3906 if test -z "$GREP"; then
3907 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3908 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3909 { (exit 1); exit 1; }; }
3913 ac_cv_path_GREP
=$GREP
3918 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3919 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3920 GREP
="$ac_cv_path_GREP"
3923 { echo "$as_me:$LINENO: checking for egrep" >&5
3924 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3925 if test "${ac_cv_path_EGREP+set}" = set; then
3926 echo $ECHO_N "(cached) $ECHO_C" >&6
3928 if echo a
| $GREP -E '(a|b)' >/dev
/null
2>&1
3929 then ac_cv_path_EGREP
="$GREP -E"
3931 # Extract the first word of "egrep" to use in msg output
3932 if test -z "$EGREP"; then
3933 set dummy
egrep; ac_prog_name
=$2
3934 if test "${ac_cv_path_EGREP+set}" = set; then
3935 echo $ECHO_N "(cached) $ECHO_C" >&6
3937 ac_path_EGREP_found
=false
3938 # Loop through the user's path and test for each of PROGNAME-LIST
3939 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3940 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3943 test -z "$as_dir" && as_dir
=.
3944 for ac_prog
in egrep; do
3945 for ac_exec_ext
in '' $ac_executable_extensions; do
3946 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3947 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3948 # Check for GNU ac_path_EGREP and select it if it is found.
3949 # Check for GNU $ac_path_EGREP
3950 case `"$ac_path_EGREP" --version 2>&1` in
3952 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3955 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3958 cat "conftest.in" "conftest.in" >"conftest.tmp"
3959 mv "conftest.tmp" "conftest.in"
3960 cp "conftest.in" "conftest.nl"
3961 echo 'EGREP' >> "conftest.nl"
3962 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null
|| break
3963 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 || break
3964 ac_count
=`expr $ac_count + 1`
3965 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3966 # Best one so far, save it but keep looking for a better one
3967 ac_cv_path_EGREP
="$ac_path_EGREP"
3968 ac_path_EGREP_max
=$ac_count
3970 # 10*(2^10) chars as input seems more than enough
3971 test $ac_count -gt 10 && break
3973 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3977 $ac_path_EGREP_found && break 3
3987 EGREP
="$ac_cv_path_EGREP"
3988 if test -z "$EGREP"; then
3989 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3990 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3991 { (exit 1); exit 1; }; }
3995 ac_cv_path_EGREP
=$EGREP
4001 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4002 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4003 EGREP
="$ac_cv_path_EGREP"
4006 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4007 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4008 if test "${ac_cv_path_SED+set}" = set; then
4009 echo $ECHO_N "(cached) $ECHO_C" >&6
4011 ac_script
=s
/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
/
4012 for ac_i
in 1 2 3 4 5 6 7; do
4013 ac_script
="$ac_script$as_nl$ac_script"
4015 echo "$ac_script" | sed 99q
>conftest.
sed
4016 $as_unset ac_script
|| ac_script
=
4017 # Extract the first word of "sed gsed" to use in msg output
4018 if test -z "$SED"; then
4019 set dummy
sed gsed
; ac_prog_name
=$2
4020 if test "${ac_cv_path_SED+set}" = set; then
4021 echo $ECHO_N "(cached) $ECHO_C" >&6
4023 ac_path_SED_found
=false
4024 # Loop through the user's path and test for each of PROGNAME-LIST
4025 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4029 test -z "$as_dir" && as_dir
=.
4030 for ac_prog
in sed gsed
; do
4031 for ac_exec_ext
in '' $ac_executable_extensions; do
4032 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
4033 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4034 # Check for GNU ac_path_SED and select it if it is found.
4035 # Check for GNU $ac_path_SED
4036 case `"$ac_path_SED" --version 2>&1` in
4038 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
4041 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4044 cat "conftest.in" "conftest.in" >"conftest.tmp"
4045 mv "conftest.tmp" "conftest.in"
4046 cp "conftest.in" "conftest.nl"
4047 echo '' >> "conftest.nl"
4048 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null
|| break
4049 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 || break
4050 ac_count
=`expr $ac_count + 1`
4051 if test $ac_count -gt ${ac_path_SED_max-0}; then
4052 # Best one so far, save it but keep looking for a better one
4053 ac_cv_path_SED
="$ac_path_SED"
4054 ac_path_SED_max
=$ac_count
4056 # 10*(2^10) chars as input seems more than enough
4057 test $ac_count -gt 10 && break
4059 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4063 $ac_path_SED_found && break 3
4073 SED
="$ac_cv_path_SED"
4074 if test -z "$SED"; then
4075 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
4076 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
4077 { (exit 1); exit 1; }; }
4085 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
4086 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
4087 SED
="$ac_cv_path_SED"
4095 # Check whether --enable-static was given.
4096 if test "${enable_static+set}" = set; then
4097 enableval
=$enable_static; p
=${PACKAGE-default}
4099 yes) enable_static
=yes ;;
4100 no
) enable_static
=no
;;
4103 # Look at the argument we got. We use all the common list separators.
4104 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
4105 for pkg
in $enableval; do
4107 if test "X$pkg" = "X$p"; then
4120 # Check whether --enable-shared was given.
4121 if test "${enable_shared+set}" = set; then
4122 enableval
=$enable_shared; p
=${PACKAGE-default}
4124 yes) enable_shared
=yes ;;
4125 no
) enable_shared
=no
;;
4128 # Look at the argument we got. We use all the common list separators.
4129 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
4130 for pkg
in $enableval; do
4132 if test "X$pkg" = "X$p"; then
4144 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4145 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
4146 # Check whether --enable-maintainer-mode was given.
4147 if test "${enable_maintainer_mode+set}" = set; then
4148 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
4150 USE_MAINTAINER_MODE
=no
4153 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4154 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
4155 if test $USE_MAINTAINER_MODE = yes; then
4156 MAINTAINER_MODE_TRUE
=
4157 MAINTAINER_MODE_FALSE
='#'
4159 MAINTAINER_MODE_TRUE
='#'
4160 MAINTAINER_MODE_FALSE
=
4163 MAINT
=$MAINTAINER_MODE_TRUE
4168 { echo "$as_me:$LINENO: checking for library containing strerror" >&5
4169 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
4170 if test "${ac_cv_search_strerror+set}" = set; then
4171 echo $ECHO_N "(cached) $ECHO_C" >&6
4173 ac_func_search_save_LIBS
=$LIBS
4174 cat >conftest.
$ac_ext <<_ACEOF
4177 cat confdefs.h
>>conftest.
$ac_ext
4178 cat >>conftest.
$ac_ext <<_ACEOF
4179 /* end confdefs.h. */
4181 /* Override any GCC internal prototype to avoid an error.
4182 Use char because int might match the return type of a GCC
4183 builtin and then its argument prototype would still apply. */
4196 for ac_lib
in '' cposix
; do
4197 if test -z "$ac_lib"; then
4198 ac_res
="none required"
4201 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4203 rm -f conftest.
$ac_objext conftest
$ac_exeext
4204 if { (ac_try
="$ac_link"
4206 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
4207 *) ac_try_echo=$ac_try;;
4209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4210 (eval "$ac_link") 2>conftest.er1
4212 grep -v '^ *+' conftest.er1 >conftest.err
4214 cat conftest.err >&5
4215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4216 (exit $ac_status); } && {
4217 test -z "$ac_c_werror_flag" ||
4218 test ! -s conftest.err
4219 } && test -s conftest$ac_exeext &&
4220 $as_test_x conftest$ac_exeext; then
4221 ac_cv_search_strerror=$ac_res
4223 echo "$as_me: failed program was:" >&5
4224 sed 's/^/| /' conftest.$ac_ext >&5
4229 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4231 if test "${ac_cv_search_strerror+set}" = set; then
4235 if test "${ac_cv_search_strerror+set}" = set; then
4238 ac_cv_search_strerror=no
4241 LIBS=$ac_func_search_save_LIBS
4243 { echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
4244 echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
4245 ac_res=$ac_cv_search_strerror
4246 if test "$ac_res" != no; then
4247 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4251 { echo "$as_me:$LINENO: checking for inline" >&5
4252 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
4253 if test "${ac_cv_c_inline+set}" = set; then
4254 echo $ECHO_N "(cached) $ECHO_C" >&6
4257 for ac_kw in inline __inline__ __inline; do
4258 cat >conftest.$ac_ext <<_ACEOF
4261 cat confdefs.h >>conftest.$ac_ext
4262 cat >>conftest.$ac_ext <<_ACEOF
4263 /* end confdefs.h. */
4266 static $ac_kw foo_t static_foo () {return 0; }
4267 $ac_kw foo_t foo () {return 0; }
4271 rm -f conftest.$ac_objext
4272 if { (ac_try="$ac_compile"
4274 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
4275 *) ac_try_echo
=$ac_try;;
4277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4278 (eval "$ac_compile") 2>conftest.er1
4280 grep -v '^ *+' conftest.er1
>conftest.err
4282 cat conftest.err
>&5
4283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4284 (exit $ac_status); } && {
4285 test -z "$ac_c_werror_flag" ||
4286 test ! -s conftest.err
4287 } && test -s conftest.
$ac_objext; then
4288 ac_cv_c_inline
=$ac_kw
4290 echo "$as_me: failed program was:" >&5
4291 sed 's/^/| /' conftest.
$ac_ext >&5
4296 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4297 test "$ac_cv_c_inline" != no
&& break
4301 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4302 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
4305 case $ac_cv_c_inline in
4308 case $ac_cv_c_inline in
4310 *) ac_val
=$ac_cv_c_inline;;
4312 cat >>confdefs.h
<<_ACEOF
4314 #define inline $ac_val
4320 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4321 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
4322 if test "${ac_cv_c_const+set}" = set; then
4323 echo $ECHO_N "(cached) $ECHO_C" >&6
4325 cat >conftest.
$ac_ext <<_ACEOF
4328 cat confdefs.h
>>conftest.
$ac_ext
4329 cat >>conftest.
$ac_ext <<_ACEOF
4330 /* end confdefs.h. */
4335 /* FIXME: Include the comments suggested by Paul. */
4337 /* Ultrix mips cc rejects this. */
4338 typedef int charset[2];
4340 /* SunOS 4.1.1 cc rejects this. */
4341 char const *const *pcpcc;
4343 /* NEC SVR4.0.2 mips cc rejects this. */
4344 struct point {int x, y;};
4345 static struct point const zero = {0,0};
4346 /* AIX XL C 1.02.0.0 rejects this.
4347 It does not let you subtract one const X* pointer from another in
4348 an arm of an if-expression whose if-part is not a constant
4350 const char *g = "string";
4351 pcpcc = &g + (g ? g-g : 0);
4352 /* HPUX 7.0 cc rejects these. */
4354 ppc = (char**) pcpcc;
4355 pcpcc = (char const *const *) ppc;
4356 { /* SCO 3.2v4 cc rejects this. */
4358 char const *s = 0 ? (char *) 0 : (char const *) 0;
4363 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4365 const int *foo = &x[0];
4368 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4369 typedef const int *iptr;
4373 { /* AIX XL C 1.02.0.0 rejects this saying
4374 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4375 struct s { int j; const int *ap[3]; };
4376 struct s *b; b->j = 5;
4378 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4382 return !cs[0] && !zero.x;
4389 rm -f conftest.
$ac_objext
4390 if { (ac_try
="$ac_compile"
4392 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
4393 *) ac_try_echo=$ac_try;;
4395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4396 (eval "$ac_compile") 2>conftest.er1
4398 grep -v '^ *+' conftest.er1 >conftest.err
4400 cat conftest.err >&5
4401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4402 (exit $ac_status); } && {
4403 test -z "$ac_c_werror_flag" ||
4404 test ! -s conftest.err
4405 } && test -s conftest.$ac_objext; then
4408 echo "$as_me: failed program was:" >&5
4409 sed 's/^/| /' conftest.$ac_ext >&5
4414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4416 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4417 echo "${ECHO_T}$ac_cv_c_const" >&6; }
4418 if test $ac_cv_c_const = no; then
4420 cat >>confdefs.h <<\_ACEOF
4426 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4427 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
4428 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4429 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
4430 echo $ECHO_N "(cached) $ECHO_C" >&6
4432 cat >conftest.make <<\_ACEOF
4435 @echo '@@@%%%=$(MAKE)=@@@%%%'
4437 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4438 case `${MAKE-make} -f conftest.
make 2>/dev
/null
` in
4440 eval ac_cv_prog_make_${ac_make}_set=yes;;
4442 eval ac_cv_prog_make_${ac_make}_set=no;;
4446 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4447 { echo "$as_me:$LINENO: result: yes" >&5
4448 echo "${ECHO_T}yes" >&6; }
4451 { echo "$as_me:$LINENO: result: no" >&5
4452 echo "${ECHO_T}no" >&6; }
4453 SET_MAKE="MAKE=${MAKE-make}"
4456 # Find a good install program. We prefer a C program (faster),
4457 # so one script is as good as another. But avoid the broken or
4458 # incompatible versions:
4459 # SysV /etc/install, /usr/sbin/install
4460 # SunOS /usr/etc/install
4461 # IRIX /sbin/install
4463 # AmigaOS /C/install, which installs bootblocks on floppy discs
4464 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4465 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4466 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4467 # OS/2's system install, which has a completely different semantic
4468 # ./install, which can be erroneously created by make from ./install.sh.
4469 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4470 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4471 if test -z "$INSTALL"; then
4472 if test "${ac_cv_path_install+set}" = set; then
4473 echo $ECHO_N "(cached) $ECHO_C" >&6
4475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4479 test -z "$as_dir" && as_dir=.
4480 # Account for people who put trailing slashes in PATH elements.
4482 ./ | .// | /cC/* | \
4483 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4484 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4487 # OSF1 and SCO ODT 3.0 have their own names for install.
4488 # Don't use installbsd from OSF since it installs stuff as root
4490 for ac_prog in ginstall scoinst install; do
4491 for ac_exec_ext in '' $ac_executable_extensions; do
4492 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4493 if test $ac_prog = install &&
4494 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4495 # AIX install. It has an incompatible calling convention.
4497 elif test $ac_prog = install &&
4498 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4499 # program-specific install script used by HP pwplus--don't use.
4502 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4515 if test "${ac_cv_path_install+set}" = set; then
4516 INSTALL=$ac_cv_path_install
4518 # As a last resort, use the slow shell script. Don't cache a
4519 # value for INSTALL within a source directory, because that will
4520 # break other packages using the cache if that directory is
4521 # removed, or if the value is a relative name.
4522 INSTALL=$ac_install_sh
4525 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4526 echo "${ECHO_T}$INSTALL" >&6; }
4528 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4529 # It thinks the first close brace ends the variable substitution.
4530 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4532 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4534 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4536 # Extract the first word of "automake", so it can be a program name with args.
4537 set dummy automake; ac_word=$2
4538 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4539 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4540 if test "${ac_cv_path_AUTOMAKE+set}" = set; then
4541 echo $ECHO_N "(cached) $ECHO_C" >&6
4545 ac_cv_path_AUTOMAKE="$AUTOMAKE" # Let the user override the test with a path.
4548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4552 test -z "$as_dir" && as_dir=.
4553 for ac_exec_ext in '' $ac_executable_extensions; do
4554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4555 ac_cv_path_AUTOMAKE="$as_dir/$ac_word$ac_exec_ext"
4556 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4566 AUTOMAKE=$ac_cv_path_AUTOMAKE
4567 if test -n "$AUTOMAKE"; then
4568 { echo "$as_me:$LINENO: result: $AUTOMAKE" >&5
4569 echo "${ECHO_T}$AUTOMAKE" >&6; }
4571 { echo "$as_me:$LINENO: result: no" >&5
4572 echo "${ECHO_T}no" >&6; }
4576 # Extract the first word of "aclocal", so it can be a program name with args.
4577 set dummy aclocal; ac_word=$2
4578 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4579 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4580 if test "${ac_cv_path_ACLOCAL+set}" = set; then
4581 echo $ECHO_N "(cached) $ECHO_C" >&6
4585 ac_cv_path_ACLOCAL="$ACLOCAL" # Let the user override the test with a path.
4588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4592 test -z "$as_dir" && as_dir=.
4593 for ac_exec_ext in '' $ac_executable_extensions; do
4594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4595 ac_cv_path_ACLOCAL="$as_dir/$ac_word$ac_exec_ext"
4596 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4606 ACLOCAL=$ac_cv_path_ACLOCAL
4607 if test -n "$ACLOCAL"; then
4608 { echo "$as_me:$LINENO: result: $ACLOCAL" >&5
4609 echo "${ECHO_T}$ACLOCAL" >&6; }
4611 { echo "$as_me:$LINENO: result: no" >&5
4612 echo "${ECHO_T}no" >&6; }
4616 # Extract the first word of "autoheader", so it can be a program name with args.
4617 set dummy autoheader; ac_word=$2
4618 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4619 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4620 if test "${ac_cv_path_AUTOHEADER+set}" = set; then
4621 echo $ECHO_N "(cached) $ECHO_C" >&6
4625 ac_cv_path_AUTOHEADER="$AUTOHEADER" # Let the user override the test with a path.
4628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4632 test -z "$as_dir" && as_dir=.
4633 for ac_exec_ext in '' $ac_executable_extensions; do
4634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4635 ac_cv_path_AUTOHEADER="$as_dir/$ac_word$ac_exec_ext"
4636 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4646 AUTOHEADER=$ac_cv_path_AUTOHEADER
4647 if test -n "$AUTOHEADER"; then
4648 { echo "$as_me:$LINENO: result: $AUTOHEADER" >&5
4649 echo "${ECHO_T}$AUTOHEADER" >&6; }
4651 { echo "$as_me:$LINENO: result: no" >&5
4652 echo "${ECHO_T}no" >&6; }
4656 # Extract the first word of "as", so it can be a program name with args.
4657 set dummy as; ac_word=$2
4658 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4659 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4660 if test "${ac_cv_path_AS+set}" = set; then
4661 echo $ECHO_N "(cached) $ECHO_C" >&6
4665 ac_cv_path_AS="$AS" # Let the user override the test with a path.
4668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4672 test -z "$as_dir" && as_dir=.
4673 for ac_exec_ext in '' $ac_executable_extensions; do
4674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4675 ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext"
4676 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4687 if test -n "$AS"; then
4688 { echo "$as_me:$LINENO: result: $AS" >&5
4689 echo "${ECHO_T}$AS" >&6; }
4691 { echo "$as_me:$LINENO: result: no" >&5
4692 echo "${ECHO_T}no" >&6; }
4696 # Extract the first word of "rm", so it can be a program name with args.
4697 set dummy rm; ac_word=$2
4698 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4699 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4700 if test "${ac_cv_path_RM+set}" = set; then
4701 echo $ECHO_N "(cached) $ECHO_C" >&6
4705 ac_cv_path_RM="$RM" # Let the user override the test with a path.
4708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4712 test -z "$as_dir" && as_dir=.
4713 for ac_exec_ext in '' $ac_executable_extensions; do
4714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4715 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4716 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4727 if test -n "$RM"; then
4728 { echo "$as_me:$LINENO: result: $RM" >&5
4729 echo "${ECHO_T}$RM" >&6; }
4731 { echo "$as_me:$LINENO: result: no" >&5
4732 echo "${ECHO_T}no" >&6; }
4736 # Extract the first word of "cp", so it can be a program name with args.
4737 set dummy cp; ac_word=$2
4738 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4739 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4740 if test "${ac_cv_path_CP+set}" = set; then
4741 echo $ECHO_N "(cached) $ECHO_C" >&6
4745 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4752 test -z "$as_dir" && as_dir=.
4753 for ac_exec_ext in '' $ac_executable_extensions; do
4754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4755 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4756 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4767 if test -n "$CP"; then
4768 { echo "$as_me:$LINENO: result: $CP" >&5
4769 echo "${ECHO_T}$CP" >&6; }
4771 { echo "$as_me:$LINENO: result: no" >&5
4772 echo "${ECHO_T}no" >&6; }
4776 # Extract the first word of "mv", so it can be a program name with args.
4777 set dummy mv; ac_word=$2
4778 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4779 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4780 if test "${ac_cv_path_MV+set}" = set; then
4781 echo $ECHO_N "(cached) $ECHO_C" >&6
4785 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4792 test -z "$as_dir" && as_dir=.
4793 for ac_exec_ext in '' $ac_executable_extensions; do
4794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4795 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4796 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4807 if test -n "$MV"; then
4808 { echo "$as_me:$LINENO: result: $MV" >&5
4809 echo "${ECHO_T}$MV" >&6; }
4811 { echo "$as_me:$LINENO: result: no" >&5
4812 echo "${ECHO_T}no" >&6; }
4816 # Extract the first word of "ln", so it can be a program name with args.
4817 set dummy ln; ac_word=$2
4818 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4819 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4820 if test "${ac_cv_path_LN+set}" = set; then
4821 echo $ECHO_N "(cached) $ECHO_C" >&6
4825 ac_cv_path_LN="$LN" # Let the user override the test with a path.
4828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4832 test -z "$as_dir" && as_dir=.
4833 for ac_exec_ext in '' $ac_executable_extensions; do
4834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4835 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
4836 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4847 if test -n "$LN"; then
4848 { echo "$as_me:$LINENO: result: $LN" >&5
4849 echo "${ECHO_T}$LN" >&6; }
4851 { echo "$as_me:$LINENO: result: no" >&5
4852 echo "${ECHO_T}no" >&6; }
4856 # Extract the first word of "ar", so it can be a program name with args.
4857 set dummy ar; ac_word=$2
4858 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4859 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4860 if test "${ac_cv_path_AR+set}" = set; then
4861 echo $ECHO_N "(cached) $ECHO_C" >&6
4865 ac_cv_path_AR="$AR" # Let the user override the test with a path.
4868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4872 test -z "$as_dir" && as_dir=.
4873 for ac_exec_ext in '' $ac_executable_extensions; do
4874 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4875 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4876 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4887 if test -n "$AR"; then
4888 { echo "$as_me:$LINENO: result: $AR" >&5
4889 echo "${ECHO_T}$AR" >&6; }
4891 { echo "$as_me:$LINENO: result: no" >&5
4892 echo "${ECHO_T}no" >&6; }
4896 # Extract the first word of "ld", so it can be a program name with args.
4897 set dummy ld; ac_word=$2
4898 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4899 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4900 if test "${ac_cv_path_LD+set}" = set; then
4901 echo $ECHO_N "(cached) $ECHO_C" >&6
4905 ac_cv_path_LD="$LD" # Let the user override the test with a path.
4908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4912 test -z "$as_dir" && as_dir=.
4913 for ac_exec_ext in '' $ac_executable_extensions; do
4914 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4915 ac_cv_path_LD="$as_dir/$ac_word$ac_exec_ext"
4916 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4927 if test -n "$LD"; then
4928 { echo "$as_me:$LINENO: result: $LD" >&5
4929 echo "${ECHO_T}$LD" >&6; }
4931 { echo "$as_me:$LINENO: result: no" >&5
4932 echo "${ECHO_T}no" >&6; }
4936 # Extract the first word of "ranlib", so it can be a program name with args.
4937 set dummy ranlib; ac_word=$2
4938 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4939 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4940 if test "${ac_cv_path_RANLIB+set}" = set; then
4941 echo $ECHO_N "(cached) $ECHO_C" >&6
4945 ac_cv_path_RANLIB="$RANLIB" # Let the user override the test with a path.
4948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4952 test -z "$as_dir" && as_dir=.
4953 for ac_exec_ext in '' $ac_executable_extensions; do
4954 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4955 ac_cv_path_RANLIB="$as_dir/$ac_word$ac_exec_ext"
4956 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4966 RANLIB=$ac_cv_path_RANLIB
4967 if test -n "$RANLIB"; then
4968 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4969 echo "${ECHO_T}$RANLIB" >&6; }
4971 { echo "$as_me:$LINENO: result: no" >&5
4972 echo "${ECHO_T}no" >&6; }
4976 # Extract the first word of "touch", so it can be a program name with args.
4977 set dummy touch; ac_word=$2
4978 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4979 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4980 if test "${ac_cv_path_TOUCH+set}" = set; then
4981 echo $ECHO_N "(cached) $ECHO_C" >&6
4985 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
4988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4992 test -z "$as_dir" && as_dir=.
4993 for ac_exec_ext in '' $ac_executable_extensions; do
4994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4995 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
4996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5006 TOUCH=$ac_cv_path_TOUCH
5007 if test -n "$TOUCH"; then
5008 { echo "$as_me:$LINENO: result: $TOUCH" >&5
5009 echo "${ECHO_T}$TOUCH" >&6; }
5011 { echo "$as_me:$LINENO: result: no" >&5
5012 echo "${ECHO_T}no" >&6; }
5017 ac_cpp='$CPP $CPPFLAGS'
5018 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5019 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5020 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5023 # Check whether --enable-fast-install was given.
5024 if test "${enable_fast_install+set}" = set; then
5025 enableval=$enable_fast_install; p=${PACKAGE-default}
5027 yes) enable_fast_install=yes ;;
5028 no) enable_fast_install=no ;;
5030 enable_fast_install=no
5031 # Look at the argument we got. We use all the common list separators.
5032 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5033 for pkg in $enableval; do
5035 if test "X$pkg" = "X$p"; then
5036 enable_fast_install=yes
5043 enable_fast_install=yes
5047 # Make sure we can run config.sub.
5048 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5049 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5050 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5051 { (exit 1); exit 1; }; }
5053 { echo "$as_me:$LINENO: checking build system type" >&5
5054 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5055 if test "${ac_cv_build+set}" = set; then
5056 echo $ECHO_N "(cached) $ECHO_C" >&6
5058 ac_build_alias=$build_alias
5059 test "x$ac_build_alias" = x &&
5060 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5061 test "x$ac_build_alias" = x &&
5062 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5063 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5064 { (exit 1); exit 1; }; }
5065 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5066 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5067 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5068 { (exit 1); exit 1; }; }
5071 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5072 echo "${ECHO_T}$ac_cv_build" >&6; }
5073 case $ac_cv_build in
5075 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5076 echo "$as_me: error: invalid value of canonical build" >&2;}
5077 { (exit 1); exit 1; }; };;
5080 ac_save_IFS=$IFS; IFS='-'
5086 # Remember, the first character of IFS is used to create $*,
5087 # except with old shells:
5090 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5093 { echo "$as_me:$LINENO: checking host system type" >&5
5094 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5095 if test "${ac_cv_host+set}" = set; then
5096 echo $ECHO_N "(cached) $ECHO_C" >&6
5098 if test "x$host_alias" = x; then
5099 ac_cv_host=$ac_cv_build
5101 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5102 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5103 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5104 { (exit 1); exit 1; }; }
5108 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5109 echo "${ECHO_T}$ac_cv_host" >&6; }
5112 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5113 echo "$as_me: error: invalid value of canonical host" >&2;}
5114 { (exit 1); exit 1; }; };;
5117 ac_save_IFS=$IFS; IFS='-'
5123 # Remember, the first character of IFS is used to create $*,
5124 # except with old shells:
5127 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5130 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5131 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5132 if test "${lt_cv_path_SED+set}" = set; then
5133 echo $ECHO_N "(cached) $ECHO_C" >&6
5135 # Loop through the user's path and test for sed and gsed.
5136 # Then use that list of sed's as ones to test for truncation.
5137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5141 test -z "$as_dir" && as_dir=.
5142 for lt_ac_prog in sed gsed; do
5143 for ac_exec_ext in '' $ac_executable_extensions; do
5144 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
5145 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5153 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5154 # along with /bin/sed that truncates output.
5155 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5156 test ! -f $lt_ac_sed && continue
5157 cat /dev/null > conftest.in
5159 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5160 # Check for GNU sed and select it if it is found.
5161 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5162 lt_cv_path_SED=$lt_ac_sed
5166 cat conftest.in conftest.in >conftest.tmp
5167 mv conftest.tmp conftest.in
5168 cp conftest.in conftest.nl
5170 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5171 cmp -s conftest.out conftest.nl || break
5172 # 10000 chars as input seems more than enough
5173 test $lt_ac_count -gt 10 && break
5174 lt_ac_count=`expr $lt_ac_count + 1`
5175 if test $lt_ac_count -gt $lt_ac_max; then
5176 lt_ac_max=$lt_ac_count
5177 lt_cv_path_SED=$lt_ac_sed
5186 { echo "$as_me:$LINENO: result: $SED" >&5
5187 echo "${ECHO_T}$SED" >&6; }
5190 # Check whether --with-gnu-ld was given.
5191 if test "${with_gnu_ld+set}" = set; then
5192 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5198 if test "$GCC" = yes; then
5199 # Check if gcc -print-prog-name=ld gives a path.
5200 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5201 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
5204 # gcc leaves a trailing carriage return which upsets mingw
5205 ac_prog=`($CC -print-prog-name=ld
) 2>&5 | tr -d '\015'` ;;
5207 ac_prog=`($CC -print-prog-name=ld
) 2>&5` ;;
5210 # Accept absolute paths.
5212 re_direlt='/[^/][^/]*/\.\./'
5213 # Canonicalize the pathname of ld
5214 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5215 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5216 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5218 test -z "$LD" && LD="$ac_prog"
5221 # If it fails, then pretend we aren't using GCC.
5225 # If it is relative, then search for the first ld in PATH.
5229 elif test "$with_gnu_ld" = yes; then
5230 { echo "$as_me:$LINENO: checking for GNU ld" >&5
5231 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5233 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5234 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5236 if test "${lt_cv_path_LD+set}" = set; then
5237 echo $ECHO_N "(cached) $ECHO_C" >&6
5239 if test -z "$LD"; then
5240 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5241 for ac_dir in $PATH; do
5243 test -z "$ac_dir" && ac_dir=.
5244 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5245 lt_cv_path_LD="$ac_dir/$ac_prog"
5246 # Check to see if the program is GNU ld. I'd rather use --version,
5247 # but apparently some variants of GNU ld only accept -v.
5248 # Break only if it was the GNU/non-GNU ld that we prefer.
5249 case `"$lt_cv_path_LD" -v 2>&1 </dev
/null
` in
5250 *GNU* | *'with BFD'*)
5251 test "$with_gnu_ld" != no && break
5254 test "$with_gnu_ld" != yes && break
5261 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5266 if test -n "$LD"; then
5267 { echo "$as_me:$LINENO: result: $LD" >&5
5268 echo "${ECHO_T}$LD" >&6; }
5270 { echo "$as_me:$LINENO: result: no" >&5
5271 echo "${ECHO_T}no" >&6; }
5273 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5274 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5275 { (exit 1); exit 1; }; }
5276 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5277 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5278 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5279 echo $ECHO_N "(cached) $ECHO_C" >&6
5281 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5282 case `$LD -v 2>&1 </dev
/null
` in
5283 *GNU* | *'with BFD'*)
5284 lt_cv_prog_gnu_ld=yes
5287 lt_cv_prog_gnu_ld=no
5291 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5292 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5293 with_gnu_ld=$lt_cv_prog_gnu_ld
5296 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5297 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
5298 if test "${lt_cv_ld_reload_flag+set}" = set; then
5299 echo $ECHO_N "(cached) $ECHO_C" >&6
5301 lt_cv_ld_reload_flag='-r'
5303 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5304 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
5305 reload_flag=$lt_cv_ld_reload_flag
5306 case $reload_flag in
5308 *) reload_flag=" $reload_flag" ;;
5310 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5313 if test "$GCC" = yes; then
5314 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5316 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5321 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5322 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5323 if test "${lt_cv_path_NM+set}" = set; then
5324 echo $ECHO_N "(cached) $ECHO_C" >&6
5326 if test -n "$NM"; then
5327 # Let the user override the test.
5330 lt_nm_to_check="${ac_tool_prefix}nm"
5331 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5332 lt_nm_to_check="$lt_nm_to_check nm"
5334 for lt_tmp_nm in $lt_nm_to_check; do
5335 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5336 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5338 test -z "$ac_dir" && ac_dir=.
5339 tmp_nm="$ac_dir/$lt_tmp_nm"
5340 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5341 # Check to see if the nm accepts a BSD-compat flag.
5342 # Adding the `sed 1q
' prevents false positives on HP-UX, which says:
5343 # nm: unknown option "B" ignored
5344 # Tru64's nm complains that
/dev
/null is an invalid object
file
5345 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5346 */dev
/null
* | *'Invalid file or object type'*)
5347 lt_cv_path_NM
="$tmp_nm -B"
5351 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5353 lt_cv_path_NM
="$tmp_nm -p"
5357 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5358 continue # so that we can try to find one that supports BSD flags
5367 test -z "$lt_cv_path_NM" && lt_cv_path_NM
=nm
5370 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5371 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5374 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5375 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5377 if test "$LN_S" = "ln -s"; then
5378 { echo "$as_me:$LINENO: result: yes" >&5
5379 echo "${ECHO_T}yes" >&6; }
5381 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5382 echo "${ECHO_T}no, using $LN_S" >&6; }
5385 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5386 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
5387 if test "${lt_cv_deplibs_check_method+set}" = set; then
5388 echo $ECHO_N "(cached) $ECHO_C" >&6
5390 lt_cv_file_magic_cmd
='$MAGIC_CMD'
5391 lt_cv_file_magic_test_file
=
5392 lt_cv_deplibs_check_method
='unknown'
5393 # Need to set the preceding variable on all platforms that support
5394 # interlibrary dependencies.
5395 # 'none' -- dependencies not supported.
5396 # `unknown' -- same as none, but documents that we really don't know.
5397 # 'pass_all' -- all dependencies passed with no checks.
5398 # 'test_compile' -- check by making test program.
5399 # 'file_magic [[regex]]' -- check by looking for files in library path
5400 # which responds to the $file_magic_cmd with a given extended regex.
5401 # If you have `file' or equivalent on your system and you're not sure
5402 # whether `pass_all' will *always* work, you probably want this one.
5406 lt_cv_deplibs_check_method
=pass_all
5410 lt_cv_deplibs_check_method
=pass_all
5414 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5415 lt_cv_file_magic_cmd
='/usr/bin/file -L'
5416 lt_cv_file_magic_test_file
=/shlib
/libc.so
5420 # func_win32_libid is a shell function defined in ltmain.sh
5421 lt_cv_deplibs_check_method
='file_magic ^x86 archive import|^x86 DLL'
5422 lt_cv_file_magic_cmd
='func_win32_libid'
5426 # Base MSYS/MinGW do not provide the 'file' command needed by
5427 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5428 # unless we find 'file', for example because we are cross-compiling.
5429 if ( file / ) >/dev
/null
2>&1; then
5430 lt_cv_deplibs_check_method
='file_magic ^x86 archive import|^x86 DLL'
5431 lt_cv_file_magic_cmd
='func_win32_libid'
5433 lt_cv_deplibs_check_method
='file_magic file format pei*-i386(.*architecture: i386)?'
5434 lt_cv_file_magic_cmd
='$OBJDUMP -f'
5438 darwin
* | rhapsody
*)
5439 lt_cv_deplibs_check_method
=pass_all
5442 freebsd
* | dragonfly
*)
5443 if echo __ELF__
| $CC -E - | grep __ELF__
> /dev
/null
; then
5446 # Not sure whether the presence of OpenBSD here was a mistake.
5447 # Let's accept both of them until this is cleared up.
5448 lt_cv_deplibs_check_method
='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5449 lt_cv_file_magic_cmd
=/usr
/bin
/file
5450 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so.*`
5454 lt_cv_deplibs_check_method
=pass_all
5459 lt_cv_deplibs_check_method
=pass_all
5462 hpux10.20
* | hpux11
*)
5463 lt_cv_file_magic_cmd
=/usr
/bin
/file
5466 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5467 lt_cv_file_magic_test_file
=/usr
/lib
/hpux
32/libc.so
5470 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]'
5471 lt_cv_file_magic_test_file
=/usr
/lib
/pa
20_
64/libc.sl
5474 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5475 lt_cv_file_magic_test_file
=/usr
/lib
/libc.sl
5481 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5482 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so|\.a)$'
5485 irix5
* | irix6
* | nonstopux
*)
5487 *-32|*"-32 ") libmagic
=32-bit;;
5488 *-n32|*"-n32 ") libmagic
=N32
;;
5489 *-64|*"-64 ") libmagic
=64-bit;;
5490 *) libmagic
=never
-match;;
5492 lt_cv_deplibs_check_method
=pass_all
5495 # This must be Linux ELF.
5496 linux
* | k
*bsd
*-gnu)
5497 lt_cv_deplibs_check_method
=pass_all
5500 netbsd
* | netbsdelf
*-gnu)
5501 if echo __ELF__
| $CC -E - | grep __ELF__
> /dev
/null
; then
5502 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5504 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5509 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5510 lt_cv_file_magic_cmd
=/usr
/bin
/file
5511 lt_cv_file_magic_test_file
=/usr
/lib
/libnls.so
5515 lt_cv_deplibs_check_method
=unknown
5519 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5520 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5522 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5526 osf3
* | osf4
* | osf5
*)
5527 lt_cv_deplibs_check_method
=pass_all
5531 lt_cv_deplibs_check_method
=pass_all
5535 lt_cv_deplibs_check_method
=pass_all
5539 case $host_vendor in
5541 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]'
5542 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so*`
5545 lt_cv_deplibs_check_method
=pass_all
5548 lt_cv_file_magic_cmd
='/bin/file'
5549 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5552 lt_cv_file_magic_cmd
='/bin/file'
5553 lt_cv_deplibs_check_method
="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5554 lt_cv_file_magic_test_file
=/lib
/libc.so
5557 lt_cv_deplibs_check_method
=pass_all
5560 lt_cv_deplibs_check_method
=pass_all
5565 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
5566 lt_cv_deplibs_check_method
=pass_all
5571 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5572 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
5573 file_magic_cmd
=$lt_cv_file_magic_cmd
5574 deplibs_check_method
=$lt_cv_deplibs_check_method
5575 test -z "$deplibs_check_method" && deplibs_check_method
=unknown
5580 # If no C compiler was specified, use CC.
5583 # If no C compiler flags were specified, use CFLAGS.
5584 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
5586 # Allow CC to be a program name with arguments.
5589 # Check whether --enable-libtool-lock was given.
5590 if test "${enable_libtool_lock+set}" = set; then
5591 enableval
=$enable_libtool_lock;
5594 test "x$enable_libtool_lock" != xno
&& enable_libtool_lock
=yes
5596 # Some flags need to be propagated to the compiler or linker for good
5600 # Find out which ABI we are using.
5601 echo 'int i;' > conftest.
$ac_ext
5602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5603 (eval $ac_compile) 2>&5
5605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5606 (exit $ac_status); }; then
5607 case `/usr/bin/file conftest.$ac_objext` in
5619 # Find out which ABI we are using.
5620 echo '#line 5620 "configure"' > conftest.
$ac_ext
5621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5622 (eval $ac_compile) 2>&5
5624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5625 (exit $ac_status); }; then
5626 if test "$lt_cv_prog_gnu_ld" = yes; then
5627 case `/usr/bin/file conftest.$ac_objext` in
5629 LD
="${LD-ld} -melf32bsmip"
5632 LD
="${LD-ld} -melf32bmipn32"
5635 LD
="${LD-ld} -melf64bmip"
5639 case `/usr/bin/file conftest.$ac_objext` in
5655 x86_64
-*kfreebsd
*-gnu|x86_64
-*linux
*|ppc
*-*linux
*|powerpc
*-*linux
*| \
5656 s390
*-*linux
*|sparc
*-*linux
*)
5657 # Find out which ABI we are using.
5658 echo 'int i;' > conftest.
$ac_ext
5659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5660 (eval $ac_compile) 2>&5
5662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5663 (exit $ac_status); }; then
5664 case `/usr/bin/file conftest.o` in
5667 x86_64
-*kfreebsd
*-gnu)
5668 LD
="${LD-ld} -m elf_i386_fbsd"
5671 LD
="${LD-ld} -m elf_i386"
5673 ppc64
-*linux
*|powerpc64
-*linux
*)
5674 LD
="${LD-ld} -m elf32ppclinux"
5677 LD
="${LD-ld} -m elf_s390"
5680 LD
="${LD-ld} -m elf32_sparc"
5686 x86_64
-*kfreebsd
*-gnu)
5687 LD
="${LD-ld} -m elf_x86_64_fbsd"
5690 LD
="${LD-ld} -m elf_x86_64"
5692 ppc
*-*linux
*|powerpc
*-*linux
*)
5693 LD
="${LD-ld} -m elf64ppc"
5696 LD
="${LD-ld} -m elf64_s390"
5699 LD
="${LD-ld} -m elf64_sparc"
5709 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5710 SAVE_CFLAGS
="$CFLAGS"
5711 CFLAGS
="$CFLAGS -belf"
5712 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5713 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
5714 if test "${lt_cv_cc_needs_belf+set}" = set; then
5715 echo $ECHO_N "(cached) $ECHO_C" >&6
5718 ac_cpp
='$CPP $CPPFLAGS'
5719 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5720 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5721 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5723 cat >conftest.
$ac_ext <<_ACEOF
5726 cat confdefs.h
>>conftest.
$ac_ext
5727 cat >>conftest.
$ac_ext <<_ACEOF
5728 /* end confdefs.h. */
5738 rm -f conftest.
$ac_objext conftest
$ac_exeext
5739 if { (ac_try
="$ac_link"
5741 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
5742 *) ac_try_echo=$ac_try;;
5744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5745 (eval "$ac_link") 2>conftest.er1
5747 grep -v '^ *+' conftest.er1 >conftest.err
5749 cat conftest.err >&5
5750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5751 (exit $ac_status); } && {
5752 test -z "$ac_c_werror_flag" ||
5753 test ! -s conftest.err
5754 } && test -s conftest$ac_exeext &&
5755 $as_test_x conftest$ac_exeext; then
5756 lt_cv_cc_needs_belf=yes
5758 echo "$as_me: failed program was:" >&5
5759 sed 's/^/| /' conftest.$ac_ext >&5
5761 lt_cv_cc_needs_belf=no
5764 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5765 conftest$ac_exeext conftest.$ac_ext
5767 ac_cpp='$CPP $CPPFLAGS'
5768 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5769 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5770 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5773 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5774 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
5775 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5776 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5777 CFLAGS="$SAVE_CFLAGS"
5781 # Find out which ABI we are using.
5782 echo 'int i;' > conftest.$ac_ext
5783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5784 (eval $ac_compile) 2>&5
5786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5787 (exit $ac_status); }; then
5788 case `/usr
/bin
/file conftest.o
` in
5790 case $lt_cv_prog_gnu_ld in
5791 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5793 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5807 need_locks="$enable_libtool_lock"
5811 ac_cpp='$CPP $CPPFLAGS'
5812 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5813 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5814 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5815 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5816 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5817 # On Suns, sometimes $CPP names a directory.
5818 if test -n "$CPP" && test -d "$CPP"; then
5821 if test -z "$CPP"; then
5822 if test "${ac_cv_prog_CPP+set}" = set; then
5823 echo $ECHO_N "(cached) $ECHO_C" >&6
5825 # Double quotes because CPP needs to be expanded
5826 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5829 for ac_c_preproc_warn_flag in '' yes
5831 # Use a header file that comes with gcc, so configuring glibc
5832 # with a fresh cross-compiler works.
5833 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5834 # <limits.h> exists even on freestanding compilers.
5835 # On the NeXT, cc -E runs the code through the compiler's parser,
5836 # not just through cpp. "Syntax error" is here to catch this case.
5837 cat >conftest.$ac_ext <<_ACEOF
5840 cat confdefs.h >>conftest.$ac_ext
5841 cat >>conftest.$ac_ext <<_ACEOF
5842 /* end confdefs.h. */
5844 # include <limits.h>
5846 # include <assert.h>
5850 if { (ac_try="$ac_cpp conftest.$ac_ext"
5852 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
5853 *) ac_try_echo
=$ac_try;;
5855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5856 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5858 grep -v '^ *+' conftest.er1
>conftest.err
5860 cat conftest.err
>&5
5861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5862 (exit $ac_status); } >/dev
/null
&& {
5863 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5864 test ! -s conftest.err
5868 echo "$as_me: failed program was:" >&5
5869 sed 's/^/| /' conftest.
$ac_ext >&5
5871 # Broken: fails on valid input.
5875 rm -f conftest.err conftest.
$ac_ext
5877 # OK, works on sane cases. Now check whether nonexistent headers
5878 # can be detected and how.
5879 cat >conftest.
$ac_ext <<_ACEOF
5882 cat confdefs.h
>>conftest.
$ac_ext
5883 cat >>conftest.
$ac_ext <<_ACEOF
5884 /* end confdefs.h. */
5885 #include <ac_nonexistent.h>
5887 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5889 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
5890 *) ac_try_echo=$ac_try;;
5892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5893 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5895 grep -v '^ *+' conftest.er1 >conftest.err
5897 cat conftest.err >&5
5898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5899 (exit $ac_status); } >/dev/null && {
5900 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5901 test ! -s conftest.err
5903 # Broken: success on invalid input.
5906 echo "$as_me: failed program was:" >&5
5907 sed 's/^/| /' conftest.$ac_ext >&5
5909 # Passes both tests.
5914 rm -f conftest.err conftest.$ac_ext
5917 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5918 rm -f conftest.err conftest.
$ac_ext
5919 if $ac_preproc_ok; then
5931 { echo "$as_me:$LINENO: result: $CPP" >&5
5932 echo "${ECHO_T}$CPP" >&6; }
5934 for ac_c_preproc_warn_flag
in '' yes
5936 # Use a header file that comes with gcc, so configuring glibc
5937 # with a fresh cross-compiler works.
5938 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5939 # <limits.h> exists even on freestanding compilers.
5940 # On the NeXT, cc -E runs the code through the compiler's parser,
5941 # not just through cpp. "Syntax error" is here to catch this case.
5942 cat >conftest.
$ac_ext <<_ACEOF
5945 cat confdefs.h
>>conftest.
$ac_ext
5946 cat >>conftest.
$ac_ext <<_ACEOF
5947 /* end confdefs.h. */
5949 # include <limits.h>
5951 # include <assert.h>
5955 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5957 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
5958 *) ac_try_echo=$ac_try;;
5960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5961 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5963 grep -v '^ *+' conftest.er1 >conftest.err
5965 cat conftest.err >&5
5966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5967 (exit $ac_status); } >/dev/null && {
5968 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5969 test ! -s conftest.err
5973 echo "$as_me: failed program was:" >&5
5974 sed 's/^/| /' conftest.$ac_ext >&5
5976 # Broken: fails on valid input.
5980 rm -f conftest.err conftest.$ac_ext
5982 # OK, works on sane cases. Now check whether nonexistent headers
5983 # can be detected and how.
5984 cat >conftest.$ac_ext <<_ACEOF
5987 cat confdefs.h >>conftest.$ac_ext
5988 cat >>conftest.$ac_ext <<_ACEOF
5989 /* end confdefs.h. */
5990 #include <ac_nonexistent.h>
5992 if { (ac_try="$ac_cpp conftest.$ac_ext"
5994 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
5995 *) ac_try_echo
=$ac_try;;
5997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5998 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6000 grep -v '^ *+' conftest.er1
>conftest.err
6002 cat conftest.err
>&5
6003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6004 (exit $ac_status); } >/dev
/null
&& {
6005 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6006 test ! -s conftest.err
6008 # Broken: success on invalid input.
6011 echo "$as_me: failed program was:" >&5
6012 sed 's/^/| /' conftest.
$ac_ext >&5
6014 # Passes both tests.
6019 rm -f conftest.err conftest.
$ac_ext
6022 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6023 rm -f conftest.err conftest.
$ac_ext
6024 if $ac_preproc_ok; then
6027 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6028 See \`config.log' for more details." >&5
6029 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6030 See \`config.log' for more details." >&2;}
6031 { (exit 1); exit 1; }; }
6035 ac_cpp
='$CPP $CPPFLAGS'
6036 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6037 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6038 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6041 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6042 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6043 if test "${ac_cv_header_stdc+set}" = set; then
6044 echo $ECHO_N "(cached) $ECHO_C" >&6
6046 cat >conftest.
$ac_ext <<_ACEOF
6049 cat confdefs.h
>>conftest.
$ac_ext
6050 cat >>conftest.
$ac_ext <<_ACEOF
6051 /* end confdefs.h. */
6065 rm -f conftest.
$ac_objext
6066 if { (ac_try
="$ac_compile"
6068 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
6069 *) ac_try_echo=$ac_try;;
6071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6072 (eval "$ac_compile") 2>conftest.er1
6074 grep -v '^ *+' conftest.er1 >conftest.err
6076 cat conftest.err >&5
6077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6078 (exit $ac_status); } && {
6079 test -z "$ac_c_werror_flag" ||
6080 test ! -s conftest.err
6081 } && test -s conftest.$ac_objext; then
6082 ac_cv_header_stdc=yes
6084 echo "$as_me: failed program was:" >&5
6085 sed 's/^/| /' conftest.$ac_ext >&5
6087 ac_cv_header_stdc=no
6090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6092 if test $ac_cv_header_stdc = yes; then
6093 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6094 cat >conftest.$ac_ext <<_ACEOF
6097 cat confdefs.h >>conftest.$ac_ext
6098 cat >>conftest.$ac_ext <<_ACEOF
6099 /* end confdefs.h. */
6103 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6104 $EGREP "memchr" >/dev/null 2>&1; then
6107 ac_cv_header_stdc=no
6113 if test $ac_cv_header_stdc = yes; then
6114 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6115 cat >conftest.$ac_ext <<_ACEOF
6118 cat confdefs.h >>conftest.$ac_ext
6119 cat >>conftest.$ac_ext <<_ACEOF
6120 /* end confdefs.h. */
6124 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6125 $EGREP "free" >/dev/null 2>&1; then
6128 ac_cv_header_stdc=no
6134 if test $ac_cv_header_stdc = yes; then
6135 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6136 if test "$cross_compiling" = yes; then
6139 cat >conftest.$ac_ext <<_ACEOF
6142 cat confdefs.h >>conftest.$ac_ext
6143 cat >>conftest.$ac_ext <<_ACEOF
6144 /* end confdefs.h. */
6147 #if ((' ' & 0x0FF) == 0x020)
6148 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6149 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6151 # define ISLOWER(c) \
6152 (('a' <= (c) && (c) <= 'i') \
6153 || ('j' <= (c) && (c) <= 'r') \
6154 || ('s' <= (c) && (c) <= 'z'))
6155 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6158 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6163 for (i = 0; i < 256; i++)
6164 if (XOR (islower (i), ISLOWER (i))
6165 || toupper (i) != TOUPPER (i))
6170 rm -f conftest$ac_exeext
6171 if { (ac_try="$ac_link"
6173 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
6174 *) ac_try_echo
=$ac_try;;
6176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6177 (eval "$ac_link") 2>&5
6179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6180 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6181 { (case "(($ac_try" in
6182 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
6183 *) ac_try_echo=$ac_try;;
6185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6186 (eval "$ac_try") 2>&5
6188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6189 (exit $ac_status); }; }; then
6192 echo "$as_me: program exited with status $ac_status" >&5
6193 echo "$as_me: failed program was:" >&5
6194 sed 's/^/| /' conftest.$ac_ext >&5
6197 ac_cv_header_stdc=no
6199 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6205 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6206 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6207 if test $ac_cv_header_stdc = yes; then
6209 cat >>confdefs.h <<\_ACEOF
6210 #define STDC_HEADERS 1
6215 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6225 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6226 inttypes.h stdint.h unistd.h
6228 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6229 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6230 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6231 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6232 echo $ECHO_N "(cached) $ECHO_C" >&6
6234 cat >conftest.$ac_ext <<_ACEOF
6237 cat confdefs.h >>conftest.$ac_ext
6238 cat >>conftest.$ac_ext <<_ACEOF
6239 /* end confdefs.h. */
6240 $ac_includes_default
6242 #include <$ac_header>
6244 rm -f conftest.$ac_objext
6245 if { (ac_try="$ac_compile"
6247 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
6248 *) ac_try_echo
=$ac_try;;
6250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6251 (eval "$ac_compile") 2>conftest.er1
6253 grep -v '^ *+' conftest.er1
>conftest.err
6255 cat conftest.err
>&5
6256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6257 (exit $ac_status); } && {
6258 test -z "$ac_c_werror_flag" ||
6259 test ! -s conftest.err
6260 } && test -s conftest.
$ac_objext; then
6261 eval "$as_ac_Header=yes"
6263 echo "$as_me: failed program was:" >&5
6264 sed 's/^/| /' conftest.
$ac_ext >&5
6266 eval "$as_ac_Header=no"
6269 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6271 ac_res
=`eval echo '${'$as_ac_Header'}'`
6272 { echo "$as_me:$LINENO: result: $ac_res" >&5
6273 echo "${ECHO_T}$ac_res" >&6; }
6274 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6275 cat >>confdefs.h
<<_ACEOF
6276 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6285 for ac_header
in dlfcn.h
6287 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6288 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6289 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6290 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6291 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6292 echo $ECHO_N "(cached) $ECHO_C" >&6
6294 ac_res
=`eval echo '${'$as_ac_Header'}'`
6295 { echo "$as_me:$LINENO: result: $ac_res" >&5
6296 echo "${ECHO_T}$ac_res" >&6; }
6298 # Is the header compilable?
6299 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6300 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6301 cat >conftest.
$ac_ext <<_ACEOF
6304 cat confdefs.h
>>conftest.
$ac_ext
6305 cat >>conftest.
$ac_ext <<_ACEOF
6306 /* end confdefs.h. */
6307 $ac_includes_default
6308 #include <$ac_header>
6310 rm -f conftest.
$ac_objext
6311 if { (ac_try
="$ac_compile"
6313 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
6314 *) ac_try_echo=$ac_try;;
6316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6317 (eval "$ac_compile") 2>conftest.er1
6319 grep -v '^ *+' conftest.er1 >conftest.err
6321 cat conftest.err >&5
6322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6323 (exit $ac_status); } && {
6324 test -z "$ac_c_werror_flag" ||
6325 test ! -s conftest.err
6326 } && test -s conftest.$ac_objext; then
6327 ac_header_compiler=yes
6329 echo "$as_me: failed program was:" >&5
6330 sed 's/^/| /' conftest.$ac_ext >&5
6332 ac_header_compiler=no
6335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6336 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6337 echo "${ECHO_T}$ac_header_compiler" >&6; }
6339 # Is the header present?
6340 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6341 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6342 cat >conftest.$ac_ext <<_ACEOF
6345 cat confdefs.h >>conftest.$ac_ext
6346 cat >>conftest.$ac_ext <<_ACEOF
6347 /* end confdefs.h. */
6348 #include <$ac_header>
6350 if { (ac_try="$ac_cpp conftest.$ac_ext"
6352 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
6353 *) ac_try_echo
=$ac_try;;
6355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6356 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6358 grep -v '^ *+' conftest.er1
>conftest.err
6360 cat conftest.err
>&5
6361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6362 (exit $ac_status); } >/dev
/null
&& {
6363 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6364 test ! -s conftest.err
6366 ac_header_preproc
=yes
6368 echo "$as_me: failed program was:" >&5
6369 sed 's/^/| /' conftest.
$ac_ext >&5
6371 ac_header_preproc
=no
6374 rm -f conftest.err conftest.
$ac_ext
6375 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6376 echo "${ECHO_T}$ac_header_preproc" >&6; }
6378 # So? What about this header?
6379 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6381 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6382 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6383 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6384 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6385 ac_header_preproc
=yes
6388 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6389 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6390 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6391 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6392 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6393 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6394 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6395 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6396 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6397 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6398 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6399 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6403 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6404 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6405 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6406 echo $ECHO_N "(cached) $ECHO_C" >&6
6408 eval "$as_ac_Header=\$ac_header_preproc"
6410 ac_res
=`eval echo '${'$as_ac_Header'}'`
6411 { echo "$as_me:$LINENO: result: $ac_res" >&5
6412 echo "${ECHO_T}$ac_res" >&6; }
6415 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6416 cat >>confdefs.h
<<_ACEOF
6417 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6425 ac_cpp
='$CXXCPP $CPPFLAGS'
6426 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6427 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6428 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6429 if test -z "$CXX"; then
6430 if test -n "$CCC"; then
6433 if test -n "$ac_tool_prefix"; then
6434 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
6436 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6437 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
6438 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6439 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6440 if test "${ac_cv_prog_CXX+set}" = set; then
6441 echo $ECHO_N "(cached) $ECHO_C" >&6
6443 if test -n "$CXX"; then
6444 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
6446 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6450 test -z "$as_dir" && as_dir
=.
6451 for ac_exec_ext
in '' $ac_executable_extensions; do
6452 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6453 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
6454 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6464 if test -n "$CXX"; then
6465 { echo "$as_me:$LINENO: result: $CXX" >&5
6466 echo "${ECHO_T}$CXX" >&6; }
6468 { echo "$as_me:$LINENO: result: no" >&5
6469 echo "${ECHO_T}no" >&6; }
6473 test -n "$CXX" && break
6476 if test -z "$CXX"; then
6478 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
6480 # Extract the first word of "$ac_prog", so it can be a program name with args.
6481 set dummy
$ac_prog; ac_word
=$2
6482 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6483 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6484 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6485 echo $ECHO_N "(cached) $ECHO_C" >&6
6487 if test -n "$ac_ct_CXX"; then
6488 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
6490 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6494 test -z "$as_dir" && as_dir
=.
6495 for ac_exec_ext
in '' $ac_executable_extensions; do
6496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6497 ac_cv_prog_ac_ct_CXX
="$ac_prog"
6498 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6507 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
6508 if test -n "$ac_ct_CXX"; then
6509 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6510 echo "${ECHO_T}$ac_ct_CXX" >&6; }
6512 { echo "$as_me:$LINENO: result: no" >&5
6513 echo "${ECHO_T}no" >&6; }
6517 test -n "$ac_ct_CXX" && break
6520 if test "x$ac_ct_CXX" = x
; then
6523 case $cross_compiling:$ac_tool_warned in
6525 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6526 whose name does not start with the host triplet. If you think this
6527 configuration is useful to you, please write to autoconf@gnu.org." >&5
6528 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6529 whose name does not start with the host triplet. If you think this
6530 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6531 ac_tool_warned
=yes ;;
6539 # Provide some information about the compiler.
6540 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6541 ac_compiler
=`set X $ac_compile; echo $2`
6542 { (ac_try
="$ac_compiler --version >&5"
6544 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
6545 *) ac_try_echo=$ac_try;;
6547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6548 (eval "$ac_compiler --version >&5") 2>&5
6550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6551 (exit $ac_status); }
6552 { (ac_try="$ac_compiler -v >&5"
6554 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
6555 *) ac_try_echo
=$ac_try;;
6557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6558 (eval "$ac_compiler -v >&5") 2>&5
6560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6561 (exit $ac_status); }
6562 { (ac_try
="$ac_compiler -V >&5"
6564 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
6565 *) ac_try_echo=$ac_try;;
6567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6568 (eval "$ac_compiler -V >&5") 2>&5
6570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6571 (exit $ac_status); }
6573 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6574 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6575 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6576 echo $ECHO_N "(cached) $ECHO_C" >&6
6578 cat >conftest.$ac_ext <<_ACEOF
6581 cat confdefs.h >>conftest.$ac_ext
6582 cat >>conftest.$ac_ext <<_ACEOF
6583 /* end confdefs.h. */
6596 rm -f conftest.$ac_objext
6597 if { (ac_try="$ac_compile"
6599 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
6600 *) ac_try_echo
=$ac_try;;
6602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6603 (eval "$ac_compile") 2>conftest.er1
6605 grep -v '^ *+' conftest.er1
>conftest.err
6607 cat conftest.err
>&5
6608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6609 (exit $ac_status); } && {
6610 test -z "$ac_cxx_werror_flag" ||
6611 test ! -s conftest.err
6612 } && test -s conftest.
$ac_objext; then
6615 echo "$as_me: failed program was:" >&5
6616 sed 's/^/| /' conftest.
$ac_ext >&5
6621 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6622 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
6625 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6626 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6627 GXX
=`test $ac_compiler_gnu = yes && echo yes`
6628 ac_test_CXXFLAGS
=${CXXFLAGS+set}
6629 ac_save_CXXFLAGS
=$CXXFLAGS
6630 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6631 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6632 if test "${ac_cv_prog_cxx_g+set}" = set; then
6633 echo $ECHO_N "(cached) $ECHO_C" >&6
6635 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
6636 ac_cxx_werror_flag
=yes
6639 cat >conftest.
$ac_ext <<_ACEOF
6642 cat confdefs.h
>>conftest.
$ac_ext
6643 cat >>conftest.
$ac_ext <<_ACEOF
6644 /* end confdefs.h. */
6654 rm -f conftest.
$ac_objext
6655 if { (ac_try
="$ac_compile"
6657 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
6658 *) ac_try_echo=$ac_try;;
6660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6661 (eval "$ac_compile") 2>conftest.er1
6663 grep -v '^ *+' conftest.er1 >conftest.err
6665 cat conftest.err >&5
6666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6667 (exit $ac_status); } && {
6668 test -z "$ac_cxx_werror_flag" ||
6669 test ! -s conftest.err
6670 } && test -s conftest.$ac_objext; then
6671 ac_cv_prog_cxx_g=yes
6673 echo "$as_me: failed program was:" >&5
6674 sed 's/^/| /' conftest.$ac_ext >&5
6677 cat >conftest.$ac_ext <<_ACEOF
6680 cat confdefs.h >>conftest.$ac_ext
6681 cat >>conftest.$ac_ext <<_ACEOF
6682 /* end confdefs.h. */
6692 rm -f conftest.$ac_objext
6693 if { (ac_try="$ac_compile"
6695 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
6696 *) ac_try_echo
=$ac_try;;
6698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6699 (eval "$ac_compile") 2>conftest.er1
6701 grep -v '^ *+' conftest.er1
>conftest.err
6703 cat conftest.err
>&5
6704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6705 (exit $ac_status); } && {
6706 test -z "$ac_cxx_werror_flag" ||
6707 test ! -s conftest.err
6708 } && test -s conftest.
$ac_objext; then
6711 echo "$as_me: failed program was:" >&5
6712 sed 's/^/| /' conftest.
$ac_ext >&5
6714 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
6716 cat >conftest.
$ac_ext <<_ACEOF
6719 cat confdefs.h
>>conftest.
$ac_ext
6720 cat >>conftest.
$ac_ext <<_ACEOF
6721 /* end confdefs.h. */
6731 rm -f conftest.
$ac_objext
6732 if { (ac_try
="$ac_compile"
6734 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
6735 *) ac_try_echo=$ac_try;;
6737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6738 (eval "$ac_compile") 2>conftest.er1
6740 grep -v '^ *+' conftest.er1 >conftest.err
6742 cat conftest.err >&5
6743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6744 (exit $ac_status); } && {
6745 test -z "$ac_cxx_werror_flag" ||
6746 test ! -s conftest.err
6747 } && test -s conftest.$ac_objext; then
6748 ac_cv_prog_cxx_g=yes
6750 echo "$as_me: failed program was:" >&5
6751 sed 's/^/| /' conftest.$ac_ext >&5
6756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6763 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6765 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6766 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6767 if test "$ac_test_CXXFLAGS" = set; then
6768 CXXFLAGS=$ac_save_CXXFLAGS
6769 elif test $ac_cv_prog_cxx_g = yes; then
6770 if test "$GXX" = yes; then
6776 if test "$GXX" = yes; then
6783 ac_cpp='$CXXCPP $CPPFLAGS'
6784 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6785 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6786 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6788 depcc="$CXX" am_compiler_list=
6790 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6791 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
6792 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6793 echo $ECHO_N "(cached) $ECHO_C" >&6
6795 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6796 # We make a subdir and do the tests there. Otherwise we can end up
6797 # making bogus files that we don't know about and never remove. For
6798 # instance it was reported that on HP-UX the gcc test will end up
6799 # making a dummy file named `D
' -- because `-MD' means
`put the output
6802 # Copy depcomp to subdir because otherwise we won't find it if we're
6803 # using a relative directory.
6804 cp "$am_depcomp" conftest.dir
6806 # We will build objects and dependencies in a subdirectory because
6807 # it helps to detect inapplicable dependency modes. For instance
6808 # both Tru64's cc and ICC support -MD to output dependencies as a
6809 # side effect of compilation, but ICC will put the dependencies in
6810 # the current directory while Tru64 will put them in the object
6814 am_cv_CXX_dependencies_compiler_type=none
6815 if test "$am_compiler_list" = ""; then
6816 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < .
/depcomp
`
6818 for depmode in $am_compiler_list; do
6819 # Setup a source with many dependencies, because some compilers
6820 # like to wrap large dependency lists on column 80 (with \), and
6821 # we should not choose a depcomp mode which is confused by this.
6823 # We need to recreate these files for each test, as the compiler may
6824 # overwrite some of them when testing with obscure command lines.
6825 # This happens at least with the AIX C compiler.
6827 for i in 1 2 3 4 5 6; do
6828 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6829 # Using `: > sub
/conftst
$i.h
' creates only sub/conftst1.h with
6830 # Solaris 8's
{/usr
,}/bin
/sh.
6831 touch sub
/conftst
$i.h
6833 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6837 # after this tag, mechanisms are not by side-effect, so they'll
6838 # only be used when explicitly requested
6839 if test "x$enable_dependency_tracking" = xyes
; then
6847 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6848 # mode. It turns out that the SunPro C++ compiler does not properly
6849 # handle `-M -o', and we need to detect this.
6850 if depmode
=$depmode \
6851 source=sub
/conftest.c object
=sub
/conftest.
${OBJEXT-o} \
6852 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
6853 $SHELL .
/depcomp
$depcc -c -o sub
/conftest.
${OBJEXT-o} sub
/conftest.c \
6854 >/dev
/null
2>conftest.err
&&
6855 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
6856 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
6857 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
> /dev
/null
2>&1 &&
6858 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
6859 # icc doesn't choke on unknown options, it will just issue warnings
6860 # or remarks (even with -Werror). So we grep stderr for any message
6861 # that says an option was ignored or not supported.
6862 # When given -MP, icc 7.0 and 7.1 complain thusly:
6863 # icc: Command line warning: ignoring option '-M'; no argument required
6864 # The diagnosis changed in icc 8.0:
6865 # icc: Command line remark: option '-MP' not supported
6866 if (grep 'ignoring option' conftest.err
||
6867 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
6868 am_cv_CXX_dependencies_compiler_type
=$depmode
6877 am_cv_CXX_dependencies_compiler_type
=none
6881 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6882 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
6883 CXXDEPMODE
=depmode
=$am_cv_CXX_dependencies_compiler_type
6886 test "x$enable_dependency_tracking" != xno \
6887 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3
; then
6888 am__fastdepCXX_TRUE
=
6889 am__fastdepCXX_FALSE
='#'
6891 am__fastdepCXX_TRUE
='#'
6892 am__fastdepCXX_FALSE
=
6898 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6899 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6900 (test "X$CXX" != "Xg++"))) ; then
6902 ac_cpp
='$CXXCPP $CPPFLAGS'
6903 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6904 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6905 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6906 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6907 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
6908 if test -z "$CXXCPP"; then
6909 if test "${ac_cv_prog_CXXCPP+set}" = set; then
6910 echo $ECHO_N "(cached) $ECHO_C" >&6
6912 # Double quotes because CXXCPP needs to be expanded
6913 for CXXCPP
in "$CXX -E" "/lib/cpp"
6916 for ac_cxx_preproc_warn_flag
in '' yes
6918 # Use a header file that comes with gcc, so configuring glibc
6919 # with a fresh cross-compiler works.
6920 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6921 # <limits.h> exists even on freestanding compilers.
6922 # On the NeXT, cc -E runs the code through the compiler's parser,
6923 # not just through cpp. "Syntax error" is here to catch this case.
6924 cat >conftest.
$ac_ext <<_ACEOF
6927 cat confdefs.h
>>conftest.
$ac_ext
6928 cat >>conftest.
$ac_ext <<_ACEOF
6929 /* end confdefs.h. */
6931 # include <limits.h>
6933 # include <assert.h>
6937 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6939 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
6940 *) ac_try_echo=$ac_try;;
6942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6943 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6945 grep -v '^ *+' conftest.er1 >conftest.err
6947 cat conftest.err >&5
6948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6949 (exit $ac_status); } >/dev/null && {
6950 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6951 test ! -s conftest.err
6955 echo "$as_me: failed program was:" >&5
6956 sed 's/^/| /' conftest.$ac_ext >&5
6958 # Broken: fails on valid input.
6962 rm -f conftest.err conftest.$ac_ext
6964 # OK, works on sane cases. Now check whether nonexistent headers
6965 # can be detected and how.
6966 cat >conftest.$ac_ext <<_ACEOF
6969 cat confdefs.h >>conftest.$ac_ext
6970 cat >>conftest.$ac_ext <<_ACEOF
6971 /* end confdefs.h. */
6972 #include <ac_nonexistent.h>
6974 if { (ac_try="$ac_cpp conftest.$ac_ext"
6976 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
6977 *) ac_try_echo
=$ac_try;;
6979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6980 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6982 grep -v '^ *+' conftest.er1
>conftest.err
6984 cat conftest.err
>&5
6985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6986 (exit $ac_status); } >/dev
/null
&& {
6987 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6988 test ! -s conftest.err
6990 # Broken: success on invalid input.
6993 echo "$as_me: failed program was:" >&5
6994 sed 's/^/| /' conftest.
$ac_ext >&5
6996 # Passes both tests.
7001 rm -f conftest.err conftest.
$ac_ext
7004 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7005 rm -f conftest.err conftest.
$ac_ext
7006 if $ac_preproc_ok; then
7011 ac_cv_prog_CXXCPP
=$CXXCPP
7014 CXXCPP
=$ac_cv_prog_CXXCPP
7016 ac_cv_prog_CXXCPP
=$CXXCPP
7018 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
7019 echo "${ECHO_T}$CXXCPP" >&6; }
7021 for ac_cxx_preproc_warn_flag
in '' yes
7023 # Use a header file that comes with gcc, so configuring glibc
7024 # with a fresh cross-compiler works.
7025 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7026 # <limits.h> exists even on freestanding compilers.
7027 # On the NeXT, cc -E runs the code through the compiler's parser,
7028 # not just through cpp. "Syntax error" is here to catch this case.
7029 cat >conftest.
$ac_ext <<_ACEOF
7032 cat confdefs.h
>>conftest.
$ac_ext
7033 cat >>conftest.
$ac_ext <<_ACEOF
7034 /* end confdefs.h. */
7036 # include <limits.h>
7038 # include <assert.h>
7042 if { (ac_try
="$ac_cpp conftest.$ac_ext"
7044 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
7045 *) ac_try_echo=$ac_try;;
7047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7048 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7050 grep -v '^ *+' conftest.er1 >conftest.err
7052 cat conftest.err >&5
7053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7054 (exit $ac_status); } >/dev/null && {
7055 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7056 test ! -s conftest.err
7060 echo "$as_me: failed program was:" >&5
7061 sed 's/^/| /' conftest.$ac_ext >&5
7063 # Broken: fails on valid input.
7067 rm -f conftest.err conftest.$ac_ext
7069 # OK, works on sane cases. Now check whether nonexistent headers
7070 # can be detected and how.
7071 cat >conftest.$ac_ext <<_ACEOF
7074 cat confdefs.h >>conftest.$ac_ext
7075 cat >>conftest.$ac_ext <<_ACEOF
7076 /* end confdefs.h. */
7077 #include <ac_nonexistent.h>
7079 if { (ac_try="$ac_cpp conftest.$ac_ext"
7081 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
7082 *) ac_try_echo
=$ac_try;;
7084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7085 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7087 grep -v '^ *+' conftest.er1
>conftest.err
7089 cat conftest.err
>&5
7090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7091 (exit $ac_status); } >/dev
/null
&& {
7092 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7093 test ! -s conftest.err
7095 # Broken: success on invalid input.
7098 echo "$as_me: failed program was:" >&5
7099 sed 's/^/| /' conftest.
$ac_ext >&5
7101 # Passes both tests.
7106 rm -f conftest.err conftest.
$ac_ext
7109 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7110 rm -f conftest.err conftest.
$ac_ext
7111 if $ac_preproc_ok; then
7114 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7115 See \`config.log' for more details." >&5
7116 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7117 See \`config.log' for more details." >&2;}
7118 { (exit 1); exit 1; }; }
7122 ac_cpp
='$CXXCPP $CPPFLAGS'
7123 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7124 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7125 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7131 ac_compile
='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7132 ac_link
='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7133 ac_compiler_gnu
=$ac_cv_f77_compiler_gnu
7134 if test -n "$ac_tool_prefix"; then
7135 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
7137 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7138 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
7139 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7140 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7141 if test "${ac_cv_prog_F77+set}" = set; then
7142 echo $ECHO_N "(cached) $ECHO_C" >&6
7144 if test -n "$F77"; then
7145 ac_cv_prog_F77
="$F77" # Let the user override the test.
7147 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7151 test -z "$as_dir" && as_dir
=.
7152 for ac_exec_ext
in '' $ac_executable_extensions; do
7153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7154 ac_cv_prog_F77
="$ac_tool_prefix$ac_prog"
7155 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7165 if test -n "$F77"; then
7166 { echo "$as_me:$LINENO: result: $F77" >&5
7167 echo "${ECHO_T}$F77" >&6; }
7169 { echo "$as_me:$LINENO: result: no" >&5
7170 echo "${ECHO_T}no" >&6; }
7174 test -n "$F77" && break
7177 if test -z "$F77"; then
7179 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
7181 # Extract the first word of "$ac_prog", so it can be a program name with args.
7182 set dummy
$ac_prog; ac_word
=$2
7183 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7184 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7185 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7186 echo $ECHO_N "(cached) $ECHO_C" >&6
7188 if test -n "$ac_ct_F77"; then
7189 ac_cv_prog_ac_ct_F77
="$ac_ct_F77" # Let the user override the test.
7191 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7195 test -z "$as_dir" && as_dir
=.
7196 for ac_exec_ext
in '' $ac_executable_extensions; do
7197 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7198 ac_cv_prog_ac_ct_F77
="$ac_prog"
7199 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7208 ac_ct_F77
=$ac_cv_prog_ac_ct_F77
7209 if test -n "$ac_ct_F77"; then
7210 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7211 echo "${ECHO_T}$ac_ct_F77" >&6; }
7213 { echo "$as_me:$LINENO: result: no" >&5
7214 echo "${ECHO_T}no" >&6; }
7218 test -n "$ac_ct_F77" && break
7221 if test "x$ac_ct_F77" = x
; then
7224 case $cross_compiling:$ac_tool_warned in
7226 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7227 whose name does not start with the host triplet. If you think this
7228 configuration is useful to you, please write to autoconf@gnu.org." >&5
7229 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7230 whose name does not start with the host triplet. If you think this
7231 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7232 ac_tool_warned
=yes ;;
7239 # Provide some information about the compiler.
7240 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
7241 ac_compiler
=`set X $ac_compile; echo $2`
7242 { (ac_try
="$ac_compiler --version >&5"
7244 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
7245 *) ac_try_echo=$ac_try;;
7247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7248 (eval "$ac_compiler --version >&5") 2>&5
7250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7251 (exit $ac_status); }
7252 { (ac_try="$ac_compiler -v >&5"
7254 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
7255 *) ac_try_echo
=$ac_try;;
7257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7258 (eval "$ac_compiler -v >&5") 2>&5
7260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7261 (exit $ac_status); }
7262 { (ac_try
="$ac_compiler -V >&5"
7264 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
7265 *) ac_try_echo=$ac_try;;
7267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7268 (eval "$ac_compiler -V >&5") 2>&5
7270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7271 (exit $ac_status); }
7274 # If we don't use `.F
' as extension, the preprocessor is not run on the
7275 # input file. (Note that this only needs to work for GNU compilers.)
7278 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7279 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
7280 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7281 echo $ECHO_N "(cached) $ECHO_C" >&6
7283 cat >conftest.$ac_ext <<_ACEOF
7291 rm -f conftest.$ac_objext
7292 if { (ac_try="$ac_compile"
7294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7295 *) ac_try_echo=$ac_try;;
7297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7298 (eval "$ac_compile") 2>conftest.er1
7300 grep -v '^
*+' conftest.er1 >conftest.err
7302 cat conftest.err >&5
7303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7304 (exit $ac_status); } && {
7305 test -z "$ac_f77_werror_flag" ||
7306 test ! -s conftest.err
7307 } && test -s conftest.$ac_objext; then
7310 echo "$as_me: failed program was:" >&5
7311 sed 's
/^
/| /' conftest.$ac_ext >&5
7316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7317 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7320 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7321 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
7323 ac_test_FFLAGS=${FFLAGS+set}
7324 ac_save_FFLAGS=$FFLAGS
7326 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7327 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
7328 if test "${ac_cv_prog_f77_g+set}" = set; then
7329 echo $ECHO_N "(cached) $ECHO_C" >&6
7332 cat >conftest.$ac_ext <<_ACEOF
7337 rm -f conftest.$ac_objext
7338 if { (ac_try="$ac_compile"
7340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7341 *) ac_try_echo=$ac_try;;
7343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7344 (eval "$ac_compile") 2>conftest.er1
7346 grep -v '^
*+' conftest.er1 >conftest.err
7348 cat conftest.err >&5
7349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7350 (exit $ac_status); } && {
7351 test -z "$ac_f77_werror_flag" ||
7352 test ! -s conftest.err
7353 } && test -s conftest.$ac_objext; then
7354 ac_cv_prog_f77_g=yes
7356 echo "$as_me: failed program was:" >&5
7357 sed 's
/^
/| /' conftest.$ac_ext >&5
7362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7365 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7366 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
7367 if test "$ac_test_FFLAGS" = set; then
7368 FFLAGS=$ac_save_FFLAGS
7369 elif test $ac_cv_prog_f77_g = yes; then
7370 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7376 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7383 G77=`test $ac_compiler_gnu = yes && echo yes`
7385 ac_cpp='$CPP $CPPFLAGS'
7386 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
7387 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
7388 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7392 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works
for C compilers
!
7393 # find the maximum length of command line arguments
7394 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7395 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
7396 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7397 echo $ECHO_N "(cached) $ECHO_C" >&6
7404 # On DJGPP, this test can blow up pretty badly due to problems in libc
7405 # (any single argument exceeding 2000 bytes causes a buffer overrun
7406 # during glob expansion). Even if it were fixed, the result of this
7407 # check would be larger than it should be.
7408 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
7412 # Under GNU Hurd, this test is not required because there is
7413 # no limit to the length of command line arguments.
7414 # Libtool will interpret -1 as no limit whatsoever
7415 lt_cv_sys_max_cmd_len
=-1;
7419 # On Win9x/ME, this test blows up -- it succeeds, but takes
7420 # about 5 minutes as the teststring grows exponentially.
7421 # Worse, since 9x/ME are not pre-emptively multitasking,
7422 # you end up with a "frozen" computer, even though with patience
7423 # the test eventually succeeds (with a max line length of 256k).
7424 # Instead, let's just punt: use the minimum linelength reported by
7425 # all of the supported platforms: 8192 (on NT/2K/XP).
7426 lt_cv_sys_max_cmd_len
=8192;
7430 # On AmigaOS with pdksh, this test takes hours, literally.
7431 # So we just punt and use a minimum line length of 8192.
7432 lt_cv_sys_max_cmd_len
=8192;
7435 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
7436 # This has been around since 386BSD, at least. Likely further.
7437 if test -x /sbin
/sysctl
; then
7438 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
7439 elif test -x /usr
/sbin
/sysctl
; then
7440 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
7442 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
7444 # And add a safety zone
7445 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
7446 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
7450 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7451 lt_cv_sys_max_cmd_len
=196608
7455 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7456 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7457 # nice to cause kernel panics so lets avoid the loop below.
7458 # First set a reasonable default.
7459 lt_cv_sys_max_cmd_len
=16384
7461 if test -x /sbin
/sysconfig
; then
7462 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7463 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
7468 lt_cv_sys_max_cmd_len
=102400
7470 sysv5
* | sco5v6
* | sysv4.2uw2
*)
7471 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7472 if test -n "$kargmax"; then
7473 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
7475 lt_cv_sys_max_cmd_len
=32768
7479 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
7480 if test -n "$lt_cv_sys_max_cmd_len"; then
7481 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
7482 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
7484 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
7485 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7486 = "XX$teststring") >/dev
/null
2>&1 &&
7487 new_result
=`expr "X$teststring" : ".*" 2>&1` &&
7488 lt_cv_sys_max_cmd_len
=$new_result &&
7489 test $i != 17 # 1/2 MB should be enough
7492 teststring
=$teststring$teststring
7495 # Add a significant safety factor because C++ compilers can tack on massive
7496 # amounts of additional arguments before passing them to the linker.
7497 # It appears as though 1/2 is a usable value.
7498 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
7505 if test -n $lt_cv_sys_max_cmd_len ; then
7506 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7507 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
7509 { echo "$as_me:$LINENO: result: none" >&5
7510 echo "${ECHO_T}none" >&6; }
7517 # Check for command to grab the raw symbol name followed by C symbol from nm.
7518 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7519 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
7520 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7521 echo $ECHO_N "(cached) $ECHO_C" >&6
7524 # These are sane defaults that work on at least a few old systems.
7525 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7527 # Character class describing NM global symbol codes.
7528 symcode
='[BCDEGRST]'
7530 # Regexp to match symbols that can be accessed directly from C.
7531 sympat
='\([_A-Za-z][_A-Za-z0-9]*\)'
7533 # Transform an extracted symbol line into a proper C declaration
7534 lt_cv_sys_global_symbol_to_cdecl
="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7536 # Transform an extracted symbol line into symbol name and symbol address
7537 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'"
7539 # Define system-specific variables.
7544 cygwin
* | mingw
* | pw32
*)
7545 symcode
='[ABCDGISTW]'
7547 hpux
*) # Its linker distinguishes data from code symbols
7548 if test "$host_cpu" = ia64
; then
7549 symcode
='[ABCDEGRST]'
7551 lt_cv_sys_global_symbol_to_cdecl
="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7552 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'"
7554 linux
* | k
*bsd
*-gnu)
7555 if test "$host_cpu" = ia64
; then
7556 symcode
='[ABCDGIRSTW]'
7557 lt_cv_sys_global_symbol_to_cdecl
="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7558 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'"
7562 symcode
='[BCDEGRST]'
7565 symcode
='[BCDEGQRST]'
7576 sysv5
* | sco5v6
* | unixware
* | OpenUNIX
*)
7584 # Handle CRLF in mingw tool chain
7588 opt_cr
=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7592 # If we're using GNU nm, then use its standard symbol codes.
7593 case `$NM -V 2>&1` in
7594 *GNU
* | *'with BFD'*)
7595 symcode
='[ABCDGIRSTW]' ;;
7598 # Try without a prefix undercore, then with it.
7599 for ac_symprfx
in "" "_"; do
7601 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7602 symxfrm
="\\1 $ac_symprfx\\2 \\2"
7604 # Write the raw and C identifiers.
7605 lt_cv_sys_global_symbol_pipe
="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7607 # Check to see that the pipe works correctly.
7611 cat > conftest.
$ac_ext <<EOF
7616 void nm_test_func(){}
7620 int main(){nm_test_var='a';nm_test_func();return(0);}
7623 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7624 (eval $ac_compile) 2>&5
7626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7627 (exit $ac_status); }; then
7628 # Now try to grab the symbols.
7630 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7631 (eval $NM conftest.
$ac_objext \
| $lt_cv_sys_global_symbol_pipe \
> $nlist) 2>&5
7633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7634 (exit $ac_status); } && test -s "$nlist"; then
7635 # Try sorting and uniquifying the output.
7636 if sort "$nlist" | uniq > "$nlist"T
; then
7637 mv -f "$nlist"T
"$nlist"
7642 # Make sure that we snagged all the symbols we need.
7643 if grep ' nm_test_var$' "$nlist" >/dev
/null
; then
7644 if grep ' nm_test_func$' "$nlist" >/dev
/null
; then
7645 cat <<EOF > conftest.$ac_ext
7651 # Now generate the symbol file.
7652 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7654 cat <<EOF >> conftest.$ac_ext
7655 #if defined (__STDC__) && __STDC__
7656 # define lt_ptr_t void *
7658 # define lt_ptr_t char *
7662 /* The mapping between symbol names and symbols. */
7667 lt_preloaded_symbols[] =
7670 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main
>> conftest.
$ac_ext
7671 cat <<\EOF
>> conftest.
$ac_ext
7679 # Now try linking the two files.
7680 mv conftest.
$ac_objext conftstm.
$ac_objext
7681 lt_save_LIBS
="$LIBS"
7682 lt_save_CFLAGS
="$CFLAGS"
7683 LIBS
="conftstm.$ac_objext"
7684 CFLAGS
="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7685 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7686 (eval $ac_link) 2>&5
7688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7689 (exit $ac_status); } && test -s conftest
${ac_exeext}; then
7692 LIBS
="$lt_save_LIBS"
7693 CFLAGS
="$lt_save_CFLAGS"
7695 echo "cannot find nm_test_func in $nlist" >&5
7698 echo "cannot find nm_test_var in $nlist" >&5
7701 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7704 echo "$progname: failed program was:" >&5
7705 cat conftest.
$ac_ext >&5
7707 rm -rf conftest
* conftst
*
7709 # Do not use the global_symbol_pipe unless it works.
7710 if test "$pipe_works" = yes; then
7713 lt_cv_sys_global_symbol_pipe
=
7719 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7720 lt_cv_sys_global_symbol_to_cdecl
=
7722 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7723 { echo "$as_me:$LINENO: result: failed" >&5
7724 echo "${ECHO_T}failed" >&6; }
7726 { echo "$as_me:$LINENO: result: ok" >&5
7727 echo "${ECHO_T}ok" >&6; }
7730 { echo "$as_me:$LINENO: checking for objdir" >&5
7731 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
7732 if test "${lt_cv_objdir+set}" = set; then
7733 echo $ECHO_N "(cached) $ECHO_C" >&6
7735 rm -f .libs
2>/dev
/null
7736 mkdir .libs
2>/dev
/null
7737 if test -d .libs
; then
7740 # MS-DOS does not allow filenames that begin with a dot.
7743 rmdir .libs
2>/dev
/null
7745 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7746 echo "${ECHO_T}$lt_cv_objdir" >&6; }
7747 objdir
=$lt_cv_objdir
7755 # AIX sometimes has problems with the GCC collect2 program. For some
7756 # reason, if we set the COLLECT_NAMES environment variable, the problems
7757 # vanish in a puff of smoke.
7758 if test "X${COLLECT_NAMES+set}" != Xset
; then
7760 export COLLECT_NAMES
7765 # Sed substitution that helps us do robust quoting. It backslashifies
7766 # metacharacters that are still active within double-quoted strings.
7767 Xsed
='sed -e 1s/^X//'
7768 sed_quote_subst
='s/\([\\"\\`$\\\\]\)/\\\1/g'
7770 # Same as above, but do not quote variable references.
7771 double_quote_subst
='s/\([\\"\\`\\\\]\)/\\\1/g'
7773 # Sed substitution to delay expansion of an escaped shell variable in a
7774 # double_quote_subst'ed string.
7775 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
7777 # Sed substitution to avoid accidental globbing in evaled expressions
7778 no_glob_subst
='s/\*/\\\*/g'
7784 default_ofile
=libtool
7785 can_build_shared
=yes
7787 # All known linkers require a `.a' archive for static linking (except MSVC,
7788 # which needs '.lib').
7790 ltmain
="$ac_aux_dir/ltmain.sh"
7791 ofile
="$default_ofile"
7792 with_gnu_ld
="$lt_cv_prog_gnu_ld"
7794 if test -n "$ac_tool_prefix"; then
7795 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7796 set dummy
${ac_tool_prefix}ar; ac_word
=$2
7797 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7798 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7799 if test "${ac_cv_prog_AR+set}" = set; then
7800 echo $ECHO_N "(cached) $ECHO_C" >&6
7802 if test -n "$AR"; then
7803 ac_cv_prog_AR
="$AR" # Let the user override the test.
7805 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7809 test -z "$as_dir" && as_dir
=.
7810 for ac_exec_ext
in '' $ac_executable_extensions; do
7811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7812 ac_cv_prog_AR
="${ac_tool_prefix}ar"
7813 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7823 if test -n "$AR"; then
7824 { echo "$as_me:$LINENO: result: $AR" >&5
7825 echo "${ECHO_T}$AR" >&6; }
7827 { echo "$as_me:$LINENO: result: no" >&5
7828 echo "${ECHO_T}no" >&6; }
7833 if test -z "$ac_cv_prog_AR"; then
7835 # Extract the first word of "ar", so it can be a program name with args.
7836 set dummy
ar; ac_word
=$2
7837 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7838 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7839 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7840 echo $ECHO_N "(cached) $ECHO_C" >&6
7842 if test -n "$ac_ct_AR"; then
7843 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
7845 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7849 test -z "$as_dir" && as_dir
=.
7850 for ac_exec_ext
in '' $ac_executable_extensions; do
7851 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7852 ac_cv_prog_ac_ct_AR
="ar"
7853 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7862 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
7863 if test -n "$ac_ct_AR"; then
7864 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7865 echo "${ECHO_T}$ac_ct_AR" >&6; }
7867 { echo "$as_me:$LINENO: result: no" >&5
7868 echo "${ECHO_T}no" >&6; }
7871 if test "x$ac_ct_AR" = x
; then
7874 case $cross_compiling:$ac_tool_warned in
7876 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7877 whose name does not start with the host triplet. If you think this
7878 configuration is useful to you, please write to autoconf@gnu.org." >&5
7879 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7880 whose name does not start with the host triplet. If you think this
7881 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7882 ac_tool_warned
=yes ;;
7890 if test -n "$ac_tool_prefix"; then
7891 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7892 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7893 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7894 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7895 if test "${ac_cv_prog_RANLIB+set}" = set; then
7896 echo $ECHO_N "(cached) $ECHO_C" >&6
7898 if test -n "$RANLIB"; then
7899 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7901 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7905 test -z "$as_dir" && as_dir
=.
7906 for ac_exec_ext
in '' $ac_executable_extensions; do
7907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7908 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7909 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7918 RANLIB
=$ac_cv_prog_RANLIB
7919 if test -n "$RANLIB"; then
7920 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7921 echo "${ECHO_T}$RANLIB" >&6; }
7923 { echo "$as_me:$LINENO: result: no" >&5
7924 echo "${ECHO_T}no" >&6; }
7929 if test -z "$ac_cv_prog_RANLIB"; then
7930 ac_ct_RANLIB
=$RANLIB
7931 # Extract the first word of "ranlib", so it can be a program name with args.
7932 set dummy ranlib
; ac_word
=$2
7933 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7934 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7935 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7936 echo $ECHO_N "(cached) $ECHO_C" >&6
7938 if test -n "$ac_ct_RANLIB"; then
7939 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7941 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7945 test -z "$as_dir" && as_dir
=.
7946 for ac_exec_ext
in '' $ac_executable_extensions; do
7947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7948 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7949 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7958 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7959 if test -n "$ac_ct_RANLIB"; then
7960 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7961 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7963 { echo "$as_me:$LINENO: result: no" >&5
7964 echo "${ECHO_T}no" >&6; }
7967 if test "x$ac_ct_RANLIB" = x
; then
7970 case $cross_compiling:$ac_tool_warned in
7972 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7973 whose name does not start with the host triplet. If you think this
7974 configuration is useful to you, please write to autoconf@gnu.org." >&5
7975 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7976 whose name does not start with the host triplet. If you think this
7977 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7978 ac_tool_warned
=yes ;;
7980 RANLIB
=$ac_ct_RANLIB
7983 RANLIB
="$ac_cv_prog_RANLIB"
7986 if test -n "$ac_tool_prefix"; then
7987 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7988 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
7989 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7990 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7991 if test "${ac_cv_prog_STRIP+set}" = set; then
7992 echo $ECHO_N "(cached) $ECHO_C" >&6
7994 if test -n "$STRIP"; then
7995 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
7997 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8001 test -z "$as_dir" && as_dir
=.
8002 for ac_exec_ext
in '' $ac_executable_extensions; do
8003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8004 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
8005 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8014 STRIP
=$ac_cv_prog_STRIP
8015 if test -n "$STRIP"; then
8016 { echo "$as_me:$LINENO: result: $STRIP" >&5
8017 echo "${ECHO_T}$STRIP" >&6; }
8019 { echo "$as_me:$LINENO: result: no" >&5
8020 echo "${ECHO_T}no" >&6; }
8025 if test -z "$ac_cv_prog_STRIP"; then
8027 # Extract the first word of "strip", so it can be a program name with args.
8028 set dummy strip
; ac_word
=$2
8029 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8030 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8031 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8032 echo $ECHO_N "(cached) $ECHO_C" >&6
8034 if test -n "$ac_ct_STRIP"; then
8035 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
8037 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8041 test -z "$as_dir" && as_dir
=.
8042 for ac_exec_ext
in '' $ac_executable_extensions; do
8043 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8044 ac_cv_prog_ac_ct_STRIP
="strip"
8045 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8054 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
8055 if test -n "$ac_ct_STRIP"; then
8056 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8057 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
8059 { echo "$as_me:$LINENO: result: no" >&5
8060 echo "${ECHO_T}no" >&6; }
8063 if test "x$ac_ct_STRIP" = x
; then
8066 case $cross_compiling:$ac_tool_warned in
8068 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8069 whose name does not start with the host triplet. If you think this
8070 configuration is useful to you, please write to autoconf@gnu.org." >&5
8071 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8072 whose name does not start with the host triplet. If you think this
8073 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8074 ac_tool_warned
=yes ;;
8079 STRIP
="$ac_cv_prog_STRIP"
8084 old_CFLAGS
="$CFLAGS"
8086 # Set sane defaults for various variables
8087 test -z "$AR" && AR
=ar
8088 test -z "$AR_FLAGS" && AR_FLAGS
=cru
8089 test -z "$AS" && AS
=as
8090 test -z "$CC" && CC
=cc
8091 test -z "$LTCC" && LTCC
=$CC
8092 test -z "$LTCFLAGS" && LTCFLAGS
=$CFLAGS
8093 test -z "$DLLTOOL" && DLLTOOL
=dlltool
8094 test -z "$LD" && LD
=ld
8095 test -z "$LN_S" && LN_S
="ln -s"
8096 test -z "$MAGIC_CMD" && MAGIC_CMD
=file
8097 test -z "$NM" && NM
=nm
8098 test -z "$SED" && SED
=sed
8099 test -z "$OBJDUMP" && OBJDUMP
=objdump
8100 test -z "$RANLIB" && RANLIB
=:
8101 test -z "$STRIP" && STRIP
=:
8102 test -z "$ac_objext" && ac_objext
=o
8104 # Determine commands to create old-style static archives.
8105 old_archive_cmds
='$AR $AR_FLAGS $oldlib$oldobjs'
8106 old_postinstall_cmds
='chmod 644 $oldlib'
8107 old_postuninstall_cmds
=
8109 if test -n "$RANLIB"; then
8112 old_postinstall_cmds
="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8115 old_postinstall_cmds
="$old_postinstall_cmds~\$RANLIB \$oldlib"
8118 old_archive_cmds
="$old_archive_cmds~\$RANLIB \$oldlib"
8121 for cc_temp
in $compiler""; do
8123 compile
| *[\\/]compile
| ccache
| *[\\/]ccache
) ;;
8124 distcc
| *[\\/]distcc
| purify
| *[\\/]purify
) ;;
8129 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8132 # Only perform the check for file, if the check method requires it
8133 case $deplibs_check_method in
8135 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8136 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8137 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
8138 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8139 echo $ECHO_N "(cached) $ECHO_C" >&6
8143 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
8146 lt_save_MAGIC_CMD
="$MAGIC_CMD"
8147 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
8148 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
8149 for ac_dir
in $ac_dummy; do
8151 test -z "$ac_dir" && ac_dir
=.
8152 if test -f $ac_dir/${ac_tool_prefix}file; then
8153 lt_cv_path_MAGIC_CMD
="$ac_dir/${ac_tool_prefix}file"
8154 if test -n "$file_magic_test_file"; then
8155 case $deplibs_check_method in
8157 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8158 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
8159 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null
|
8160 $EGREP "$file_magic_regex" > /dev
/null
; then
8165 *** Warning: the command libtool uses to detect shared libraries,
8166 *** $file_magic_cmd, produces output that libtool cannot recognize.
8167 *** The result is that libtool may fail to recognize shared libraries
8168 *** as such. This will affect the creation of libtool libraries that
8169 *** depend on shared libraries, but programs linked with such libtool
8170 *** libraries will work regardless of this problem. Nevertheless, you
8171 *** may want to report the problem to your system manager and/or to
8172 *** bug-libtool@gnu.org
8182 MAGIC_CMD
="$lt_save_MAGIC_CMD"
8187 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
8188 if test -n "$MAGIC_CMD"; then
8189 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8190 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8192 { echo "$as_me:$LINENO: result: no" >&5
8193 echo "${ECHO_T}no" >&6; }
8196 if test -z "$lt_cv_path_MAGIC_CMD"; then
8197 if test -n "$ac_tool_prefix"; then
8198 { echo "$as_me:$LINENO: checking for file" >&5
8199 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
8200 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8201 echo $ECHO_N "(cached) $ECHO_C" >&6
8205 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
8208 lt_save_MAGIC_CMD
="$MAGIC_CMD"
8209 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
8210 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
8211 for ac_dir
in $ac_dummy; do
8213 test -z "$ac_dir" && ac_dir
=.
8214 if test -f $ac_dir/file; then
8215 lt_cv_path_MAGIC_CMD
="$ac_dir/file"
8216 if test -n "$file_magic_test_file"; then
8217 case $deplibs_check_method in
8219 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8220 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
8221 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null
|
8222 $EGREP "$file_magic_regex" > /dev
/null
; then
8227 *** Warning: the command libtool uses to detect shared libraries,
8228 *** $file_magic_cmd, produces output that libtool cannot recognize.
8229 *** The result is that libtool may fail to recognize shared libraries
8230 *** as such. This will affect the creation of libtool libraries that
8231 *** depend on shared libraries, but programs linked with such libtool
8232 *** libraries will work regardless of this problem. Nevertheless, you
8233 *** may want to report the problem to your system manager and/or to
8234 *** bug-libtool@gnu.org
8244 MAGIC_CMD
="$lt_save_MAGIC_CMD"
8249 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
8250 if test -n "$MAGIC_CMD"; then
8251 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8252 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8254 { echo "$as_me:$LINENO: result: no" >&5
8255 echo "${ECHO_T}no" >&6; }
8269 rhapsody
* | darwin
*)
8270 if test -n "$ac_tool_prefix"; then
8271 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8272 set dummy
${ac_tool_prefix}dsymutil
; ac_word
=$2
8273 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8274 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8275 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
8276 echo $ECHO_N "(cached) $ECHO_C" >&6
8278 if test -n "$DSYMUTIL"; then
8279 ac_cv_prog_DSYMUTIL
="$DSYMUTIL" # Let the user override the test.
8281 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8285 test -z "$as_dir" && as_dir
=.
8286 for ac_exec_ext
in '' $ac_executable_extensions; do
8287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8288 ac_cv_prog_DSYMUTIL
="${ac_tool_prefix}dsymutil"
8289 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8298 DSYMUTIL
=$ac_cv_prog_DSYMUTIL
8299 if test -n "$DSYMUTIL"; then
8300 { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
8301 echo "${ECHO_T}$DSYMUTIL" >&6; }
8303 { echo "$as_me:$LINENO: result: no" >&5
8304 echo "${ECHO_T}no" >&6; }
8309 if test -z "$ac_cv_prog_DSYMUTIL"; then
8310 ac_ct_DSYMUTIL
=$DSYMUTIL
8311 # Extract the first word of "dsymutil", so it can be a program name with args.
8312 set dummy dsymutil
; ac_word
=$2
8313 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8314 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8315 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
8316 echo $ECHO_N "(cached) $ECHO_C" >&6
8318 if test -n "$ac_ct_DSYMUTIL"; then
8319 ac_cv_prog_ac_ct_DSYMUTIL
="$ac_ct_DSYMUTIL" # Let the user override the test.
8321 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8325 test -z "$as_dir" && as_dir
=.
8326 for ac_exec_ext
in '' $ac_executable_extensions; do
8327 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8328 ac_cv_prog_ac_ct_DSYMUTIL
="dsymutil"
8329 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8338 ac_ct_DSYMUTIL
=$ac_cv_prog_ac_ct_DSYMUTIL
8339 if test -n "$ac_ct_DSYMUTIL"; then
8340 { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
8341 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
8343 { echo "$as_me:$LINENO: result: no" >&5
8344 echo "${ECHO_T}no" >&6; }
8347 if test "x$ac_ct_DSYMUTIL" = x
; then
8350 case $cross_compiling:$ac_tool_warned in
8352 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8353 whose name does not start with the host triplet. If you think this
8354 configuration is useful to you, please write to autoconf@gnu.org." >&5
8355 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8356 whose name does not start with the host triplet. If you think this
8357 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8358 ac_tool_warned
=yes ;;
8360 DSYMUTIL
=$ac_ct_DSYMUTIL
8363 DSYMUTIL
="$ac_cv_prog_DSYMUTIL"
8366 if test -n "$ac_tool_prefix"; then
8367 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8368 set dummy
${ac_tool_prefix}nmedit
; ac_word
=$2
8369 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8370 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8371 if test "${ac_cv_prog_NMEDIT+set}" = set; then
8372 echo $ECHO_N "(cached) $ECHO_C" >&6
8374 if test -n "$NMEDIT"; then
8375 ac_cv_prog_NMEDIT
="$NMEDIT" # Let the user override the test.
8377 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8381 test -z "$as_dir" && as_dir
=.
8382 for ac_exec_ext
in '' $ac_executable_extensions; do
8383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8384 ac_cv_prog_NMEDIT
="${ac_tool_prefix}nmedit"
8385 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8394 NMEDIT
=$ac_cv_prog_NMEDIT
8395 if test -n "$NMEDIT"; then
8396 { echo "$as_me:$LINENO: result: $NMEDIT" >&5
8397 echo "${ECHO_T}$NMEDIT" >&6; }
8399 { echo "$as_me:$LINENO: result: no" >&5
8400 echo "${ECHO_T}no" >&6; }
8405 if test -z "$ac_cv_prog_NMEDIT"; then
8406 ac_ct_NMEDIT
=$NMEDIT
8407 # Extract the first word of "nmedit", so it can be a program name with args.
8408 set dummy nmedit
; ac_word
=$2
8409 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8410 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8411 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
8412 echo $ECHO_N "(cached) $ECHO_C" >&6
8414 if test -n "$ac_ct_NMEDIT"; then
8415 ac_cv_prog_ac_ct_NMEDIT
="$ac_ct_NMEDIT" # Let the user override the test.
8417 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8421 test -z "$as_dir" && as_dir
=.
8422 for ac_exec_ext
in '' $ac_executable_extensions; do
8423 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8424 ac_cv_prog_ac_ct_NMEDIT
="nmedit"
8425 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8434 ac_ct_NMEDIT
=$ac_cv_prog_ac_ct_NMEDIT
8435 if test -n "$ac_ct_NMEDIT"; then
8436 { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
8437 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
8439 { echo "$as_me:$LINENO: result: no" >&5
8440 echo "${ECHO_T}no" >&6; }
8443 if test "x$ac_ct_NMEDIT" = x
; then
8446 case $cross_compiling:$ac_tool_warned in
8448 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8449 whose name does not start with the host triplet. If you think this
8450 configuration is useful to you, please write to autoconf@gnu.org." >&5
8451 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8452 whose name does not start with the host triplet. If you think this
8453 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8454 ac_tool_warned
=yes ;;
8456 NMEDIT
=$ac_ct_NMEDIT
8459 NMEDIT
="$ac_cv_prog_NMEDIT"
8463 { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
8464 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
8465 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
8466 echo $ECHO_N "(cached) $ECHO_C" >&6
8468 lt_cv_apple_cc_single_mod
=no
8469 if test -z "${LT_MULTI_MODULE}"; then
8470 # By default we will add the -single_module flag. You can override
8471 # by either setting the environment variable LT_MULTI_MODULE
8472 # non-empty at configure time, or by adding -multi_module to the
8474 echo "int foo(void){return 1;}" > conftest.c
8475 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8476 -dynamiclib ${wl}-single_module conftest.c
8477 if test -f libconftest.dylib
; then
8478 lt_cv_apple_cc_single_mod
=yes
8479 rm -rf libconftest.dylib
*
8484 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
8485 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
8486 { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
8487 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
8488 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
8489 echo $ECHO_N "(cached) $ECHO_C" >&6
8491 lt_cv_ld_exported_symbols_list
=no
8492 save_LDFLAGS
=$LDFLAGS
8493 echo "_main" > conftest.sym
8494 LDFLAGS
="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8495 cat >conftest.
$ac_ext <<_ACEOF
8498 cat confdefs.h
>>conftest.
$ac_ext
8499 cat >>conftest.
$ac_ext <<_ACEOF
8500 /* end confdefs.h. */
8510 rm -f conftest.
$ac_objext conftest
$ac_exeext
8511 if { (ac_try
="$ac_link"
8513 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
8514 *) ac_try_echo=$ac_try;;
8516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8517 (eval "$ac_link") 2>conftest.er1
8519 grep -v '^ *+' conftest.er1 >conftest.err
8521 cat conftest.err >&5
8522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8523 (exit $ac_status); } && {
8524 test -z "$ac_c_werror_flag" ||
8525 test ! -s conftest.err
8526 } && test -s conftest$ac_exeext &&
8527 $as_test_x conftest$ac_exeext; then
8528 lt_cv_ld_exported_symbols_list=yes
8530 echo "$as_me: failed program was:" >&5
8531 sed 's/^/| /' conftest.$ac_ext >&5
8533 lt_cv_ld_exported_symbols_list=no
8536 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8537 conftest$ac_exeext conftest.$ac_ext
8538 LDFLAGS="$save_LDFLAGS"
8541 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
8542 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
8544 rhapsody* | darwin1.[0123])
8545 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8547 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8549 # if running on 10.5 or later, the deployment target defaults
8550 # to the OS version, if on x86, and 10.4, the deployment
8551 # target defaults to 10.4. Don't you love it?
8552 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8553 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8554 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8556 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8558 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8562 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8563 _lt_dar_single_mod='$single_module'
8565 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8566 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8568 _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
8570 if test "$DSYMUTIL" != ":"; then
8571 _lt_dsymutil="~$DSYMUTIL \$lib || :"
8582 # Check whether --enable-libtool-lock was given.
8583 if test "${enable_libtool_lock+set}" = set; then
8584 enableval=$enable_libtool_lock;
8587 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8590 # Check whether --with-pic was given.
8591 if test "${with_pic+set}" = set; then
8592 withval=$with_pic; pic_mode="$withval"
8597 test -z "$pic_mode" && pic_mode=default
8599 # Use C for the default configuration in the libtool script
8603 ac_cpp='$CPP $CPPFLAGS'
8604 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8605 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8606 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8609 # Source file extension for C test sources.
8612 # Object file extension for compiled C test sources.
8616 # Code to be used in simple compile tests
8617 lt_simple_compile_test_code="int some_variable = 0;"
8619 # Code to be used in simple link tests
8620 lt_simple_link_test_code='int main(){return(0);}'
8623 # If no C compiler was specified, use CC.
8626 # If no C compiler flags were specified, use CFLAGS.
8627 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8629 # Allow CC to be a program name with arguments.
8633 # save warnings/boilerplate of simple test code
8634 ac_outfile=conftest.$ac_objext
8635 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8636 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8637 _lt_compiler_boilerplate=`cat conftest.err
`
8640 ac_outfile=conftest.$ac_objext
8641 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8642 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8643 _lt_linker_boilerplate=`cat conftest.err
`
8648 lt_prog_compiler_no_builtin_flag=
8650 if test "$GCC" = yes; then
8651 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8654 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8655 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
8656 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8657 echo $ECHO_N "(cached) $ECHO_C" >&6
8659 lt_cv_prog_compiler_rtti_exceptions=no
8660 ac_outfile=conftest.$ac_objext
8661 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8662 lt_compiler_flag="-fno-rtti -fno-exceptions"
8663 # Insert the option either (1) after the last *FLAGS variable, or
8664 # (2) before a word containing "conftest.", or (3) at the end.
8665 # Note that $ac_compile itself does not contain backslashes and begins
8666 # with a dollar sign (not a hyphen), so the echo should work correctly.
8667 # The option is referenced via a variable to avoid confusing sed.
8668 lt_compile=`echo "$ac_compile" | $SED \
8669 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8670 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8671 -e 's:$: $lt_compiler_flag:'`
8672 (eval echo "\"\$as_me:8672: $lt_compile\"" >&5)
8673 (eval "$lt_compile" 2>conftest.err)
8675 cat conftest.err >&5
8676 echo "$as_me:8676: \$? = $ac_status" >&5
8677 if (exit $ac_status) && test -s "$ac_outfile"; then
8678 # The compiler can only warn and ignore the option if not recognized
8679 # So say no if there are warnings other than the usual output.
8680 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8681 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8682 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8683 lt_cv_prog_compiler_rtti_exceptions=yes
8689 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8690 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8692 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8693 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8700 lt_prog_compiler_wl=
8701 lt_prog_compiler_pic=
8702 lt_prog_compiler_static=
8704 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8705 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
8707 if test "$GCC" = yes; then
8708 lt_prog_compiler_wl='-Wl,'
8709 lt_prog_compiler_static='-static'
8713 # All AIX code is PIC.
8714 if test "$host_cpu" = ia64; then
8715 # AIX 5 now supports IA64 processor
8716 lt_prog_compiler_static='-Bstatic'
8721 # FIXME: we need at least 68020 code to build shared libraries, but
8722 # adding the `-m68020' flag to GCC prevents building anything better,
8724 lt_prog_compiler_pic
='-m68020 -resident32 -malways-restore-a4'
8727 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
8728 # PIC is the default for these OSes.
8731 mingw
* | cygwin
* | pw32
* | os2
*)
8732 # This hack is so that the source file can tell whether it is being
8733 # built for inclusion in a dll (and should export symbols for example).
8734 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8735 # (--disable-auto-import) libraries
8736 lt_prog_compiler_pic
='-DDLL_EXPORT'
8739 darwin
* | rhapsody
*)
8740 # PIC is the default on this platform
8741 # Common symbols not allowed in MH_DYLIB files
8742 lt_prog_compiler_pic
='-fno-common'
8746 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8747 # Instead, we relocate shared libraries at runtime.
8751 # Just because we use GCC doesn't mean we suddenly get shared libraries
8752 # on systems that don't support them.
8753 lt_prog_compiler_can_build_shared
=no
8758 if test -d /usr
/nec
; then
8759 lt_prog_compiler_pic
=-Kconform_pic
8764 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8771 lt_prog_compiler_pic
='-fPIC'
8777 lt_prog_compiler_pic
='-fPIC'
8781 # PORTME Check for flag to pass linker flags through the system compiler.
8784 lt_prog_compiler_wl
='-Wl,'
8785 if test "$host_cpu" = ia64
; then
8786 # AIX 5 now supports IA64 processor
8787 lt_prog_compiler_static
='-Bstatic'
8789 lt_prog_compiler_static
='-bnso -bI:/lib/syscalls.exp'
8793 # PIC is the default on this platform
8794 # Common symbols not allowed in MH_DYLIB files
8795 case $cc_basename in
8797 lt_prog_compiler_pic
='-qnocommon'
8798 lt_prog_compiler_wl
='-Wl,'
8803 mingw
* | cygwin
* | pw32
* | os2
*)
8804 # This hack is so that the source file can tell whether it is being
8805 # built for inclusion in a dll (and should export symbols for example).
8806 lt_prog_compiler_pic
='-DDLL_EXPORT'
8809 hpux9
* | hpux10
* | hpux11
*)
8810 lt_prog_compiler_wl
='-Wl,'
8811 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8818 lt_prog_compiler_pic
='+Z'
8821 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8822 lt_prog_compiler_static
='${wl}-a ${wl}archive'
8825 irix5
* | irix6
* | nonstopux
*)
8826 lt_prog_compiler_wl
='-Wl,'
8827 # PIC (with -KPIC) is the default.
8828 lt_prog_compiler_static
='-non_shared'
8832 lt_prog_compiler_pic
='-KPIC'
8833 lt_prog_compiler_static
='-Bstatic'
8836 linux
* | k
*bsd
*-gnu)
8837 case $cc_basename in
8839 lt_prog_compiler_wl
='-Wl,'
8840 lt_prog_compiler_pic
='-KPIC'
8841 lt_prog_compiler_static
='-static'
8843 pgcc
* | pgf77
* | pgf90
* | pgf95
*)
8844 # Portland Group compilers (*not* the Pentium gcc compiler,
8845 # which looks to be a dead project)
8846 lt_prog_compiler_wl
='-Wl,'
8847 lt_prog_compiler_pic
='-fpic'
8848 lt_prog_compiler_static
='-Bstatic'
8851 lt_prog_compiler_wl
='-Wl,'
8852 # All Alpha code is PIC.
8853 lt_prog_compiler_static
='-non_shared'
8856 case `$CC -V 2>&1 | sed 5q` in
8859 lt_prog_compiler_pic
='-KPIC'
8860 lt_prog_compiler_static
='-Bstatic'
8861 lt_prog_compiler_wl
='-Wl,'
8864 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8865 lt_prog_compiler_pic
='-KPIC'
8866 lt_prog_compiler_static
='-Bstatic'
8867 lt_prog_compiler_wl
=''
8874 osf3
* | osf4
* | osf5
*)
8875 lt_prog_compiler_wl
='-Wl,'
8876 # All OSF/1 code is PIC.
8877 lt_prog_compiler_static
='-non_shared'
8881 lt_prog_compiler_static
='-non_shared'
8885 lt_prog_compiler_pic
='-KPIC'
8886 lt_prog_compiler_static
='-Bstatic'
8887 case $cc_basename in
8889 lt_prog_compiler_wl
='-Qoption ld ';;
8891 lt_prog_compiler_wl
='-Wl,';;
8896 lt_prog_compiler_wl
='-Qoption ld '
8897 lt_prog_compiler_pic
='-PIC'
8898 lt_prog_compiler_static
='-Bstatic'
8901 sysv4
| sysv4.2uw2
* | sysv4.3
*)
8902 lt_prog_compiler_wl
='-Wl,'
8903 lt_prog_compiler_pic
='-KPIC'
8904 lt_prog_compiler_static
='-Bstatic'
8908 if test -d /usr
/nec
;then
8909 lt_prog_compiler_pic
='-Kconform_pic'
8910 lt_prog_compiler_static
='-Bstatic'
8914 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
8915 lt_prog_compiler_wl
='-Wl,'
8916 lt_prog_compiler_pic
='-KPIC'
8917 lt_prog_compiler_static
='-Bstatic'
8921 lt_prog_compiler_wl
='-Wl,'
8922 lt_prog_compiler_can_build_shared
=no
8926 lt_prog_compiler_pic
='-pic'
8927 lt_prog_compiler_static
='-Bstatic'
8931 lt_prog_compiler_can_build_shared
=no
8936 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8937 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
8940 # Check to make sure the PIC flag actually works.
8942 if test -n "$lt_prog_compiler_pic"; then
8944 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8945 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
8946 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8947 echo $ECHO_N "(cached) $ECHO_C" >&6
8949 lt_cv_prog_compiler_pic_works
=no
8950 ac_outfile
=conftest.
$ac_objext
8951 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8952 lt_compiler_flag
="$lt_prog_compiler_pic -DPIC"
8953 # Insert the option either (1) after the last *FLAGS variable, or
8954 # (2) before a word containing "conftest.", or (3) at the end.
8955 # Note that $ac_compile itself does not contain backslashes and begins
8956 # with a dollar sign (not a hyphen), so the echo should work correctly.
8957 # The option is referenced via a variable to avoid confusing sed.
8958 lt_compile
=`echo "$ac_compile" | $SED \
8959 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8960 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8961 -e 's:$: $lt_compiler_flag:'`
8962 (eval echo "\"\$as_me:8962: $lt_compile\"" >&5)
8963 (eval "$lt_compile" 2>conftest.err
)
8965 cat conftest.err
>&5
8966 echo "$as_me:8966: \$? = $ac_status" >&5
8967 if (exit $ac_status) && test -s "$ac_outfile"; then
8968 # The compiler can only warn and ignore the option if not recognized
8969 # So say no if there are warnings other than the usual output.
8970 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8971 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8972 if test ! -s conftest.er2
|| diff conftest.exp conftest.er2
>/dev
/null
; then
8973 lt_cv_prog_compiler_pic_works
=yes
8979 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8980 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
8982 if test x
"$lt_cv_prog_compiler_pic_works" = xyes
; then
8983 case $lt_prog_compiler_pic in
8985 *) lt_prog_compiler_pic
=" $lt_prog_compiler_pic" ;;
8988 lt_prog_compiler_pic
=
8989 lt_prog_compiler_can_build_shared
=no
8994 # For platforms which do not support PIC, -DPIC is meaningless:
8996 lt_prog_compiler_pic
=
8999 lt_prog_compiler_pic
="$lt_prog_compiler_pic -DPIC"
9004 # Check to make sure the static flag actually works.
9006 wl
=$lt_prog_compiler_wl eval lt_tmp_static_flag
=\"$lt_prog_compiler_static\"
9007 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9008 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
9009 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
9010 echo $ECHO_N "(cached) $ECHO_C" >&6
9012 lt_cv_prog_compiler_static_works
=no
9013 save_LDFLAGS
="$LDFLAGS"
9014 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
9015 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
9016 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
9017 # The linker can only warn and ignore the option if not recognized
9018 # So say no if there are warnings
9019 if test -s conftest.err
; then
9020 # Append any errors to the config.log.
9021 cat conftest.err
1>&5
9022 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9023 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
9024 if diff conftest.exp conftest.er2
>/dev
/null
; then
9025 lt_cv_prog_compiler_static_works
=yes
9028 lt_cv_prog_compiler_static_works
=yes
9032 LDFLAGS
="$save_LDFLAGS"
9035 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
9036 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
9038 if test x
"$lt_cv_prog_compiler_static_works" = xyes
; then
9041 lt_prog_compiler_static
=
9045 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9046 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9047 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9048 echo $ECHO_N "(cached) $ECHO_C" >&6
9050 lt_cv_prog_compiler_c_o
=no
9051 $rm -r conftest
2>/dev
/null
9055 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
9057 lt_compiler_flag
="-o out/conftest2.$ac_objext"
9058 # Insert the option either (1) after the last *FLAGS variable, or
9059 # (2) before a word containing "conftest.", or (3) at the end.
9060 # Note that $ac_compile itself does not contain backslashes and begins
9061 # with a dollar sign (not a hyphen), so the echo should work correctly.
9062 lt_compile
=`echo "$ac_compile" | $SED \
9063 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9064 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9065 -e 's:$: $lt_compiler_flag:'`
9066 (eval echo "\"\$as_me:9066: $lt_compile\"" >&5)
9067 (eval "$lt_compile" 2>out
/conftest.err
)
9069 cat out
/conftest.err
>&5
9070 echo "$as_me:9070: \$? = $ac_status" >&5
9071 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
9073 # The compiler can only warn and ignore the option if not recognized
9074 # So say no if there are warnings
9075 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out
/conftest.exp
9076 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
9077 if test ! -s out
/conftest.er2
|| diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
9078 lt_cv_prog_compiler_c_o
=yes
9083 # SGI C++ compiler will create directory out/ii_files/ for
9084 # template instantiation
9085 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
9086 $rm out
/* && rmdir out
9092 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9093 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9096 hard_links
="nottested"
9097 if test "$lt_cv_prog_compiler_c_o" = no
&& test "$need_locks" != no
; then
9098 # do not overwrite the value of need_locks provided by the user
9099 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9100 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
9103 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
9105 ln conftest.a conftest.b
2>&5 || hard_links
=no
9106 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
9107 { echo "$as_me:$LINENO: result: $hard_links" >&5
9108 echo "${ECHO_T}$hard_links" >&6; }
9109 if test "$hard_links" = no
; then
9110 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9111 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9118 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9119 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
9122 allow_undefined_flag
=
9123 enable_shared_with_static_runtimes
=no
9125 archive_expsym_cmds
=
9126 old_archive_From_new_cmds
=
9127 old_archive_from_expsyms_cmds
=
9128 export_dynamic_flag_spec
=
9129 whole_archive_flag_spec
=
9130 thread_safe_flag_spec
=
9131 hardcode_libdir_flag_spec
=
9132 hardcode_libdir_flag_spec_ld
=
9133 hardcode_libdir_separator
=
9136 hardcode_shlibpath_var
=unsupported
9137 link_all_deplibs
=unknown
9138 hardcode_automatic
=no
9141 always_export_symbols
=no
9142 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9143 # include_expsyms should be a list of space-separated symbols to be *always*
9144 # included in the symbol list
9146 # exclude_expsyms can be an extended regexp of symbols to exclude
9147 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9148 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9149 # as well as any symbol that contains `d'.
9150 exclude_expsyms
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9151 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9152 # platforms (ab)use it in PIC code, but their linkers get confused if
9153 # the symbol is explicitly referenced. Since portable code cannot
9154 # rely on this symbol name, it's probably fine to never include it in
9155 # preloaded symbol tables.
9156 # Exclude shared library initialization/finalization symbols.
9157 extract_expsyms_cmds
=
9158 # Just being paranoid about ensuring that cc_basename is set.
9159 for cc_temp
in $compiler""; do
9161 compile
| *[\\/]compile
| ccache
| *[\\/]ccache
) ;;
9162 distcc
| *[\\/]distcc
| purify
| *[\\/]purify
) ;;
9167 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9170 cygwin
* | mingw
* | pw32
*)
9171 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9172 # When not using gcc, we currently assume that we are using
9173 # Microsoft Visual C++.
9174 if test "$GCC" != yes; then
9179 # we just hope/assume this is gcc and not c89 (= MSVC++)
9188 if test "$with_gnu_ld" = yes; then
9189 # If archive_cmds runs LD, not CC, wlarc should be empty
9192 # Set some defaults for GNU ld with shared library support. These
9193 # are reset later if shared libraries are not supported. Putting them
9194 # here allows them to be overridden if necessary.
9195 runpath_var
=LD_RUN_PATH
9196 hardcode_libdir_flag_spec
='${wl}--rpath ${wl}$libdir'
9197 export_dynamic_flag_spec
='${wl}--export-dynamic'
9198 # ancient GNU ld didn't support --whole-archive et. al.
9199 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev
/null
; then
9200 whole_archive_flag_spec
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9202 whole_archive_flag_spec
=
9204 supports_anon_versioning
=no
9205 case `$LD -v 2>/dev/null` in
9206 *\
[01].
* | *\
2.
[0-9].
* | *\
2.10.
*) ;; # catch versions < 2.11
9207 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
9208 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
9209 *\
2.11.
*) ;; # other 2.11 versions
9210 *) supports_anon_versioning
=yes ;;
9213 # See if GNU ld supports shared libraries.
9216 # On AIX/PPC, the GNU linker is very broken
9217 if test "$host_cpu" != ia64
; then
9221 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9222 *** to be unable to reliably create shared libraries on AIX.
9223 *** Therefore, libtool is disabling shared libraries support. If you
9224 *** really care for shared libraries, you may want to modify your PATH
9225 *** so that a non-GNU linker is found, and then restart.
9232 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)'
9233 hardcode_libdir_flag_spec
='-L$libdir'
9234 hardcode_minus_L
=yes
9236 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9237 # that the semantics of dynamic libraries on AmigaOS, at least up
9238 # to version 4, is to share data among multiple programs linked
9239 # with the same dynamic library. Since this doesn't match the
9240 # behavior of shared libraries on other platforms, we can't use
9246 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev
/null
; then
9247 allow_undefined_flag
=unsupported
9248 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9249 # support --undefined. This deserves some investigation. FIXME
9250 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9256 cygwin
* | mingw
* | pw32
*)
9257 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9258 # as there is no search path for DLLs.
9259 hardcode_libdir_flag_spec
='-L$libdir'
9260 allow_undefined_flag
=unsupported
9261 always_export_symbols
=no
9262 enable_shared_with_static_runtimes
=yes
9263 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9265 if $LD --help 2>&1 | grep 'auto-import' > /dev
/null
; then
9266 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9267 # If the export-symbols file already is a .def file (1st line
9268 # is EXPORTS), use it as is; otherwise, prepend...
9269 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9270 cp $export_symbols $output_objdir/$soname.def;
9272 echo EXPORTS > $output_objdir/$soname.def;
9273 cat $export_symbols >> $output_objdir/$soname.def;
9275 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9283 hardcode_shlibpath_var
=no
9284 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
9285 export_dynamic_flag_spec
='${wl}-E'
9286 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9287 # Instead, shared libraries are loaded at an image base (0x10000000 by
9288 # default) and relocated if they conflict, which is a slow very memory
9289 # consuming and fragmenting process. To avoid this, we pick a random,
9290 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9291 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9292 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9293 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'
9296 gnu
* | linux
* | k
*bsd
*-gnu)
9297 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev
/null
; then
9299 case $cc_basename,$host_cpu in
9300 pgcc
*) # Portland Group C compiler
9301 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'
9302 tmp_addflag
=' $pic_flag'
9304 pgf77
* | pgf90
* | pgf95
*) # Portland Group f77 and f90 compilers
9305 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'
9306 tmp_addflag
=' $pic_flag -Mnomain' ;;
9307 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
9308 tmp_addflag
=' -i_dynamic' ;;
9309 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
9310 tmp_addflag
=' -i_dynamic -nofor_main' ;;
9311 ifc
* | ifort
*) # Intel Fortran compiler
9312 tmp_addflag
=' -nofor_main' ;;
9314 case `$CC -V 2>&1 | sed 5q` in
9315 *Sun\ C
*) # Sun C 5.9
9316 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'
9317 tmp_sharedflag
='-G' ;;
9318 *Sun\ F
*) # Sun Fortran 8.3
9319 tmp_sharedflag
='-G' ;;
9321 tmp_sharedflag
='-shared' ;;
9323 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9325 if test $supports_anon_versioning = yes; then
9326 archive_expsym_cmds
='$echo "{ global:" > $output_objdir/$libname.ver~
9327 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9328 $echo "local: *; };" >> $output_objdir/$libname.ver~
9329 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9337 netbsd
* | netbsdelf
*-gnu)
9338 if echo __ELF__
| $CC -E - | grep __ELF__
>/dev
/null
; then
9339 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9342 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9343 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9348 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev
/null
; then
9352 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9353 *** create shared libraries on Solaris systems. Therefore, libtool
9354 *** is disabling shared libraries support. We urge you to upgrade GNU
9355 *** binutils to release 2.9.1 or newer. Another option is to modify
9356 *** your PATH or compiler configuration so that the native linker is
9357 *** used, and then restart.
9360 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev
/null
; then
9361 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9362 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9368 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
9369 case `$LD -v 2>&1` in
9370 *\
[01].
* | *\
2.
[0-9].
* | *\
2.1[0-5].
*)
9374 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9375 *** reliably create shared libraries on SCO systems. Therefore, libtool
9376 *** is disabling shared libraries support. We urge you to upgrade GNU
9377 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9378 *** your PATH or compiler configuration so that the native linker is
9379 *** used, and then restart.
9384 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev
/null
; then
9385 hardcode_libdir_flag_spec
='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
9386 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
9387 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
9396 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9399 hardcode_shlibpath_var
=no
9403 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev
/null
; then
9404 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9405 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9412 if test "$ld_shlibs" = no
; then
9414 hardcode_libdir_flag_spec
=
9415 export_dynamic_flag_spec
=
9416 whole_archive_flag_spec
=
9419 # PORTME fill in a description of your system's linker (not GNU ld)
9422 allow_undefined_flag
=unsupported
9423 always_export_symbols
=yes
9424 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'
9425 # Note: this linker hardcodes the directories in LIBPATH if there
9426 # are no directories specified by -L.
9427 hardcode_minus_L
=yes
9428 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9429 # Neither direct hardcoding nor static linking is supported with a
9431 hardcode_direct
=unsupported
9436 if test "$host_cpu" = ia64
; then
9437 # On IA64, the linker does run time linking by default, so we don't
9438 # have to do anything special.
9439 aix_use_runtimelinking
=no
9440 exp_sym_flag
='-Bexport'
9443 # If we're using GNU nm, then we don't want the "-C" option.
9444 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9445 if $NM -V 2>&1 | grep 'GNU' > /dev
/null
; then
9446 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'
9448 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'
9450 aix_use_runtimelinking
=no
9452 # Test if we are trying to use run time linking or normal
9453 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9454 # need to do runtime linking.
9455 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
9456 for ld_flag
in $LDFLAGS; do
9457 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9458 aix_use_runtimelinking
=yes
9465 exp_sym_flag
='-bexport'
9466 no_entry_flag
='-bnoentry'
9469 # When large executables or shared objects are built, AIX ld can
9470 # have problems creating the table of contents. If linking a library
9471 # or program results in "error TOC overflow" add -mminimal-toc to
9472 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9473 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9477 hardcode_libdir_separator
=':'
9478 link_all_deplibs
=yes
9480 if test "$GCC" = yes; then
9481 case $host_os in aix4.
[012]|aix4.
[012].
*)
9482 # We only want to do this on AIX 4.2 and lower, the check
9483 # below for broken collect2 doesn't work under 4.3+
9484 collect2name
=`${CC} -print-prog-name=collect2`
9485 if test -f "$collect2name" && \
9486 strings "$collect2name" | grep resolve_lib_name
>/dev
/null
9488 # We have reworked collect2
9491 # We have old collect2
9492 hardcode_direct
=unsupported
9493 # It fails to find uninstalled libraries when the uninstalled
9494 # path is not listed in the libpath. Setting hardcode_minus_L
9495 # to unsupported forces relinking
9496 hardcode_minus_L
=yes
9497 hardcode_libdir_flag_spec
='-L$libdir'
9498 hardcode_libdir_separator
=
9502 shared_flag
='-shared'
9503 if test "$aix_use_runtimelinking" = yes; then
9504 shared_flag
="$shared_flag "'${wl}-G'
9508 if test "$host_cpu" = ia64
; then
9509 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9510 # chokes on -Wl,-G. The following line is correct:
9513 if test "$aix_use_runtimelinking" = yes; then
9514 shared_flag
='${wl}-G'
9516 shared_flag
='${wl}-bM:SRE'
9521 # It seems that -bexpall does not export symbols beginning with
9522 # underscore (_), so it is better to generate a list of symbols to export.
9523 always_export_symbols
=yes
9524 if test "$aix_use_runtimelinking" = yes; then
9525 # Warning - without using the other runtime loading flags (-brtl),
9526 # -berok will link without error, but may produce a broken library.
9527 allow_undefined_flag
='-berok'
9528 # Determine the default libpath from the value encoded in an empty executable.
9529 cat >conftest.
$ac_ext <<_ACEOF
9532 cat confdefs.h
>>conftest.
$ac_ext
9533 cat >>conftest.
$ac_ext <<_ACEOF
9534 /* end confdefs.h. */
9544 rm -f conftest.
$ac_objext conftest
$ac_exeext
9545 if { (ac_try
="$ac_link"
9547 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
9548 *) ac_try_echo=$ac_try;;
9550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9551 (eval "$ac_link") 2>conftest.er1
9553 grep -v '^ *+' conftest.er1 >conftest.err
9555 cat conftest.err >&5
9556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9557 (exit $ac_status); } && {
9558 test -z "$ac_c_werror_flag" ||
9559 test ! -s conftest.err
9560 } && test -s conftest$ac_exeext &&
9561 $as_test_x conftest$ac_exeext; then
9563 lt_aix_libpath_sed='
9564 /Import File Strings/,/^$/ {
9570 aix_libpath=`dump
-H conftest
$ac_exeext 2>/dev
/null
| $SED -n -e "$lt_aix_libpath_sed"`
9571 # Check for a 64-bit object if we didn't find anything.
9572 if test -z "$aix_libpath"; then
9573 aix_libpath=`dump
-HX64 conftest
$ac_exeext 2>/dev
/null
| $SED -n -e "$lt_aix_libpath_sed"`
9576 echo "$as_me: failed program was:" >&5
9577 sed 's/^/| /' conftest.$ac_ext >&5
9582 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9583 conftest$ac_exeext conftest.$ac_ext
9584 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9586 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9587 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"
9589 if test "$host_cpu" = ia64; then
9590 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9591 allow_undefined_flag="-z nodefs"
9592 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"
9594 # Determine the default libpath from the value encoded in an empty executable.
9595 cat >conftest.$ac_ext <<_ACEOF
9598 cat confdefs.h >>conftest.$ac_ext
9599 cat >>conftest.$ac_ext <<_ACEOF
9600 /* end confdefs.h. */
9610 rm -f conftest.$ac_objext conftest$ac_exeext
9611 if { (ac_try="$ac_link"
9613 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
9614 *) ac_try_echo
=$ac_try;;
9616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9617 (eval "$ac_link") 2>conftest.er1
9619 grep -v '^ *+' conftest.er1
>conftest.err
9621 cat conftest.err
>&5
9622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9623 (exit $ac_status); } && {
9624 test -z "$ac_c_werror_flag" ||
9625 test ! -s conftest.err
9626 } && test -s conftest
$ac_exeext &&
9627 $as_test_x conftest
$ac_exeext; then
9629 lt_aix_libpath_sed
='
9630 /Import File Strings/,/^$/ {
9636 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9637 # Check for a 64-bit object if we didn't find anything.
9638 if test -z "$aix_libpath"; then
9639 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9642 echo "$as_me: failed program was:" >&5
9643 sed 's/^/| /' conftest.
$ac_ext >&5
9648 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9649 conftest
$ac_exeext conftest.
$ac_ext
9650 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
9652 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
9653 # Warning - without using the other run time loading flags,
9654 # -berok will link without error, but may produce a broken library.
9655 no_undefined_flag
=' ${wl}-bernotok'
9656 allow_undefined_flag
=' ${wl}-berok'
9657 # Exported symbols can be pulled into shared objects from archives
9658 whole_archive_flag_spec
='$convenience'
9659 archive_cmds_need_lc
=yes
9660 # This is similar to how AIX traditionally builds its shared libraries.
9661 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'
9667 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)'
9668 hardcode_libdir_flag_spec
='-L$libdir'
9669 hardcode_minus_L
=yes
9670 # see comment about different semantics on the GNU ld section
9675 export_dynamic_flag_spec
=-rdynamic
9678 cygwin
* | mingw
* | pw32
*)
9679 # When not using gcc, we currently assume that we are using
9680 # Microsoft Visual C++.
9681 # hardcode_libdir_flag_spec is actually meaningless, as there is
9682 # no search path for DLLs.
9683 hardcode_libdir_flag_spec
=' '
9684 allow_undefined_flag
=unsupported
9685 # Tell ltmain to make .lib files, not .a files.
9687 # Tell ltmain to make .dll files, not .so files.
9689 # FIXME: Setting linknames here is a bad hack.
9690 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9691 # The linker will automatically build a .lib file if we build a DLL.
9692 old_archive_From_new_cmds
='true'
9693 # FIXME: Should let the user specify the lib program.
9694 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
9695 fix_srcfile_path
='`cygpath -w "$srcfile"`'
9696 enable_shared_with_static_runtimes
=yes
9699 darwin
* | rhapsody
*)
9701 rhapsody
* | darwin1.
[012])
9702 allow_undefined_flag
='${wl}-undefined ${wl}suppress'
9705 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9706 allow_undefined_flag
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9708 case ${MACOSX_DEPLOYMENT_TARGET} in
9710 allow_undefined_flag
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9713 allow_undefined_flag
='${wl}-undefined ${wl}dynamic_lookup'
9719 archive_cmds_need_lc
=no
9721 hardcode_automatic
=yes
9722 hardcode_shlibpath_var
=unsupported
9723 whole_archive_flag_spec
=''
9724 link_all_deplibs
=yes
9725 if test "$GCC" = yes ; then
9726 output_verbose_link_cmd
='echo'
9727 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9728 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9729 archive_expsym_cmds
="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
9730 module_expsym_cmds
="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
9732 case $cc_basename in
9734 output_verbose_link_cmd
='echo'
9735 archive_cmds
='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
9736 module_cmds
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9737 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9738 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}'
9739 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}'
9749 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9750 hardcode_libdir_flag_spec
='-L$libdir'
9751 hardcode_shlibpath_var
=no
9758 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9759 # support. Future versions do this automatically, but an explicit c++rt0.o
9760 # does not break anything, and helps significantly (at the cost of a little
9763 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9764 hardcode_libdir_flag_spec
='-R$libdir'
9766 hardcode_shlibpath_var
=no
9769 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9771 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9773 hardcode_minus_L
=yes
9774 hardcode_shlibpath_var
=no
9777 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9778 freebsd
* | dragonfly
*)
9779 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9780 hardcode_libdir_flag_spec
='-R$libdir'
9782 hardcode_shlibpath_var
=no
9786 if test "$GCC" = yes; then
9787 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'
9789 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'
9791 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9792 hardcode_libdir_separator
=:
9795 # hardcode_minus_L: Not really in the search PATH,
9796 # but as the default location of the library.
9797 hardcode_minus_L
=yes
9798 export_dynamic_flag_spec
='${wl}-E'
9802 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
9803 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9805 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9807 if test "$with_gnu_ld" = no
; then
9808 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9809 hardcode_libdir_separator
=:
9812 export_dynamic_flag_spec
='${wl}-E'
9814 # hardcode_minus_L: Not really in the search PATH,
9815 # but as the default location of the library.
9816 hardcode_minus_L
=yes
9821 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
9824 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9827 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9830 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9836 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9839 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9842 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9846 if test "$with_gnu_ld" = no
; then
9847 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9848 hardcode_libdir_separator
=:
9852 hardcode_libdir_flag_spec_ld
='+b $libdir'
9854 hardcode_shlibpath_var
=no
9858 export_dynamic_flag_spec
='${wl}-E'
9860 # hardcode_minus_L: Not really in the search PATH,
9861 # but as the default location of the library.
9862 hardcode_minus_L
=yes
9868 irix5
* | irix6
* | nonstopux
*)
9869 if test "$GCC" = yes; then
9870 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'
9872 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'
9873 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
9875 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9876 hardcode_libdir_separator
=:
9877 link_all_deplibs
=yes
9880 netbsd
* | netbsdelf
*-gnu)
9881 if echo __ELF__
| $CC -E - | grep __ELF__
>/dev
/null
; then
9882 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9884 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9886 hardcode_libdir_flag_spec
='-R$libdir'
9888 hardcode_shlibpath_var
=no
9892 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9894 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9895 hardcode_libdir_separator
=:
9896 hardcode_shlibpath_var
=no
9900 if test -f /usr
/libexec
/ld.so
; then
9902 hardcode_shlibpath_var
=no
9903 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9904 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9905 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9906 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
9907 export_dynamic_flag_spec
='${wl}-E'
9910 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
9911 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9912 hardcode_libdir_flag_spec
='-R$libdir'
9915 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9916 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
9926 hardcode_libdir_flag_spec
='-L$libdir'
9927 hardcode_minus_L
=yes
9928 allow_undefined_flag
=unsupported
9929 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'
9930 old_archive_From_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9934 if test "$GCC" = yes; then
9935 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
9936 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'
9938 allow_undefined_flag
=' -expect_unresolved \*'
9939 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'
9941 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9942 hardcode_libdir_separator
=:
9945 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
9946 if test "$GCC" = yes; then
9947 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
9948 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'
9949 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9951 allow_undefined_flag
=' -expect_unresolved \*'
9952 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'
9953 archive_expsym_cmds
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9954 $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'
9956 # Both c and cxx compiler support -rpath directly
9957 hardcode_libdir_flag_spec
='-rpath $libdir'
9959 hardcode_libdir_separator
=:
9963 no_undefined_flag
=' -z text'
9964 if test "$GCC" = yes; then
9966 archive_cmds
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9967 archive_expsym_cmds
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9968 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9971 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9972 archive_expsym_cmds
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9973 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9975 hardcode_libdir_flag_spec
='-R$libdir'
9976 hardcode_shlibpath_var
=no
9978 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
9980 # The compiler driver will combine and reorder linker options,
9981 # but understands `-z linker_flag'. GCC discards it without `$wl',
9982 # but is careful enough not to reorder.
9983 # Supported since Solaris 2.6 (maybe 2.5.1?)
9984 if test "$GCC" = yes; then
9985 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9987 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
9991 link_all_deplibs
=yes
9995 if test "x$host_vendor" = xsequent
; then
9996 # Use $CC to link under sequent, because it throws in some extra .o
9997 # files that make .init and .fini sections work.
9998 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10000 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10002 hardcode_libdir_flag_spec
='-L$libdir'
10003 hardcode_direct
=yes
10004 hardcode_minus_L
=yes
10005 hardcode_shlibpath_var
=no
10009 case $host_vendor in
10011 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10012 hardcode_direct
=yes # is this really true???
10015 ## LD is ld it makes a PLAMLIB
10016 ## CC just makes a GrossModule.
10017 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10018 reload_cmds
='$CC -r -o $output$reload_objs'
10022 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10023 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
10026 runpath_var
='LD_RUN_PATH'
10027 hardcode_shlibpath_var
=no
10031 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10032 hardcode_shlibpath_var
=no
10033 export_dynamic_flag_spec
='-Bexport'
10037 if test -d /usr
/nec
; then
10038 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10039 hardcode_shlibpath_var
=no
10040 runpath_var
=LD_RUN_PATH
10041 hardcode_runpath_var
=yes
10046 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
10047 no_undefined_flag
='${wl}-z,text'
10048 archive_cmds_need_lc
=no
10049 hardcode_shlibpath_var
=no
10050 runpath_var
='LD_RUN_PATH'
10052 if test "$GCC" = yes; then
10053 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10054 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10056 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10057 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10061 sysv5
* | sco3.2v5
* | sco5v6
*)
10062 # Note: We can NOT use -z defs as we might desire, because we do not
10063 # link with -lc, and that would cause any symbols used from libc to
10064 # always be unresolved, which means just about no library would
10065 # ever link correctly. If we're not using GNU ld we use -z text
10066 # though, which does catch some bad symbols but isn't as heavy-handed
10068 no_undefined_flag
='${wl}-z,text'
10069 allow_undefined_flag
='${wl}-z,nodefs'
10070 archive_cmds_need_lc
=no
10071 hardcode_shlibpath_var
=no
10072 hardcode_libdir_flag_spec
='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
10073 hardcode_libdir_separator
=':'
10074 link_all_deplibs
=yes
10075 export_dynamic_flag_spec
='${wl}-Bexport'
10076 runpath_var
='LD_RUN_PATH'
10078 if test "$GCC" = yes; then
10079 archive_cmds
='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10080 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10082 archive_cmds
='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10083 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10088 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10089 hardcode_libdir_flag_spec
='-L$libdir'
10090 hardcode_shlibpath_var
=no
10099 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10100 echo "${ECHO_T}$ld_shlibs" >&6; }
10101 test "$ld_shlibs" = no
&& can_build_shared
=no
10104 # Do we need to explicitly link libc?
10106 case "x$archive_cmds_need_lc" in
10108 # Assume -lc should be added
10109 archive_cmds_need_lc
=yes
10111 if test "$enable_shared" = yes && test "$GCC" = yes; then
10112 case $archive_cmds in
10114 # FIXME: we may have to deal with multi-command sequences.
10117 # Test whether the compiler implicitly links with -lc since on some
10118 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10119 # to ld, don't add -lc before -lgcc.
10120 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10121 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
10123 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
10125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10126 (eval $ac_compile) 2>&5
10128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10129 (exit $ac_status); } 2>conftest.err
; then
10132 libobjs
=conftest.
$ac_objext
10134 wl
=$lt_prog_compiler_wl
10135 pic_flag
=$lt_prog_compiler_pic
10141 lt_save_allow_undefined_flag
=$allow_undefined_flag
10142 allow_undefined_flag
=
10143 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10144 (eval $archive_cmds 2\
>\
&1 \
| grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
10146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10147 (exit $ac_status); }
10149 archive_cmds_need_lc
=no
10151 archive_cmds_need_lc
=yes
10153 allow_undefined_flag
=$lt_save_allow_undefined_flag
10155 cat conftest.err
1>&5
10158 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
10159 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
10166 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10167 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
10168 library_names_spec
=
10169 libname_spec
='lib$name'
10173 postuninstall_cmds
=
10177 shlibpath_overrides_runpath
=unknown
10179 dynamic_linker
="$host_os ld.so"
10180 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
10182 if test "$GCC" = yes; then
10184 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
10185 *) lt_awk_arg
="/^libraries:/" ;;
10187 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10188 if echo "$lt_search_path_spec" | grep ';' >/dev
/null
; then
10189 # if the path contains ";" then we assume it to be the separator
10190 # otherwise default to the standard path separator (i.e. ":") - it is
10191 # assumed that no part of a normal pathname contains ";" but that should
10192 # okay in the real world where ";" in dirpaths is itself problematic.
10193 lt_search_path_spec
=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10195 lt_search_path_spec
=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10197 # Ok, now we have the path, separated by spaces, we can step through it
10198 # and add multilib dir if necessary.
10199 lt_tmp_lt_search_path_spec
=
10200 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10201 for lt_sys_path
in $lt_search_path_spec; do
10202 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10203 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10205 test -d "$lt_sys_path" && \
10206 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
10209 lt_search_path_spec
=`echo $lt_tmp_lt_search_path_spec | awk '
10210 BEGIN {RS=" "; FS="/|\n";} {
10213 for (lt_i = NF; lt_i > 0; lt_i--) {
10214 if ($lt_i != "" && $lt_i != ".") {
10215 if ($lt_i == "..") {
10218 if (lt_count == 0) {
10219 lt_foo="/" $lt_i lt_foo;
10226 if (lt_foo != "") { lt_freq[lt_foo]++; }
10227 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10229 sys_lib_search_path_spec
=`echo $lt_search_path_spec`
10231 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
10233 need_lib_prefix
=unknown
10234 hardcode_into_libs
=no
10236 # when you set need_version to no, make sure it does not cause -set_version
10237 # flags to be left without arguments
10238 need_version
=unknown
10243 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
10244 shlibpath_var
=LIBPATH
10246 # AIX 3 has no versioning support, so we append a major version to the name.
10247 soname_spec
='${libname}${release}${shared_ext}$major'
10254 hardcode_into_libs
=yes
10255 if test "$host_cpu" = ia64
; then
10256 # AIX 5 supports IA64
10257 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10258 shlibpath_var
=LD_LIBRARY_PATH
10260 # With GCC up to 2.95.x, collect2 would create an import file
10261 # for dependence libraries. The import file would start with
10262 # the line `#! .'. This would cause the generated library to
10263 # depend on `.', always an invalid library. This was fixed in
10264 # development snapshots of GCC prior to 3.0.
10266 aix4
| aix4.
[01] | aix4.
[01].
*)
10267 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10269 echo '#endif'; } | ${CC} -E - | grep yes > /dev
/null
; then
10272 can_build_shared
=no
10276 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10277 # soname into executable. Probably we can add versioning support to
10278 # collect2, so additional links can be useful in future.
10279 if test "$aix_use_runtimelinking" = yes; then
10280 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10281 # instead of lib<name>.a to let people know that these are not
10282 # typical AIX shared libraries.
10283 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10285 # We preserve .a as extension for shared libraries through AIX4.2
10286 # and later when we are not doing run time linking.
10287 library_names_spec
='${libname}${release}.a $libname.a'
10288 soname_spec
='${libname}${release}${shared_ext}$major'
10290 shlibpath_var
=LIBPATH
10295 library_names_spec
='$libname.ixlibrary $libname.a'
10296 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10297 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'
10301 library_names_spec
='${libname}${shared_ext}'
10302 dynamic_linker
="$host_os ld.so"
10303 shlibpath_var
=LIBRARY_PATH
10309 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10310 soname_spec
='${libname}${release}${shared_ext}$major'
10311 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
10312 shlibpath_var
=LD_LIBRARY_PATH
10313 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10314 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
10315 # the default ld.so.conf also contains /usr/contrib/lib and
10316 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10317 # libtool to hard-code these into programs
10320 cygwin
* | mingw
* | pw32
*)
10321 version_type
=windows
10326 case $GCC,$host_os in
10327 yes,cygwin
* | yes,mingw
* | yes,pw32
*)
10328 library_names_spec
='$libname.dll.a'
10329 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10330 postinstall_cmds
='base_file=`basename \${file}`~
10331 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10332 dldir=$destdir/`dirname \$dlpath`~
10333 test -d \$dldir || mkdir -p \$dldir~
10334 $install_prog $dir/$dlname \$dldir/$dlname~
10335 chmod a+x \$dldir/$dlname'
10336 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10337 dlpath=$dir/\$dldll~
10339 shlibpath_overrides_runpath
=yes
10343 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10344 soname_spec
='`echo ${libname} | sed -e 's
/^lib
/cyg
/'``echo ${release} | $SED -e 's
/[.
]/-/g
'`${versuffix}${shared_ext}'
10345 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
10348 # MinGW DLLs use traditional 'lib' prefix
10349 soname_spec
='${libname}`echo ${release} | $SED -e 's
/[.
]/-/g
'`${versuffix}${shared_ext}'
10350 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10351 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev
/null
; then
10352 # It is most probably a Windows format PATH printed by
10353 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10354 # path with ; separators, and with drive letters. We can handle the
10355 # drive letters (cygwin fileutils understands them), so leave them,
10356 # especially as we might pass files found there to a mingw objdump,
10357 # which wouldn't understand a cygwinified path. Ahh.
10358 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10360 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10364 # pw32 DLLs use 'pw' prefix rather than 'lib'
10365 library_names_spec
='`echo ${libname} | sed -e 's
/^lib
/pw
/'``echo ${release} | $SED -e 's
/[.
]/-/g
'`${versuffix}${shared_ext}'
10371 library_names_spec
='${libname}`echo ${release} | $SED -e 's
/[.
]/-/g
'`${versuffix}${shared_ext} $libname.lib'
10374 dynamic_linker
='Win32 ld.exe'
10375 # FIXME: first we should search . and the directory the executable is in
10379 darwin
* | rhapsody
*)
10380 dynamic_linker
="$host_os dyld"
10381 version_type
=darwin
10384 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10385 soname_spec
='${libname}${release}${major}$shared_ext'
10386 shlibpath_overrides_runpath
=yes
10387 shlibpath_var
=DYLD_LIBRARY_PATH
10388 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
10390 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
10391 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
10398 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10399 soname_spec
='${libname}${release}${shared_ext}$major'
10400 shlibpath_var
=LD_LIBRARY_PATH
10407 freebsd
* | dragonfly
*)
10408 # DragonFly does not have aout. When/if they implement a new
10409 # versioning mechanism, adjust this.
10410 if test -x /usr
/bin
/objformat
; then
10411 objformat
=`/usr/bin/objformat`
10414 freebsd
[123]*) objformat
=aout
;;
10415 *) objformat
=elf
;;
10418 version_type
=freebsd
-$objformat
10419 case $version_type in
10421 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10426 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10430 shlibpath_var
=LD_LIBRARY_PATH
10433 shlibpath_overrides_runpath
=yes
10435 freebsd3.
[01]* | freebsdelf3.
[01]*)
10436 shlibpath_overrides_runpath
=yes
10437 hardcode_into_libs
=yes
10439 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
10440 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
10441 shlibpath_overrides_runpath
=no
10442 hardcode_into_libs
=yes
10444 *) # from 4.6 on, and DragonFly
10445 shlibpath_overrides_runpath
=yes
10446 hardcode_into_libs
=yes
10455 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10456 soname_spec
='${libname}${release}${shared_ext}$major'
10457 shlibpath_var
=LD_LIBRARY_PATH
10458 hardcode_into_libs
=yes
10461 hpux9
* | hpux10
* | hpux11
*)
10462 # Give a soname corresponding to the major version so that dld.sl refuses to
10463 # link against other versions.
10470 hardcode_into_libs
=yes
10471 dynamic_linker
="$host_os dld.so"
10472 shlibpath_var
=LD_LIBRARY_PATH
10473 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
10474 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10475 soname_spec
='${libname}${release}${shared_ext}$major'
10476 if test "X$HPUX_IA64_MODE" = X32
; then
10477 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10479 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
10481 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
10485 hardcode_into_libs
=yes
10486 dynamic_linker
="$host_os dld.sl"
10487 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
10488 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
10489 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10490 soname_spec
='${libname}${release}${shared_ext}$major'
10491 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10492 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
10496 dynamic_linker
="$host_os dld.sl"
10497 shlibpath_var
=SHLIB_PATH
10498 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
10499 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10500 soname_spec
='${libname}${release}${shared_ext}$major'
10503 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10504 postinstall_cmds
='chmod 555 $lib'
10511 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10512 soname_spec
='${libname}${release}${shared_ext}$major'
10513 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
10514 shlibpath_var
=LD_LIBRARY_PATH
10515 shlibpath_overrides_runpath
=no
10516 hardcode_into_libs
=yes
10519 irix5
* | irix6
* | nonstopux
*)
10521 nonstopux
*) version_type
=nonstopux
;;
10523 if test "$lt_cv_prog_gnu_ld" = yes; then
10531 soname_spec
='${libname}${release}${shared_ext}$major'
10532 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10534 irix5
* | nonstopux
*)
10535 libsuff
= shlibsuff
=
10538 case $LD in # libtool.m4 will add one of these switches to LD
10539 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10540 libsuff
= shlibsuff
= libmagic
=32-bit;;
10541 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10542 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
10543 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10544 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
10545 *) libsuff
= shlibsuff
= libmagic
=never
-match;;
10549 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
10550 shlibpath_overrides_runpath
=no
10551 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10552 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
10553 hardcode_into_libs
=yes
10556 # No shared lib support for Linux oldld, aout, or coff.
10557 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
10561 # This must be Linux ELF.
10562 linux
* | k
*bsd
*-gnu)
10566 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10567 soname_spec
='${libname}${release}${shared_ext}$major'
10568 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10569 shlibpath_var
=LD_LIBRARY_PATH
10570 shlibpath_overrides_runpath
=no
10571 # This implies no fast_install, which is unacceptable.
10572 # Some rework will be needed to allow for fast_install
10573 # before this can be enabled.
10574 hardcode_into_libs
=yes
10576 # Append ld.so.conf contents to the search path
10577 if test -f /etc
/ld.so.conf
; then
10578 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' ' '`
10579 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
10582 # We used to test for /lib/ld.so.1 and disable shared libraries on
10583 # powerpc, because MkLinux only supported shared libraries with the
10584 # GNU dynamic linker. Since this was broken with cross compilers,
10585 # most powerpc-linux boxes support dynamic linking these days and
10586 # people can always --disable-shared, the test was removed, and we
10587 # assume the GNU/Linux dynamic linker is in use.
10588 dynamic_linker
='GNU/Linux ld.so'
10595 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10596 soname_spec
='${libname}${release}${shared_ext}$major'
10597 shlibpath_var
=LD_LIBRARY_PATH
10598 shlibpath_overrides_runpath
=no
10599 hardcode_into_libs
=yes
10600 dynamic_linker
='NetBSD ld.elf_so'
10607 if echo __ELF__
| $CC -E - | grep __ELF__
>/dev
/null
; then
10608 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10609 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10610 dynamic_linker
='NetBSD (a.out) ld.so'
10612 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10613 soname_spec
='${libname}${release}${shared_ext}$major'
10614 dynamic_linker
='NetBSD ld.elf_so'
10616 shlibpath_var
=LD_LIBRARY_PATH
10617 shlibpath_overrides_runpath
=yes
10618 hardcode_into_libs
=yes
10623 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10624 shlibpath_var
=LD_LIBRARY_PATH
10625 shlibpath_overrides_runpath
=yes
10632 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10633 soname_spec
='${libname}${release}${shared_ext}$major'
10634 shlibpath_var
=LD_LIBRARY_PATH
10635 shlibpath_overrides_runpath
=yes
10640 sys_lib_dlsearch_path_spec
="/usr/lib"
10642 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10644 openbsd3.3
| openbsd3.3.
*) need_version
=yes ;;
10645 *) need_version
=no
;;
10647 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10648 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10649 shlibpath_var
=LD_LIBRARY_PATH
10650 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10652 openbsd2.
[89] | openbsd2.
[89].
*)
10653 shlibpath_overrides_runpath
=no
10656 shlibpath_overrides_runpath
=yes
10660 shlibpath_overrides_runpath
=yes
10665 libname_spec
='$name'
10668 library_names_spec
='$libname${shared_ext} $libname.a'
10669 dynamic_linker
='OS/2 ld.exe'
10670 shlibpath_var
=LIBPATH
10673 osf3
* | osf4
* | osf5
*)
10677 soname_spec
='${libname}${release}${shared_ext}$major'
10678 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10679 shlibpath_var
=LD_LIBRARY_PATH
10680 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10681 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
10692 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10693 soname_spec
='${libname}${release}${shared_ext}$major'
10694 shlibpath_var
=LD_LIBRARY_PATH
10695 shlibpath_overrides_runpath
=yes
10696 hardcode_into_libs
=yes
10697 # ldd complains unless libraries are executable
10698 postinstall_cmds
='chmod +x $lib'
10703 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10704 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10705 shlibpath_var
=LD_LIBRARY_PATH
10706 shlibpath_overrides_runpath
=yes
10707 if test "$with_gnu_ld" = yes; then
10715 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10716 soname_spec
='${libname}${release}${shared_ext}$major'
10717 shlibpath_var
=LD_LIBRARY_PATH
10718 case $host_vendor in
10720 shlibpath_overrides_runpath
=no
10722 export_dynamic_flag_spec
='${wl}-Blargedynsym'
10723 runpath_var
=LD_RUN_PATH
10731 shlibpath_overrides_runpath
=no
10732 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
10738 if test -d /usr
/nec
;then
10740 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10741 soname_spec
='$libname${shared_ext}.$major'
10742 shlibpath_var
=LD_LIBRARY_PATH
10746 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
10747 version_type
=freebsd
-elf
10750 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10751 soname_spec
='${libname}${release}${shared_ext}$major'
10752 shlibpath_var
=LD_LIBRARY_PATH
10753 hardcode_into_libs
=yes
10754 if test "$with_gnu_ld" = yes; then
10755 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10756 shlibpath_overrides_runpath
=no
10758 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
10759 shlibpath_overrides_runpath
=yes
10762 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
10766 sys_lib_dlsearch_path_spec
='/usr/lib'
10771 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10772 soname_spec
='${libname}${release}${shared_ext}$major'
10773 shlibpath_var
=LD_LIBRARY_PATH
10780 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10781 echo "${ECHO_T}$dynamic_linker" >&6; }
10782 test "$dynamic_linker" = no
&& can_build_shared
=no
10784 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10785 echo $ECHO_N "(cached) $ECHO_C" >&6
10787 lt_cv_sys_lib_search_path_spec
="$sys_lib_search_path_spec"
10790 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
10791 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10792 echo $ECHO_N "(cached) $ECHO_C" >&6
10794 lt_cv_sys_lib_dlsearch_path_spec
="$sys_lib_dlsearch_path_spec"
10797 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
10799 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
10800 if test "$GCC" = yes; then
10801 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10804 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10805 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
10807 if test -n "$hardcode_libdir_flag_spec" || \
10808 test -n "$runpath_var" || \
10809 test "X$hardcode_automatic" = "Xyes" ; then
10811 # We can hardcode non-existant directories.
10812 if test "$hardcode_direct" != no
&&
10813 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10814 # have to relink, otherwise we might link with an installed library
10815 # when we should be linking with a yet-to-be-installed one
10816 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10817 test "$hardcode_minus_L" != no
; then
10818 # Linking always hardcodes the temporary library directory.
10819 hardcode_action
=relink
10821 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10822 hardcode_action
=immediate
10825 # We cannot hardcode anything, or else we can only hardcode existing
10827 hardcode_action
=unsupported
10829 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
10830 echo "${ECHO_T}$hardcode_action" >&6; }
10832 if test "$hardcode_action" = relink
; then
10833 # Fast installation is not supported
10834 enable_fast_install
=no
10835 elif test "$shlibpath_overrides_runpath" = yes ||
10836 test "$enable_shared" = no
; then
10837 # Fast installation is not necessary
10838 enable_fast_install
=needless
10843 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10844 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
10845 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev
/null
; then
10846 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
10847 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
10848 { echo "$as_me:$LINENO: result: yes" >&5
10849 echo "${ECHO_T}yes" >&6; }
10851 # FIXME - insert some real tests, host_os isn't really good enough
10854 if test -n "$STRIP" ; then
10855 striplib
="$STRIP -x"
10856 old_striplib
="$STRIP -S"
10857 { echo "$as_me:$LINENO: result: yes" >&5
10858 echo "${ECHO_T}yes" >&6; }
10860 { echo "$as_me:$LINENO: result: no" >&5
10861 echo "${ECHO_T}no" >&6; }
10865 { echo "$as_me:$LINENO: result: no" >&5
10866 echo "${ECHO_T}no" >&6; }
10871 if test "x$enable_dlopen" != xyes
; then
10872 enable_dlopen
=unknown
10873 enable_dlopen_self
=unknown
10874 enable_dlopen_self_static
=unknown
10881 lt_cv_dlopen
="load_add_on"
10883 lt_cv_dlopen_self
=yes
10887 lt_cv_dlopen
="LoadLibrary"
10892 lt_cv_dlopen
="dlopen"
10897 # if libdl is installed we need to link against it
10898 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10899 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10900 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10901 echo $ECHO_N "(cached) $ECHO_C" >&6
10903 ac_check_lib_save_LIBS
=$LIBS
10905 cat >conftest.
$ac_ext <<_ACEOF
10908 cat confdefs.h
>>conftest.
$ac_ext
10909 cat >>conftest.
$ac_ext <<_ACEOF
10910 /* end confdefs.h. */
10912 /* Override any GCC internal prototype to avoid an error.
10913 Use char because int might match the return type of a GCC
10914 builtin and then its argument prototype would still apply. */
10927 rm -f conftest.
$ac_objext conftest
$ac_exeext
10928 if { (ac_try
="$ac_link"
10929 case "(($ac_try" in
10930 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
10931 *) ac_try_echo=$ac_try;;
10933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10934 (eval "$ac_link") 2>conftest.er1
10936 grep -v '^ *+' conftest.er1 >conftest.err
10938 cat conftest.err >&5
10939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10940 (exit $ac_status); } && {
10941 test -z "$ac_c_werror_flag" ||
10942 test ! -s conftest.err
10943 } && test -s conftest$ac_exeext &&
10944 $as_test_x conftest$ac_exeext; then
10945 ac_cv_lib_dl_dlopen=yes
10947 echo "$as_me: failed program was:" >&5
10948 sed 's/^/| /' conftest.$ac_ext >&5
10950 ac_cv_lib_dl_dlopen=no
10953 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10954 conftest$ac_exeext conftest.$ac_ext
10955 LIBS=$ac_check_lib_save_LIBS
10957 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10958 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10959 if test $ac_cv_lib_dl_dlopen = yes; then
10960 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10963 lt_cv_dlopen="dyld"
10965 lt_cv_dlopen_self=yes
10972 { echo "$as_me:$LINENO: checking for shl_load" >&5
10973 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10974 if test "${ac_cv_func_shl_load+set}" = set; then
10975 echo $ECHO_N "(cached) $ECHO_C" >&6
10977 cat >conftest.$ac_ext <<_ACEOF
10980 cat confdefs.h >>conftest.$ac_ext
10981 cat >>conftest.$ac_ext <<_ACEOF
10982 /* end confdefs.h. */
10983 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10984 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10985 #define shl_load innocuous_shl_load
10987 /* System header to define __stub macros and hopefully few prototypes,
10988 which can conflict with char shl_load (); below.
10989 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10990 <limits.h> exists even on freestanding compilers. */
10993 # include <limits.h>
10995 # include <assert.h>
11000 /* Override any GCC internal prototype to avoid an error.
11001 Use char because int might match the return type of a GCC
11002 builtin and then its argument prototype would still apply. */
11007 /* The GNU C library defines this for functions which it implements
11008 to always fail with ENOSYS. Some functions are actually named
11009 something starting with __ and the normal name is an alias. */
11010 #if defined __stub_shl_load || defined __stub___shl_load
11017 return shl_load ();
11022 rm -f conftest.$ac_objext conftest$ac_exeext
11023 if { (ac_try="$ac_link"
11024 case "(($ac_try" in
11025 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
11026 *) ac_try_echo
=$ac_try;;
11028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11029 (eval "$ac_link") 2>conftest.er1
11031 grep -v '^ *+' conftest.er1
>conftest.err
11033 cat conftest.err
>&5
11034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11035 (exit $ac_status); } && {
11036 test -z "$ac_c_werror_flag" ||
11037 test ! -s conftest.err
11038 } && test -s conftest
$ac_exeext &&
11039 $as_test_x conftest
$ac_exeext; then
11040 ac_cv_func_shl_load
=yes
11042 echo "$as_me: failed program was:" >&5
11043 sed 's/^/| /' conftest.
$ac_ext >&5
11045 ac_cv_func_shl_load
=no
11048 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11049 conftest
$ac_exeext conftest.
$ac_ext
11051 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11052 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
11053 if test $ac_cv_func_shl_load = yes; then
11054 lt_cv_dlopen
="shl_load"
11056 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11057 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
11058 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11059 echo $ECHO_N "(cached) $ECHO_C" >&6
11061 ac_check_lib_save_LIBS
=$LIBS
11063 cat >conftest.
$ac_ext <<_ACEOF
11066 cat confdefs.h
>>conftest.
$ac_ext
11067 cat >>conftest.
$ac_ext <<_ACEOF
11068 /* end confdefs.h. */
11070 /* Override any GCC internal prototype to avoid an error.
11071 Use char because int might match the return type of a GCC
11072 builtin and then its argument prototype would still apply. */
11080 return shl_load ();
11085 rm -f conftest.
$ac_objext conftest
$ac_exeext
11086 if { (ac_try
="$ac_link"
11087 case "(($ac_try" in
11088 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
11089 *) ac_try_echo=$ac_try;;
11091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11092 (eval "$ac_link") 2>conftest.er1
11094 grep -v '^ *+' conftest.er1 >conftest.err
11096 cat conftest.err >&5
11097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11098 (exit $ac_status); } && {
11099 test -z "$ac_c_werror_flag" ||
11100 test ! -s conftest.err
11101 } && test -s conftest$ac_exeext &&
11102 $as_test_x conftest$ac_exeext; then
11103 ac_cv_lib_dld_shl_load=yes
11105 echo "$as_me: failed program was:" >&5
11106 sed 's/^/| /' conftest.$ac_ext >&5
11108 ac_cv_lib_dld_shl_load=no
11111 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11112 conftest$ac_exeext conftest.$ac_ext
11113 LIBS=$ac_check_lib_save_LIBS
11115 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11116 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
11117 if test $ac_cv_lib_dld_shl_load = yes; then
11118 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11120 { echo "$as_me:$LINENO: checking for dlopen" >&5
11121 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
11122 if test "${ac_cv_func_dlopen+set}" = set; then
11123 echo $ECHO_N "(cached) $ECHO_C" >&6
11125 cat >conftest.$ac_ext <<_ACEOF
11128 cat confdefs.h >>conftest.$ac_ext
11129 cat >>conftest.$ac_ext <<_ACEOF
11130 /* end confdefs.h. */
11131 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11132 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11133 #define dlopen innocuous_dlopen
11135 /* System header to define __stub macros and hopefully few prototypes,
11136 which can conflict with char dlopen (); below.
11137 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11138 <limits.h> exists even on freestanding compilers. */
11141 # include <limits.h>
11143 # include <assert.h>
11148 /* Override any GCC internal prototype to avoid an error.
11149 Use char because int might match the return type of a GCC
11150 builtin and then its argument prototype would still apply. */
11155 /* The GNU C library defines this for functions which it implements
11156 to always fail with ENOSYS. Some functions are actually named
11157 something starting with __ and the normal name is an alias. */
11158 #if defined __stub_dlopen || defined __stub___dlopen
11170 rm -f conftest.$ac_objext conftest$ac_exeext
11171 if { (ac_try="$ac_link"
11172 case "(($ac_try" in
11173 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
11174 *) ac_try_echo
=$ac_try;;
11176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11177 (eval "$ac_link") 2>conftest.er1
11179 grep -v '^ *+' conftest.er1
>conftest.err
11181 cat conftest.err
>&5
11182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11183 (exit $ac_status); } && {
11184 test -z "$ac_c_werror_flag" ||
11185 test ! -s conftest.err
11186 } && test -s conftest
$ac_exeext &&
11187 $as_test_x conftest
$ac_exeext; then
11188 ac_cv_func_dlopen
=yes
11190 echo "$as_me: failed program was:" >&5
11191 sed 's/^/| /' conftest.
$ac_ext >&5
11193 ac_cv_func_dlopen
=no
11196 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11197 conftest
$ac_exeext conftest.
$ac_ext
11199 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11200 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
11201 if test $ac_cv_func_dlopen = yes; then
11202 lt_cv_dlopen
="dlopen"
11204 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11205 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
11206 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11207 echo $ECHO_N "(cached) $ECHO_C" >&6
11209 ac_check_lib_save_LIBS
=$LIBS
11211 cat >conftest.
$ac_ext <<_ACEOF
11214 cat confdefs.h
>>conftest.
$ac_ext
11215 cat >>conftest.
$ac_ext <<_ACEOF
11216 /* end confdefs.h. */
11218 /* Override any GCC internal prototype to avoid an error.
11219 Use char because int might match the return type of a GCC
11220 builtin and then its argument prototype would still apply. */
11233 rm -f conftest.
$ac_objext conftest
$ac_exeext
11234 if { (ac_try
="$ac_link"
11235 case "(($ac_try" in
11236 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
11237 *) ac_try_echo=$ac_try;;
11239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11240 (eval "$ac_link") 2>conftest.er1
11242 grep -v '^ *+' conftest.er1 >conftest.err
11244 cat conftest.err >&5
11245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11246 (exit $ac_status); } && {
11247 test -z "$ac_c_werror_flag" ||
11248 test ! -s conftest.err
11249 } && test -s conftest$ac_exeext &&
11250 $as_test_x conftest$ac_exeext; then
11251 ac_cv_lib_dl_dlopen=yes
11253 echo "$as_me: failed program was:" >&5
11254 sed 's/^/| /' conftest.$ac_ext >&5
11256 ac_cv_lib_dl_dlopen=no
11259 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11260 conftest$ac_exeext conftest.$ac_ext
11261 LIBS=$ac_check_lib_save_LIBS
11263 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11264 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11265 if test $ac_cv_lib_dl_dlopen = yes; then
11266 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11268 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11269 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
11270 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11271 echo $ECHO_N "(cached) $ECHO_C" >&6
11273 ac_check_lib_save_LIBS=$LIBS
11274 LIBS="-lsvld $LIBS"
11275 cat >conftest.$ac_ext <<_ACEOF
11278 cat confdefs.h >>conftest.$ac_ext
11279 cat >>conftest.$ac_ext <<_ACEOF
11280 /* end confdefs.h. */
11282 /* Override any GCC internal prototype to avoid an error.
11283 Use char because int might match the return type of a GCC
11284 builtin and then its argument prototype would still apply. */
11297 rm -f conftest.$ac_objext conftest$ac_exeext
11298 if { (ac_try="$ac_link"
11299 case "(($ac_try" in
11300 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
11301 *) ac_try_echo
=$ac_try;;
11303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11304 (eval "$ac_link") 2>conftest.er1
11306 grep -v '^ *+' conftest.er1
>conftest.err
11308 cat conftest.err
>&5
11309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11310 (exit $ac_status); } && {
11311 test -z "$ac_c_werror_flag" ||
11312 test ! -s conftest.err
11313 } && test -s conftest
$ac_exeext &&
11314 $as_test_x conftest
$ac_exeext; then
11315 ac_cv_lib_svld_dlopen
=yes
11317 echo "$as_me: failed program was:" >&5
11318 sed 's/^/| /' conftest.
$ac_ext >&5
11320 ac_cv_lib_svld_dlopen
=no
11323 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11324 conftest
$ac_exeext conftest.
$ac_ext
11325 LIBS
=$ac_check_lib_save_LIBS
11327 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11328 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
11329 if test $ac_cv_lib_svld_dlopen = yes; then
11330 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
11332 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11333 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
11334 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11335 echo $ECHO_N "(cached) $ECHO_C" >&6
11337 ac_check_lib_save_LIBS
=$LIBS
11339 cat >conftest.
$ac_ext <<_ACEOF
11342 cat confdefs.h
>>conftest.
$ac_ext
11343 cat >>conftest.
$ac_ext <<_ACEOF
11344 /* end confdefs.h. */
11346 /* Override any GCC internal prototype to avoid an error.
11347 Use char because int might match the return type of a GCC
11348 builtin and then its argument prototype would still apply. */
11356 return dld_link ();
11361 rm -f conftest.
$ac_objext conftest
$ac_exeext
11362 if { (ac_try
="$ac_link"
11363 case "(($ac_try" in
11364 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
11365 *) ac_try_echo=$ac_try;;
11367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11368 (eval "$ac_link") 2>conftest.er1
11370 grep -v '^ *+' conftest.er1 >conftest.err
11372 cat conftest.err >&5
11373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11374 (exit $ac_status); } && {
11375 test -z "$ac_c_werror_flag" ||
11376 test ! -s conftest.err
11377 } && test -s conftest$ac_exeext &&
11378 $as_test_x conftest$ac_exeext; then
11379 ac_cv_lib_dld_dld_link=yes
11381 echo "$as_me: failed program was:" >&5
11382 sed 's/^/| /' conftest.$ac_ext >&5
11384 ac_cv_lib_dld_dld_link=no
11387 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11388 conftest$ac_exeext conftest.$ac_ext
11389 LIBS=$ac_check_lib_save_LIBS
11391 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11392 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11393 if test $ac_cv_lib_dld_dld_link = yes; then
11394 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11415 if test "x$lt_cv_dlopen" != xno; then
11421 case $lt_cv_dlopen in
11423 save_CPPFLAGS="$CPPFLAGS"
11424 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11426 save_LDFLAGS="$LDFLAGS"
11427 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11430 LIBS="$lt_cv_dlopen_libs $LIBS"
11432 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11433 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
11434 if test "${lt_cv_dlopen_self+set}" = set; then
11435 echo $ECHO_N "(cached) $ECHO_C" >&6
11437 if test "$cross_compiling" = yes; then :
11438 lt_cv_dlopen_self=cross
11440 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11441 lt_status=$lt_dlunknown
11442 cat > conftest.$ac_ext <<EOF
11443 #line 11443 "configure"
11444 #include "confdefs.h"
11453 # define LT_DLGLOBAL RTLD_GLOBAL
11456 # define LT_DLGLOBAL DL_GLOBAL
11458 # define LT_DLGLOBAL 0
11462 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11463 find out it does not work in some platform. */
11464 #ifndef LT_DLLAZY_OR_NOW
11466 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11469 # define LT_DLLAZY_OR_NOW DL_LAZY
11472 # define LT_DLLAZY_OR_NOW RTLD_NOW
11475 # define LT_DLLAZY_OR_NOW DL_NOW
11477 # define LT_DLLAZY_OR_NOW 0
11485 extern "C" void exit (int);
11488 void fnord() { int i=42;}
11491 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11492 int status = $lt_dlunknown;
11496 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11497 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11498 /* dlclose (self); */
11506 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11507 (eval $ac_link) 2>&5
11509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11510 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11511 (./conftest; exit; ) >&5 2>/dev/null
11513 case x$lt_status in
11514 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11515 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11516 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11519 # compilation failed
11520 lt_cv_dlopen_self=no
11527 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11528 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
11530 if test "x$lt_cv_dlopen_self" = xyes; then
11531 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11532 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11533 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
11534 if test "${lt_cv_dlopen_self_static+set}" = set; then
11535 echo $ECHO_N "(cached) $ECHO_C" >&6
11537 if test "$cross_compiling" = yes; then :
11538 lt_cv_dlopen_self_static=cross
11540 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11541 lt_status=$lt_dlunknown
11542 cat > conftest.$ac_ext <<EOF
11543 #line 11543 "configure"
11544 #include "confdefs.h"
11553 # define LT_DLGLOBAL RTLD_GLOBAL
11556 # define LT_DLGLOBAL DL_GLOBAL
11558 # define LT_DLGLOBAL 0
11562 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11563 find out it does not work in some platform. */
11564 #ifndef LT_DLLAZY_OR_NOW
11566 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11569 # define LT_DLLAZY_OR_NOW DL_LAZY
11572 # define LT_DLLAZY_OR_NOW RTLD_NOW
11575 # define LT_DLLAZY_OR_NOW DL_NOW
11577 # define LT_DLLAZY_OR_NOW 0
11585 extern "C" void exit (int);
11588 void fnord() { int i=42;}
11591 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11592 int status = $lt_dlunknown;
11596 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11597 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11598 /* dlclose (self); */
11606 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11607 (eval $ac_link) 2>&5
11609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11610 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11611 (./conftest; exit; ) >&5 2>/dev/null
11613 case x$lt_status in
11614 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11615 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11616 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11619 # compilation failed
11620 lt_cv_dlopen_self_static=no
11627 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11628 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
11631 CPPFLAGS="$save_CPPFLAGS"
11632 LDFLAGS="$save_LDFLAGS"
11637 case $lt_cv_dlopen_self in
11638 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11639 *) enable_dlopen_self=unknown ;;
11642 case $lt_cv_dlopen_self_static in
11643 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11644 *) enable_dlopen_self_static=unknown ;;
11649 # Report which library types will actually be built
11650 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11651 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
11652 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
11653 echo "${ECHO_T}$can_build_shared" >&6; }
11655 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11656 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
11657 test "$can_build_shared" = "no" && enable_shared=no
11659 # On AIX, shared libraries and static libraries use the same namespace, and
11660 # are all built from PIC.
11663 test "$enable_shared" = yes && enable_static=no
11664 if test -n "$RANLIB"; then
11665 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11666 postinstall_cmds='$RANLIB $lib'
11671 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11672 test "$enable_shared" = yes && enable_static=no
11676 { echo "$as_me:$LINENO: result: $enable_shared" >&5
11677 echo "${ECHO_T}$enable_shared" >&6; }
11679 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11680 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
11681 # Make sure either enable_shared or enable_static is yes.
11682 test "$enable_shared" = yes || enable_static=yes
11683 { echo "$as_me:$LINENO: result: $enable_static" >&5
11684 echo "${ECHO_T}$enable_static" >&6; }
11686 # The else clause should only fire when bootstrapping the
11687 # libtool distribution, otherwise you forgot to ship ltmain.sh
11688 # with your package, and you will get complaints that there are
11689 # no rules to generate ltmain.sh.
11690 if test -f "$ltmain"; then
11691 # See if we are running on zsh, and set the options which allow our commands through
11692 # without removal of \ escapes.
11693 if test -n "${ZSH_VERSION+set}" ; then
11694 setopt NO_GLOB_SUBST
11696 # Now quote all the things that may contain metacharacters while being
11697 # careful not to overquote the AC_SUBSTed values. We take copies of the
11698 # variables and quote the copies for generation of the libtool script.
11699 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
11701 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11702 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11703 deplibs_check_method reload_flag reload_cmds need_locks \
11704 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11705 lt_cv_sys_global_symbol_to_c_name_address \
11706 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11707 old_postinstall_cmds old_postuninstall_cmds \
11711 lt_prog_compiler_wl \
11712 lt_prog_compiler_pic \
11713 lt_prog_compiler_static \
11714 lt_prog_compiler_no_builtin_flag \
11715 export_dynamic_flag_spec \
11716 thread_safe_flag_spec \
11717 whole_archive_flag_spec \
11718 enable_shared_with_static_runtimes \
11720 old_archive_from_new_cmds \
11725 compiler_lib_search_path \
11726 compiler_lib_search_dirs \
11728 archive_expsym_cmds \
11730 postuninstall_cmds \
11731 old_archive_from_expsyms_cmds \
11732 allow_undefined_flag \
11733 no_undefined_flag \
11734 export_symbols_cmds \
11735 hardcode_libdir_flag_spec \
11736 hardcode_libdir_flag_spec_ld \
11737 hardcode_libdir_separator \
11738 hardcode_automatic \
11740 module_expsym_cmds \
11741 lt_cv_prog_compiler_c_o \
11744 include_expsyms; do
11747 old_archive_cmds | \
11748 old_archive_from_new_cmds | \
11750 archive_expsym_cmds | \
11752 module_expsym_cmds | \
11753 old_archive_from_expsyms_cmds | \
11754 export_symbols_cmds | \
11755 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11756 postinstall_cmds | postuninstall_cmds | \
11757 old_postinstall_cmds | old_postuninstall_cmds | \
11758 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11759 # Double-quote double-evaled strings.
11760 eval "lt_$var=\\\"\`\
$echo \"X\$
$var\" | \
$Xsed -e \"\
$double_quote_subst\" -e \"\
$sed_quote_subst\" -e \"\
$delay_variable_subst\"\
`\\\""
11763 eval "lt_$var=\\\"\`\
$echo \"X\$
$var\" | \
$Xsed -e \"\
$sed_quote_subst\"\
`\\\""
11769 *'\$0 --fallback-echo"')
11770 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11774 cfgfile="${ofile}T"
11775 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11777 { echo "$as_me:$LINENO: creating $ofile" >&5
11778 echo "$as_me: creating $ofile" >&6;}
11780 cat <<__EOF__ >> "$cfgfile"
11783 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11784 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11785 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11787 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
11788 # Free Software Foundation, Inc.
11790 # This file is part of GNU Libtool:
11791 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11793 # This program is free software; you can redistribute it and/or modify
11794 # it under the terms of the GNU General Public License as published by
11795 # the Free Software Foundation; either version 2 of the License, or
11796 # (at your option) any later version.
11798 # This program is distributed in the hope that it will be useful, but
11799 # WITHOUT ANY WARRANTY; without even the implied warranty of
11800 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11801 # General Public License for more details.
11803 # You should have received a copy of the GNU General Public License
11804 # along with this program; if not, write to the Free Software
11805 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11807 # As a special exception to the GNU General Public License, if you
11808 # distribute this file as part of a program that contains a
11809 # configuration script generated by Autoconf, you may include it under
11810 # the same distribution terms that you use for the rest of that program.
11812 # A sed program that does not truncate output.
11815 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11816 Xsed="$SED -e 1s/^X//"
11818 # The HP-UX ksh and POSIX shell print the target directory to stdout
11819 # if CDPATH is set.
11820 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11822 # The names of the tagged configurations supported by this script.
11825 # ### BEGIN LIBTOOL CONFIG
11827 # Libtool was configured on host `(hostname
|| uname
-n) 2>/dev
/null
| sed 1q
`:
11829 # Shell to use when invoking shell scripts.
11832 # Whether or not to build shared libraries.
11833 build_libtool_libs=$enable_shared
11835 # Whether or not to build static libraries.
11836 build_old_libs=$enable_static
11838 # Whether or not to add -lc for building shared libraries.
11839 build_libtool_need_lc=$archive_cmds_need_lc
11841 # Whether or not to disallow shared libs when runtime libs are static
11842 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11844 # Whether or not to optimize for fast installation.
11845 fast_install=$enable_fast_install
11848 host_alias=$host_alias
11852 # The build system.
11853 build_alias=$build_alias
11857 # An echo program that does not interpret backslashes.
11862 AR_FLAGS=$lt_AR_FLAGS
11867 # LTCC compiler flags.
11868 LTCFLAGS=$lt_LTCFLAGS
11870 # A language-specific compiler.
11873 # Is the compiler the GNU C compiler?
11879 # The linker used to build libraries.
11882 # Whether we need hard or soft links.
11885 # A BSD-compatible nm program.
11888 # A symbol stripping program
11891 # Used to examine libraries when file_magic_cmd begins "file"
11892 MAGIC_CMD=$MAGIC_CMD
11894 # Used on cygwin: DLL creation program.
11897 # Used on cygwin: object dumper.
11900 # Used on cygwin: assembler.
11903 # The name of the directory that contains temporary libtool files.
11906 # How to create reloadable object files.
11907 reload_flag=$lt_reload_flag
11908 reload_cmds=$lt_reload_cmds
11910 # How to pass a linker flag through the compiler.
11911 wl=$lt_lt_prog_compiler_wl
11913 # Object file suffix (normally "o").
11914 objext="$ac_objext"
11916 # Old archive suffix (normally "a").
11919 # Shared library suffix (normally ".so").
11920 shrext_cmds='$shrext_cmds'
11922 # Executable file suffix (normally "").
11925 # Additional compiler flags for building library objects.
11926 pic_flag=$lt_lt_prog_compiler_pic
11929 # What is the maximum length of a command?
11930 max_cmd_len=$lt_cv_sys_max_cmd_len
11932 # Does compiler simultaneously support -c and -o options?
11933 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11935 # Must we lock files when doing compilation?
11936 need_locks=$lt_need_locks
11938 # Do we need the lib prefix for modules?
11939 need_lib_prefix=$need_lib_prefix
11941 # Do we need a version for libraries?
11942 need_version=$need_version
11944 # Whether dlopen is supported.
11945 dlopen_support=$enable_dlopen
11947 # Whether dlopen of programs is supported.
11948 dlopen_self=$enable_dlopen_self
11950 # Whether dlopen of statically linked programs is supported.
11951 dlopen_self_static=$enable_dlopen_self_static
11953 # Compiler flag to prevent dynamic linking.
11954 link_static_flag=$lt_lt_prog_compiler_static
11956 # Compiler flag to turn off builtin functions.
11957 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11959 # Compiler flag to allow reflexive dlopens.
11960 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11962 # Compiler flag to generate shared objects directly from archives.
11963 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11965 # Compiler flag to generate thread-safe objects.
11966 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11968 # Library versioning type.
11969 version_type=$version_type
11971 # Format of library name prefix.
11972 libname_spec=$lt_libname_spec
11974 # List of archive names. First name is the real one, the rest are links.
11975 # The last name is the one that the linker finds with -lNAME.
11976 library_names_spec=$lt_library_names_spec
11978 # The coded name of the library, if different from the real name.
11979 soname_spec=$lt_soname_spec
11981 # Commands used to build and install an old-style archive.
11983 old_archive_cmds=$lt_old_archive_cmds
11984 old_postinstall_cmds=$lt_old_postinstall_cmds
11985 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11987 # Create an old-style archive from a shared archive.
11988 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11990 # Create a temporary old-style archive to link instead of a shared archive.
11991 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11993 # Commands used to build and install a shared archive.
11994 archive_cmds=$lt_archive_cmds
11995 archive_expsym_cmds=$lt_archive_expsym_cmds
11996 postinstall_cmds=$lt_postinstall_cmds
11997 postuninstall_cmds=$lt_postuninstall_cmds
11999 # Commands used to build a loadable module (assumed same as above if empty)
12000 module_cmds=$lt_module_cmds
12001 module_expsym_cmds=$lt_module_expsym_cmds
12003 # Commands to strip libraries.
12004 old_striplib=$lt_old_striplib
12005 striplib=$lt_striplib
12007 # Dependencies to place before the objects being linked to create a
12009 predep_objects=$lt_predep_objects
12011 # Dependencies to place after the objects being linked to create a
12013 postdep_objects=$lt_postdep_objects
12015 # Dependencies to place before the objects being linked to create a
12017 predeps=$lt_predeps
12019 # Dependencies to place after the objects being linked to create a
12021 postdeps=$lt_postdeps
12023 # The directories searched by this compiler when creating a shared
12025 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
12027 # The library search path used internally by the compiler when linking
12028 # a shared library.
12029 compiler_lib_search_path=$lt_compiler_lib_search_path
12031 # Method to check whether dependent libraries are shared objects.
12032 deplibs_check_method=$lt_deplibs_check_method
12034 # Command to use when deplibs_check_method == file_magic.
12035 file_magic_cmd=$lt_file_magic_cmd
12037 # Flag that allows shared libraries with undefined symbols to be built.
12038 allow_undefined_flag=$lt_allow_undefined_flag
12040 # Flag that forces no undefined symbols.
12041 no_undefined_flag=$lt_no_undefined_flag
12043 # Commands used to finish a libtool library installation in a directory.
12044 finish_cmds=$lt_finish_cmds
12046 # Same as above, but a single script fragment to be evaled but not shown.
12047 finish_eval=$lt_finish_eval
12049 # Take the output of nm and produce a listing of raw symbols and C names.
12050 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12052 # Transform the output of nm in a proper C declaration
12053 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12055 # Transform the output of nm in a C name address pair
12056 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12058 # This is the shared library runtime path variable.
12059 runpath_var=$runpath_var
12061 # This is the shared library path variable.
12062 shlibpath_var=$shlibpath_var
12064 # Is shlibpath searched before the hard-coded library search path?
12065 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12067 # How to hardcode a shared library path into an executable.
12068 hardcode_action=$hardcode_action
12070 # Whether we should hardcode library paths into libraries.
12071 hardcode_into_libs=$hardcode_into_libs
12073 # Flag to hardcode \$libdir into a binary during linking.
12074 # This must work even if \$libdir does not exist.
12075 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
12077 # If ld is used when linking, flag to hardcode \$libdir into
12078 # a binary during linking. This must work even if \$libdir does
12080 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
12082 # Whether we need a single -rpath flag with a separated argument.
12083 hardcode_libdir_separator=$lt_hardcode_libdir_separator
12085 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12086 # resulting binary.
12087 hardcode_direct=$hardcode_direct
12089 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12090 # resulting binary.
12091 hardcode_minus_L=$hardcode_minus_L
12093 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12094 # the resulting binary.
12095 hardcode_shlibpath_var=$hardcode_shlibpath_var
12097 # Set to yes if building a shared library automatically hardcodes DIR into the library
12098 # and all subsequent libraries and executables linked against it.
12099 hardcode_automatic=$hardcode_automatic
12101 # Variables whose values should be saved in libtool wrapper scripts and
12102 # restored at relink time.
12103 variables_saved_for_relink="$variables_saved_for_relink"
12105 # Whether libtool must link a program against all its dependency libraries.
12106 link_all_deplibs=$link_all_deplibs
12108 # Compile-time system search path for libraries
12109 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12111 # Run-time system search path for libraries
12112 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12114 # Fix the shell variable \$srcfile for the compiler.
12115 fix_srcfile_path=$lt_fix_srcfile_path
12117 # Set to yes if exported symbols are required.
12118 always_export_symbols=$always_export_symbols
12120 # The commands to list exported symbols.
12121 export_symbols_cmds=$lt_export_symbols_cmds
12123 # The commands to extract the exported symbol list from a shared archive.
12124 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12126 # Symbols that should not be listed in the preloaded symbols.
12127 exclude_expsyms=$lt_exclude_expsyms
12129 # Symbols that must always be exported.
12130 include_expsyms=$lt_include_expsyms
12132 # ### END LIBTOOL CONFIG
12139 cat <<\EOF >> "$cfgfile"
12141 # AIX sometimes has problems with the GCC collect2 program. For some
12142 # reason, if we set the COLLECT_NAMES environment variable, the problems
12143 # vanish in a puff of smoke.
12144 if test "X${COLLECT_NAMES+set}" != Xset; then
12146 export COLLECT_NAMES
12152 # We use sed instead of cat because bash on DJGPP gets confused if
12153 # if finds mixed CR/LF and LF-only lines. Since sed operates in
12154 # text mode, it properly converts lines to CR/LF. This bash problem
12155 # is reportedly fixed, but why not run on old versions too?
12156 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
12158 mv -f "$cfgfile" "$ofile" || \
12159 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
12163 # If there is no Makefile yet, we rely on a make rule to execute
12164 # `config.status
--recheck' to rerun these tests and create the
12165 # libtool script then.
12166 ltmain_in=`echo $ltmain | sed -e 's
/\.sh$
/.in
/'`
12167 if test -f "$ltmain_in"; then
12168 test -f Makefile && make "$ltmain"
12174 ac_cpp='$CPP $CPPFLAGS'
12175 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
12176 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
12177 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12182 # Check whether --with-tags was given.
12183 if test "${with_tags+set}" = set; then
12184 withval=$with_tags; tagnames="$withval"
12188 if test -f "$ltmain" && test -n "$tagnames"; then
12189 if test ! -f "${ofile}"; then
12190 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist
" >&5
12191 echo "$as_me: WARNING
: output
file \
`$ofile' does not exist" >&2;}
12194 if test -z "$LTCC"; then
12195 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
12196 if test -z "$LTCC"; then
12197 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
12198 echo "$as_me: WARNING: output file \`$ofile' does not
look like a libtool
script" >&2;}
12200 { echo "$as_me:$LINENO: WARNING
: using \
`LTCC=$LTCC', extracted from \`$ofile'" >&5
12201 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \
`$ofile'" >&2;}
12204 if test -z "$LTCFLAGS"; then
12205 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
12208 # Extract list of available tagged configurations in $ofile.
12209 # Note that this assumes the entire list is on one line.
12210 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
12212 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12213 for tagname in $tagnames; do
12215 # Check whether tagname contains only valid characters
12216 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
12218 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
12219 echo "$as_me: error: invalid tag name: $tagname" >&2;}
12220 { (exit 1); exit 1; }; }
12224 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
12226 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
12227 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
12228 { (exit 1); exit 1; }; }
12231 # Update the list of available tags.
12232 if test -n "$tagname"; then
12233 echo appending configuration tag \"$tagname\" to $ofile
12237 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12238 ( (test "X$CXX" = "Xg++" && `g
++ -v >/dev
/null
2>&1` ) ||
12239 (test "X$CXX" != "Xg++"))) ; then
12241 ac_cpp='$CXXCPP $CPPFLAGS'
12242 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12243 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12244 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12249 archive_cmds_need_lc_CXX=no
12250 allow_undefined_flag_CXX=
12251 always_export_symbols_CXX=no
12252 archive_expsym_cmds_CXX=
12253 export_dynamic_flag_spec_CXX=
12254 hardcode_direct_CXX=no
12255 hardcode_libdir_flag_spec_CXX=
12256 hardcode_libdir_flag_spec_ld_CXX=
12257 hardcode_libdir_separator_CXX=
12258 hardcode_minus_L_CXX=no
12259 hardcode_shlibpath_var_CXX=unsupported
12260 hardcode_automatic_CXX=no
12262 module_expsym_cmds_CXX=
12263 link_all_deplibs_CXX=unknown
12264 old_archive_cmds_CXX=$old_archive_cmds
12265 no_undefined_flag_CXX=
12266 whole_archive_flag_spec_CXX=
12267 enable_shared_with_static_runtimes_CXX=no
12269 # Dependencies to place before and after the object being linked:
12270 predep_objects_CXX=
12271 postdep_objects_CXX=
12274 compiler_lib_search_path_CXX=
12275 compiler_lib_search_dirs_CXX=
12277 # Source file extension for C++ test sources.
12280 # Object file extension for compiled C++ test sources.
12284 # Code to be used in simple compile tests
12285 lt_simple_compile_test_code="int some_variable = 0;"
12287 # Code to be used in simple link tests
12288 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12290 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12292 # If no C compiler was specified, use CC.
12295 # If no C compiler flags were specified, use CFLAGS.
12296 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12298 # Allow CC to be a program name with arguments.
12302 # save warnings/boilerplate of simple test code
12303 ac_outfile=conftest.$ac_objext
12304 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12305 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12306 _lt_compiler_boilerplate=`cat conftest.err
`
12309 ac_outfile=conftest.$ac_objext
12310 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12311 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12312 _lt_linker_boilerplate=`cat conftest.err
`
12316 # Allow CC to be a program name with arguments.
12321 lt_save_with_gnu_ld=$with_gnu_ld
12322 lt_save_path_LD=$lt_cv_path_LD
12323 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12324 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12326 $as_unset lt_cv_prog_gnu_ld
12328 if test -n "${lt_cv_path_LDCXX+set}"; then
12329 lt_cv_path_LD=$lt_cv_path_LDCXX
12331 $as_unset lt_cv_path_LD
12333 test -z "${LDCXX+set}" || LD=$LDCXX
12337 for cc_temp in $compiler""; do
12339 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12340 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12345 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12348 # We don't want -fno-exception wen compiling C++ code, so set the
12349 # no_builtin_flag separately
12350 if test "$GXX" = yes; then
12351 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12353 lt_prog_compiler_no_builtin_flag_CXX=
12356 if test "$GXX" = yes; then
12357 # Set up default GNU C++ configuration
12360 # Check whether --with-gnu-ld was given.
12361 if test "${with_gnu_ld+set}" = set; then
12362 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12368 if test "$GCC" = yes; then
12369 # Check if gcc -print-prog-name=ld gives a path.
12370 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12371 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12374 # gcc leaves a trailing carriage return which upsets mingw
12375 ac_prog=`($CC -print-prog-name=ld
) 2>&5 | tr -d '\015'` ;;
12377 ac_prog=`($CC -print-prog-name=ld
) 2>&5` ;;
12380 # Accept absolute paths.
12382 re_direlt='/[^/][^/]*/\.\./'
12383 # Canonicalize the pathname of ld
12384 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12385 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12386 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12388 test -z "$LD" && LD="$ac_prog"
12391 # If it fails, then pretend we aren't using GCC.
12395 # If it is relative, then search for the first ld in PATH.
12396 with_gnu_ld=unknown
12399 elif test "$with_gnu_ld" = yes; then
12400 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12401 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12403 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12404 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12406 if test "${lt_cv_path_LD+set}" = set; then
12407 echo $ECHO_N "(cached) $ECHO_C" >&6
12409 if test -z "$LD"; then
12410 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12411 for ac_dir in $PATH; do
12413 test -z "$ac_dir" && ac_dir=.
12414 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12415 lt_cv_path_LD="$ac_dir/$ac_prog"
12416 # Check to see if the program is GNU ld. I'd rather use --version,
12417 # but apparently some variants of GNU ld only accept -v.
12418 # Break only if it was the GNU/non-GNU ld that we prefer.
12419 case `"$lt_cv_path_LD" -v 2>&1 </dev
/null
` in
12420 *GNU* | *'with BFD'*)
12421 test "$with_gnu_ld" != no && break
12424 test "$with_gnu_ld" != yes && break
12431 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12435 LD="$lt_cv_path_LD"
12436 if test -n "$LD"; then
12437 { echo "$as_me:$LINENO: result: $LD" >&5
12438 echo "${ECHO_T}$LD" >&6; }
12440 { echo "$as_me:$LINENO: result: no" >&5
12441 echo "${ECHO_T}no" >&6; }
12443 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12444 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12445 { (exit 1); exit 1; }; }
12446 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12447 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12448 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12449 echo $ECHO_N "(cached) $ECHO_C" >&6
12451 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12452 case `$LD -v 2>&1 </dev
/null
` in
12453 *GNU* | *'with BFD'*)
12454 lt_cv_prog_gnu_ld=yes
12457 lt_cv_prog_gnu_ld=no
12461 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12462 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12463 with_gnu_ld=$lt_cv_prog_gnu_ld
12467 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12468 # archiving commands below assume that GNU ld is being used.
12469 if test "$with_gnu_ld" = yes; then
12470 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12471 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'
12473 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12474 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12476 # If archive_cmds runs LD, not CC, wlarc should be empty
12477 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12478 # investigate it a little bit more. (MM)
12481 # ancient GNU ld didn't support --whole-archive et. al.
12482 if eval "`$CC -print-prog-name=ld
` --help 2>&1" | \
12483 grep 'no-whole-archive' > /dev/null; then
12484 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12486 whole_archive_flag_spec_CXX=
12492 # A generic and very simple default shared library creation
12493 # command for GNU C++ for the case where it uses the native
12494 # linker, instead of GNU ld. If possible, this setting should
12495 # overridden to take advantage of the native linker features on
12496 # the platform it is being used on.
12497 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12500 # Commands to make compiler produce verbose output that lists
12501 # what "hidden" libraries, object files and flags are used when
12502 # linking a shared library.
12503 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12511 # PORTME: fill in a description of your system's C++ link characteristics
12512 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12513 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12517 # FIXME: insert proper C++ library support
12521 if test "$host_cpu" = ia64; then
12522 # On IA64, the linker does run time linking by default, so we don't
12523 # have to do anything special.
12524 aix_use_runtimelinking=no
12525 exp_sym_flag='-Bexport'
12528 aix_use_runtimelinking=no
12530 # Test if we are trying to use run time linking or normal
12531 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12532 # need to do runtime linking.
12533 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12534 for ld_flag in $LDFLAGS; do
12537 aix_use_runtimelinking=yes
12545 exp_sym_flag='-bexport'
12546 no_entry_flag='-bnoentry'
12549 # When large executables or shared objects are built, AIX ld can
12550 # have problems creating the table of contents. If linking a library
12551 # or program results in "error TOC overflow" add -mminimal-toc to
12552 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12553 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12555 archive_cmds_CXX=''
12556 hardcode_direct_CXX=yes
12557 hardcode_libdir_separator_CXX=':'
12558 link_all_deplibs_CXX=yes
12560 if test "$GXX" = yes; then
12561 case $host_os in aix4.[012]|aix4.[012].*)
12562 # We only want to do this on AIX 4.2 and lower, the check
12563 # below for broken collect2 doesn't work under 4.3+
12564 collect2name=`${CC} -print-prog-name=collect2
`
12565 if test -f "$collect2name" && \
12566 strings "$collect2name" | grep resolve_lib_name >/dev/null
12568 # We have reworked collect2
12571 # We have old collect2
12572 hardcode_direct_CXX=unsupported
12573 # It fails to find uninstalled libraries when the uninstalled
12574 # path is not listed in the libpath. Setting hardcode_minus_L
12575 # to unsupported forces relinking
12576 hardcode_minus_L_CXX=yes
12577 hardcode_libdir_flag_spec_CXX='-L$libdir'
12578 hardcode_libdir_separator_CXX=
12582 shared_flag='-shared'
12583 if test "$aix_use_runtimelinking" = yes; then
12584 shared_flag="$shared_flag "'${wl}-G'
12588 if test "$host_cpu" = ia64; then
12589 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12590 # chokes on -Wl,-G. The following line is correct:
12593 if test "$aix_use_runtimelinking" = yes; then
12594 shared_flag='${wl}-G'
12596 shared_flag='${wl}-bM:SRE'
12601 # It seems that -bexpall does not export symbols beginning with
12602 # underscore (_), so it is better to generate a list of symbols to export.
12603 always_export_symbols_CXX=yes
12604 if test "$aix_use_runtimelinking" = yes; then
12605 # Warning - without using the other runtime loading flags (-brtl),
12606 # -berok will link without error, but may produce a broken library.
12607 allow_undefined_flag_CXX='-berok'
12608 # Determine the default libpath from the value encoded in an empty executable.
12609 cat >conftest.$ac_ext <<_ACEOF
12612 cat confdefs.h >>conftest.$ac_ext
12613 cat >>conftest.$ac_ext <<_ACEOF
12614 /* end confdefs.h. */
12624 rm -f conftest.$ac_objext conftest$ac_exeext
12625 if { (ac_try="$ac_link"
12626 case "(($ac_try" in
12627 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
12628 *) ac_try_echo
=$ac_try;;
12630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12631 (eval "$ac_link") 2>conftest.er1
12633 grep -v '^ *+' conftest.er1
>conftest.err
12635 cat conftest.err
>&5
12636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12637 (exit $ac_status); } && {
12638 test -z "$ac_cxx_werror_flag" ||
12639 test ! -s conftest.err
12640 } && test -s conftest
$ac_exeext &&
12641 $as_test_x conftest
$ac_exeext; then
12643 lt_aix_libpath_sed
='
12644 /Import File Strings/,/^$/ {
12650 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12651 # Check for a 64-bit object if we didn't find anything.
12652 if test -z "$aix_libpath"; then
12653 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12656 echo "$as_me: failed program was:" >&5
12657 sed 's/^/| /' conftest.
$ac_ext >&5
12662 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12663 conftest
$ac_exeext conftest.
$ac_ext
12664 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
12666 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
12668 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"
12670 if test "$host_cpu" = ia64
; then
12671 hardcode_libdir_flag_spec_CXX
='${wl}-R $libdir:/usr/lib:/lib'
12672 allow_undefined_flag_CXX
="-z nodefs"
12673 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"
12675 # Determine the default libpath from the value encoded in an empty executable.
12676 cat >conftest.
$ac_ext <<_ACEOF
12679 cat confdefs.h
>>conftest.
$ac_ext
12680 cat >>conftest.
$ac_ext <<_ACEOF
12681 /* end confdefs.h. */
12691 rm -f conftest.
$ac_objext conftest
$ac_exeext
12692 if { (ac_try
="$ac_link"
12693 case "(($ac_try" in
12694 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
12695 *) ac_try_echo=$ac_try;;
12697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12698 (eval "$ac_link") 2>conftest.er1
12700 grep -v '^ *+' conftest.er1 >conftest.err
12702 cat conftest.err >&5
12703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12704 (exit $ac_status); } && {
12705 test -z "$ac_cxx_werror_flag" ||
12706 test ! -s conftest.err
12707 } && test -s conftest$ac_exeext &&
12708 $as_test_x conftest$ac_exeext; then
12710 lt_aix_libpath_sed='
12711 /Import File Strings/,/^$/ {
12717 aix_libpath=`dump
-H conftest
$ac_exeext 2>/dev
/null
| $SED -n -e "$lt_aix_libpath_sed"`
12718 # Check for a 64-bit object if we didn't find anything.
12719 if test -z "$aix_libpath"; then
12720 aix_libpath=`dump
-HX64 conftest
$ac_exeext 2>/dev
/null
| $SED -n -e "$lt_aix_libpath_sed"`
12723 echo "$as_me: failed program was:" >&5
12724 sed 's/^/| /' conftest.$ac_ext >&5
12729 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12730 conftest$ac_exeext conftest.$ac_ext
12731 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12733 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12734 # Warning - without using the other run time loading flags,
12735 # -berok will link without error, but may produce a broken library.
12736 no_undefined_flag_CXX=' ${wl}-bernotok'
12737 allow_undefined_flag_CXX=' ${wl}-berok'
12738 # Exported symbols can be pulled into shared objects from archives
12739 whole_archive_flag_spec_CXX='$convenience'
12740 archive_cmds_need_lc_CXX=yes
12741 # This is similar to how AIX traditionally builds its shared libraries.
12742 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'
12748 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12749 allow_undefined_flag_CXX=unsupported
12750 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12751 # support --undefined. This deserves some investigation. FIXME
12752 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12759 case $cc_basename in
12761 # FIXME: insert proper C++ library support
12767 cygwin* | mingw* | pw32*)
12768 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12769 # as there is no search path for DLLs.
12770 hardcode_libdir_flag_spec_CXX='-L$libdir'
12771 allow_undefined_flag_CXX=unsupported
12772 always_export_symbols_CXX=no
12773 enable_shared_with_static_runtimes_CXX=yes
12775 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12776 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'
12777 # If the export-symbols file already is a .def file (1st line
12778 # is EXPORTS), use it as is; otherwise, prepend...
12779 archive_expsym_cmds_CXX='if test "x`$SED 1q
$export_symbols`" = xEXPORTS; then
12780 cp $export_symbols $output_objdir/$soname.def;
12782 echo EXPORTS > $output_objdir/$soname.def;
12783 cat $export_symbols >> $output_objdir/$soname.def;
12785 $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'
12790 darwin* | rhapsody*)
12791 archive_cmds_need_lc_CXX=no
12792 hardcode_direct_CXX=no
12793 hardcode_automatic_CXX=yes
12794 hardcode_shlibpath_var_CXX=unsupported
12795 whole_archive_flag_spec_CXX=''
12796 link_all_deplibs_CXX=yes
12797 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12798 if test "$GXX" = yes ; then
12799 output_verbose_link_cmd='echo'
12800 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12801 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12802 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
12803 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
12804 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12805 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
12806 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
12809 case $cc_basename in
12811 output_verbose_link_cmd='echo'
12812 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'
12813 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12814 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12815 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}'
12816 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}'
12826 case $cc_basename in
12828 # FIXME: insert proper C++ library support
12832 # Green Hills C++ Compiler
12833 # FIXME: insert proper C++ library support
12837 # FIXME: insert proper C++ library support
12843 # C++ shared libraries reported to be fairly broken before switch to ELF
12847 archive_cmds_need_lc_CXX=no
12849 freebsd* | dragonfly*)
12850 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12857 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12858 hardcode_libdir_separator_CXX=:
12859 export_dynamic_flag_spec_CXX='${wl}-E'
12860 hardcode_direct_CXX=yes
12861 hardcode_minus_L_CXX=yes # Not in the search PATH,
12862 # but as the default
12863 # location of the library.
12865 case $cc_basename in
12867 # FIXME: insert proper C++ library support
12871 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'
12872 # Commands to make compiler produce verbose output that lists
12873 # what "hidden" libraries, object files and flags are used when
12874 # linking a shared library.
12876 # There doesn't appear to be a way to prevent this compiler from
12877 # explicitly linking system object files so we need to strip them
12878 # from the output so that they don't get included in the library
12880 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'
12883 if test "$GXX" = yes; then
12884 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'
12886 # FIXME: insert proper C++ library support
12893 if test $with_gnu_ld = no; then
12894 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12895 hardcode_libdir_separator_CXX=:
12900 export_dynamic_flag_spec_CXX='${wl}-E'
12906 hardcode_direct_CXX=no
12907 hardcode_shlibpath_var_CXX=no
12910 hardcode_direct_CXX=yes
12911 hardcode_minus_L_CXX=yes # Not in the search PATH,
12912 # but as the default
12913 # location of the library.
12917 case $cc_basename in
12919 # FIXME: insert proper C++ library support
12925 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12928 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12931 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12934 # Commands to make compiler produce verbose output that lists
12935 # what "hidden" libraries, object files and flags are used when
12936 # linking a shared library.
12938 # There doesn't appear to be a way to prevent this compiler from
12939 # explicitly linking system object files so we need to strip them
12940 # from the output so that they don't get included in the library
12942 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'
12945 if test "$GXX" = yes; then
12946 if test $with_gnu_ld = no; then
12949 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12952 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12955 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'
12960 # FIXME: insert proper C++ library support
12967 hardcode_direct_CXX=no
12968 hardcode_shlibpath_var_CXX=no
12969 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12970 export_dynamic_flag_spec_CXX='${wl}-E'
12971 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12972 # Instead, shared libraries are loaded at an image base (0x10000000 by
12973 # default) and relocated if they conflict, which is a slow very memory
12974 # consuming and fragmenting process. To avoid this, we pick a random,
12975 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12976 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12977 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'
12978 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'
12981 case $cc_basename in
12984 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'
12986 # Archives containing C++ object files must be created using
12987 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12988 # necessary to make sure instantiated templates are included
12990 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12993 if test "$GXX" = yes; then
12994 if test "$with_gnu_ld" = no; then
12995 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'
12997 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'
13000 link_all_deplibs_CXX=yes
13003 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13004 hardcode_libdir_separator_CXX=:
13006 linux* | k*bsd*-gnu)
13007 case $cc_basename in
13009 # Kuck and Associates, Inc. (KAI) C++ Compiler
13011 # KCC will only create a shared library if the output file
13012 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13013 # to its proper name (with version) after linking.
13014 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'
13015 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'
13016 # Commands to make compiler produce verbose output that lists
13017 # what "hidden" libraries, object files and flags are used when
13018 # linking a shared library.
13020 # There doesn't appear to be a way to prevent this compiler from
13021 # explicitly linking system object files so we need to strip them
13022 # from the output so that they don't get included in the library
13024 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'
13026 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
13027 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13029 # Archives containing C++ object files must be created using
13030 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13031 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13036 # version 8.0 and above of icpc choke on multiply defined symbols
13037 # if we add $predep_objects and $postdep_objects, however 7.1 and
13038 # earlier do not add the objects themselves.
13039 case `$CC -V 2>&1` in
13041 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13042 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'
13044 *) # Version 8.0 or newer
13047 ia64*) tmp_idyn=' -i_dynamic';;
13049 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13050 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'
13053 archive_cmds_need_lc_CXX=no
13054 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13055 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13056 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13059 # Portland Group C++ compiler
13060 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13061 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'
13063 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13064 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13065 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'
13069 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13070 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'
13072 runpath_var=LD_RUN_PATH
13073 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13074 hardcode_libdir_separator_CXX=:
13076 # Commands to make compiler produce verbose output that lists
13077 # what "hidden" libraries, object files and flags are used when
13078 # linking a shared library.
13080 # There doesn't appear to be a way to prevent this compiler from
13081 # explicitly linking system object files so we need to strip them
13082 # from the output so that they don't get included in the library
13084 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'
13087 case `$CC -V 2>&1 | sed 5q
` in
13090 no_undefined_flag_CXX=' -zdefs'
13091 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13092 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'
13093 hardcode_libdir_flag_spec_CXX='-R$libdir'
13094 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'
13096 # Not sure whether something based on
13097 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13099 output_verbose_link_cmd='echo'
13101 # Archives containing C++ object files must be created using
13102 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13103 # necessary to make sure instantiated templates are included
13105 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13112 # FIXME: insert proper C++ library support
13116 # FIXME: insert proper C++ library support
13120 case $cc_basename in
13122 # FIXME: insert proper C++ library support
13126 # FIXME: insert proper C++ library support
13131 netbsd* | netbsdelf*-gnu)
13132 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13133 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13135 hardcode_libdir_flag_spec_CXX='-R$libdir'
13136 hardcode_direct_CXX=yes
13137 hardcode_shlibpath_var_CXX=no
13139 # Workaround some broken pre-1.5 toolchains
13140 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13143 # C++ shared libraries are fairly broken
13147 if test -f /usr/libexec/ld.so; then
13148 hardcode_direct_CXX=yes
13149 hardcode_shlibpath_var_CXX=no
13150 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13151 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13152 if test -z "`echo __ELF__
| $CC -E - | grep __ELF__
`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13153 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13154 export_dynamic_flag_spec_CXX='${wl}-E'
13155 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13157 output_verbose_link_cmd='echo'
13163 case $cc_basename in
13165 # Kuck and Associates, Inc. (KAI) C++ Compiler
13167 # KCC will only create a shared library if the output file
13168 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13169 # to its proper name (with version) after linking.
13170 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'
13172 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13173 hardcode_libdir_separator_CXX=:
13175 # Archives containing C++ object files must be created using
13176 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13177 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13181 # Rational C++ 2.4.1
13182 # FIXME: insert proper C++ library support
13186 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13187 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'
13189 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13190 hardcode_libdir_separator_CXX=:
13192 # Commands to make compiler produce verbose output that lists
13193 # what "hidden" libraries, object files and flags are used when
13194 # linking a shared library.
13196 # There doesn't appear to be a way to prevent this compiler from
13197 # explicitly linking system object files so we need to strip them
13198 # from the output so that they don't get included in the library
13200 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'
13203 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13204 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13205 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'
13207 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13208 hardcode_libdir_separator_CXX=:
13210 # Commands to make compiler produce verbose output that lists
13211 # what "hidden" libraries, object files and flags are used when
13212 # linking a shared library.
13213 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13216 # FIXME: insert proper C++ library support
13223 case $cc_basename in
13225 # Kuck and Associates, Inc. (KAI) C++ Compiler
13227 # KCC will only create a shared library if the output file
13228 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13229 # to its proper name (with version) after linking.
13230 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'
13232 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13233 hardcode_libdir_separator_CXX=:
13235 # Archives containing C++ object files must be created using
13236 # the KAI C++ compiler.
13237 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
13240 # Rational C++ 2.4.1
13241 # FIXME: insert proper C++ library support
13245 allow_undefined_flag_CXX=' -expect_unresolved \*'
13246 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'
13247 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13248 echo "-hidden">> $lib.exp~
13249 $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~
13252 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13253 hardcode_libdir_separator_CXX=:
13255 # Commands to make compiler produce verbose output that lists
13256 # what "hidden" libraries, object files and flags are used when
13257 # linking a shared library.
13259 # There doesn't appear to be a way to prevent this compiler from
13260 # explicitly linking system object files so we need to strip them
13261 # from the output so that they don't get included in the library
13263 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'
13266 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13267 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13268 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'
13270 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13271 hardcode_libdir_separator_CXX=:
13273 # Commands to make compiler produce verbose output that lists
13274 # what "hidden" libraries, object files and flags are used when
13275 # linking a shared library.
13276 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13279 # FIXME: insert proper C++ library support
13286 # FIXME: insert proper C++ library support
13290 case $cc_basename in
13293 # FIXME: insert proper C++ library support
13298 # FIXME: insert proper C++ library support
13302 # FIXME: insert proper C++ library support
13308 case $cc_basename in
13310 # Sun C++ 4.2, 5.x and Centerline C++
13311 archive_cmds_need_lc_CXX=yes
13312 no_undefined_flag_CXX=' -zdefs'
13313 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13314 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13315 $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'
13317 hardcode_libdir_flag_spec_CXX='-R$libdir'
13318 hardcode_shlibpath_var_CXX=no
13320 solaris2.[0-5] | solaris2.[0-5].*) ;;
13322 # The compiler driver will combine and reorder linker options,
13323 # but understands `-z linker_flag
'.
13324 # Supported since Solaris 2.6 (maybe 2.5.1?)
13325 whole_archive_flag_spec_CXX='-z allextract
$convenience -z defaultextract
'
13328 link_all_deplibs_CXX=yes
13330 output_verbose_link_cmd='echo'
13332 # Archives containing C++ object files must be created using
13333 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13334 # necessary to make sure instantiated templates are included
13336 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13339 # Green Hills C++ Compiler
13340 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13342 # The C++ compiler must be used to create the archive.
13343 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13346 # GNU C++ compiler with Solaris linker
13347 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13348 no_undefined_flag_CXX=' ${wl}-z ${wl}defs
'
13349 if $CC --version | grep -v '^
2\
.7' > /dev/null; then
13350 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13351 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~
cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~
$echo "local: *; };" >> $lib.exp~
13352 $CC -shared -nostdlib ${wl}-M $wl$lib.exp
-o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~
$rm $lib.exp
'
13354 # Commands to make compiler produce verbose output that lists
13355 # what "hidden" libraries, object files and flags are used when
13356 # linking a shared library.
13357 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13359 # g++ 2.7 appears to require `-G' NOT
`-shared' on this
13361 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13362 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13363 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13365 # Commands to make compiler produce verbose output that lists
13366 # what "hidden" libraries, object files and flags are used when
13367 # linking a shared library.
13368 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13371 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13373 solaris2.[0-5] | solaris2.[0-5].*) ;;
13375 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13382 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13383 no_undefined_flag_CXX='${wl}-z,text'
13384 archive_cmds_need_lc_CXX=no
13385 hardcode_shlibpath_var_CXX=no
13386 runpath_var='LD_RUN_PATH'
13388 case $cc_basename in
13390 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13391 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13394 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13395 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13399 sysv5* | sco3.2v5* | sco5v6*)
13400 # Note: We can NOT use -z defs as we might desire, because we do not
13401 # link with -lc, and that would cause any symbols used from libc to
13402 # always be unresolved, which means just about no library would
13403 # ever link correctly. If we're not using GNU ld we use -z text
13404 # though, which does catch some bad symbols but isn't as heavy-handed
13406 # For security reasons, it is highly recommended that you always
13407 # use absolute paths for naming shared libraries, and exclude the
13408 # DT_RUNPATH tag from executables and libraries. But doing so
13409 # requires that you compile everything twice, which is a pain.
13410 # So that behaviour is only enabled if SCOABSPATH is set to a
13411 # non-empty value in the environment. Most likely only useful for
13412 # creating official distributions of packages.
13413 # This is a hack until libtool officially supports absolute path
13414 # names for shared libraries.
13415 no_undefined_flag_CXX='${wl}-z,text'
13416 allow_undefined_flag_CXX='${wl}-z,nodefs'
13417 archive_cmds_need_lc_CXX=no
13418 hardcode_shlibpath_var_CXX=no
13419 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
13420 hardcode_libdir_separator_CXX=':'
13421 link_all_deplibs_CXX=yes
13422 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13423 runpath_var='LD_RUN_PATH'
13425 case $cc_basename in
13427 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13428 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13431 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13432 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13437 case $cc_basename in
13439 # NonStop-UX NCC 3.20
13440 # FIXME: insert proper C++ library support
13444 # FIXME: insert proper C++ library support
13450 # FIXME: insert proper C++ library support
13454 # FIXME: insert proper C++ library support
13458 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13459 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13460 test "$ld_shlibs_CXX" = no && can_build_shared=no
13465 cat > conftest.$ac_ext <<EOF
13469 Foo (void) { a = 0; }
13475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13476 (eval $ac_compile) 2>&5
13478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13479 (exit $ac_status); }; then
13480 # Parse the compiler output and extract the necessary
13481 # objects, libraries and library flags.
13483 # Sentinel used to keep track of whether or not we are before
13484 # the conftest object file.
13485 pre_test_object_deps_done=no
13487 # The `*' in the case matches for architectures that use `case' in
13488 # $output_verbose_cmd can trigger glob expansion during the loop
13489 # eval without this substitution.
13490 output_verbose_link_cmd
=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
13492 for p
in `eval $output_verbose_link_cmd`; do
13496 # Some compilers place space between "-{L,R}" and the path.
13497 # Remove the space.
13498 if test $p = "-L" \
13499 || test $p = "-R"; then
13506 if test "$pre_test_object_deps_done" = no
; then
13509 # Internal compiler library paths should come after those
13510 # provided the user. The postdeps already come after the
13511 # user supplied libs so there is no need to process them.
13512 if test -z "$compiler_lib_search_path_CXX"; then
13513 compiler_lib_search_path_CXX
="${prev}${p}"
13515 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
13518 # The "-l" case would never come before the object being
13519 # linked, so don't bother handling this case.
13522 if test -z "$postdeps_CXX"; then
13523 postdeps_CXX
="${prev}${p}"
13525 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
13531 # This assumes that the test object file only shows up
13532 # once in the compiler output.
13533 if test "$p" = "conftest.$objext"; then
13534 pre_test_object_deps_done
=yes
13538 if test "$pre_test_object_deps_done" = no
; then
13539 if test -z "$predep_objects_CXX"; then
13540 predep_objects_CXX
="$p"
13542 predep_objects_CXX
="$predep_objects_CXX $p"
13545 if test -z "$postdep_objects_CXX"; then
13546 postdep_objects_CXX
="$p"
13548 postdep_objects_CXX
="$postdep_objects_CXX $p"
13553 *) ;; # Ignore the rest.
13561 echo "libtool.m4: error: problem compiling CXX test program"
13564 $rm -f confest.
$objext
13566 compiler_lib_search_dirs_CXX
=
13567 if test -n "$compiler_lib_search_path_CXX"; then
13568 compiler_lib_search_dirs_CXX
=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13571 # PORTME: override above test on systems where it is broken
13574 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13575 # hack all around it, let's just trust "g++" to DTRT.
13576 predep_objects_CXX
=
13577 postdep_objects_CXX
=
13582 case `$CC -V 2>&1 | sed 5q` in
13586 # The more standards-conforming stlport4 library is
13587 # incompatible with the Cstd library. Avoid specifying
13588 # it if it's in CXXFLAGS. Ignore libCrun as
13589 # -library=stlport4 depends on it.
13590 case " $CXX $CXXFLAGS " in
13591 *" -library=stlport4 "*)
13592 solaris_use_stlport4
=yes
13595 if test "$solaris_use_stlport4" != yes; then
13596 postdeps_CXX
='-library=Cstd -library=Crun'
13603 case $cc_basename in
13605 # The more standards-conforming stlport4 library is
13606 # incompatible with the Cstd library. Avoid specifying
13607 # it if it's in CXXFLAGS. Ignore libCrun as
13608 # -library=stlport4 depends on it.
13609 case " $CXX $CXXFLAGS " in
13610 *" -library=stlport4 "*)
13611 solaris_use_stlport4
=yes
13615 # Adding this requires a known-good setup of shared libraries for
13616 # Sun compiler versions before 5.6, else PIC objects from an old
13617 # archive will be linked into the output, leading to subtle bugs.
13618 if test "$solaris_use_stlport4" != yes; then
13619 postdeps_CXX
='-library=Cstd -library=Crun'
13626 case " $postdeps_CXX " in
13627 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
13630 lt_prog_compiler_wl_CXX
=
13631 lt_prog_compiler_pic_CXX
=
13632 lt_prog_compiler_static_CXX
=
13634 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13635 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13637 # C++ specific cases for pic, static, wl, etc.
13638 if test "$GXX" = yes; then
13639 lt_prog_compiler_wl_CXX
='-Wl,'
13640 lt_prog_compiler_static_CXX
='-static'
13644 # All AIX code is PIC.
13645 if test "$host_cpu" = ia64
; then
13646 # AIX 5 now supports IA64 processor
13647 lt_prog_compiler_static_CXX
='-Bstatic'
13651 # FIXME: we need at least 68020 code to build shared libraries, but
13652 # adding the `-m68020' flag to GCC prevents building anything better,
13654 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
13656 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
13657 # PIC is the default for these OSes.
13659 mingw
* | cygwin
* | os2
* | pw32
*)
13660 # This hack is so that the source file can tell whether it is being
13661 # built for inclusion in a dll (and should export symbols for example).
13662 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13663 # (--disable-auto-import) libraries
13664 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
13666 darwin
* | rhapsody
*)
13667 # PIC is the default on this platform
13668 # Common symbols not allowed in MH_DYLIB files
13669 lt_prog_compiler_pic_CXX
='-fno-common'
13672 # DJGPP does not support shared libraries at all
13673 lt_prog_compiler_pic_CXX
=
13676 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13677 # Instead, we relocate shared libraries at runtime.
13680 if test -d /usr
/nec
; then
13681 lt_prog_compiler_pic_CXX
=-Kconform_pic
13685 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13686 # not for PA HP-UX.
13691 lt_prog_compiler_pic_CXX
='-fPIC'
13696 lt_prog_compiler_pic_CXX
='-fPIC'
13702 # All AIX code is PIC.
13703 if test "$host_cpu" = ia64
; then
13704 # AIX 5 now supports IA64 processor
13705 lt_prog_compiler_static_CXX
='-Bstatic'
13707 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
13711 case $cc_basename in
13713 # Green Hills C++ Compiler
13714 # _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"
13719 # PIC is the default on this platform
13720 # Common symbols not allowed in MH_DYLIB files
13721 case $cc_basename in
13723 lt_prog_compiler_pic_CXX
='-qnocommon'
13724 lt_prog_compiler_wl_CXX
='-Wl,'
13729 case $cc_basename in
13731 lt_prog_compiler_pic_CXX
='-KPIC'
13734 # Green Hills C++ Compiler
13735 lt_prog_compiler_pic_CXX
='-pic'
13741 freebsd
* | dragonfly
*)
13742 # FreeBSD uses GNU C++
13744 hpux9
* | hpux10
* | hpux11
*)
13745 case $cc_basename in
13747 lt_prog_compiler_wl_CXX
='-Wl,'
13748 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
13749 if test "$host_cpu" != ia64
; then
13750 lt_prog_compiler_pic_CXX
='+Z'
13754 lt_prog_compiler_wl_CXX
='-Wl,'
13755 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
13761 lt_prog_compiler_pic_CXX
='+Z'
13770 # This is c89, which is MS Visual C++ (no shared libs)
13771 # Anyone wants to do a port?
13773 irix5
* | irix6
* | nonstopux
*)
13774 case $cc_basename in
13776 lt_prog_compiler_wl_CXX
='-Wl,'
13777 lt_prog_compiler_static_CXX
='-non_shared'
13778 # CC pic flag -KPIC is the default.
13784 linux
* | k
*bsd
*-gnu)
13785 case $cc_basename in
13788 lt_prog_compiler_wl_CXX
='--backend -Wl,'
13789 lt_prog_compiler_pic_CXX
='-fPIC'
13793 lt_prog_compiler_wl_CXX
='-Wl,'
13794 lt_prog_compiler_pic_CXX
='-KPIC'
13795 lt_prog_compiler_static_CXX
='-static'
13798 # Portland Group C++ compiler.
13799 lt_prog_compiler_wl_CXX
='-Wl,'
13800 lt_prog_compiler_pic_CXX
='-fpic'
13801 lt_prog_compiler_static_CXX
='-Bstatic'
13805 # Make sure the PIC flag is empty. It appears that all Alpha
13806 # Linux and Compaq Tru64 Unix objects are PIC.
13807 lt_prog_compiler_pic_CXX
=
13808 lt_prog_compiler_static_CXX
='-non_shared'
13811 case `$CC -V 2>&1 | sed 5q` in
13814 lt_prog_compiler_pic_CXX
='-KPIC'
13815 lt_prog_compiler_static_CXX
='-Bstatic'
13816 lt_prog_compiler_wl_CXX
='-Qoption ld '
13827 case $cc_basename in
13829 lt_prog_compiler_pic_CXX
='-W c,exportall'
13835 netbsd
* | netbsdelf
*-gnu)
13837 osf3
* | osf4
* | osf5
*)
13838 case $cc_basename in
13840 lt_prog_compiler_wl_CXX
='--backend -Wl,'
13843 # Rational C++ 2.4.1
13844 lt_prog_compiler_pic_CXX
='-pic'
13847 # Digital/Compaq C++
13848 lt_prog_compiler_wl_CXX
='-Wl,'
13849 # Make sure the PIC flag is empty. It appears that all Alpha
13850 # Linux and Compaq Tru64 Unix objects are PIC.
13851 lt_prog_compiler_pic_CXX
=
13852 lt_prog_compiler_static_CXX
='-non_shared'
13861 case $cc_basename in
13863 # Sun C++ 4.2, 5.x and Centerline C++
13864 lt_prog_compiler_pic_CXX
='-KPIC'
13865 lt_prog_compiler_static_CXX
='-Bstatic'
13866 lt_prog_compiler_wl_CXX
='-Qoption ld '
13869 # Green Hills C++ Compiler
13870 lt_prog_compiler_pic_CXX
='-PIC'
13877 case $cc_basename in
13880 lt_prog_compiler_pic_CXX
='-pic'
13881 lt_prog_compiler_static_CXX
='-Bstatic'
13885 lt_prog_compiler_pic_CXX
='-pic'
13892 case $cc_basename in
13894 # NonStop-UX NCC 3.20
13895 lt_prog_compiler_pic_CXX
='-KPIC'
13901 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
13902 case $cc_basename in
13904 lt_prog_compiler_wl_CXX
='-Wl,'
13905 lt_prog_compiler_pic_CXX
='-KPIC'
13906 lt_prog_compiler_static_CXX
='-Bstatic'
13913 lt_prog_compiler_can_build_shared_CXX
=no
13918 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13919 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
13922 # Check to make sure the PIC flag actually works.
13924 if test -n "$lt_prog_compiler_pic_CXX"; then
13926 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13927 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
13928 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
13929 echo $ECHO_N "(cached) $ECHO_C" >&6
13931 lt_cv_prog_compiler_pic_works_CXX
=no
13932 ac_outfile
=conftest.
$ac_objext
13933 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
13934 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
13935 # Insert the option either (1) after the last *FLAGS variable, or
13936 # (2) before a word containing "conftest.", or (3) at the end.
13937 # Note that $ac_compile itself does not contain backslashes and begins
13938 # with a dollar sign (not a hyphen), so the echo should work correctly.
13939 # The option is referenced via a variable to avoid confusing sed.
13940 lt_compile
=`echo "$ac_compile" | $SED \
13941 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13942 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13943 -e 's:$: $lt_compiler_flag:'`
13944 (eval echo "\"\$as_me:13944: $lt_compile\"" >&5)
13945 (eval "$lt_compile" 2>conftest.err
)
13947 cat conftest.err
>&5
13948 echo "$as_me:13948: \$? = $ac_status" >&5
13949 if (exit $ac_status) && test -s "$ac_outfile"; then
13950 # The compiler can only warn and ignore the option if not recognized
13951 # So say no if there are warnings other than the usual output.
13952 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13953 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
13954 if test ! -s conftest.er2
|| diff conftest.exp conftest.er2
>/dev
/null
; then
13955 lt_cv_prog_compiler_pic_works_CXX
=yes
13961 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13962 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13964 if test x
"$lt_cv_prog_compiler_pic_works_CXX" = xyes
; then
13965 case $lt_prog_compiler_pic_CXX in
13967 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
13970 lt_prog_compiler_pic_CXX
=
13971 lt_prog_compiler_can_build_shared_CXX
=no
13976 # For platforms which do not support PIC, -DPIC is meaningless:
13978 lt_prog_compiler_pic_CXX
=
13981 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
13986 # Check to make sure the static flag actually works.
13988 wl
=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_CXX\"
13989 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13990 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13991 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
13992 echo $ECHO_N "(cached) $ECHO_C" >&6
13994 lt_cv_prog_compiler_static_works_CXX
=no
13995 save_LDFLAGS
="$LDFLAGS"
13996 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
13997 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
13998 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
13999 # The linker can only warn and ignore the option if not recognized
14000 # So say no if there are warnings
14001 if test -s conftest.err
; then
14002 # Append any errors to the config.log.
14003 cat conftest.err
1>&5
14004 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14005 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
14006 if diff conftest.exp conftest.er2
>/dev
/null
; then
14007 lt_cv_prog_compiler_static_works_CXX
=yes
14010 lt_cv_prog_compiler_static_works_CXX
=yes
14014 LDFLAGS
="$save_LDFLAGS"
14017 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14018 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
14020 if test x
"$lt_cv_prog_compiler_static_works_CXX" = xyes
; then
14023 lt_prog_compiler_static_CXX
=
14027 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14028 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14029 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14030 echo $ECHO_N "(cached) $ECHO_C" >&6
14032 lt_cv_prog_compiler_c_o_CXX
=no
14033 $rm -r conftest
2>/dev
/null
14037 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
14039 lt_compiler_flag
="-o out/conftest2.$ac_objext"
14040 # Insert the option either (1) after the last *FLAGS variable, or
14041 # (2) before a word containing "conftest.", or (3) at the end.
14042 # Note that $ac_compile itself does not contain backslashes and begins
14043 # with a dollar sign (not a hyphen), so the echo should work correctly.
14044 lt_compile
=`echo "$ac_compile" | $SED \
14045 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14046 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14047 -e 's:$: $lt_compiler_flag:'`
14048 (eval echo "\"\$as_me:14048: $lt_compile\"" >&5)
14049 (eval "$lt_compile" 2>out
/conftest.err
)
14051 cat out
/conftest.err
>&5
14052 echo "$as_me:14052: \$? = $ac_status" >&5
14053 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
14055 # The compiler can only warn and ignore the option if not recognized
14056 # So say no if there are warnings
14057 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out
/conftest.exp
14058 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
14059 if test ! -s out
/conftest.er2
|| diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
14060 lt_cv_prog_compiler_c_o_CXX
=yes
14065 # SGI C++ compiler will create directory out/ii_files/ for
14066 # template instantiation
14067 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
14068 $rm out
/* && rmdir out
14074 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14075 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14078 hard_links
="nottested"
14079 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
14080 # do not overwrite the value of need_locks provided by the user
14081 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14082 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14085 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
14087 ln conftest.a conftest.b
2>&5 || hard_links
=no
14088 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
14089 { echo "$as_me:$LINENO: result: $hard_links" >&5
14090 echo "${ECHO_T}$hard_links" >&6; }
14091 if test "$hard_links" = no
; then
14092 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14093 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14100 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14101 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14103 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14106 # If we're using GNU nm, then we don't want the "-C" option.
14107 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14108 if $NM -V 2>&1 | grep 'GNU' > /dev
/null
; then
14109 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'
14111 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'
14115 export_symbols_cmds_CXX
="$ltdll_cmds"
14118 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'
14120 linux
* | k
*bsd
*-gnu)
14121 link_all_deplibs_CXX
=no
14124 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14127 exclude_expsyms_CXX
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14129 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14130 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14131 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
14134 # Do we need to explicitly link libc?
14136 case "x$archive_cmds_need_lc_CXX" in
14138 # Assume -lc should be added
14139 archive_cmds_need_lc_CXX
=yes
14141 if test "$enable_shared" = yes && test "$GCC" = yes; then
14142 case $archive_cmds_CXX in
14144 # FIXME: we may have to deal with multi-command sequences.
14147 # Test whether the compiler implicitly links with -lc since on some
14148 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14149 # to ld, don't add -lc before -lgcc.
14150 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14151 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14153 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
14155 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14156 (eval $ac_compile) 2>&5
14158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14159 (exit $ac_status); } 2>conftest.err
; then
14162 libobjs
=conftest.
$ac_objext
14164 wl
=$lt_prog_compiler_wl_CXX
14165 pic_flag
=$lt_prog_compiler_pic_CXX
14171 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
14172 allow_undefined_flag_CXX
=
14173 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14174 (eval $archive_cmds_CXX 2\
>\
&1 \
| grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
14176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14177 (exit $ac_status); }
14179 archive_cmds_need_lc_CXX
=no
14181 archive_cmds_need_lc_CXX
=yes
14183 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
14185 cat conftest.err
1>&5
14188 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
14189 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
14196 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14197 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
14198 library_names_spec
=
14199 libname_spec
='lib$name'
14203 postuninstall_cmds
=
14207 shlibpath_overrides_runpath
=unknown
14209 dynamic_linker
="$host_os ld.so"
14210 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
14212 need_lib_prefix
=unknown
14213 hardcode_into_libs
=no
14215 # when you set need_version to no, make sure it does not cause -set_version
14216 # flags to be left without arguments
14217 need_version
=unknown
14222 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
14223 shlibpath_var
=LIBPATH
14225 # AIX 3 has no versioning support, so we append a major version to the name.
14226 soname_spec
='${libname}${release}${shared_ext}$major'
14233 hardcode_into_libs
=yes
14234 if test "$host_cpu" = ia64
; then
14235 # AIX 5 supports IA64
14236 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14237 shlibpath_var
=LD_LIBRARY_PATH
14239 # With GCC up to 2.95.x, collect2 would create an import file
14240 # for dependence libraries. The import file would start with
14241 # the line `#! .'. This would cause the generated library to
14242 # depend on `.', always an invalid library. This was fixed in
14243 # development snapshots of GCC prior to 3.0.
14245 aix4
| aix4.
[01] | aix4.
[01].
*)
14246 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14248 echo '#endif'; } | ${CC} -E - | grep yes > /dev
/null
; then
14251 can_build_shared
=no
14255 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14256 # soname into executable. Probably we can add versioning support to
14257 # collect2, so additional links can be useful in future.
14258 if test "$aix_use_runtimelinking" = yes; then
14259 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14260 # instead of lib<name>.a to let people know that these are not
14261 # typical AIX shared libraries.
14262 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14264 # We preserve .a as extension for shared libraries through AIX4.2
14265 # and later when we are not doing run time linking.
14266 library_names_spec
='${libname}${release}.a $libname.a'
14267 soname_spec
='${libname}${release}${shared_ext}$major'
14269 shlibpath_var
=LIBPATH
14274 library_names_spec
='$libname.ixlibrary $libname.a'
14275 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14276 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'
14280 library_names_spec
='${libname}${shared_ext}'
14281 dynamic_linker
="$host_os ld.so"
14282 shlibpath_var
=LIBRARY_PATH
14288 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14289 soname_spec
='${libname}${release}${shared_ext}$major'
14290 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
14291 shlibpath_var
=LD_LIBRARY_PATH
14292 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14293 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
14294 # the default ld.so.conf also contains /usr/contrib/lib and
14295 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14296 # libtool to hard-code these into programs
14299 cygwin
* | mingw
* | pw32
*)
14300 version_type
=windows
14305 case $GCC,$host_os in
14306 yes,cygwin
* | yes,mingw
* | yes,pw32
*)
14307 library_names_spec
='$libname.dll.a'
14308 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14309 postinstall_cmds
='base_file=`basename \${file}`~
14310 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14311 dldir=$destdir/`dirname \$dlpath`~
14312 test -d \$dldir || mkdir -p \$dldir~
14313 $install_prog $dir/$dlname \$dldir/$dlname~
14314 chmod a+x \$dldir/$dlname'
14315 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14316 dlpath=$dir/\$dldll~
14318 shlibpath_overrides_runpath
=yes
14322 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14323 soname_spec
='`echo ${libname} | sed -e 's
/^lib
/cyg
/'``echo ${release} | $SED -e 's
/[.
]/-/g
'`${versuffix}${shared_ext}'
14324 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
14327 # MinGW DLLs use traditional 'lib' prefix
14328 soname_spec
='${libname}`echo ${release} | $SED -e 's
/[.
]/-/g
'`${versuffix}${shared_ext}'
14329 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14330 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev
/null
; then
14331 # It is most probably a Windows format PATH printed by
14332 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14333 # path with ; separators, and with drive letters. We can handle the
14334 # drive letters (cygwin fileutils understands them), so leave them,
14335 # especially as we might pass files found there to a mingw objdump,
14336 # which wouldn't understand a cygwinified path. Ahh.
14337 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14339 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14343 # pw32 DLLs use 'pw' prefix rather than 'lib'
14344 library_names_spec
='`echo ${libname} | sed -e 's
/^lib
/pw
/'``echo ${release} | $SED -e 's
/[.
]/-/g
'`${versuffix}${shared_ext}'
14350 library_names_spec
='${libname}`echo ${release} | $SED -e 's
/[.
]/-/g
'`${versuffix}${shared_ext} $libname.lib'
14353 dynamic_linker
='Win32 ld.exe'
14354 # FIXME: first we should search . and the directory the executable is in
14358 darwin
* | rhapsody
*)
14359 dynamic_linker
="$host_os dyld"
14360 version_type
=darwin
14363 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14364 soname_spec
='${libname}${release}${major}$shared_ext'
14365 shlibpath_overrides_runpath
=yes
14366 shlibpath_var
=DYLD_LIBRARY_PATH
14367 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
14369 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
14376 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14377 soname_spec
='${libname}${release}${shared_ext}$major'
14378 shlibpath_var
=LD_LIBRARY_PATH
14385 freebsd
* | dragonfly
*)
14386 # DragonFly does not have aout. When/if they implement a new
14387 # versioning mechanism, adjust this.
14388 if test -x /usr
/bin
/objformat
; then
14389 objformat
=`/usr/bin/objformat`
14392 freebsd
[123]*) objformat
=aout
;;
14393 *) objformat
=elf
;;
14396 version_type
=freebsd
-$objformat
14397 case $version_type in
14399 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14404 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14408 shlibpath_var
=LD_LIBRARY_PATH
14411 shlibpath_overrides_runpath
=yes
14413 freebsd3.
[01]* | freebsdelf3.
[01]*)
14414 shlibpath_overrides_runpath
=yes
14415 hardcode_into_libs
=yes
14417 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
14418 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
14419 shlibpath_overrides_runpath
=no
14420 hardcode_into_libs
=yes
14422 *) # from 4.6 on, and DragonFly
14423 shlibpath_overrides_runpath
=yes
14424 hardcode_into_libs
=yes
14433 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14434 soname_spec
='${libname}${release}${shared_ext}$major'
14435 shlibpath_var
=LD_LIBRARY_PATH
14436 hardcode_into_libs
=yes
14439 hpux9
* | hpux10
* | hpux11
*)
14440 # Give a soname corresponding to the major version so that dld.sl refuses to
14441 # link against other versions.
14448 hardcode_into_libs
=yes
14449 dynamic_linker
="$host_os dld.so"
14450 shlibpath_var
=LD_LIBRARY_PATH
14451 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
14452 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14453 soname_spec
='${libname}${release}${shared_ext}$major'
14454 if test "X$HPUX_IA64_MODE" = X32
; then
14455 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14457 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
14459 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
14463 hardcode_into_libs
=yes
14464 dynamic_linker
="$host_os dld.sl"
14465 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
14466 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
14467 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14468 soname_spec
='${libname}${release}${shared_ext}$major'
14469 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14470 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
14474 dynamic_linker
="$host_os dld.sl"
14475 shlibpath_var
=SHLIB_PATH
14476 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
14477 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14478 soname_spec
='${libname}${release}${shared_ext}$major'
14481 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14482 postinstall_cmds
='chmod 555 $lib'
14489 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14490 soname_spec
='${libname}${release}${shared_ext}$major'
14491 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
14492 shlibpath_var
=LD_LIBRARY_PATH
14493 shlibpath_overrides_runpath
=no
14494 hardcode_into_libs
=yes
14497 irix5
* | irix6
* | nonstopux
*)
14499 nonstopux
*) version_type
=nonstopux
;;
14501 if test "$lt_cv_prog_gnu_ld" = yes; then
14509 soname_spec
='${libname}${release}${shared_ext}$major'
14510 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14512 irix5
* | nonstopux
*)
14513 libsuff
= shlibsuff
=
14516 case $LD in # libtool.m4 will add one of these switches to LD
14517 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14518 libsuff
= shlibsuff
= libmagic
=32-bit;;
14519 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14520 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
14521 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14522 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
14523 *) libsuff
= shlibsuff
= libmagic
=never
-match;;
14527 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
14528 shlibpath_overrides_runpath
=no
14529 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14530 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
14531 hardcode_into_libs
=yes
14534 # No shared lib support for Linux oldld, aout, or coff.
14535 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
14539 # This must be Linux ELF.
14540 linux
* | k
*bsd
*-gnu)
14544 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14545 soname_spec
='${libname}${release}${shared_ext}$major'
14546 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14547 shlibpath_var
=LD_LIBRARY_PATH
14548 shlibpath_overrides_runpath
=no
14549 # This implies no fast_install, which is unacceptable.
14550 # Some rework will be needed to allow for fast_install
14551 # before this can be enabled.
14552 hardcode_into_libs
=yes
14554 # Append ld.so.conf contents to the search path
14555 if test -f /etc
/ld.so.conf
; then
14556 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' ' '`
14557 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
14560 # We used to test for /lib/ld.so.1 and disable shared libraries on
14561 # powerpc, because MkLinux only supported shared libraries with the
14562 # GNU dynamic linker. Since this was broken with cross compilers,
14563 # most powerpc-linux boxes support dynamic linking these days and
14564 # people can always --disable-shared, the test was removed, and we
14565 # assume the GNU/Linux dynamic linker is in use.
14566 dynamic_linker
='GNU/Linux ld.so'
14573 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14574 soname_spec
='${libname}${release}${shared_ext}$major'
14575 shlibpath_var
=LD_LIBRARY_PATH
14576 shlibpath_overrides_runpath
=no
14577 hardcode_into_libs
=yes
14578 dynamic_linker
='NetBSD ld.elf_so'
14585 if echo __ELF__
| $CC -E - | grep __ELF__
>/dev
/null
; then
14586 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14587 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14588 dynamic_linker
='NetBSD (a.out) ld.so'
14590 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14591 soname_spec
='${libname}${release}${shared_ext}$major'
14592 dynamic_linker
='NetBSD ld.elf_so'
14594 shlibpath_var
=LD_LIBRARY_PATH
14595 shlibpath_overrides_runpath
=yes
14596 hardcode_into_libs
=yes
14601 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14602 shlibpath_var
=LD_LIBRARY_PATH
14603 shlibpath_overrides_runpath
=yes
14610 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14611 soname_spec
='${libname}${release}${shared_ext}$major'
14612 shlibpath_var
=LD_LIBRARY_PATH
14613 shlibpath_overrides_runpath
=yes
14618 sys_lib_dlsearch_path_spec
="/usr/lib"
14620 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14622 openbsd3.3
| openbsd3.3.
*) need_version
=yes ;;
14623 *) need_version
=no
;;
14625 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14626 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14627 shlibpath_var
=LD_LIBRARY_PATH
14628 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14630 openbsd2.
[89] | openbsd2.
[89].
*)
14631 shlibpath_overrides_runpath
=no
14634 shlibpath_overrides_runpath
=yes
14638 shlibpath_overrides_runpath
=yes
14643 libname_spec
='$name'
14646 library_names_spec
='$libname${shared_ext} $libname.a'
14647 dynamic_linker
='OS/2 ld.exe'
14648 shlibpath_var
=LIBPATH
14651 osf3
* | osf4
* | osf5
*)
14655 soname_spec
='${libname}${release}${shared_ext}$major'
14656 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14657 shlibpath_var
=LD_LIBRARY_PATH
14658 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14659 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
14670 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14671 soname_spec
='${libname}${release}${shared_ext}$major'
14672 shlibpath_var
=LD_LIBRARY_PATH
14673 shlibpath_overrides_runpath
=yes
14674 hardcode_into_libs
=yes
14675 # ldd complains unless libraries are executable
14676 postinstall_cmds
='chmod +x $lib'
14681 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14682 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14683 shlibpath_var
=LD_LIBRARY_PATH
14684 shlibpath_overrides_runpath
=yes
14685 if test "$with_gnu_ld" = yes; then
14693 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14694 soname_spec
='${libname}${release}${shared_ext}$major'
14695 shlibpath_var
=LD_LIBRARY_PATH
14696 case $host_vendor in
14698 shlibpath_overrides_runpath
=no
14700 export_dynamic_flag_spec
='${wl}-Blargedynsym'
14701 runpath_var
=LD_RUN_PATH
14709 shlibpath_overrides_runpath
=no
14710 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
14716 if test -d /usr
/nec
;then
14718 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14719 soname_spec
='$libname${shared_ext}.$major'
14720 shlibpath_var
=LD_LIBRARY_PATH
14724 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
14725 version_type
=freebsd
-elf
14728 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14729 soname_spec
='${libname}${release}${shared_ext}$major'
14730 shlibpath_var
=LD_LIBRARY_PATH
14731 hardcode_into_libs
=yes
14732 if test "$with_gnu_ld" = yes; then
14733 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14734 shlibpath_overrides_runpath
=no
14736 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
14737 shlibpath_overrides_runpath
=yes
14740 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
14744 sys_lib_dlsearch_path_spec
='/usr/lib'
14749 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14750 soname_spec
='${libname}${release}${shared_ext}$major'
14751 shlibpath_var
=LD_LIBRARY_PATH
14758 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14759 echo "${ECHO_T}$dynamic_linker" >&6; }
14760 test "$dynamic_linker" = no
&& can_build_shared
=no
14762 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14763 echo $ECHO_N "(cached) $ECHO_C" >&6
14765 lt_cv_sys_lib_search_path_spec
="$sys_lib_search_path_spec"
14768 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
14769 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14770 echo $ECHO_N "(cached) $ECHO_C" >&6
14772 lt_cv_sys_lib_dlsearch_path_spec
="$sys_lib_dlsearch_path_spec"
14775 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
14777 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
14778 if test "$GCC" = yes; then
14779 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14782 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14783 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
14784 hardcode_action_CXX
=
14785 if test -n "$hardcode_libdir_flag_spec_CXX" || \
14786 test -n "$runpath_var_CXX" || \
14787 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14789 # We can hardcode non-existant directories.
14790 if test "$hardcode_direct_CXX" != no
&&
14791 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14792 # have to relink, otherwise we might link with an installed library
14793 # when we should be linking with a yet-to-be-installed one
14794 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14795 test "$hardcode_minus_L_CXX" != no
; then
14796 # Linking always hardcodes the temporary library directory.
14797 hardcode_action_CXX
=relink
14799 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14800 hardcode_action_CXX
=immediate
14803 # We cannot hardcode anything, or else we can only hardcode existing
14805 hardcode_action_CXX
=unsupported
14807 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14808 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
14810 if test "$hardcode_action_CXX" = relink
; then
14811 # Fast installation is not supported
14812 enable_fast_install
=no
14813 elif test "$shlibpath_overrides_runpath" = yes ||
14814 test "$enable_shared" = no
; then
14815 # Fast installation is not necessary
14816 enable_fast_install
=needless
14820 # The else clause should only fire when bootstrapping the
14821 # libtool distribution, otherwise you forgot to ship ltmain.sh
14822 # with your package, and you will get complaints that there are
14823 # no rules to generate ltmain.sh.
14824 if test -f "$ltmain"; then
14825 # See if we are running on zsh, and set the options which allow our commands through
14826 # without removal of \ escapes.
14827 if test -n "${ZSH_VERSION+set}" ; then
14828 setopt NO_GLOB_SUBST
14830 # Now quote all the things that may contain metacharacters while being
14831 # careful not to overquote the AC_SUBSTed values. We take copies of the
14832 # variables and quote the copies for generation of the libtool script.
14833 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14835 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14836 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14837 deplibs_check_method reload_flag reload_cmds need_locks \
14838 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14839 lt_cv_sys_global_symbol_to_c_name_address \
14840 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14841 old_postinstall_cmds old_postuninstall_cmds \
14845 lt_prog_compiler_wl_CXX \
14846 lt_prog_compiler_pic_CXX \
14847 lt_prog_compiler_static_CXX \
14848 lt_prog_compiler_no_builtin_flag_CXX \
14849 export_dynamic_flag_spec_CXX \
14850 thread_safe_flag_spec_CXX \
14851 whole_archive_flag_spec_CXX \
14852 enable_shared_with_static_runtimes_CXX \
14853 old_archive_cmds_CXX \
14854 old_archive_from_new_cmds_CXX \
14855 predep_objects_CXX \
14856 postdep_objects_CXX \
14859 compiler_lib_search_path_CXX \
14860 compiler_lib_search_dirs_CXX \
14862 archive_expsym_cmds_CXX \
14863 postinstall_cmds_CXX \
14864 postuninstall_cmds_CXX \
14865 old_archive_from_expsyms_cmds_CXX \
14866 allow_undefined_flag_CXX \
14867 no_undefined_flag_CXX \
14868 export_symbols_cmds_CXX \
14869 hardcode_libdir_flag_spec_CXX \
14870 hardcode_libdir_flag_spec_ld_CXX \
14871 hardcode_libdir_separator_CXX \
14872 hardcode_automatic_CXX \
14874 module_expsym_cmds_CXX \
14875 lt_cv_prog_compiler_c_o_CXX \
14876 fix_srcfile_path_CXX \
14877 exclude_expsyms_CXX \
14878 include_expsyms_CXX
; do
14881 old_archive_cmds_CXX
| \
14882 old_archive_from_new_cmds_CXX
| \
14883 archive_cmds_CXX
| \
14884 archive_expsym_cmds_CXX
| \
14885 module_cmds_CXX
| \
14886 module_expsym_cmds_CXX
| \
14887 old_archive_from_expsyms_cmds_CXX
| \
14888 export_symbols_cmds_CXX
| \
14889 extract_expsyms_cmds
| reload_cmds
| finish_cmds
| \
14890 postinstall_cmds
| postuninstall_cmds
| \
14891 old_postinstall_cmds
| old_postuninstall_cmds
| \
14892 sys_lib_search_path_spec
| sys_lib_dlsearch_path_spec
)
14893 # Double-quote double-evaled strings.
14894 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14897 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14903 *'\$0 --fallback-echo"')
14904 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14910 cat <<__EOF__ >> "$cfgfile"
14911 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14913 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14915 # Shell to use when invoking shell scripts.
14918 # Whether or not to build shared libraries.
14919 build_libtool_libs=$enable_shared
14921 # Whether or not to build static libraries.
14922 build_old_libs=$enable_static
14924 # Whether or not to add -lc for building shared libraries.
14925 build_libtool_need_lc=$archive_cmds_need_lc_CXX
14927 # Whether or not to disallow shared libs when runtime libs are static
14928 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14930 # Whether or not to optimize for fast installation.
14931 fast_install=$enable_fast_install
14934 host_alias=$host_alias
14938 # The build system.
14939 build_alias=$build_alias
14943 # An echo program that does not interpret backslashes.
14948 AR_FLAGS=$lt_AR_FLAGS
14953 # LTCC compiler flags.
14954 LTCFLAGS=$lt_LTCFLAGS
14956 # A language-specific compiler.
14957 CC=$lt_compiler_CXX
14959 # Is the compiler the GNU C compiler?
14965 # The linker used to build libraries.
14968 # Whether we need hard or soft links.
14971 # A BSD-compatible nm program.
14974 # A symbol stripping program
14977 # Used to examine libraries when file_magic_cmd begins "file"
14978 MAGIC_CMD=$MAGIC_CMD
14980 # Used on cygwin: DLL creation program.
14983 # Used on cygwin: object dumper.
14986 # Used on cygwin: assembler.
14989 # The name of the directory that contains temporary libtool files.
14992 # How to create reloadable object files.
14993 reload_flag=$lt_reload_flag
14994 reload_cmds=$lt_reload_cmds
14996 # How to pass a linker flag through the compiler.
14997 wl=$lt_lt_prog_compiler_wl_CXX
14999 # Object file suffix (normally "o").
15000 objext="$ac_objext"
15002 # Old archive suffix (normally "a").
15005 # Shared library suffix (normally ".so").
15006 shrext_cmds='$shrext_cmds'
15008 # Executable file suffix (normally "").
15011 # Additional compiler flags for building library objects.
15012 pic_flag=$lt_lt_prog_compiler_pic_CXX
15015 # What is the maximum length of a command?
15016 max_cmd_len=$lt_cv_sys_max_cmd_len
15018 # Does compiler simultaneously support -c and -o options?
15019 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
15021 # Must we lock files when doing compilation?
15022 need_locks=$lt_need_locks
15024 # Do we need the lib prefix for modules?
15025 need_lib_prefix=$need_lib_prefix
15027 # Do we need a version for libraries?
15028 need_version=$need_version
15030 # Whether dlopen is supported.
15031 dlopen_support=$enable_dlopen
15033 # Whether dlopen of programs is supported.
15034 dlopen_self=$enable_dlopen_self
15036 # Whether dlopen of statically linked programs is supported.
15037 dlopen_self_static=$enable_dlopen_self_static
15039 # Compiler flag to prevent dynamic linking.
15040 link_static_flag=$lt_lt_prog_compiler_static_CXX
15042 # Compiler flag to turn off builtin functions.
15043 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
15045 # Compiler flag to allow reflexive dlopens.
15046 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
15048 # Compiler flag to generate shared objects directly from archives.
15049 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
15051 # Compiler flag to generate thread-safe objects.
15052 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
15054 # Library versioning type.
15055 version_type=$version_type
15057 # Format of library name prefix.
15058 libname_spec=$lt_libname_spec
15060 # List of archive names. First name is the real one, the rest are links.
15061 # The last name is the one that the linker finds with -lNAME.
15062 library_names_spec=$lt_library_names_spec
15064 # The coded name of the library, if different from the real name.
15065 soname_spec=$lt_soname_spec
15067 # Commands used to build and install an old-style archive.
15069 old_archive_cmds=$lt_old_archive_cmds_CXX
15070 old_postinstall_cmds=$lt_old_postinstall_cmds
15071 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15073 # Create an old-style archive from a shared archive.
15074 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
15076 # Create a temporary old-style archive to link instead of a shared archive.
15077 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
15079 # Commands used to build and install a shared archive.
15080 archive_cmds=$lt_archive_cmds_CXX
15081 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
15082 postinstall_cmds=$lt_postinstall_cmds
15083 postuninstall_cmds=$lt_postuninstall_cmds
15085 # Commands used to build a loadable module (assumed same as above if empty)
15086 module_cmds=$lt_module_cmds_CXX
15087 module_expsym_cmds=$lt_module_expsym_cmds_CXX
15089 # Commands to strip libraries.
15090 old_striplib=$lt_old_striplib
15091 striplib=$lt_striplib
15093 # Dependencies to place before the objects being linked to create a
15095 predep_objects=$lt_predep_objects_CXX
15097 # Dependencies to place after the objects being linked to create a
15099 postdep_objects=$lt_postdep_objects_CXX
15101 # Dependencies to place before the objects being linked to create a
15103 predeps=$lt_predeps_CXX
15105 # Dependencies to place after the objects being linked to create a
15107 postdeps=$lt_postdeps_CXX
15109 # The directories searched by this compiler when creating a shared
15111 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
15113 # The library search path used internally by the compiler when linking
15114 # a shared library.
15115 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
15117 # Method to check whether dependent libraries are shared objects.
15118 deplibs_check_method=$lt_deplibs_check_method
15120 # Command to use when deplibs_check_method == file_magic.
15121 file_magic_cmd=$lt_file_magic_cmd
15123 # Flag that allows shared libraries with undefined symbols to be built.
15124 allow_undefined_flag=$lt_allow_undefined_flag_CXX
15126 # Flag that forces no undefined symbols.
15127 no_undefined_flag=$lt_no_undefined_flag_CXX
15129 # Commands used to finish a libtool library installation in a directory.
15130 finish_cmds=$lt_finish_cmds
15132 # Same as above, but a single script fragment to be evaled but not shown.
15133 finish_eval=$lt_finish_eval
15135 # Take the output of nm and produce a listing of raw symbols and C names.
15136 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15138 # Transform the output of nm in a proper C declaration
15139 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15141 # Transform the output of nm in a C name address pair
15142 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15144 # This is the shared library runtime path variable.
15145 runpath_var=$runpath_var
15147 # This is the shared library path variable.
15148 shlibpath_var=$shlibpath_var
15150 # Is shlibpath searched before the hard-coded library search path?
15151 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15153 # How to hardcode a shared library path into an executable.
15154 hardcode_action=$hardcode_action_CXX
15156 # Whether we should hardcode library paths into libraries.
15157 hardcode_into_libs=$hardcode_into_libs
15159 # Flag to hardcode \$libdir into a binary during linking.
15160 # This must work even if \$libdir does not exist.
15161 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
15163 # If ld is used when linking, flag to hardcode \$libdir into
15164 # a binary during linking. This must work even if \$libdir does
15166 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
15168 # Whether we need a single -rpath flag with a separated argument.
15169 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
15171 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15172 # resulting binary.
15173 hardcode_direct=$hardcode_direct_CXX
15175 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15176 # resulting binary.
15177 hardcode_minus_L=$hardcode_minus_L_CXX
15179 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15180 # the resulting binary.
15181 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
15183 # Set to yes if building a shared library automatically hardcodes DIR into the library
15184 # and all subsequent libraries and executables linked against it.
15185 hardcode_automatic=$hardcode_automatic_CXX
15187 # Variables whose values should be saved in libtool wrapper scripts and
15188 # restored at relink time.
15189 variables_saved_for_relink="$variables_saved_for_relink"
15191 # Whether libtool must link a program against all its dependency libraries.
15192 link_all_deplibs=$link_all_deplibs_CXX
15194 # Compile-time system search path for libraries
15195 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15197 # Run-time system search path for libraries
15198 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15200 # Fix the shell variable \$srcfile for the compiler.
15201 fix_srcfile_path=$lt_fix_srcfile_path
15203 # Set to yes if exported symbols are required.
15204 always_export_symbols=$always_export_symbols_CXX
15206 # The commands to list exported symbols.
15207 export_symbols_cmds=$lt_export_symbols_cmds_CXX
15209 # The commands to extract the exported symbol list from a shared archive.
15210 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15212 # Symbols that should not be listed in the preloaded symbols.
15213 exclude_expsyms=$lt_exclude_expsyms_CXX
15215 # Symbols that must always be exported.
15216 include_expsyms=$lt_include_expsyms_CXX
15218 # ### END LIBTOOL TAG CONFIG: $tagname
15224 # If there is no Makefile yet, we rely on a make rule to execute
15225 # `config.status --recheck' to rerun these tests and create the
15226 # libtool script then.
15227 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15228 if test -f "$ltmain_in"; then
15229 test -f Makefile
&& make "$ltmain"
15235 ac_cpp
='$CPP $CPPFLAGS'
15236 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15237 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15238 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
15244 with_gnu_ldcxx
=$with_gnu_ld
15245 with_gnu_ld
=$lt_save_with_gnu_ld
15246 lt_cv_path_LDCXX
=$lt_cv_path_LD
15247 lt_cv_path_LD
=$lt_save_path_LD
15248 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
15249 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
15257 if test -n "$F77" && test "X$F77" != "Xno"; then
15260 ac_compile
='$F77 -c $FFLAGS conftest.$ac_ext >&5'
15261 ac_link
='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15262 ac_compiler_gnu
=$ac_cv_f77_compiler_gnu
15265 archive_cmds_need_lc_F77
=no
15266 allow_undefined_flag_F77
=
15267 always_export_symbols_F77
=no
15268 archive_expsym_cmds_F77
=
15269 export_dynamic_flag_spec_F77
=
15270 hardcode_direct_F77
=no
15271 hardcode_libdir_flag_spec_F77
=
15272 hardcode_libdir_flag_spec_ld_F77
=
15273 hardcode_libdir_separator_F77
=
15274 hardcode_minus_L_F77
=no
15275 hardcode_automatic_F77
=no
15277 module_expsym_cmds_F77
=
15278 link_all_deplibs_F77
=unknown
15279 old_archive_cmds_F77
=$old_archive_cmds
15280 no_undefined_flag_F77
=
15281 whole_archive_flag_spec_F77
=
15282 enable_shared_with_static_runtimes_F77
=no
15284 # Source file extension for f77 test sources.
15287 # Object file extension for compiled f77 test sources.
15291 # Code to be used in simple compile tests
15292 lt_simple_compile_test_code
="\
15298 # Code to be used in simple link tests
15299 lt_simple_link_test_code
="\
15304 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15306 # If no C compiler was specified, use CC.
15309 # If no C compiler flags were specified, use CFLAGS.
15310 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
15312 # Allow CC to be a program name with arguments.
15316 # save warnings/boilerplate of simple test code
15317 ac_outfile
=conftest.
$ac_objext
15318 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
15319 eval "$ac_compile" 2>&1 >/dev
/null
| $SED '/^$/d; /^ *+/d' >conftest.err
15320 _lt_compiler_boilerplate
=`cat conftest.err`
15323 ac_outfile
=conftest.
$ac_objext
15324 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
15325 eval "$ac_link" 2>&1 >/dev
/null
| $SED '/^$/d; /^ *+/d' >conftest.err
15326 _lt_linker_boilerplate
=`cat conftest.err`
15330 # Allow CC to be a program name with arguments.
15335 for cc_temp
in $compiler""; do
15337 compile
| *[\\/]compile
| ccache
| *[\\/]ccache
) ;;
15338 distcc
| *[\\/]distcc
| purify
| *[\\/]purify
) ;;
15343 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15346 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
15347 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
15348 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
15349 echo "${ECHO_T}$can_build_shared" >&6; }
15351 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
15352 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
15353 test "$can_build_shared" = "no" && enable_shared
=no
15355 # On AIX, shared libraries and static libraries use the same namespace, and
15356 # are all built from PIC.
15359 test "$enable_shared" = yes && enable_static
=no
15360 if test -n "$RANLIB"; then
15361 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
15362 postinstall_cmds
='$RANLIB $lib'
15366 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
15367 test "$enable_shared" = yes && enable_static
=no
15371 { echo "$as_me:$LINENO: result: $enable_shared" >&5
15372 echo "${ECHO_T}$enable_shared" >&6; }
15374 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
15375 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
15376 # Make sure either enable_shared or enable_static is yes.
15377 test "$enable_shared" = yes || enable_static
=yes
15378 { echo "$as_me:$LINENO: result: $enable_static" >&5
15379 echo "${ECHO_T}$enable_static" >&6; }
15384 lt_prog_compiler_wl_F77
=
15385 lt_prog_compiler_pic_F77
=
15386 lt_prog_compiler_static_F77
=
15388 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15389 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
15391 if test "$GCC" = yes; then
15392 lt_prog_compiler_wl_F77
='-Wl,'
15393 lt_prog_compiler_static_F77
='-static'
15397 # All AIX code is PIC.
15398 if test "$host_cpu" = ia64
; then
15399 # AIX 5 now supports IA64 processor
15400 lt_prog_compiler_static_F77
='-Bstatic'
15405 # FIXME: we need at least 68020 code to build shared libraries, but
15406 # adding the `-m68020' flag to GCC prevents building anything better,
15408 lt_prog_compiler_pic_F77
='-m68020 -resident32 -malways-restore-a4'
15411 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
15412 # PIC is the default for these OSes.
15415 mingw
* | cygwin
* | pw32
* | os2
*)
15416 # This hack is so that the source file can tell whether it is being
15417 # built for inclusion in a dll (and should export symbols for example).
15418 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15419 # (--disable-auto-import) libraries
15420 lt_prog_compiler_pic_F77
='-DDLL_EXPORT'
15423 darwin
* | rhapsody
*)
15424 # PIC is the default on this platform
15425 # Common symbols not allowed in MH_DYLIB files
15426 lt_prog_compiler_pic_F77
='-fno-common'
15430 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15431 # Instead, we relocate shared libraries at runtime.
15435 # Just because we use GCC doesn't mean we suddenly get shared libraries
15436 # on systems that don't support them.
15437 lt_prog_compiler_can_build_shared_F77
=no
15442 if test -d /usr
/nec
; then
15443 lt_prog_compiler_pic_F77
=-Kconform_pic
15448 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15449 # not for PA HP-UX.
15455 lt_prog_compiler_pic_F77
='-fPIC'
15461 lt_prog_compiler_pic_F77
='-fPIC'
15465 # PORTME Check for flag to pass linker flags through the system compiler.
15468 lt_prog_compiler_wl_F77
='-Wl,'
15469 if test "$host_cpu" = ia64
; then
15470 # AIX 5 now supports IA64 processor
15471 lt_prog_compiler_static_F77
='-Bstatic'
15473 lt_prog_compiler_static_F77
='-bnso -bI:/lib/syscalls.exp'
15477 # PIC is the default on this platform
15478 # Common symbols not allowed in MH_DYLIB files
15479 case $cc_basename in
15481 lt_prog_compiler_pic_F77
='-qnocommon'
15482 lt_prog_compiler_wl_F77
='-Wl,'
15487 mingw
* | cygwin
* | pw32
* | os2
*)
15488 # This hack is so that the source file can tell whether it is being
15489 # built for inclusion in a dll (and should export symbols for example).
15490 lt_prog_compiler_pic_F77
='-DDLL_EXPORT'
15493 hpux9
* | hpux10
* | hpux11
*)
15494 lt_prog_compiler_wl_F77
='-Wl,'
15495 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15496 # not for PA HP-UX.
15502 lt_prog_compiler_pic_F77
='+Z'
15505 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15506 lt_prog_compiler_static_F77
='${wl}-a ${wl}archive'
15509 irix5
* | irix6
* | nonstopux
*)
15510 lt_prog_compiler_wl_F77
='-Wl,'
15511 # PIC (with -KPIC) is the default.
15512 lt_prog_compiler_static_F77
='-non_shared'
15516 lt_prog_compiler_pic_F77
='-KPIC'
15517 lt_prog_compiler_static_F77
='-Bstatic'
15520 linux
* | k
*bsd
*-gnu)
15521 case $cc_basename in
15523 lt_prog_compiler_wl_F77
='-Wl,'
15524 lt_prog_compiler_pic_F77
='-KPIC'
15525 lt_prog_compiler_static_F77
='-static'
15527 pgcc
* | pgf77
* | pgf90
* | pgf95
*)
15528 # Portland Group compilers (*not* the Pentium gcc compiler,
15529 # which looks to be a dead project)
15530 lt_prog_compiler_wl_F77
='-Wl,'
15531 lt_prog_compiler_pic_F77
='-fpic'
15532 lt_prog_compiler_static_F77
='-Bstatic'
15535 lt_prog_compiler_wl_F77
='-Wl,'
15536 # All Alpha code is PIC.
15537 lt_prog_compiler_static_F77
='-non_shared'
15540 case `$CC -V 2>&1 | sed 5q` in
15543 lt_prog_compiler_pic_F77
='-KPIC'
15544 lt_prog_compiler_static_F77
='-Bstatic'
15545 lt_prog_compiler_wl_F77
='-Wl,'
15548 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15549 lt_prog_compiler_pic_F77
='-KPIC'
15550 lt_prog_compiler_static_F77
='-Bstatic'
15551 lt_prog_compiler_wl_F77
=''
15558 osf3
* | osf4
* | osf5
*)
15559 lt_prog_compiler_wl_F77
='-Wl,'
15560 # All OSF/1 code is PIC.
15561 lt_prog_compiler_static_F77
='-non_shared'
15565 lt_prog_compiler_static_F77
='-non_shared'
15569 lt_prog_compiler_pic_F77
='-KPIC'
15570 lt_prog_compiler_static_F77
='-Bstatic'
15571 case $cc_basename in
15572 f77
* | f90
* | f95
*)
15573 lt_prog_compiler_wl_F77
='-Qoption ld ';;
15575 lt_prog_compiler_wl_F77
='-Wl,';;
15580 lt_prog_compiler_wl_F77
='-Qoption ld '
15581 lt_prog_compiler_pic_F77
='-PIC'
15582 lt_prog_compiler_static_F77
='-Bstatic'
15585 sysv4
| sysv4.2uw2
* | sysv4.3
*)
15586 lt_prog_compiler_wl_F77
='-Wl,'
15587 lt_prog_compiler_pic_F77
='-KPIC'
15588 lt_prog_compiler_static_F77
='-Bstatic'
15592 if test -d /usr
/nec
;then
15593 lt_prog_compiler_pic_F77
='-Kconform_pic'
15594 lt_prog_compiler_static_F77
='-Bstatic'
15598 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
15599 lt_prog_compiler_wl_F77
='-Wl,'
15600 lt_prog_compiler_pic_F77
='-KPIC'
15601 lt_prog_compiler_static_F77
='-Bstatic'
15605 lt_prog_compiler_wl_F77
='-Wl,'
15606 lt_prog_compiler_can_build_shared_F77
=no
15610 lt_prog_compiler_pic_F77
='-pic'
15611 lt_prog_compiler_static_F77
='-Bstatic'
15615 lt_prog_compiler_can_build_shared_F77
=no
15620 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
15621 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
15624 # Check to make sure the PIC flag actually works.
15626 if test -n "$lt_prog_compiler_pic_F77"; then
15628 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15629 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
15630 if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
15631 echo $ECHO_N "(cached) $ECHO_C" >&6
15633 lt_cv_prog_compiler_pic_works_F77
=no
15634 ac_outfile
=conftest.
$ac_objext
15635 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
15636 lt_compiler_flag
="$lt_prog_compiler_pic_F77"
15637 # Insert the option either (1) after the last *FLAGS variable, or
15638 # (2) before a word containing "conftest.", or (3) at the end.
15639 # Note that $ac_compile itself does not contain backslashes and begins
15640 # with a dollar sign (not a hyphen), so the echo should work correctly.
15641 # The option is referenced via a variable to avoid confusing sed.
15642 lt_compile
=`echo "$ac_compile" | $SED \
15643 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15644 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15645 -e 's:$: $lt_compiler_flag:'`
15646 (eval echo "\"\$as_me:15646: $lt_compile\"" >&5)
15647 (eval "$lt_compile" 2>conftest.err
)
15649 cat conftest.err
>&5
15650 echo "$as_me:15650: \$? = $ac_status" >&5
15651 if (exit $ac_status) && test -s "$ac_outfile"; then
15652 # The compiler can only warn and ignore the option if not recognized
15653 # So say no if there are warnings other than the usual output.
15654 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15655 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
15656 if test ! -s conftest.er2
|| diff conftest.exp conftest.er2
>/dev
/null
; then
15657 lt_cv_prog_compiler_pic_works_F77
=yes
15663 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
15664 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
15666 if test x
"$lt_cv_prog_compiler_pic_works_F77" = xyes
; then
15667 case $lt_prog_compiler_pic_F77 in
15669 *) lt_prog_compiler_pic_F77
=" $lt_prog_compiler_pic_F77" ;;
15672 lt_prog_compiler_pic_F77
=
15673 lt_prog_compiler_can_build_shared_F77
=no
15678 # For platforms which do not support PIC, -DPIC is meaningless:
15680 lt_prog_compiler_pic_F77
=
15683 lt_prog_compiler_pic_F77
="$lt_prog_compiler_pic_F77"
15688 # Check to make sure the static flag actually works.
15690 wl
=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_F77\"
15691 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15692 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15693 if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
15694 echo $ECHO_N "(cached) $ECHO_C" >&6
15696 lt_cv_prog_compiler_static_works_F77
=no
15697 save_LDFLAGS
="$LDFLAGS"
15698 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
15699 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
15700 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
15701 # The linker can only warn and ignore the option if not recognized
15702 # So say no if there are warnings
15703 if test -s conftest.err
; then
15704 # Append any errors to the config.log.
15705 cat conftest.err
1>&5
15706 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15707 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
15708 if diff conftest.exp conftest.er2
>/dev
/null
; then
15709 lt_cv_prog_compiler_static_works_F77
=yes
15712 lt_cv_prog_compiler_static_works_F77
=yes
15716 LDFLAGS
="$save_LDFLAGS"
15719 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
15720 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
15722 if test x
"$lt_cv_prog_compiler_static_works_F77" = xyes
; then
15725 lt_prog_compiler_static_F77
=
15729 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15730 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15731 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
15732 echo $ECHO_N "(cached) $ECHO_C" >&6
15734 lt_cv_prog_compiler_c_o_F77
=no
15735 $rm -r conftest
2>/dev
/null
15739 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
15741 lt_compiler_flag
="-o out/conftest2.$ac_objext"
15742 # Insert the option either (1) after the last *FLAGS variable, or
15743 # (2) before a word containing "conftest.", or (3) at the end.
15744 # Note that $ac_compile itself does not contain backslashes and begins
15745 # with a dollar sign (not a hyphen), so the echo should work correctly.
15746 lt_compile
=`echo "$ac_compile" | $SED \
15747 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15748 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15749 -e 's:$: $lt_compiler_flag:'`
15750 (eval echo "\"\$as_me:15750: $lt_compile\"" >&5)
15751 (eval "$lt_compile" 2>out
/conftest.err
)
15753 cat out
/conftest.err
>&5
15754 echo "$as_me:15754: \$? = $ac_status" >&5
15755 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
15757 # The compiler can only warn and ignore the option if not recognized
15758 # So say no if there are warnings
15759 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out
/conftest.exp
15760 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
15761 if test ! -s out
/conftest.er2
|| diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
15762 lt_cv_prog_compiler_c_o_F77
=yes
15767 # SGI C++ compiler will create directory out/ii_files/ for
15768 # template instantiation
15769 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
15770 $rm out
/* && rmdir out
15776 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15777 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
15780 hard_links
="nottested"
15781 if test "$lt_cv_prog_compiler_c_o_F77" = no
&& test "$need_locks" != no
; then
15782 # do not overwrite the value of need_locks provided by the user
15783 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15784 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15787 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
15789 ln conftest.a conftest.b
2>&5 || hard_links
=no
15790 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
15791 { echo "$as_me:$LINENO: result: $hard_links" >&5
15792 echo "${ECHO_T}$hard_links" >&6; }
15793 if test "$hard_links" = no
; then
15794 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15795 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15802 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15803 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15806 allow_undefined_flag_F77
=
15807 enable_shared_with_static_runtimes_F77
=no
15809 archive_expsym_cmds_F77
=
15810 old_archive_From_new_cmds_F77
=
15811 old_archive_from_expsyms_cmds_F77
=
15812 export_dynamic_flag_spec_F77
=
15813 whole_archive_flag_spec_F77
=
15814 thread_safe_flag_spec_F77
=
15815 hardcode_libdir_flag_spec_F77
=
15816 hardcode_libdir_flag_spec_ld_F77
=
15817 hardcode_libdir_separator_F77
=
15818 hardcode_direct_F77
=no
15819 hardcode_minus_L_F77
=no
15820 hardcode_shlibpath_var_F77
=unsupported
15821 link_all_deplibs_F77
=unknown
15822 hardcode_automatic_F77
=no
15824 module_expsym_cmds_F77
=
15825 always_export_symbols_F77
=no
15826 export_symbols_cmds_F77
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15827 # include_expsyms should be a list of space-separated symbols to be *always*
15828 # included in the symbol list
15829 include_expsyms_F77
=
15830 # exclude_expsyms can be an extended regexp of symbols to exclude
15831 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15832 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15833 # as well as any symbol that contains `d'.
15834 exclude_expsyms_F77
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15835 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15836 # platforms (ab)use it in PIC code, but their linkers get confused if
15837 # the symbol is explicitly referenced. Since portable code cannot
15838 # rely on this symbol name, it's probably fine to never include it in
15839 # preloaded symbol tables.
15840 # Exclude shared library initialization/finalization symbols.
15841 extract_expsyms_cmds
=
15842 # Just being paranoid about ensuring that cc_basename is set.
15843 for cc_temp
in $compiler""; do
15845 compile
| *[\\/]compile
| ccache
| *[\\/]ccache
) ;;
15846 distcc
| *[\\/]distcc
| purify
| *[\\/]purify
) ;;
15851 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15854 cygwin
* | mingw
* | pw32
*)
15855 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15856 # When not using gcc, we currently assume that we are using
15857 # Microsoft Visual C++.
15858 if test "$GCC" != yes; then
15863 # we just hope/assume this is gcc and not c89 (= MSVC++)
15872 if test "$with_gnu_ld" = yes; then
15873 # If archive_cmds runs LD, not CC, wlarc should be empty
15876 # Set some defaults for GNU ld with shared library support. These
15877 # are reset later if shared libraries are not supported. Putting them
15878 # here allows them to be overridden if necessary.
15879 runpath_var
=LD_RUN_PATH
15880 hardcode_libdir_flag_spec_F77
='${wl}--rpath ${wl}$libdir'
15881 export_dynamic_flag_spec_F77
='${wl}--export-dynamic'
15882 # ancient GNU ld didn't support --whole-archive et. al.
15883 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev
/null
; then
15884 whole_archive_flag_spec_F77
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15886 whole_archive_flag_spec_F77
=
15888 supports_anon_versioning
=no
15889 case `$LD -v 2>/dev/null` in
15890 *\
[01].
* | *\
2.
[0-9].
* | *\
2.10.
*) ;; # catch versions < 2.11
15891 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
15892 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
15893 *\
2.11.
*) ;; # other 2.11 versions
15894 *) supports_anon_versioning
=yes ;;
15897 # See if GNU ld supports shared libraries.
15900 # On AIX/PPC, the GNU linker is very broken
15901 if test "$host_cpu" != ia64
; then
15905 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15906 *** to be unable to reliably create shared libraries on AIX.
15907 *** Therefore, libtool is disabling shared libraries support. If you
15908 *** really care for shared libraries, you may want to modify your PATH
15909 *** so that a non-GNU linker is found, and then restart.
15916 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)'
15917 hardcode_libdir_flag_spec_F77
='-L$libdir'
15918 hardcode_minus_L_F77
=yes
15920 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15921 # that the semantics of dynamic libraries on AmigaOS, at least up
15922 # to version 4, is to share data among multiple programs linked
15923 # with the same dynamic library. Since this doesn't match the
15924 # behavior of shared libraries on other platforms, we can't use
15930 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev
/null
; then
15931 allow_undefined_flag_F77
=unsupported
15932 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15933 # support --undefined. This deserves some investigation. FIXME
15934 archive_cmds_F77
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15940 cygwin
* | mingw
* | pw32
*)
15941 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15942 # as there is no search path for DLLs.
15943 hardcode_libdir_flag_spec_F77
='-L$libdir'
15944 allow_undefined_flag_F77
=unsupported
15945 always_export_symbols_F77
=no
15946 enable_shared_with_static_runtimes_F77
=yes
15947 export_symbols_cmds_F77
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15949 if $LD --help 2>&1 | grep 'auto-import' > /dev
/null
; then
15950 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15951 # If the export-symbols file already is a .def file (1st line
15952 # is EXPORTS), use it as is; otherwise, prepend...
15953 archive_expsym_cmds_F77
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15954 cp $export_symbols $output_objdir/$soname.def;
15956 echo EXPORTS > $output_objdir/$soname.def;
15957 cat $export_symbols >> $output_objdir/$soname.def;
15959 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15966 hardcode_direct_F77
=no
15967 hardcode_shlibpath_var_F77
=no
15968 hardcode_libdir_flag_spec_F77
='${wl}-rpath,$libdir'
15969 export_dynamic_flag_spec_F77
='${wl}-E'
15970 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15971 # Instead, shared libraries are loaded at an image base (0x10000000 by
15972 # default) and relocated if they conflict, which is a slow very memory
15973 # consuming and fragmenting process. To avoid this, we pick a random,
15974 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15975 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15976 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'
15977 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'
15980 gnu
* | linux
* | k
*bsd
*-gnu)
15981 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev
/null
; then
15983 case $cc_basename,$host_cpu in
15984 pgcc
*) # Portland Group C compiler
15985 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'
15986 tmp_addflag
=' $pic_flag'
15988 pgf77
* | pgf90
* | pgf95
*) # Portland Group f77 and f90 compilers
15989 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'
15990 tmp_addflag
=' $pic_flag -Mnomain' ;;
15991 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
15992 tmp_addflag
=' -i_dynamic' ;;
15993 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
15994 tmp_addflag
=' -i_dynamic -nofor_main' ;;
15995 ifc
* | ifort
*) # Intel Fortran compiler
15996 tmp_addflag
=' -nofor_main' ;;
15998 case `$CC -V 2>&1 | sed 5q` in
15999 *Sun\ C
*) # Sun C 5.9
16000 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'
16001 tmp_sharedflag
='-G' ;;
16002 *Sun\ F
*) # Sun Fortran 8.3
16003 tmp_sharedflag
='-G' ;;
16005 tmp_sharedflag
='-shared' ;;
16007 archive_cmds_F77
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16009 if test $supports_anon_versioning = yes; then
16010 archive_expsym_cmds_F77
='$echo "{ global:" > $output_objdir/$libname.ver~
16011 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16012 $echo "local: *; };" >> $output_objdir/$libname.ver~
16013 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16015 link_all_deplibs_F77
=no
16021 netbsd
* | netbsdelf
*-gnu)
16022 if echo __ELF__
| $CC -E - | grep __ELF__
>/dev
/null
; then
16023 archive_cmds_F77
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16026 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16027 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16032 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev
/null
; then
16036 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16037 *** create shared libraries on Solaris systems. Therefore, libtool
16038 *** is disabling shared libraries support. We urge you to upgrade GNU
16039 *** binutils to release 2.9.1 or newer. Another option is to modify
16040 *** your PATH or compiler configuration so that the native linker is
16041 *** used, and then restart.
16044 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev
/null
; then
16045 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16046 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16052 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
16053 case `$LD -v 2>&1` in
16054 *\
[01].
* | *\
2.
[0-9].
* | *\
2.1[0-5].
*)
16058 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16059 *** reliably create shared libraries on SCO systems. Therefore, libtool
16060 *** is disabling shared libraries support. We urge you to upgrade GNU
16061 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16062 *** your PATH or compiler configuration so that the native linker is
16063 *** used, and then restart.
16068 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev
/null
; then
16069 hardcode_libdir_flag_spec_F77
='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16070 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16071 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16080 archive_cmds_F77
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16082 hardcode_direct_F77
=yes
16083 hardcode_shlibpath_var_F77
=no
16087 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev
/null
; then
16088 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16089 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16096 if test "$ld_shlibs_F77" = no
; then
16098 hardcode_libdir_flag_spec_F77
=
16099 export_dynamic_flag_spec_F77
=
16100 whole_archive_flag_spec_F77
=
16103 # PORTME fill in a description of your system's linker (not GNU ld)
16106 allow_undefined_flag_F77
=unsupported
16107 always_export_symbols_F77
=yes
16108 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'
16109 # Note: this linker hardcodes the directories in LIBPATH if there
16110 # are no directories specified by -L.
16111 hardcode_minus_L_F77
=yes
16112 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16113 # Neither direct hardcoding nor static linking is supported with a
16115 hardcode_direct_F77
=unsupported
16120 if test "$host_cpu" = ia64
; then
16121 # On IA64, the linker does run time linking by default, so we don't
16122 # have to do anything special.
16123 aix_use_runtimelinking
=no
16124 exp_sym_flag
='-Bexport'
16127 # If we're using GNU nm, then we don't want the "-C" option.
16128 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16129 if $NM -V 2>&1 | grep 'GNU' > /dev
/null
; then
16130 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'
16132 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'
16134 aix_use_runtimelinking
=no
16136 # Test if we are trying to use run time linking or normal
16137 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16138 # need to do runtime linking.
16139 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
16140 for ld_flag
in $LDFLAGS; do
16141 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16142 aix_use_runtimelinking
=yes
16149 exp_sym_flag
='-bexport'
16150 no_entry_flag
='-bnoentry'
16153 # When large executables or shared objects are built, AIX ld can
16154 # have problems creating the table of contents. If linking a library
16155 # or program results in "error TOC overflow" add -mminimal-toc to
16156 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16157 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16159 archive_cmds_F77
=''
16160 hardcode_direct_F77
=yes
16161 hardcode_libdir_separator_F77
=':'
16162 link_all_deplibs_F77
=yes
16164 if test "$GCC" = yes; then
16165 case $host_os in aix4.
[012]|aix4.
[012].
*)
16166 # We only want to do this on AIX 4.2 and lower, the check
16167 # below for broken collect2 doesn't work under 4.3+
16168 collect2name
=`${CC} -print-prog-name=collect2`
16169 if test -f "$collect2name" && \
16170 strings "$collect2name" | grep resolve_lib_name
>/dev
/null
16172 # We have reworked collect2
16175 # We have old collect2
16176 hardcode_direct_F77
=unsupported
16177 # It fails to find uninstalled libraries when the uninstalled
16178 # path is not listed in the libpath. Setting hardcode_minus_L
16179 # to unsupported forces relinking
16180 hardcode_minus_L_F77
=yes
16181 hardcode_libdir_flag_spec_F77
='-L$libdir'
16182 hardcode_libdir_separator_F77
=
16186 shared_flag
='-shared'
16187 if test "$aix_use_runtimelinking" = yes; then
16188 shared_flag
="$shared_flag "'${wl}-G'
16192 if test "$host_cpu" = ia64
; then
16193 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16194 # chokes on -Wl,-G. The following line is correct:
16197 if test "$aix_use_runtimelinking" = yes; then
16198 shared_flag
='${wl}-G'
16200 shared_flag
='${wl}-bM:SRE'
16205 # It seems that -bexpall does not export symbols beginning with
16206 # underscore (_), so it is better to generate a list of symbols to export.
16207 always_export_symbols_F77
=yes
16208 if test "$aix_use_runtimelinking" = yes; then
16209 # Warning - without using the other runtime loading flags (-brtl),
16210 # -berok will link without error, but may produce a broken library.
16211 allow_undefined_flag_F77
='-berok'
16212 # Determine the default libpath from the value encoded in an empty executable.
16213 cat >conftest.
$ac_ext <<_ACEOF
16218 rm -f conftest.
$ac_objext conftest
$ac_exeext
16219 if { (ac_try
="$ac_link"
16220 case "(($ac_try" in
16221 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
16222 *) ac_try_echo=$ac_try;;
16224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16225 (eval "$ac_link") 2>conftest.er1
16227 grep -v '^ *+' conftest.er1 >conftest.err
16229 cat conftest.err >&5
16230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16231 (exit $ac_status); } && {
16232 test -z "$ac_f77_werror_flag" ||
16233 test ! -s conftest.err
16234 } && test -s conftest$ac_exeext &&
16235 $as_test_x conftest$ac_exeext; then
16237 lt_aix_libpath_sed='
16238 /Import File Strings/,/^$/ {
16244 aix_libpath=`dump
-H conftest
$ac_exeext 2>/dev
/null
| $SED -n -e "$lt_aix_libpath_sed"`
16245 # Check for a 64-bit object if we didn't find anything.
16246 if test -z "$aix_libpath"; then
16247 aix_libpath=`dump
-HX64 conftest
$ac_exeext 2>/dev
/null
| $SED -n -e "$lt_aix_libpath_sed"`
16250 echo "$as_me: failed program was:" >&5
16251 sed 's/^/| /' conftest.$ac_ext >&5
16256 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16257 conftest$ac_exeext conftest.$ac_ext
16258 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16260 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16261 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"
16263 if test "$host_cpu" = ia64; then
16264 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
16265 allow_undefined_flag_F77="-z nodefs"
16266 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"
16268 # Determine the default libpath from the value encoded in an empty executable.
16269 cat >conftest.$ac_ext <<_ACEOF
16274 rm -f conftest.$ac_objext conftest$ac_exeext
16275 if { (ac_try="$ac_link"
16276 case "(($ac_try" in
16277 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
16278 *) ac_try_echo
=$ac_try;;
16280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16281 (eval "$ac_link") 2>conftest.er1
16283 grep -v '^ *+' conftest.er1
>conftest.err
16285 cat conftest.err
>&5
16286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16287 (exit $ac_status); } && {
16288 test -z "$ac_f77_werror_flag" ||
16289 test ! -s conftest.err
16290 } && test -s conftest
$ac_exeext &&
16291 $as_test_x conftest
$ac_exeext; then
16293 lt_aix_libpath_sed
='
16294 /Import File Strings/,/^$/ {
16300 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16301 # Check for a 64-bit object if we didn't find anything.
16302 if test -z "$aix_libpath"; then
16303 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16306 echo "$as_me: failed program was:" >&5
16307 sed 's/^/| /' conftest.
$ac_ext >&5
16312 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16313 conftest
$ac_exeext conftest.
$ac_ext
16314 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
16316 hardcode_libdir_flag_spec_F77
='${wl}-blibpath:$libdir:'"$aix_libpath"
16317 # Warning - without using the other run time loading flags,
16318 # -berok will link without error, but may produce a broken library.
16319 no_undefined_flag_F77
=' ${wl}-bernotok'
16320 allow_undefined_flag_F77
=' ${wl}-berok'
16321 # Exported symbols can be pulled into shared objects from archives
16322 whole_archive_flag_spec_F77
='$convenience'
16323 archive_cmds_need_lc_F77
=yes
16324 # This is similar to how AIX traditionally builds its shared libraries.
16325 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'
16331 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)'
16332 hardcode_libdir_flag_spec_F77
='-L$libdir'
16333 hardcode_minus_L_F77
=yes
16334 # see comment about different semantics on the GNU ld section
16339 export_dynamic_flag_spec_F77
=-rdynamic
16342 cygwin
* | mingw
* | pw32
*)
16343 # When not using gcc, we currently assume that we are using
16344 # Microsoft Visual C++.
16345 # hardcode_libdir_flag_spec is actually meaningless, as there is
16346 # no search path for DLLs.
16347 hardcode_libdir_flag_spec_F77
=' '
16348 allow_undefined_flag_F77
=unsupported
16349 # Tell ltmain to make .lib files, not .a files.
16351 # Tell ltmain to make .dll files, not .so files.
16353 # FIXME: Setting linknames here is a bad hack.
16354 archive_cmds_F77
='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16355 # The linker will automatically build a .lib file if we build a DLL.
16356 old_archive_From_new_cmds_F77
='true'
16357 # FIXME: Should let the user specify the lib program.
16358 old_archive_cmds_F77
='lib -OUT:$oldlib$oldobjs$old_deplibs'
16359 fix_srcfile_path_F77
='`cygpath -w "$srcfile"`'
16360 enable_shared_with_static_runtimes_F77
=yes
16363 darwin
* | rhapsody
*)
16365 rhapsody
* | darwin1.
[012])
16366 allow_undefined_flag_F77
='${wl}-undefined ${wl}suppress'
16369 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16370 allow_undefined_flag_F77
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16372 case ${MACOSX_DEPLOYMENT_TARGET} in
16374 allow_undefined_flag_F77
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16377 allow_undefined_flag_F77
='${wl}-undefined ${wl}dynamic_lookup'
16383 archive_cmds_need_lc_F77
=no
16384 hardcode_direct_F77
=no
16385 hardcode_automatic_F77
=yes
16386 hardcode_shlibpath_var_F77
=unsupported
16387 whole_archive_flag_spec_F77
=''
16388 link_all_deplibs_F77
=yes
16389 if test "$GCC" = yes ; then
16390 output_verbose_link_cmd
='echo'
16391 archive_cmds_F77
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16392 module_cmds_F77
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16393 archive_expsym_cmds_F77
="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
16394 module_expsym_cmds_F77
="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
16396 case $cc_basename in
16398 output_verbose_link_cmd
='echo'
16399 archive_cmds_F77
='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
16400 module_cmds_F77
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16401 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16402 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}'
16403 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}'
16413 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16414 hardcode_libdir_flag_spec_F77
='-L$libdir'
16415 hardcode_shlibpath_var_F77
=no
16422 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16423 # support. Future versions do this automatically, but an explicit c++rt0.o
16424 # does not break anything, and helps significantly (at the cost of a little
16427 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16428 hardcode_libdir_flag_spec_F77
='-R$libdir'
16429 hardcode_direct_F77
=yes
16430 hardcode_shlibpath_var_F77
=no
16433 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16435 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16436 hardcode_direct_F77
=yes
16437 hardcode_minus_L_F77
=yes
16438 hardcode_shlibpath_var_F77
=no
16441 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16442 freebsd
* | dragonfly
*)
16443 archive_cmds_F77
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16444 hardcode_libdir_flag_spec_F77
='-R$libdir'
16445 hardcode_direct_F77
=yes
16446 hardcode_shlibpath_var_F77
=no
16450 if test "$GCC" = yes; then
16451 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'
16453 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'
16455 hardcode_libdir_flag_spec_F77
='${wl}+b ${wl}$libdir'
16456 hardcode_libdir_separator_F77
=:
16457 hardcode_direct_F77
=yes
16459 # hardcode_minus_L: Not really in the search PATH,
16460 # but as the default location of the library.
16461 hardcode_minus_L_F77
=yes
16462 export_dynamic_flag_spec_F77
='${wl}-E'
16466 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
16467 archive_cmds_F77
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16469 archive_cmds_F77
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16471 if test "$with_gnu_ld" = no
; then
16472 hardcode_libdir_flag_spec_F77
='${wl}+b ${wl}$libdir'
16473 hardcode_libdir_separator_F77
=:
16475 hardcode_direct_F77
=yes
16476 export_dynamic_flag_spec_F77
='${wl}-E'
16478 # hardcode_minus_L: Not really in the search PATH,
16479 # but as the default location of the library.
16480 hardcode_minus_L_F77
=yes
16485 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
16488 archive_cmds_F77
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16491 archive_cmds_F77
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16494 archive_cmds_F77
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16500 archive_cmds_F77
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16503 archive_cmds_F77
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16506 archive_cmds_F77
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16510 if test "$with_gnu_ld" = no
; then
16511 hardcode_libdir_flag_spec_F77
='${wl}+b ${wl}$libdir'
16512 hardcode_libdir_separator_F77
=:
16516 hardcode_libdir_flag_spec_ld_F77
='+b $libdir'
16517 hardcode_direct_F77
=no
16518 hardcode_shlibpath_var_F77
=no
16521 hardcode_direct_F77
=yes
16522 export_dynamic_flag_spec_F77
='${wl}-E'
16524 # hardcode_minus_L: Not really in the search PATH,
16525 # but as the default location of the library.
16526 hardcode_minus_L_F77
=yes
16532 irix5
* | irix6
* | nonstopux
*)
16533 if test "$GCC" = yes; then
16534 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'
16536 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'
16537 hardcode_libdir_flag_spec_ld_F77
='-rpath $libdir'
16539 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
16540 hardcode_libdir_separator_F77
=:
16541 link_all_deplibs_F77
=yes
16544 netbsd
* | netbsdelf
*-gnu)
16545 if echo __ELF__
| $CC -E - | grep __ELF__
>/dev
/null
; then
16546 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16548 archive_cmds_F77
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16550 hardcode_libdir_flag_spec_F77
='-R$libdir'
16551 hardcode_direct_F77
=yes
16552 hardcode_shlibpath_var_F77
=no
16556 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16557 hardcode_direct_F77
=yes
16558 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
16559 hardcode_libdir_separator_F77
=:
16560 hardcode_shlibpath_var_F77
=no
16564 if test -f /usr
/libexec
/ld.so
; then
16565 hardcode_direct_F77
=yes
16566 hardcode_shlibpath_var_F77
=no
16567 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16568 archive_cmds_F77
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16569 archive_expsym_cmds_F77
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16570 hardcode_libdir_flag_spec_F77
='${wl}-rpath,$libdir'
16571 export_dynamic_flag_spec_F77
='${wl}-E'
16574 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
16575 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16576 hardcode_libdir_flag_spec_F77
='-R$libdir'
16579 archive_cmds_F77
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16580 hardcode_libdir_flag_spec_F77
='${wl}-rpath,$libdir'
16590 hardcode_libdir_flag_spec_F77
='-L$libdir'
16591 hardcode_minus_L_F77
=yes
16592 allow_undefined_flag_F77
=unsupported
16593 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'
16594 old_archive_From_new_cmds_F77
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16598 if test "$GCC" = yes; then
16599 allow_undefined_flag_F77
=' ${wl}-expect_unresolved ${wl}\*'
16600 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'
16602 allow_undefined_flag_F77
=' -expect_unresolved \*'
16603 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'
16605 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
16606 hardcode_libdir_separator_F77
=:
16609 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
16610 if test "$GCC" = yes; then
16611 allow_undefined_flag_F77
=' ${wl}-expect_unresolved ${wl}\*'
16612 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'
16613 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
16615 allow_undefined_flag_F77
=' -expect_unresolved \*'
16616 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'
16617 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~
16618 $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'
16620 # Both c and cxx compiler support -rpath directly
16621 hardcode_libdir_flag_spec_F77
='-rpath $libdir'
16623 hardcode_libdir_separator_F77
=:
16627 no_undefined_flag_F77
=' -z text'
16628 if test "$GCC" = yes; then
16630 archive_cmds_F77
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16631 archive_expsym_cmds_F77
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16632 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16635 archive_cmds_F77
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16636 archive_expsym_cmds_F77
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16637 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16639 hardcode_libdir_flag_spec_F77
='-R$libdir'
16640 hardcode_shlibpath_var_F77
=no
16642 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
16644 # The compiler driver will combine and reorder linker options,
16645 # but understands `-z linker_flag'. GCC discards it without `$wl',
16646 # but is careful enough not to reorder.
16647 # Supported since Solaris 2.6 (maybe 2.5.1?)
16648 if test "$GCC" = yes; then
16649 whole_archive_flag_spec_F77
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16651 whole_archive_flag_spec_F77
='-z allextract$convenience -z defaultextract'
16655 link_all_deplibs_F77
=yes
16659 if test "x$host_vendor" = xsequent
; then
16660 # Use $CC to link under sequent, because it throws in some extra .o
16661 # files that make .init and .fini sections work.
16662 archive_cmds_F77
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16664 archive_cmds_F77
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16666 hardcode_libdir_flag_spec_F77
='-L$libdir'
16667 hardcode_direct_F77
=yes
16668 hardcode_minus_L_F77
=yes
16669 hardcode_shlibpath_var_F77
=no
16673 case $host_vendor in
16675 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16676 hardcode_direct_F77
=yes # is this really true???
16679 ## LD is ld it makes a PLAMLIB
16680 ## CC just makes a GrossModule.
16681 archive_cmds_F77
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16682 reload_cmds_F77
='$CC -r -o $output$reload_objs'
16683 hardcode_direct_F77
=no
16686 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16687 hardcode_direct_F77
=no
#Motorola manual says yes, but my tests say they lie
16690 runpath_var
='LD_RUN_PATH'
16691 hardcode_shlibpath_var_F77
=no
16695 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16696 hardcode_shlibpath_var_F77
=no
16697 export_dynamic_flag_spec_F77
='-Bexport'
16701 if test -d /usr
/nec
; then
16702 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16703 hardcode_shlibpath_var_F77
=no
16704 runpath_var
=LD_RUN_PATH
16705 hardcode_runpath_var
=yes
16710 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
16711 no_undefined_flag_F77
='${wl}-z,text'
16712 archive_cmds_need_lc_F77
=no
16713 hardcode_shlibpath_var_F77
=no
16714 runpath_var
='LD_RUN_PATH'
16716 if test "$GCC" = yes; then
16717 archive_cmds_F77
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16718 archive_expsym_cmds_F77
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16720 archive_cmds_F77
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16721 archive_expsym_cmds_F77
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16725 sysv5
* | sco3.2v5
* | sco5v6
*)
16726 # Note: We can NOT use -z defs as we might desire, because we do not
16727 # link with -lc, and that would cause any symbols used from libc to
16728 # always be unresolved, which means just about no library would
16729 # ever link correctly. If we're not using GNU ld we use -z text
16730 # though, which does catch some bad symbols but isn't as heavy-handed
16732 no_undefined_flag_F77
='${wl}-z,text'
16733 allow_undefined_flag_F77
='${wl}-z,nodefs'
16734 archive_cmds_need_lc_F77
=no
16735 hardcode_shlibpath_var_F77
=no
16736 hardcode_libdir_flag_spec_F77
='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16737 hardcode_libdir_separator_F77
=':'
16738 link_all_deplibs_F77
=yes
16739 export_dynamic_flag_spec_F77
='${wl}-Bexport'
16740 runpath_var
='LD_RUN_PATH'
16742 if test "$GCC" = yes; then
16743 archive_cmds_F77
='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16744 archive_expsym_cmds_F77
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16746 archive_cmds_F77
='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16747 archive_expsym_cmds_F77
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16752 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16753 hardcode_libdir_flag_spec_F77
='-L$libdir'
16754 hardcode_shlibpath_var_F77
=no
16763 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16764 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
16765 test "$ld_shlibs_F77" = no
&& can_build_shared
=no
16768 # Do we need to explicitly link libc?
16770 case "x$archive_cmds_need_lc_F77" in
16772 # Assume -lc should be added
16773 archive_cmds_need_lc_F77
=yes
16775 if test "$enable_shared" = yes && test "$GCC" = yes; then
16776 case $archive_cmds_F77 in
16778 # FIXME: we may have to deal with multi-command sequences.
16781 # Test whether the compiler implicitly links with -lc since on some
16782 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16783 # to ld, don't add -lc before -lgcc.
16784 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16785 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16787 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
16789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16790 (eval $ac_compile) 2>&5
16792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16793 (exit $ac_status); } 2>conftest.err
; then
16796 libobjs
=conftest.
$ac_objext
16798 wl
=$lt_prog_compiler_wl_F77
16799 pic_flag
=$lt_prog_compiler_pic_F77
16805 lt_save_allow_undefined_flag
=$allow_undefined_flag_F77
16806 allow_undefined_flag_F77
=
16807 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16808 (eval $archive_cmds_F77 2\
>\
&1 \
| grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
16810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16811 (exit $ac_status); }
16813 archive_cmds_need_lc_F77
=no
16815 archive_cmds_need_lc_F77
=yes
16817 allow_undefined_flag_F77
=$lt_save_allow_undefined_flag
16819 cat conftest.err
1>&5
16822 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16823 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
16830 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16831 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16832 library_names_spec
=
16833 libname_spec
='lib$name'
16837 postuninstall_cmds
=
16841 shlibpath_overrides_runpath
=unknown
16843 dynamic_linker
="$host_os ld.so"
16844 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
16846 need_lib_prefix
=unknown
16847 hardcode_into_libs
=no
16849 # when you set need_version to no, make sure it does not cause -set_version
16850 # flags to be left without arguments
16851 need_version
=unknown
16856 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
16857 shlibpath_var
=LIBPATH
16859 # AIX 3 has no versioning support, so we append a major version to the name.
16860 soname_spec
='${libname}${release}${shared_ext}$major'
16867 hardcode_into_libs
=yes
16868 if test "$host_cpu" = ia64
; then
16869 # AIX 5 supports IA64
16870 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16871 shlibpath_var
=LD_LIBRARY_PATH
16873 # With GCC up to 2.95.x, collect2 would create an import file
16874 # for dependence libraries. The import file would start with
16875 # the line `#! .'. This would cause the generated library to
16876 # depend on `.', always an invalid library. This was fixed in
16877 # development snapshots of GCC prior to 3.0.
16879 aix4
| aix4.
[01] | aix4.
[01].
*)
16880 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16882 echo '#endif'; } | ${CC} -E - | grep yes > /dev
/null
; then
16885 can_build_shared
=no
16889 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16890 # soname into executable. Probably we can add versioning support to
16891 # collect2, so additional links can be useful in future.
16892 if test "$aix_use_runtimelinking" = yes; then
16893 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16894 # instead of lib<name>.a to let people know that these are not
16895 # typical AIX shared libraries.
16896 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16898 # We preserve .a as extension for shared libraries through AIX4.2
16899 # and later when we are not doing run time linking.
16900 library_names_spec
='${libname}${release}.a $libname.a'
16901 soname_spec
='${libname}${release}${shared_ext}$major'
16903 shlibpath_var
=LIBPATH
16908 library_names_spec
='$libname.ixlibrary $libname.a'
16909 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16910 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'
16914 library_names_spec
='${libname}${shared_ext}'
16915 dynamic_linker
="$host_os ld.so"
16916 shlibpath_var
=LIBRARY_PATH
16922 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16923 soname_spec
='${libname}${release}${shared_ext}$major'
16924 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
16925 shlibpath_var
=LD_LIBRARY_PATH
16926 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16927 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
16928 # the default ld.so.conf also contains /usr/contrib/lib and
16929 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16930 # libtool to hard-code these into programs
16933 cygwin
* | mingw
* | pw32
*)
16934 version_type
=windows
16939 case $GCC,$host_os in
16940 yes,cygwin
* | yes,mingw
* | yes,pw32
*)
16941 library_names_spec
='$libname.dll.a'
16942 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16943 postinstall_cmds
='base_file=`basename \${file}`~
16944 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16945 dldir=$destdir/`dirname \$dlpath`~
16946 test -d \$dldir || mkdir -p \$dldir~
16947 $install_prog $dir/$dlname \$dldir/$dlname~
16948 chmod a+x \$dldir/$dlname'
16949 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16950 dlpath=$dir/\$dldll~
16952 shlibpath_overrides_runpath
=yes
16956 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16957 soname_spec
='`echo ${libname} | sed -e 's
/^lib
/cyg
/'``echo ${release} | $SED -e 's
/[.
]/-/g
'`${versuffix}${shared_ext}'
16958 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
16961 # MinGW DLLs use traditional 'lib' prefix
16962 soname_spec
='${libname}`echo ${release} | $SED -e 's
/[.
]/-/g
'`${versuffix}${shared_ext}'
16963 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16964 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev
/null
; then
16965 # It is most probably a Windows format PATH printed by
16966 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16967 # path with ; separators, and with drive letters. We can handle the
16968 # drive letters (cygwin fileutils understands them), so leave them,
16969 # especially as we might pass files found there to a mingw objdump,
16970 # which wouldn't understand a cygwinified path. Ahh.
16971 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16973 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16977 # pw32 DLLs use 'pw' prefix rather than 'lib'
16978 library_names_spec
='`echo ${libname} | sed -e 's
/^lib
/pw
/'``echo ${release} | $SED -e 's
/[.
]/-/g
'`${versuffix}${shared_ext}'
16984 library_names_spec
='${libname}`echo ${release} | $SED -e 's
/[.
]/-/g
'`${versuffix}${shared_ext} $libname.lib'
16987 dynamic_linker
='Win32 ld.exe'
16988 # FIXME: first we should search . and the directory the executable is in
16992 darwin
* | rhapsody
*)
16993 dynamic_linker
="$host_os dyld"
16994 version_type
=darwin
16997 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16998 soname_spec
='${libname}${release}${major}$shared_ext'
16999 shlibpath_overrides_runpath
=yes
17000 shlibpath_var
=DYLD_LIBRARY_PATH
17001 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
17003 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
17010 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17011 soname_spec
='${libname}${release}${shared_ext}$major'
17012 shlibpath_var
=LD_LIBRARY_PATH
17019 freebsd
* | dragonfly
*)
17020 # DragonFly does not have aout. When/if they implement a new
17021 # versioning mechanism, adjust this.
17022 if test -x /usr
/bin
/objformat
; then
17023 objformat
=`/usr/bin/objformat`
17026 freebsd
[123]*) objformat
=aout
;;
17027 *) objformat
=elf
;;
17030 version_type
=freebsd
-$objformat
17031 case $version_type in
17033 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17038 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17042 shlibpath_var
=LD_LIBRARY_PATH
17045 shlibpath_overrides_runpath
=yes
17047 freebsd3.
[01]* | freebsdelf3.
[01]*)
17048 shlibpath_overrides_runpath
=yes
17049 hardcode_into_libs
=yes
17051 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
17052 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
17053 shlibpath_overrides_runpath
=no
17054 hardcode_into_libs
=yes
17056 *) # from 4.6 on, and DragonFly
17057 shlibpath_overrides_runpath
=yes
17058 hardcode_into_libs
=yes
17067 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17068 soname_spec
='${libname}${release}${shared_ext}$major'
17069 shlibpath_var
=LD_LIBRARY_PATH
17070 hardcode_into_libs
=yes
17073 hpux9
* | hpux10
* | hpux11
*)
17074 # Give a soname corresponding to the major version so that dld.sl refuses to
17075 # link against other versions.
17082 hardcode_into_libs
=yes
17083 dynamic_linker
="$host_os dld.so"
17084 shlibpath_var
=LD_LIBRARY_PATH
17085 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
17086 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17087 soname_spec
='${libname}${release}${shared_ext}$major'
17088 if test "X$HPUX_IA64_MODE" = X32
; then
17089 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17091 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
17093 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
17097 hardcode_into_libs
=yes
17098 dynamic_linker
="$host_os dld.sl"
17099 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
17100 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
17101 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17102 soname_spec
='${libname}${release}${shared_ext}$major'
17103 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17104 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
17108 dynamic_linker
="$host_os dld.sl"
17109 shlibpath_var
=SHLIB_PATH
17110 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
17111 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17112 soname_spec
='${libname}${release}${shared_ext}$major'
17115 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17116 postinstall_cmds
='chmod 555 $lib'
17123 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17124 soname_spec
='${libname}${release}${shared_ext}$major'
17125 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
17126 shlibpath_var
=LD_LIBRARY_PATH
17127 shlibpath_overrides_runpath
=no
17128 hardcode_into_libs
=yes
17131 irix5
* | irix6
* | nonstopux
*)
17133 nonstopux
*) version_type
=nonstopux
;;
17135 if test "$lt_cv_prog_gnu_ld" = yes; then
17143 soname_spec
='${libname}${release}${shared_ext}$major'
17144 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17146 irix5
* | nonstopux
*)
17147 libsuff
= shlibsuff
=
17150 case $LD in # libtool.m4 will add one of these switches to LD
17151 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17152 libsuff
= shlibsuff
= libmagic
=32-bit;;
17153 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17154 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
17155 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17156 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
17157 *) libsuff
= shlibsuff
= libmagic
=never
-match;;
17161 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
17162 shlibpath_overrides_runpath
=no
17163 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17164 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
17165 hardcode_into_libs
=yes
17168 # No shared lib support for Linux oldld, aout, or coff.
17169 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
17173 # This must be Linux ELF.
17174 linux
* | k
*bsd
*-gnu)
17178 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17179 soname_spec
='${libname}${release}${shared_ext}$major'
17180 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17181 shlibpath_var
=LD_LIBRARY_PATH
17182 shlibpath_overrides_runpath
=no
17183 # This implies no fast_install, which is unacceptable.
17184 # Some rework will be needed to allow for fast_install
17185 # before this can be enabled.
17186 hardcode_into_libs
=yes
17188 # Append ld.so.conf contents to the search path
17189 if test -f /etc
/ld.so.conf
; then
17190 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' ' '`
17191 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
17194 # We used to test for /lib/ld.so.1 and disable shared libraries on
17195 # powerpc, because MkLinux only supported shared libraries with the
17196 # GNU dynamic linker. Since this was broken with cross compilers,
17197 # most powerpc-linux boxes support dynamic linking these days and
17198 # people can always --disable-shared, the test was removed, and we
17199 # assume the GNU/Linux dynamic linker is in use.
17200 dynamic_linker
='GNU/Linux ld.so'
17207 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17208 soname_spec
='${libname}${release}${shared_ext}$major'
17209 shlibpath_var
=LD_LIBRARY_PATH
17210 shlibpath_overrides_runpath
=no
17211 hardcode_into_libs
=yes
17212 dynamic_linker
='NetBSD ld.elf_so'
17219 if echo __ELF__
| $CC -E - | grep __ELF__
>/dev
/null
; then
17220 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17221 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17222 dynamic_linker
='NetBSD (a.out) ld.so'
17224 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17225 soname_spec
='${libname}${release}${shared_ext}$major'
17226 dynamic_linker
='NetBSD ld.elf_so'
17228 shlibpath_var
=LD_LIBRARY_PATH
17229 shlibpath_overrides_runpath
=yes
17230 hardcode_into_libs
=yes
17235 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17236 shlibpath_var
=LD_LIBRARY_PATH
17237 shlibpath_overrides_runpath
=yes
17244 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17245 soname_spec
='${libname}${release}${shared_ext}$major'
17246 shlibpath_var
=LD_LIBRARY_PATH
17247 shlibpath_overrides_runpath
=yes
17252 sys_lib_dlsearch_path_spec
="/usr/lib"
17254 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17256 openbsd3.3
| openbsd3.3.
*) need_version
=yes ;;
17257 *) need_version
=no
;;
17259 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17260 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17261 shlibpath_var
=LD_LIBRARY_PATH
17262 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17264 openbsd2.
[89] | openbsd2.
[89].
*)
17265 shlibpath_overrides_runpath
=no
17268 shlibpath_overrides_runpath
=yes
17272 shlibpath_overrides_runpath
=yes
17277 libname_spec
='$name'
17280 library_names_spec
='$libname${shared_ext} $libname.a'
17281 dynamic_linker
='OS/2 ld.exe'
17282 shlibpath_var
=LIBPATH
17285 osf3
* | osf4
* | osf5
*)
17289 soname_spec
='${libname}${release}${shared_ext}$major'
17290 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17291 shlibpath_var
=LD_LIBRARY_PATH
17292 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17293 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
17304 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17305 soname_spec
='${libname}${release}${shared_ext}$major'
17306 shlibpath_var
=LD_LIBRARY_PATH
17307 shlibpath_overrides_runpath
=yes
17308 hardcode_into_libs
=yes
17309 # ldd complains unless libraries are executable
17310 postinstall_cmds
='chmod +x $lib'
17315 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17316 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17317 shlibpath_var
=LD_LIBRARY_PATH
17318 shlibpath_overrides_runpath
=yes
17319 if test "$with_gnu_ld" = yes; then
17327 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17328 soname_spec
='${libname}${release}${shared_ext}$major'
17329 shlibpath_var
=LD_LIBRARY_PATH
17330 case $host_vendor in
17332 shlibpath_overrides_runpath
=no
17334 export_dynamic_flag_spec
='${wl}-Blargedynsym'
17335 runpath_var
=LD_RUN_PATH
17343 shlibpath_overrides_runpath
=no
17344 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
17350 if test -d /usr
/nec
;then
17352 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17353 soname_spec
='$libname${shared_ext}.$major'
17354 shlibpath_var
=LD_LIBRARY_PATH
17358 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
17359 version_type
=freebsd
-elf
17362 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17363 soname_spec
='${libname}${release}${shared_ext}$major'
17364 shlibpath_var
=LD_LIBRARY_PATH
17365 hardcode_into_libs
=yes
17366 if test "$with_gnu_ld" = yes; then
17367 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17368 shlibpath_overrides_runpath
=no
17370 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
17371 shlibpath_overrides_runpath
=yes
17374 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
17378 sys_lib_dlsearch_path_spec
='/usr/lib'
17383 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17384 soname_spec
='${libname}${release}${shared_ext}$major'
17385 shlibpath_var
=LD_LIBRARY_PATH
17392 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17393 echo "${ECHO_T}$dynamic_linker" >&6; }
17394 test "$dynamic_linker" = no
&& can_build_shared
=no
17396 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17397 echo $ECHO_N "(cached) $ECHO_C" >&6
17399 lt_cv_sys_lib_search_path_spec
="$sys_lib_search_path_spec"
17402 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
17403 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17404 echo $ECHO_N "(cached) $ECHO_C" >&6
17406 lt_cv_sys_lib_dlsearch_path_spec
="$sys_lib_dlsearch_path_spec"
17409 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
17411 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
17412 if test "$GCC" = yes; then
17413 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17416 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17417 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
17418 hardcode_action_F77
=
17419 if test -n "$hardcode_libdir_flag_spec_F77" || \
17420 test -n "$runpath_var_F77" || \
17421 test "X$hardcode_automatic_F77" = "Xyes" ; then
17423 # We can hardcode non-existant directories.
17424 if test "$hardcode_direct_F77" != no
&&
17425 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17426 # have to relink, otherwise we might link with an installed library
17427 # when we should be linking with a yet-to-be-installed one
17428 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
17429 test "$hardcode_minus_L_F77" != no
; then
17430 # Linking always hardcodes the temporary library directory.
17431 hardcode_action_F77
=relink
17433 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17434 hardcode_action_F77
=immediate
17437 # We cannot hardcode anything, or else we can only hardcode existing
17439 hardcode_action_F77
=unsupported
17441 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
17442 echo "${ECHO_T}$hardcode_action_F77" >&6; }
17444 if test "$hardcode_action_F77" = relink
; then
17445 # Fast installation is not supported
17446 enable_fast_install
=no
17447 elif test "$shlibpath_overrides_runpath" = yes ||
17448 test "$enable_shared" = no
; then
17449 # Fast installation is not necessary
17450 enable_fast_install
=needless
17454 # The else clause should only fire when bootstrapping the
17455 # libtool distribution, otherwise you forgot to ship ltmain.sh
17456 # with your package, and you will get complaints that there are
17457 # no rules to generate ltmain.sh.
17458 if test -f "$ltmain"; then
17459 # See if we are running on zsh, and set the options which allow our commands through
17460 # without removal of \ escapes.
17461 if test -n "${ZSH_VERSION+set}" ; then
17462 setopt NO_GLOB_SUBST
17464 # Now quote all the things that may contain metacharacters while being
17465 # careful not to overquote the AC_SUBSTed values. We take copies of the
17466 # variables and quote the copies for generation of the libtool script.
17467 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17469 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17470 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17471 deplibs_check_method reload_flag reload_cmds need_locks \
17472 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17473 lt_cv_sys_global_symbol_to_c_name_address \
17474 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17475 old_postinstall_cmds old_postuninstall_cmds \
17479 lt_prog_compiler_wl_F77 \
17480 lt_prog_compiler_pic_F77 \
17481 lt_prog_compiler_static_F77 \
17482 lt_prog_compiler_no_builtin_flag_F77 \
17483 export_dynamic_flag_spec_F77 \
17484 thread_safe_flag_spec_F77 \
17485 whole_archive_flag_spec_F77 \
17486 enable_shared_with_static_runtimes_F77 \
17487 old_archive_cmds_F77 \
17488 old_archive_from_new_cmds_F77 \
17489 predep_objects_F77 \
17490 postdep_objects_F77 \
17493 compiler_lib_search_path_F77 \
17494 compiler_lib_search_dirs_F77 \
17496 archive_expsym_cmds_F77 \
17497 postinstall_cmds_F77 \
17498 postuninstall_cmds_F77 \
17499 old_archive_from_expsyms_cmds_F77 \
17500 allow_undefined_flag_F77 \
17501 no_undefined_flag_F77 \
17502 export_symbols_cmds_F77 \
17503 hardcode_libdir_flag_spec_F77 \
17504 hardcode_libdir_flag_spec_ld_F77 \
17505 hardcode_libdir_separator_F77 \
17506 hardcode_automatic_F77 \
17508 module_expsym_cmds_F77 \
17509 lt_cv_prog_compiler_c_o_F77 \
17510 fix_srcfile_path_F77 \
17511 exclude_expsyms_F77 \
17512 include_expsyms_F77
; do
17515 old_archive_cmds_F77
| \
17516 old_archive_from_new_cmds_F77
| \
17517 archive_cmds_F77
| \
17518 archive_expsym_cmds_F77
| \
17519 module_cmds_F77
| \
17520 module_expsym_cmds_F77
| \
17521 old_archive_from_expsyms_cmds_F77
| \
17522 export_symbols_cmds_F77
| \
17523 extract_expsyms_cmds
| reload_cmds
| finish_cmds
| \
17524 postinstall_cmds
| postuninstall_cmds
| \
17525 old_postinstall_cmds
| old_postuninstall_cmds
| \
17526 sys_lib_search_path_spec
| sys_lib_dlsearch_path_spec
)
17527 # Double-quote double-evaled strings.
17528 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17531 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17537 *'\$0 --fallback-echo"')
17538 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17544 cat <<__EOF__ >> "$cfgfile"
17545 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17547 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17549 # Shell to use when invoking shell scripts.
17552 # Whether or not to build shared libraries.
17553 build_libtool_libs=$enable_shared
17555 # Whether or not to build static libraries.
17556 build_old_libs=$enable_static
17558 # Whether or not to add -lc for building shared libraries.
17559 build_libtool_need_lc=$archive_cmds_need_lc_F77
17561 # Whether or not to disallow shared libs when runtime libs are static
17562 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
17564 # Whether or not to optimize for fast installation.
17565 fast_install=$enable_fast_install
17568 host_alias=$host_alias
17572 # The build system.
17573 build_alias=$build_alias
17577 # An echo program that does not interpret backslashes.
17582 AR_FLAGS=$lt_AR_FLAGS
17587 # LTCC compiler flags.
17588 LTCFLAGS=$lt_LTCFLAGS
17590 # A language-specific compiler.
17591 CC=$lt_compiler_F77
17593 # Is the compiler the GNU C compiler?
17599 # The linker used to build libraries.
17602 # Whether we need hard or soft links.
17605 # A BSD-compatible nm program.
17608 # A symbol stripping program
17611 # Used to examine libraries when file_magic_cmd begins "file"
17612 MAGIC_CMD=$MAGIC_CMD
17614 # Used on cygwin: DLL creation program.
17617 # Used on cygwin: object dumper.
17620 # Used on cygwin: assembler.
17623 # The name of the directory that contains temporary libtool files.
17626 # How to create reloadable object files.
17627 reload_flag=$lt_reload_flag
17628 reload_cmds=$lt_reload_cmds
17630 # How to pass a linker flag through the compiler.
17631 wl=$lt_lt_prog_compiler_wl_F77
17633 # Object file suffix (normally "o").
17634 objext="$ac_objext"
17636 # Old archive suffix (normally "a").
17639 # Shared library suffix (normally ".so").
17640 shrext_cmds='$shrext_cmds'
17642 # Executable file suffix (normally "").
17645 # Additional compiler flags for building library objects.
17646 pic_flag=$lt_lt_prog_compiler_pic_F77
17649 # What is the maximum length of a command?
17650 max_cmd_len=$lt_cv_sys_max_cmd_len
17652 # Does compiler simultaneously support -c and -o options?
17653 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17655 # Must we lock files when doing compilation?
17656 need_locks=$lt_need_locks
17658 # Do we need the lib prefix for modules?
17659 need_lib_prefix=$need_lib_prefix
17661 # Do we need a version for libraries?
17662 need_version=$need_version
17664 # Whether dlopen is supported.
17665 dlopen_support=$enable_dlopen
17667 # Whether dlopen of programs is supported.
17668 dlopen_self=$enable_dlopen_self
17670 # Whether dlopen of statically linked programs is supported.
17671 dlopen_self_static=$enable_dlopen_self_static
17673 # Compiler flag to prevent dynamic linking.
17674 link_static_flag=$lt_lt_prog_compiler_static_F77
17676 # Compiler flag to turn off builtin functions.
17677 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
17679 # Compiler flag to allow reflexive dlopens.
17680 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
17682 # Compiler flag to generate shared objects directly from archives.
17683 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
17685 # Compiler flag to generate thread-safe objects.
17686 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
17688 # Library versioning type.
17689 version_type=$version_type
17691 # Format of library name prefix.
17692 libname_spec=$lt_libname_spec
17694 # List of archive names. First name is the real one, the rest are links.
17695 # The last name is the one that the linker finds with -lNAME.
17696 library_names_spec=$lt_library_names_spec
17698 # The coded name of the library, if different from the real name.
17699 soname_spec=$lt_soname_spec
17701 # Commands used to build and install an old-style archive.
17703 old_archive_cmds=$lt_old_archive_cmds_F77
17704 old_postinstall_cmds=$lt_old_postinstall_cmds
17705 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17707 # Create an old-style archive from a shared archive.
17708 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
17710 # Create a temporary old-style archive to link instead of a shared archive.
17711 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
17713 # Commands used to build and install a shared archive.
17714 archive_cmds=$lt_archive_cmds_F77
17715 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17716 postinstall_cmds=$lt_postinstall_cmds
17717 postuninstall_cmds=$lt_postuninstall_cmds
17719 # Commands used to build a loadable module (assumed same as above if empty)
17720 module_cmds=$lt_module_cmds_F77
17721 module_expsym_cmds=$lt_module_expsym_cmds_F77
17723 # Commands to strip libraries.
17724 old_striplib=$lt_old_striplib
17725 striplib=$lt_striplib
17727 # Dependencies to place before the objects being linked to create a
17729 predep_objects=$lt_predep_objects_F77
17731 # Dependencies to place after the objects being linked to create a
17733 postdep_objects=$lt_postdep_objects_F77
17735 # Dependencies to place before the objects being linked to create a
17737 predeps=$lt_predeps_F77
17739 # Dependencies to place after the objects being linked to create a
17741 postdeps=$lt_postdeps_F77
17743 # The directories searched by this compiler when creating a shared
17745 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
17747 # The library search path used internally by the compiler when linking
17748 # a shared library.
17749 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17751 # Method to check whether dependent libraries are shared objects.
17752 deplibs_check_method=$lt_deplibs_check_method
17754 # Command to use when deplibs_check_method == file_magic.
17755 file_magic_cmd=$lt_file_magic_cmd
17757 # Flag that allows shared libraries with undefined symbols to be built.
17758 allow_undefined_flag=$lt_allow_undefined_flag_F77
17760 # Flag that forces no undefined symbols.
17761 no_undefined_flag=$lt_no_undefined_flag_F77
17763 # Commands used to finish a libtool library installation in a directory.
17764 finish_cmds=$lt_finish_cmds
17766 # Same as above, but a single script fragment to be evaled but not shown.
17767 finish_eval=$lt_finish_eval
17769 # Take the output of nm and produce a listing of raw symbols and C names.
17770 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17772 # Transform the output of nm in a proper C declaration
17773 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17775 # Transform the output of nm in a C name address pair
17776 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17778 # This is the shared library runtime path variable.
17779 runpath_var=$runpath_var
17781 # This is the shared library path variable.
17782 shlibpath_var=$shlibpath_var
17784 # Is shlibpath searched before the hard-coded library search path?
17785 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17787 # How to hardcode a shared library path into an executable.
17788 hardcode_action=$hardcode_action_F77
17790 # Whether we should hardcode library paths into libraries.
17791 hardcode_into_libs=$hardcode_into_libs
17793 # Flag to hardcode \$libdir into a binary during linking.
17794 # This must work even if \$libdir does not exist.
17795 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17797 # If ld is used when linking, flag to hardcode \$libdir into
17798 # a binary during linking. This must work even if \$libdir does
17800 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17802 # Whether we need a single -rpath flag with a separated argument.
17803 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17805 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17806 # resulting binary.
17807 hardcode_direct=$hardcode_direct_F77
17809 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17810 # resulting binary.
17811 hardcode_minus_L=$hardcode_minus_L_F77
17813 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17814 # the resulting binary.
17815 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17817 # Set to yes if building a shared library automatically hardcodes DIR into the library
17818 # and all subsequent libraries and executables linked against it.
17819 hardcode_automatic=$hardcode_automatic_F77
17821 # Variables whose values should be saved in libtool wrapper scripts and
17822 # restored at relink time.
17823 variables_saved_for_relink="$variables_saved_for_relink"
17825 # Whether libtool must link a program against all its dependency libraries.
17826 link_all_deplibs=$link_all_deplibs_F77
17828 # Compile-time system search path for libraries
17829 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17831 # Run-time system search path for libraries
17832 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17834 # Fix the shell variable \$srcfile for the compiler.
17835 fix_srcfile_path=$lt_fix_srcfile_path
17837 # Set to yes if exported symbols are required.
17838 always_export_symbols=$always_export_symbols_F77
17840 # The commands to list exported symbols.
17841 export_symbols_cmds=$lt_export_symbols_cmds_F77
17843 # The commands to extract the exported symbol list from a shared archive.
17844 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17846 # Symbols that should not be listed in the preloaded symbols.
17847 exclude_expsyms=$lt_exclude_expsyms_F77
17849 # Symbols that must always be exported.
17850 include_expsyms=$lt_include_expsyms_F77
17852 # ### END LIBTOOL TAG CONFIG: $tagname
17858 # If there is no Makefile yet, we rely on a make rule to execute
17859 # `config.status --recheck' to rerun these tests and create the
17860 # libtool script then.
17861 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17862 if test -f "$ltmain_in"; then
17863 test -f Makefile
&& make "$ltmain"
17869 ac_cpp
='$CPP $CPPFLAGS'
17870 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17871 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17872 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
17882 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17885 # Source file extension for Java test sources.
17888 # Object file extension for compiled Java test sources.
17892 # Code to be used in simple compile tests
17893 lt_simple_compile_test_code
="class foo {}"
17895 # Code to be used in simple link tests
17896 lt_simple_link_test_code
='public class conftest { public static void main(String[] argv) {}; }'
17898 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17900 # If no C compiler was specified, use CC.
17903 # If no C compiler flags were specified, use CFLAGS.
17904 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
17906 # Allow CC to be a program name with arguments.
17910 # save warnings/boilerplate of simple test code
17911 ac_outfile
=conftest.
$ac_objext
17912 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
17913 eval "$ac_compile" 2>&1 >/dev
/null
| $SED '/^$/d; /^ *+/d' >conftest.err
17914 _lt_compiler_boilerplate
=`cat conftest.err`
17917 ac_outfile
=conftest.
$ac_objext
17918 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
17919 eval "$ac_link" 2>&1 >/dev
/null
| $SED '/^$/d; /^ *+/d' >conftest.err
17920 _lt_linker_boilerplate
=`cat conftest.err`
17924 # Allow CC to be a program name with arguments.
17929 for cc_temp
in $compiler""; do
17931 compile
| *[\\/]compile
| ccache
| *[\\/]ccache
) ;;
17932 distcc
| *[\\/]distcc
| purify
| *[\\/]purify
) ;;
17937 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17940 # GCJ did not exist at the time GCC didn't implicitly link libc in.
17941 archive_cmds_need_lc_GCJ
=no
17943 old_archive_cmds_GCJ
=$old_archive_cmds
17946 lt_prog_compiler_no_builtin_flag_GCJ
=
17948 if test "$GCC" = yes; then
17949 lt_prog_compiler_no_builtin_flag_GCJ
=' -fno-builtin'
17952 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17953 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
17954 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17955 echo $ECHO_N "(cached) $ECHO_C" >&6
17957 lt_cv_prog_compiler_rtti_exceptions
=no
17958 ac_outfile
=conftest.
$ac_objext
17959 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
17960 lt_compiler_flag
="-fno-rtti -fno-exceptions"
17961 # Insert the option either (1) after the last *FLAGS variable, or
17962 # (2) before a word containing "conftest.", or (3) at the end.
17963 # Note that $ac_compile itself does not contain backslashes and begins
17964 # with a dollar sign (not a hyphen), so the echo should work correctly.
17965 # The option is referenced via a variable to avoid confusing sed.
17966 lt_compile
=`echo "$ac_compile" | $SED \
17967 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17968 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17969 -e 's:$: $lt_compiler_flag:'`
17970 (eval echo "\"\$as_me:17970: $lt_compile\"" >&5)
17971 (eval "$lt_compile" 2>conftest.err
)
17973 cat conftest.err
>&5
17974 echo "$as_me:17974: \$? = $ac_status" >&5
17975 if (exit $ac_status) && test -s "$ac_outfile"; then
17976 # The compiler can only warn and ignore the option if not recognized
17977 # So say no if there are warnings other than the usual output.
17978 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17979 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
17980 if test ! -s conftest.er2
|| diff conftest.exp conftest.er2
>/dev
/null
; then
17981 lt_cv_prog_compiler_rtti_exceptions
=yes
17987 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17988 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17990 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
17991 lt_prog_compiler_no_builtin_flag_GCJ
="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17998 lt_prog_compiler_wl_GCJ
=
17999 lt_prog_compiler_pic_GCJ
=
18000 lt_prog_compiler_static_GCJ
=
18002 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18003 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
18005 if test "$GCC" = yes; then
18006 lt_prog_compiler_wl_GCJ
='-Wl,'
18007 lt_prog_compiler_static_GCJ
='-static'
18011 # All AIX code is PIC.
18012 if test "$host_cpu" = ia64
; then
18013 # AIX 5 now supports IA64 processor
18014 lt_prog_compiler_static_GCJ
='-Bstatic'
18019 # FIXME: we need at least 68020 code to build shared libraries, but
18020 # adding the `-m68020' flag to GCC prevents building anything better,
18022 lt_prog_compiler_pic_GCJ
='-m68020 -resident32 -malways-restore-a4'
18025 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
18026 # PIC is the default for these OSes.
18029 mingw
* | cygwin
* | pw32
* | os2
*)
18030 # This hack is so that the source file can tell whether it is being
18031 # built for inclusion in a dll (and should export symbols for example).
18032 # Although the cygwin gcc ignores -fPIC, still need this for old-style
18033 # (--disable-auto-import) libraries
18037 darwin
* | rhapsody
*)
18038 # PIC is the default on this platform
18039 # Common symbols not allowed in MH_DYLIB files
18040 lt_prog_compiler_pic_GCJ
='-fno-common'
18044 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18045 # Instead, we relocate shared libraries at runtime.
18049 # Just because we use GCC doesn't mean we suddenly get shared libraries
18050 # on systems that don't support them.
18051 lt_prog_compiler_can_build_shared_GCJ
=no
18056 if test -d /usr
/nec
; then
18057 lt_prog_compiler_pic_GCJ
=-Kconform_pic
18062 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18063 # not for PA HP-UX.
18069 lt_prog_compiler_pic_GCJ
='-fPIC'
18075 lt_prog_compiler_pic_GCJ
='-fPIC'
18079 # PORTME Check for flag to pass linker flags through the system compiler.
18082 lt_prog_compiler_wl_GCJ
='-Wl,'
18083 if test "$host_cpu" = ia64
; then
18084 # AIX 5 now supports IA64 processor
18085 lt_prog_compiler_static_GCJ
='-Bstatic'
18087 lt_prog_compiler_static_GCJ
='-bnso -bI:/lib/syscalls.exp'
18091 # PIC is the default on this platform
18092 # Common symbols not allowed in MH_DYLIB files
18093 case $cc_basename in
18095 lt_prog_compiler_pic_GCJ
='-qnocommon'
18096 lt_prog_compiler_wl_GCJ
='-Wl,'
18101 mingw
* | cygwin
* | pw32
* | os2
*)
18102 # This hack is so that the source file can tell whether it is being
18103 # built for inclusion in a dll (and should export symbols for example).
18107 hpux9
* | hpux10
* | hpux11
*)
18108 lt_prog_compiler_wl_GCJ
='-Wl,'
18109 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18110 # not for PA HP-UX.
18116 lt_prog_compiler_pic_GCJ
='+Z'
18119 # Is there a better lt_prog_compiler_static that works with the bundled CC?
18120 lt_prog_compiler_static_GCJ
='${wl}-a ${wl}archive'
18123 irix5
* | irix6
* | nonstopux
*)
18124 lt_prog_compiler_wl_GCJ
='-Wl,'
18125 # PIC (with -KPIC) is the default.
18126 lt_prog_compiler_static_GCJ
='-non_shared'
18130 lt_prog_compiler_pic_GCJ
='-KPIC'
18131 lt_prog_compiler_static_GCJ
='-Bstatic'
18134 linux
* | k
*bsd
*-gnu)
18135 case $cc_basename in
18137 lt_prog_compiler_wl_GCJ
='-Wl,'
18138 lt_prog_compiler_pic_GCJ
='-KPIC'
18139 lt_prog_compiler_static_GCJ
='-static'
18141 pgcc
* | pgf77
* | pgf90
* | pgf95
*)
18142 # Portland Group compilers (*not* the Pentium gcc compiler,
18143 # which looks to be a dead project)
18144 lt_prog_compiler_wl_GCJ
='-Wl,'
18145 lt_prog_compiler_pic_GCJ
='-fpic'
18146 lt_prog_compiler_static_GCJ
='-Bstatic'
18149 lt_prog_compiler_wl_GCJ
='-Wl,'
18150 # All Alpha code is PIC.
18151 lt_prog_compiler_static_GCJ
='-non_shared'
18154 case `$CC -V 2>&1 | sed 5q` in
18157 lt_prog_compiler_pic_GCJ
='-KPIC'
18158 lt_prog_compiler_static_GCJ
='-Bstatic'
18159 lt_prog_compiler_wl_GCJ
='-Wl,'
18162 # Sun Fortran 8.3 passes all unrecognized flags to the linker
18163 lt_prog_compiler_pic_GCJ
='-KPIC'
18164 lt_prog_compiler_static_GCJ
='-Bstatic'
18165 lt_prog_compiler_wl_GCJ
=''
18172 osf3
* | osf4
* | osf5
*)
18173 lt_prog_compiler_wl_GCJ
='-Wl,'
18174 # All OSF/1 code is PIC.
18175 lt_prog_compiler_static_GCJ
='-non_shared'
18179 lt_prog_compiler_static_GCJ
='-non_shared'
18183 lt_prog_compiler_pic_GCJ
='-KPIC'
18184 lt_prog_compiler_static_GCJ
='-Bstatic'
18185 case $cc_basename in
18186 f77
* | f90
* | f95
*)
18187 lt_prog_compiler_wl_GCJ
='-Qoption ld ';;
18189 lt_prog_compiler_wl_GCJ
='-Wl,';;
18194 lt_prog_compiler_wl_GCJ
='-Qoption ld '
18195 lt_prog_compiler_pic_GCJ
='-PIC'
18196 lt_prog_compiler_static_GCJ
='-Bstatic'
18199 sysv4
| sysv4.2uw2
* | sysv4.3
*)
18200 lt_prog_compiler_wl_GCJ
='-Wl,'
18201 lt_prog_compiler_pic_GCJ
='-KPIC'
18202 lt_prog_compiler_static_GCJ
='-Bstatic'
18206 if test -d /usr
/nec
;then
18207 lt_prog_compiler_pic_GCJ
='-Kconform_pic'
18208 lt_prog_compiler_static_GCJ
='-Bstatic'
18212 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
18213 lt_prog_compiler_wl_GCJ
='-Wl,'
18214 lt_prog_compiler_pic_GCJ
='-KPIC'
18215 lt_prog_compiler_static_GCJ
='-Bstatic'
18219 lt_prog_compiler_wl_GCJ
='-Wl,'
18220 lt_prog_compiler_can_build_shared_GCJ
=no
18224 lt_prog_compiler_pic_GCJ
='-pic'
18225 lt_prog_compiler_static_GCJ
='-Bstatic'
18229 lt_prog_compiler_can_build_shared_GCJ
=no
18234 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
18235 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
18238 # Check to make sure the PIC flag actually works.
18240 if test -n "$lt_prog_compiler_pic_GCJ"; then
18242 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
18243 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
18244 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
18245 echo $ECHO_N "(cached) $ECHO_C" >&6
18247 lt_cv_prog_compiler_pic_works_GCJ
=no
18248 ac_outfile
=conftest.
$ac_objext
18249 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
18250 lt_compiler_flag
="$lt_prog_compiler_pic_GCJ"
18251 # Insert the option either (1) after the last *FLAGS variable, or
18252 # (2) before a word containing "conftest.", or (3) at the end.
18253 # Note that $ac_compile itself does not contain backslashes and begins
18254 # with a dollar sign (not a hyphen), so the echo should work correctly.
18255 # The option is referenced via a variable to avoid confusing sed.
18256 lt_compile
=`echo "$ac_compile" | $SED \
18257 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18258 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18259 -e 's:$: $lt_compiler_flag:'`
18260 (eval echo "\"\$as_me:18260: $lt_compile\"" >&5)
18261 (eval "$lt_compile" 2>conftest.err
)
18263 cat conftest.err
>&5
18264 echo "$as_me:18264: \$? = $ac_status" >&5
18265 if (exit $ac_status) && test -s "$ac_outfile"; then
18266 # The compiler can only warn and ignore the option if not recognized
18267 # So say no if there are warnings other than the usual output.
18268 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18269 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
18270 if test ! -s conftest.er2
|| diff conftest.exp conftest.er2
>/dev
/null
; then
18271 lt_cv_prog_compiler_pic_works_GCJ
=yes
18277 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
18278 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
18280 if test x
"$lt_cv_prog_compiler_pic_works_GCJ" = xyes
; then
18281 case $lt_prog_compiler_pic_GCJ in
18283 *) lt_prog_compiler_pic_GCJ
=" $lt_prog_compiler_pic_GCJ" ;;
18286 lt_prog_compiler_pic_GCJ
=
18287 lt_prog_compiler_can_build_shared_GCJ
=no
18292 # For platforms which do not support PIC, -DPIC is meaningless:
18294 lt_prog_compiler_pic_GCJ
=
18297 lt_prog_compiler_pic_GCJ
="$lt_prog_compiler_pic_GCJ"
18302 # Check to make sure the static flag actually works.
18304 wl
=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_GCJ\"
18305 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18306 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
18307 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
18308 echo $ECHO_N "(cached) $ECHO_C" >&6
18310 lt_cv_prog_compiler_static_works_GCJ
=no
18311 save_LDFLAGS
="$LDFLAGS"
18312 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
18313 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
18314 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
18315 # The linker can only warn and ignore the option if not recognized
18316 # So say no if there are warnings
18317 if test -s conftest.err
; then
18318 # Append any errors to the config.log.
18319 cat conftest.err
1>&5
18320 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
18321 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
18322 if diff conftest.exp conftest.er2
>/dev
/null
; then
18323 lt_cv_prog_compiler_static_works_GCJ
=yes
18326 lt_cv_prog_compiler_static_works_GCJ
=yes
18330 LDFLAGS
="$save_LDFLAGS"
18333 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
18334 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
18336 if test x
"$lt_cv_prog_compiler_static_works_GCJ" = xyes
; then
18339 lt_prog_compiler_static_GCJ
=
18343 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18344 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
18345 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
18346 echo $ECHO_N "(cached) $ECHO_C" >&6
18348 lt_cv_prog_compiler_c_o_GCJ
=no
18349 $rm -r conftest
2>/dev
/null
18353 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
18355 lt_compiler_flag
="-o out/conftest2.$ac_objext"
18356 # Insert the option either (1) after the last *FLAGS variable, or
18357 # (2) before a word containing "conftest.", or (3) at the end.
18358 # Note that $ac_compile itself does not contain backslashes and begins
18359 # with a dollar sign (not a hyphen), so the echo should work correctly.
18360 lt_compile
=`echo "$ac_compile" | $SED \
18361 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18362 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18363 -e 's:$: $lt_compiler_flag:'`
18364 (eval echo "\"\$as_me:18364: $lt_compile\"" >&5)
18365 (eval "$lt_compile" 2>out
/conftest.err
)
18367 cat out
/conftest.err
>&5
18368 echo "$as_me:18368: \$? = $ac_status" >&5
18369 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
18371 # The compiler can only warn and ignore the option if not recognized
18372 # So say no if there are warnings
18373 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out
/conftest.exp
18374 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
18375 if test ! -s out
/conftest.er2
|| diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
18376 lt_cv_prog_compiler_c_o_GCJ
=yes
18381 # SGI C++ compiler will create directory out/ii_files/ for
18382 # template instantiation
18383 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
18384 $rm out
/* && rmdir out
18390 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
18391 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
18394 hard_links
="nottested"
18395 if test "$lt_cv_prog_compiler_c_o_GCJ" = no
&& test "$need_locks" != no
; then
18396 # do not overwrite the value of need_locks provided by the user
18397 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18398 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
18401 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
18403 ln conftest.a conftest.b
2>&5 || hard_links
=no
18404 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
18405 { echo "$as_me:$LINENO: result: $hard_links" >&5
18406 echo "${ECHO_T}$hard_links" >&6; }
18407 if test "$hard_links" = no
; then
18408 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18409 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18416 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18417 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18420 allow_undefined_flag_GCJ
=
18421 enable_shared_with_static_runtimes_GCJ
=no
18423 archive_expsym_cmds_GCJ
=
18424 old_archive_From_new_cmds_GCJ
=
18425 old_archive_from_expsyms_cmds_GCJ
=
18426 export_dynamic_flag_spec_GCJ
=
18427 whole_archive_flag_spec_GCJ
=
18428 thread_safe_flag_spec_GCJ
=
18429 hardcode_libdir_flag_spec_GCJ
=
18430 hardcode_libdir_flag_spec_ld_GCJ
=
18431 hardcode_libdir_separator_GCJ
=
18432 hardcode_direct_GCJ
=no
18433 hardcode_minus_L_GCJ
=no
18434 hardcode_shlibpath_var_GCJ
=unsupported
18435 link_all_deplibs_GCJ
=unknown
18436 hardcode_automatic_GCJ
=no
18438 module_expsym_cmds_GCJ
=
18439 always_export_symbols_GCJ
=no
18440 export_symbols_cmds_GCJ
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18441 # include_expsyms should be a list of space-separated symbols to be *always*
18442 # included in the symbol list
18443 include_expsyms_GCJ
=
18444 # exclude_expsyms can be an extended regexp of symbols to exclude
18445 # it will be wrapped by ` (' and `)$', so one must not match beginning or
18446 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
18447 # as well as any symbol that contains `d'.
18448 exclude_expsyms_GCJ
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
18449 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
18450 # platforms (ab)use it in PIC code, but their linkers get confused if
18451 # the symbol is explicitly referenced. Since portable code cannot
18452 # rely on this symbol name, it's probably fine to never include it in
18453 # preloaded symbol tables.
18454 # Exclude shared library initialization/finalization symbols.
18455 extract_expsyms_cmds
=
18456 # Just being paranoid about ensuring that cc_basename is set.
18457 for cc_temp
in $compiler""; do
18459 compile
| *[\\/]compile
| ccache
| *[\\/]ccache
) ;;
18460 distcc
| *[\\/]distcc
| purify
| *[\\/]purify
) ;;
18465 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18468 cygwin
* | mingw
* | pw32
*)
18469 # FIXME: the MSVC++ port hasn't been tested in a loooong time
18470 # When not using gcc, we currently assume that we are using
18471 # Microsoft Visual C++.
18472 if test "$GCC" != yes; then
18477 # we just hope/assume this is gcc and not c89 (= MSVC++)
18486 if test "$with_gnu_ld" = yes; then
18487 # If archive_cmds runs LD, not CC, wlarc should be empty
18490 # Set some defaults for GNU ld with shared library support. These
18491 # are reset later if shared libraries are not supported. Putting them
18492 # here allows them to be overridden if necessary.
18493 runpath_var
=LD_RUN_PATH
18494 hardcode_libdir_flag_spec_GCJ
='${wl}--rpath ${wl}$libdir'
18495 export_dynamic_flag_spec_GCJ
='${wl}--export-dynamic'
18496 # ancient GNU ld didn't support --whole-archive et. al.
18497 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev
/null
; then
18498 whole_archive_flag_spec_GCJ
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18500 whole_archive_flag_spec_GCJ
=
18502 supports_anon_versioning
=no
18503 case `$LD -v 2>/dev/null` in
18504 *\
[01].
* | *\
2.
[0-9].
* | *\
2.10.
*) ;; # catch versions < 2.11
18505 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
18506 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
18507 *\
2.11.
*) ;; # other 2.11 versions
18508 *) supports_anon_versioning
=yes ;;
18511 # See if GNU ld supports shared libraries.
18514 # On AIX/PPC, the GNU linker is very broken
18515 if test "$host_cpu" != ia64
; then
18519 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
18520 *** to be unable to reliably create shared libraries on AIX.
18521 *** Therefore, libtool is disabling shared libraries support. If you
18522 *** really care for shared libraries, you may want to modify your PATH
18523 *** so that a non-GNU linker is found, and then restart.
18530 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)'
18531 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
18532 hardcode_minus_L_GCJ
=yes
18534 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
18535 # that the semantics of dynamic libraries on AmigaOS, at least up
18536 # to version 4, is to share data among multiple programs linked
18537 # with the same dynamic library. Since this doesn't match the
18538 # behavior of shared libraries on other platforms, we can't use
18544 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev
/null
; then
18545 allow_undefined_flag_GCJ
=unsupported
18546 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18547 # support --undefined. This deserves some investigation. FIXME
18548 archive_cmds_GCJ
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18554 cygwin
* | mingw
* | pw32
*)
18555 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
18556 # as there is no search path for DLLs.
18557 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
18558 allow_undefined_flag_GCJ
=unsupported
18559 always_export_symbols_GCJ
=no
18560 enable_shared_with_static_runtimes_GCJ
=yes
18561 export_symbols_cmds_GCJ
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
18563 if $LD --help 2>&1 | grep 'auto-import' > /dev
/null
; then
18564 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18565 # If the export-symbols file already is a .def file (1st line
18566 # is EXPORTS), use it as is; otherwise, prepend...
18567 archive_expsym_cmds_GCJ
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18568 cp $export_symbols $output_objdir/$soname.def;
18570 echo EXPORTS > $output_objdir/$soname.def;
18571 cat $export_symbols >> $output_objdir/$soname.def;
18573 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18580 hardcode_direct_GCJ
=no
18581 hardcode_shlibpath_var_GCJ
=no
18582 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath,$libdir'
18583 export_dynamic_flag_spec_GCJ
='${wl}-E'
18584 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18585 # Instead, shared libraries are loaded at an image base (0x10000000 by
18586 # default) and relocated if they conflict, which is a slow very memory
18587 # consuming and fragmenting process. To avoid this, we pick a random,
18588 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18589 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18590 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'
18591 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'
18594 gnu
* | linux
* | k
*bsd
*-gnu)
18595 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev
/null
; then
18597 case $cc_basename,$host_cpu in
18598 pgcc
*) # Portland Group C compiler
18599 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'
18600 tmp_addflag
=' $pic_flag'
18602 pgf77
* | pgf90
* | pgf95
*) # Portland Group f77 and f90 compilers
18603 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'
18604 tmp_addflag
=' $pic_flag -Mnomain' ;;
18605 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
18606 tmp_addflag
=' -i_dynamic' ;;
18607 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
18608 tmp_addflag
=' -i_dynamic -nofor_main' ;;
18609 ifc
* | ifort
*) # Intel Fortran compiler
18610 tmp_addflag
=' -nofor_main' ;;
18612 case `$CC -V 2>&1 | sed 5q` in
18613 *Sun\ C
*) # Sun C 5.9
18614 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'
18615 tmp_sharedflag
='-G' ;;
18616 *Sun\ F
*) # Sun Fortran 8.3
18617 tmp_sharedflag
='-G' ;;
18619 tmp_sharedflag
='-shared' ;;
18621 archive_cmds_GCJ
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18623 if test $supports_anon_versioning = yes; then
18624 archive_expsym_cmds_GCJ
='$echo "{ global:" > $output_objdir/$libname.ver~
18625 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18626 $echo "local: *; };" >> $output_objdir/$libname.ver~
18627 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18629 link_all_deplibs_GCJ
=no
18635 netbsd
* | netbsdelf
*-gnu)
18636 if echo __ELF__
| $CC -E - | grep __ELF__
>/dev
/null
; then
18637 archive_cmds_GCJ
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18640 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18641 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18646 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev
/null
; then
18650 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
18651 *** create shared libraries on Solaris systems. Therefore, libtool
18652 *** is disabling shared libraries support. We urge you to upgrade GNU
18653 *** binutils to release 2.9.1 or newer. Another option is to modify
18654 *** your PATH or compiler configuration so that the native linker is
18655 *** used, and then restart.
18658 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev
/null
; then
18659 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18660 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18666 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
18667 case `$LD -v 2>&1` in
18668 *\
[01].
* | *\
2.
[0-9].
* | *\
2.1[0-5].
*)
18672 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
18673 *** reliably create shared libraries on SCO systems. Therefore, libtool
18674 *** is disabling shared libraries support. We urge you to upgrade GNU
18675 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
18676 *** your PATH or compiler configuration so that the native linker is
18677 *** used, and then restart.
18682 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev
/null
; then
18683 hardcode_libdir_flag_spec_GCJ
='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
18684 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
18685 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
18694 archive_cmds_GCJ
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18696 hardcode_direct_GCJ
=yes
18697 hardcode_shlibpath_var_GCJ
=no
18701 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev
/null
; then
18702 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18703 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18710 if test "$ld_shlibs_GCJ" = no
; then
18712 hardcode_libdir_flag_spec_GCJ
=
18713 export_dynamic_flag_spec_GCJ
=
18714 whole_archive_flag_spec_GCJ
=
18717 # PORTME fill in a description of your system's linker (not GNU ld)
18720 allow_undefined_flag_GCJ
=unsupported
18721 always_export_symbols_GCJ
=yes
18722 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'
18723 # Note: this linker hardcodes the directories in LIBPATH if there
18724 # are no directories specified by -L.
18725 hardcode_minus_L_GCJ
=yes
18726 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
18727 # Neither direct hardcoding nor static linking is supported with a
18729 hardcode_direct_GCJ
=unsupported
18734 if test "$host_cpu" = ia64
; then
18735 # On IA64, the linker does run time linking by default, so we don't
18736 # have to do anything special.
18737 aix_use_runtimelinking
=no
18738 exp_sym_flag
='-Bexport'
18741 # If we're using GNU nm, then we don't want the "-C" option.
18742 # -C means demangle to AIX nm, but means don't demangle with GNU nm
18743 if $NM -V 2>&1 | grep 'GNU' > /dev
/null
; then
18744 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'
18746 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'
18748 aix_use_runtimelinking
=no
18750 # Test if we are trying to use run time linking or normal
18751 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18752 # need to do runtime linking.
18753 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
18754 for ld_flag
in $LDFLAGS; do
18755 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18756 aix_use_runtimelinking
=yes
18763 exp_sym_flag
='-bexport'
18764 no_entry_flag
='-bnoentry'
18767 # When large executables or shared objects are built, AIX ld can
18768 # have problems creating the table of contents. If linking a library
18769 # or program results in "error TOC overflow" add -mminimal-toc to
18770 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18771 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18773 archive_cmds_GCJ
=''
18774 hardcode_direct_GCJ
=yes
18775 hardcode_libdir_separator_GCJ
=':'
18776 link_all_deplibs_GCJ
=yes
18778 if test "$GCC" = yes; then
18779 case $host_os in aix4.
[012]|aix4.
[012].
*)
18780 # We only want to do this on AIX 4.2 and lower, the check
18781 # below for broken collect2 doesn't work under 4.3+
18782 collect2name
=`${CC} -print-prog-name=collect2`
18783 if test -f "$collect2name" && \
18784 strings "$collect2name" | grep resolve_lib_name
>/dev
/null
18786 # We have reworked collect2
18789 # We have old collect2
18790 hardcode_direct_GCJ
=unsupported
18791 # It fails to find uninstalled libraries when the uninstalled
18792 # path is not listed in the libpath. Setting hardcode_minus_L
18793 # to unsupported forces relinking
18794 hardcode_minus_L_GCJ
=yes
18795 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
18796 hardcode_libdir_separator_GCJ
=
18800 shared_flag
='-shared'
18801 if test "$aix_use_runtimelinking" = yes; then
18802 shared_flag
="$shared_flag "'${wl}-G'
18806 if test "$host_cpu" = ia64
; then
18807 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18808 # chokes on -Wl,-G. The following line is correct:
18811 if test "$aix_use_runtimelinking" = yes; then
18812 shared_flag
='${wl}-G'
18814 shared_flag
='${wl}-bM:SRE'
18819 # It seems that -bexpall does not export symbols beginning with
18820 # underscore (_), so it is better to generate a list of symbols to export.
18821 always_export_symbols_GCJ
=yes
18822 if test "$aix_use_runtimelinking" = yes; then
18823 # Warning - without using the other runtime loading flags (-brtl),
18824 # -berok will link without error, but may produce a broken library.
18825 allow_undefined_flag_GCJ
='-berok'
18826 # Determine the default libpath from the value encoded in an empty executable.
18827 cat >conftest.
$ac_ext <<_ACEOF
18830 cat confdefs.h
>>conftest.
$ac_ext
18831 cat >>conftest.
$ac_ext <<_ACEOF
18832 /* end confdefs.h. */
18842 rm -f conftest.
$ac_objext conftest
$ac_exeext
18843 if { (ac_try
="$ac_link"
18844 case "(($ac_try" in
18845 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
18846 *) ac_try_echo=$ac_try;;
18848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18849 (eval "$ac_link") 2>conftest.er1
18851 grep -v '^ *+' conftest.er1 >conftest.err
18853 cat conftest.err >&5
18854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18855 (exit $ac_status); } && {
18856 test -z "$ac_c_werror_flag" ||
18857 test ! -s conftest.err
18858 } && test -s conftest$ac_exeext &&
18859 $as_test_x conftest$ac_exeext; then
18861 lt_aix_libpath_sed='
18862 /Import File Strings/,/^$/ {
18868 aix_libpath=`dump
-H conftest
$ac_exeext 2>/dev
/null
| $SED -n -e "$lt_aix_libpath_sed"`
18869 # Check for a 64-bit object if we didn't find anything.
18870 if test -z "$aix_libpath"; then
18871 aix_libpath=`dump
-HX64 conftest
$ac_exeext 2>/dev
/null
| $SED -n -e "$lt_aix_libpath_sed"`
18874 echo "$as_me: failed program was:" >&5
18875 sed 's/^/| /' conftest.$ac_ext >&5
18880 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18881 conftest$ac_exeext conftest.$ac_ext
18882 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18884 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18885 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"
18887 if test "$host_cpu" = ia64; then
18888 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18889 allow_undefined_flag_GCJ="-z nodefs"
18890 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"
18892 # Determine the default libpath from the value encoded in an empty executable.
18893 cat >conftest.$ac_ext <<_ACEOF
18896 cat confdefs.h >>conftest.$ac_ext
18897 cat >>conftest.$ac_ext <<_ACEOF
18898 /* end confdefs.h. */
18908 rm -f conftest.$ac_objext conftest$ac_exeext
18909 if { (ac_try="$ac_link"
18910 case "(($ac_try" in
18911 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
18912 *) ac_try_echo
=$ac_try;;
18914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18915 (eval "$ac_link") 2>conftest.er1
18917 grep -v '^ *+' conftest.er1
>conftest.err
18919 cat conftest.err
>&5
18920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18921 (exit $ac_status); } && {
18922 test -z "$ac_c_werror_flag" ||
18923 test ! -s conftest.err
18924 } && test -s conftest
$ac_exeext &&
18925 $as_test_x conftest
$ac_exeext; then
18927 lt_aix_libpath_sed
='
18928 /Import File Strings/,/^$/ {
18934 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18935 # Check for a 64-bit object if we didn't find anything.
18936 if test -z "$aix_libpath"; then
18937 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18940 echo "$as_me: failed program was:" >&5
18941 sed 's/^/| /' conftest.
$ac_ext >&5
18946 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18947 conftest
$ac_exeext conftest.
$ac_ext
18948 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
18950 hardcode_libdir_flag_spec_GCJ
='${wl}-blibpath:$libdir:'"$aix_libpath"
18951 # Warning - without using the other run time loading flags,
18952 # -berok will link without error, but may produce a broken library.
18953 no_undefined_flag_GCJ
=' ${wl}-bernotok'
18954 allow_undefined_flag_GCJ
=' ${wl}-berok'
18955 # Exported symbols can be pulled into shared objects from archives
18956 whole_archive_flag_spec_GCJ
='$convenience'
18957 archive_cmds_need_lc_GCJ
=yes
18958 # This is similar to how AIX traditionally builds its shared libraries.
18959 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'
18965 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)'
18966 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
18967 hardcode_minus_L_GCJ
=yes
18968 # see comment about different semantics on the GNU ld section
18973 export_dynamic_flag_spec_GCJ
=-rdynamic
18976 cygwin
* | mingw
* | pw32
*)
18977 # When not using gcc, we currently assume that we are using
18978 # Microsoft Visual C++.
18979 # hardcode_libdir_flag_spec is actually meaningless, as there is
18980 # no search path for DLLs.
18981 hardcode_libdir_flag_spec_GCJ
=' '
18982 allow_undefined_flag_GCJ
=unsupported
18983 # Tell ltmain to make .lib files, not .a files.
18985 # Tell ltmain to make .dll files, not .so files.
18987 # FIXME: Setting linknames here is a bad hack.
18988 archive_cmds_GCJ
='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18989 # The linker will automatically build a .lib file if we build a DLL.
18990 old_archive_From_new_cmds_GCJ
='true'
18991 # FIXME: Should let the user specify the lib program.
18992 old_archive_cmds_GCJ
='lib -OUT:$oldlib$oldobjs$old_deplibs'
18993 fix_srcfile_path_GCJ
='`cygpath -w "$srcfile"`'
18994 enable_shared_with_static_runtimes_GCJ
=yes
18997 darwin
* | rhapsody
*)
18999 rhapsody
* | darwin1.
[012])
19000 allow_undefined_flag_GCJ
='${wl}-undefined ${wl}suppress'
19003 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19004 allow_undefined_flag_GCJ
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19006 case ${MACOSX_DEPLOYMENT_TARGET} in
19008 allow_undefined_flag_GCJ
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19011 allow_undefined_flag_GCJ
='${wl}-undefined ${wl}dynamic_lookup'
19017 archive_cmds_need_lc_GCJ
=no
19018 hardcode_direct_GCJ
=no
19019 hardcode_automatic_GCJ
=yes
19020 hardcode_shlibpath_var_GCJ
=unsupported
19021 whole_archive_flag_spec_GCJ
=''
19022 link_all_deplibs_GCJ
=yes
19023 if test "$GCC" = yes ; then
19024 output_verbose_link_cmd
='echo'
19025 archive_cmds_GCJ
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
19026 module_cmds_GCJ
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19027 archive_expsym_cmds_GCJ
="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
19028 module_expsym_cmds_GCJ
="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
19030 case $cc_basename in
19032 output_verbose_link_cmd
='echo'
19033 archive_cmds_GCJ
='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
19034 module_cmds_GCJ
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19035 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19036 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}'
19037 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}'
19047 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19048 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
19049 hardcode_shlibpath_var_GCJ
=no
19056 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19057 # support. Future versions do this automatically, but an explicit c++rt0.o
19058 # does not break anything, and helps significantly (at the cost of a little
19061 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19062 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
19063 hardcode_direct_GCJ
=yes
19064 hardcode_shlibpath_var_GCJ
=no
19067 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19069 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19070 hardcode_direct_GCJ
=yes
19071 hardcode_minus_L_GCJ
=yes
19072 hardcode_shlibpath_var_GCJ
=no
19075 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19076 freebsd
* | dragonfly
*)
19077 archive_cmds_GCJ
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19078 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
19079 hardcode_direct_GCJ
=yes
19080 hardcode_shlibpath_var_GCJ
=no
19084 if test "$GCC" = yes; then
19085 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'
19087 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'
19089 hardcode_libdir_flag_spec_GCJ
='${wl}+b ${wl}$libdir'
19090 hardcode_libdir_separator_GCJ
=:
19091 hardcode_direct_GCJ
=yes
19093 # hardcode_minus_L: Not really in the search PATH,
19094 # but as the default location of the library.
19095 hardcode_minus_L_GCJ
=yes
19096 export_dynamic_flag_spec_GCJ
='${wl}-E'
19100 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
19101 archive_cmds_GCJ
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19103 archive_cmds_GCJ
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19105 if test "$with_gnu_ld" = no
; then
19106 hardcode_libdir_flag_spec_GCJ
='${wl}+b ${wl}$libdir'
19107 hardcode_libdir_separator_GCJ
=:
19109 hardcode_direct_GCJ
=yes
19110 export_dynamic_flag_spec_GCJ
='${wl}-E'
19112 # hardcode_minus_L: Not really in the search PATH,
19113 # but as the default location of the library.
19114 hardcode_minus_L_GCJ
=yes
19119 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
19122 archive_cmds_GCJ
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19125 archive_cmds_GCJ
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19128 archive_cmds_GCJ
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19134 archive_cmds_GCJ
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19137 archive_cmds_GCJ
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19140 archive_cmds_GCJ
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19144 if test "$with_gnu_ld" = no
; then
19145 hardcode_libdir_flag_spec_GCJ
='${wl}+b ${wl}$libdir'
19146 hardcode_libdir_separator_GCJ
=:
19150 hardcode_libdir_flag_spec_ld_GCJ
='+b $libdir'
19151 hardcode_direct_GCJ
=no
19152 hardcode_shlibpath_var_GCJ
=no
19155 hardcode_direct_GCJ
=yes
19156 export_dynamic_flag_spec_GCJ
='${wl}-E'
19158 # hardcode_minus_L: Not really in the search PATH,
19159 # but as the default location of the library.
19160 hardcode_minus_L_GCJ
=yes
19166 irix5
* | irix6
* | nonstopux
*)
19167 if test "$GCC" = yes; then
19168 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'
19170 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'
19171 hardcode_libdir_flag_spec_ld_GCJ
='-rpath $libdir'
19173 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
19174 hardcode_libdir_separator_GCJ
=:
19175 link_all_deplibs_GCJ
=yes
19178 netbsd
* | netbsdelf
*-gnu)
19179 if echo __ELF__
| $CC -E - | grep __ELF__
>/dev
/null
; then
19180 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
19182 archive_cmds_GCJ
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
19184 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
19185 hardcode_direct_GCJ
=yes
19186 hardcode_shlibpath_var_GCJ
=no
19190 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19191 hardcode_direct_GCJ
=yes
19192 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
19193 hardcode_libdir_separator_GCJ
=:
19194 hardcode_shlibpath_var_GCJ
=no
19198 if test -f /usr
/libexec
/ld.so
; then
19199 hardcode_direct_GCJ
=yes
19200 hardcode_shlibpath_var_GCJ
=no
19201 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19202 archive_cmds_GCJ
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19203 archive_expsym_cmds_GCJ
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19204 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath,$libdir'
19205 export_dynamic_flag_spec_GCJ
='${wl}-E'
19208 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
19209 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19210 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
19213 archive_cmds_GCJ
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19214 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath,$libdir'
19224 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
19225 hardcode_minus_L_GCJ
=yes
19226 allow_undefined_flag_GCJ
=unsupported
19227 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'
19228 old_archive_From_new_cmds_GCJ
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19232 if test "$GCC" = yes; then
19233 allow_undefined_flag_GCJ
=' ${wl}-expect_unresolved ${wl}\*'
19234 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'
19236 allow_undefined_flag_GCJ
=' -expect_unresolved \*'
19237 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'
19239 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
19240 hardcode_libdir_separator_GCJ
=:
19243 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
19244 if test "$GCC" = yes; then
19245 allow_undefined_flag_GCJ
=' ${wl}-expect_unresolved ${wl}\*'
19246 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'
19247 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
19249 allow_undefined_flag_GCJ
=' -expect_unresolved \*'
19250 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'
19251 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~
19252 $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'
19254 # Both c and cxx compiler support -rpath directly
19255 hardcode_libdir_flag_spec_GCJ
='-rpath $libdir'
19257 hardcode_libdir_separator_GCJ
=:
19261 no_undefined_flag_GCJ
=' -z text'
19262 if test "$GCC" = yes; then
19264 archive_cmds_GCJ
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19265 archive_expsym_cmds_GCJ
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19266 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19269 archive_cmds_GCJ
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19270 archive_expsym_cmds_GCJ
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19271 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19273 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
19274 hardcode_shlibpath_var_GCJ
=no
19276 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
19278 # The compiler driver will combine and reorder linker options,
19279 # but understands `-z linker_flag'. GCC discards it without `$wl',
19280 # but is careful enough not to reorder.
19281 # Supported since Solaris 2.6 (maybe 2.5.1?)
19282 if test "$GCC" = yes; then
19283 whole_archive_flag_spec_GCJ
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19285 whole_archive_flag_spec_GCJ
='-z allextract$convenience -z defaultextract'
19289 link_all_deplibs_GCJ
=yes
19293 if test "x$host_vendor" = xsequent
; then
19294 # Use $CC to link under sequent, because it throws in some extra .o
19295 # files that make .init and .fini sections work.
19296 archive_cmds_GCJ
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19298 archive_cmds_GCJ
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19300 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
19301 hardcode_direct_GCJ
=yes
19302 hardcode_minus_L_GCJ
=yes
19303 hardcode_shlibpath_var_GCJ
=no
19307 case $host_vendor in
19309 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19310 hardcode_direct_GCJ
=yes # is this really true???
19313 ## LD is ld it makes a PLAMLIB
19314 ## CC just makes a GrossModule.
19315 archive_cmds_GCJ
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19316 reload_cmds_GCJ
='$CC -r -o $output$reload_objs'
19317 hardcode_direct_GCJ
=no
19320 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19321 hardcode_direct_GCJ
=no
#Motorola manual says yes, but my tests say they lie
19324 runpath_var
='LD_RUN_PATH'
19325 hardcode_shlibpath_var_GCJ
=no
19329 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19330 hardcode_shlibpath_var_GCJ
=no
19331 export_dynamic_flag_spec_GCJ
='-Bexport'
19335 if test -d /usr
/nec
; then
19336 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19337 hardcode_shlibpath_var_GCJ
=no
19338 runpath_var
=LD_RUN_PATH
19339 hardcode_runpath_var
=yes
19344 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
19345 no_undefined_flag_GCJ
='${wl}-z,text'
19346 archive_cmds_need_lc_GCJ
=no
19347 hardcode_shlibpath_var_GCJ
=no
19348 runpath_var
='LD_RUN_PATH'
19350 if test "$GCC" = yes; then
19351 archive_cmds_GCJ
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19352 archive_expsym_cmds_GCJ
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19354 archive_cmds_GCJ
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19355 archive_expsym_cmds_GCJ
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19359 sysv5
* | sco3.2v5
* | sco5v6
*)
19360 # Note: We can NOT use -z defs as we might desire, because we do not
19361 # link with -lc, and that would cause any symbols used from libc to
19362 # always be unresolved, which means just about no library would
19363 # ever link correctly. If we're not using GNU ld we use -z text
19364 # though, which does catch some bad symbols but isn't as heavy-handed
19366 no_undefined_flag_GCJ
='${wl}-z,text'
19367 allow_undefined_flag_GCJ
='${wl}-z,nodefs'
19368 archive_cmds_need_lc_GCJ
=no
19369 hardcode_shlibpath_var_GCJ
=no
19370 hardcode_libdir_flag_spec_GCJ
='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19371 hardcode_libdir_separator_GCJ
=':'
19372 link_all_deplibs_GCJ
=yes
19373 export_dynamic_flag_spec_GCJ
='${wl}-Bexport'
19374 runpath_var
='LD_RUN_PATH'
19376 if test "$GCC" = yes; then
19377 archive_cmds_GCJ
='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19378 archive_expsym_cmds_GCJ
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19380 archive_cmds_GCJ
='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19381 archive_expsym_cmds_GCJ
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19386 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19387 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
19388 hardcode_shlibpath_var_GCJ
=no
19397 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
19398 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
19399 test "$ld_shlibs_GCJ" = no
&& can_build_shared
=no
19402 # Do we need to explicitly link libc?
19404 case "x$archive_cmds_need_lc_GCJ" in
19406 # Assume -lc should be added
19407 archive_cmds_need_lc_GCJ
=yes
19409 if test "$enable_shared" = yes && test "$GCC" = yes; then
19410 case $archive_cmds_GCJ in
19412 # FIXME: we may have to deal with multi-command sequences.
19415 # Test whether the compiler implicitly links with -lc since on some
19416 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19417 # to ld, don't add -lc before -lgcc.
19418 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19419 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
19421 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
19423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19424 (eval $ac_compile) 2>&5
19426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19427 (exit $ac_status); } 2>conftest.err
; then
19430 libobjs
=conftest.
$ac_objext
19432 wl
=$lt_prog_compiler_wl_GCJ
19433 pic_flag
=$lt_prog_compiler_pic_GCJ
19439 lt_save_allow_undefined_flag
=$allow_undefined_flag_GCJ
19440 allow_undefined_flag_GCJ
=
19441 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19442 (eval $archive_cmds_GCJ 2\
>\
&1 \
| grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
19444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19445 (exit $ac_status); }
19447 archive_cmds_need_lc_GCJ
=no
19449 archive_cmds_need_lc_GCJ
=yes
19451 allow_undefined_flag_GCJ
=$lt_save_allow_undefined_flag
19453 cat conftest.err
1>&5
19456 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
19457 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
19464 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19465 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
19466 library_names_spec
=
19467 libname_spec
='lib$name'
19471 postuninstall_cmds
=
19475 shlibpath_overrides_runpath
=unknown
19477 dynamic_linker
="$host_os ld.so"
19478 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
19480 need_lib_prefix
=unknown
19481 hardcode_into_libs
=no
19483 # when you set need_version to no, make sure it does not cause -set_version
19484 # flags to be left without arguments
19485 need_version
=unknown
19490 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
19491 shlibpath_var
=LIBPATH
19493 # AIX 3 has no versioning support, so we append a major version to the name.
19494 soname_spec
='${libname}${release}${shared_ext}$major'
19501 hardcode_into_libs
=yes
19502 if test "$host_cpu" = ia64
; then
19503 # AIX 5 supports IA64
19504 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19505 shlibpath_var
=LD_LIBRARY_PATH
19507 # With GCC up to 2.95.x, collect2 would create an import file
19508 # for dependence libraries. The import file would start with
19509 # the line `#! .'. This would cause the generated library to
19510 # depend on `.', always an invalid library. This was fixed in
19511 # development snapshots of GCC prior to 3.0.
19513 aix4
| aix4.
[01] | aix4.
[01].
*)
19514 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19516 echo '#endif'; } | ${CC} -E - | grep yes > /dev
/null
; then
19519 can_build_shared
=no
19523 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19524 # soname into executable. Probably we can add versioning support to
19525 # collect2, so additional links can be useful in future.
19526 if test "$aix_use_runtimelinking" = yes; then
19527 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19528 # instead of lib<name>.a to let people know that these are not
19529 # typical AIX shared libraries.
19530 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19532 # We preserve .a as extension for shared libraries through AIX4.2
19533 # and later when we are not doing run time linking.
19534 library_names_spec
='${libname}${release}.a $libname.a'
19535 soname_spec
='${libname}${release}${shared_ext}$major'
19537 shlibpath_var
=LIBPATH
19542 library_names_spec
='$libname.ixlibrary $libname.a'
19543 # Create ${libname}_ixlibrary.a entries in /sys/libs.
19544 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'
19548 library_names_spec
='${libname}${shared_ext}'
19549 dynamic_linker
="$host_os ld.so"
19550 shlibpath_var
=LIBRARY_PATH
19556 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19557 soname_spec
='${libname}${release}${shared_ext}$major'
19558 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
19559 shlibpath_var
=LD_LIBRARY_PATH
19560 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19561 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
19562 # the default ld.so.conf also contains /usr/contrib/lib and
19563 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19564 # libtool to hard-code these into programs
19567 cygwin
* | mingw
* | pw32
*)
19568 version_type
=windows
19573 case $GCC,$host_os in
19574 yes,cygwin
* | yes,mingw
* | yes,pw32
*)
19575 library_names_spec
='$libname.dll.a'
19576 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19577 postinstall_cmds
='base_file=`basename \${file}`~
19578 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19579 dldir=$destdir/`dirname \$dlpath`~
19580 test -d \$dldir || mkdir -p \$dldir~
19581 $install_prog $dir/$dlname \$dldir/$dlname~
19582 chmod a+x \$dldir/$dlname'
19583 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19584 dlpath=$dir/\$dldll~
19586 shlibpath_overrides_runpath
=yes
19590 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19591 soname_spec
='`echo ${libname} | sed -e 's
/^lib
/cyg
/'``echo ${release} | $SED -e 's
/[.
]/-/g
'`${versuffix}${shared_ext}'
19592 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
19595 # MinGW DLLs use traditional 'lib' prefix
19596 soname_spec
='${libname}`echo ${release} | $SED -e 's
/[.
]/-/g
'`${versuffix}${shared_ext}'
19597 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19598 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev
/null
; then
19599 # It is most probably a Windows format PATH printed by
19600 # mingw gcc, but we are running on Cygwin. Gcc prints its search
19601 # path with ; separators, and with drive letters. We can handle the
19602 # drive letters (cygwin fileutils understands them), so leave them,
19603 # especially as we might pass files found there to a mingw objdump,
19604 # which wouldn't understand a cygwinified path. Ahh.
19605 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19607 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19611 # pw32 DLLs use 'pw' prefix rather than 'lib'
19612 library_names_spec
='`echo ${libname} | sed -e 's
/^lib
/pw
/'``echo ${release} | $SED -e 's
/[.
]/-/g
'`${versuffix}${shared_ext}'
19618 library_names_spec
='${libname}`echo ${release} | $SED -e 's
/[.
]/-/g
'`${versuffix}${shared_ext} $libname.lib'
19621 dynamic_linker
='Win32 ld.exe'
19622 # FIXME: first we should search . and the directory the executable is in
19626 darwin
* | rhapsody
*)
19627 dynamic_linker
="$host_os dyld"
19628 version_type
=darwin
19631 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19632 soname_spec
='${libname}${release}${major}$shared_ext'
19633 shlibpath_overrides_runpath
=yes
19634 shlibpath_var
=DYLD_LIBRARY_PATH
19635 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
19637 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
19644 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19645 soname_spec
='${libname}${release}${shared_ext}$major'
19646 shlibpath_var
=LD_LIBRARY_PATH
19653 freebsd
* | dragonfly
*)
19654 # DragonFly does not have aout. When/if they implement a new
19655 # versioning mechanism, adjust this.
19656 if test -x /usr
/bin
/objformat
; then
19657 objformat
=`/usr/bin/objformat`
19660 freebsd
[123]*) objformat
=aout
;;
19661 *) objformat
=elf
;;
19664 version_type
=freebsd
-$objformat
19665 case $version_type in
19667 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19672 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19676 shlibpath_var
=LD_LIBRARY_PATH
19679 shlibpath_overrides_runpath
=yes
19681 freebsd3.
[01]* | freebsdelf3.
[01]*)
19682 shlibpath_overrides_runpath
=yes
19683 hardcode_into_libs
=yes
19685 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
19686 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
19687 shlibpath_overrides_runpath
=no
19688 hardcode_into_libs
=yes
19690 *) # from 4.6 on, and DragonFly
19691 shlibpath_overrides_runpath
=yes
19692 hardcode_into_libs
=yes
19701 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19702 soname_spec
='${libname}${release}${shared_ext}$major'
19703 shlibpath_var
=LD_LIBRARY_PATH
19704 hardcode_into_libs
=yes
19707 hpux9
* | hpux10
* | hpux11
*)
19708 # Give a soname corresponding to the major version so that dld.sl refuses to
19709 # link against other versions.
19716 hardcode_into_libs
=yes
19717 dynamic_linker
="$host_os dld.so"
19718 shlibpath_var
=LD_LIBRARY_PATH
19719 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
19720 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19721 soname_spec
='${libname}${release}${shared_ext}$major'
19722 if test "X$HPUX_IA64_MODE" = X32
; then
19723 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19725 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
19727 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
19731 hardcode_into_libs
=yes
19732 dynamic_linker
="$host_os dld.sl"
19733 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
19734 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
19735 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19736 soname_spec
='${libname}${release}${shared_ext}$major'
19737 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19738 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
19742 dynamic_linker
="$host_os dld.sl"
19743 shlibpath_var
=SHLIB_PATH
19744 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
19745 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19746 soname_spec
='${libname}${release}${shared_ext}$major'
19749 # HP-UX runs *really* slowly unless shared libraries are mode 555.
19750 postinstall_cmds
='chmod 555 $lib'
19757 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19758 soname_spec
='${libname}${release}${shared_ext}$major'
19759 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
19760 shlibpath_var
=LD_LIBRARY_PATH
19761 shlibpath_overrides_runpath
=no
19762 hardcode_into_libs
=yes
19765 irix5
* | irix6
* | nonstopux
*)
19767 nonstopux
*) version_type
=nonstopux
;;
19769 if test "$lt_cv_prog_gnu_ld" = yes; then
19777 soname_spec
='${libname}${release}${shared_ext}$major'
19778 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19780 irix5
* | nonstopux
*)
19781 libsuff
= shlibsuff
=
19784 case $LD in # libtool.m4 will add one of these switches to LD
19785 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19786 libsuff
= shlibsuff
= libmagic
=32-bit;;
19787 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19788 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
19789 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19790 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
19791 *) libsuff
= shlibsuff
= libmagic
=never
-match;;
19795 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
19796 shlibpath_overrides_runpath
=no
19797 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19798 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
19799 hardcode_into_libs
=yes
19802 # No shared lib support for Linux oldld, aout, or coff.
19803 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
19807 # This must be Linux ELF.
19808 linux
* | k
*bsd
*-gnu)
19812 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19813 soname_spec
='${libname}${release}${shared_ext}$major'
19814 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19815 shlibpath_var
=LD_LIBRARY_PATH
19816 shlibpath_overrides_runpath
=no
19817 # This implies no fast_install, which is unacceptable.
19818 # Some rework will be needed to allow for fast_install
19819 # before this can be enabled.
19820 hardcode_into_libs
=yes
19822 # Append ld.so.conf contents to the search path
19823 if test -f /etc
/ld.so.conf
; then
19824 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' ' '`
19825 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
19828 # We used to test for /lib/ld.so.1 and disable shared libraries on
19829 # powerpc, because MkLinux only supported shared libraries with the
19830 # GNU dynamic linker. Since this was broken with cross compilers,
19831 # most powerpc-linux boxes support dynamic linking these days and
19832 # people can always --disable-shared, the test was removed, and we
19833 # assume the GNU/Linux dynamic linker is in use.
19834 dynamic_linker
='GNU/Linux ld.so'
19841 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19842 soname_spec
='${libname}${release}${shared_ext}$major'
19843 shlibpath_var
=LD_LIBRARY_PATH
19844 shlibpath_overrides_runpath
=no
19845 hardcode_into_libs
=yes
19846 dynamic_linker
='NetBSD ld.elf_so'
19853 if echo __ELF__
| $CC -E - | grep __ELF__
>/dev
/null
; then
19854 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19855 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19856 dynamic_linker
='NetBSD (a.out) ld.so'
19858 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19859 soname_spec
='${libname}${release}${shared_ext}$major'
19860 dynamic_linker
='NetBSD ld.elf_so'
19862 shlibpath_var
=LD_LIBRARY_PATH
19863 shlibpath_overrides_runpath
=yes
19864 hardcode_into_libs
=yes
19869 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19870 shlibpath_var
=LD_LIBRARY_PATH
19871 shlibpath_overrides_runpath
=yes
19878 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19879 soname_spec
='${libname}${release}${shared_ext}$major'
19880 shlibpath_var
=LD_LIBRARY_PATH
19881 shlibpath_overrides_runpath
=yes
19886 sys_lib_dlsearch_path_spec
="/usr/lib"
19888 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19890 openbsd3.3
| openbsd3.3.
*) need_version
=yes ;;
19891 *) need_version
=no
;;
19893 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19894 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19895 shlibpath_var
=LD_LIBRARY_PATH
19896 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19898 openbsd2.
[89] | openbsd2.
[89].
*)
19899 shlibpath_overrides_runpath
=no
19902 shlibpath_overrides_runpath
=yes
19906 shlibpath_overrides_runpath
=yes
19911 libname_spec
='$name'
19914 library_names_spec
='$libname${shared_ext} $libname.a'
19915 dynamic_linker
='OS/2 ld.exe'
19916 shlibpath_var
=LIBPATH
19919 osf3
* | osf4
* | osf5
*)
19923 soname_spec
='${libname}${release}${shared_ext}$major'
19924 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19925 shlibpath_var
=LD_LIBRARY_PATH
19926 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19927 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
19938 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19939 soname_spec
='${libname}${release}${shared_ext}$major'
19940 shlibpath_var
=LD_LIBRARY_PATH
19941 shlibpath_overrides_runpath
=yes
19942 hardcode_into_libs
=yes
19943 # ldd complains unless libraries are executable
19944 postinstall_cmds
='chmod +x $lib'
19949 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19950 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19951 shlibpath_var
=LD_LIBRARY_PATH
19952 shlibpath_overrides_runpath
=yes
19953 if test "$with_gnu_ld" = yes; then
19961 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19962 soname_spec
='${libname}${release}${shared_ext}$major'
19963 shlibpath_var
=LD_LIBRARY_PATH
19964 case $host_vendor in
19966 shlibpath_overrides_runpath
=no
19968 export_dynamic_flag_spec
='${wl}-Blargedynsym'
19969 runpath_var
=LD_RUN_PATH
19977 shlibpath_overrides_runpath
=no
19978 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
19984 if test -d /usr
/nec
;then
19986 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19987 soname_spec
='$libname${shared_ext}.$major'
19988 shlibpath_var
=LD_LIBRARY_PATH
19992 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
19993 version_type
=freebsd
-elf
19996 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19997 soname_spec
='${libname}${release}${shared_ext}$major'
19998 shlibpath_var
=LD_LIBRARY_PATH
19999 hardcode_into_libs
=yes
20000 if test "$with_gnu_ld" = yes; then
20001 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20002 shlibpath_overrides_runpath
=no
20004 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
20005 shlibpath_overrides_runpath
=yes
20008 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
20012 sys_lib_dlsearch_path_spec
='/usr/lib'
20017 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20018 soname_spec
='${libname}${release}${shared_ext}$major'
20019 shlibpath_var
=LD_LIBRARY_PATH
20026 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20027 echo "${ECHO_T}$dynamic_linker" >&6; }
20028 test "$dynamic_linker" = no
&& can_build_shared
=no
20030 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
20031 echo $ECHO_N "(cached) $ECHO_C" >&6
20033 lt_cv_sys_lib_search_path_spec
="$sys_lib_search_path_spec"
20036 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
20037 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
20038 echo $ECHO_N "(cached) $ECHO_C" >&6
20040 lt_cv_sys_lib_dlsearch_path_spec
="$sys_lib_dlsearch_path_spec"
20043 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
20045 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
20046 if test "$GCC" = yes; then
20047 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20050 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20051 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20052 hardcode_action_GCJ
=
20053 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
20054 test -n "$runpath_var_GCJ" || \
20055 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
20057 # We can hardcode non-existant directories.
20058 if test "$hardcode_direct_GCJ" != no
&&
20059 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20060 # have to relink, otherwise we might link with an installed library
20061 # when we should be linking with a yet-to-be-installed one
20062 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
20063 test "$hardcode_minus_L_GCJ" != no
; then
20064 # Linking always hardcodes the temporary library directory.
20065 hardcode_action_GCJ
=relink
20067 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20068 hardcode_action_GCJ
=immediate
20071 # We cannot hardcode anything, or else we can only hardcode existing
20073 hardcode_action_GCJ
=unsupported
20075 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
20076 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
20078 if test "$hardcode_action_GCJ" = relink
; then
20079 # Fast installation is not supported
20080 enable_fast_install
=no
20081 elif test "$shlibpath_overrides_runpath" = yes ||
20082 test "$enable_shared" = no
; then
20083 # Fast installation is not necessary
20084 enable_fast_install
=needless
20088 # The else clause should only fire when bootstrapping the
20089 # libtool distribution, otherwise you forgot to ship ltmain.sh
20090 # with your package, and you will get complaints that there are
20091 # no rules to generate ltmain.sh.
20092 if test -f "$ltmain"; then
20093 # See if we are running on zsh, and set the options which allow our commands through
20094 # without removal of \ escapes.
20095 if test -n "${ZSH_VERSION+set}" ; then
20096 setopt NO_GLOB_SUBST
20098 # Now quote all the things that may contain metacharacters while being
20099 # careful not to overquote the AC_SUBSTed values. We take copies of the
20100 # variables and quote the copies for generation of the libtool script.
20101 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20103 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20104 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20105 deplibs_check_method reload_flag reload_cmds need_locks \
20106 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20107 lt_cv_sys_global_symbol_to_c_name_address \
20108 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20109 old_postinstall_cmds old_postuninstall_cmds \
20113 lt_prog_compiler_wl_GCJ \
20114 lt_prog_compiler_pic_GCJ \
20115 lt_prog_compiler_static_GCJ \
20116 lt_prog_compiler_no_builtin_flag_GCJ \
20117 export_dynamic_flag_spec_GCJ \
20118 thread_safe_flag_spec_GCJ \
20119 whole_archive_flag_spec_GCJ \
20120 enable_shared_with_static_runtimes_GCJ \
20121 old_archive_cmds_GCJ \
20122 old_archive_from_new_cmds_GCJ \
20123 predep_objects_GCJ \
20124 postdep_objects_GCJ \
20127 compiler_lib_search_path_GCJ \
20128 compiler_lib_search_dirs_GCJ \
20130 archive_expsym_cmds_GCJ \
20131 postinstall_cmds_GCJ \
20132 postuninstall_cmds_GCJ \
20133 old_archive_from_expsyms_cmds_GCJ \
20134 allow_undefined_flag_GCJ \
20135 no_undefined_flag_GCJ \
20136 export_symbols_cmds_GCJ \
20137 hardcode_libdir_flag_spec_GCJ \
20138 hardcode_libdir_flag_spec_ld_GCJ \
20139 hardcode_libdir_separator_GCJ \
20140 hardcode_automatic_GCJ \
20142 module_expsym_cmds_GCJ \
20143 lt_cv_prog_compiler_c_o_GCJ \
20144 fix_srcfile_path_GCJ \
20145 exclude_expsyms_GCJ \
20146 include_expsyms_GCJ
; do
20149 old_archive_cmds_GCJ
| \
20150 old_archive_from_new_cmds_GCJ
| \
20151 archive_cmds_GCJ
| \
20152 archive_expsym_cmds_GCJ
| \
20153 module_cmds_GCJ
| \
20154 module_expsym_cmds_GCJ
| \
20155 old_archive_from_expsyms_cmds_GCJ
| \
20156 export_symbols_cmds_GCJ
| \
20157 extract_expsyms_cmds
| reload_cmds
| finish_cmds
| \
20158 postinstall_cmds
| postuninstall_cmds
| \
20159 old_postinstall_cmds
| old_postuninstall_cmds
| \
20160 sys_lib_search_path_spec
| sys_lib_dlsearch_path_spec
)
20161 # Double-quote double-evaled strings.
20162 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20165 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20171 *'\$0 --fallback-echo"')
20172 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20178 cat <<__EOF__ >> "$cfgfile"
20179 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20181 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20183 # Shell to use when invoking shell scripts.
20186 # Whether or not to build shared libraries.
20187 build_libtool_libs=$enable_shared
20189 # Whether or not to build static libraries.
20190 build_old_libs=$enable_static
20192 # Whether or not to add -lc for building shared libraries.
20193 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
20195 # Whether or not to disallow shared libs when runtime libs are static
20196 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
20198 # Whether or not to optimize for fast installation.
20199 fast_install=$enable_fast_install
20202 host_alias=$host_alias
20206 # The build system.
20207 build_alias=$build_alias
20211 # An echo program that does not interpret backslashes.
20216 AR_FLAGS=$lt_AR_FLAGS
20221 # LTCC compiler flags.
20222 LTCFLAGS=$lt_LTCFLAGS
20224 # A language-specific compiler.
20225 CC=$lt_compiler_GCJ
20227 # Is the compiler the GNU C compiler?
20233 # The linker used to build libraries.
20236 # Whether we need hard or soft links.
20239 # A BSD-compatible nm program.
20242 # A symbol stripping program
20245 # Used to examine libraries when file_magic_cmd begins "file"
20246 MAGIC_CMD=$MAGIC_CMD
20248 # Used on cygwin: DLL creation program.
20251 # Used on cygwin: object dumper.
20254 # Used on cygwin: assembler.
20257 # The name of the directory that contains temporary libtool files.
20260 # How to create reloadable object files.
20261 reload_flag=$lt_reload_flag
20262 reload_cmds=$lt_reload_cmds
20264 # How to pass a linker flag through the compiler.
20265 wl=$lt_lt_prog_compiler_wl_GCJ
20267 # Object file suffix (normally "o").
20268 objext="$ac_objext"
20270 # Old archive suffix (normally "a").
20273 # Shared library suffix (normally ".so").
20274 shrext_cmds='$shrext_cmds'
20276 # Executable file suffix (normally "").
20279 # Additional compiler flags for building library objects.
20280 pic_flag=$lt_lt_prog_compiler_pic_GCJ
20283 # What is the maximum length of a command?
20284 max_cmd_len=$lt_cv_sys_max_cmd_len
20286 # Does compiler simultaneously support -c and -o options?
20287 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
20289 # Must we lock files when doing compilation?
20290 need_locks=$lt_need_locks
20292 # Do we need the lib prefix for modules?
20293 need_lib_prefix=$need_lib_prefix
20295 # Do we need a version for libraries?
20296 need_version=$need_version
20298 # Whether dlopen is supported.
20299 dlopen_support=$enable_dlopen
20301 # Whether dlopen of programs is supported.
20302 dlopen_self=$enable_dlopen_self
20304 # Whether dlopen of statically linked programs is supported.
20305 dlopen_self_static=$enable_dlopen_self_static
20307 # Compiler flag to prevent dynamic linking.
20308 link_static_flag=$lt_lt_prog_compiler_static_GCJ
20310 # Compiler flag to turn off builtin functions.
20311 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
20313 # Compiler flag to allow reflexive dlopens.
20314 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
20316 # Compiler flag to generate shared objects directly from archives.
20317 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
20319 # Compiler flag to generate thread-safe objects.
20320 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
20322 # Library versioning type.
20323 version_type=$version_type
20325 # Format of library name prefix.
20326 libname_spec=$lt_libname_spec
20328 # List of archive names. First name is the real one, the rest are links.
20329 # The last name is the one that the linker finds with -lNAME.
20330 library_names_spec=$lt_library_names_spec
20332 # The coded name of the library, if different from the real name.
20333 soname_spec=$lt_soname_spec
20335 # Commands used to build and install an old-style archive.
20337 old_archive_cmds=$lt_old_archive_cmds_GCJ
20338 old_postinstall_cmds=$lt_old_postinstall_cmds
20339 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20341 # Create an old-style archive from a shared archive.
20342 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
20344 # Create a temporary old-style archive to link instead of a shared archive.
20345 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
20347 # Commands used to build and install a shared archive.
20348 archive_cmds=$lt_archive_cmds_GCJ
20349 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
20350 postinstall_cmds=$lt_postinstall_cmds
20351 postuninstall_cmds=$lt_postuninstall_cmds
20353 # Commands used to build a loadable module (assumed same as above if empty)
20354 module_cmds=$lt_module_cmds_GCJ
20355 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
20357 # Commands to strip libraries.
20358 old_striplib=$lt_old_striplib
20359 striplib=$lt_striplib
20361 # Dependencies to place before the objects being linked to create a
20363 predep_objects=$lt_predep_objects_GCJ
20365 # Dependencies to place after the objects being linked to create a
20367 postdep_objects=$lt_postdep_objects_GCJ
20369 # Dependencies to place before the objects being linked to create a
20371 predeps=$lt_predeps_GCJ
20373 # Dependencies to place after the objects being linked to create a
20375 postdeps=$lt_postdeps_GCJ
20377 # The directories searched by this compiler when creating a shared
20379 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
20381 # The library search path used internally by the compiler when linking
20382 # a shared library.
20383 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
20385 # Method to check whether dependent libraries are shared objects.
20386 deplibs_check_method=$lt_deplibs_check_method
20388 # Command to use when deplibs_check_method == file_magic.
20389 file_magic_cmd=$lt_file_magic_cmd
20391 # Flag that allows shared libraries with undefined symbols to be built.
20392 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
20394 # Flag that forces no undefined symbols.
20395 no_undefined_flag=$lt_no_undefined_flag_GCJ
20397 # Commands used to finish a libtool library installation in a directory.
20398 finish_cmds=$lt_finish_cmds
20400 # Same as above, but a single script fragment to be evaled but not shown.
20401 finish_eval=$lt_finish_eval
20403 # Take the output of nm and produce a listing of raw symbols and C names.
20404 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20406 # Transform the output of nm in a proper C declaration
20407 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20409 # Transform the output of nm in a C name address pair
20410 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20412 # This is the shared library runtime path variable.
20413 runpath_var=$runpath_var
20415 # This is the shared library path variable.
20416 shlibpath_var=$shlibpath_var
20418 # Is shlibpath searched before the hard-coded library search path?
20419 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20421 # How to hardcode a shared library path into an executable.
20422 hardcode_action=$hardcode_action_GCJ
20424 # Whether we should hardcode library paths into libraries.
20425 hardcode_into_libs=$hardcode_into_libs
20427 # Flag to hardcode \$libdir into a binary during linking.
20428 # This must work even if \$libdir does not exist.
20429 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
20431 # If ld is used when linking, flag to hardcode \$libdir into
20432 # a binary during linking. This must work even if \$libdir does
20434 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
20436 # Whether we need a single -rpath flag with a separated argument.
20437 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
20439 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20440 # resulting binary.
20441 hardcode_direct=$hardcode_direct_GCJ
20443 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20444 # resulting binary.
20445 hardcode_minus_L=$hardcode_minus_L_GCJ
20447 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20448 # the resulting binary.
20449 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
20451 # Set to yes if building a shared library automatically hardcodes DIR into the library
20452 # and all subsequent libraries and executables linked against it.
20453 hardcode_automatic=$hardcode_automatic_GCJ
20455 # Variables whose values should be saved in libtool wrapper scripts and
20456 # restored at relink time.
20457 variables_saved_for_relink="$variables_saved_for_relink"
20459 # Whether libtool must link a program against all its dependency libraries.
20460 link_all_deplibs=$link_all_deplibs_GCJ
20462 # Compile-time system search path for libraries
20463 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20465 # Run-time system search path for libraries
20466 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20468 # Fix the shell variable \$srcfile for the compiler.
20469 fix_srcfile_path=$lt_fix_srcfile_path
20471 # Set to yes if exported symbols are required.
20472 always_export_symbols=$always_export_symbols_GCJ
20474 # The commands to list exported symbols.
20475 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
20477 # The commands to extract the exported symbol list from a shared archive.
20478 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20480 # Symbols that should not be listed in the preloaded symbols.
20481 exclude_expsyms=$lt_exclude_expsyms_GCJ
20483 # Symbols that must always be exported.
20484 include_expsyms=$lt_include_expsyms_GCJ
20486 # ### END LIBTOOL TAG CONFIG: $tagname
20492 # If there is no Makefile yet, we rely on a make rule to execute
20493 # `config.status --recheck' to rerun these tests and create the
20494 # libtool script then.
20495 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20496 if test -f "$ltmain_in"; then
20497 test -f Makefile
&& make "$ltmain"
20503 ac_cpp
='$CPP $CPPFLAGS'
20504 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20505 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20506 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
20518 # Source file extension for RC test sources.
20521 # Object file extension for compiled RC test sources.
20525 # Code to be used in simple compile tests
20526 lt_simple_compile_test_code
='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
20528 # Code to be used in simple link tests
20529 lt_simple_link_test_code
="$lt_simple_compile_test_code"
20531 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20533 # If no C compiler was specified, use CC.
20536 # If no C compiler flags were specified, use CFLAGS.
20537 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
20539 # Allow CC to be a program name with arguments.
20543 # save warnings/boilerplate of simple test code
20544 ac_outfile
=conftest.
$ac_objext
20545 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
20546 eval "$ac_compile" 2>&1 >/dev
/null
| $SED '/^$/d; /^ *+/d' >conftest.err
20547 _lt_compiler_boilerplate
=`cat conftest.err`
20550 ac_outfile
=conftest.
$ac_objext
20551 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
20552 eval "$ac_link" 2>&1 >/dev
/null
| $SED '/^$/d; /^ *+/d' >conftest.err
20553 _lt_linker_boilerplate
=`cat conftest.err`
20557 # Allow CC to be a program name with arguments.
20562 for cc_temp
in $compiler""; do
20564 compile
| *[\\/]compile
| ccache
| *[\\/]ccache
) ;;
20565 distcc
| *[\\/]distcc
| purify
| *[\\/]purify
) ;;
20570 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20572 lt_cv_prog_compiler_c_o_RC
=yes
20574 # The else clause should only fire when bootstrapping the
20575 # libtool distribution, otherwise you forgot to ship ltmain.sh
20576 # with your package, and you will get complaints that there are
20577 # no rules to generate ltmain.sh.
20578 if test -f "$ltmain"; then
20579 # See if we are running on zsh, and set the options which allow our commands through
20580 # without removal of \ escapes.
20581 if test -n "${ZSH_VERSION+set}" ; then
20582 setopt NO_GLOB_SUBST
20584 # Now quote all the things that may contain metacharacters while being
20585 # careful not to overquote the AC_SUBSTed values. We take copies of the
20586 # variables and quote the copies for generation of the libtool script.
20587 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20589 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20590 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20591 deplibs_check_method reload_flag reload_cmds need_locks \
20592 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20593 lt_cv_sys_global_symbol_to_c_name_address \
20594 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20595 old_postinstall_cmds old_postuninstall_cmds \
20599 lt_prog_compiler_wl_RC \
20600 lt_prog_compiler_pic_RC \
20601 lt_prog_compiler_static_RC \
20602 lt_prog_compiler_no_builtin_flag_RC \
20603 export_dynamic_flag_spec_RC \
20604 thread_safe_flag_spec_RC \
20605 whole_archive_flag_spec_RC \
20606 enable_shared_with_static_runtimes_RC \
20607 old_archive_cmds_RC \
20608 old_archive_from_new_cmds_RC \
20609 predep_objects_RC \
20610 postdep_objects_RC \
20613 compiler_lib_search_path_RC \
20614 compiler_lib_search_dirs_RC \
20616 archive_expsym_cmds_RC \
20617 postinstall_cmds_RC \
20618 postuninstall_cmds_RC \
20619 old_archive_from_expsyms_cmds_RC \
20620 allow_undefined_flag_RC \
20621 no_undefined_flag_RC \
20622 export_symbols_cmds_RC \
20623 hardcode_libdir_flag_spec_RC \
20624 hardcode_libdir_flag_spec_ld_RC \
20625 hardcode_libdir_separator_RC \
20626 hardcode_automatic_RC \
20628 module_expsym_cmds_RC \
20629 lt_cv_prog_compiler_c_o_RC \
20630 fix_srcfile_path_RC \
20631 exclude_expsyms_RC \
20632 include_expsyms_RC
; do
20635 old_archive_cmds_RC
| \
20636 old_archive_from_new_cmds_RC
| \
20637 archive_cmds_RC
| \
20638 archive_expsym_cmds_RC
| \
20640 module_expsym_cmds_RC
| \
20641 old_archive_from_expsyms_cmds_RC
| \
20642 export_symbols_cmds_RC
| \
20643 extract_expsyms_cmds
| reload_cmds
| finish_cmds
| \
20644 postinstall_cmds
| postuninstall_cmds
| \
20645 old_postinstall_cmds
| old_postuninstall_cmds
| \
20646 sys_lib_search_path_spec
| sys_lib_dlsearch_path_spec
)
20647 # Double-quote double-evaled strings.
20648 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20651 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20657 *'\$0 --fallback-echo"')
20658 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20664 cat <<__EOF__ >> "$cfgfile"
20665 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20667 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20669 # Shell to use when invoking shell scripts.
20672 # Whether or not to build shared libraries.
20673 build_libtool_libs=$enable_shared
20675 # Whether or not to build static libraries.
20676 build_old_libs=$enable_static
20678 # Whether or not to add -lc for building shared libraries.
20679 build_libtool_need_lc=$archive_cmds_need_lc_RC
20681 # Whether or not to disallow shared libs when runtime libs are static
20682 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
20684 # Whether or not to optimize for fast installation.
20685 fast_install=$enable_fast_install
20688 host_alias=$host_alias
20692 # The build system.
20693 build_alias=$build_alias
20697 # An echo program that does not interpret backslashes.
20702 AR_FLAGS=$lt_AR_FLAGS
20707 # LTCC compiler flags.
20708 LTCFLAGS=$lt_LTCFLAGS
20710 # A language-specific compiler.
20713 # Is the compiler the GNU C compiler?
20719 # The linker used to build libraries.
20722 # Whether we need hard or soft links.
20725 # A BSD-compatible nm program.
20728 # A symbol stripping program
20731 # Used to examine libraries when file_magic_cmd begins "file"
20732 MAGIC_CMD=$MAGIC_CMD
20734 # Used on cygwin: DLL creation program.
20737 # Used on cygwin: object dumper.
20740 # Used on cygwin: assembler.
20743 # The name of the directory that contains temporary libtool files.
20746 # How to create reloadable object files.
20747 reload_flag=$lt_reload_flag
20748 reload_cmds=$lt_reload_cmds
20750 # How to pass a linker flag through the compiler.
20751 wl=$lt_lt_prog_compiler_wl_RC
20753 # Object file suffix (normally "o").
20754 objext="$ac_objext"
20756 # Old archive suffix (normally "a").
20759 # Shared library suffix (normally ".so").
20760 shrext_cmds='$shrext_cmds'
20762 # Executable file suffix (normally "").
20765 # Additional compiler flags for building library objects.
20766 pic_flag=$lt_lt_prog_compiler_pic_RC
20769 # What is the maximum length of a command?
20770 max_cmd_len=$lt_cv_sys_max_cmd_len
20772 # Does compiler simultaneously support -c and -o options?
20773 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20775 # Must we lock files when doing compilation?
20776 need_locks=$lt_need_locks
20778 # Do we need the lib prefix for modules?
20779 need_lib_prefix=$need_lib_prefix
20781 # Do we need a version for libraries?
20782 need_version=$need_version
20784 # Whether dlopen is supported.
20785 dlopen_support=$enable_dlopen
20787 # Whether dlopen of programs is supported.
20788 dlopen_self=$enable_dlopen_self
20790 # Whether dlopen of statically linked programs is supported.
20791 dlopen_self_static=$enable_dlopen_self_static
20793 # Compiler flag to prevent dynamic linking.
20794 link_static_flag=$lt_lt_prog_compiler_static_RC
20796 # Compiler flag to turn off builtin functions.
20797 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20799 # Compiler flag to allow reflexive dlopens.
20800 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20802 # Compiler flag to generate shared objects directly from archives.
20803 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20805 # Compiler flag to generate thread-safe objects.
20806 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20808 # Library versioning type.
20809 version_type=$version_type
20811 # Format of library name prefix.
20812 libname_spec=$lt_libname_spec
20814 # List of archive names. First name is the real one, the rest are links.
20815 # The last name is the one that the linker finds with -lNAME.
20816 library_names_spec=$lt_library_names_spec
20818 # The coded name of the library, if different from the real name.
20819 soname_spec=$lt_soname_spec
20821 # Commands used to build and install an old-style archive.
20823 old_archive_cmds=$lt_old_archive_cmds_RC
20824 old_postinstall_cmds=$lt_old_postinstall_cmds
20825 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20827 # Create an old-style archive from a shared archive.
20828 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20830 # Create a temporary old-style archive to link instead of a shared archive.
20831 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20833 # Commands used to build and install a shared archive.
20834 archive_cmds=$lt_archive_cmds_RC
20835 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20836 postinstall_cmds=$lt_postinstall_cmds
20837 postuninstall_cmds=$lt_postuninstall_cmds
20839 # Commands used to build a loadable module (assumed same as above if empty)
20840 module_cmds=$lt_module_cmds_RC
20841 module_expsym_cmds=$lt_module_expsym_cmds_RC
20843 # Commands to strip libraries.
20844 old_striplib=$lt_old_striplib
20845 striplib=$lt_striplib
20847 # Dependencies to place before the objects being linked to create a
20849 predep_objects=$lt_predep_objects_RC
20851 # Dependencies to place after the objects being linked to create a
20853 postdep_objects=$lt_postdep_objects_RC
20855 # Dependencies to place before the objects being linked to create a
20857 predeps=$lt_predeps_RC
20859 # Dependencies to place after the objects being linked to create a
20861 postdeps=$lt_postdeps_RC
20863 # The directories searched by this compiler when creating a shared
20865 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
20867 # The library search path used internally by the compiler when linking
20868 # a shared library.
20869 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20871 # Method to check whether dependent libraries are shared objects.
20872 deplibs_check_method=$lt_deplibs_check_method
20874 # Command to use when deplibs_check_method == file_magic.
20875 file_magic_cmd=$lt_file_magic_cmd
20877 # Flag that allows shared libraries with undefined symbols to be built.
20878 allow_undefined_flag=$lt_allow_undefined_flag_RC
20880 # Flag that forces no undefined symbols.
20881 no_undefined_flag=$lt_no_undefined_flag_RC
20883 # Commands used to finish a libtool library installation in a directory.
20884 finish_cmds=$lt_finish_cmds
20886 # Same as above, but a single script fragment to be evaled but not shown.
20887 finish_eval=$lt_finish_eval
20889 # Take the output of nm and produce a listing of raw symbols and C names.
20890 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20892 # Transform the output of nm in a proper C declaration
20893 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20895 # Transform the output of nm in a C name address pair
20896 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20898 # This is the shared library runtime path variable.
20899 runpath_var=$runpath_var
20901 # This is the shared library path variable.
20902 shlibpath_var=$shlibpath_var
20904 # Is shlibpath searched before the hard-coded library search path?
20905 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20907 # How to hardcode a shared library path into an executable.
20908 hardcode_action=$hardcode_action_RC
20910 # Whether we should hardcode library paths into libraries.
20911 hardcode_into_libs=$hardcode_into_libs
20913 # Flag to hardcode \$libdir into a binary during linking.
20914 # This must work even if \$libdir does not exist.
20915 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20917 # If ld is used when linking, flag to hardcode \$libdir into
20918 # a binary during linking. This must work even if \$libdir does
20920 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20922 # Whether we need a single -rpath flag with a separated argument.
20923 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20925 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20926 # resulting binary.
20927 hardcode_direct=$hardcode_direct_RC
20929 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20930 # resulting binary.
20931 hardcode_minus_L=$hardcode_minus_L_RC
20933 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20934 # the resulting binary.
20935 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20937 # Set to yes if building a shared library automatically hardcodes DIR into the library
20938 # and all subsequent libraries and executables linked against it.
20939 hardcode_automatic=$hardcode_automatic_RC
20941 # Variables whose values should be saved in libtool wrapper scripts and
20942 # restored at relink time.
20943 variables_saved_for_relink="$variables_saved_for_relink"
20945 # Whether libtool must link a program against all its dependency libraries.
20946 link_all_deplibs=$link_all_deplibs_RC
20948 # Compile-time system search path for libraries
20949 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20951 # Run-time system search path for libraries
20952 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20954 # Fix the shell variable \$srcfile for the compiler.
20955 fix_srcfile_path=$lt_fix_srcfile_path
20957 # Set to yes if exported symbols are required.
20958 always_export_symbols=$always_export_symbols_RC
20960 # The commands to list exported symbols.
20961 export_symbols_cmds=$lt_export_symbols_cmds_RC
20963 # The commands to extract the exported symbol list from a shared archive.
20964 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20966 # Symbols that should not be listed in the preloaded symbols.
20967 exclude_expsyms=$lt_exclude_expsyms_RC
20969 # Symbols that must always be exported.
20970 include_expsyms=$lt_include_expsyms_RC
20972 # ### END LIBTOOL TAG CONFIG: $tagname
20978 # If there is no Makefile yet, we rely on a make rule to execute
20979 # `config.status --recheck' to rerun these tests and create the
20980 # libtool script then.
20981 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20982 if test -f "$ltmain_in"; then
20983 test -f Makefile
&& make "$ltmain"
20989 ac_cpp
='$CPP $CPPFLAGS'
20990 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20991 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20992 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
20999 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
21000 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
21001 { (exit 1); exit 1; }; }
21005 # Append the new tag name to the list of available tags.
21006 if test -n "$tagname" ; then
21007 available_tags
="$available_tags $tagname"
21013 # Now substitute the updated list of available tags.
21014 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
21015 mv "${ofile}T" "$ofile"
21019 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
21020 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
21021 { (exit 1); exit 1; }; }
21027 # This can be used to rebuild libtool when needed
21028 LIBTOOL_DEPS
="$ac_aux_dir/ltmain.sh"
21030 # Always use our own libtool.
21031 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
21033 # Prevent multiple expansion
21055 LIBTOOL
="$LIBTOOL --silent"
21057 subdirs
="$subdirs libltdl"
21064 cat >>confdefs.h
<<_ACEOF
21069 cat >>confdefs.h
<<_ACEOF
21076 cat >>confdefs.h
<<_ACEOF
21081 cat >>confdefs.h
<<_ACEOF
21085 if test "${ac_cv_header_windows_h+set}" = set; then
21086 { echo "$as_me:$LINENO: checking for windows.h" >&5
21087 echo $ECHO_N "checking for windows.h... $ECHO_C" >&6; }
21088 if test "${ac_cv_header_windows_h+set}" = set; then
21089 echo $ECHO_N "(cached) $ECHO_C" >&6
21091 { echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
21092 echo "${ECHO_T}$ac_cv_header_windows_h" >&6; }
21094 # Is the header compilable?
21095 { echo "$as_me:$LINENO: checking windows.h usability" >&5
21096 echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6; }
21097 cat >conftest.
$ac_ext <<_ACEOF
21100 cat confdefs.h
>>conftest.
$ac_ext
21101 cat >>conftest.
$ac_ext <<_ACEOF
21102 /* end confdefs.h. */
21103 $ac_includes_default
21104 #include <windows.h>
21106 rm -f conftest.
$ac_objext
21107 if { (ac_try
="$ac_compile"
21108 case "(($ac_try" in
21109 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
21110 *) ac_try_echo=$ac_try;;
21112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21113 (eval "$ac_compile") 2>conftest.er1
21115 grep -v '^ *+' conftest.er1 >conftest.err
21117 cat conftest.err >&5
21118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21119 (exit $ac_status); } && {
21120 test -z "$ac_c_werror_flag" ||
21121 test ! -s conftest.err
21122 } && test -s conftest.$ac_objext; then
21123 ac_header_compiler=yes
21125 echo "$as_me: failed program was:" >&5
21126 sed 's/^/| /' conftest.$ac_ext >&5
21128 ac_header_compiler=no
21131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21132 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21133 echo "${ECHO_T}$ac_header_compiler" >&6; }
21135 # Is the header present?
21136 { echo "$as_me:$LINENO: checking windows.h presence" >&5
21137 echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6; }
21138 cat >conftest.$ac_ext <<_ACEOF
21141 cat confdefs.h >>conftest.$ac_ext
21142 cat >>conftest.$ac_ext <<_ACEOF
21143 /* end confdefs.h. */
21144 #include <windows.h>
21146 if { (ac_try="$ac_cpp conftest.$ac_ext"
21147 case "(($ac_try" in
21148 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
21149 *) ac_try_echo
=$ac_try;;
21151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21152 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21154 grep -v '^ *+' conftest.er1
>conftest.err
21156 cat conftest.err
>&5
21157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21158 (exit $ac_status); } >/dev
/null
&& {
21159 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21160 test ! -s conftest.err
21162 ac_header_preproc
=yes
21164 echo "$as_me: failed program was:" >&5
21165 sed 's/^/| /' conftest.
$ac_ext >&5
21167 ac_header_preproc
=no
21170 rm -f conftest.err conftest.
$ac_ext
21171 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21172 echo "${ECHO_T}$ac_header_preproc" >&6; }
21174 # So? What about this header?
21175 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21177 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
21178 echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21179 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
21180 echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
21181 ac_header_preproc
=yes
21184 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
21185 echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
21186 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
21187 echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
21188 { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
21189 echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
21190 { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5
21191 echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;}
21192 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
21193 echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
21194 { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
21195 echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
21199 { echo "$as_me:$LINENO: checking for windows.h" >&5
21200 echo $ECHO_N "checking for windows.h... $ECHO_C" >&6; }
21201 if test "${ac_cv_header_windows_h+set}" = set; then
21202 echo $ECHO_N "(cached) $ECHO_C" >&6
21204 ac_cv_header_windows_h
=$ac_header_preproc
21206 { echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
21207 echo "${ECHO_T}$ac_cv_header_windows_h" >&6; }
21210 if test $ac_cv_header_windows_h = yes; then
21213 { { echo "$as_me:$LINENO: error: ** MinGW and no windows.h. I give up." >&5
21214 echo "$as_me: error: ** MinGW and no windows.h. I give up." >&2;}
21215 { (exit 1); exit 1; }; }
21219 if test "${ac_cv_header_winsock2_h+set}" = set; then
21220 { echo "$as_me:$LINENO: checking for winsock2.h" >&5
21221 echo $ECHO_N "checking for winsock2.h... $ECHO_C" >&6; }
21222 if test "${ac_cv_header_winsock2_h+set}" = set; then
21223 echo $ECHO_N "(cached) $ECHO_C" >&6
21225 { echo "$as_me:$LINENO: result: $ac_cv_header_winsock2_h" >&5
21226 echo "${ECHO_T}$ac_cv_header_winsock2_h" >&6; }
21228 # Is the header compilable?
21229 { echo "$as_me:$LINENO: checking winsock2.h usability" >&5
21230 echo $ECHO_N "checking winsock2.h usability... $ECHO_C" >&6; }
21231 cat >conftest.
$ac_ext <<_ACEOF
21234 cat confdefs.h
>>conftest.
$ac_ext
21235 cat >>conftest.
$ac_ext <<_ACEOF
21236 /* end confdefs.h. */
21237 $ac_includes_default
21238 #include <winsock2.h>
21240 rm -f conftest.
$ac_objext
21241 if { (ac_try
="$ac_compile"
21242 case "(($ac_try" in
21243 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
21244 *) ac_try_echo=$ac_try;;
21246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21247 (eval "$ac_compile") 2>conftest.er1
21249 grep -v '^ *+' conftest.er1 >conftest.err
21251 cat conftest.err >&5
21252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21253 (exit $ac_status); } && {
21254 test -z "$ac_c_werror_flag" ||
21255 test ! -s conftest.err
21256 } && test -s conftest.$ac_objext; then
21257 ac_header_compiler=yes
21259 echo "$as_me: failed program was:" >&5
21260 sed 's/^/| /' conftest.$ac_ext >&5
21262 ac_header_compiler=no
21265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21266 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21267 echo "${ECHO_T}$ac_header_compiler" >&6; }
21269 # Is the header present?
21270 { echo "$as_me:$LINENO: checking winsock2.h presence" >&5
21271 echo $ECHO_N "checking winsock2.h presence... $ECHO_C" >&6; }
21272 cat >conftest.$ac_ext <<_ACEOF
21275 cat confdefs.h >>conftest.$ac_ext
21276 cat >>conftest.$ac_ext <<_ACEOF
21277 /* end confdefs.h. */
21278 #include <winsock2.h>
21280 if { (ac_try="$ac_cpp conftest.$ac_ext"
21281 case "(($ac_try" in
21282 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
21283 *) ac_try_echo
=$ac_try;;
21285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21286 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21288 grep -v '^ *+' conftest.er1
>conftest.err
21290 cat conftest.err
>&5
21291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21292 (exit $ac_status); } >/dev
/null
&& {
21293 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21294 test ! -s conftest.err
21296 ac_header_preproc
=yes
21298 echo "$as_me: failed program was:" >&5
21299 sed 's/^/| /' conftest.
$ac_ext >&5
21301 ac_header_preproc
=no
21304 rm -f conftest.err conftest.
$ac_ext
21305 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21306 echo "${ECHO_T}$ac_header_preproc" >&6; }
21308 # So? What about this header?
21309 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21311 { echo "$as_me:$LINENO: WARNING: winsock2.h: accepted by the compiler, rejected by the preprocessor!" >&5
21312 echo "$as_me: WARNING: winsock2.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21313 { echo "$as_me:$LINENO: WARNING: winsock2.h: proceeding with the compiler's result" >&5
21314 echo "$as_me: WARNING: winsock2.h: proceeding with the compiler's result" >&2;}
21315 ac_header_preproc
=yes
21318 { echo "$as_me:$LINENO: WARNING: winsock2.h: present but cannot be compiled" >&5
21319 echo "$as_me: WARNING: winsock2.h: present but cannot be compiled" >&2;}
21320 { echo "$as_me:$LINENO: WARNING: winsock2.h: check for missing prerequisite headers?" >&5
21321 echo "$as_me: WARNING: winsock2.h: check for missing prerequisite headers?" >&2;}
21322 { echo "$as_me:$LINENO: WARNING: winsock2.h: see the Autoconf documentation" >&5
21323 echo "$as_me: WARNING: winsock2.h: see the Autoconf documentation" >&2;}
21324 { echo "$as_me:$LINENO: WARNING: winsock2.h: section \"Present But Cannot Be Compiled\"" >&5
21325 echo "$as_me: WARNING: winsock2.h: section \"Present But Cannot Be Compiled\"" >&2;}
21326 { echo "$as_me:$LINENO: WARNING: winsock2.h: proceeding with the preprocessor's result" >&5
21327 echo "$as_me: WARNING: winsock2.h: proceeding with the preprocessor's result" >&2;}
21328 { echo "$as_me:$LINENO: WARNING: winsock2.h: in the future, the compiler will take precedence" >&5
21329 echo "$as_me: WARNING: winsock2.h: in the future, the compiler will take precedence" >&2;}
21333 { echo "$as_me:$LINENO: checking for winsock2.h" >&5
21334 echo $ECHO_N "checking for winsock2.h... $ECHO_C" >&6; }
21335 if test "${ac_cv_header_winsock2_h+set}" = set; then
21336 echo $ECHO_N "(cached) $ECHO_C" >&6
21338 ac_cv_header_winsock2_h
=$ac_header_preproc
21340 { echo "$as_me:$LINENO: result: $ac_cv_header_winsock2_h" >&5
21341 echo "${ECHO_T}$ac_cv_header_winsock2_h" >&6; }
21344 if test $ac_cv_header_winsock2_h = yes; then
21347 { { echo "$as_me:$LINENO: error: ** MinGW and no winsock2.h. I give up." >&5
21348 echo "$as_me: error: ** MinGW and no winsock2.h. I give up." >&2;}
21349 { (exit 1); exit 1; }; }
21353 LIBS
="$LIBS -lws2_32 -liphlpapi"
21357 CPPFLAGS
="$CFLAGS -D_ALL_SOURCE -D_XOPEN_SOURCE=500"
21361 CPPFLAGS
="$CFLAGS -D_POSIX_PTHREAD_SEMANTICS -D_XPG4_2 -D__EXTENSIONS__"
21367 if test "$is_mingw" = "yes"; then
21377 # backwards support for IRC_CFLAGS
21378 CFLAGS
="$IRC_CFLAGS $CFLAGS -O0 -Wall"
21380 if test "$libexecdir" = '${exec_prefix}/libexec' &&
21381 test "$localstatedir" = '${prefix}/var'; then
21382 libexecdir
='${bindir}'
21383 localstatedir
='${prefix}'
21386 { echo "$as_me:$LINENO: checking for pid_t" >&5
21387 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
21388 if test "${ac_cv_type_pid_t+set}" = set; then
21389 echo $ECHO_N "(cached) $ECHO_C" >&6
21391 cat >conftest.
$ac_ext <<_ACEOF
21394 cat confdefs.h
>>conftest.
$ac_ext
21395 cat >>conftest.
$ac_ext <<_ACEOF
21396 /* end confdefs.h. */
21397 $ac_includes_default
21398 typedef pid_t ac__type_new_;
21402 if ((ac__type_new_ *) 0)
21404 if (sizeof (ac__type_new_))
21410 rm -f conftest.
$ac_objext
21411 if { (ac_try
="$ac_compile"
21412 case "(($ac_try" in
21413 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
21414 *) ac_try_echo=$ac_try;;
21416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21417 (eval "$ac_compile") 2>conftest.er1
21419 grep -v '^ *+' conftest.er1 >conftest.err
21421 cat conftest.err >&5
21422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21423 (exit $ac_status); } && {
21424 test -z "$ac_c_werror_flag" ||
21425 test ! -s conftest.err
21426 } && test -s conftest.$ac_objext; then
21427 ac_cv_type_pid_t=yes
21429 echo "$as_me: failed program was:" >&5
21430 sed 's/^/| /' conftest.$ac_ext >&5
21432 ac_cv_type_pid_t=no
21435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21437 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
21438 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
21439 if test $ac_cv_type_pid_t = yes; then
21443 cat >>confdefs.h <<_ACEOF
21449 { echo "$as_me:$LINENO: checking for size_t" >&5
21450 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
21451 if test "${ac_cv_type_size_t+set}" = set; then
21452 echo $ECHO_N "(cached) $ECHO_C" >&6
21454 cat >conftest.$ac_ext <<_ACEOF
21457 cat confdefs.h >>conftest.$ac_ext
21458 cat >>conftest.$ac_ext <<_ACEOF
21459 /* end confdefs.h. */
21460 $ac_includes_default
21461 typedef size_t ac__type_new_;
21465 if ((ac__type_new_ *) 0)
21467 if (sizeof (ac__type_new_))
21473 rm -f conftest.$ac_objext
21474 if { (ac_try="$ac_compile"
21475 case "(($ac_try" in
21476 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
21477 *) ac_try_echo
=$ac_try;;
21479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21480 (eval "$ac_compile") 2>conftest.er1
21482 grep -v '^ *+' conftest.er1
>conftest.err
21484 cat conftest.err
>&5
21485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21486 (exit $ac_status); } && {
21487 test -z "$ac_c_werror_flag" ||
21488 test ! -s conftest.err
21489 } && test -s conftest.
$ac_objext; then
21490 ac_cv_type_size_t
=yes
21492 echo "$as_me: failed program was:" >&5
21493 sed 's/^/| /' conftest.
$ac_ext >&5
21495 ac_cv_type_size_t
=no
21498 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21500 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21501 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
21502 if test $ac_cv_type_size_t = yes; then
21506 cat >>confdefs.h
<<_ACEOF
21507 #define size_t unsigned int
21512 { echo "$as_me:$LINENO: checking for ssize_t" >&5
21513 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
21514 if test "${ac_cv_type_ssize_t+set}" = set; then
21515 echo $ECHO_N "(cached) $ECHO_C" >&6
21517 cat >conftest.
$ac_ext <<_ACEOF
21520 cat confdefs.h
>>conftest.
$ac_ext
21521 cat >>conftest.
$ac_ext <<_ACEOF
21522 /* end confdefs.h. */
21523 $ac_includes_default
21524 typedef ssize_t ac__type_new_;
21528 if ((ac__type_new_ *) 0)
21530 if (sizeof (ac__type_new_))
21536 rm -f conftest.
$ac_objext
21537 if { (ac_try
="$ac_compile"
21538 case "(($ac_try" in
21539 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
21540 *) ac_try_echo=$ac_try;;
21542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21543 (eval "$ac_compile") 2>conftest.er1
21545 grep -v '^ *+' conftest.er1 >conftest.err
21547 cat conftest.err >&5
21548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21549 (exit $ac_status); } && {
21550 test -z "$ac_c_werror_flag" ||
21551 test ! -s conftest.err
21552 } && test -s conftest.$ac_objext; then
21553 ac_cv_type_ssize_t=yes
21555 echo "$as_me: failed program was:" >&5
21556 sed 's/^/| /' conftest.$ac_ext >&5
21558 ac_cv_type_ssize_t=no
21561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21563 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
21564 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
21565 if test $ac_cv_type_ssize_t = yes; then
21569 cat >>confdefs.h <<_ACEOF
21570 #define ssize_t int
21575 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
21576 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
21577 if test "${ac_cv_type_uid_t+set}" = set; then
21578 echo $ECHO_N "(cached) $ECHO_C" >&6
21580 cat >conftest.$ac_ext <<_ACEOF
21583 cat confdefs.h >>conftest.$ac_ext
21584 cat >>conftest.$ac_ext <<_ACEOF
21585 /* end confdefs.h. */
21586 #include <sys/types.h>
21589 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21590 $EGREP "uid_t" >/dev/null 2>&1; then
21591 ac_cv_type_uid_t=yes
21593 ac_cv_type_uid_t=no
21598 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
21599 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
21600 if test $ac_cv_type_uid_t = no; then
21602 cat >>confdefs.h <<\_ACEOF
21607 cat >>confdefs.h <<\_ACEOF
21615 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21616 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
21617 if test "${ac_cv_header_stdc+set}" = set; then
21618 echo $ECHO_N "(cached) $ECHO_C" >&6
21620 cat >conftest.$ac_ext <<_ACEOF
21623 cat confdefs.h >>conftest.$ac_ext
21624 cat >>conftest.$ac_ext <<_ACEOF
21625 /* end confdefs.h. */
21626 #include <stdlib.h>
21627 #include <stdarg.h>
21628 #include <string.h>
21639 rm -f conftest.$ac_objext
21640 if { (ac_try="$ac_compile"
21641 case "(($ac_try" in
21642 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
21643 *) ac_try_echo
=$ac_try;;
21645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21646 (eval "$ac_compile") 2>conftest.er1
21648 grep -v '^ *+' conftest.er1
>conftest.err
21650 cat conftest.err
>&5
21651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21652 (exit $ac_status); } && {
21653 test -z "$ac_c_werror_flag" ||
21654 test ! -s conftest.err
21655 } && test -s conftest.
$ac_objext; then
21656 ac_cv_header_stdc
=yes
21658 echo "$as_me: failed program was:" >&5
21659 sed 's/^/| /' conftest.
$ac_ext >&5
21661 ac_cv_header_stdc
=no
21664 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21666 if test $ac_cv_header_stdc = yes; then
21667 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21668 cat >conftest.
$ac_ext <<_ACEOF
21671 cat confdefs.h
>>conftest.
$ac_ext
21672 cat >>conftest.
$ac_ext <<_ACEOF
21673 /* end confdefs.h. */
21674 #include <string.h>
21677 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21678 $EGREP "memchr" >/dev
/null
2>&1; then
21681 ac_cv_header_stdc
=no
21687 if test $ac_cv_header_stdc = yes; then
21688 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21689 cat >conftest.
$ac_ext <<_ACEOF
21692 cat confdefs.h
>>conftest.
$ac_ext
21693 cat >>conftest.
$ac_ext <<_ACEOF
21694 /* end confdefs.h. */
21695 #include <stdlib.h>
21698 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21699 $EGREP "free" >/dev
/null
2>&1; then
21702 ac_cv_header_stdc
=no
21708 if test $ac_cv_header_stdc = yes; then
21709 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21710 if test "$cross_compiling" = yes; then
21713 cat >conftest.
$ac_ext <<_ACEOF
21716 cat confdefs.h
>>conftest.
$ac_ext
21717 cat >>conftest.
$ac_ext <<_ACEOF
21718 /* end confdefs.h. */
21720 #include <stdlib.h>
21721 #if ((' ' & 0x0FF) == 0x020)
21722 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21723 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21725 # define ISLOWER(c) \
21726 (('a' <= (c) && (c) <= 'i') \
21727 || ('j' <= (c) && (c) <= 'r') \
21728 || ('s' <= (c) && (c) <= 'z'))
21729 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21732 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21737 for (i = 0; i < 256; i++)
21738 if (XOR (islower (i), ISLOWER (i))
21739 || toupper (i) != TOUPPER (i))
21744 rm -f conftest
$ac_exeext
21745 if { (ac_try
="$ac_link"
21746 case "(($ac_try" in
21747 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
21748 *) ac_try_echo=$ac_try;;
21750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21751 (eval "$ac_link") 2>&5
21753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21754 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21755 { (case "(($ac_try" in
21756 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
21757 *) ac_try_echo
=$ac_try;;
21759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21760 (eval "$ac_try") 2>&5
21762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21763 (exit $ac_status); }; }; then
21766 echo "$as_me: program exited with status $ac_status" >&5
21767 echo "$as_me: failed program was:" >&5
21768 sed 's/^/| /' conftest.
$ac_ext >&5
21770 ( exit $ac_status )
21771 ac_cv_header_stdc
=no
21773 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
21779 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21780 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
21781 if test $ac_cv_header_stdc = yes; then
21783 cat >>confdefs.h
<<\_ACEOF
21784 #define STDC_HEADERS 1
21809 for ac_header
in crypt.h unistd.h sys
/socket.h sys
/stat.h sys
/time.h
time.h netinet
/in.h arpa
/inet.h errno.h sys
/uio.h spawn.h sys
/poll.h sys
/epoll.h sys
/select.h sys
/devpoll.h sys
/event.h port.h signal.h sys
/signalfd.h
21811 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21812 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21813 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21814 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21815 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21816 echo $ECHO_N "(cached) $ECHO_C" >&6
21818 ac_res
=`eval echo '${'$as_ac_Header'}'`
21819 { echo "$as_me:$LINENO: result: $ac_res" >&5
21820 echo "${ECHO_T}$ac_res" >&6; }
21822 # Is the header compilable?
21823 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21824 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21825 cat >conftest.
$ac_ext <<_ACEOF
21828 cat confdefs.h
>>conftest.
$ac_ext
21829 cat >>conftest.
$ac_ext <<_ACEOF
21830 /* end confdefs.h. */
21831 $ac_includes_default
21832 #include <$ac_header>
21834 rm -f conftest.
$ac_objext
21835 if { (ac_try
="$ac_compile"
21836 case "(($ac_try" in
21837 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
21838 *) ac_try_echo=$ac_try;;
21840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21841 (eval "$ac_compile") 2>conftest.er1
21843 grep -v '^ *+' conftest.er1 >conftest.err
21845 cat conftest.err >&5
21846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21847 (exit $ac_status); } && {
21848 test -z "$ac_c_werror_flag" ||
21849 test ! -s conftest.err
21850 } && test -s conftest.$ac_objext; then
21851 ac_header_compiler=yes
21853 echo "$as_me: failed program was:" >&5
21854 sed 's/^/| /' conftest.$ac_ext >&5
21856 ac_header_compiler=no
21859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21860 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21861 echo "${ECHO_T}$ac_header_compiler" >&6; }
21863 # Is the header present?
21864 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21865 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21866 cat >conftest.$ac_ext <<_ACEOF
21869 cat confdefs.h >>conftest.$ac_ext
21870 cat >>conftest.$ac_ext <<_ACEOF
21871 /* end confdefs.h. */
21872 #include <$ac_header>
21874 if { (ac_try="$ac_cpp conftest.$ac_ext"
21875 case "(($ac_try" in
21876 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
21877 *) ac_try_echo
=$ac_try;;
21879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21880 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21882 grep -v '^ *+' conftest.er1
>conftest.err
21884 cat conftest.err
>&5
21885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21886 (exit $ac_status); } >/dev
/null
&& {
21887 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21888 test ! -s conftest.err
21890 ac_header_preproc
=yes
21892 echo "$as_me: failed program was:" >&5
21893 sed 's/^/| /' conftest.
$ac_ext >&5
21895 ac_header_preproc
=no
21898 rm -f conftest.err conftest.
$ac_ext
21899 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21900 echo "${ECHO_T}$ac_header_preproc" >&6; }
21902 # So? What about this header?
21903 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21905 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21906 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21907 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21908 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21909 ac_header_preproc
=yes
21912 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21913 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21914 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21915 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21916 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21917 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21918 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21919 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21920 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21921 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21922 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21923 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21927 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21928 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21929 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21930 echo $ECHO_N "(cached) $ECHO_C" >&6
21932 eval "$as_ac_Header=\$ac_header_preproc"
21934 ac_res
=`eval echo '${'$as_ac_Header'}'`
21935 { echo "$as_me:$LINENO: result: $ac_res" >&5
21936 echo "${ECHO_T}$ac_res" >&6; }
21939 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21940 cat >>confdefs.h
<<_ACEOF
21941 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21948 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
21949 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
21950 if test "${ac_cv_header_time+set}" = set; then
21951 echo $ECHO_N "(cached) $ECHO_C" >&6
21953 cat >conftest.
$ac_ext <<_ACEOF
21956 cat confdefs.h
>>conftest.
$ac_ext
21957 cat >>conftest.
$ac_ext <<_ACEOF
21958 /* end confdefs.h. */
21959 #include <sys/types.h>
21960 #include <sys/time.h>
21966 if ((struct tm *) 0)
21972 rm -f conftest.
$ac_objext
21973 if { (ac_try
="$ac_compile"
21974 case "(($ac_try" in
21975 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
21976 *) ac_try_echo=$ac_try;;
21978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21979 (eval "$ac_compile") 2>conftest.er1
21981 grep -v '^ *+' conftest.er1 >conftest.err
21983 cat conftest.err >&5
21984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21985 (exit $ac_status); } && {
21986 test -z "$ac_c_werror_flag" ||
21987 test ! -s conftest.err
21988 } && test -s conftest.$ac_objext; then
21989 ac_cv_header_time=yes
21991 echo "$as_me: failed program was:" >&5
21992 sed 's/^/| /' conftest.$ac_ext >&5
21994 ac_cv_header_time=no
21997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21999 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
22000 echo "${ECHO_T}$ac_cv_header_time" >&6; }
22001 if test $ac_cv_header_time = yes; then
22003 cat >>confdefs.h <<\_ACEOF
22004 #define TIME_WITH_SYS_TIME 1
22011 { echo "$as_me:$LINENO: checking for library containing socket" >&5
22012 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; }
22013 if test "${ac_cv_search_socket+set}" = set; then
22014 echo $ECHO_N "(cached) $ECHO_C" >&6
22016 ac_func_search_save_LIBS=$LIBS
22017 cat >conftest.$ac_ext <<_ACEOF
22020 cat confdefs.h >>conftest.$ac_ext
22021 cat >>conftest.$ac_ext <<_ACEOF
22022 /* end confdefs.h. */
22024 /* Override any GCC internal prototype to avoid an error.
22025 Use char because int might match the return type of a GCC
22026 builtin and then its argument prototype would still apply. */
22039 for ac_lib in '' socket; do
22040 if test -z "$ac_lib"; then
22041 ac_res="none required"
22044 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22046 rm -f conftest.$ac_objext conftest$ac_exeext
22047 if { (ac_try="$ac_link"
22048 case "(($ac_try" in
22049 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
22050 *) ac_try_echo
=$ac_try;;
22052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22053 (eval "$ac_link") 2>conftest.er1
22055 grep -v '^ *+' conftest.er1
>conftest.err
22057 cat conftest.err
>&5
22058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22059 (exit $ac_status); } && {
22060 test -z "$ac_c_werror_flag" ||
22061 test ! -s conftest.err
22062 } && test -s conftest
$ac_exeext &&
22063 $as_test_x conftest
$ac_exeext; then
22064 ac_cv_search_socket
=$ac_res
22066 echo "$as_me: failed program was:" >&5
22067 sed 's/^/| /' conftest.
$ac_ext >&5
22072 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
22074 if test "${ac_cv_search_socket+set}" = set; then
22078 if test "${ac_cv_search_socket+set}" = set; then
22081 ac_cv_search_socket
=no
22083 rm conftest.
$ac_ext
22084 LIBS
=$ac_func_search_save_LIBS
22086 { echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
22087 echo "${ECHO_T}$ac_cv_search_socket" >&6; }
22088 ac_res
=$ac_cv_search_socket
22089 if test "$ac_res" != no
; then
22090 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
22096 { echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
22097 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; }
22098 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
22099 echo $ECHO_N "(cached) $ECHO_C" >&6
22101 cat >conftest.
$ac_ext <<_ACEOF
22104 cat confdefs.h
>>conftest.
$ac_ext
22105 cat >>conftest.
$ac_ext <<_ACEOF
22106 /* end confdefs.h. */
22108 #ifdef HAVE_SYS_TYPES_H
22109 #include <sys/types.h>
22111 #ifdef HAVE_SYS_SOCKET_H
22112 #include <sys/socket.h>
22114 #ifdef HAVE_WINSOCK2_H
22115 #include <winsock2.h>
22122 static struct sockaddr ac_aggr;
22123 if (ac_aggr.sa_len)
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_member_struct_sockaddr_sa_len=yes
22148 echo "$as_me: failed program was:" >&5
22149 sed 's/^/| /' conftest.$ac_ext >&5
22151 cat >conftest.$ac_ext <<_ACEOF
22154 cat confdefs.h >>conftest.$ac_ext
22155 cat >>conftest.$ac_ext <<_ACEOF
22156 /* end confdefs.h. */
22158 #ifdef HAVE_SYS_TYPES_H
22159 #include <sys/types.h>
22161 #ifdef HAVE_SYS_SOCKET_H
22162 #include <sys/socket.h>
22164 #ifdef HAVE_WINSOCK2_H
22165 #include <winsock2.h>
22172 static struct sockaddr ac_aggr;
22173 if (sizeof ac_aggr.sa_len)
22179 rm -f conftest.$ac_objext
22180 if { (ac_try="$ac_compile"
22181 case "(($ac_try" in
22182 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
22183 *) ac_try_echo
=$ac_try;;
22185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22186 (eval "$ac_compile") 2>conftest.er1
22188 grep -v '^ *+' conftest.er1
>conftest.err
22190 cat conftest.err
>&5
22191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22192 (exit $ac_status); } && {
22193 test -z "$ac_c_werror_flag" ||
22194 test ! -s conftest.err
22195 } && test -s conftest.
$ac_objext; then
22196 ac_cv_member_struct_sockaddr_sa_len
=yes
22198 echo "$as_me: failed program was:" >&5
22199 sed 's/^/| /' conftest.
$ac_ext >&5
22201 ac_cv_member_struct_sockaddr_sa_len
=no
22204 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22207 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22209 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
22210 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; }
22211 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
22213 cat >>confdefs.h
<<\_ACEOF
22214 #define SOCKADDR_IN_HAS_LEN 1
22220 { echo "$as_me:$LINENO: checking for socklen_t" >&5
22221 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
22222 if test "${ac_cv_type_socklen_t+set}" = set; then
22223 echo $ECHO_N "(cached) $ECHO_C" >&6
22225 cat >conftest.
$ac_ext <<_ACEOF
22228 cat confdefs.h
>>conftest.
$ac_ext
22229 cat >>conftest.
$ac_ext <<_ACEOF
22230 /* end confdefs.h. */
22231 #include <sys/types.h>
22232 #include <sys/socket.h>
22234 typedef socklen_t ac__type_new_;
22238 if ((ac__type_new_ *) 0)
22240 if (sizeof (ac__type_new_))
22246 rm -f conftest.
$ac_objext
22247 if { (ac_try
="$ac_compile"
22248 case "(($ac_try" in
22249 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
22250 *) ac_try_echo=$ac_try;;
22252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22253 (eval "$ac_compile") 2>conftest.er1
22255 grep -v '^ *+' conftest.er1 >conftest.err
22257 cat conftest.err >&5
22258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22259 (exit $ac_status); } && {
22260 test -z "$ac_c_werror_flag" ||
22261 test ! -s conftest.err
22262 } && test -s conftest.$ac_objext; then
22263 ac_cv_type_socklen_t=yes
22265 echo "$as_me: failed program was:" >&5
22266 sed 's/^/| /' conftest.$ac_ext >&5
22268 ac_cv_type_socklen_t=no
22271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22273 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
22274 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
22275 if test $ac_cv_type_socklen_t = yes; then
22276 rb_socklen_t=socklen_t
22279 { echo "$as_me:$LINENO: checking for socklen_t equivalent" >&5
22280 echo $ECHO_N "checking for socklen_t equivalent... $ECHO_C" >&6; }
22281 if test "${rb_socklen_t+set}" = set; then
22282 echo $ECHO_N "(cached) $ECHO_C" >&6
22285 # Systems have either "struct sockaddr *" or
22286 # "void *" as the second argument to getpeername
22288 for arg2 in "struct sockaddr" void; do
22289 for t in int size_t unsigned long "unsigned long"; do
22290 cat >conftest.$ac_ext <<_ACEOF
22293 cat confdefs.h >>conftest.$ac_ext
22294 cat >>conftest.$ac_ext <<_ACEOF
22295 /* end confdefs.h. */
22297 #include <sys/types.h>
22298 #include <sys/socket.h>
22300 int getpeername (int, $arg2 *, $t *);
22307 getpeername(0,0,&len);
22313 rm -f conftest.$ac_objext
22314 if { (ac_try="$ac_compile"
22315 case "(($ac_try" in
22316 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
22317 *) ac_try_echo
=$ac_try;;
22319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22320 (eval "$ac_compile") 2>conftest.er1
22322 grep -v '^ *+' conftest.er1
>conftest.err
22324 cat conftest.err
>&5
22325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22326 (exit $ac_status); } && {
22327 test -z "$ac_c_werror_flag" ||
22328 test ! -s conftest.err
22329 } && test -s conftest.
$ac_objext; then
22335 echo "$as_me: failed program was:" >&5
22336 sed 's/^/| /' conftest.
$ac_ext >&5
22341 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22345 if test "x$rb_socklen_t" = x
; then
22346 { { echo "$as_me:$LINENO: error: Cannot find a type to use in place of socklen_t" >&5
22347 echo "$as_me: error: Cannot find a type to use in place of socklen_t" >&2;}
22348 { (exit 1); exit 1; }; }
22353 { echo "$as_me:$LINENO: result: $rb_socklen_t" >&5
22354 echo "${ECHO_T}$rb_socklen_t" >&6; }
22362 # Check whether --enable-ipv6 was given.
22363 if test "${enable_ipv6+set}" = set; then
22364 enableval
=$enable_ipv6; ipv6
=$enableval
22370 if test x
$ipv6 != xyes
; then
22376 { echo "$as_me:$LINENO: checking for INET6 protocol support" >&5
22377 echo $ECHO_N "checking for INET6 protocol support... $ECHO_C" >&6; }
22378 if test "${rb_cv_proto_inet6+set}" = set; then
22379 echo $ECHO_N "(cached) $ECHO_C" >&6
22382 cat >conftest.
$ac_ext <<_ACEOF
22385 cat confdefs.h
>>conftest.
$ac_ext
22386 cat >>conftest.
$ac_ext <<_ACEOF
22387 /* end confdefs.h. */
22389 #include <sys/types.h>
22390 #include <sys/socket.h>
22393 #error Missing PF_INET6
22396 #error Mlssing AF_INET6
22400 if { (ac_try
="$ac_cpp conftest.$ac_ext"
22401 case "(($ac_try" in
22402 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
22403 *) ac_try_echo=$ac_try;;
22405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22406 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22408 grep -v '^ *+' conftest.er1 >conftest.err
22410 cat conftest.err >&5
22411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22412 (exit $ac_status); } >/dev/null && {
22413 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22414 test ! -s conftest.err
22417 rb_cv_proto_inet6=yes
22420 echo "$as_me: failed program was:" >&5
22421 sed 's/^/| /' conftest.$ac_ext >&5
22424 rb_cv_proto_inet6=no
22428 rm -f conftest.err conftest.$ac_ext
22431 { echo "$as_me:$LINENO: result: $rb_cv_proto_inet6" >&5
22432 echo "${ECHO_T}$rb_cv_proto_inet6" >&6; }
22434 if test "X$rb_cv_proto_inet6" = "Xyes"; then :
22438 { echo "$as_me:$LINENO: Disabling IPv6 support: PF_INET6 not found" >&5
22439 echo "$as_me: Disabling IPv6 support: PF_INET6 not found" >&6;}
22445 if test "X$have_v6" = "Xyes"; then
22447 rb_have_sockaddr_in6=
22448 { echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
22449 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6; }
22450 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
22451 echo $ECHO_N "(cached) $ECHO_C" >&6
22453 cat >conftest.$ac_ext <<_ACEOF
22456 cat confdefs.h >>conftest.$ac_ext
22457 cat >>conftest.$ac_ext <<_ACEOF
22458 /* end confdefs.h. */
22460 #include <sys/types.h>
22461 #include <sys/socket.h>
22462 #include <netinet/in.h>
22465 typedef struct sockaddr_in6 ac__type_new_;
22469 if ((ac__type_new_ *) 0)
22471 if (sizeof (ac__type_new_))
22477 rm -f conftest.$ac_objext
22478 if { (ac_try="$ac_compile"
22479 case "(($ac_try" in
22480 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
22481 *) ac_try_echo
=$ac_try;;
22483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22484 (eval "$ac_compile") 2>conftest.er1
22486 grep -v '^ *+' conftest.er1
>conftest.err
22488 cat conftest.err
>&5
22489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22490 (exit $ac_status); } && {
22491 test -z "$ac_c_werror_flag" ||
22492 test ! -s conftest.err
22493 } && test -s conftest.
$ac_objext; then
22494 ac_cv_type_struct_sockaddr_in6
=yes
22496 echo "$as_me: failed program was:" >&5
22497 sed 's/^/| /' conftest.
$ac_ext >&5
22499 ac_cv_type_struct_sockaddr_in6
=no
22502 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22504 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
22505 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6; }
22506 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
22508 cat >>confdefs.h
<<_ACEOF
22509 #define HAVE_STRUCT_SOCKADDR_IN6 1
22513 rb_have_sockaddr_in6
=yes
22517 rb_have_sockaddr_in6
=no
22522 if test "X$rb_have_sockaddr_in6" = "Xyes"; then :
22526 { echo "$as_me:$LINENO: Disabling IPv6 support: struct sockaddr_in6 not found" >&5
22527 echo "$as_me: Disabling IPv6 support: struct sockaddr_in6 not found" >&6;}
22536 { echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
22537 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6; }
22538 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
22539 echo $ECHO_N "(cached) $ECHO_C" >&6
22541 cat >conftest.
$ac_ext <<_ACEOF
22544 cat confdefs.h
>>conftest.
$ac_ext
22545 cat >>conftest.
$ac_ext <<_ACEOF
22546 /* end confdefs.h. */
22548 #include <sys/types.h>
22549 #include <sys/socket.h>
22552 typedef struct sockaddr_storage ac__type_new_;
22556 if ((ac__type_new_ *) 0)
22558 if (sizeof (ac__type_new_))
22564 rm -f conftest.
$ac_objext
22565 if { (ac_try
="$ac_compile"
22566 case "(($ac_try" in
22567 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
22568 *) ac_try_echo=$ac_try;;
22570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22571 (eval "$ac_compile") 2>conftest.er1
22573 grep -v '^ *+' conftest.er1 >conftest.err
22575 cat conftest.err >&5
22576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22577 (exit $ac_status); } && {
22578 test -z "$ac_c_werror_flag" ||
22579 test ! -s conftest.err
22580 } && test -s conftest.$ac_objext; then
22581 ac_cv_type_struct_sockaddr_storage=yes
22583 echo "$as_me: failed program was:" >&5
22584 sed 's/^/| /' conftest.$ac_ext >&5
22586 ac_cv_type_struct_sockaddr_storage=no
22589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22591 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
22592 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6; }
22593 if test $ac_cv_type_struct_sockaddr_storage = yes; then
22595 cat >>confdefs.h <<_ACEOF
22596 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
22600 rb_have_sockaddr_storage=yes
22607 { echo "$as_me:$LINENO: checking for library containing crypt" >&5
22608 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6; }
22609 if test "${ac_cv_search_crypt+set}" = set; then
22610 echo $ECHO_N "(cached) $ECHO_C" >&6
22612 ac_func_search_save_LIBS=$LIBS
22613 cat >conftest.$ac_ext <<_ACEOF
22616 cat confdefs.h >>conftest.$ac_ext
22617 cat >>conftest.$ac_ext <<_ACEOF
22618 /* end confdefs.h. */
22620 /* Override any GCC internal prototype to avoid an error.
22621 Use char because int might match the return type of a GCC
22622 builtin and then its argument prototype would still apply. */
22635 for ac_lib in '' crypt descrypt; do
22636 if test -z "$ac_lib"; then
22637 ac_res="none required"
22640 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22642 rm -f conftest.$ac_objext conftest$ac_exeext
22643 if { (ac_try="$ac_link"
22644 case "(($ac_try" in
22645 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
22646 *) ac_try_echo
=$ac_try;;
22648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22649 (eval "$ac_link") 2>conftest.er1
22651 grep -v '^ *+' conftest.er1
>conftest.err
22653 cat conftest.err
>&5
22654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22655 (exit $ac_status); } && {
22656 test -z "$ac_c_werror_flag" ||
22657 test ! -s conftest.err
22658 } && test -s conftest
$ac_exeext &&
22659 $as_test_x conftest
$ac_exeext; then
22660 ac_cv_search_crypt
=$ac_res
22662 echo "$as_me: failed program was:" >&5
22663 sed 's/^/| /' conftest.
$ac_ext >&5
22668 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
22670 if test "${ac_cv_search_crypt+set}" = set; then
22674 if test "${ac_cv_search_crypt+set}" = set; then
22677 ac_cv_search_crypt
=no
22679 rm conftest.
$ac_ext
22680 LIBS
=$ac_func_search_save_LIBS
22682 { echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
22683 echo "${ECHO_T}$ac_cv_search_crypt" >&6; }
22684 ac_res
=$ac_cv_search_crypt
22685 if test "$ac_res" != no
; then
22686 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
22692 CRYPT_LIB
=$ac_cv_search_crypt
22694 if test "$CRYPT_LIB" = "none required"; then
22696 elif test "$CRYPT_LIB" = no
; then
22699 cat >>confdefs.h
<<\_ACEOF
22700 #define NEED_CRYPT 1
22706 if test x
"$need_crypt" = "xyes"; then
22708 NEED_CRYPT_FALSE
='#'
22710 NEED_CRYPT_TRUE
='#'
22718 if test "${ac_cv_header_stdarg_h+set}" = set; then
22719 { echo "$as_me:$LINENO: checking for stdarg.h" >&5
22720 echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6; }
22721 if test "${ac_cv_header_stdarg_h+set}" = set; then
22722 echo $ECHO_N "(cached) $ECHO_C" >&6
22724 { echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5
22725 echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6; }
22727 # Is the header compilable?
22728 { echo "$as_me:$LINENO: checking stdarg.h usability" >&5
22729 echo $ECHO_N "checking stdarg.h usability... $ECHO_C" >&6; }
22730 cat >conftest.
$ac_ext <<_ACEOF
22733 cat confdefs.h
>>conftest.
$ac_ext
22734 cat >>conftest.
$ac_ext <<_ACEOF
22735 /* end confdefs.h. */
22736 $ac_includes_default
22737 #include <stdarg.h>
22739 rm -f conftest.
$ac_objext
22740 if { (ac_try
="$ac_compile"
22741 case "(($ac_try" in
22742 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
22743 *) ac_try_echo=$ac_try;;
22745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22746 (eval "$ac_compile") 2>conftest.er1
22748 grep -v '^ *+' conftest.er1 >conftest.err
22750 cat conftest.err >&5
22751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22752 (exit $ac_status); } && {
22753 test -z "$ac_c_werror_flag" ||
22754 test ! -s conftest.err
22755 } && test -s conftest.$ac_objext; then
22756 ac_header_compiler=yes
22758 echo "$as_me: failed program was:" >&5
22759 sed 's/^/| /' conftest.$ac_ext >&5
22761 ac_header_compiler=no
22764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22765 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22766 echo "${ECHO_T}$ac_header_compiler" >&6; }
22768 # Is the header present?
22769 { echo "$as_me:$LINENO: checking stdarg.h presence" >&5
22770 echo $ECHO_N "checking stdarg.h presence... $ECHO_C" >&6; }
22771 cat >conftest.$ac_ext <<_ACEOF
22774 cat confdefs.h >>conftest.$ac_ext
22775 cat >>conftest.$ac_ext <<_ACEOF
22776 /* end confdefs.h. */
22777 #include <stdarg.h>
22779 if { (ac_try="$ac_cpp conftest.$ac_ext"
22780 case "(($ac_try" in
22781 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
22782 *) ac_try_echo
=$ac_try;;
22784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22785 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22787 grep -v '^ *+' conftest.er1
>conftest.err
22789 cat conftest.err
>&5
22790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22791 (exit $ac_status); } >/dev
/null
&& {
22792 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22793 test ! -s conftest.err
22795 ac_header_preproc
=yes
22797 echo "$as_me: failed program was:" >&5
22798 sed 's/^/| /' conftest.
$ac_ext >&5
22800 ac_header_preproc
=no
22803 rm -f conftest.err conftest.
$ac_ext
22804 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22805 echo "${ECHO_T}$ac_header_preproc" >&6; }
22807 # So? What about this header?
22808 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22810 { echo "$as_me:$LINENO: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&5
22811 echo "$as_me: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22812 { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the compiler's result" >&5
22813 echo "$as_me: WARNING: stdarg.h: proceeding with the compiler's result" >&2;}
22814 ac_header_preproc
=yes
22817 { echo "$as_me:$LINENO: WARNING: stdarg.h: present but cannot be compiled" >&5
22818 echo "$as_me: WARNING: stdarg.h: present but cannot be compiled" >&2;}
22819 { echo "$as_me:$LINENO: WARNING: stdarg.h: check for missing prerequisite headers?" >&5
22820 echo "$as_me: WARNING: stdarg.h: check for missing prerequisite headers?" >&2;}
22821 { echo "$as_me:$LINENO: WARNING: stdarg.h: see the Autoconf documentation" >&5
22822 echo "$as_me: WARNING: stdarg.h: see the Autoconf documentation" >&2;}
22823 { echo "$as_me:$LINENO: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&5
22824 echo "$as_me: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&2;}
22825 { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the preprocessor's result" >&5
22826 echo "$as_me: WARNING: stdarg.h: proceeding with the preprocessor's result" >&2;}
22827 { echo "$as_me:$LINENO: WARNING: stdarg.h: in the future, the compiler will take precedence" >&5
22828 echo "$as_me: WARNING: stdarg.h: in the future, the compiler will take precedence" >&2;}
22832 { echo "$as_me:$LINENO: checking for stdarg.h" >&5
22833 echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6; }
22834 if test "${ac_cv_header_stdarg_h+set}" = set; then
22835 echo $ECHO_N "(cached) $ECHO_C" >&6
22837 ac_cv_header_stdarg_h
=$ac_header_preproc
22839 { echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5
22840 echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6; }
22843 if test $ac_cv_header_stdarg_h = yes; then
22846 { { echo "$as_me:$LINENO: error: ** stdarg.h could not be found - libratbox will not compile without it **" >&5
22847 echo "$as_me: error: ** stdarg.h could not be found - libratbox will not compile without it **" >&2;}
22848 { (exit 1); exit 1; }; }
22853 { echo "$as_me:$LINENO: checking for sa_family_t" >&5
22854 echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6; }
22855 if test "${ac_cv_type_sa_family_t+set}" = set; then
22856 echo $ECHO_N "(cached) $ECHO_C" >&6
22858 cat >conftest.
$ac_ext <<_ACEOF
22861 cat confdefs.h
>>conftest.
$ac_ext
22862 cat >>conftest.
$ac_ext <<_ACEOF
22863 /* end confdefs.h. */
22864 #include <sys/types.h>
22865 #include <sys/socket.h>
22867 typedef sa_family_t ac__type_new_;
22871 if ((ac__type_new_ *) 0)
22873 if (sizeof (ac__type_new_))
22879 rm -f conftest.
$ac_objext
22880 if { (ac_try
="$ac_compile"
22881 case "(($ac_try" in
22882 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
22883 *) ac_try_echo=$ac_try;;
22885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22886 (eval "$ac_compile") 2>conftest.er1
22888 grep -v '^ *+' conftest.er1 >conftest.err
22890 cat conftest.err >&5
22891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22892 (exit $ac_status); } && {
22893 test -z "$ac_c_werror_flag" ||
22894 test ! -s conftest.err
22895 } && test -s conftest.$ac_objext; then
22896 ac_cv_type_sa_family_t=yes
22898 echo "$as_me: failed program was:" >&5
22899 sed 's/^/| /' conftest.$ac_ext >&5
22901 ac_cv_type_sa_family_t=no
22904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22906 { echo "$as_me:$LINENO: result: $ac_cv_type_sa_family_t" >&5
22907 echo "${ECHO_T}$ac_cv_type_sa_family_t" >&6; }
22908 if test $ac_cv_type_sa_family_t = yes; then
22912 cat >>confdefs.h <<\_ACEOF
22913 #define sa_family_t u_int16_t
22940 for ac_func in socketpair gettimeofday writev sendmsg gmtime_r strtok_r usleep posix_spawn strlcpy strlcat strnlen fstat signalfd select poll kevent port_create epoll_ctl arc4random getrusage
22942 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22943 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22944 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22945 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22946 echo $ECHO_N "(cached) $ECHO_C" >&6
22948 cat >conftest.$ac_ext <<_ACEOF
22951 cat confdefs.h >>conftest.$ac_ext
22952 cat >>conftest.$ac_ext <<_ACEOF
22953 /* end confdefs.h. */
22954 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22955 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22956 #define $ac_func innocuous_$ac_func
22958 /* System header to define __stub macros and hopefully few prototypes,
22959 which can conflict with char $ac_func (); below.
22960 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22961 <limits.h> exists even on freestanding compilers. */
22964 # include <limits.h>
22966 # include <assert.h>
22971 /* Override any GCC internal prototype to avoid an error.
22972 Use char because int might match the return type of a GCC
22973 builtin and then its argument prototype would still apply. */
22978 /* The GNU C library defines this for functions which it implements
22979 to always fail with ENOSYS. Some functions are actually named
22980 something starting with __ and the normal name is an alias. */
22981 #if defined __stub_$ac_func || defined __stub___$ac_func
22988 return $ac_func ();
22993 rm -f conftest.$ac_objext conftest$ac_exeext
22994 if { (ac_try="$ac_link"
22995 case "(($ac_try" in
22996 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
22997 *) ac_try_echo
=$ac_try;;
22999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23000 (eval "$ac_link") 2>conftest.er1
23002 grep -v '^ *+' conftest.er1
>conftest.err
23004 cat conftest.err
>&5
23005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23006 (exit $ac_status); } && {
23007 test -z "$ac_c_werror_flag" ||
23008 test ! -s conftest.err
23009 } && test -s conftest
$ac_exeext &&
23010 $as_test_x conftest
$ac_exeext; then
23011 eval "$as_ac_var=yes"
23013 echo "$as_me: failed program was:" >&5
23014 sed 's/^/| /' conftest.
$ac_ext >&5
23016 eval "$as_ac_var=no"
23019 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
23020 conftest
$ac_exeext conftest.
$ac_ext
23022 ac_res
=`eval echo '${'$as_ac_var'}'`
23023 { echo "$as_me:$LINENO: result: $ac_res" >&5
23024 echo "${ECHO_T}$ac_res" >&6; }
23025 if test `eval echo '${'$as_ac_var'}'` = yes; then
23026 cat >>confdefs.h
<<_ACEOF
23027 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23034 { echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
23035 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6; }
23036 if test "${ac_cv_search_nanosleep+set}" = set; then
23037 echo $ECHO_N "(cached) $ECHO_C" >&6
23039 ac_func_search_save_LIBS
=$LIBS
23040 cat >conftest.
$ac_ext <<_ACEOF
23043 cat confdefs.h
>>conftest.
$ac_ext
23044 cat >>conftest.
$ac_ext <<_ACEOF
23045 /* end confdefs.h. */
23047 /* Override any GCC internal prototype to avoid an error.
23048 Use char because int might match the return type of a GCC
23049 builtin and then its argument prototype would still apply. */
23057 return nanosleep ();
23062 for ac_lib
in '' rt posix4
; do
23063 if test -z "$ac_lib"; then
23064 ac_res
="none required"
23067 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
23069 rm -f conftest.
$ac_objext conftest
$ac_exeext
23070 if { (ac_try
="$ac_link"
23071 case "(($ac_try" in
23072 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
23073 *) ac_try_echo=$ac_try;;
23075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23076 (eval "$ac_link") 2>conftest.er1
23078 grep -v '^ *+' conftest.er1 >conftest.err
23080 cat conftest.err >&5
23081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23082 (exit $ac_status); } && {
23083 test -z "$ac_c_werror_flag" ||
23084 test ! -s conftest.err
23085 } && test -s conftest$ac_exeext &&
23086 $as_test_x conftest$ac_exeext; then
23087 ac_cv_search_nanosleep=$ac_res
23089 echo "$as_me: failed program was:" >&5
23090 sed 's/^/| /' conftest.$ac_ext >&5
23095 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23097 if test "${ac_cv_search_nanosleep+set}" = set; then
23101 if test "${ac_cv_search_nanosleep+set}" = set; then
23104 ac_cv_search_nanosleep=no
23106 rm conftest.$ac_ext
23107 LIBS=$ac_func_search_save_LIBS
23109 { echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
23110 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6; }
23111 ac_res=$ac_cv_search_nanosleep
23112 if test "$ac_res" != no; then
23113 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23115 cat >>confdefs.h <<\_ACEOF
23116 #define HAVE_NANOSLEEP 1
23121 { echo "$as_me:$LINENO: checking for library containing timer_create" >&5
23122 echo $ECHO_N "checking for library containing timer_create... $ECHO_C" >&6; }
23123 if test "${ac_cv_search_timer_create+set}" = set; then
23124 echo $ECHO_N "(cached) $ECHO_C" >&6
23126 ac_func_search_save_LIBS=$LIBS
23127 cat >conftest.$ac_ext <<_ACEOF
23130 cat confdefs.h >>conftest.$ac_ext
23131 cat >>conftest.$ac_ext <<_ACEOF
23132 /* end confdefs.h. */
23134 /* Override any GCC internal prototype to avoid an error.
23135 Use char because int might match the return type of a GCC
23136 builtin and then its argument prototype would still apply. */
23140 char timer_create ();
23144 return timer_create ();
23149 for ac_lib in '' rt; do
23150 if test -z "$ac_lib"; then
23151 ac_res="none required"
23154 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23156 rm -f conftest.$ac_objext conftest$ac_exeext
23157 if { (ac_try="$ac_link"
23158 case "(($ac_try" in
23159 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
23160 *) ac_try_echo
=$ac_try;;
23162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23163 (eval "$ac_link") 2>conftest.er1
23165 grep -v '^ *+' conftest.er1
>conftest.err
23167 cat conftest.err
>&5
23168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23169 (exit $ac_status); } && {
23170 test -z "$ac_c_werror_flag" ||
23171 test ! -s conftest.err
23172 } && test -s conftest
$ac_exeext &&
23173 $as_test_x conftest
$ac_exeext; then
23174 ac_cv_search_timer_create
=$ac_res
23176 echo "$as_me: failed program was:" >&5
23177 sed 's/^/| /' conftest.
$ac_ext >&5
23182 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
23184 if test "${ac_cv_search_timer_create+set}" = set; then
23188 if test "${ac_cv_search_timer_create+set}" = set; then
23191 ac_cv_search_timer_create
=no
23193 rm conftest.
$ac_ext
23194 LIBS
=$ac_func_search_save_LIBS
23196 { echo "$as_me:$LINENO: result: $ac_cv_search_timer_create" >&5
23197 echo "${ECHO_T}$ac_cv_search_timer_create" >&6; }
23198 ac_res
=$ac_cv_search_timer_create
23199 if test "$ac_res" != no
; then
23200 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
23202 cat >>confdefs.h
<<\_ACEOF
23203 #define HAVE_TIMER_CREATE 1
23208 { echo "$as_me:$LINENO: checking for a working timer_create(CLOCK_REALTIME)" >&5
23209 echo $ECHO_N "checking for a working timer_create(CLOCK_REALTIME)... $ECHO_C" >&6; }
23210 if test "${rb__cv_timer_create_works+set}" = set; then
23211 echo $ECHO_N "(cached) $ECHO_C" >&6
23213 if test "$cross_compiling" = yes; then
23214 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
23215 See \`config.log' for more details." >&5
23216 echo "$as_me: error: cannot run test program while cross compiling
23217 See \`config.log' for more details." >&2;}
23218 { (exit 1); exit 1; }; }
23220 cat >conftest.
$ac_ext <<_ACEOF
23223 cat confdefs.h
>>conftest.
$ac_ext
23224 cat >>conftest.
$ac_ext <<_ACEOF
23225 /* end confdefs.h. */
23230 #ifdef HAVE_SIGNAL_H
23231 #include <signal.h>
23233 #ifdef HAVE_UNISTD_H
23234 #include <unistd.h>
23236 int main(int argc, char *argv[])
23238 #if HAVE_TIMER_CREATE
23239 struct sigevent ev;
23241 ev.sigev_notify = SIGEV_SIGNAL;
23242 ev.sigev_signo = SIGVTALRM;
23243 if (timer_create(CLOCK_REALTIME, &ev, &timer) != 0) {
23253 rm -f conftest
$ac_exeext
23254 if { (ac_try
="$ac_link"
23255 case "(($ac_try" in
23256 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
23257 *) ac_try_echo=$ac_try;;
23259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23260 (eval "$ac_link") 2>&5
23262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23263 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23264 { (case "(($ac_try" in
23265 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
23266 *) ac_try_echo
=$ac_try;;
23268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23269 (eval "$ac_try") 2>&5
23271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23272 (exit $ac_status); }; }; then
23273 rb__cv_timer_create_works
=yes
23275 echo "$as_me: program exited with status $ac_status" >&5
23276 echo "$as_me: failed program was:" >&5
23277 sed 's/^/| /' conftest.
$ac_ext >&5
23279 ( exit $ac_status )
23280 rb__cv_timer_create_works
=no
23282 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
23288 { echo "$as_me:$LINENO: result: $rb__cv_timer_create_works" >&5
23289 echo "${ECHO_T}$rb__cv_timer_create_works" >&6; }
23290 case $rb__cv_timer_create_works in
23292 cat >>confdefs.h
<<\_ACEOF
23293 #define USE_TIMER_CREATE 1
23299 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
23300 # for constant arguments. Useless!
23301 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
23302 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
23303 if test "${ac_cv_working_alloca_h+set}" = set; then
23304 echo $ECHO_N "(cached) $ECHO_C" >&6
23306 cat >conftest.
$ac_ext <<_ACEOF
23309 cat confdefs.h
>>conftest.
$ac_ext
23310 cat >>conftest.
$ac_ext <<_ACEOF
23311 /* end confdefs.h. */
23312 #include <alloca.h>
23316 char *p = (char *) alloca (2 * sizeof (int));
23322 rm -f conftest.
$ac_objext conftest
$ac_exeext
23323 if { (ac_try
="$ac_link"
23324 case "(($ac_try" in
23325 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
23326 *) ac_try_echo=$ac_try;;
23328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23329 (eval "$ac_link") 2>conftest.er1
23331 grep -v '^ *+' conftest.er1 >conftest.err
23333 cat conftest.err >&5
23334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23335 (exit $ac_status); } && {
23336 test -z "$ac_c_werror_flag" ||
23337 test ! -s conftest.err
23338 } && test -s conftest$ac_exeext &&
23339 $as_test_x conftest$ac_exeext; then
23340 ac_cv_working_alloca_h=yes
23342 echo "$as_me: failed program was:" >&5
23343 sed 's/^/| /' conftest.$ac_ext >&5
23345 ac_cv_working_alloca_h=no
23348 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23349 conftest$ac_exeext conftest.$ac_ext
23351 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
23352 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
23353 if test $ac_cv_working_alloca_h = yes; then
23355 cat >>confdefs.h <<\_ACEOF
23356 #define HAVE_ALLOCA_H 1
23361 { echo "$as_me:$LINENO: checking for alloca" >&5
23362 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
23363 if test "${ac_cv_func_alloca_works+set}" = set; then
23364 echo $ECHO_N "(cached) $ECHO_C" >&6
23366 cat >conftest.$ac_ext <<_ACEOF
23369 cat confdefs.h >>conftest.$ac_ext
23370 cat >>conftest.$ac_ext <<_ACEOF
23371 /* end confdefs.h. */
23373 # define alloca __builtin_alloca
23376 # include <malloc.h>
23377 # define alloca _alloca
23379 # ifdef HAVE_ALLOCA_H
23380 # include <alloca.h>
23385 # ifndef alloca /* predefined by HP cc +Olibcalls */
23396 char *p = (char *) alloca (1);
23402 rm -f conftest.$ac_objext conftest$ac_exeext
23403 if { (ac_try="$ac_link"
23404 case "(($ac_try" in
23405 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
23406 *) ac_try_echo
=$ac_try;;
23408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23409 (eval "$ac_link") 2>conftest.er1
23411 grep -v '^ *+' conftest.er1
>conftest.err
23413 cat conftest.err
>&5
23414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23415 (exit $ac_status); } && {
23416 test -z "$ac_c_werror_flag" ||
23417 test ! -s conftest.err
23418 } && test -s conftest
$ac_exeext &&
23419 $as_test_x conftest
$ac_exeext; then
23420 ac_cv_func_alloca_works
=yes
23422 echo "$as_me: failed program was:" >&5
23423 sed 's/^/| /' conftest.
$ac_ext >&5
23425 ac_cv_func_alloca_works
=no
23428 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
23429 conftest
$ac_exeext conftest.
$ac_ext
23431 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
23432 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
23434 if test $ac_cv_func_alloca_works = yes; then
23436 cat >>confdefs.h
<<\_ACEOF
23437 #define HAVE_ALLOCA 1
23441 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
23442 # that cause trouble. Some versions do not even contain alloca or
23443 # contain a buggy version. If you still want to use their alloca,
23444 # use ar to extract alloca.o from them instead of compiling alloca.c.
23446 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
23448 cat >>confdefs.h
<<\_ACEOF
23453 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
23454 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
23455 if test "${ac_cv_os_cray+set}" = set; then
23456 echo $ECHO_N "(cached) $ECHO_C" >&6
23458 cat >conftest.
$ac_ext <<_ACEOF
23461 cat confdefs.h
>>conftest.
$ac_ext
23462 cat >>conftest.
$ac_ext <<_ACEOF
23463 /* end confdefs.h. */
23464 #if defined CRAY && ! defined CRAY2
23471 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23472 $EGREP "webecray" >/dev
/null
2>&1; then
23480 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
23481 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
23482 if test $ac_cv_os_cray = yes; then
23483 for ac_func
in _getb67 GETB67 getb67
; do
23484 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23485 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23486 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23487 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23488 echo $ECHO_N "(cached) $ECHO_C" >&6
23490 cat >conftest.
$ac_ext <<_ACEOF
23493 cat confdefs.h
>>conftest.
$ac_ext
23494 cat >>conftest.
$ac_ext <<_ACEOF
23495 /* end confdefs.h. */
23496 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23497 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23498 #define $ac_func innocuous_$ac_func
23500 /* System header to define __stub macros and hopefully few prototypes,
23501 which can conflict with char $ac_func (); below.
23502 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23503 <limits.h> exists even on freestanding compilers. */
23506 # include <limits.h>
23508 # include <assert.h>
23513 /* Override any GCC internal prototype to avoid an error.
23514 Use char because int might match the return type of a GCC
23515 builtin and then its argument prototype would still apply. */
23520 /* The GNU C library defines this for functions which it implements
23521 to always fail with ENOSYS. Some functions are actually named
23522 something starting with __ and the normal name is an alias. */
23523 #if defined __stub_$ac_func || defined __stub___$ac_func
23530 return $ac_func ();
23535 rm -f conftest.
$ac_objext conftest
$ac_exeext
23536 if { (ac_try
="$ac_link"
23537 case "(($ac_try" in
23538 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
23539 *) ac_try_echo=$ac_try;;
23541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23542 (eval "$ac_link") 2>conftest.er1
23544 grep -v '^ *+' conftest.er1 >conftest.err
23546 cat conftest.err >&5
23547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23548 (exit $ac_status); } && {
23549 test -z "$ac_c_werror_flag" ||
23550 test ! -s conftest.err
23551 } && test -s conftest$ac_exeext &&
23552 $as_test_x conftest$ac_exeext; then
23553 eval "$as_ac_var=yes"
23555 echo "$as_me: failed program was:" >&5
23556 sed 's/^/| /' conftest.$ac_ext >&5
23558 eval "$as_ac_var=no"
23561 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23562 conftest$ac_exeext conftest.$ac_ext
23564 ac_res=`eval echo '${'$as_ac_var'}'`
23565 { echo "$as_me:$LINENO: result: $ac_res" >&5
23566 echo "${ECHO_T}$ac_res" >&6; }
23567 if test `eval echo '${'$as_ac_var'}'` = yes; then
23569 cat >>confdefs.h <<_ACEOF
23570 #define CRAY_STACKSEG_END $ac_func
23579 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
23580 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
23581 if test "${ac_cv_c_stack_direction+set}" = set; then
23582 echo $ECHO_N "(cached) $ECHO_C" >&6
23584 if test "$cross_compiling" = yes; then
23585 ac_cv_c_stack_direction=0
23587 cat >conftest.$ac_ext <<_ACEOF
23590 cat confdefs.h >>conftest.$ac_ext
23591 cat >>conftest.$ac_ext <<_ACEOF
23592 /* end confdefs.h. */
23593 $ac_includes_default
23595 find_stack_direction ()
23597 static char *addr = 0;
23602 return find_stack_direction ();
23605 return (&dummy > addr) ? 1 : -1;
23611 return find_stack_direction () < 0;
23614 rm -f conftest$ac_exeext
23615 if { (ac_try="$ac_link"
23616 case "(($ac_try" in
23617 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
23618 *) ac_try_echo
=$ac_try;;
23620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23621 (eval "$ac_link") 2>&5
23623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23624 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
23625 { (case "(($ac_try" in
23626 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
23627 *) ac_try_echo=$ac_try;;
23629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23630 (eval "$ac_try") 2>&5
23632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23633 (exit $ac_status); }; }; then
23634 ac_cv_c_stack_direction=1
23636 echo "$as_me: program exited with status $ac_status" >&5
23637 echo "$as_me: failed program was:" >&5
23638 sed 's/^/| /' conftest.$ac_ext >&5
23640 ( exit $ac_status )
23641 ac_cv_c_stack_direction=-1
23643 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23648 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
23649 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
23651 cat >>confdefs.h <<_ACEOF
23652 #define STACK_DIRECTION $ac_cv_c_stack_direction
23659 for ac_header in vfork.h
23661 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23662 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23663 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23664 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23665 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23666 echo $ECHO_N "(cached) $ECHO_C" >&6
23668 ac_res=`eval echo '${'$as_ac_Header'}'`
23669 { echo "$as_me:$LINENO: result: $ac_res" >&5
23670 echo "${ECHO_T}$ac_res" >&6; }
23672 # Is the header compilable?
23673 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23674 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23675 cat >conftest.$ac_ext <<_ACEOF
23678 cat confdefs.h >>conftest.$ac_ext
23679 cat >>conftest.$ac_ext <<_ACEOF
23680 /* end confdefs.h. */
23681 $ac_includes_default
23682 #include <$ac_header>
23684 rm -f conftest.$ac_objext
23685 if { (ac_try="$ac_compile"
23686 case "(($ac_try" in
23687 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
23688 *) ac_try_echo
=$ac_try;;
23690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23691 (eval "$ac_compile") 2>conftest.er1
23693 grep -v '^ *+' conftest.er1
>conftest.err
23695 cat conftest.err
>&5
23696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23697 (exit $ac_status); } && {
23698 test -z "$ac_c_werror_flag" ||
23699 test ! -s conftest.err
23700 } && test -s conftest.
$ac_objext; then
23701 ac_header_compiler
=yes
23703 echo "$as_me: failed program was:" >&5
23704 sed 's/^/| /' conftest.
$ac_ext >&5
23706 ac_header_compiler
=no
23709 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23710 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23711 echo "${ECHO_T}$ac_header_compiler" >&6; }
23713 # Is the header present?
23714 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23715 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23716 cat >conftest.
$ac_ext <<_ACEOF
23719 cat confdefs.h
>>conftest.
$ac_ext
23720 cat >>conftest.
$ac_ext <<_ACEOF
23721 /* end confdefs.h. */
23722 #include <$ac_header>
23724 if { (ac_try
="$ac_cpp conftest.$ac_ext"
23725 case "(($ac_try" in
23726 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
23727 *) ac_try_echo=$ac_try;;
23729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23730 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23732 grep -v '^ *+' conftest.er1 >conftest.err
23734 cat conftest.err >&5
23735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23736 (exit $ac_status); } >/dev/null && {
23737 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23738 test ! -s conftest.err
23740 ac_header_preproc=yes
23742 echo "$as_me: failed program was:" >&5
23743 sed 's/^/| /' conftest.$ac_ext >&5
23745 ac_header_preproc=no
23748 rm -f conftest.err conftest.$ac_ext
23749 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23750 echo "${ECHO_T}$ac_header_preproc" >&6; }
23752 # So? What about this header?
23753 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23755 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23756 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23757 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23758 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23759 ac_header_preproc=yes
23762 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23763 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23764 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23765 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23766 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23767 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23768 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23769 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23770 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23771 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23772 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23773 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23777 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23778 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23779 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23780 echo $ECHO_N "(cached) $ECHO_C" >&6
23782 eval "$as_ac_Header=\$ac_header_preproc"
23784 ac_res=`eval echo '${'$as_ac_Header'}'`
23785 { echo "$as_me:$LINENO: result: $ac_res" >&5
23786 echo "${ECHO_T}$ac_res" >&6; }
23789 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23790 cat >>confdefs.h <<_ACEOF
23791 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23800 for ac_func in fork vfork
23802 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23803 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23804 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23805 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23806 echo $ECHO_N "(cached) $ECHO_C" >&6
23808 cat >conftest.$ac_ext <<_ACEOF
23811 cat confdefs.h >>conftest.$ac_ext
23812 cat >>conftest.$ac_ext <<_ACEOF
23813 /* end confdefs.h. */
23814 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23815 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23816 #define $ac_func innocuous_$ac_func
23818 /* System header to define __stub macros and hopefully few prototypes,
23819 which can conflict with char $ac_func (); below.
23820 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23821 <limits.h> exists even on freestanding compilers. */
23824 # include <limits.h>
23826 # include <assert.h>
23831 /* Override any GCC internal prototype to avoid an error.
23832 Use char because int might match the return type of a GCC
23833 builtin and then its argument prototype would still apply. */
23838 /* The GNU C library defines this for functions which it implements
23839 to always fail with ENOSYS. Some functions are actually named
23840 something starting with __ and the normal name is an alias. */
23841 #if defined __stub_$ac_func || defined __stub___$ac_func
23848 return $ac_func ();
23853 rm -f conftest.$ac_objext conftest$ac_exeext
23854 if { (ac_try="$ac_link"
23855 case "(($ac_try" in
23856 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
23857 *) ac_try_echo
=$ac_try;;
23859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23860 (eval "$ac_link") 2>conftest.er1
23862 grep -v '^ *+' conftest.er1
>conftest.err
23864 cat conftest.err
>&5
23865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23866 (exit $ac_status); } && {
23867 test -z "$ac_c_werror_flag" ||
23868 test ! -s conftest.err
23869 } && test -s conftest
$ac_exeext &&
23870 $as_test_x conftest
$ac_exeext; then
23871 eval "$as_ac_var=yes"
23873 echo "$as_me: failed program was:" >&5
23874 sed 's/^/| /' conftest.
$ac_ext >&5
23876 eval "$as_ac_var=no"
23879 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
23880 conftest
$ac_exeext conftest.
$ac_ext
23882 ac_res
=`eval echo '${'$as_ac_var'}'`
23883 { echo "$as_me:$LINENO: result: $ac_res" >&5
23884 echo "${ECHO_T}$ac_res" >&6; }
23885 if test `eval echo '${'$as_ac_var'}'` = yes; then
23886 cat >>confdefs.h
<<_ACEOF
23887 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23893 if test "x$ac_cv_func_fork" = xyes
; then
23894 { echo "$as_me:$LINENO: checking for working fork" >&5
23895 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
23896 if test "${ac_cv_func_fork_works+set}" = set; then
23897 echo $ECHO_N "(cached) $ECHO_C" >&6
23899 if test "$cross_compiling" = yes; then
23900 ac_cv_func_fork_works
=cross
23902 cat >conftest.
$ac_ext <<_ACEOF
23905 cat confdefs.h
>>conftest.
$ac_ext
23906 cat >>conftest.
$ac_ext <<_ACEOF
23907 /* end confdefs.h. */
23908 $ac_includes_default
23913 /* By Ruediger Kuhlmann. */
23914 return fork () < 0;
23920 rm -f conftest
$ac_exeext
23921 if { (ac_try
="$ac_link"
23922 case "(($ac_try" in
23923 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
23924 *) ac_try_echo=$ac_try;;
23926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23927 (eval "$ac_link") 2>&5
23929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23930 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23931 { (case "(($ac_try" in
23932 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
23933 *) ac_try_echo
=$ac_try;;
23935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23936 (eval "$ac_try") 2>&5
23938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23939 (exit $ac_status); }; }; then
23940 ac_cv_func_fork_works
=yes
23942 echo "$as_me: program exited with status $ac_status" >&5
23943 echo "$as_me: failed program was:" >&5
23944 sed 's/^/| /' conftest.
$ac_ext >&5
23946 ( exit $ac_status )
23947 ac_cv_func_fork_works
=no
23949 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
23954 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
23955 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
23958 ac_cv_func_fork_works
=$ac_cv_func_fork
23960 if test "x$ac_cv_func_fork_works" = xcross
; then
23962 *-*-amigaos* | *-*-msdosdjgpp*)
23963 # Override, as these systems have only a dummy fork() stub
23964 ac_cv_func_fork_works
=no
23967 ac_cv_func_fork_works
=yes
23970 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
23971 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
23973 ac_cv_func_vfork_works
=$ac_cv_func_vfork
23974 if test "x$ac_cv_func_vfork" = xyes
; then
23975 { echo "$as_me:$LINENO: checking for working vfork" >&5
23976 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
23977 if test "${ac_cv_func_vfork_works+set}" = set; then
23978 echo $ECHO_N "(cached) $ECHO_C" >&6
23980 if test "$cross_compiling" = yes; then
23981 ac_cv_func_vfork_works
=cross
23983 cat >conftest.
$ac_ext <<_ACEOF
23986 cat confdefs.h
>>conftest.
$ac_ext
23987 cat >>conftest.
$ac_ext <<_ACEOF
23988 /* end confdefs.h. */
23989 /* Thanks to Paul Eggert for this test. */
23990 $ac_includes_default
23991 #include <sys/wait.h>
23992 #ifdef HAVE_VFORK_H
23993 # include <vfork.h>
23995 /* On some sparc systems, changes by the child to local and incoming
23996 argument registers are propagated back to the parent. The compiler
23997 is told about this with #include <vfork.h>, but some compilers
23998 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
23999 static variable whose address is put into a register that is
24000 clobbered by the vfork. */
24003 sparc_address_test (int arg)
24005 sparc_address_test (arg) int arg;
24008 static pid_t child;
24026 pid_t parent = getpid ();
24029 sparc_address_test (0);
24034 /* Here is another test for sparc vfork register problems. This
24035 test uses lots of local variables, at least as many local
24036 variables as main has allocated so far including compiler
24037 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
24038 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
24039 reuse the register of parent for one of the local variables,
24040 since it will think that parent can't possibly be used any more
24041 in this routine. Assigning to the local variable will thus
24042 munge parent in the parent process. */
24044 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
24045 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
24046 /* Convince the compiler that p..p7 are live; otherwise, it might
24047 use the same hardware register for all 8 local variables. */
24048 if (p != p1 || p != p2 || p != p3 || p != p4
24049 || p != p5 || p != p6 || p != p7)
24052 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
24053 from child file descriptors. If the child closes a descriptor
24054 before it execs or exits, this munges the parent's descriptor
24055 as well. Test for this by closing stdout in the child. */
24056 _exit(close(fileno(stdout)) != 0);
24061 while (wait(&status) != child)
24064 /* Was there some problem with vforking? */
24067 /* Did the child fail? (This shouldn't happen.) */
24070 /* Did the vfork/compiler bug occur? */
24071 || parent != getpid()
24073 /* Did the file descriptor bug occur? */
24074 || fstat(fileno(stdout), &st) != 0
24079 rm -f conftest
$ac_exeext
24080 if { (ac_try
="$ac_link"
24081 case "(($ac_try" in
24082 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
24083 *) ac_try_echo=$ac_try;;
24085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24086 (eval "$ac_link") 2>&5
24088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24089 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24090 { (case "(($ac_try" in
24091 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
24092 *) ac_try_echo
=$ac_try;;
24094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24095 (eval "$ac_try") 2>&5
24097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24098 (exit $ac_status); }; }; then
24099 ac_cv_func_vfork_works
=yes
24101 echo "$as_me: program exited with status $ac_status" >&5
24102 echo "$as_me: failed program was:" >&5
24103 sed 's/^/| /' conftest.
$ac_ext >&5
24105 ( exit $ac_status )
24106 ac_cv_func_vfork_works
=no
24108 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
24113 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
24114 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
24117 if test "x$ac_cv_func_fork_works" = xcross
; then
24118 ac_cv_func_vfork_works
=$ac_cv_func_vfork
24119 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
24120 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
24123 if test "x$ac_cv_func_vfork_works" = xyes
; then
24125 cat >>confdefs.h
<<\_ACEOF
24126 #define HAVE_WORKING_VFORK 1
24131 cat >>confdefs.h
<<\_ACEOF
24136 if test "x$ac_cv_func_fork_works" = xyes
; then
24138 cat >>confdefs.h
<<\_ACEOF
24139 #define HAVE_WORKING_FORK 1
24146 for ac_header
in stdlib.h unistd.h
24148 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24149 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24150 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24151 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24152 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24153 echo $ECHO_N "(cached) $ECHO_C" >&6
24155 ac_res
=`eval echo '${'$as_ac_Header'}'`
24156 { echo "$as_me:$LINENO: result: $ac_res" >&5
24157 echo "${ECHO_T}$ac_res" >&6; }
24159 # Is the header compilable?
24160 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24161 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24162 cat >conftest.
$ac_ext <<_ACEOF
24165 cat confdefs.h
>>conftest.
$ac_ext
24166 cat >>conftest.
$ac_ext <<_ACEOF
24167 /* end confdefs.h. */
24168 $ac_includes_default
24169 #include <$ac_header>
24171 rm -f conftest.
$ac_objext
24172 if { (ac_try
="$ac_compile"
24173 case "(($ac_try" in
24174 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
24175 *) ac_try_echo=$ac_try;;
24177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24178 (eval "$ac_compile") 2>conftest.er1
24180 grep -v '^ *+' conftest.er1 >conftest.err
24182 cat conftest.err >&5
24183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24184 (exit $ac_status); } && {
24185 test -z "$ac_c_werror_flag" ||
24186 test ! -s conftest.err
24187 } && test -s conftest.$ac_objext; then
24188 ac_header_compiler=yes
24190 echo "$as_me: failed program was:" >&5
24191 sed 's/^/| /' conftest.$ac_ext >&5
24193 ac_header_compiler=no
24196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24197 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24198 echo "${ECHO_T}$ac_header_compiler" >&6; }
24200 # Is the header present?
24201 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24202 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24203 cat >conftest.$ac_ext <<_ACEOF
24206 cat confdefs.h >>conftest.$ac_ext
24207 cat >>conftest.$ac_ext <<_ACEOF
24208 /* end confdefs.h. */
24209 #include <$ac_header>
24211 if { (ac_try="$ac_cpp conftest.$ac_ext"
24212 case "(($ac_try" in
24213 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
24214 *) ac_try_echo
=$ac_try;;
24216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24217 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24219 grep -v '^ *+' conftest.er1
>conftest.err
24221 cat conftest.err
>&5
24222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24223 (exit $ac_status); } >/dev
/null
&& {
24224 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24225 test ! -s conftest.err
24227 ac_header_preproc
=yes
24229 echo "$as_me: failed program was:" >&5
24230 sed 's/^/| /' conftest.
$ac_ext >&5
24232 ac_header_preproc
=no
24235 rm -f conftest.err conftest.
$ac_ext
24236 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24237 echo "${ECHO_T}$ac_header_preproc" >&6; }
24239 # So? What about this header?
24240 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24242 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24243 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24244 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24245 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24246 ac_header_preproc
=yes
24249 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24250 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24251 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24252 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24253 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24254 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24255 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24256 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24257 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24258 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24259 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24260 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24264 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24265 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24266 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24267 echo $ECHO_N "(cached) $ECHO_C" >&6
24269 eval "$as_ac_Header=\$ac_header_preproc"
24271 ac_res
=`eval echo '${'$as_ac_Header'}'`
24272 { echo "$as_me:$LINENO: result: $ac_res" >&5
24273 echo "${ECHO_T}$ac_res" >&6; }
24276 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24277 cat >>confdefs.h
<<_ACEOF
24278 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24286 for ac_func
in getpagesize
24288 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24289 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24290 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24291 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24292 echo $ECHO_N "(cached) $ECHO_C" >&6
24294 cat >conftest.
$ac_ext <<_ACEOF
24297 cat confdefs.h
>>conftest.
$ac_ext
24298 cat >>conftest.
$ac_ext <<_ACEOF
24299 /* end confdefs.h. */
24300 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24301 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24302 #define $ac_func innocuous_$ac_func
24304 /* System header to define __stub macros and hopefully few prototypes,
24305 which can conflict with char $ac_func (); below.
24306 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24307 <limits.h> exists even on freestanding compilers. */
24310 # include <limits.h>
24312 # include <assert.h>
24317 /* Override any GCC internal prototype to avoid an error.
24318 Use char because int might match the return type of a GCC
24319 builtin and then its argument prototype would still apply. */
24324 /* The GNU C library defines this for functions which it implements
24325 to always fail with ENOSYS. Some functions are actually named
24326 something starting with __ and the normal name is an alias. */
24327 #if defined __stub_$ac_func || defined __stub___$ac_func
24334 return $ac_func ();
24339 rm -f conftest.
$ac_objext conftest
$ac_exeext
24340 if { (ac_try
="$ac_link"
24341 case "(($ac_try" in
24342 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
24343 *) ac_try_echo=$ac_try;;
24345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24346 (eval "$ac_link") 2>conftest.er1
24348 grep -v '^ *+' conftest.er1 >conftest.err
24350 cat conftest.err >&5
24351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24352 (exit $ac_status); } && {
24353 test -z "$ac_c_werror_flag" ||
24354 test ! -s conftest.err
24355 } && test -s conftest$ac_exeext &&
24356 $as_test_x conftest$ac_exeext; then
24357 eval "$as_ac_var=yes"
24359 echo "$as_me: failed program was:" >&5
24360 sed 's/^/| /' conftest.$ac_ext >&5
24362 eval "$as_ac_var=no"
24365 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24366 conftest$ac_exeext conftest.$ac_ext
24368 ac_res=`eval echo '${'$as_ac_var'}'`
24369 { echo "$as_me:$LINENO: result: $ac_res" >&5
24370 echo "${ECHO_T}$ac_res" >&6; }
24371 if test `eval echo '${'$as_ac_var'}'` = yes; then
24372 cat >>confdefs.h <<_ACEOF
24373 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24379 { echo "$as_me:$LINENO: checking for working mmap" >&5
24380 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
24381 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
24382 echo $ECHO_N "(cached) $ECHO_C" >&6
24384 if test "$cross_compiling" = yes; then
24385 ac_cv_func_mmap_fixed_mapped=no
24387 cat >conftest.$ac_ext <<_ACEOF
24390 cat confdefs.h >>conftest.$ac_ext
24391 cat >>conftest.$ac_ext <<_ACEOF
24392 /* end confdefs.h. */
24393 $ac_includes_default
24394 /* malloc might have been renamed as rpl_malloc. */
24397 /* Thanks to Mike Haertel and Jim Avera for this test.
24398 Here is a matrix of mmap possibilities:
24399 mmap private not fixed
24400 mmap private fixed at somewhere currently unmapped
24401 mmap private fixed at somewhere already mapped
24402 mmap shared not fixed
24403 mmap shared fixed at somewhere currently unmapped
24404 mmap shared fixed at somewhere already mapped
24405 For private mappings, we should verify that changes cannot be read()
24406 back from the file, nor mmap's back from the file at a different
24407 address. (There have been systems where private was not correctly
24408 implemented like the infamous i386 svr4.0, and systems where the
24409 VM page cache was not coherent with the file system buffer cache
24410 like early versions of FreeBSD and possibly contemporary NetBSD.)
24411 For shared mappings, we should conversely verify that changes get
24412 propagated back to all the places they're supposed to be.
24414 Grep wants private fixed already mapped.
24415 The main things grep needs to know about mmap are:
24416 * does it exist and is it safe to write into the mmap'd area
24417 * how to use it (BSD variants) */
24420 #include <sys/mman.h>
24422 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
24426 /* This mess was copied from the GNU getpagesize.h. */
24427 #ifndef HAVE_GETPAGESIZE
24428 /* Assume that all systems that can run configure have sys/param.h. */
24429 # ifndef HAVE_SYS_PARAM_H
24430 # define HAVE_SYS_PARAM_H 1
24433 # ifdef _SC_PAGESIZE
24434 # define getpagesize() sysconf(_SC_PAGESIZE)
24435 # else /* no _SC_PAGESIZE */
24436 # ifdef HAVE_SYS_PARAM_H
24437 # include <sys/param.h>
24438 # ifdef EXEC_PAGESIZE
24439 # define getpagesize() EXEC_PAGESIZE
24440 # else /* no EXEC_PAGESIZE */
24442 # define getpagesize() NBPG * CLSIZE
24445 # endif /* no CLSIZE */
24446 # else /* no NBPG */
24448 # define getpagesize() NBPC
24449 # else /* no NBPC */
24451 # define getpagesize() PAGESIZE
24452 # endif /* PAGESIZE */
24453 # endif /* no NBPC */
24454 # endif /* no NBPG */
24455 # endif /* no EXEC_PAGESIZE */
24456 # else /* no HAVE_SYS_PARAM_H */
24457 # define getpagesize() 8192 /* punt totally */
24458 # endif /* no HAVE_SYS_PARAM_H */
24459 # endif /* no _SC_PAGESIZE */
24461 #endif /* no HAVE_GETPAGESIZE */
24466 char *data, *data2, *data3;
24470 pagesize = getpagesize ();
24472 /* First, make a file with some known garbage in it. */
24473 data = (char *) malloc (pagesize);
24476 for (i = 0; i < pagesize; ++i)
24477 *(data + i) = rand ();
24479 fd = creat ("conftest.mmap", 0600);
24482 if (write (fd, data, pagesize) != pagesize)
24486 /* Next, try to mmap the file at a fixed address which already has
24487 something else allocated at it. If we can, also make sure that
24488 we see the same garbage. */
24489 fd = open ("conftest.mmap", O_RDWR);
24492 data2 = (char *) malloc (2 * pagesize);
24495 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
24496 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
24497 MAP_PRIVATE | MAP_FIXED, fd, 0L))
24499 for (i = 0; i < pagesize; ++i)
24500 if (*(data + i) != *(data2 + i))
24503 /* Finally, make sure that changes to the mapped area do not
24504 percolate back to the file as seen by read(). (This is a bug on
24505 some variants of i386 svr4.0.) */
24506 for (i = 0; i < pagesize; ++i)
24507 *(data2 + i) = *(data2 + i) + 1;
24508 data3 = (char *) malloc (pagesize);
24511 if (read (fd, data3, pagesize) != pagesize)
24513 for (i = 0; i < pagesize; ++i)
24514 if (*(data + i) != *(data3 + i))
24520 rm -f conftest$ac_exeext
24521 if { (ac_try="$ac_link"
24522 case "(($ac_try" in
24523 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
24524 *) ac_try_echo
=$ac_try;;
24526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24527 (eval "$ac_link") 2>&5
24529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24530 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
24531 { (case "(($ac_try" in
24532 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
24533 *) ac_try_echo=$ac_try;;
24535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24536 (eval "$ac_try") 2>&5
24538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24539 (exit $ac_status); }; }; then
24540 ac_cv_func_mmap_fixed_mapped=yes
24542 echo "$as_me: program exited with status $ac_status" >&5
24543 echo "$as_me: failed program was:" >&5
24544 sed 's/^/| /' conftest.$ac_ext >&5
24546 ( exit $ac_status )
24547 ac_cv_func_mmap_fixed_mapped=no
24549 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24554 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
24555 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
24556 if test $ac_cv_func_mmap_fixed_mapped = yes; then
24558 cat >>confdefs.h <<\_ACEOF
24559 #define HAVE_MMAP 1
24563 rm -f conftest.mmap
24566 { echo "$as_me:$LINENO: checking for /dev/poll" >&5
24567 echo $ECHO_N "checking for /dev/poll... $ECHO_C" >&6; }
24568 if test -c "/dev/poll"; then
24569 { echo "$as_me:$LINENO: result: yes" >&5
24570 echo "${ECHO_T}yes" >&6; }
24572 cat >>confdefs.h <<\_ACEOF
24573 #define HAVE_DEVPOLL 1
24577 { echo "$as_me:$LINENO: result: no" >&5
24578 echo "${ECHO_T}no" >&6; }
24582 if test "$is_mingw" = "yes"; then
24584 cat >>confdefs.h <<\_ACEOF
24585 #define HAVE_WIN32 1
24591 { echo "$as_me:$LINENO: checking for OpenSSL" >&5
24592 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6; }
24593 # Check whether --enable-openssl was given.
24594 if test "${enable_openssl+set}" = set; then
24595 enableval=$enable_openssl; cf_enable_openssl=$enableval
24597 cf_enable_openssl="auto"
24601 if test "$cf_enable_openssl" != "no" ; then
24602 cf_openssl_basedir=""
24603 if test "$cf_enable_openssl" != "auto" &&
24604 test "$cf_enable_openssl" != "yes" ; then
24605 cf_openssl_basedir="`echo ${cf_enable_openssl} | sed 's/\/$//'`"
24607 for dirs in /usr/local/ssl /usr/pkg /usr/local \
24608 /usr/local/openssl ; do
24609 if test -f "${dirs}/include/openssl/opensslv.h" ; then
24610 cf_openssl_basedir="${dirs}"
24616 if test ! -z "$cf_openssl_basedir"; then
24617 if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h" ; then
24618 SSL_CFLAGS="-I${cf_openssl_basedir}/include"
24619 SSL_LIBS="-L${cf_openssl_basedir}/lib"
24621 cf_openssl_basedir=""
24624 if test -f "/usr/include/openssl/opensslv.h" ; then
24625 cf_openssl_basedir="/usr"
24629 if test ! -z "$cf_openssl_basedir"; then
24630 { echo "$as_me:$LINENO: result: $cf_openssl_basedir" >&5
24631 echo "${ECHO_T}$cf_openssl_basedir" >&6; }
24632 cf_enable_openssl="yes"
24634 { echo "$as_me:$LINENO: result: not found. Specify a correct path?" >&5
24635 echo "${ECHO_T}not found. Specify a correct path?" >&6; }
24636 cf_enable_openssl="no"
24638 unset cf_openssl_basedir
24640 { echo "$as_me:$LINENO: result: disabled" >&5
24641 echo "${ECHO_T}disabled" >&6; }
24644 save_CPPFLAGS="$CPPFLAGS"
24645 CPPFLAGS="$CPPFLAGS $SSL_CFLAGS"
24647 LIBS="$LIBS $SSL_LIBS"
24648 if test "$cf_enable_openssl" != no; then
24649 { echo "$as_me:$LINENO: checking for OpenSSL 0.9.7 or above" >&5
24650 echo $ECHO_N "checking for OpenSSL 0.9.7 or above... $ECHO_C" >&6; }
24651 if test "$cross_compiling" = yes; then
24652 cf_enable_openssl=no
24654 cat >conftest.$ac_ext <<_ACEOF
24657 cat confdefs.h >>conftest.$ac_ext
24658 cat >>conftest.$ac_ext <<_ACEOF
24659 /* end confdefs.h. */
24660 #include <openssl/opensslv.h>
24661 #include <stdlib.h>
24665 if (OPENSSL_VERSION_NUMBER >= 0x00907000)
24666 exit(0); else exit(1);
24671 rm -f conftest$ac_exeext
24672 if { (ac_try="$ac_link"
24673 case "(($ac_try" in
24674 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
24675 *) ac_try_echo
=$ac_try;;
24677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24678 (eval "$ac_link") 2>&5
24680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24681 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
24682 { (case "(($ac_try" in
24683 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
24684 *) ac_try_echo=$ac_try;;
24686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24687 (eval "$ac_try") 2>&5
24689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24690 (exit $ac_status); }; }; then
24691 cf_enable_openssl=yes
24693 echo "$as_me: program exited with status $ac_status" >&5
24694 echo "$as_me: failed program was:" >&5
24695 sed 's/^/| /' conftest.$ac_ext >&5
24697 ( exit $ac_status )
24698 cf_enable_openssl=no
24700 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24705 if test "$cf_enable_openssl" != no; then
24706 { echo "$as_me:$LINENO: result: found" >&5
24707 echo "${ECHO_T}found" >&6; }
24709 { echo "$as_me:$LINENO: result: no - OpenSSL support disabled" >&5
24710 echo "${ECHO_T}no - OpenSSL support disabled" >&6; }
24716 if test "$cf_enable_openssl" != no; then
24717 CPPFLAGS="$CPPFLAGS $SSL_LIBS"
24718 { echo "$as_me:$LINENO: checking for RAND_status in -lcrypto" >&5
24719 echo $ECHO_N "checking for RAND_status in -lcrypto... $ECHO_C" >&6; }
24720 if test "${ac_cv_lib_crypto_RAND_status+set}" = set; then
24721 echo $ECHO_N "(cached) $ECHO_C" >&6
24723 ac_check_lib_save_LIBS=$LIBS
24724 LIBS="-lcrypto $LIBS"
24725 cat >conftest.$ac_ext <<_ACEOF
24728 cat confdefs.h >>conftest.$ac_ext
24729 cat >>conftest.$ac_ext <<_ACEOF
24730 /* end confdefs.h. */
24732 /* Override any GCC internal prototype to avoid an error.
24733 Use char because int might match the return type of a GCC
24734 builtin and then its argument prototype would still apply. */
24738 char RAND_status ();
24742 return RAND_status ();
24747 rm -f conftest.$ac_objext conftest$ac_exeext
24748 if { (ac_try="$ac_link"
24749 case "(($ac_try" in
24750 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
24751 *) ac_try_echo
=$ac_try;;
24753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24754 (eval "$ac_link") 2>conftest.er1
24756 grep -v '^ *+' conftest.er1
>conftest.err
24758 cat conftest.err
>&5
24759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24760 (exit $ac_status); } && {
24761 test -z "$ac_c_werror_flag" ||
24762 test ! -s conftest.err
24763 } && test -s conftest
$ac_exeext &&
24764 $as_test_x conftest
$ac_exeext; then
24765 ac_cv_lib_crypto_RAND_status
=yes
24767 echo "$as_me: failed program was:" >&5
24768 sed 's/^/| /' conftest.
$ac_ext >&5
24770 ac_cv_lib_crypto_RAND_status
=no
24773 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
24774 conftest
$ac_exeext conftest.
$ac_ext
24775 LIBS
=$ac_check_lib_save_LIBS
24777 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_RAND_status" >&5
24778 echo "${ECHO_T}$ac_cv_lib_crypto_RAND_status" >&6; }
24779 if test $ac_cv_lib_crypto_RAND_status = yes; then
24780 cf_enable_openssl
=yes
24782 cf_enable_openssl
=no
24788 if test "$cf_enable_openssl" != no
; then
24789 CPPFLAGS
="$CPPFLAGS $SSL_LIBS"
24790 { echo "$as_me:$LINENO: checking for SSL_read in -lssl" >&5
24791 echo $ECHO_N "checking for SSL_read in -lssl... $ECHO_C" >&6; }
24792 if test "${ac_cv_lib_ssl_SSL_read+set}" = set; then
24793 echo $ECHO_N "(cached) $ECHO_C" >&6
24795 ac_check_lib_save_LIBS
=$LIBS
24796 LIBS
="-lssl -lcrypto $LIBS"
24797 cat >conftest.
$ac_ext <<_ACEOF
24800 cat confdefs.h
>>conftest.
$ac_ext
24801 cat >>conftest.
$ac_ext <<_ACEOF
24802 /* end confdefs.h. */
24804 /* Override any GCC internal prototype to avoid an error.
24805 Use char because int might match the return type of a GCC
24806 builtin and then its argument prototype would still apply. */
24814 return SSL_read ();
24819 rm -f conftest.
$ac_objext conftest
$ac_exeext
24820 if { (ac_try
="$ac_link"
24821 case "(($ac_try" in
24822 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
24823 *) ac_try_echo=$ac_try;;
24825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24826 (eval "$ac_link") 2>conftest.er1
24828 grep -v '^ *+' conftest.er1 >conftest.err
24830 cat conftest.err >&5
24831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24832 (exit $ac_status); } && {
24833 test -z "$ac_c_werror_flag" ||
24834 test ! -s conftest.err
24835 } && test -s conftest$ac_exeext &&
24836 $as_test_x conftest$ac_exeext; then
24837 ac_cv_lib_ssl_SSL_read=yes
24839 echo "$as_me: failed program was:" >&5
24840 sed 's/^/| /' conftest.$ac_ext >&5
24842 ac_cv_lib_ssl_SSL_read=no
24845 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24846 conftest$ac_exeext conftest.$ac_ext
24847 LIBS=$ac_check_lib_save_LIBS
24849 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_read" >&5
24850 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_read" >&6; }
24851 if test $ac_cv_lib_ssl_SSL_read = yes; then
24852 SSL_LIBS="-lssl -lcrypto"
24854 cf_enable_openssl=no
24861 { echo "$as_me:$LINENO: checking for GnuTLS" >&5
24862 echo $ECHO_N "checking for GnuTLS... $ECHO_C" >&6; }
24863 # Check whether --enable-gnutls was given.
24864 if test "${enable_gnutls+set}" = set; then
24865 enableval=$enable_gnutls; cf_enable_gnutls=$enableval
24867 cf_enable_gnutls="auto"
24871 if test "$cf_enable_gnutls" != no; then
24874 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
24875 if test -n "$ac_tool_prefix"; then
24876 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
24877 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
24878 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24879 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24880 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
24881 echo $ECHO_N "(cached) $ECHO_C" >&6
24883 case $PKG_CONFIG in
24885 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
24888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24889 for as_dir in $PATH
24892 test -z "$as_dir" && as_dir=.
24893 for ac_exec_ext in '' $ac_executable_extensions; do
24894 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24895 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24896 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24906 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
24907 if test -n "$PKG_CONFIG"; then
24908 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
24909 echo "${ECHO_T}$PKG_CONFIG" >&6; }
24911 { echo "$as_me:$LINENO: result: no" >&5
24912 echo "${ECHO_T}no" >&6; }
24917 if test -z "$ac_cv_path_PKG_CONFIG"; then
24918 ac_pt_PKG_CONFIG=$PKG_CONFIG
24919 # Extract the first word of "pkg-config", so it can be a program name with args.
24920 set dummy pkg-config; ac_word=$2
24921 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24922 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24923 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
24924 echo $ECHO_N "(cached) $ECHO_C" >&6
24926 case $ac_pt_PKG_CONFIG in
24928 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
24931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24932 for as_dir in $PATH
24935 test -z "$as_dir" && as_dir=.
24936 for ac_exec_ext in '' $ac_executable_extensions; do
24937 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24938 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24939 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24949 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
24950 if test -n "$ac_pt_PKG_CONFIG"; then
24951 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
24952 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
24954 { echo "$as_me:$LINENO: result: no" >&5
24955 echo "${ECHO_T}no" >&6; }
24958 if test "x$ac_pt_PKG_CONFIG" = x; then
24961 case $cross_compiling:$ac_tool_warned in
24963 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
24964 whose name does not start with the host triplet. If you think this
24965 configuration is useful to you, please write to autoconf@gnu.org." >&5
24966 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
24967 whose name does not start with the host triplet. If you think this
24968 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
24969 ac_tool_warned=yes ;;
24971 PKG_CONFIG=$ac_pt_PKG_CONFIG
24974 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
24978 if test -n "$PKG_CONFIG"; then
24979 _pkg_min_version=0.9.0
24980 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
24981 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
24982 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
24983 { echo "$as_me:$LINENO: result: yes" >&5
24984 echo "${ECHO_T}yes" >&6; }
24986 { echo "$as_me:$LINENO: result: no" >&5
24987 echo "${ECHO_T}no" >&6; }
24994 { echo "$as_me:$LINENO: checking for GNUTLS" >&5
24995 echo $ECHO_N "checking for GNUTLS... $ECHO_C" >&6; }
24997 if test -n "$PKG_CONFIG"; then
24998 if test -n "$GNUTLS_CFLAGS"; then
24999 pkg_cv_GNUTLS_CFLAGS="$GNUTLS_CFLAGS"
25001 if test -n "$PKG_CONFIG" && \
25002 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnutls\"") >&5
25003 ($PKG_CONFIG --exists --print-errors "gnutls") 2>&5
25005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25006 (exit $ac_status); }; then
25007 pkg_cv_GNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls" 2>/dev
/null
`
25015 if test -n "$PKG_CONFIG"; then
25016 if test -n "$GNUTLS_LIBS"; then
25017 pkg_cv_GNUTLS_LIBS="$GNUTLS_LIBS"
25019 if test -n "$PKG_CONFIG" && \
25020 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnutls\"") >&5
25021 ($PKG_CONFIG --exists --print-errors "gnutls") 2>&5
25023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25024 (exit $ac_status); }; then
25025 pkg_cv_GNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls" 2>/dev
/null
`
25036 if test $pkg_failed = yes; then
25038 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
25039 _pkg_short_errors_supported=yes
25041 _pkg_short_errors_supported=no
25043 if test $_pkg_short_errors_supported = yes; then
25044 GNUTLS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gnutls"`
25046 GNUTLS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls"`
25048 # Put the nasty error message in config.log where it belongs
25049 echo "$GNUTLS_PKG_ERRORS" >&5
25051 { echo "$as_me:$LINENO: result: no" >&5
25052 echo "${ECHO_T}no" >&6; }
25053 cf_enable_gnutls="no"
25054 elif test $pkg_failed = untried; then
25055 cf_enable_gnutls="no"
25057 GNUTLS_CFLAGS=$pkg_cv_GNUTLS_CFLAGS
25058 GNUTLS_LIBS=$pkg_cv_GNUTLS_LIBS
25059 { echo "$as_me:$LINENO: result: yes" >&5
25060 echo "${ECHO_T}yes" >&6; }
25062 cf_enable_gnutls="yes"
25067 if test "$cf_enable_gnutls" = "auto" -a "$cf_enable_openssl" = "yes"; then
25068 cf_enable_gnutls="no"
25071 if test x"$cf_enable_openssl" != xno; then
25073 cat >>confdefs.h <<\_ACEOF
25074 #define HAVE_OPENSSL 1
25080 elif test x"$cf_enable_gnutls" != xno; then
25082 cat >>confdefs.h <<\_ACEOF
25083 #define HAVE_GNUTLS 1
25094 CPPFLAGS="$save_CPPFLAGS"
25102 # Check whether --enable-assert was given.
25103 if test "${enable_assert+set}" = set; then
25104 enableval=$enable_assert; assert=$enableval
25110 if test "$assert" = no; then
25112 cat >>confdefs.h <<\_ACEOF
25116 elif test "$assert" = soft; then
25118 cat >>confdefs.h <<\_ACEOF
25119 #define SOFT_ASSERT 1
25123 cat >>confdefs.h <<\_ACEOF
25127 elif test "$assert" = yes; then
25131 { echo "$as_me:$LINENO: checking if you want to do a profile build" >&5
25132 echo $ECHO_N "checking if you want to do a profile build... $ECHO_C" >&6; }
25133 # Check whether --enable-profile was given.
25134 if test "${enable_profile+set}" = set; then
25135 enableval=$enable_profile; profile=$enableval
25141 if test "$profile" = yes; then
25142 if test "$ac_cv_c_compiler_gnu" = yes; then
25143 CFLAGS="$CFLAGS -pg -static"
25144 { echo "$as_me:$LINENO: result: yes, adding -pg -static" >&5
25145 echo "${ECHO_T}yes, adding -pg -static" >&6; }
25147 cat >>confdefs.h <<\_ACEOF
25148 #define RATBOX_PROFILE 1
25152 { echo "$as_me:$LINENO: result: no, profile builds only work with gcc" >&5
25153 echo "${ECHO_T}no, profile builds only work with gcc" >&6; }
25156 { echo "$as_me:$LINENO: result: no" >&5
25157 echo "${ECHO_T}no" >&6; }
25160 # Check whether --enable-balloc was given.
25161 if test "${enable_balloc+set}" = set; then
25162 enableval=$enable_balloc; balloc=$enableval
25168 if test "$balloc" = no; then
25170 cat >>confdefs.h <<\_ACEOF
25176 # Check whether --enable-warnings was given.
25177 if test "${enable_warnings+set}" = set; then
25178 enableval=$enable_warnings; CFLAGS="$CFLAGS -Wall -Werror -Wcast-qual -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wshadow -Wwrite-strings -W -Wno-unused -Wunused-function -Wunused-variable"
25191 if test "$prefix" = "NONE"; then
25193 cat >>confdefs.h <<_ACEOF
25194 #define RB_PREFIX "$ac_default_prefix"
25201 prefix=`echo $prefix | sed 's/\/$//'`
25203 cat >>confdefs.h <<_ACEOF
25204 #define RB_PREFIX "$prefix"
25212 ac_config_commands="$ac_config_commands include/librb-config.h"
25216 ac_config_files="$ac_config_files src/Makefile Makefile libratbox.pc"
25219 cat >confcache <<\_ACEOF
25220 # This file is a shell script that caches the results of configure
25221 # tests run on this system so they can be shared between configure
25222 # scripts and configure runs, see configure's option --config-cache.
25223 # It is not useful on other systems. If it contains results you don't
25224 # want to keep, you may remove or edit it.
25226 # config.status only pays attention to the cache file if you give it
25227 # the --recheck option to rerun configure.
25229 # `ac_cv_env_foo
' variables (set or unset) will be overridden when
25230 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25231 # following values.
25235 # The following way of writing the cache mishandles newlines in values,
25236 # but we know of no workaround that is simple, portable, and efficient.
25237 # So, we kill variables containing newlines.
25238 # Ultrix sh set writes to stderr and can't be redirected directly,
25239 # and sets the high bit in the cache file unless we assign to the vars.
25241 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25242 eval ac_val
=\$
$ac_var
25246 *_cv_
*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
25247 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
25250 _
| IFS
| as_nl
) ;; #(
25251 *) $as_unset $ac_var ;;
25257 case $as_nl`(ac_space=' '; set) 2>&1` in #(
25258 *${as_nl}ac_space
=\
*)
25259 # `set' does not quote correctly, so add quotes (double-quote
25260 # substitution turns \\\\ into \\, and sed turns \\ into \).
25263 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25266 # `set' quotes correctly as required by POSIX, so do not add quotes.
25267 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25276 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25278 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25280 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
25281 if test -w "$cache_file"; then
25282 test "x$cache_file" != "x/dev/null" &&
25283 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
25284 echo "$as_me: updating cache $cache_file" >&6;}
25285 cat confcache
>$cache_file
25287 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
25288 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25293 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
25294 # Let make expand exec_prefix.
25295 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
25297 DEFS
=-DHAVE_CONFIG_H
25301 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
25302 # 1. Remove the extension, and $U if already installed.
25303 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
25304 ac_i
=`echo "$ac_i" | sed "$ac_script"`
25305 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
25306 # will be set to the directory where LIBOBJS objects are built.
25307 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25308 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
25310 LIBOBJS
=$ac_libobjs
25312 LTLIBOBJS
=$ac_ltlibobjs
25315 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
25316 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
25317 Usually this means the macro was only invoked conditionally." >&5
25318 echo "$as_me: error: conditional \"AMDEP\" was never defined.
25319 Usually this means the macro was only invoked conditionally." >&2;}
25320 { (exit 1); exit 1; }; }
25322 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
25323 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
25324 Usually this means the macro was only invoked conditionally." >&5
25325 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
25326 Usually this means the macro was only invoked conditionally." >&2;}
25327 { (exit 1); exit 1; }; }
25329 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
25330 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
25331 Usually this means the macro was only invoked conditionally." >&5
25332 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
25333 Usually this means the macro was only invoked conditionally." >&2;}
25334 { (exit 1); exit 1; }; }
25336 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
25337 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
25338 Usually this means the macro was only invoked conditionally." >&5
25339 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
25340 Usually this means the macro was only invoked conditionally." >&2;}
25341 { (exit 1); exit 1; }; }
25343 if test -z "${MINGW_TRUE}" && test -z "${MINGW_FALSE}"; then
25344 { { echo "$as_me:$LINENO: error: conditional \"MINGW\" was never defined.
25345 Usually this means the macro was only invoked conditionally." >&5
25346 echo "$as_me: error: conditional \"MINGW\" was never defined.
25347 Usually this means the macro was only invoked conditionally." >&2;}
25348 { (exit 1); exit 1; }; }
25350 if test -z "${NEED_CRYPT_TRUE}" && test -z "${NEED_CRYPT_FALSE}"; then
25351 { { echo "$as_me:$LINENO: error: conditional \"NEED_CRYPT\" was never defined.
25352 Usually this means the macro was only invoked conditionally." >&5
25353 echo "$as_me: error: conditional \"NEED_CRYPT\" was never defined.
25354 Usually this means the macro was only invoked conditionally." >&2;}
25355 { (exit 1); exit 1; }; }
25358 : ${CONFIG_STATUS=./config.status}
25359 ac_clean_files_save
=$ac_clean_files
25360 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
25361 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
25362 echo "$as_me: creating $CONFIG_STATUS" >&6;}
25363 cat >$CONFIG_STATUS <<_ACEOF
25365 # Generated by $as_me.
25366 # Run this file to recreate the current configuration.
25367 # Compiler output produced by configure, useful for debugging
25368 # configure, is in config.log if it exists.
25371 ac_cs_recheck=false
25373 SHELL=\${CONFIG_SHELL-$SHELL}
25376 cat >>$CONFIG_STATUS <<\_ACEOF
25377 ## --------------------- ##
25378 ## M4sh Initialization. ##
25379 ## --------------------- ##
25381 # Be more Bourne compatible
25382 DUALCASE
=1; export DUALCASE
# for MKS sh
25383 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
25386 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25387 # is contrary to our usage. Disable this feature.
25388 alias -g '${1+"$@"}'='"$@"'
25389 setopt NO_GLOB_SUBST
25391 case `(set -o) 2>/dev/null` in
25392 *posix
*) set -o posix
;;
25401 # Avoid depending upon Character Ranges.
25402 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
25403 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25404 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
25405 as_cr_digits
='0123456789'
25406 as_cr_alnum
=$as_cr_Letters$as_cr_digits
25408 # The user is always right.
25409 if test "${PATH_SEPARATOR+set}" != set; then
25410 echo "#! /bin/sh" >conf$$.sh
25411 echo "exit 0" >>conf$$.sh
25413 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
25421 # Support unset when possible.
25422 if ( (MAIL
=60; unset MAIL
) || exit) >/dev
/null
2>&1; then
25430 # We need space, tab and new line, in precisely that order. Quoting is
25431 # there to prevent editors from complaining about space-tab.
25432 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25433 # splitting by setting IFS to empty value.)
25438 # Find who we are. Look in the path if we contain no directory separator.
25440 *[\\/]* ) as_myself
=$0 ;;
25441 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
25442 for as_dir
in $PATH
25445 test -z "$as_dir" && as_dir
=.
25446 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
25452 # We did not find ourselves, most probably we were run as `sh COMMAND'
25453 # in which case we are not to be found in the path.
25454 if test "x$as_myself" = x
; then
25457 if test ! -f "$as_myself"; then
25458 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25459 { (exit 1); exit 1; }
25462 # Work around bugs in pre-3.0 UWIN ksh.
25463 for as_var
in ENV MAIL MAILPATH
25464 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
25472 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
25473 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
25474 LC_TELEPHONE LC_TIME
25476 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
25477 eval $as_var=C
; export $as_var
25479 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
25483 # Required to use basename.
25484 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
25485 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
25491 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25492 as_basename
=basename
25498 # Name of the executable.
25499 as_me
=`$as_basename -- "$0" ||
25500 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25501 X"$0" : 'X\(//\)$' \| \
25502 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25504 sed '/^.*\/\([^/][^/]*\)\/*$/{
25523 as_lineno_1
=$LINENO
25524 as_lineno_2
=$LINENO
25525 test "x$as_lineno_1" != "x$as_lineno_2" &&
25526 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
25528 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
25529 # uniformly replaced by the line number. The first 'sed' inserts a
25530 # line-number line after each line using $LINENO; the second 'sed'
25531 # does the real work. The second script uses 'N' to pair each
25532 # line-number line with the line containing $LINENO, and appends
25533 # trailing '-' during substitution so that $LINENO is not a special
25534 # case at line end.
25535 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
25536 # scripts with optimization help from Paolo Bonzini. Blame Lee
25537 # E. McMahon (1931-1989) for sed's syntax. :-)
25549 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
25552 ' >$as_me.lineno
&&
25553 chmod +x
"$as_me.lineno" ||
25554 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
25555 { (exit 1); exit 1; }; }
25557 # Don't try to exec as it changes $[0], causing all sort of problems
25558 # (the dirname of $[0] is not the place where we might find the
25559 # original and so on. Autoconf is especially sensitive to this).
25560 .
"./$as_me.lineno"
25561 # Exit status is that of the last command.
25566 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
25572 ECHO_C
= ECHO_N
= ECHO_T
=
25573 case `echo -n x` in
25575 case `echo 'x\c'` in
25576 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
25583 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
25584 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
25590 rm -f conf$$ conf$$.exe conf$$.
file
25591 if test -d conf$$.dir
; then
25592 rm -f conf$$.dir
/conf$$.
file
25598 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
25600 # ... but there are two gotchas:
25601 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25602 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25603 # In both cases, we have to default to `cp -p'.
25604 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe
||
25606 elif ln conf$$.
file conf$$
2>/dev
/null
; then
25611 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
25612 rmdir conf$$.dir
2>/dev
/null
25614 if mkdir -p .
2>/dev
/null
; then
25617 test -d .
/-p && rmdir .
/-p
25621 if test -x / >/dev
/null
2>&1; then
25622 as_test_x
='test -x'
25624 if ls -dL / >/dev
/null
2>&1; then
25631 if test -d "$1"; then
25637 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
25638 ???[sx]*):;;*)false;;esac;fi
25642 as_executable_p
=$as_test_x
25644 # Sed expression to map a string onto a valid CPP name.
25645 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25647 # Sed expression to map a string onto a valid variable name.
25648 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25653 # Save the log message, to keep $[0] and so on meaningful, and to
25654 # report actual input values of CONFIG_FILES etc. instead of their
25655 # values after options handling.
25657 This file was extended by libratbox $as_me devel, which was
25658 generated by GNU Autoconf 2.61. Invocation command line was
25660 CONFIG_FILES = $CONFIG_FILES
25661 CONFIG_HEADERS = $CONFIG_HEADERS
25662 CONFIG_LINKS = $CONFIG_LINKS
25663 CONFIG_COMMANDS = $CONFIG_COMMANDS
25666 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25671 cat >>$CONFIG_STATUS <<_ACEOF
25672 # Files that config.status was made for.
25673 config_files="$ac_config_files"
25674 config_headers="$ac_config_headers"
25675 config_commands="$ac_config_commands"
25679 cat >>$CONFIG_STATUS <<\_ACEOF
25681 \`$as_me' instantiates files from templates according to the
25682 current configuration.
25684 Usage: $0 [OPTIONS] [FILE]...
25686 -h, --help print this help, then exit
25687 -V, --version print version number and configuration settings, then exit
25688 -q, --quiet do not print progress messages
25689 -d, --debug don't remove temporary files
25690 --recheck update $as_me by reconfiguring in the same conditions
25691 --file=FILE[:TEMPLATE]
25692 instantiate the configuration file FILE
25693 --header=FILE[:TEMPLATE]
25694 instantiate the configuration header FILE
25696 Configuration files:
25699 Configuration headers:
25702 Configuration commands:
25705 Report bugs to <bug-autoconf@gnu.org>."
25708 cat >>$CONFIG_STATUS <<_ACEOF
25710 libratbox config.status devel
25711 configured by $0, generated by GNU Autoconf 2.61,
25712 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
25714 Copyright (C) 2006 Free Software Foundation, Inc.
25715 This config.status script is free software; the Free Software Foundation
25716 gives unlimited permission to copy, distribute and modify it."
25724 cat >>$CONFIG_STATUS <<\_ACEOF
25725 # If no file are specified by the user, then we need to provide default
25726 # value. By we need to know if files were specified by the user.
25732 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
25733 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
25744 # Handling of the options.
25745 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25747 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25748 echo "$ac_cs_version"; exit ;;
25749 --debug | --debu | --deb | --de | --d | -d )
25751 --file | --fil | --fi | --f )
25753 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
25754 ac_need_defaults
=false
;;
25755 --header | --heade | --head | --hea )
25757 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
25758 ac_need_defaults
=false
;;
25760 # Conflict between --help and --header
25761 { echo "$as_me: error: ambiguous option: $1
25762 Try \`$0 --help' for more information." >&2
25763 { (exit 1); exit 1; }; };;
25764 --help | --hel | -h )
25765 echo "$ac_cs_usage"; exit ;;
25766 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25767 | -silent | --silent | --silen | --sile | --sil | --si | --s)
25770 # This is an error.
25771 -*) { echo "$as_me: error: unrecognized option: $1
25772 Try \`$0 --help' for more information." >&2
25773 { (exit 1); exit 1; }; } ;;
25775 *) ac_config_targets
="$ac_config_targets $1"
25776 ac_need_defaults
=false
;;
25782 ac_configure_extra_args
=
25784 if $ac_cs_silent; then
25786 ac_configure_extra_args
="$ac_configure_extra_args --silent"
25790 cat >>$CONFIG_STATUS <<_ACEOF
25791 if \$ac_cs_recheck; then
25792 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
25793 CONFIG_SHELL=$SHELL
25794 export CONFIG_SHELL
25795 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25799 cat >>$CONFIG_STATUS <<\_ACEOF
25803 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25804 ## Running $as_me. ##
25810 cat >>$CONFIG_STATUS <<_ACEOF
25814 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
25816 if test x$ac_cv_header_stdc = xyes; then
25819 if test x$ac_cv_header_stdlib_h = xyes; then
25820 rb_header_stdlib_h=yes
25822 if test x$ac_cv_header_string_h = xyes; then
25823 rb_header_string_h=yes
25825 if test x$ac_cv_header_memory_h = xyes; then
25826 rb_header_memory_h=yes
25828 if test "x${ac_cv_working_alloca_h+set}" = xset ; then
25829 rb_alloca_h="$ac_cv_working_alloca_h"
25831 rb_alloc_h="$ac_cv_header_alloca_h"
25833 if test x$ac_cv_member_struct_sockaddr_sa_len = xyes; then
25834 rb_sockaddr_sa_len=yes
25836 if test x$ac_cv_header_sys_socket_h = xyes; then
25837 rb_sys_socket_h=yes
25839 if test x$ac_cv_header_sys_types_h = xyes; then
25842 if test x$ac_cv_header_sys_stat_h = xyes; then
25845 if test x$ac_cv_header_sys_time_h = xyes; then
25848 if test x$ac_cv_header_time = xyes; then
25852 if test x$ac_cv_header_stdint_h = xyes; then
25855 if test x$ac_cv_header_inttypes_h = xyes; then
25858 if test x$ac_cv_header_netinet_in_h = xyes; then
25859 rb_netinet_in_h=yes
25862 if test x$ac_cv_header_crypt_h = xyes; then
25865 if test x$ac_cv_header_errno_h = xyes; then
25868 if test x$ac_cv_header_unistd_h = xyes; then
25871 if test x$ac_cv_header_windows_h = xyes; then
25874 if test x$ac_cv_header_winsock2_h = xyes; then
25878 rb_socklen_t=$rb_socklen_t
25880 if test "x$rb_have_sockaddr_storage" = "xyes"; then
25881 rb_sockaddr_storage="yes"
25883 rb_sockaddr_storage="no"
25886 rb_have_ipv6="$have_v6"
25898 cat >>$CONFIG_STATUS <<\_ACEOF
25900 # Handling of arguments.
25901 for ac_config_target
in $ac_config_targets
25903 case $ac_config_target in
25904 "include/libratbox_config.h") CONFIG_HEADERS
="$CONFIG_HEADERS include/libratbox_config.h" ;;
25905 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
25906 "include/librb-config.h") CONFIG_COMMANDS
="$CONFIG_COMMANDS include/librb-config.h" ;;
25907 "src/Makefile") CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
25908 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
25909 "libratbox.pc") CONFIG_FILES
="$CONFIG_FILES libratbox.pc" ;;
25911 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25912 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25913 { (exit 1); exit 1; }; };;
25918 # If the user did not use the arguments to specify the items to instantiate,
25919 # then the envvar interface is used. Set only those that are not.
25920 # We use the long form for the default assignment because of an extremely
25921 # bizarre bug on SunOS 4.1.3.
25922 if $ac_need_defaults; then
25923 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
25924 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
25925 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
25928 # Have a temporary directory for convenience. Make it in the build tree
25929 # simply because there is no reason against having it here, and in addition,
25930 # creating and moving files from /tmp can sometimes cause problems.
25931 # Hook for its removal unless debugging.
25932 # Note that there is a small window in which the directory will not be cleaned:
25933 # after its creation but before its name has been assigned to `$tmp'.
25937 trap 'exit_status=$?
25938 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25940 trap '{ (exit 1); exit 1; }' 1 2 13 15
25942 # Create a (secure) tmp directory for tmp files.
25945 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25946 test -n "$tmp" && test -d "$tmp"
25949 tmp
=.
/conf$$
-$RANDOM
25950 (umask 077 && mkdir "$tmp")
25953 echo "$me: cannot create a temporary directory in ." >&2
25954 { (exit 1); exit 1; }
25958 # Set up the sed scripts for CONFIG_FILES section.
25961 # No need to generate the scripts if there are no CONFIG_FILES.
25962 # This happens for instance when ./config.status config.h
25963 if test -n "$CONFIG_FILES"; then
25970 for ac_last_try
in false false false false false
:; do
25971 cat >conf$
$subs.
sed <<_ACEOF
25972 SHELL!$SHELL$ac_delim
25973 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
25974 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
25975 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
25976 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
25977 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
25978 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
25979 exec_prefix!$exec_prefix$ac_delim
25980 prefix!$prefix$ac_delim
25981 program_transform_name!$program_transform_name$ac_delim
25982 bindir!$bindir$ac_delim
25983 sbindir!$sbindir$ac_delim
25984 libexecdir!$libexecdir$ac_delim
25985 datarootdir!$datarootdir$ac_delim
25986 datadir!$datadir$ac_delim
25987 sysconfdir!$sysconfdir$ac_delim
25988 sharedstatedir!$sharedstatedir$ac_delim
25989 localstatedir!$localstatedir$ac_delim
25990 includedir!$includedir$ac_delim
25991 oldincludedir!$oldincludedir$ac_delim
25992 docdir!$docdir$ac_delim
25993 infodir!$infodir$ac_delim
25994 htmldir!$htmldir$ac_delim
25995 dvidir!$dvidir$ac_delim
25996 pdfdir!$pdfdir$ac_delim
25997 psdir!$psdir$ac_delim
25998 libdir!$libdir$ac_delim
25999 localedir!$localedir$ac_delim
26000 mandir!$mandir$ac_delim
26001 DEFS!$DEFS$ac_delim
26002 ECHO_C!$ECHO_C$ac_delim
26003 ECHO_N!$ECHO_N$ac_delim
26004 ECHO_T!$ECHO_T$ac_delim
26005 LIBS!$LIBS$ac_delim
26006 build_alias!$build_alias$ac_delim
26007 host_alias!$host_alias$ac_delim
26008 target_alias!$target_alias$ac_delim
26009 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
26010 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
26011 INSTALL_DATA!$INSTALL_DATA$ac_delim
26012 am__isrc!$am__isrc$ac_delim
26013 CYGPATH_W!$CYGPATH_W$ac_delim
26014 PACKAGE!$PACKAGE$ac_delim
26015 VERSION!$VERSION$ac_delim
26016 ACLOCAL!$ACLOCAL$ac_delim
26017 AUTOCONF!$AUTOCONF$ac_delim
26018 AUTOMAKE!$AUTOMAKE$ac_delim
26019 AUTOHEADER!$AUTOHEADER$ac_delim
26020 MAKEINFO!$MAKEINFO$ac_delim
26021 install_sh!$install_sh$ac_delim
26022 STRIP!$STRIP$ac_delim
26023 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
26024 mkdir_p!$mkdir_p$ac_delim
26026 SET_MAKE!$SET_MAKE$ac_delim
26027 am__leading_dot!$am__leading_dot$ac_delim
26028 AMTAR!$AMTAR$ac_delim
26029 am__tar!$am__tar$ac_delim
26030 am__untar!$am__untar$ac_delim
26032 CFLAGS!$CFLAGS$ac_delim
26033 LDFLAGS!$LDFLAGS$ac_delim
26034 CPPFLAGS!$CPPFLAGS$ac_delim
26035 ac_ct_CC!$ac_ct_CC$ac_delim
26036 EXEEXT!$EXEEXT$ac_delim
26037 OBJEXT!$OBJEXT$ac_delim
26038 DEPDIR!$DEPDIR$ac_delim
26039 am__include!$am__include$ac_delim
26040 am__quote!$am__quote$ac_delim
26041 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
26042 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
26043 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
26044 CCDEPMODE!$CCDEPMODE$ac_delim
26045 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
26046 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
26047 GREP!$GREP$ac_delim
26048 EGREP!$EGREP$ac_delim
26050 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
26051 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
26052 MAINT!$MAINT$ac_delim
26060 RANLIB!$RANLIB$ac_delim
26061 TOUCH!$TOUCH$ac_delim
26062 build!$build$ac_delim
26063 build_cpu!$build_cpu$ac_delim
26064 build_vendor!$build_vendor$ac_delim
26065 build_os!$build_os$ac_delim
26066 host!$host$ac_delim
26067 host_cpu!$host_cpu$ac_delim
26068 host_vendor!$host_vendor$ac_delim
26071 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
26073 elif $ac_last_try; then
26074 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26075 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26076 { (exit 1); exit 1; }; }
26078 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
26082 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26083 if test -n "$ac_eof"; then
26084 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
26085 ac_eof
=`expr $ac_eof + 1`
26088 cat >>$CONFIG_STATUS <<_ACEOF
26089 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
26090 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26093 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26094 s/^/s,@/; s/!/@,|#_!!_#|/
26097 s/'"$ac_delim"'$/,g/; t
26099 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26100 ' >>$CONFIG_STATUS <conf$
$subs.
sed
26101 rm -f conf$
$subs.
sed
26102 cat >>$CONFIG_STATUS <<_ACEOF
26108 for ac_last_try
in false false false false false
:; do
26109 cat >conf$
$subs.
sed <<_ACEOF
26110 host_os!$host_os$ac_delim
26111 LN_S!$LN_S$ac_delim
26112 ECHO!$ECHO$ac_delim
26113 DSYMUTIL!$DSYMUTIL$ac_delim
26114 NMEDIT!$NMEDIT$ac_delim
26117 CXXFLAGS!$CXXFLAGS$ac_delim
26118 ac_ct_CXX!$ac_ct_CXX$ac_delim
26119 CXXDEPMODE!$CXXDEPMODE$ac_delim
26120 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
26121 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
26122 CXXCPP!$CXXCPP$ac_delim
26124 FFLAGS!$FFLAGS$ac_delim
26125 ac_ct_F77!$ac_ct_F77$ac_delim
26126 LIBTOOL!$LIBTOOL$ac_delim
26127 subdirs!$subdirs$ac_delim
26128 MINGW_TRUE!$MINGW_TRUE$ac_delim
26129 MINGW_FALSE!$MINGW_FALSE$ac_delim
26130 NEED_CRYPT_TRUE!$NEED_CRYPT_TRUE$ac_delim
26131 NEED_CRYPT_FALSE!$NEED_CRYPT_FALSE$ac_delim
26132 CRYPT_LIB!$CRYPT_LIB$ac_delim
26133 ALLOCA!$ALLOCA$ac_delim
26134 PKG_CONFIG!$PKG_CONFIG$ac_delim
26135 GNUTLS_CFLAGS!$GNUTLS_CFLAGS$ac_delim
26136 GNUTLS_LIBS!$GNUTLS_LIBS$ac_delim
26137 PICFLAGS!$PICFLAGS$ac_delim
26138 SEDOBJ!$SEDOBJ$ac_delim
26139 SSL_CFLAGS!$SSL_CFLAGS$ac_delim
26140 SSL_LIBS!$SSL_LIBS$ac_delim
26141 RB_PREFIX!$RB_PREFIX$ac_delim
26142 LIBOBJS!$LIBOBJS$ac_delim
26143 LTLIBOBJS!$LTLIBOBJS$ac_delim
26146 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 34; then
26148 elif $ac_last_try; then
26149 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26150 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26151 { (exit 1); exit 1; }; }
26153 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
26157 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26158 if test -n "$ac_eof"; then
26159 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
26160 ac_eof
=`expr $ac_eof + 1`
26163 cat >>$CONFIG_STATUS <<_ACEOF
26164 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
26165 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
26168 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26169 s/^/s,@/; s/!/@,|#_!!_#|/
26172 s/'"$ac_delim"'$/,g/; t
26174 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26175 ' >>$CONFIG_STATUS <conf$
$subs.
sed
26176 rm -f conf$
$subs.
sed
26177 cat >>$CONFIG_STATUS <<_ACEOF
26184 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26185 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26186 # trailing colons and then remove the whole line if VPATH becomes empty
26187 # (actually we leave an empty line to preserve line numbers).
26188 if test "x$srcdir" = x.
; then
26189 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
26190 s/:*\$(srcdir):*/:/
26191 s/:*\${srcdir}:*/:/
26193 s/^\([^=]*=[ ]*\):*/\1/
26199 cat >>$CONFIG_STATUS <<\_ACEOF
26200 fi # test -n "$CONFIG_FILES"
26203 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS :C
$CONFIG_COMMANDS
26206 :[FHLC
]) ac_mode
=$ac_tag; continue;;
26208 case $ac_mode$ac_tag in
26210 :L
* | :C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
26211 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
26212 { (exit 1); exit 1; }; };;
26213 :[FH
]-) ac_tag
=-:-;;
26214 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
26231 -) ac_f
="$tmp/stdin";;
26232 *) # Look for the file first in the build tree, then in the source tree
26233 # (if the path is not absolute). The absolute path cannot be DOS-style,
26234 # because $ac_f cannot contain `:'.
26238 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
26240 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
26241 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
26242 { (exit 1); exit 1; }; };;
26244 ac_file_inputs
="$ac_file_inputs $ac_f"
26247 # Let's still pretend it is `configure' which instantiates (i.e., don't
26248 # use $as_me), people would be surprised to read:
26249 # /* config.h. Generated by config.status. */
26250 configure_input
="Generated from "`IFS=:
26251 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
26252 if test x
"$ac_file" != x
-; then
26253 configure_input
="$ac_file. $configure_input"
26254 { echo "$as_me:$LINENO: creating $ac_file" >&5
26255 echo "$as_me: creating $ac_file" >&6;}
26259 *:-:* | *:-) cat >"$tmp/stdin";;
26264 ac_dir
=`$as_dirname -- "$ac_file" ||
26265 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26266 X"$ac_file" : 'X\(//\)[^/]' \| \
26267 X"$ac_file" : 'X\(//\)$' \| \
26268 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26270 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26274 /^X\(\/\/\)[^/].*/{
26289 -*) as_dir
=.
/$as_dir;;
26291 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
26295 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
26296 *) as_qdir
=$as_dir;;
26298 as_dirs
="'$as_qdir' $as_dirs"
26299 as_dir
=`$as_dirname -- "$as_dir" ||
26300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26301 X"$as_dir" : 'X\(//\)[^/]' \| \
26302 X"$as_dir" : 'X\(//\)$' \| \
26303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26309 /^X\(\/\/\)[^/].*/{
26322 test -d "$as_dir" && break
26324 test -z "$as_dirs" || eval "mkdir $as_dirs"
26325 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
26326 echo "$as_me: error: cannot create directory $as_dir" >&2;}
26327 { (exit 1); exit 1; }; }; }
26331 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
26333 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26334 # A ".." for each directory in $ac_dir_suffix.
26335 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
26336 case $ac_top_builddir_sub in
26337 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
26338 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
26341 ac_abs_top_builddir
=$ac_pwd
26342 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
26343 # for backward compatibility:
26344 ac_top_builddir
=$ac_top_build_prefix
26347 .
) # We are building in place.
26349 ac_top_srcdir
=$ac_top_builddir_sub
26350 ac_abs_top_srcdir
=$ac_pwd ;;
26351 [\\/]* | ?
:[\\/]* ) # Absolute name.
26352 ac_srcdir
=$srcdir$ac_dir_suffix;
26353 ac_top_srcdir
=$srcdir
26354 ac_abs_top_srcdir
=$srcdir ;;
26355 *) # Relative name.
26356 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
26357 ac_top_srcdir
=$ac_top_build_prefix$srcdir
26358 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
26360 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
26370 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
26371 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
26373 ac_MKDIR_P
=$MKDIR_P
26375 [\\/$
]* | ?
:[\\/]* ) ;;
26376 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
26380 cat >>$CONFIG_STATUS <<\_ACEOF
26381 # If the template does not know about datarootdir, expand it.
26382 # FIXME: This hack should be removed a few years after 2.60.
26383 ac_datarootdir_hack
=; ac_datarootdir_seen
=
26385 case `sed -n '/datarootdir/ {
26394 ' $ac_file_inputs` in
26395 *datarootdir
*) ac_datarootdir_seen
=yes;;
26396 *@datadir@
*|*@docdir@
*|*@infodir@
*|*@localedir@
*|*@mandir@
*)
26397 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26398 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26400 cat >>$CONFIG_STATUS <<_ACEOF
26401 ac_datarootdir_hack='
26402 s&@datadir@&$datadir&g
26403 s&@docdir@&$docdir&g
26404 s&@infodir@&$infodir&g
26405 s&@localedir@&$localedir&g
26406 s&@mandir@&$mandir&g
26407 s&\\\${datarootdir}&$datarootdir&g' ;;
26411 # Neutralize VPATH when `$srcdir' = `.'.
26412 # Shell code in configure.ac might set extrasub.
26413 # FIXME: do we really want to maintain this feature?
26414 cat >>$CONFIG_STATUS <<_ACEOF
26418 cat >>$CONFIG_STATUS <<\_ACEOF
26420 /@
[a
-zA-Z_][a
-zA-Z_0-9]*@
/!b
26421 s
&@configure_input@
&$configure_input&;t t
26422 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
26423 s
&@srcdir@
&$ac_srcdir&;t t
26424 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
26425 s
&@top_srcdir@
&$ac_top_srcdir&;t t
26426 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
26427 s
&@builddir@
&$ac_builddir&;t t
26428 s
&@abs_builddir@
&$ac_abs_builddir&;t t
26429 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
26430 s
&@INSTALL@
&$ac_INSTALL&;t t
26431 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
26432 $ac_datarootdir_hack
26433 " $ac_file_inputs | sed -f "$tmp/subs
-1.
sed" | sed -f "$tmp/subs
-2.
sed" >$tmp/out
26435 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26436 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
26437 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
26438 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
26439 which seems to be undefined. Please make sure it is defined." >&5
26440 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
26441 which seems to be undefined. Please make sure it is defined." >&2;}
26445 -) cat "$tmp/out"; rm -f "$tmp/out";;
26446 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
26455 # Transform confdefs.h into a sed script `conftest.defines', that
26456 # substitutes the proper values into config.h.in to produce config.h.
26457 rm -f conftest.defines conftest.
tail
26458 # First, append a space to every undef/define line, to ease matching.
26459 echo 's/$/ /' >conftest.defines
26460 # Then, protect against being on the right side of a sed subst, or in
26461 # an unquoted here document, in config.status. If some macros were
26462 # called several times there might be several #defines for the same
26463 # symbol, which is useless. But do not sort them, since the last
26464 # AC_DEFINE must be honored.
26465 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
26466 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
26467 # NAME is the cpp macro being defined, VALUE is the value it is being given.
26468 # PARAMS is the parameter list in the macro definition--in most cases, it's
26469 # just an empty string.
26470 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
26471 ac_dB
='\\)[ (].*,\\1define\\2'
26479 s/^[ ]*#[ ]*define[ ][ ]*//
26484 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
26485 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
26486 ' >>conftest.defines
26488 # Remove the space that was appended to ease matching.
26489 # Then replace #undef with comments. This is necessary, for
26490 # example, in the case of _POSIX_SOURCE, which is predefined and required
26491 # on some systems where configure will not decide to define it.
26492 # (The regexp can be short, since the line contains either #define or #undef.)
26494 s,^[ #]*u.*,/* & */,' >>conftest.defines
26496 # Break up conftest.defines:
26497 ac_max_sed_lines
=50
26499 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
26500 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
26501 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
26503 ac_in
='$ac_file_inputs'
26504 ac_out
='"$tmp/out1"'
26505 ac_nxt
='"$tmp/out2"'
26509 # Write a here document:
26510 cat >>$CONFIG_STATUS <<_ACEOF
26511 # First, check the format of the line:
26512 cat >"\$tmp/defines.sed" <<\\CEOF
26513 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
26514 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
26518 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
26520 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
26521 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
26522 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
26523 grep . conftest.
tail >/dev
/null
|| break
26524 rm -f conftest.defines
26525 mv conftest.
tail conftest.defines
26527 rm -f conftest.defines conftest.
tail
26529 echo "ac_result=$ac_in" >>$CONFIG_STATUS
26530 cat >>$CONFIG_STATUS <<\_ACEOF
26531 if test x
"$ac_file" != x
-; then
26532 echo "/* $configure_input */" >"$tmp/config.h"
26533 cat "$ac_result" >>"$tmp/config.h"
26534 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
26535 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
26536 echo "$as_me: $ac_file is unchanged" >&6;}
26539 mv "$tmp/config.h" $ac_file
26542 echo "/* $configure_input */"
26546 # Compute $ac_file's index in $config_headers.
26549 for _am_header
in $config_headers :; do
26550 case $_am_header in
26551 $_am_arg | $_am_arg:* )
26554 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
26557 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
26558 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26559 X"$_am_arg" : 'X\(//\)[^/]' \| \
26560 X"$_am_arg" : 'X\(//\)$' \| \
26561 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
26563 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26567 /^X\(\/\/\)[^/].*/{
26579 s/.*/./; q'`/stamp
-h$_am_stamp_count
26582 :C
) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
26583 echo "$as_me: executing $ac_file commands" >&6;}
26588 case $ac_file$ac_mode in
26589 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" || for mf
in $CONFIG_FILES; do
26590 # Strip MF so we end up with the name of the file.
26591 mf
=`echo "$mf" | sed -e 's/:.*$//'`
26592 # Check whether this is an Automake generated Makefile or not.
26593 # We used to match only the files named `Makefile.in', but
26594 # some people rename them; so instead we look at the file content.
26595 # Grep'ing the first line is not enough: some people post-process
26596 # each Makefile.in and add a new line on top of each file to say so.
26597 # Grep'ing the whole file is not good either: AIX grep has a line
26598 # limit of 2048, but all sed's we know have understand at least 4000.
26599 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X
>/dev
/null
2>&1; then
26600 dirpart
=`$as_dirname -- "$mf" ||
26601 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26602 X"$mf" : 'X\(//\)[^/]' \| \
26603 X"$mf" : 'X\(//\)$' \| \
26604 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
26606 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26610 /^X\(\/\/\)[^/].*/{
26626 # Extract the definition of DEPDIR, am__include, and am__quote
26627 # from the Makefile without running `make'.
26628 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
26629 test -z "$DEPDIR" && continue
26630 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
26631 test -z "am__include" && continue
26632 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
26633 # When using ansi2knr, U may be empty or an underscore; expand it
26634 U
=`sed -n 's/^U = //p' < "$mf"`
26635 # Find all dependency output files, they are included files with
26636 # $(DEPDIR) in their names. We invoke sed twice because it is the
26637 # simplest approach to changing $(DEPDIR) to its actual value in the
26639 for file in `sed -n "
26640 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
26641 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
26642 # Make sure the directory exists.
26643 test -f "$dirpart/$file" && continue
26644 fdir
=`$as_dirname -- "$file" ||
26645 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26646 X"$file" : 'X\(//\)[^/]' \| \
26647 X"$file" : 'X\(//\)$' \| \
26648 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
26650 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26654 /^X\(\/\/\)[^/].*/{
26667 { as_dir
=$dirpart/$fdir
26669 -*) as_dir
=.
/$as_dir;;
26671 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
26675 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
26676 *) as_qdir
=$as_dir;;
26678 as_dirs
="'$as_qdir' $as_dirs"
26679 as_dir
=`$as_dirname -- "$as_dir" ||
26680 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26681 X"$as_dir" : 'X\(//\)[^/]' \| \
26682 X"$as_dir" : 'X\(//\)$' \| \
26683 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26685 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26689 /^X\(\/\/\)[^/].*/{
26702 test -d "$as_dir" && break
26704 test -z "$as_dirs" || eval "mkdir $as_dirs"
26705 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
26706 echo "$as_me: error: cannot create directory $as_dir" >&2;}
26707 { (exit 1); exit 1; }; }; }
26708 # echo "creating $dirpart/$file"
26709 echo '# dummy' > "$dirpart/$file"
26713 "include/librb-config.h":C
)
26714 outfile
=include
/librb
-config.h.tmp
26715 cat > $outfile <<\_______EOF
26717 * librb
-config.h
: libratbox config
file. Please modify configure.ac
26720 #ifndef __LIBRB_CONFIG_H
26721 #define __LIBRB_CONFIG_H
26725 if test "x$rb_have_ipv6" = "xyes"; then
26726 echo "#define RB_IPV6 1" >> $outfile
26729 if test "x$rb_windows_h" = "xyes"; then
26730 echo '#define WIN32_LEAN_AND_MEAN 1' >> $outfile
26731 echo '#include <windows.h>' >> $outfile
26732 echo '#include <winsock2.h>' >> $outfile
26733 echo '#include <iphlpapi.h>' >> $outfile
26736 if test "x$rb_alloca_h" = "xyes"; then
26737 echo '#define RB_HAVE_ALLOCA_H 1' >> $outfile
26740 if test "x$rb_header_stdc" = "xyes"; then
26741 echo '#include <stdlib.h>' >> $outfile
26742 echo '#include <stddef.h>' >> $outfile
26743 elif test "x$rb_header_stdlib" = "xyes"; then
26744 echo '#include <stdlib.h>' >> $outfile
26747 if test "x$rb_header_string_h" = "xyes"; then
26748 echo '#include <string.h>' >> $outfile
26751 if test "x$rb_stdint_h" = "xyes"; then
26752 echo '#include <stdint.h>' >> $outfile
26755 if test "x$rb_inttypes_h" = "xyes"; then
26756 echo '#include <inttypes.h>' >> $outfile
26759 if test "x$rb_sys_types_h" = "xyes"; then
26760 echo '#include <sys/types.h>' >> $outfile
26762 if test "x$rb_sys_time_h" = "xyes"; then
26763 echo '#include <sys/time.h>' >> $outfile
26765 if test "x$rb_sys_stat_h" = "xyes"; then
26766 echo '#include <sys/stat.h>' >> $outfile
26768 if test "x$rb_time_h" = "xyes"; then
26769 echo '#include <time.h>' >> $outfile
26772 if test "x$rb_sys_socket_h" = "xyes"; then
26773 echo '#include <sys/socket.h>' >> $outfile
26776 if test "x$rb_netinet_in_h" = "xyes"; then
26777 echo '#include <netinet/in.h>' >> $outfile
26780 if test "x$rb_arpa_inet_h" = "xyes"; then
26781 echo '#include <arpa/inet.h>' >> $outfile
26784 if test "x$rb_unistd_h" = "xyes"; then
26785 echo '#include <unistd.h>' >> $outfile
26788 if test "x$rb_crypt_h" = "xyes"; then
26789 echo '#include <crypt.h>' >> $outfile
26792 if test "x$rb_errno_h" = "xyes"; then
26793 echo '#include <errno.h>' >> $outfile
26796 echo "typedef $rb_socklen_t rb_socklen_t;" >> $outfile
26799 if test "x$rb_sockaddr_sa_len" = "xyes"; then
26800 echo '#define RB_SOCKADDR_HAS_SA_LEN 1' >> $outfile
26803 if test "x$rb_sockaddr_storage" = "xyes"; then
26804 echo '#define rb_sockaddr_storage sockaddr_storage' >> $outfile
26806 echo 'struct rb_sockaddr_storage { uint8_t _padding128; };' >> $outfile
26809 cat >> $outfile <<\_______EOF
26810 #endif /* __LIBRB_CONFIG_H */
26813 if cmp -s $outfile include
/librb
-config.h
; then
26814 { echo "$as_me:$LINENO: include/librb-config.h is unchanged" >&5
26815 echo "$as_me: include/librb-config.h is unchanged" >&6;}
26816 ${rb_rm} -f $outfile
26818 ${rb_mv} $outfile include
/librb
-config.h
26827 { (exit 0); exit 0; }
26829 chmod +x
$CONFIG_STATUS
26830 ac_clean_files
=$ac_clean_files_save
26833 # configure is writing to config.log, and then calls config.status.
26834 # config.status does its own redirection, appending to config.log.
26835 # Unfortunately, on DOS this fails, as config.log is still kept open
26836 # by configure, so config.status won't be able to write to it; its
26837 # output is simply discarded. So we exec the FD to /dev/null,
26838 # effectively closing config.log, so it can be properly (re)opened and
26839 # appended to by config.status. When coming back to configure, we
26840 # need to make the FD available again.
26841 if test "$no_create" != yes; then
26843 ac_config_status_args
=
26844 test "$silent" = yes &&
26845 ac_config_status_args
="$ac_config_status_args --quiet"
26847 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
26849 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26850 # would make configure fail if this is the last instruction.
26851 $ac_cs_success || { (exit 1); exit 1; }
26855 # CONFIG_SUBDIRS section.
26857 if test "$no_recursion" != yes; then
26859 # Remove --cache-file and --srcdir arguments so they do not pile up.
26860 ac_sub_configure_args
=
26862 eval "set x $ac_configure_args"
26866 if test -n "$ac_prev"; then
26871 -cache-file | --cache-file | --cache-fil | --cache-fi \
26872 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
26873 ac_prev
=cache_file
;;
26874 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
26875 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
26878 --config-cache | -C)
26880 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
26882 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
26884 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
26886 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
26890 *\'*) ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
26892 ac_sub_configure_args
="$ac_sub_configure_args '$ac_arg'" ;;
26896 # Always prepend --prefix to ensure using the same prefix
26897 # in subdir configurations.
26898 ac_arg
="--prefix=$prefix"
26900 *\'*) ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
26902 ac_sub_configure_args
="'$ac_arg' $ac_sub_configure_args"
26905 if test "$silent" = yes; then
26906 ac_sub_configure_args
="--silent $ac_sub_configure_args"
26910 for ac_dir
in : $subdirs; do test "x$ac_dir" = x
: && continue
26912 # Do not complain, so a configure script can configure whichever
26913 # parts of a large source tree are present.
26914 test -d "$srcdir/$ac_dir" || continue
26916 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
26917 echo "$as_me:$LINENO: $ac_msg" >&5
26921 -*) as_dir
=.
/$as_dir;;
26923 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
26927 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
26928 *) as_qdir
=$as_dir;;
26930 as_dirs
="'$as_qdir' $as_dirs"
26931 as_dir
=`$as_dirname -- "$as_dir" ||
26932 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26933 X"$as_dir" : 'X\(//\)[^/]' \| \
26934 X"$as_dir" : 'X\(//\)$' \| \
26935 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26937 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26941 /^X\(\/\/\)[^/].*/{
26954 test -d "$as_dir" && break
26956 test -z "$as_dirs" || eval "mkdir $as_dirs"
26957 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
26958 echo "$as_me: error: cannot create directory $as_dir" >&2;}
26959 { (exit 1); exit 1; }; }; }
26963 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
26965 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26966 # A ".." for each directory in $ac_dir_suffix.
26967 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
26968 case $ac_top_builddir_sub in
26969 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
26970 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
26973 ac_abs_top_builddir
=$ac_pwd
26974 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
26975 # for backward compatibility:
26976 ac_top_builddir
=$ac_top_build_prefix
26979 .
) # We are building in place.
26981 ac_top_srcdir
=$ac_top_builddir_sub
26982 ac_abs_top_srcdir
=$ac_pwd ;;
26983 [\\/]* | ?
:[\\/]* ) # Absolute name.
26984 ac_srcdir
=$srcdir$ac_dir_suffix;
26985 ac_top_srcdir
=$srcdir
26986 ac_abs_top_srcdir
=$srcdir ;;
26987 *) # Relative name.
26988 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
26989 ac_top_srcdir
=$ac_top_build_prefix$srcdir
26990 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
26992 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
26997 # Check for guested configure; otherwise get Cygnus style configure.
26998 if test -f "$ac_srcdir/configure.gnu"; then
26999 ac_sub_configure
=$ac_srcdir/configure.gnu
27000 elif test -f "$ac_srcdir/configure"; then
27001 ac_sub_configure
=$ac_srcdir/configure
27002 elif test -f "$ac_srcdir/configure.in"; then
27003 # This should be Cygnus configure.
27004 ac_sub_configure
=$ac_aux_dir/configure
27006 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
27007 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
27011 # The recursion is here.
27012 if test -n "$ac_sub_configure"; then
27013 # Make the cache file name correct relative to the subdirectory.
27014 case $cache_file in
27015 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
27016 *) # Relative name.
27017 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
27020 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
27021 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
27022 # The eval makes quoting arguments work.
27023 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
27024 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
27025 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
27026 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
27027 { (exit 1); exit 1; }; }
27037 echo "Compiling $PACKAGE_NAME $PACKAGE_VERSION"
27040 echo "Installing into: $prefix"
27042 echo "IPv6 support ................... $have_v6"
27043 echo "Assert debugging ............... $assert"
27044 echo "Block allocator ................ $balloc"
27045 echo "SSL Type........................ $SSL_TYPE"