2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for libratbox devel.
5 # $Id: configure.ac 23020 2006-09-01 18:20:19Z 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
899 ac_precious_vars
='build_alias
914 ac_subdirs_all
='libltdl'
916 # Initialize some variables set by options.
918 ac_init_version
=false
919 # The variables have the same names as the options, with
920 # dashes changed to underlines.
928 program_transform_name
=s
,x
,x
,
936 # Installation directory options.
937 # These are left unexpanded so users can "make install exec_prefix=/foo"
938 # and all the variables that are supposed to be based on exec_prefix
939 # by default will actually change.
940 # Use braces instead of parens because sh, perl, etc. also accept them.
941 # (The list follows the same order as the GNU Coding Standards.)
942 bindir
='${exec_prefix}/bin'
943 sbindir
='${exec_prefix}/sbin'
944 libexecdir
='${exec_prefix}/libexec'
945 datarootdir
='${prefix}/share'
946 datadir
='${datarootdir}'
947 sysconfdir
='${prefix}/etc'
948 sharedstatedir
='${prefix}/com'
949 localstatedir
='${prefix}/var'
950 includedir
='${prefix}/include'
951 oldincludedir
='/usr/include'
952 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
953 infodir
='${datarootdir}/info'
958 libdir
='${exec_prefix}/lib'
959 localedir
='${datarootdir}/locale'
960 mandir
='${datarootdir}/man'
966 # If the previous option needs an argument, assign it.
967 if test -n "$ac_prev"; then
968 eval $ac_prev=\
$ac_option
974 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
978 # Accept the important Cygnus configure options, so we can diagnose typos.
980 case $ac_dashdash$ac_option in
984 -bindir | --bindir | --bindi | --bind | --bin | --bi)
986 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
989 -build | --build | --buil | --bui | --bu)
990 ac_prev
=build_alias
;;
991 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
992 build_alias
=$ac_optarg ;;
994 -cache-file | --cache-file | --cache-fil | --cache-fi \
995 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
996 ac_prev
=cache_file
;;
997 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
998 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
999 cache_file
=$ac_optarg ;;
1001 --config-cache | -C)
1002 cache_file
=config.cache
;;
1004 -datadir | --datadir | --datadi | --datad)
1006 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1007 datadir
=$ac_optarg ;;
1009 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1010 | --dataroo | --dataro | --datar)
1011 ac_prev
=datarootdir
;;
1012 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1013 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1014 datarootdir
=$ac_optarg ;;
1016 -disable-* | --disable-*)
1017 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1018 # Reject names that are not valid shell variable names.
1019 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1020 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1021 { (exit 1); exit 1; }; }
1022 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
1023 eval enable_
$ac_feature=no
;;
1025 -docdir | --docdir | --docdi | --doc | --do)
1027 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1028 docdir
=$ac_optarg ;;
1030 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1032 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1033 dvidir
=$ac_optarg ;;
1035 -enable-* | --enable-*)
1036 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1037 # Reject names that are not valid shell variable names.
1038 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1039 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1040 { (exit 1); exit 1; }; }
1041 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
1042 eval enable_
$ac_feature=\
$ac_optarg ;;
1044 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1045 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1046 | --exec | --exe | --ex)
1047 ac_prev
=exec_prefix
;;
1048 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1049 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1050 | --exec=* | --exe=* | --ex=*)
1051 exec_prefix
=$ac_optarg ;;
1053 -gas | --gas | --ga | --g)
1054 # Obsolete; use --with-gas.
1057 -help | --help | --hel | --he | -h)
1058 ac_init_help
=long
;;
1059 -help=r
* | --help=r
* | --hel=r
* | --he=r
* | -hr*)
1060 ac_init_help
=recursive
;;
1061 -help=s
* | --help=s
* | --hel=s
* | --he=s
* | -hs*)
1062 ac_init_help
=short
;;
1064 -host | --host | --hos | --ho)
1065 ac_prev
=host_alias
;;
1066 -host=* | --host=* | --hos=* | --ho=*)
1067 host_alias
=$ac_optarg ;;
1069 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1071 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1073 htmldir
=$ac_optarg ;;
1075 -includedir | --includedir | --includedi | --included | --include \
1076 | --includ | --inclu | --incl | --inc)
1077 ac_prev
=includedir
;;
1078 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1079 | --includ=* | --inclu=* | --incl=* | --inc=*)
1080 includedir
=$ac_optarg ;;
1082 -infodir | --infodir | --infodi | --infod | --info | --inf)
1084 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1085 infodir
=$ac_optarg ;;
1087 -libdir | --libdir | --libdi | --libd)
1089 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1090 libdir
=$ac_optarg ;;
1092 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1093 | --libexe | --libex | --libe)
1094 ac_prev
=libexecdir
;;
1095 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1096 | --libexe=* | --libex=* | --libe=*)
1097 libexecdir
=$ac_optarg ;;
1099 -localedir | --localedir | --localedi | --localed | --locale)
1100 ac_prev
=localedir
;;
1101 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1102 localedir
=$ac_optarg ;;
1104 -localstatedir | --localstatedir | --localstatedi | --localstated \
1105 | --localstate | --localstat | --localsta | --localst | --locals)
1106 ac_prev
=localstatedir
;;
1107 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1108 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1109 localstatedir
=$ac_optarg ;;
1111 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1113 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1114 mandir
=$ac_optarg ;;
1116 -nfp | --nfp | --nf)
1117 # Obsolete; use --without-fp.
1120 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1121 | --no-cr | --no-c | -n)
1124 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1125 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1128 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1129 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1130 | --oldin | --oldi | --old | --ol | --o)
1131 ac_prev
=oldincludedir
;;
1132 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1133 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1134 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1135 oldincludedir
=$ac_optarg ;;
1137 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1139 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1140 prefix
=$ac_optarg ;;
1142 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1143 | --program-pre | --program-pr | --program-p)
1144 ac_prev
=program_prefix
;;
1145 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1146 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1147 program_prefix
=$ac_optarg ;;
1149 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1150 | --program-suf | --program-su | --program-s)
1151 ac_prev
=program_suffix
;;
1152 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1153 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1154 program_suffix
=$ac_optarg ;;
1156 -program-transform-name | --program-transform-name \
1157 | --program-transform-nam | --program-transform-na \
1158 | --program-transform-n | --program-transform- \
1159 | --program-transform | --program-transfor \
1160 | --program-transfo | --program-transf \
1161 | --program-trans | --program-tran \
1162 | --progr-tra | --program-tr | --program-t)
1163 ac_prev
=program_transform_name
;;
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 program_transform_name
=$ac_optarg ;;
1173 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1175 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1176 pdfdir
=$ac_optarg ;;
1178 -psdir | --psdir | --psdi | --psd | --ps)
1180 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1183 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1184 | -silent | --silent | --silen | --sile | --sil)
1187 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1189 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1191 sbindir
=$ac_optarg ;;
1193 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1194 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1195 | --sharedst | --shareds | --shared | --share | --shar \
1197 ac_prev
=sharedstatedir
;;
1198 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1199 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1200 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1202 sharedstatedir
=$ac_optarg ;;
1204 -site | --site | --sit)
1206 -site=* | --site=* | --sit=*)
1209 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1211 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1212 srcdir
=$ac_optarg ;;
1214 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1215 | --syscon | --sysco | --sysc | --sys | --sy)
1216 ac_prev
=sysconfdir
;;
1217 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1218 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1219 sysconfdir
=$ac_optarg ;;
1221 -target | --target | --targe | --targ | --tar | --ta | --t)
1222 ac_prev
=target_alias
;;
1223 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1224 target_alias
=$ac_optarg ;;
1226 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1229 -version | --version | --versio | --versi | --vers | -V)
1230 ac_init_version
=: ;;
1233 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1234 # Reject names that are not valid shell variable names.
1235 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1236 { echo "$as_me: error: invalid package name: $ac_package" >&2
1237 { (exit 1); exit 1; }; }
1238 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1239 eval with_
$ac_package=\
$ac_optarg ;;
1241 -without-* | --without-*)
1242 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1243 # Reject names that are not valid shell variable names.
1244 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1245 { echo "$as_me: error: invalid package name: $ac_package" >&2
1246 { (exit 1); exit 1; }; }
1247 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1248 eval with_
$ac_package=no
;;
1251 # Obsolete; use --with-x.
1254 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1255 | --x-incl | --x-inc | --x-in | --x-i)
1256 ac_prev
=x_includes
;;
1257 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1258 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1259 x_includes
=$ac_optarg ;;
1261 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1262 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1263 ac_prev
=x_libraries
;;
1264 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1265 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1266 x_libraries
=$ac_optarg ;;
1268 -*) { echo "$as_me: error: unrecognized option: $ac_option
1269 Try \`$0 --help' for more information." >&2
1270 { (exit 1); exit 1; }; }
1274 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1275 # Reject names that are not valid shell variable names.
1276 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1277 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1278 { (exit 1); exit 1; }; }
1279 eval $ac_envvar=\
$ac_optarg
1280 export $ac_envvar ;;
1283 # FIXME: should be removed in autoconf 3.0.
1284 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1285 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1286 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1287 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1293 if test -n "$ac_prev"; then
1294 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1295 { echo "$as_me: error: missing argument to $ac_option" >&2
1296 { (exit 1); exit 1; }; }
1299 # Be sure to have absolute directory names.
1300 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1301 datadir sysconfdir sharedstatedir localstatedir includedir \
1302 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1303 libdir localedir mandir
1305 eval ac_val
=\$
$ac_var
1307 [\\/$
]* | ?
:[\\/]* ) continue;;
1308 NONE
| '' ) case $ac_var in *prefix
) continue;; esac;;
1310 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1311 { (exit 1); exit 1; }; }
1314 # There might be people who depend on the old broken behavior: `$host'
1315 # used to hold the argument of --host etc.
1316 # FIXME: To remove some day.
1319 target
=$target_alias
1321 # FIXME: To remove some day.
1322 if test "x$host_alias" != x
; then
1323 if test "x$build_alias" = x
; then
1324 cross_compiling
=maybe
1325 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1326 If a cross compiler is detected then cross compile mode will be used." >&2
1327 elif test "x$build_alias" != "x$host_alias"; then
1333 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1335 test "$silent" = yes && exec 6>/dev
/null
1338 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1339 ac_ls_di
=`ls -di .` &&
1340 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1341 { echo "$as_me: error: Working directory cannot be determined" >&2
1342 { (exit 1); exit 1; }; }
1343 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1344 { echo "$as_me: error: pwd does not report name of working directory" >&2
1345 { (exit 1); exit 1; }; }
1348 # Find the source files, if location was not specified.
1349 if test -z "$srcdir"; then
1350 ac_srcdir_defaulted
=yes
1351 # Try the directory containing this script, then the parent directory.
1352 ac_confdir
=`$as_dirname -- "$0" ||
1353 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1354 X"$0" : 'X\(//\)[^/]' \| \
1355 X"$0" : 'X\(//\)$' \| \
1356 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1358 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1376 if test ! -r "$srcdir/$ac_unique_file"; then
1380 ac_srcdir_defaulted
=no
1382 if test ! -r "$srcdir/$ac_unique_file"; then
1383 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1384 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1385 { (exit 1); exit 1; }; }
1387 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1389 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1390 { (exit 1); exit 1; }; }
1392 # When building in place, set srcdir=.
1393 if test "$ac_abs_confdir" = "$ac_pwd"; then
1396 # Remove unnecessary trailing slashes from srcdir.
1397 # Double slashes in file names in object file debugging info
1398 # mess up M-x gdb in Emacs.
1400 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1402 for ac_var
in $ac_precious_vars; do
1403 eval ac_env_
${ac_var}_set
=\
${${ac_var}+set}
1404 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1405 eval ac_cv_env_
${ac_var}_set
=\
${${ac_var}+set}
1406 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1410 # Report the --help message.
1412 if test "$ac_init_help" = "long"; then
1413 # Omit some internal or obsolete options to make the list less imposing.
1414 # This message is too long to be a string in the A/UX 3.1 sh.
1416 \`configure' configures libratbox devel to adapt to many kinds of systems.
1418 Usage: $0 [OPTION]... [VAR=VALUE]...
1420 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1421 VAR=VALUE. See below for descriptions of some of the useful variables.
1423 Defaults for the options are specified in brackets.
1426 -h, --help display this help and exit
1427 --help=short display options specific to this package
1428 --help=recursive display the short help of all the included packages
1429 -V, --version display version information and exit
1430 -q, --quiet, --silent do not print \`checking...' messages
1431 --cache-file=FILE cache test results in FILE [disabled]
1432 -C, --config-cache alias for \`--cache-file=config.cache'
1433 -n, --no-create do not create output files
1434 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1436 Installation directories:
1437 --prefix=PREFIX install architecture-independent files in PREFIX
1438 [$ac_default_prefix]
1439 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1442 By default, \`make install' will install all the files in
1443 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1444 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1445 for instance \`--prefix=\$HOME'.
1447 For better control, use the options below.
1449 Fine tuning of the installation directories:
1450 --bindir=DIR user executables [EPREFIX/bin]
1451 --sbindir=DIR system admin executables [EPREFIX/sbin]
1452 --libexecdir=DIR program executables [EPREFIX/libexec]
1453 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1454 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1455 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1456 --libdir=DIR object code libraries [EPREFIX/lib]
1457 --includedir=DIR C header files [PREFIX/include]
1458 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1459 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1460 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1461 --infodir=DIR info documentation [DATAROOTDIR/info]
1462 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1463 --mandir=DIR man documentation [DATAROOTDIR/man]
1464 --docdir=DIR documentation root [DATAROOTDIR/doc/libratbox]
1465 --htmldir=DIR html documentation [DOCDIR]
1466 --dvidir=DIR dvi documentation [DOCDIR]
1467 --pdfdir=DIR pdf documentation [DOCDIR]
1468 --psdir=DIR ps documentation [DOCDIR]
1474 --program-prefix=PREFIX prepend PREFIX to installed program names
1475 --program-suffix=SUFFIX append SUFFIX to installed program names
1476 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1479 --build=BUILD configure
for building on BUILD
[guessed
]
1480 --host=HOST cross
-compile to build programs to run on HOST
[BUILD
]
1484 if test -n "$ac_init_help"; then
1485 case $ac_init_help in
1486 short
| recursive
) echo "Configuration of libratbox devel:";;
1491 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1492 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1493 --disable-dependency-tracking speeds up one
-time build
1494 --enable-dependency-tracking do not reject slow dependency extractors
1495 --enable-static[=PKGS
] build static libraries
[default
=no
]
1496 --enable-shared[=PKGS
] build shared libraries
[default
=yes]
1497 --enable-maintainer-mode enable make rules and dependencies not useful
1498 (and sometimes confusing
) to the casual installer
1499 --enable-fast-install[=PKGS
]
1500 optimize
for fast installation
[default
=yes]
1501 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1502 --disable-ipv6 Disable IPv6 support
1503 --enable-openssl=DIR Enable OpenSSL support
(DIR optional
).
1504 --disable-openssl Disable OpenSSL support.
1505 --enable-assert Enable assert
(). Choose between soft
(warnings
) and
1506 hard
(aborts the daemon
)
1507 --enable-profile Enable profiling
1508 --disable-balloc Disable the block allocator.
1509 --enable-warnings Enable all sorts of warnings
for debugging.
1512 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1513 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1514 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1515 --with-pic try to use only PIC
/non
-PIC objects
[default
=use
1517 --with-tags[=TAGS
] include additional configurations
[automatic
]
1519 Some influential environment variables
:
1520 CC C compiler
command
1521 CFLAGS C compiler flags
1522 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1523 nonstandard directory
<lib dir
>
1524 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1525 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1526 you have headers
in a nonstandard directory
<include dir
>
1528 CXX C
++ compiler
command
1529 CXXFLAGS C
++ compiler flags
1530 CXXCPP C
++ preprocessor
1531 F77 Fortran
77 compiler
command
1532 FFLAGS Fortran
77 compiler flags
1534 Use these variables to override the choices made by
`configure' or to help
1535 it to find libraries and programs with nonstandard names/locations.
1541 if test "$ac_init_help" = "recursive"; then
1542 # If there are subdirs, report their specific --help.
1543 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1544 test -d "$ac_dir" || continue
1548 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1550 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1551 # A ".." for each directory in $ac_dir_suffix.
1552 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1553 case $ac_top_builddir_sub in
1554 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1555 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1558 ac_abs_top_builddir=$ac_pwd
1559 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1560 # for backward compatibility:
1561 ac_top_builddir=$ac_top_build_prefix
1564 .) # We are building in place.
1566 ac_top_srcdir=$ac_top_builddir_sub
1567 ac_abs_top_srcdir=$ac_pwd ;;
1568 [\\/]* | ?:[\\/]* ) # Absolute name.
1569 ac_srcdir=$srcdir$ac_dir_suffix;
1570 ac_top_srcdir=$srcdir
1571 ac_abs_top_srcdir=$srcdir ;;
1573 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1574 ac_top_srcdir=$ac_top_build_prefix$srcdir
1575 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1577 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1579 cd "$ac_dir" || { ac_status=$?; continue; }
1580 # Check for guested configure.
1581 if test -f "$ac_srcdir/configure.gnu"; then
1583 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1584 elif test -f "$ac_srcdir/configure"; then
1586 $SHELL "$ac_srcdir/configure" --help=recursive
1588 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1590 cd "$ac_pwd" || { ac_status=$?; break; }
1594 test -n "$ac_init_help" && exit $ac_status
1595 if $ac_init_version; then
1597 libratbox configure devel
1598 generated by GNU Autoconf 2.61
1600 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1601 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1602 This configure script is free software; the Free Software Foundation
1603 gives unlimited permission to copy, distribute and modify it.
1605 $Id: configure.ac 23020 2006-09-01 18:20:19Z androsyn $
1609 cat >config.log <<_ACEOF
1610 This file contains any messages produced by compilers while
1611 running configure, to aid debugging if configure makes a mistake.
1613 It was created by libratbox $as_me devel, which was
1614 generated by GNU Autoconf 2.61. Invocation command line was
1626 hostname = `(hostname
|| uname
-n) 2>/dev
/null
| sed 1q
`
1627 uname -m = `(uname
-m) 2>/dev
/null
|| echo unknown
`
1628 uname -r = `(uname
-r) 2>/dev
/null
|| echo unknown
`
1629 uname -s = `(uname
-s) 2>/dev
/null
|| echo unknown
`
1630 uname -v = `(uname
-v) 2>/dev
/null
|| echo unknown
`
1632 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null
|| echo unknown
`
1633 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null
|| echo unknown
`
1635 /bin/arch = `(/bin
/arch
) 2>/dev
/null
|| echo unknown
`
1636 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null
|| echo unknown
`
1637 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null
|| echo unknown
`
1638 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null
|| echo unknown
`
1639 /bin/machine = `(/bin
/machine
) 2>/dev
/null
|| echo unknown
`
1640 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null
|| echo unknown
`
1641 /bin/universe = `(/bin
/universe
) 2>/dev
/null
|| echo unknown
`
1645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1649 test -z "$as_dir" && as_dir=.
1650 echo "PATH: $as_dir"
1666 # Keep a trace of the command line.
1667 # Strip out --no-create and --no-recursion so they do not pile up.
1668 # Strip out --silent because we don't want to record it for future runs.
1669 # Also quote any args containing shell meta-characters.
1670 # Make two passes to allow for proper duplicate-argument suppression.
1674 ac_must_keep_next=false
1680 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1681 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1682 | -silent | --silent | --silen | --sile | --sil)
1685 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1688 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1690 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1691 if test $ac_must_keep_next = true; then
1692 ac_must_keep_next=false # Got value, back to normal.
1695 *=* | --config-cache | -C | -disable-* | --disable-* \
1696 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1697 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1698 | -with-* | --with-* | -without-* | --without-* | --x)
1699 case "$ac_configure_args0 " in
1700 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1703 -* ) ac_must_keep_next=true ;;
1706 ac_configure_args="$ac_configure_args '$ac_arg'"
1711 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1712 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1714 # When interrupted or exit'd, cleanup temporary files, and complete
1715 # config.log. We remove comments because anyway the quotes in there
1716 # would cause problems or look ugly.
1717 # WARNING: Use '\'' to represent an apostrophe within the trap.
1718 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1719 trap 'exit_status=$?
1720 # Save into config.log some information that might help in debugging.
1725 ## ---------------- ##
1726 ## Cache variables. ##
1727 ## ---------------- ##
1730 # The following way of writing the cache mishandles newlines in values,
1732 for ac_var in `(set) 2>&1 | sed -n '\''s
/^\
([a
-zA-Z_][a
-zA-Z0-9_]*\
)=.
*/\
1/p
'\''`; do
1733 eval ac_val=\$$ac_var
1737 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1738 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1741 _ | IFS | as_nl) ;; #(
1742 *) $as_unset $ac_var ;;
1747 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1748 *${as_nl}ac_space=\ *)
1750 "s/'\''/'\''\\\\'\'''\''/g;
1751 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1754 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1762 ## ----------------- ##
1763 ## Output variables. ##
1764 ## ----------------- ##
1767 for ac_var in $ac_subst_vars
1769 eval ac_val=\$$ac_var
1771 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1773 echo "$ac_var='\''$ac_val'\''"
1777 if test -n "$ac_subst_files"; then
1779 ## ------------------- ##
1780 ## File substitutions. ##
1781 ## ------------------- ##
1784 for ac_var in $ac_subst_files
1786 eval ac_val=\$$ac_var
1788 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1790 echo "$ac_var='\''$ac_val'\''"
1795 if test -s confdefs.h; then
1805 test "$ac_signal" != 0 &&
1806 echo "$as_me: caught signal $ac_signal"
1807 echo "$as_me: exit $exit_status"
1809 rm -f core *.core core.conftest.* &&
1810 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1813 for ac_signal in 1 2 13 15; do
1814 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1818 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1819 rm -f -r conftest* confdefs.h
1821 # Predefined preprocessor variables.
1823 cat >>confdefs.h <<_ACEOF
1824 #define PACKAGE_NAME "$PACKAGE_NAME"
1828 cat >>confdefs.h <<_ACEOF
1829 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1833 cat >>confdefs.h <<_ACEOF
1834 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1838 cat >>confdefs.h <<_ACEOF
1839 #define PACKAGE_STRING "$PACKAGE_STRING"
1843 cat >>confdefs.h <<_ACEOF
1844 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1848 # Let the site file select an alternate cache file if it wants to.
1849 # Prefer explicitly selected file to automatically selected ones.
1850 if test -n "$CONFIG_SITE"; then
1851 set x "$CONFIG_SITE"
1852 elif test "x$prefix" != xNONE; then
1853 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1855 set x "$ac_default_prefix/share/config.site" \
1856 "$ac_default_prefix/etc/config.site"
1861 if test -r "$ac_site_file"; then
1862 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1863 echo "$as_me: loading site script $ac_site_file" >&6;}
1864 sed 's/^/| /' "$ac_site_file" >&5
1869 if test -r "$cache_file"; then
1870 # Some versions of bash will fail to source /dev/null (special
1871 # files actually), so we avoid doing that.
1872 if test -f "$cache_file"; then
1873 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1874 echo "$as_me: loading cache $cache_file" >&6;}
1876 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1877 *) . "./$cache_file";;
1881 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1882 echo "$as_me: creating cache $cache_file" >&6;}
1886 # Check that the precious variables saved in the cache have kept the same
1888 ac_cache_corrupted=false
1889 for ac_var in $ac_precious_vars; do
1890 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1891 eval ac_new_set=\$ac_env_${ac_var}_set
1892 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1893 eval ac_new_val=\$ac_env_${ac_var}_value
1894 case $ac_old_set,$ac_new_set in
1896 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1897 echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1898 ac_cache_corrupted=: ;;
1900 { echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1901 echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1902 ac_cache_corrupted=: ;;
1905 if test "x$ac_old_val" != "x$ac_new_val"; then
1906 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1907 echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1908 { echo "$as_me:$LINENO: former value
: $ac_old_val" >&5
1909 echo "$as_me: former value
: $ac_old_val" >&2;}
1910 { echo "$as_me:$LINENO: current value
: $ac_new_val" >&5
1911 echo "$as_me: current value
: $ac_new_val" >&2;}
1912 ac_cache_corrupted=:
1915 # Pass precious variables to config.status.
1916 if test "$ac_new_set" = set; then
1918 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1919 *) ac_arg=$ac_var=$ac_new_val ;;
1921 case " $ac_configure_args " in
1922 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1923 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1927 if $ac_cache_corrupted; then
1928 { echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
1929 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
1930 { { echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
1931 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
1932 { (exit 1); exit 1; }; }
1960 ac_cpp='$CPP $CPPFLAGS'
1961 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1962 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1963 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1966 am__api_version='1.10'
1969 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1970 if test -f "$ac_dir/install-sh"; then
1972 ac_install_sh="$ac_aux_dir/install-sh -c"
1974 elif test -f "$ac_dir/install.sh"; then
1976 ac_install_sh="$ac_aux_dir/install.sh -c"
1978 elif test -f "$ac_dir/shtool"; then
1980 ac_install_sh="$ac_aux_dir/shtool install -c"
1984 if test -z "$ac_aux_dir"; then
1985 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1986 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1987 { (exit 1); exit 1; }; }
1990 # These three variables are undocumented and unsupported,
1991 # and are intended to be withdrawn in a future Autoconf release.
1992 # They can cause serious problems if a builder's source tree is in a directory
1993 # whose full name contains unusual characters.
1994 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1995 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1996 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1999 # Find a good install program. We prefer a C program (faster),
2000 # so one script is as good as another. But avoid the broken or
2001 # incompatible versions:
2002 # SysV /etc/install, /usr/sbin/install
2003 # SunOS /usr/etc/install
2004 # IRIX /sbin/install
2006 # AmigaOS /C/install, which installs bootblocks on floppy discs
2007 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2008 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2009 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2010 # OS/2's system install, which has a completely different semantic
2011 # ./install, which can be erroneously created by make from ./install.sh.
2012 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2013 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2014 if test -z "$INSTALL"; then
2015 if test "${ac_cv_path_install+set}" = set; then
2016 echo $ECHO_N "(cached) $ECHO_C" >&6
2018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2022 test -z "$as_dir" && as_dir=.
2023 # Account for people who put trailing slashes in PATH elements.
2025 ./ | .// | /cC/* | \
2026 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2027 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2030 # OSF1 and SCO ODT 3.0 have their own names for install.
2031 # Don't use installbsd from OSF since it installs stuff as root
2033 for ac_prog in ginstall scoinst install; do
2034 for ac_exec_ext in '' $ac_executable_extensions; do
2035 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2036 if test $ac_prog = install &&
2037 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2038 # AIX install. It has an incompatible calling convention.
2040 elif test $ac_prog = install &&
2041 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2042 # program-specific install script used by HP pwplus--don't use.
2045 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2058 if test "${ac_cv_path_install+set}" = set; then
2059 INSTALL=$ac_cv_path_install
2061 # As a last resort, use the slow shell script. Don't cache a
2062 # value for INSTALL within a source directory, because that will
2063 # break other packages using the cache if that directory is
2064 # removed, or if the value is a relative name.
2065 INSTALL=$ac_install_sh
2068 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2069 echo "${ECHO_T}$INSTALL" >&6; }
2071 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2072 # It thinks the first close brace ends the variable substitution.
2073 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2075 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2077 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2079 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2080 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2083 echo timestamp > conftest.file
2084 # Do `set' in a subshell so we don't clobber the current shell
's
2085 # arguments. Must try -L first in case configure is actually a
2086 # symlink; some systems play weird games with the mod time of symlinks
2087 # (eg FreeBSD returns the mod time of the symlink's containing
2090 set X
`ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2091 if test "$*" = "X"; then
2093 set X
`ls -t $srcdir/configure conftest.file`
2096 if test "$*" != "X $srcdir/configure conftest.file" \
2097 && test "$*" != "X conftest.file $srcdir/configure"; then
2099 # If neither matched, then we have a broken ls. This can happen
2100 # if, for instance, CONFIG_SHELL is bash and it inherits a
2101 # broken ls alias from the environment. This has actually
2102 # happened. Such a system could not be considered "sane".
2103 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2104 alias in your environment" >&5
2105 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2106 alias in your environment" >&2;}
2107 { (exit 1); exit 1; }; }
2110 test "$2" = conftest.
file
2116 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2117 Check your system clock" >&5
2118 echo "$as_me: error: newly created file is older than distributed files!
2119 Check your system clock" >&2;}
2120 { (exit 1); exit 1; }; }
2122 { echo "$as_me:$LINENO: result: yes" >&5
2123 echo "${ECHO_T}yes" >&6; }
2124 test "$program_prefix" != NONE
&&
2125 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2126 # Use a double $ so make ignores it.
2127 test "$program_suffix" != NONE
&&
2128 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2129 # Double any \ or $. echo might interpret backslashes.
2130 # By default was `s,x,x', remove it if useless.
2131 cat <<\_ACEOF
>conftest.
sed
2132 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
2134 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
2137 # expand $ac_aux_dir to an absolute path
2138 am_aux_dir
=`cd $ac_aux_dir && pwd`
2140 test x
"${MISSING+set}" = xset
|| MISSING
="\${SHELL} $am_aux_dir/missing"
2141 # Use eval to expand $SHELL
2142 if eval "$MISSING --run true"; then
2143 am_missing_run
="$MISSING --run "
2146 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2147 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2150 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2151 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2152 if test -z "$MKDIR_P"; then
2153 if test "${ac_cv_path_mkdir+set}" = set; then
2154 echo $ECHO_N "(cached) $ECHO_C" >&6
2156 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2157 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
2160 test -z "$as_dir" && as_dir
=.
2161 for ac_prog
in mkdir gmkdir
; do
2162 for ac_exec_ext
in '' $ac_executable_extensions; do
2163 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2164 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2165 'mkdir (GNU coreutils) '* | \
2166 'mkdir (coreutils) '* | \
2167 'mkdir (fileutils) '4.1*)
2168 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
2178 if test "${ac_cv_path_mkdir+set}" = set; then
2179 MKDIR_P
="$ac_cv_path_mkdir -p"
2181 # As a last resort, use the slow shell script. Don't cache a
2182 # value for MKDIR_P within a source directory, because that will
2183 # break other packages using the cache if that directory is
2184 # removed, or if the value is a relative name.
2185 test -d .
/--version && rmdir .
/--version
2186 MKDIR_P
="$ac_install_sh -d"
2189 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2190 echo "${ECHO_T}$MKDIR_P" >&6; }
2194 [\\/$
]* | ?
:[\\/]*) ;;
2195 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
2198 for ac_prog
in gawk mawk nawk
awk
2200 # Extract the first word of "$ac_prog", so it can be a program name with args.
2201 set dummy
$ac_prog; ac_word
=$2
2202 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2203 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2204 if test "${ac_cv_prog_AWK+set}" = set; then
2205 echo $ECHO_N "(cached) $ECHO_C" >&6
2207 if test -n "$AWK"; then
2208 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2210 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2214 test -z "$as_dir" && as_dir
=.
2215 for ac_exec_ext
in '' $ac_executable_extensions; do
2216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2217 ac_cv_prog_AWK
="$ac_prog"
2218 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2228 if test -n "$AWK"; then
2229 { echo "$as_me:$LINENO: result: $AWK" >&5
2230 echo "${ECHO_T}$AWK" >&6; }
2232 { echo "$as_me:$LINENO: result: no" >&5
2233 echo "${ECHO_T}no" >&6; }
2237 test -n "$AWK" && break
2240 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2241 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2242 set x
${MAKE-make}; ac_make
=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2243 if { as_var
=ac_cv_prog_make_
${ac_make}_set
; eval "test \"\${$as_var+set}\" = set"; }; then
2244 echo $ECHO_N "(cached) $ECHO_C" >&6
2246 cat >conftest.
make <<\_ACEOF
2249 @
echo '@@@%%%=$(MAKE)=@@@%%%'
2251 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2252 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2254 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
2256 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
2260 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
2261 { echo "$as_me:$LINENO: result: yes" >&5
2262 echo "${ECHO_T}yes" >&6; }
2265 { echo "$as_me:$LINENO: result: no" >&5
2266 echo "${ECHO_T}no" >&6; }
2267 SET_MAKE
="MAKE=${MAKE-make}"
2270 rm -rf .tst
2>/dev
/null
2271 mkdir .tst
2>/dev
/null
2272 if test -d .tst
; then
2277 rmdir .tst
2>/dev
/null
2279 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2280 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2281 # is not polluted with repeated "-I."
2282 am__isrc
=' -I$(srcdir)'
2283 # test to see if srcdir already configured
2284 if test -f $srcdir/config.status
; then
2285 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2286 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2287 { (exit 1); exit 1; }; }
2291 # test whether we have cygpath
2292 if test -z "$CYGPATH_W"; then
2293 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
2294 CYGPATH_W
='cygpath -w'
2301 # Define the identity of the package.
2306 # Some tools Automake needs.
2308 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2311 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2314 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2317 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
2320 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
2322 install_sh
=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2324 # Installed binaries are usually stripped using `strip' when the user
2325 # run `make install-strip'. However `strip' might not be the right
2326 # tool to use in cross-compilation environments, therefore Automake
2327 # will honor the `STRIP' environment variable to overrule this program.
2328 if test "$cross_compiling" != no
; then
2329 if test -n "$ac_tool_prefix"; then
2330 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2331 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
2332 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2333 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2334 if test "${ac_cv_prog_STRIP+set}" = set; then
2335 echo $ECHO_N "(cached) $ECHO_C" >&6
2337 if test -n "$STRIP"; then
2338 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
2340 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2344 test -z "$as_dir" && as_dir
=.
2345 for ac_exec_ext
in '' $ac_executable_extensions; do
2346 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2347 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
2348 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2357 STRIP
=$ac_cv_prog_STRIP
2358 if test -n "$STRIP"; then
2359 { echo "$as_me:$LINENO: result: $STRIP" >&5
2360 echo "${ECHO_T}$STRIP" >&6; }
2362 { echo "$as_me:$LINENO: result: no" >&5
2363 echo "${ECHO_T}no" >&6; }
2368 if test -z "$ac_cv_prog_STRIP"; then
2370 # Extract the first word of "strip", so it can be a program name with args.
2371 set dummy strip
; ac_word
=$2
2372 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2373 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2374 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2375 echo $ECHO_N "(cached) $ECHO_C" >&6
2377 if test -n "$ac_ct_STRIP"; then
2378 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
2380 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2384 test -z "$as_dir" && as_dir
=.
2385 for ac_exec_ext
in '' $ac_executable_extensions; do
2386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2387 ac_cv_prog_ac_ct_STRIP
="strip"
2388 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2397 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
2398 if test -n "$ac_ct_STRIP"; then
2399 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2400 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2402 { echo "$as_me:$LINENO: result: no" >&5
2403 echo "${ECHO_T}no" >&6; }
2406 if test "x$ac_ct_STRIP" = x
; then
2409 case $cross_compiling:$ac_tool_warned in
2411 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2412 whose name does not start with the host triplet. If you think this
2413 configuration is useful to you, please write to autoconf@gnu.org." >&5
2414 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2415 whose name does not start with the host triplet. If you think this
2416 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2417 ac_tool_warned
=yes ;;
2422 STRIP
="$ac_cv_prog_STRIP"
2426 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
2428 # We need awk for the "check" target. The system "awk" is bad on
2430 # Always define AMTAR for backward compatibility.
2432 AMTAR
=${AMTAR-"${am_missing_run}tar"}
2434 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
2441 ac_config_headers
="$ac_config_headers include/libratbox_config.h"
2446 cat >>confdefs.h
<<\_ACEOF
2447 #define _GNU_SOURCE 1
2452 DEPDIR
="${am__leading_dot}deps"
2454 ac_config_commands
="$ac_config_commands depfiles"
2457 am_make
=${MAKE-make}
2458 cat > confinc
<< 'END'
2463 # If we don't find an include directive, just comment out the code.
2464 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2465 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2469 # First try GNU make style include.
2470 echo "include confinc" > confmf
2471 # We grep out `Entering directory' and `Leaving directory'
2472 # messages which can occur if `w' ends up in MAKEFLAGS.
2473 # In particular we don't look at `^make:' because GNU make might
2474 # be invoked under some other name (usually "gmake"), in which
2475 # case it prints its new name instead of `make'.
2476 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2481 # Now try BSD make style include.
2482 if test "$am__include" = "#"; then
2483 echo '.include "confinc"' > confmf
2484 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2485 am__include
=.include
2492 { echo "$as_me:$LINENO: result: $_am_result" >&5
2493 echo "${ECHO_T}$_am_result" >&6; }
2494 rm -f confinc confmf
2496 # Check whether --enable-dependency-tracking was given.
2497 if test "${enable_dependency_tracking+set}" = set; then
2498 enableval
=$enable_dependency_tracking;
2501 if test "x$enable_dependency_tracking" != xno
; then
2502 am_depcomp
="$ac_aux_dir/depcomp"
2505 if test "x$enable_dependency_tracking" != xno; then
2515 ac_cpp
='$CPP $CPPFLAGS'
2516 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2517 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2518 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2519 if test -n "$ac_tool_prefix"; then
2520 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2521 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2522 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2523 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2524 if test "${ac_cv_prog_CC+set}" = set; then
2525 echo $ECHO_N "(cached) $ECHO_C" >&6
2527 if test -n "$CC"; then
2528 ac_cv_prog_CC
="$CC" # Let the user override the test.
2530 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2534 test -z "$as_dir" && as_dir
=.
2535 for ac_exec_ext
in '' $ac_executable_extensions; do
2536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2537 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2538 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2548 if test -n "$CC"; then
2549 { echo "$as_me:$LINENO: result: $CC" >&5
2550 echo "${ECHO_T}$CC" >&6; }
2552 { echo "$as_me:$LINENO: result: no" >&5
2553 echo "${ECHO_T}no" >&6; }
2558 if test -z "$ac_cv_prog_CC"; then
2560 # Extract the first word of "gcc", so it can be a program name with args.
2561 set dummy gcc
; ac_word
=$2
2562 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2563 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2564 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2565 echo $ECHO_N "(cached) $ECHO_C" >&6
2567 if test -n "$ac_ct_CC"; then
2568 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2570 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2574 test -z "$as_dir" && as_dir
=.
2575 for ac_exec_ext
in '' $ac_executable_extensions; do
2576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2577 ac_cv_prog_ac_ct_CC
="gcc"
2578 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2587 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2588 if test -n "$ac_ct_CC"; then
2589 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2590 echo "${ECHO_T}$ac_ct_CC" >&6; }
2592 { echo "$as_me:$LINENO: result: no" >&5
2593 echo "${ECHO_T}no" >&6; }
2596 if test "x$ac_ct_CC" = x
; then
2599 case $cross_compiling:$ac_tool_warned in
2601 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2602 whose name does not start with the host triplet. If you think this
2603 configuration is useful to you, please write to autoconf@gnu.org." >&5
2604 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2605 whose name does not start with the host triplet. If you think this
2606 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2607 ac_tool_warned
=yes ;;
2615 if test -z "$CC"; then
2616 if test -n "$ac_tool_prefix"; then
2617 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2618 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2619 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2620 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2621 if test "${ac_cv_prog_CC+set}" = set; then
2622 echo $ECHO_N "(cached) $ECHO_C" >&6
2624 if test -n "$CC"; then
2625 ac_cv_prog_CC
="$CC" # Let the user override the test.
2627 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2631 test -z "$as_dir" && as_dir
=.
2632 for ac_exec_ext
in '' $ac_executable_extensions; do
2633 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2634 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2635 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2645 if test -n "$CC"; then
2646 { echo "$as_me:$LINENO: result: $CC" >&5
2647 echo "${ECHO_T}$CC" >&6; }
2649 { echo "$as_me:$LINENO: result: no" >&5
2650 echo "${ECHO_T}no" >&6; }
2656 if test -z "$CC"; then
2657 # Extract the first word of "cc", so it can be a program name with args.
2658 set dummy cc
; ac_word
=$2
2659 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2660 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2661 if test "${ac_cv_prog_CC+set}" = set; then
2662 echo $ECHO_N "(cached) $ECHO_C" >&6
2664 if test -n "$CC"; then
2665 ac_cv_prog_CC
="$CC" # Let the user override the test.
2668 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2672 test -z "$as_dir" && as_dir
=.
2673 for ac_exec_ext
in '' $ac_executable_extensions; do
2674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2675 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2676 ac_prog_rejected
=yes
2680 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2687 if test $ac_prog_rejected = yes; then
2688 # We found a bogon in the path, so make sure we never use it.
2689 set dummy
$ac_cv_prog_CC
2691 if test $# != 0; then
2692 # We chose a different compiler from the bogus one.
2693 # However, it has the same basename, so the bogon will be chosen
2694 # first if we set CC to just the basename; use the full file name.
2696 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2702 if test -n "$CC"; then
2703 { echo "$as_me:$LINENO: result: $CC" >&5
2704 echo "${ECHO_T}$CC" >&6; }
2706 { echo "$as_me:$LINENO: result: no" >&5
2707 echo "${ECHO_T}no" >&6; }
2712 if test -z "$CC"; then
2713 if test -n "$ac_tool_prefix"; then
2714 for ac_prog
in cl.exe
2716 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2717 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2718 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2719 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2720 if test "${ac_cv_prog_CC+set}" = set; then
2721 echo $ECHO_N "(cached) $ECHO_C" >&6
2723 if test -n "$CC"; then
2724 ac_cv_prog_CC
="$CC" # Let the user override the test.
2726 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2730 test -z "$as_dir" && as_dir
=.
2731 for ac_exec_ext
in '' $ac_executable_extensions; do
2732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2733 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2734 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2744 if test -n "$CC"; then
2745 { echo "$as_me:$LINENO: result: $CC" >&5
2746 echo "${ECHO_T}$CC" >&6; }
2748 { echo "$as_me:$LINENO: result: no" >&5
2749 echo "${ECHO_T}no" >&6; }
2753 test -n "$CC" && break
2756 if test -z "$CC"; then
2758 for ac_prog
in cl.exe
2760 # Extract the first word of "$ac_prog", so it can be a program name with args.
2761 set dummy
$ac_prog; ac_word
=$2
2762 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2763 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2764 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2765 echo $ECHO_N "(cached) $ECHO_C" >&6
2767 if test -n "$ac_ct_CC"; then
2768 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2770 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2774 test -z "$as_dir" && as_dir
=.
2775 for ac_exec_ext
in '' $ac_executable_extensions; do
2776 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2777 ac_cv_prog_ac_ct_CC
="$ac_prog"
2778 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2787 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2788 if test -n "$ac_ct_CC"; then
2789 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2790 echo "${ECHO_T}$ac_ct_CC" >&6; }
2792 { echo "$as_me:$LINENO: result: no" >&5
2793 echo "${ECHO_T}no" >&6; }
2797 test -n "$ac_ct_CC" && break
2800 if test "x$ac_ct_CC" = x
; then
2803 case $cross_compiling:$ac_tool_warned in
2805 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2806 whose name does not start with the host triplet. If you think this
2807 configuration is useful to you, please write to autoconf@gnu.org." >&5
2808 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2809 whose name does not start with the host triplet. If you think this
2810 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2811 ac_tool_warned
=yes ;;
2820 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2821 See \`config.log' for more details." >&5
2822 echo "$as_me: error: no acceptable C compiler found in \$PATH
2823 See \`config.log' for more details." >&2;}
2824 { (exit 1); exit 1; }; }
2826 # Provide some information about the compiler.
2827 echo "$as_me:$LINENO: checking for C compiler version" >&5
2828 ac_compiler
=`set X $ac_compile; echo $2`
2829 { (ac_try
="$ac_compiler --version >&5"
2831 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
2832 *) ac_try_echo=$ac_try;;
2834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2835 (eval "$ac_compiler --version >&5") 2>&5
2837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2838 (exit $ac_status); }
2839 { (ac_try="$ac_compiler -v >&5"
2841 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
2842 *) ac_try_echo
=$ac_try;;
2844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2845 (eval "$ac_compiler -v >&5") 2>&5
2847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2848 (exit $ac_status); }
2849 { (ac_try
="$ac_compiler -V >&5"
2851 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
2852 *) ac_try_echo=$ac_try;;
2854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2855 (eval "$ac_compiler -V >&5") 2>&5
2857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2858 (exit $ac_status); }
2860 cat >conftest.$ac_ext <<_ACEOF
2863 cat confdefs.h >>conftest.$ac_ext
2864 cat >>conftest.$ac_ext <<_ACEOF
2865 /* end confdefs.h. */
2875 ac_clean_files_save=$ac_clean_files
2876 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2877 # Try to create an executable without -o first, disregard a.out.
2878 # It will help us diagnose broken compilers, and finding out an intuition
2880 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2881 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2882 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2884 # List of possible output files, starting from the most likely.
2885 # The algorithm is not robust to junk in `.
', hence go to wildcards (a.*)
2886 # only as a last resort. b.out is created by i960 compilers.
2887 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
'
2889 # The IRIX 6 linker writes into existing files which may not be
2890 # executable, retaining their permissions. Remove them first so a
2891 # subsequent execution test works.
2893 for ac_file in $ac_files
2896 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2897 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2902 if { (ac_try="$ac_link_default"
2904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2905 *) ac_try_echo=$ac_try;;
2907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2908 (eval "$ac_link_default") 2>&5
2910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911 (exit $ac_status); }; then
2912 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2913 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2914 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2915 # so that the user can short-circuit this test for compilers unknown to
2917 for ac_file
in $ac_files ''
2919 test -f "$ac_file" || continue
2921 *.
$ac_ext | *.xcoff
| *.tds
| *.d
| *.pdb
| *.xSYM
| *.bb
| *.bbg
| *.map
| *.inf
| *.o
| *.obj
)
2924 # We found the default executable, but exeext='' is most
2928 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
2930 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2932 # We set ac_cv_exeext here because the later test for it is not
2933 # safe: cross compilers may not add the suffix if given an `-o'
2934 # argument, so we may need to know it at that point already.
2935 # Even if this section looks crufty: it has the advantage of
2942 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
2948 { echo "$as_me:$LINENO: result: $ac_file" >&5
2949 echo "${ECHO_T}$ac_file" >&6; }
2950 if test -z "$ac_file"; then
2951 echo "$as_me: failed program was:" >&5
2952 sed 's/^/| /' conftest.
$ac_ext >&5
2954 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2955 See \`config.log' for more details." >&5
2956 echo "$as_me: error: C compiler cannot create executables
2957 See \`config.log' for more details." >&2;}
2958 { (exit 77); exit 77; }; }
2961 ac_exeext
=$ac_cv_exeext
2963 # Check that the compiler produces executables we can run. If not, either
2964 # the compiler is broken, or we cross compile.
2965 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2966 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2967 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2968 # If not cross compiling, check that we can run a simple program.
2969 if test "$cross_compiling" != yes; then
2970 if { ac_try
='./$ac_file'
2971 { (case "(($ac_try" in
2972 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
2973 *) ac_try_echo=$ac_try;;
2975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2976 (eval "$ac_try") 2>&5
2978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2979 (exit $ac_status); }; }; then
2982 if test "$cross_compiling" = maybe; then
2985 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2986 If you meant to cross compile, use \`--host'.
2987 See \`config.log' for more details.
" >&5
2988 echo "$as_me: error
: cannot run C compiled programs.
2989 If you meant to cross compile
, use \
`--host'.
2990 See \`config.log
' for more details." >&2;}
2991 { (exit 1); exit 1; }; }
2995 { echo "$as_me:$LINENO: result: yes" >&5
2996 echo "${ECHO_T}yes" >&6; }
2998 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2999 ac_clean_files=$ac_clean_files_save
3000 # Check that the compiler produces executables we can run. If not, either
3001 # the compiler is broken, or we cross compile.
3002 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3003 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3004 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3005 echo "${ECHO_T}$cross_compiling" >&6; }
3007 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3008 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3009 if { (ac_try="$ac_link"
3011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3012 *) ac_try_echo=$ac_try;;
3014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3015 (eval "$ac_link") 2>&5
3017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3018 (exit $ac_status); }; then
3019 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3020 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3021 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3023 for ac_file
in conftest.exe conftest conftest.
*; do
3024 test -f "$ac_file" || continue
3026 *.
$ac_ext | *.xcoff
| *.tds
| *.d
| *.pdb
| *.xSYM
| *.bb
| *.bbg
| *.map
| *.inf
| *.o
| *.obj
) ;;
3027 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3033 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3034 See \`config.log' for more details." >&5
3035 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3036 See \`config.log' for more details." >&2;}
3037 { (exit 1); exit 1; }; }
3040 rm -f conftest
$ac_cv_exeext
3041 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3042 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3044 rm -f conftest.
$ac_ext
3045 EXEEXT
=$ac_cv_exeext
3047 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3048 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3049 if test "${ac_cv_objext+set}" = set; then
3050 echo $ECHO_N "(cached) $ECHO_C" >&6
3052 cat >conftest.
$ac_ext <<_ACEOF
3055 cat confdefs.h
>>conftest.
$ac_ext
3056 cat >>conftest.
$ac_ext <<_ACEOF
3057 /* end confdefs.h. */
3067 rm -f conftest.o conftest.obj
3068 if { (ac_try
="$ac_compile"
3070 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
3071 *) ac_try_echo=$ac_try;;
3073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3074 (eval "$ac_compile") 2>&5
3076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3077 (exit $ac_status); }; then
3078 for ac_file in conftest.o conftest.obj conftest.*; do
3079 test -f "$ac_file" || continue;
3081 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3082 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3087 echo "$as_me: failed program was:" >&5
3088 sed 's/^/| /' conftest.$ac_ext >&5
3090 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3091 See \`config.log
' for more details." >&5
3092 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3093 See \`config.log' for more details.
" >&2;}
3094 { (exit 1); exit 1; }; }
3097 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3099 { echo "$as_me:$LINENO: result
: $ac_cv_objext" >&5
3100 echo "${ECHO_T}$ac_cv_objext" >&6; }
3101 OBJEXT=$ac_cv_objext
3103 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
3104 echo $ECHO_N "checking whether we are using the GNU C compiler...
$ECHO_C" >&6; }
3105 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3106 echo $ECHO_N "(cached
) $ECHO_C" >&6
3108 cat >conftest.$ac_ext <<_ACEOF
3111 cat confdefs.h >>conftest.$ac_ext
3112 cat >>conftest.$ac_ext <<_ACEOF
3113 /* end confdefs.h. */
3126 rm -f conftest.$ac_objext
3127 if { (ac_try="$ac_compile"
3129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3130 *) ac_try_echo=$ac_try;;
3132 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3133 (eval "$ac_compile") 2>conftest.er1
3135 grep -v '^ *+' conftest.er1 >conftest.err
3137 cat conftest.err >&5
3138 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3139 (exit $ac_status); } && {
3140 test -z "$ac_c_werror_flag" ||
3141 test ! -s conftest.err
3142 } && test -s conftest.$ac_objext; then
3145 echo "$as_me: failed program was
:" >&5
3146 sed 's/^/| /' conftest.$ac_ext >&5
3151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3152 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3155 { echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
3156 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3157 GCC=`test $ac_compiler_gnu = yes && echo yes`
3158 ac_test_CFLAGS=${CFLAGS+set}
3159 ac_save_CFLAGS=$CFLAGS
3160 { echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
3161 echo $ECHO_N "checking whether
$CC accepts
-g...
$ECHO_C" >&6; }
3162 if test "${ac_cv_prog_cc_g+set}" = set; then
3163 echo $ECHO_N "(cached
) $ECHO_C" >&6
3165 ac_save_c_werror_flag=$ac_c_werror_flag
3166 ac_c_werror_flag=yes
3169 cat >conftest.$ac_ext <<_ACEOF
3172 cat confdefs.h >>conftest.$ac_ext
3173 cat >>conftest.$ac_ext <<_ACEOF
3174 /* end confdefs.h. */
3184 rm -f conftest.$ac_objext
3185 if { (ac_try="$ac_compile"
3187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3188 *) ac_try_echo=$ac_try;;
3190 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3191 (eval "$ac_compile") 2>conftest.er1
3193 grep -v '^ *+' conftest.er1 >conftest.err
3195 cat conftest.err >&5
3196 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3197 (exit $ac_status); } && {
3198 test -z "$ac_c_werror_flag" ||
3199 test ! -s conftest.err
3200 } && test -s conftest.$ac_objext; then
3203 echo "$as_me: failed program was
:" >&5
3204 sed 's/^/| /' conftest.$ac_ext >&5
3207 cat >conftest.$ac_ext <<_ACEOF
3210 cat confdefs.h >>conftest.$ac_ext
3211 cat >>conftest.$ac_ext <<_ACEOF
3212 /* end confdefs.h. */
3222 rm -f conftest.$ac_objext
3223 if { (ac_try="$ac_compile"
3225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3226 *) ac_try_echo=$ac_try;;
3228 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3229 (eval "$ac_compile") 2>conftest.er1
3231 grep -v '^ *+' conftest.er1 >conftest.err
3233 cat conftest.err >&5
3234 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3235 (exit $ac_status); } && {
3236 test -z "$ac_c_werror_flag" ||
3237 test ! -s conftest.err
3238 } && test -s conftest.$ac_objext; then
3241 echo "$as_me: failed program was
:" >&5
3242 sed 's/^/| /' conftest.$ac_ext >&5
3244 ac_c_werror_flag=$ac_save_c_werror_flag
3246 cat >conftest.$ac_ext <<_ACEOF
3249 cat confdefs.h >>conftest.$ac_ext
3250 cat >>conftest.$ac_ext <<_ACEOF
3251 /* end confdefs.h. */
3261 rm -f conftest.$ac_objext
3262 if { (ac_try="$ac_compile"
3264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3265 *) ac_try_echo=$ac_try;;
3267 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3268 (eval "$ac_compile") 2>conftest.er1
3270 grep -v '^ *+' conftest.er1 >conftest.err
3272 cat conftest.err >&5
3273 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3274 (exit $ac_status); } && {
3275 test -z "$ac_c_werror_flag" ||
3276 test ! -s conftest.err
3277 } && test -s conftest.$ac_objext; then
3280 echo "$as_me: failed program was
:" >&5
3281 sed 's/^/| /' conftest.$ac_ext >&5
3286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3293 ac_c_werror_flag=$ac_save_c_werror_flag
3295 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
3296 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3297 if test "$ac_test_CFLAGS" = set; then
3298 CFLAGS=$ac_save_CFLAGS
3299 elif test $ac_cv_prog_cc_g = yes; then
3300 if test "$GCC" = yes; then
3306 if test "$GCC" = yes; then
3312 { echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
3313 echo $ECHO_N "checking
for $CC option to accept ISO C89...
$ECHO_C" >&6; }
3314 if test "${ac_cv_prog_cc_c89+set}" = set; then
3315 echo $ECHO_N "(cached
) $ECHO_C" >&6
3317 ac_cv_prog_cc_c89=no
3319 cat >conftest.$ac_ext <<_ACEOF
3322 cat confdefs.h >>conftest.$ac_ext
3323 cat >>conftest.$ac_ext <<_ACEOF
3324 /* end confdefs.h. */
3327 #include <sys/types.h>
3328 #include <sys/stat.h>
3329 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3330 struct buf { int x; };
3331 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3332 static char *e (p, i)
3338 static char *f (char * (*g) (char **, int), char **p, ...)
3343 s = g (p, va_arg (v,int));
3348 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3349 function prototypes and stuff, but not '\xHH' hex character constants.
3350 These don't provoke an error unfortunately, instead are silently treated
3351 as 'x'. The following induces an error, until -std is added to get
3352 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3353 array size at least. It's necessary to write '\x00'==0 to get something
3354 that's true only with -std. */
3355 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3357 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3358 inside strings and character constants. */
3360 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3362 int test (int i, double x);
3363 struct s1 {int (*f) (int a);};
3364 struct s2 {int (*f) (double a);};
3365 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3371 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3376 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3377 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3379 CC="$ac_save_CC $ac_arg"
3380 rm -f conftest.$ac_objext
3381 if { (ac_try="$ac_compile"
3383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3384 *) ac_try_echo=$ac_try;;
3386 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3387 (eval "$ac_compile") 2>conftest.er1
3389 grep -v '^ *+' conftest.er1 >conftest.err
3391 cat conftest.err >&5
3392 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3393 (exit $ac_status); } && {
3394 test -z "$ac_c_werror_flag" ||
3395 test ! -s conftest.err
3396 } && test -s conftest.$ac_objext; then
3397 ac_cv_prog_cc_c89=$ac_arg
3399 echo "$as_me: failed program was
:" >&5
3400 sed 's/^/| /' conftest.$ac_ext >&5
3405 rm -f core conftest.err conftest.$ac_objext
3406 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
3408 rm -f conftest.$ac_ext
3413 case "x
$ac_cv_prog_cc_c89" in
3415 { echo "$as_me:$LINENO: result
: none needed
" >&5
3416 echo "${ECHO_T}none needed
" >&6; } ;;
3418 { echo "$as_me:$LINENO: result
: unsupported
" >&5
3419 echo "${ECHO_T}unsupported
" >&6; } ;;
3421 CC="$CC $ac_cv_prog_cc_c89"
3422 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
3423 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3428 ac_cpp='$CPP $CPPFLAGS'
3429 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3430 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3431 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3433 depcc="$CC" am_compiler_list=
3435 { echo "$as_me:$LINENO: checking dependency style of
$depcc" >&5
3436 echo $ECHO_N "checking dependency style of
$depcc...
$ECHO_C" >&6; }
3437 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3438 echo $ECHO_N "(cached
) $ECHO_C" >&6
3440 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3441 # We make a subdir and do the tests there. Otherwise we can end up
3442 # making bogus files that we don't know about and never remove. For
3443 # instance it was reported that on HP-UX the gcc test will end up
3444 # making a dummy file named `D' -- because `-MD' means `put the output
3447 # Copy depcomp to subdir because otherwise we won't find it if we're
3448 # using a relative directory.
3449 cp "$am_depcomp" conftest.dir
3451 # We will build objects and dependencies in a subdirectory because
3452 # it helps to detect inapplicable dependency modes. For instance
3453 # both Tru64's cc and ICC support -MD to output dependencies as a
3454 # side effect of compilation, but ICC will put the dependencies in
3455 # the current directory while Tru64 will put them in the object
3459 am_cv_CC_dependencies_compiler_type=none
3460 if test "$am_compiler_list" = ""; then
3461 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3463 for depmode in $am_compiler_list; do
3464 # Setup a source with many dependencies, because some compilers
3465 # like to wrap large dependency lists on column 80 (with \), and
3466 # we should not choose a depcomp mode which is confused by this.
3468 # We need to recreate these files for each test, as the compiler may
3469 # overwrite some of them when testing with obscure command lines.
3470 # This happens at least with the AIX C compiler.
3472 for i in 1 2 3 4 5 6; do
3473 echo '#include "conftst
'$i'.h
"' >> sub/conftest.c
3474 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3475 # Solaris 8's {/usr,}/bin/sh.
3476 touch sub/conftst$i.h
3478 echo "${am__include} ${am__quote}sub
/conftest.Po
${am__quote}" > confmf
3482 # after this tag, mechanisms are not by side-effect, so they'll
3483 # only be used when explicitly requested
3484 if test "x
$enable_dependency_tracking" = xyes; then
3492 # We check with `-c' and `-o' for the sake of the "dashmstdout
"
3493 # mode. It turns out that the SunPro C++ compiler does not properly
3494 # handle `-M -o', and we need to detect this.
3495 if depmode=$depmode \
3496 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3497 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3498 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3499 >/dev/null 2>conftest.err &&
3500 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3501 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3502 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3503 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3504 # icc doesn't choke on unknown options, it will just issue warnings
3505 # or remarks (even with -Werror). So we grep stderr for any message
3506 # that says an option was ignored or not supported.
3507 # When given -MP, icc 7.0 and 7.1 complain thusly:
3508 # icc: Command line warning: ignoring option '-M'; no argument required
3509 # The diagnosis changed in icc 8.0:
3510 # icc: Command line remark: option '-MP' not supported
3511 if (grep 'ignoring option' conftest.err ||
3512 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3513 am_cv_CC_dependencies_compiler_type=$depmode
3522 am_cv_CC_dependencies_compiler_type=none
3526 { echo "$as_me:$LINENO: result
: $am_cv_CC_dependencies_compiler_type" >&5
3527 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3528 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3531 test "x
$enable_dependency_tracking" != xno \
3532 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3534 am__fastdepCC_FALSE='#'
3536 am__fastdepCC_TRUE='#'
3537 am__fastdepCC_FALSE=
3541 { echo "$as_me:$LINENO: checking
for $CC option to accept ISO C99
" >&5
3542 echo $ECHO_N "checking
for $CC option to accept ISO C99...
$ECHO_C" >&6; }
3543 if test "${ac_cv_prog_cc_c99+set}" = set; then
3544 echo $ECHO_N "(cached
) $ECHO_C" >&6
3546 ac_cv_prog_cc_c99=no
3548 cat >conftest.$ac_ext <<_ACEOF
3551 cat confdefs.h >>conftest.$ac_ext
3552 cat >>conftest.$ac_ext <<_ACEOF
3553 /* end confdefs.h. */
3555 #include <stdbool.h>
3560 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3561 #define debug(...) fprintf (stderr, __VA_ARGS__)
3562 #define showlist(...) puts (#__VA_ARGS__)
3563 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3565 test_varargs_macros (void)
3570 debug ("X
= %d
\n", x);
3571 showlist (The first, second, and third items.);
3572 report (x>y, "x is
%d but y is
%d
", x, y);
3575 // Check long long types.
3576 #define BIG64 18446744073709551615ull
3577 #define BIG32 4294967295ul
3578 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3580 your preprocessor is broken;
3584 your preprocessor is broken;
3586 static long long int bignum = -9223372036854775807LL;
3587 static unsigned long long int ubignum = BIG64;
3589 struct incomplete_array
3597 const wchar_t *name;
3601 typedef const char *ccp;
3604 test_restrict (ccp restrict text)
3606 // See if C++-style comments work.
3607 // Iterate through items via the restricted pointer.
3608 // Also check for declarations in for loops.
3609 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3614 // Check varargs and va_copy.
3616 test_varargs (const char *format, ...)
3619 va_start (args, format);
3621 va_copy (args_copy, args);
3632 str = va_arg (args_copy, const char *);
3635 number = va_arg (args_copy, int);
3638 fnumber = va_arg (args_copy, double);
3653 _Bool success = false;
3656 if (test_restrict ("String literal
") == 0)
3658 char *restrict newvar = "Another string
";
3661 test_varargs ("s
, d
' f .", "string", 65, 34.234);
3662 test_varargs_macros ();
3664 // Check flexible array members.
3665 struct incomplete_array *ia =
3666 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3668 for (int i = 0; i < ia->datasize; ++i)
3669 ia->data[i] = i * 1.234;
3671 // Check named initializers.
3672 struct named_init ni = {
3674 .name = L"Test wide string",
3675 .average = 543.34343,
3680 int dynamic_array[ni.number];
3681 dynamic_array[ni.number - 1] = 543;
3683 // work around unused variable warnings
3684 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x
'
3685 || dynamic_array[ni.number - 1] != 543);
3691 for ac_arg in '' -std=gnu99 -c99 -qlanglvl=extc99
3693 CC="$ac_save_CC $ac_arg"
3694 rm -f conftest.$ac_objext
3695 if { (ac_try="$ac_compile"
3697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3698 *) ac_try_echo=$ac_try;;
3700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3701 (eval "$ac_compile") 2>conftest.er1
3703 grep -v '^
*+' conftest.er1 >conftest.err
3705 cat conftest.err >&5
3706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3707 (exit $ac_status); } && {
3708 test -z "$ac_c_werror_flag" ||
3709 test ! -s conftest.err
3710 } && test -s conftest.$ac_objext; then
3711 ac_cv_prog_cc_c99=$ac_arg
3713 echo "$as_me: failed program was:" >&5
3714 sed 's
/^
/| /' conftest.$ac_ext >&5
3719 rm -f core conftest.err conftest.$ac_objext
3720 test "x$ac_cv_prog_cc_c99" != "xno" && break
3722 rm -f conftest.$ac_ext
3727 case "x$ac_cv_prog_cc_c99" in
3729 { echo "$as_me:$LINENO: result: none needed" >&5
3730 echo "${ECHO_T}none needed" >&6; } ;;
3732 { echo "$as_me:$LINENO: result: unsupported" >&5
3733 echo "${ECHO_T}unsupported" >&6; } ;;
3735 CC="$CC $ac_cv_prog_cc_c99"
3736 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
3737 echo "${ECHO_T}$ac_cv_prog_cc_c99" >&6; } ;;
3743 if test x"$ac_cv_prog_cc_c99" = "xno"; then
3744 { { echo "$as_me:$LINENO: error: ircd-ratbox requires a C99 capable compiler" >&5
3745 echo "$as_me: error: ircd-ratbox requires a C99 capable compiler" >&2;}
3746 { (exit 1); exit 1; }; }
3750 # Find a good install program. We prefer a C program (faster),
3751 # so one script is as good as another. But avoid the broken or
3752 # incompatible versions:
3753 # SysV /etc/install, /usr/sbin/install
3754 # SunOS /usr/etc/install
3755 # IRIX /sbin/install
3757 # AmigaOS /C/install, which installs bootblocks on floppy discs
3758 # AIX 4 /usr/bin/installbsd, which doesn't work without a
-g flag
3759 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3760 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3761 # OS/2's system install, which has a completely different semantic
3762 # ./install, which can be erroneously created by make from ./install.sh.
3763 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3764 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3765 if test -z "$INSTALL"; then
3766 if test "${ac_cv_path_install+set}" = set; then
3767 echo $ECHO_N "(cached) $ECHO_C" >&6
3769 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3773 test -z "$as_dir" && as_dir
=.
3774 # Account for people who put trailing slashes in PATH elements.
3776 .
/ | .
// | /cC
/* | \
3777 /etc
/* | /usr
/sbin
/* | /usr
/etc
/* | /sbin
/* | /usr
/afsws
/bin
/* | \
3778 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
3781 # OSF1 and SCO ODT 3.0 have their own names for install.
3782 # Don't use installbsd from OSF since it installs stuff as root
3784 for ac_prog
in ginstall scoinst
install; do
3785 for ac_exec_ext
in '' $ac_executable_extensions; do
3786 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3787 if test $ac_prog = install &&
3788 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3789 # AIX install. It has an incompatible calling convention.
3791 elif test $ac_prog = install &&
3792 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3793 # program-specific install script used by HP pwplus--don't use.
3796 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3809 if test "${ac_cv_path_install+set}" = set; then
3810 INSTALL
=$ac_cv_path_install
3812 # As a last resort, use the slow shell script. Don't cache a
3813 # value for INSTALL within a source directory, because that will
3814 # break other packages using the cache if that directory is
3815 # removed, or if the value is a relative name.
3816 INSTALL
=$ac_install_sh
3819 { echo "$as_me:$LINENO: result: $INSTALL" >&5
3820 echo "${ECHO_T}$INSTALL" >&6; }
3822 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3823 # It thinks the first close brace ends the variable substitution.
3824 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3826 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3828 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3830 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3831 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3832 if test "${ac_cv_path_GREP+set}" = set; then
3833 echo $ECHO_N "(cached) $ECHO_C" >&6
3835 # Extract the first word of "grep ggrep" to use in msg output
3836 if test -z "$GREP"; then
3837 set dummy
grep ggrep
; ac_prog_name
=$2
3838 if test "${ac_cv_path_GREP+set}" = set; then
3839 echo $ECHO_N "(cached) $ECHO_C" >&6
3841 ac_path_GREP_found
=false
3842 # Loop through the user's path and test for each of PROGNAME-LIST
3843 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3844 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3847 test -z "$as_dir" && as_dir
=.
3848 for ac_prog
in grep ggrep
; do
3849 for ac_exec_ext
in '' $ac_executable_extensions; do
3850 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3851 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3852 # Check for GNU ac_path_GREP and select it if it is found.
3853 # Check for GNU $ac_path_GREP
3854 case `"$ac_path_GREP" --version 2>&1` in
3856 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3859 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3862 cat "conftest.in" "conftest.in" >"conftest.tmp"
3863 mv "conftest.tmp" "conftest.in"
3864 cp "conftest.in" "conftest.nl"
3865 echo 'GREP' >> "conftest.nl"
3866 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null
|| break
3867 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 || break
3868 ac_count
=`expr $ac_count + 1`
3869 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3870 # Best one so far, save it but keep looking for a better one
3871 ac_cv_path_GREP
="$ac_path_GREP"
3872 ac_path_GREP_max
=$ac_count
3874 # 10*(2^10) chars as input seems more than enough
3875 test $ac_count -gt 10 && break
3877 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3881 $ac_path_GREP_found && break 3
3891 GREP
="$ac_cv_path_GREP"
3892 if test -z "$GREP"; then
3893 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3894 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3895 { (exit 1); exit 1; }; }
3899 ac_cv_path_GREP
=$GREP
3904 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3905 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3906 GREP
="$ac_cv_path_GREP"
3909 { echo "$as_me:$LINENO: checking for egrep" >&5
3910 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3911 if test "${ac_cv_path_EGREP+set}" = set; then
3912 echo $ECHO_N "(cached) $ECHO_C" >&6
3914 if echo a
| $GREP -E '(a|b)' >/dev
/null
2>&1
3915 then ac_cv_path_EGREP
="$GREP -E"
3917 # Extract the first word of "egrep" to use in msg output
3918 if test -z "$EGREP"; then
3919 set dummy
egrep; ac_prog_name
=$2
3920 if test "${ac_cv_path_EGREP+set}" = set; then
3921 echo $ECHO_N "(cached) $ECHO_C" >&6
3923 ac_path_EGREP_found
=false
3924 # Loop through the user's path and test for each of PROGNAME-LIST
3925 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3926 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3929 test -z "$as_dir" && as_dir
=.
3930 for ac_prog
in egrep; do
3931 for ac_exec_ext
in '' $ac_executable_extensions; do
3932 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3933 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3934 # Check for GNU ac_path_EGREP and select it if it is found.
3935 # Check for GNU $ac_path_EGREP
3936 case `"$ac_path_EGREP" --version 2>&1` in
3938 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3941 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3944 cat "conftest.in" "conftest.in" >"conftest.tmp"
3945 mv "conftest.tmp" "conftest.in"
3946 cp "conftest.in" "conftest.nl"
3947 echo 'EGREP' >> "conftest.nl"
3948 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null
|| break
3949 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 || break
3950 ac_count
=`expr $ac_count + 1`
3951 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3952 # Best one so far, save it but keep looking for a better one
3953 ac_cv_path_EGREP
="$ac_path_EGREP"
3954 ac_path_EGREP_max
=$ac_count
3956 # 10*(2^10) chars as input seems more than enough
3957 test $ac_count -gt 10 && break
3959 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3963 $ac_path_EGREP_found && break 3
3973 EGREP
="$ac_cv_path_EGREP"
3974 if test -z "$EGREP"; then
3975 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3976 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3977 { (exit 1); exit 1; }; }
3981 ac_cv_path_EGREP
=$EGREP
3987 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3988 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3989 EGREP
="$ac_cv_path_EGREP"
3992 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3993 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3994 if test "${ac_cv_path_SED+set}" = set; then
3995 echo $ECHO_N "(cached) $ECHO_C" >&6
3997 ac_script
=s
/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
/
3998 for ac_i
in 1 2 3 4 5 6 7; do
3999 ac_script
="$ac_script$as_nl$ac_script"
4001 echo "$ac_script" | sed 99q
>conftest.
sed
4002 $as_unset ac_script
|| ac_script
=
4003 # Extract the first word of "sed gsed" to use in msg output
4004 if test -z "$SED"; then
4005 set dummy
sed gsed
; ac_prog_name
=$2
4006 if test "${ac_cv_path_SED+set}" = set; then
4007 echo $ECHO_N "(cached) $ECHO_C" >&6
4009 ac_path_SED_found
=false
4010 # Loop through the user's path and test for each of PROGNAME-LIST
4011 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4015 test -z "$as_dir" && as_dir
=.
4016 for ac_prog
in sed gsed
; do
4017 for ac_exec_ext
in '' $ac_executable_extensions; do
4018 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
4019 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4020 # Check for GNU ac_path_SED and select it if it is found.
4021 # Check for GNU $ac_path_SED
4022 case `"$ac_path_SED" --version 2>&1` in
4024 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
4027 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4030 cat "conftest.in" "conftest.in" >"conftest.tmp"
4031 mv "conftest.tmp" "conftest.in"
4032 cp "conftest.in" "conftest.nl"
4033 echo '' >> "conftest.nl"
4034 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null
|| break
4035 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 || break
4036 ac_count
=`expr $ac_count + 1`
4037 if test $ac_count -gt ${ac_path_SED_max-0}; then
4038 # Best one so far, save it but keep looking for a better one
4039 ac_cv_path_SED
="$ac_path_SED"
4040 ac_path_SED_max
=$ac_count
4042 # 10*(2^10) chars as input seems more than enough
4043 test $ac_count -gt 10 && break
4045 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4049 $ac_path_SED_found && break 3
4059 SED
="$ac_cv_path_SED"
4060 if test -z "$SED"; then
4061 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
4062 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
4063 { (exit 1); exit 1; }; }
4071 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
4072 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
4073 SED
="$ac_cv_path_SED"
4081 # Check whether --enable-static was given.
4082 if test "${enable_static+set}" = set; then
4083 enableval
=$enable_static; p
=${PACKAGE-default}
4085 yes) enable_static
=yes ;;
4086 no
) enable_static
=no
;;
4089 # Look at the argument we got. We use all the common list separators.
4090 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
4091 for pkg
in $enableval; do
4093 if test "X$pkg" = "X$p"; then
4106 # Check whether --enable-shared was given.
4107 if test "${enable_shared+set}" = set; then
4108 enableval
=$enable_shared; p
=${PACKAGE-default}
4110 yes) enable_shared
=yes ;;
4111 no
) enable_shared
=no
;;
4114 # Look at the argument we got. We use all the common list separators.
4115 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
4116 for pkg
in $enableval; do
4118 if test "X$pkg" = "X$p"; then
4130 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4131 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
4132 # Check whether --enable-maintainer-mode was given.
4133 if test "${enable_maintainer_mode+set}" = set; then
4134 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
4136 USE_MAINTAINER_MODE
=no
4139 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4140 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
4141 if test $USE_MAINTAINER_MODE = yes; then
4142 MAINTAINER_MODE_TRUE
=
4143 MAINTAINER_MODE_FALSE
='#'
4145 MAINTAINER_MODE_TRUE
='#'
4146 MAINTAINER_MODE_FALSE
=
4149 MAINT
=$MAINTAINER_MODE_TRUE
4154 { echo "$as_me:$LINENO: checking for library containing strerror" >&5
4155 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
4156 if test "${ac_cv_search_strerror+set}" = set; then
4157 echo $ECHO_N "(cached) $ECHO_C" >&6
4159 ac_func_search_save_LIBS
=$LIBS
4160 cat >conftest.
$ac_ext <<_ACEOF
4163 cat confdefs.h
>>conftest.
$ac_ext
4164 cat >>conftest.
$ac_ext <<_ACEOF
4165 /* end confdefs.h. */
4167 /* Override any GCC internal prototype to avoid an error.
4168 Use char because int might match the return type of a GCC
4169 builtin and then its argument prototype would still apply. */
4182 for ac_lib
in '' cposix
; do
4183 if test -z "$ac_lib"; then
4184 ac_res
="none required"
4187 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4189 rm -f conftest.
$ac_objext conftest
$ac_exeext
4190 if { (ac_try
="$ac_link"
4192 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
4193 *) ac_try_echo=$ac_try;;
4195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4196 (eval "$ac_link") 2>conftest.er1
4198 grep -v '^ *+' conftest.er1 >conftest.err
4200 cat conftest.err >&5
4201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4202 (exit $ac_status); } && {
4203 test -z "$ac_c_werror_flag" ||
4204 test ! -s conftest.err
4205 } && test -s conftest$ac_exeext &&
4206 $as_test_x conftest$ac_exeext; then
4207 ac_cv_search_strerror=$ac_res
4209 echo "$as_me: failed program was:" >&5
4210 sed 's/^/| /' conftest.$ac_ext >&5
4215 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4217 if test "${ac_cv_search_strerror+set}" = set; then
4221 if test "${ac_cv_search_strerror+set}" = set; then
4224 ac_cv_search_strerror=no
4227 LIBS=$ac_func_search_save_LIBS
4229 { echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
4230 echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
4231 ac_res=$ac_cv_search_strerror
4232 if test "$ac_res" != no; then
4233 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4237 { echo "$as_me:$LINENO: checking for inline" >&5
4238 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
4239 if test "${ac_cv_c_inline+set}" = set; then
4240 echo $ECHO_N "(cached) $ECHO_C" >&6
4243 for ac_kw in inline __inline__ __inline; do
4244 cat >conftest.$ac_ext <<_ACEOF
4247 cat confdefs.h >>conftest.$ac_ext
4248 cat >>conftest.$ac_ext <<_ACEOF
4249 /* end confdefs.h. */
4252 static $ac_kw foo_t static_foo () {return 0; }
4253 $ac_kw foo_t foo () {return 0; }
4257 rm -f conftest.$ac_objext
4258 if { (ac_try="$ac_compile"
4260 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
4261 *) ac_try_echo
=$ac_try;;
4263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4264 (eval "$ac_compile") 2>conftest.er1
4266 grep -v '^ *+' conftest.er1
>conftest.err
4268 cat conftest.err
>&5
4269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4270 (exit $ac_status); } && {
4271 test -z "$ac_c_werror_flag" ||
4272 test ! -s conftest.err
4273 } && test -s conftest.
$ac_objext; then
4274 ac_cv_c_inline
=$ac_kw
4276 echo "$as_me: failed program was:" >&5
4277 sed 's/^/| /' conftest.
$ac_ext >&5
4282 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4283 test "$ac_cv_c_inline" != no
&& break
4287 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4288 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
4291 case $ac_cv_c_inline in
4294 case $ac_cv_c_inline in
4296 *) ac_val
=$ac_cv_c_inline;;
4298 cat >>confdefs.h
<<_ACEOF
4300 #define inline $ac_val
4306 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4307 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
4308 if test "${ac_cv_c_const+set}" = set; then
4309 echo $ECHO_N "(cached) $ECHO_C" >&6
4311 cat >conftest.
$ac_ext <<_ACEOF
4314 cat confdefs.h
>>conftest.
$ac_ext
4315 cat >>conftest.
$ac_ext <<_ACEOF
4316 /* end confdefs.h. */
4321 /* FIXME: Include the comments suggested by Paul. */
4323 /* Ultrix mips cc rejects this. */
4324 typedef int charset[2];
4326 /* SunOS 4.1.1 cc rejects this. */
4327 char const *const *pcpcc;
4329 /* NEC SVR4.0.2 mips cc rejects this. */
4330 struct point {int x, y;};
4331 static struct point const zero = {0,0};
4332 /* AIX XL C 1.02.0.0 rejects this.
4333 It does not let you subtract one const X* pointer from another in
4334 an arm of an if-expression whose if-part is not a constant
4336 const char *g = "string";
4337 pcpcc = &g + (g ? g-g : 0);
4338 /* HPUX 7.0 cc rejects these. */
4340 ppc = (char**) pcpcc;
4341 pcpcc = (char const *const *) ppc;
4342 { /* SCO 3.2v4 cc rejects this. */
4344 char const *s = 0 ? (char *) 0 : (char const *) 0;
4349 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4351 const int *foo = &x[0];
4354 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4355 typedef const int *iptr;
4359 { /* AIX XL C 1.02.0.0 rejects this saying
4360 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4361 struct s { int j; const int *ap[3]; };
4362 struct s *b; b->j = 5;
4364 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4368 return !cs[0] && !zero.x;
4375 rm -f conftest.
$ac_objext
4376 if { (ac_try
="$ac_compile"
4378 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
4379 *) ac_try_echo=$ac_try;;
4381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4382 (eval "$ac_compile") 2>conftest.er1
4384 grep -v '^ *+' conftest.er1 >conftest.err
4386 cat conftest.err >&5
4387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4388 (exit $ac_status); } && {
4389 test -z "$ac_c_werror_flag" ||
4390 test ! -s conftest.err
4391 } && test -s conftest.$ac_objext; then
4394 echo "$as_me: failed program was:" >&5
4395 sed 's/^/| /' conftest.$ac_ext >&5
4400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4402 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4403 echo "${ECHO_T}$ac_cv_c_const" >&6; }
4404 if test $ac_cv_c_const = no; then
4406 cat >>confdefs.h <<\_ACEOF
4412 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4413 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
4414 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4415 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
4416 echo $ECHO_N "(cached) $ECHO_C" >&6
4418 cat >conftest.make <<\_ACEOF
4421 @echo '@@@%%%=$(MAKE)=@@@%%%'
4423 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4424 case `${MAKE-make} -f conftest.
make 2>/dev
/null
` in
4426 eval ac_cv_prog_make_${ac_make}_set=yes;;
4428 eval ac_cv_prog_make_${ac_make}_set=no;;
4432 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4433 { echo "$as_me:$LINENO: result: yes" >&5
4434 echo "${ECHO_T}yes" >&6; }
4437 { echo "$as_me:$LINENO: result: no" >&5
4438 echo "${ECHO_T}no" >&6; }
4439 SET_MAKE="MAKE=${MAKE-make}"
4442 # Find a good install program. We prefer a C program (faster),
4443 # so one script is as good as another. But avoid the broken or
4444 # incompatible versions:
4445 # SysV /etc/install, /usr/sbin/install
4446 # SunOS /usr/etc/install
4447 # IRIX /sbin/install
4449 # AmigaOS /C/install, which installs bootblocks on floppy discs
4450 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4451 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4452 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4453 # OS/2's system install, which has a completely different semantic
4454 # ./install, which can be erroneously created by make from ./install.sh.
4455 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4456 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4457 if test -z "$INSTALL"; then
4458 if test "${ac_cv_path_install+set}" = set; then
4459 echo $ECHO_N "(cached) $ECHO_C" >&6
4461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4465 test -z "$as_dir" && as_dir=.
4466 # Account for people who put trailing slashes in PATH elements.
4468 ./ | .// | /cC/* | \
4469 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4470 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4473 # OSF1 and SCO ODT 3.0 have their own names for install.
4474 # Don't use installbsd from OSF since it installs stuff as root
4476 for ac_prog in ginstall scoinst install; do
4477 for ac_exec_ext in '' $ac_executable_extensions; do
4478 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4479 if test $ac_prog = install &&
4480 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4481 # AIX install. It has an incompatible calling convention.
4483 elif test $ac_prog = install &&
4484 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4485 # program-specific install script used by HP pwplus--don't use.
4488 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4501 if test "${ac_cv_path_install+set}" = set; then
4502 INSTALL=$ac_cv_path_install
4504 # As a last resort, use the slow shell script. Don't cache a
4505 # value for INSTALL within a source directory, because that will
4506 # break other packages using the cache if that directory is
4507 # removed, or if the value is a relative name.
4508 INSTALL=$ac_install_sh
4511 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4512 echo "${ECHO_T}$INSTALL" >&6; }
4514 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4515 # It thinks the first close brace ends the variable substitution.
4516 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4518 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4520 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4522 # Extract the first word of "automake", so it can be a program name with args.
4523 set dummy automake; ac_word=$2
4524 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4526 if test "${ac_cv_path_AUTOMAKE+set}" = set; then
4527 echo $ECHO_N "(cached) $ECHO_C" >&6
4531 ac_cv_path_AUTOMAKE="$AUTOMAKE" # Let the user override the test with a path.
4534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4538 test -z "$as_dir" && as_dir=.
4539 for ac_exec_ext in '' $ac_executable_extensions; do
4540 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4541 ac_cv_path_AUTOMAKE="$as_dir/$ac_word$ac_exec_ext"
4542 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4552 AUTOMAKE=$ac_cv_path_AUTOMAKE
4553 if test -n "$AUTOMAKE"; then
4554 { echo "$as_me:$LINENO: result: $AUTOMAKE" >&5
4555 echo "${ECHO_T}$AUTOMAKE" >&6; }
4557 { echo "$as_me:$LINENO: result: no" >&5
4558 echo "${ECHO_T}no" >&6; }
4562 # Extract the first word of "aclocal", so it can be a program name with args.
4563 set dummy aclocal; ac_word=$2
4564 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4565 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4566 if test "${ac_cv_path_ACLOCAL+set}" = set; then
4567 echo $ECHO_N "(cached) $ECHO_C" >&6
4571 ac_cv_path_ACLOCAL="$ACLOCAL" # Let the user override the test with a path.
4574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4578 test -z "$as_dir" && as_dir=.
4579 for ac_exec_ext in '' $ac_executable_extensions; do
4580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4581 ac_cv_path_ACLOCAL="$as_dir/$ac_word$ac_exec_ext"
4582 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4592 ACLOCAL=$ac_cv_path_ACLOCAL
4593 if test -n "$ACLOCAL"; then
4594 { echo "$as_me:$LINENO: result: $ACLOCAL" >&5
4595 echo "${ECHO_T}$ACLOCAL" >&6; }
4597 { echo "$as_me:$LINENO: result: no" >&5
4598 echo "${ECHO_T}no" >&6; }
4602 # Extract the first word of "autoheader", so it can be a program name with args.
4603 set dummy autoheader; ac_word=$2
4604 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4605 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4606 if test "${ac_cv_path_AUTOHEADER+set}" = set; then
4607 echo $ECHO_N "(cached) $ECHO_C" >&6
4611 ac_cv_path_AUTOHEADER="$AUTOHEADER" # Let the user override the test with a path.
4614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4618 test -z "$as_dir" && as_dir=.
4619 for ac_exec_ext in '' $ac_executable_extensions; do
4620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4621 ac_cv_path_AUTOHEADER="$as_dir/$ac_word$ac_exec_ext"
4622 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4632 AUTOHEADER=$ac_cv_path_AUTOHEADER
4633 if test -n "$AUTOHEADER"; then
4634 { echo "$as_me:$LINENO: result: $AUTOHEADER" >&5
4635 echo "${ECHO_T}$AUTOHEADER" >&6; }
4637 { echo "$as_me:$LINENO: result: no" >&5
4638 echo "${ECHO_T}no" >&6; }
4642 # Extract the first word of "as", so it can be a program name with args.
4643 set dummy as; ac_word=$2
4644 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4645 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4646 if test "${ac_cv_path_AS+set}" = set; then
4647 echo $ECHO_N "(cached) $ECHO_C" >&6
4651 ac_cv_path_AS="$AS" # Let the user override the test with a path.
4654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4658 test -z "$as_dir" && as_dir=.
4659 for ac_exec_ext in '' $ac_executable_extensions; do
4660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4661 ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext"
4662 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4673 if test -n "$AS"; then
4674 { echo "$as_me:$LINENO: result: $AS" >&5
4675 echo "${ECHO_T}$AS" >&6; }
4677 { echo "$as_me:$LINENO: result: no" >&5
4678 echo "${ECHO_T}no" >&6; }
4682 # Extract the first word of "rm", so it can be a program name with args.
4683 set dummy rm; ac_word=$2
4684 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4685 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4686 if test "${ac_cv_path_RM+set}" = set; then
4687 echo $ECHO_N "(cached) $ECHO_C" >&6
4691 ac_cv_path_RM="$RM" # Let the user override the test with a path.
4694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4698 test -z "$as_dir" && as_dir=.
4699 for ac_exec_ext in '' $ac_executable_extensions; do
4700 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4701 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4702 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4713 if test -n "$RM"; then
4714 { echo "$as_me:$LINENO: result: $RM" >&5
4715 echo "${ECHO_T}$RM" >&6; }
4717 { echo "$as_me:$LINENO: result: no" >&5
4718 echo "${ECHO_T}no" >&6; }
4722 # Extract the first word of "cp", so it can be a program name with args.
4723 set dummy cp; ac_word=$2
4724 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4725 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4726 if test "${ac_cv_path_CP+set}" = set; then
4727 echo $ECHO_N "(cached) $ECHO_C" >&6
4731 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4738 test -z "$as_dir" && as_dir=.
4739 for ac_exec_ext in '' $ac_executable_extensions; do
4740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4741 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4742 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4753 if test -n "$CP"; then
4754 { echo "$as_me:$LINENO: result: $CP" >&5
4755 echo "${ECHO_T}$CP" >&6; }
4757 { echo "$as_me:$LINENO: result: no" >&5
4758 echo "${ECHO_T}no" >&6; }
4762 # Extract the first word of "mv", so it can be a program name with args.
4763 set dummy mv; ac_word=$2
4764 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4765 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4766 if test "${ac_cv_path_MV+set}" = set; then
4767 echo $ECHO_N "(cached) $ECHO_C" >&6
4771 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4778 test -z "$as_dir" && as_dir=.
4779 for ac_exec_ext in '' $ac_executable_extensions; do
4780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4781 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4782 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4793 if test -n "$MV"; then
4794 { echo "$as_me:$LINENO: result: $MV" >&5
4795 echo "${ECHO_T}$MV" >&6; }
4797 { echo "$as_me:$LINENO: result: no" >&5
4798 echo "${ECHO_T}no" >&6; }
4802 # Extract the first word of "ln", so it can be a program name with args.
4803 set dummy ln; ac_word=$2
4804 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4805 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4806 if test "${ac_cv_path_LN+set}" = set; then
4807 echo $ECHO_N "(cached) $ECHO_C" >&6
4811 ac_cv_path_LN="$LN" # Let the user override the test with a path.
4814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4818 test -z "$as_dir" && as_dir=.
4819 for ac_exec_ext in '' $ac_executable_extensions; do
4820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4821 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
4822 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4833 if test -n "$LN"; then
4834 { echo "$as_me:$LINENO: result: $LN" >&5
4835 echo "${ECHO_T}$LN" >&6; }
4837 { echo "$as_me:$LINENO: result: no" >&5
4838 echo "${ECHO_T}no" >&6; }
4842 # Extract the first word of "ar", so it can be a program name with args.
4843 set dummy ar; ac_word=$2
4844 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4845 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4846 if test "${ac_cv_path_AR+set}" = set; then
4847 echo $ECHO_N "(cached) $ECHO_C" >&6
4851 ac_cv_path_AR="$AR" # Let the user override the test with a path.
4854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4858 test -z "$as_dir" && as_dir=.
4859 for ac_exec_ext in '' $ac_executable_extensions; do
4860 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4861 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4862 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4873 if test -n "$AR"; then
4874 { echo "$as_me:$LINENO: result: $AR" >&5
4875 echo "${ECHO_T}$AR" >&6; }
4877 { echo "$as_me:$LINENO: result: no" >&5
4878 echo "${ECHO_T}no" >&6; }
4882 # Extract the first word of "ld", so it can be a program name with args.
4883 set dummy ld; ac_word=$2
4884 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4885 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4886 if test "${ac_cv_path_LD+set}" = set; then
4887 echo $ECHO_N "(cached) $ECHO_C" >&6
4891 ac_cv_path_LD="$LD" # Let the user override the test with a path.
4894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4898 test -z "$as_dir" && as_dir=.
4899 for ac_exec_ext in '' $ac_executable_extensions; do
4900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4901 ac_cv_path_LD="$as_dir/$ac_word$ac_exec_ext"
4902 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4913 if test -n "$LD"; then
4914 { echo "$as_me:$LINENO: result: $LD" >&5
4915 echo "${ECHO_T}$LD" >&6; }
4917 { echo "$as_me:$LINENO: result: no" >&5
4918 echo "${ECHO_T}no" >&6; }
4922 # Extract the first word of "ranlib", so it can be a program name with args.
4923 set dummy ranlib; ac_word=$2
4924 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4925 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4926 if test "${ac_cv_path_RANLIB+set}" = set; then
4927 echo $ECHO_N "(cached) $ECHO_C" >&6
4931 ac_cv_path_RANLIB="$RANLIB" # Let the user override the test with a path.
4934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4938 test -z "$as_dir" && as_dir=.
4939 for ac_exec_ext in '' $ac_executable_extensions; do
4940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4941 ac_cv_path_RANLIB="$as_dir/$ac_word$ac_exec_ext"
4942 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4952 RANLIB=$ac_cv_path_RANLIB
4953 if test -n "$RANLIB"; then
4954 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4955 echo "${ECHO_T}$RANLIB" >&6; }
4957 { echo "$as_me:$LINENO: result: no" >&5
4958 echo "${ECHO_T}no" >&6; }
4962 # Extract the first word of "touch", so it can be a program name with args.
4963 set dummy touch; ac_word=$2
4964 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4965 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4966 if test "${ac_cv_path_TOUCH+set}" = set; then
4967 echo $ECHO_N "(cached) $ECHO_C" >&6
4971 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
4974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4978 test -z "$as_dir" && as_dir=.
4979 for ac_exec_ext in '' $ac_executable_extensions; do
4980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4981 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
4982 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4992 TOUCH=$ac_cv_path_TOUCH
4993 if test -n "$TOUCH"; then
4994 { echo "$as_me:$LINENO: result: $TOUCH" >&5
4995 echo "${ECHO_T}$TOUCH" >&6; }
4997 { echo "$as_me:$LINENO: result: no" >&5
4998 echo "${ECHO_T}no" >&6; }
5003 ac_cpp='$CPP $CPPFLAGS'
5004 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5005 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5006 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5009 # Check whether --enable-fast-install was given.
5010 if test "${enable_fast_install+set}" = set; then
5011 enableval=$enable_fast_install; p=${PACKAGE-default}
5013 yes) enable_fast_install=yes ;;
5014 no) enable_fast_install=no ;;
5016 enable_fast_install=no
5017 # Look at the argument we got. We use all the common list separators.
5018 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5019 for pkg in $enableval; do
5021 if test "X$pkg" = "X$p"; then
5022 enable_fast_install=yes
5029 enable_fast_install=yes
5033 # Make sure we can run config.sub.
5034 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5035 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5036 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5037 { (exit 1); exit 1; }; }
5039 { echo "$as_me:$LINENO: checking build system type" >&5
5040 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5041 if test "${ac_cv_build+set}" = set; then
5042 echo $ECHO_N "(cached) $ECHO_C" >&6
5044 ac_build_alias=$build_alias
5045 test "x$ac_build_alias" = x &&
5046 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5047 test "x$ac_build_alias" = x &&
5048 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5049 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5050 { (exit 1); exit 1; }; }
5051 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5052 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5053 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5054 { (exit 1); exit 1; }; }
5057 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5058 echo "${ECHO_T}$ac_cv_build" >&6; }
5059 case $ac_cv_build in
5061 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5062 echo "$as_me: error: invalid value of canonical build" >&2;}
5063 { (exit 1); exit 1; }; };;
5066 ac_save_IFS=$IFS; IFS='-'
5072 # Remember, the first character of IFS is used to create $*,
5073 # except with old shells:
5076 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5079 { echo "$as_me:$LINENO: checking host system type" >&5
5080 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5081 if test "${ac_cv_host+set}" = set; then
5082 echo $ECHO_N "(cached) $ECHO_C" >&6
5084 if test "x$host_alias" = x; then
5085 ac_cv_host=$ac_cv_build
5087 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5088 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5089 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5090 { (exit 1); exit 1; }; }
5094 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5095 echo "${ECHO_T}$ac_cv_host" >&6; }
5098 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5099 echo "$as_me: error: invalid value of canonical host" >&2;}
5100 { (exit 1); exit 1; }; };;
5103 ac_save_IFS=$IFS; IFS='-'
5109 # Remember, the first character of IFS is used to create $*,
5110 # except with old shells:
5113 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5116 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5117 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5118 if test "${lt_cv_path_SED+set}" = set; then
5119 echo $ECHO_N "(cached) $ECHO_C" >&6
5121 # Loop through the user's path and test for sed and gsed.
5122 # Then use that list of sed's as ones to test for truncation.
5123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5127 test -z "$as_dir" && as_dir=.
5128 for lt_ac_prog in sed gsed; do
5129 for ac_exec_ext in '' $ac_executable_extensions; do
5130 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
5131 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5139 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5140 # along with /bin/sed that truncates output.
5141 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5142 test ! -f $lt_ac_sed && continue
5143 cat /dev/null > conftest.in
5145 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5146 # Check for GNU sed and select it if it is found.
5147 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5148 lt_cv_path_SED=$lt_ac_sed
5152 cat conftest.in conftest.in >conftest.tmp
5153 mv conftest.tmp conftest.in
5154 cp conftest.in conftest.nl
5156 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5157 cmp -s conftest.out conftest.nl || break
5158 # 10000 chars as input seems more than enough
5159 test $lt_ac_count -gt 10 && break
5160 lt_ac_count=`expr $lt_ac_count + 1`
5161 if test $lt_ac_count -gt $lt_ac_max; then
5162 lt_ac_max=$lt_ac_count
5163 lt_cv_path_SED=$lt_ac_sed
5172 { echo "$as_me:$LINENO: result: $SED" >&5
5173 echo "${ECHO_T}$SED" >&6; }
5176 # Check whether --with-gnu-ld was given.
5177 if test "${with_gnu_ld+set}" = set; then
5178 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5184 if test "$GCC" = yes; then
5185 # Check if gcc -print-prog-name=ld gives a path.
5186 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5187 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
5190 # gcc leaves a trailing carriage return which upsets mingw
5191 ac_prog=`($CC -print-prog-name=ld
) 2>&5 | tr -d '\015'` ;;
5193 ac_prog=`($CC -print-prog-name=ld
) 2>&5` ;;
5196 # Accept absolute paths.
5198 re_direlt='/[^/][^/]*/\.\./'
5199 # Canonicalize the pathname of ld
5200 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5201 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5202 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5204 test -z "$LD" && LD="$ac_prog"
5207 # If it fails, then pretend we aren't using GCC.
5211 # If it is relative, then search for the first ld in PATH.
5215 elif test "$with_gnu_ld" = yes; then
5216 { echo "$as_me:$LINENO: checking for GNU ld" >&5
5217 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5219 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5220 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5222 if test "${lt_cv_path_LD+set}" = set; then
5223 echo $ECHO_N "(cached) $ECHO_C" >&6
5225 if test -z "$LD"; then
5226 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5227 for ac_dir in $PATH; do
5229 test -z "$ac_dir" && ac_dir=.
5230 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5231 lt_cv_path_LD="$ac_dir/$ac_prog"
5232 # Check to see if the program is GNU ld. I'd rather use --version,
5233 # but apparently some variants of GNU ld only accept -v.
5234 # Break only if it was the GNU/non-GNU ld that we prefer.
5235 case `"$lt_cv_path_LD" -v 2>&1 </dev
/null
` in
5236 *GNU* | *'with BFD'*)
5237 test "$with_gnu_ld" != no && break
5240 test "$with_gnu_ld" != yes && break
5247 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5252 if test -n "$LD"; then
5253 { echo "$as_me:$LINENO: result: $LD" >&5
5254 echo "${ECHO_T}$LD" >&6; }
5256 { echo "$as_me:$LINENO: result: no" >&5
5257 echo "${ECHO_T}no" >&6; }
5259 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5260 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5261 { (exit 1); exit 1; }; }
5262 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5263 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5264 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5265 echo $ECHO_N "(cached) $ECHO_C" >&6
5267 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5268 case `$LD -v 2>&1 </dev
/null
` in
5269 *GNU* | *'with BFD'*)
5270 lt_cv_prog_gnu_ld=yes
5273 lt_cv_prog_gnu_ld=no
5277 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5278 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5279 with_gnu_ld=$lt_cv_prog_gnu_ld
5282 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5283 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
5284 if test "${lt_cv_ld_reload_flag+set}" = set; then
5285 echo $ECHO_N "(cached) $ECHO_C" >&6
5287 lt_cv_ld_reload_flag='-r'
5289 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5290 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
5291 reload_flag=$lt_cv_ld_reload_flag
5292 case $reload_flag in
5294 *) reload_flag=" $reload_flag" ;;
5296 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5299 if test "$GCC" = yes; then
5300 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5302 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5307 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5308 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5309 if test "${lt_cv_path_NM+set}" = set; then
5310 echo $ECHO_N "(cached) $ECHO_C" >&6
5312 if test -n "$NM"; then
5313 # Let the user override the test.
5316 lt_nm_to_check="${ac_tool_prefix}nm"
5317 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5318 lt_nm_to_check="$lt_nm_to_check nm"
5320 for lt_tmp_nm in $lt_nm_to_check; do
5321 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5322 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5324 test -z "$ac_dir" && ac_dir=.
5325 tmp_nm="$ac_dir/$lt_tmp_nm"
5326 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5327 # Check to see if the nm accepts a BSD-compat flag.
5328 # Adding the `sed 1q
' prevents false positives on HP-UX, which says:
5329 # nm: unknown option "B" ignored
5330 # Tru64's nm complains that
/dev
/null is an invalid object
file
5331 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5332 */dev
/null
* | *'Invalid file or object type'*)
5333 lt_cv_path_NM
="$tmp_nm -B"
5337 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5339 lt_cv_path_NM
="$tmp_nm -p"
5343 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5344 continue # so that we can try to find one that supports BSD flags
5353 test -z "$lt_cv_path_NM" && lt_cv_path_NM
=nm
5356 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5357 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5360 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5361 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5363 if test "$LN_S" = "ln -s"; then
5364 { echo "$as_me:$LINENO: result: yes" >&5
5365 echo "${ECHO_T}yes" >&6; }
5367 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5368 echo "${ECHO_T}no, using $LN_S" >&6; }
5371 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5372 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
5373 if test "${lt_cv_deplibs_check_method+set}" = set; then
5374 echo $ECHO_N "(cached) $ECHO_C" >&6
5376 lt_cv_file_magic_cmd
='$MAGIC_CMD'
5377 lt_cv_file_magic_test_file
=
5378 lt_cv_deplibs_check_method
='unknown'
5379 # Need to set the preceding variable on all platforms that support
5380 # interlibrary dependencies.
5381 # 'none' -- dependencies not supported.
5382 # `unknown' -- same as none, but documents that we really don't know.
5383 # 'pass_all' -- all dependencies passed with no checks.
5384 # 'test_compile' -- check by making test program.
5385 # 'file_magic [[regex]]' -- check by looking for files in library path
5386 # which responds to the $file_magic_cmd with a given extended regex.
5387 # If you have `file' or equivalent on your system and you're not sure
5388 # whether `pass_all' will *always* work, you probably want this one.
5392 lt_cv_deplibs_check_method
=pass_all
5396 lt_cv_deplibs_check_method
=pass_all
5400 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5401 lt_cv_file_magic_cmd
='/usr/bin/file -L'
5402 lt_cv_file_magic_test_file
=/shlib
/libc.so
5406 # func_win32_libid is a shell function defined in ltmain.sh
5407 lt_cv_deplibs_check_method
='file_magic ^x86 archive import|^x86 DLL'
5408 lt_cv_file_magic_cmd
='func_win32_libid'
5412 # Base MSYS/MinGW do not provide the 'file' command needed by
5413 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5414 # unless we find 'file', for example because we are cross-compiling.
5415 if ( file / ) >/dev
/null
2>&1; then
5416 lt_cv_deplibs_check_method
='file_magic ^x86 archive import|^x86 DLL'
5417 lt_cv_file_magic_cmd
='func_win32_libid'
5419 lt_cv_deplibs_check_method
='file_magic file format pei*-i386(.*architecture: i386)?'
5420 lt_cv_file_magic_cmd
='$OBJDUMP -f'
5424 darwin
* | rhapsody
*)
5425 lt_cv_deplibs_check_method
=pass_all
5428 freebsd
* | dragonfly
*)
5429 if echo __ELF__
| $CC -E - | grep __ELF__
> /dev
/null
; then
5432 # Not sure whether the presence of OpenBSD here was a mistake.
5433 # Let's accept both of them until this is cleared up.
5434 lt_cv_deplibs_check_method
='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5435 lt_cv_file_magic_cmd
=/usr
/bin
/file
5436 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so.*`
5440 lt_cv_deplibs_check_method
=pass_all
5445 lt_cv_deplibs_check_method
=pass_all
5448 hpux10.20
* | hpux11
*)
5449 lt_cv_file_magic_cmd
=/usr
/bin
/file
5452 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5453 lt_cv_file_magic_test_file
=/usr
/lib
/hpux
32/libc.so
5456 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]'
5457 lt_cv_file_magic_test_file
=/usr
/lib
/pa
20_
64/libc.sl
5460 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5461 lt_cv_file_magic_test_file
=/usr
/lib
/libc.sl
5467 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5468 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so|\.a)$'
5471 irix5
* | irix6
* | nonstopux
*)
5473 *-32|*"-32 ") libmagic
=32-bit;;
5474 *-n32|*"-n32 ") libmagic
=N32
;;
5475 *-64|*"-64 ") libmagic
=64-bit;;
5476 *) libmagic
=never
-match;;
5478 lt_cv_deplibs_check_method
=pass_all
5481 # This must be Linux ELF.
5482 linux
* | k
*bsd
*-gnu)
5483 lt_cv_deplibs_check_method
=pass_all
5486 netbsd
* | netbsdelf
*-gnu)
5487 if echo __ELF__
| $CC -E - | grep __ELF__
> /dev
/null
; then
5488 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5490 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5495 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5496 lt_cv_file_magic_cmd
=/usr
/bin
/file
5497 lt_cv_file_magic_test_file
=/usr
/lib
/libnls.so
5501 lt_cv_deplibs_check_method
=unknown
5505 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5506 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5508 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5512 osf3
* | osf4
* | osf5
*)
5513 lt_cv_deplibs_check_method
=pass_all
5517 lt_cv_deplibs_check_method
=pass_all
5521 lt_cv_deplibs_check_method
=pass_all
5525 case $host_vendor in
5527 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]'
5528 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so*`
5531 lt_cv_deplibs_check_method
=pass_all
5534 lt_cv_file_magic_cmd
='/bin/file'
5535 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5538 lt_cv_file_magic_cmd
='/bin/file'
5539 lt_cv_deplibs_check_method
="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5540 lt_cv_file_magic_test_file
=/lib
/libc.so
5543 lt_cv_deplibs_check_method
=pass_all
5546 lt_cv_deplibs_check_method
=pass_all
5551 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
5552 lt_cv_deplibs_check_method
=pass_all
5557 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5558 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
5559 file_magic_cmd
=$lt_cv_file_magic_cmd
5560 deplibs_check_method
=$lt_cv_deplibs_check_method
5561 test -z "$deplibs_check_method" && deplibs_check_method
=unknown
5566 # If no C compiler was specified, use CC.
5569 # If no C compiler flags were specified, use CFLAGS.
5570 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
5572 # Allow CC to be a program name with arguments.
5575 # Check whether --enable-libtool-lock was given.
5576 if test "${enable_libtool_lock+set}" = set; then
5577 enableval
=$enable_libtool_lock;
5580 test "x$enable_libtool_lock" != xno
&& enable_libtool_lock
=yes
5582 # Some flags need to be propagated to the compiler or linker for good
5586 # Find out which ABI we are using.
5587 echo 'int i;' > conftest.
$ac_ext
5588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5589 (eval $ac_compile) 2>&5
5591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5592 (exit $ac_status); }; then
5593 case `/usr/bin/file conftest.$ac_objext` in
5605 # Find out which ABI we are using.
5606 echo '#line 5606 "configure"' > conftest.
$ac_ext
5607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5608 (eval $ac_compile) 2>&5
5610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5611 (exit $ac_status); }; then
5612 if test "$lt_cv_prog_gnu_ld" = yes; then
5613 case `/usr/bin/file conftest.$ac_objext` in
5615 LD
="${LD-ld} -melf32bsmip"
5618 LD
="${LD-ld} -melf32bmipn32"
5621 LD
="${LD-ld} -melf64bmip"
5625 case `/usr/bin/file conftest.$ac_objext` in
5641 x86_64
-*kfreebsd
*-gnu|x86_64
-*linux
*|ppc
*-*linux
*|powerpc
*-*linux
*| \
5642 s390
*-*linux
*|sparc
*-*linux
*)
5643 # Find out which ABI we are using.
5644 echo 'int i;' > conftest.
$ac_ext
5645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5646 (eval $ac_compile) 2>&5
5648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5649 (exit $ac_status); }; then
5650 case `/usr/bin/file conftest.o` in
5653 x86_64
-*kfreebsd
*-gnu)
5654 LD
="${LD-ld} -m elf_i386_fbsd"
5657 LD
="${LD-ld} -m elf_i386"
5659 ppc64
-*linux
*|powerpc64
-*linux
*)
5660 LD
="${LD-ld} -m elf32ppclinux"
5663 LD
="${LD-ld} -m elf_s390"
5666 LD
="${LD-ld} -m elf32_sparc"
5672 x86_64
-*kfreebsd
*-gnu)
5673 LD
="${LD-ld} -m elf_x86_64_fbsd"
5676 LD
="${LD-ld} -m elf_x86_64"
5678 ppc
*-*linux
*|powerpc
*-*linux
*)
5679 LD
="${LD-ld} -m elf64ppc"
5682 LD
="${LD-ld} -m elf64_s390"
5685 LD
="${LD-ld} -m elf64_sparc"
5695 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5696 SAVE_CFLAGS
="$CFLAGS"
5697 CFLAGS
="$CFLAGS -belf"
5698 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5699 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
5700 if test "${lt_cv_cc_needs_belf+set}" = set; then
5701 echo $ECHO_N "(cached) $ECHO_C" >&6
5704 ac_cpp
='$CPP $CPPFLAGS'
5705 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5706 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5707 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5709 cat >conftest.
$ac_ext <<_ACEOF
5712 cat confdefs.h
>>conftest.
$ac_ext
5713 cat >>conftest.
$ac_ext <<_ACEOF
5714 /* end confdefs.h. */
5724 rm -f conftest.
$ac_objext conftest
$ac_exeext
5725 if { (ac_try
="$ac_link"
5727 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
5728 *) ac_try_echo=$ac_try;;
5730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5731 (eval "$ac_link") 2>conftest.er1
5733 grep -v '^ *+' conftest.er1 >conftest.err
5735 cat conftest.err >&5
5736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5737 (exit $ac_status); } && {
5738 test -z "$ac_c_werror_flag" ||
5739 test ! -s conftest.err
5740 } && test -s conftest$ac_exeext &&
5741 $as_test_x conftest$ac_exeext; then
5742 lt_cv_cc_needs_belf=yes
5744 echo "$as_me: failed program was:" >&5
5745 sed 's/^/| /' conftest.$ac_ext >&5
5747 lt_cv_cc_needs_belf=no
5750 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5751 conftest$ac_exeext conftest.$ac_ext
5753 ac_cpp='$CPP $CPPFLAGS'
5754 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5755 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5756 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5759 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5760 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
5761 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5762 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5763 CFLAGS="$SAVE_CFLAGS"
5767 # Find out which ABI we are using.
5768 echo 'int i;' > conftest.$ac_ext
5769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5770 (eval $ac_compile) 2>&5
5772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5773 (exit $ac_status); }; then
5774 case `/usr
/bin
/file conftest.o
` in
5776 case $lt_cv_prog_gnu_ld in
5777 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5778 *) LD="${LD-ld} -64" ;;
5789 need_locks="$enable_libtool_lock"
5793 ac_cpp='$CPP $CPPFLAGS'
5794 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5795 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5796 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5797 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5798 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5799 # On Suns, sometimes $CPP names a directory.
5800 if test -n "$CPP" && test -d "$CPP"; then
5803 if test -z "$CPP"; then
5804 if test "${ac_cv_prog_CPP+set}" = set; then
5805 echo $ECHO_N "(cached) $ECHO_C" >&6
5807 # Double quotes because CPP needs to be expanded
5808 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5811 for ac_c_preproc_warn_flag in '' yes
5813 # Use a header file that comes with gcc, so configuring glibc
5814 # with a fresh cross-compiler works.
5815 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5816 # <limits.h> exists even on freestanding compilers.
5817 # On the NeXT, cc -E runs the code through the compiler's parser,
5818 # not just through cpp. "Syntax error" is here to catch this case.
5819 cat >conftest.$ac_ext <<_ACEOF
5822 cat confdefs.h >>conftest.$ac_ext
5823 cat >>conftest.$ac_ext <<_ACEOF
5824 /* end confdefs.h. */
5826 # include <limits.h>
5828 # include <assert.h>
5832 if { (ac_try="$ac_cpp conftest.$ac_ext"
5834 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
5835 *) ac_try_echo
=$ac_try;;
5837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5838 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5840 grep -v '^ *+' conftest.er1
>conftest.err
5842 cat conftest.err
>&5
5843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5844 (exit $ac_status); } >/dev
/null
&& {
5845 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5846 test ! -s conftest.err
5850 echo "$as_me: failed program was:" >&5
5851 sed 's/^/| /' conftest.
$ac_ext >&5
5853 # Broken: fails on valid input.
5857 rm -f conftest.err conftest.
$ac_ext
5859 # OK, works on sane cases. Now check whether nonexistent headers
5860 # can be detected and how.
5861 cat >conftest.
$ac_ext <<_ACEOF
5864 cat confdefs.h
>>conftest.
$ac_ext
5865 cat >>conftest.
$ac_ext <<_ACEOF
5866 /* end confdefs.h. */
5867 #include <ac_nonexistent.h>
5869 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5871 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
5872 *) ac_try_echo=$ac_try;;
5874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5875 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5877 grep -v '^ *+' conftest.er1 >conftest.err
5879 cat conftest.err >&5
5880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5881 (exit $ac_status); } >/dev/null && {
5882 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5883 test ! -s conftest.err
5885 # Broken: success on invalid input.
5888 echo "$as_me: failed program was:" >&5
5889 sed 's/^/| /' conftest.$ac_ext >&5
5891 # Passes both tests.
5896 rm -f conftest.err conftest.$ac_ext
5899 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5900 rm -f conftest.err conftest.
$ac_ext
5901 if $ac_preproc_ok; then
5913 { echo "$as_me:$LINENO: result: $CPP" >&5
5914 echo "${ECHO_T}$CPP" >&6; }
5916 for ac_c_preproc_warn_flag
in '' yes
5918 # Use a header file that comes with gcc, so configuring glibc
5919 # with a fresh cross-compiler works.
5920 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5921 # <limits.h> exists even on freestanding compilers.
5922 # On the NeXT, cc -E runs the code through the compiler's parser,
5923 # not just through cpp. "Syntax error" is here to catch this case.
5924 cat >conftest.
$ac_ext <<_ACEOF
5927 cat confdefs.h
>>conftest.
$ac_ext
5928 cat >>conftest.
$ac_ext <<_ACEOF
5929 /* end confdefs.h. */
5931 # include <limits.h>
5933 # include <assert.h>
5937 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5939 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
5940 *) ac_try_echo=$ac_try;;
5942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5943 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5945 grep -v '^ *+' conftest.er1 >conftest.err
5947 cat conftest.err >&5
5948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5949 (exit $ac_status); } >/dev/null && {
5950 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5951 test ! -s conftest.err
5955 echo "$as_me: failed program was:" >&5
5956 sed 's/^/| /' conftest.$ac_ext >&5
5958 # Broken: fails on valid input.
5962 rm -f conftest.err conftest.$ac_ext
5964 # OK, works on sane cases. Now check whether nonexistent headers
5965 # can be detected and how.
5966 cat >conftest.$ac_ext <<_ACEOF
5969 cat confdefs.h >>conftest.$ac_ext
5970 cat >>conftest.$ac_ext <<_ACEOF
5971 /* end confdefs.h. */
5972 #include <ac_nonexistent.h>
5974 if { (ac_try="$ac_cpp conftest.$ac_ext"
5976 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
5977 *) ac_try_echo
=$ac_try;;
5979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5980 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5982 grep -v '^ *+' conftest.er1
>conftest.err
5984 cat conftest.err
>&5
5985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5986 (exit $ac_status); } >/dev
/null
&& {
5987 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5988 test ! -s conftest.err
5990 # Broken: success on invalid input.
5993 echo "$as_me: failed program was:" >&5
5994 sed 's/^/| /' conftest.
$ac_ext >&5
5996 # Passes both tests.
6001 rm -f conftest.err conftest.
$ac_ext
6004 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6005 rm -f conftest.err conftest.
$ac_ext
6006 if $ac_preproc_ok; then
6009 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6010 See \`config.log' for more details." >&5
6011 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6012 See \`config.log' for more details." >&2;}
6013 { (exit 1); exit 1; }; }
6017 ac_cpp
='$CPP $CPPFLAGS'
6018 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6019 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6020 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6023 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6024 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6025 if test "${ac_cv_header_stdc+set}" = set; then
6026 echo $ECHO_N "(cached) $ECHO_C" >&6
6028 cat >conftest.
$ac_ext <<_ACEOF
6031 cat confdefs.h
>>conftest.
$ac_ext
6032 cat >>conftest.
$ac_ext <<_ACEOF
6033 /* end confdefs.h. */
6047 rm -f conftest.
$ac_objext
6048 if { (ac_try
="$ac_compile"
6050 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
6051 *) ac_try_echo=$ac_try;;
6053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6054 (eval "$ac_compile") 2>conftest.er1
6056 grep -v '^ *+' conftest.er1 >conftest.err
6058 cat conftest.err >&5
6059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6060 (exit $ac_status); } && {
6061 test -z "$ac_c_werror_flag" ||
6062 test ! -s conftest.err
6063 } && test -s conftest.$ac_objext; then
6064 ac_cv_header_stdc=yes
6066 echo "$as_me: failed program was:" >&5
6067 sed 's/^/| /' conftest.$ac_ext >&5
6069 ac_cv_header_stdc=no
6072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6074 if test $ac_cv_header_stdc = yes; then
6075 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6076 cat >conftest.$ac_ext <<_ACEOF
6079 cat confdefs.h >>conftest.$ac_ext
6080 cat >>conftest.$ac_ext <<_ACEOF
6081 /* end confdefs.h. */
6085 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6086 $EGREP "memchr" >/dev/null 2>&1; then
6089 ac_cv_header_stdc=no
6095 if test $ac_cv_header_stdc = yes; then
6096 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6097 cat >conftest.$ac_ext <<_ACEOF
6100 cat confdefs.h >>conftest.$ac_ext
6101 cat >>conftest.$ac_ext <<_ACEOF
6102 /* end confdefs.h. */
6106 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6107 $EGREP "free" >/dev/null 2>&1; then
6110 ac_cv_header_stdc=no
6116 if test $ac_cv_header_stdc = yes; then
6117 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6118 if test "$cross_compiling" = yes; then
6121 cat >conftest.$ac_ext <<_ACEOF
6124 cat confdefs.h >>conftest.$ac_ext
6125 cat >>conftest.$ac_ext <<_ACEOF
6126 /* end confdefs.h. */
6129 #if ((' ' & 0x0FF) == 0x020)
6130 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6131 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6133 # define ISLOWER(c) \
6134 (('a' <= (c) && (c) <= 'i') \
6135 || ('j' <= (c) && (c) <= 'r') \
6136 || ('s' <= (c) && (c) <= 'z'))
6137 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6140 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6145 for (i = 0; i < 256; i++)
6146 if (XOR (islower (i), ISLOWER (i))
6147 || toupper (i) != TOUPPER (i))
6152 rm -f conftest$ac_exeext
6153 if { (ac_try="$ac_link"
6155 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
6156 *) ac_try_echo
=$ac_try;;
6158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6159 (eval "$ac_link") 2>&5
6161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6162 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6163 { (case "(($ac_try" in
6164 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
6165 *) ac_try_echo=$ac_try;;
6167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6168 (eval "$ac_try") 2>&5
6170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6171 (exit $ac_status); }; }; then
6174 echo "$as_me: program exited with status $ac_status" >&5
6175 echo "$as_me: failed program was:" >&5
6176 sed 's/^/| /' conftest.$ac_ext >&5
6179 ac_cv_header_stdc=no
6181 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6187 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6188 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6189 if test $ac_cv_header_stdc = yes; then
6191 cat >>confdefs.h <<\_ACEOF
6192 #define STDC_HEADERS 1
6197 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6207 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6208 inttypes.h stdint.h unistd.h
6210 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6211 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6212 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6213 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6214 echo $ECHO_N "(cached) $ECHO_C" >&6
6216 cat >conftest.$ac_ext <<_ACEOF
6219 cat confdefs.h >>conftest.$ac_ext
6220 cat >>conftest.$ac_ext <<_ACEOF
6221 /* end confdefs.h. */
6222 $ac_includes_default
6224 #include <$ac_header>
6226 rm -f conftest.$ac_objext
6227 if { (ac_try="$ac_compile"
6229 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
6230 *) ac_try_echo
=$ac_try;;
6232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6233 (eval "$ac_compile") 2>conftest.er1
6235 grep -v '^ *+' conftest.er1
>conftest.err
6237 cat conftest.err
>&5
6238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6239 (exit $ac_status); } && {
6240 test -z "$ac_c_werror_flag" ||
6241 test ! -s conftest.err
6242 } && test -s conftest.
$ac_objext; then
6243 eval "$as_ac_Header=yes"
6245 echo "$as_me: failed program was:" >&5
6246 sed 's/^/| /' conftest.
$ac_ext >&5
6248 eval "$as_ac_Header=no"
6251 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6253 ac_res
=`eval echo '${'$as_ac_Header'}'`
6254 { echo "$as_me:$LINENO: result: $ac_res" >&5
6255 echo "${ECHO_T}$ac_res" >&6; }
6256 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6257 cat >>confdefs.h
<<_ACEOF
6258 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6267 for ac_header
in dlfcn.h
6269 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6270 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6271 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6272 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6273 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6274 echo $ECHO_N "(cached) $ECHO_C" >&6
6276 ac_res
=`eval echo '${'$as_ac_Header'}'`
6277 { echo "$as_me:$LINENO: result: $ac_res" >&5
6278 echo "${ECHO_T}$ac_res" >&6; }
6280 # Is the header compilable?
6281 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6282 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6283 cat >conftest.
$ac_ext <<_ACEOF
6286 cat confdefs.h
>>conftest.
$ac_ext
6287 cat >>conftest.
$ac_ext <<_ACEOF
6288 /* end confdefs.h. */
6289 $ac_includes_default
6290 #include <$ac_header>
6292 rm -f conftest.
$ac_objext
6293 if { (ac_try
="$ac_compile"
6295 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
6296 *) ac_try_echo=$ac_try;;
6298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6299 (eval "$ac_compile") 2>conftest.er1
6301 grep -v '^ *+' conftest.er1 >conftest.err
6303 cat conftest.err >&5
6304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6305 (exit $ac_status); } && {
6306 test -z "$ac_c_werror_flag" ||
6307 test ! -s conftest.err
6308 } && test -s conftest.$ac_objext; then
6309 ac_header_compiler=yes
6311 echo "$as_me: failed program was:" >&5
6312 sed 's/^/| /' conftest.$ac_ext >&5
6314 ac_header_compiler=no
6317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6318 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6319 echo "${ECHO_T}$ac_header_compiler" >&6; }
6321 # Is the header present?
6322 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6323 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6324 cat >conftest.$ac_ext <<_ACEOF
6327 cat confdefs.h >>conftest.$ac_ext
6328 cat >>conftest.$ac_ext <<_ACEOF
6329 /* end confdefs.h. */
6330 #include <$ac_header>
6332 if { (ac_try="$ac_cpp conftest.$ac_ext"
6334 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
6335 *) ac_try_echo
=$ac_try;;
6337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6338 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6340 grep -v '^ *+' conftest.er1
>conftest.err
6342 cat conftest.err
>&5
6343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6344 (exit $ac_status); } >/dev
/null
&& {
6345 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6346 test ! -s conftest.err
6348 ac_header_preproc
=yes
6350 echo "$as_me: failed program was:" >&5
6351 sed 's/^/| /' conftest.
$ac_ext >&5
6353 ac_header_preproc
=no
6356 rm -f conftest.err conftest.
$ac_ext
6357 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6358 echo "${ECHO_T}$ac_header_preproc" >&6; }
6360 # So? What about this header?
6361 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6363 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6364 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6365 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6366 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6367 ac_header_preproc
=yes
6370 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6371 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6372 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6373 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6374 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6375 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6376 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6377 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6378 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6379 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6380 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6381 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6385 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6386 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6387 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6388 echo $ECHO_N "(cached) $ECHO_C" >&6
6390 eval "$as_ac_Header=\$ac_header_preproc"
6392 ac_res
=`eval echo '${'$as_ac_Header'}'`
6393 { echo "$as_me:$LINENO: result: $ac_res" >&5
6394 echo "${ECHO_T}$ac_res" >&6; }
6397 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6398 cat >>confdefs.h
<<_ACEOF
6399 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6407 ac_cpp
='$CXXCPP $CPPFLAGS'
6408 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6409 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6410 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6411 if test -z "$CXX"; then
6412 if test -n "$CCC"; then
6415 if test -n "$ac_tool_prefix"; then
6416 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
6418 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6419 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
6420 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6421 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6422 if test "${ac_cv_prog_CXX+set}" = set; then
6423 echo $ECHO_N "(cached) $ECHO_C" >&6
6425 if test -n "$CXX"; then
6426 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
6428 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6432 test -z "$as_dir" && as_dir
=.
6433 for ac_exec_ext
in '' $ac_executable_extensions; do
6434 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6435 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
6436 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6446 if test -n "$CXX"; then
6447 { echo "$as_me:$LINENO: result: $CXX" >&5
6448 echo "${ECHO_T}$CXX" >&6; }
6450 { echo "$as_me:$LINENO: result: no" >&5
6451 echo "${ECHO_T}no" >&6; }
6455 test -n "$CXX" && break
6458 if test -z "$CXX"; then
6460 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
6462 # Extract the first word of "$ac_prog", so it can be a program name with args.
6463 set dummy
$ac_prog; ac_word
=$2
6464 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6465 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6466 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6467 echo $ECHO_N "(cached) $ECHO_C" >&6
6469 if test -n "$ac_ct_CXX"; then
6470 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
6472 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6476 test -z "$as_dir" && as_dir
=.
6477 for ac_exec_ext
in '' $ac_executable_extensions; do
6478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6479 ac_cv_prog_ac_ct_CXX
="$ac_prog"
6480 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6489 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
6490 if test -n "$ac_ct_CXX"; then
6491 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6492 echo "${ECHO_T}$ac_ct_CXX" >&6; }
6494 { echo "$as_me:$LINENO: result: no" >&5
6495 echo "${ECHO_T}no" >&6; }
6499 test -n "$ac_ct_CXX" && break
6502 if test "x$ac_ct_CXX" = x
; then
6505 case $cross_compiling:$ac_tool_warned in
6507 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6508 whose name does not start with the host triplet. If you think this
6509 configuration is useful to you, please write to autoconf@gnu.org." >&5
6510 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6511 whose name does not start with the host triplet. If you think this
6512 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6513 ac_tool_warned
=yes ;;
6521 # Provide some information about the compiler.
6522 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6523 ac_compiler
=`set X $ac_compile; echo $2`
6524 { (ac_try
="$ac_compiler --version >&5"
6526 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
6527 *) ac_try_echo=$ac_try;;
6529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6530 (eval "$ac_compiler --version >&5") 2>&5
6532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6533 (exit $ac_status); }
6534 { (ac_try="$ac_compiler -v >&5"
6536 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
6537 *) ac_try_echo
=$ac_try;;
6539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6540 (eval "$ac_compiler -v >&5") 2>&5
6542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6543 (exit $ac_status); }
6544 { (ac_try
="$ac_compiler -V >&5"
6546 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
6547 *) ac_try_echo=$ac_try;;
6549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6550 (eval "$ac_compiler -V >&5") 2>&5
6552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6553 (exit $ac_status); }
6555 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6556 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6557 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6558 echo $ECHO_N "(cached) $ECHO_C" >&6
6560 cat >conftest.$ac_ext <<_ACEOF
6563 cat confdefs.h >>conftest.$ac_ext
6564 cat >>conftest.$ac_ext <<_ACEOF
6565 /* end confdefs.h. */
6578 rm -f conftest.$ac_objext
6579 if { (ac_try="$ac_compile"
6581 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
6582 *) ac_try_echo
=$ac_try;;
6584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6585 (eval "$ac_compile") 2>conftest.er1
6587 grep -v '^ *+' conftest.er1
>conftest.err
6589 cat conftest.err
>&5
6590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6591 (exit $ac_status); } && {
6592 test -z "$ac_cxx_werror_flag" ||
6593 test ! -s conftest.err
6594 } && test -s conftest.
$ac_objext; then
6597 echo "$as_me: failed program was:" >&5
6598 sed 's/^/| /' conftest.
$ac_ext >&5
6603 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6604 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
6607 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6608 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6609 GXX
=`test $ac_compiler_gnu = yes && echo yes`
6610 ac_test_CXXFLAGS
=${CXXFLAGS+set}
6611 ac_save_CXXFLAGS
=$CXXFLAGS
6612 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6613 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6614 if test "${ac_cv_prog_cxx_g+set}" = set; then
6615 echo $ECHO_N "(cached) $ECHO_C" >&6
6617 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
6618 ac_cxx_werror_flag
=yes
6621 cat >conftest.
$ac_ext <<_ACEOF
6624 cat confdefs.h
>>conftest.
$ac_ext
6625 cat >>conftest.
$ac_ext <<_ACEOF
6626 /* end confdefs.h. */
6636 rm -f conftest.
$ac_objext
6637 if { (ac_try
="$ac_compile"
6639 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
6640 *) ac_try_echo=$ac_try;;
6642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6643 (eval "$ac_compile") 2>conftest.er1
6645 grep -v '^ *+' conftest.er1 >conftest.err
6647 cat conftest.err >&5
6648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6649 (exit $ac_status); } && {
6650 test -z "$ac_cxx_werror_flag" ||
6651 test ! -s conftest.err
6652 } && test -s conftest.$ac_objext; then
6653 ac_cv_prog_cxx_g=yes
6655 echo "$as_me: failed program was:" >&5
6656 sed 's/^/| /' conftest.$ac_ext >&5
6659 cat >conftest.$ac_ext <<_ACEOF
6662 cat confdefs.h >>conftest.$ac_ext
6663 cat >>conftest.$ac_ext <<_ACEOF
6664 /* end confdefs.h. */
6674 rm -f conftest.$ac_objext
6675 if { (ac_try="$ac_compile"
6677 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
6678 *) ac_try_echo
=$ac_try;;
6680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6681 (eval "$ac_compile") 2>conftest.er1
6683 grep -v '^ *+' conftest.er1
>conftest.err
6685 cat conftest.err
>&5
6686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6687 (exit $ac_status); } && {
6688 test -z "$ac_cxx_werror_flag" ||
6689 test ! -s conftest.err
6690 } && test -s conftest.
$ac_objext; then
6693 echo "$as_me: failed program was:" >&5
6694 sed 's/^/| /' conftest.
$ac_ext >&5
6696 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
6698 cat >conftest.
$ac_ext <<_ACEOF
6701 cat confdefs.h
>>conftest.
$ac_ext
6702 cat >>conftest.
$ac_ext <<_ACEOF
6703 /* end confdefs.h. */
6713 rm -f conftest.
$ac_objext
6714 if { (ac_try
="$ac_compile"
6716 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
6717 *) ac_try_echo=$ac_try;;
6719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6720 (eval "$ac_compile") 2>conftest.er1
6722 grep -v '^ *+' conftest.er1 >conftest.err
6724 cat conftest.err >&5
6725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6726 (exit $ac_status); } && {
6727 test -z "$ac_cxx_werror_flag" ||
6728 test ! -s conftest.err
6729 } && test -s conftest.$ac_objext; then
6730 ac_cv_prog_cxx_g=yes
6732 echo "$as_me: failed program was:" >&5
6733 sed 's/^/| /' conftest.$ac_ext >&5
6738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6745 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6747 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6748 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6749 if test "$ac_test_CXXFLAGS" = set; then
6750 CXXFLAGS=$ac_save_CXXFLAGS
6751 elif test $ac_cv_prog_cxx_g = yes; then
6752 if test "$GXX" = yes; then
6758 if test "$GXX" = yes; then
6765 ac_cpp='$CXXCPP $CPPFLAGS'
6766 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6767 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6768 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6770 depcc="$CXX" am_compiler_list=
6772 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6773 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
6774 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6775 echo $ECHO_N "(cached) $ECHO_C" >&6
6777 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6778 # We make a subdir and do the tests there. Otherwise we can end up
6779 # making bogus files that we don't know about and never remove. For
6780 # instance it was reported that on HP-UX the gcc test will end up
6781 # making a dummy file named `D
' -- because `-MD' means
`put the output
6784 # Copy depcomp to subdir because otherwise we won't find it if we're
6785 # using a relative directory.
6786 cp "$am_depcomp" conftest.dir
6788 # We will build objects and dependencies in a subdirectory because
6789 # it helps to detect inapplicable dependency modes. For instance
6790 # both Tru64's cc and ICC support -MD to output dependencies as a
6791 # side effect of compilation, but ICC will put the dependencies in
6792 # the current directory while Tru64 will put them in the object
6796 am_cv_CXX_dependencies_compiler_type=none
6797 if test "$am_compiler_list" = ""; then
6798 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < .
/depcomp
`
6800 for depmode in $am_compiler_list; do
6801 # Setup a source with many dependencies, because some compilers
6802 # like to wrap large dependency lists on column 80 (with \), and
6803 # we should not choose a depcomp mode which is confused by this.
6805 # We need to recreate these files for each test, as the compiler may
6806 # overwrite some of them when testing with obscure command lines.
6807 # This happens at least with the AIX C compiler.
6809 for i in 1 2 3 4 5 6; do
6810 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6811 # Using `: > sub
/conftst
$i.h
' creates only sub/conftst1.h with
6812 # Solaris 8's
{/usr
,}/bin
/sh.
6813 touch sub
/conftst
$i.h
6815 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6819 # after this tag, mechanisms are not by side-effect, so they'll
6820 # only be used when explicitly requested
6821 if test "x$enable_dependency_tracking" = xyes
; then
6829 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6830 # mode. It turns out that the SunPro C++ compiler does not properly
6831 # handle `-M -o', and we need to detect this.
6832 if depmode
=$depmode \
6833 source=sub
/conftest.c object
=sub
/conftest.
${OBJEXT-o} \
6834 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
6835 $SHELL .
/depcomp
$depcc -c -o sub
/conftest.
${OBJEXT-o} sub
/conftest.c \
6836 >/dev
/null
2>conftest.err
&&
6837 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
6838 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
6839 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
> /dev
/null
2>&1 &&
6840 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
6841 # icc doesn't choke on unknown options, it will just issue warnings
6842 # or remarks (even with -Werror). So we grep stderr for any message
6843 # that says an option was ignored or not supported.
6844 # When given -MP, icc 7.0 and 7.1 complain thusly:
6845 # icc: Command line warning: ignoring option '-M'; no argument required
6846 # The diagnosis changed in icc 8.0:
6847 # icc: Command line remark: option '-MP' not supported
6848 if (grep 'ignoring option' conftest.err
||
6849 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
6850 am_cv_CXX_dependencies_compiler_type
=$depmode
6859 am_cv_CXX_dependencies_compiler_type
=none
6863 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6864 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
6865 CXXDEPMODE
=depmode
=$am_cv_CXX_dependencies_compiler_type
6868 test "x$enable_dependency_tracking" != xno \
6869 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3
; then
6870 am__fastdepCXX_TRUE
=
6871 am__fastdepCXX_FALSE
='#'
6873 am__fastdepCXX_TRUE
='#'
6874 am__fastdepCXX_FALSE
=
6880 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6881 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6882 (test "X$CXX" != "Xg++"))) ; then
6884 ac_cpp
='$CXXCPP $CPPFLAGS'
6885 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6886 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6887 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6888 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6889 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
6890 if test -z "$CXXCPP"; then
6891 if test "${ac_cv_prog_CXXCPP+set}" = set; then
6892 echo $ECHO_N "(cached) $ECHO_C" >&6
6894 # Double quotes because CXXCPP needs to be expanded
6895 for CXXCPP
in "$CXX -E" "/lib/cpp"
6898 for ac_cxx_preproc_warn_flag
in '' yes
6900 # Use a header file that comes with gcc, so configuring glibc
6901 # with a fresh cross-compiler works.
6902 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6903 # <limits.h> exists even on freestanding compilers.
6904 # On the NeXT, cc -E runs the code through the compiler's parser,
6905 # not just through cpp. "Syntax error" is here to catch this case.
6906 cat >conftest.
$ac_ext <<_ACEOF
6909 cat confdefs.h
>>conftest.
$ac_ext
6910 cat >>conftest.
$ac_ext <<_ACEOF
6911 /* end confdefs.h. */
6913 # include <limits.h>
6915 # include <assert.h>
6919 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6921 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
6922 *) ac_try_echo=$ac_try;;
6924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6925 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6927 grep -v '^ *+' conftest.er1 >conftest.err
6929 cat conftest.err >&5
6930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6931 (exit $ac_status); } >/dev/null && {
6932 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6933 test ! -s conftest.err
6937 echo "$as_me: failed program was:" >&5
6938 sed 's/^/| /' conftest.$ac_ext >&5
6940 # Broken: fails on valid input.
6944 rm -f conftest.err conftest.$ac_ext
6946 # OK, works on sane cases. Now check whether nonexistent headers
6947 # can be detected and how.
6948 cat >conftest.$ac_ext <<_ACEOF
6951 cat confdefs.h >>conftest.$ac_ext
6952 cat >>conftest.$ac_ext <<_ACEOF
6953 /* end confdefs.h. */
6954 #include <ac_nonexistent.h>
6956 if { (ac_try="$ac_cpp conftest.$ac_ext"
6958 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
6959 *) ac_try_echo
=$ac_try;;
6961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6962 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6964 grep -v '^ *+' conftest.er1
>conftest.err
6966 cat conftest.err
>&5
6967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6968 (exit $ac_status); } >/dev
/null
&& {
6969 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6970 test ! -s conftest.err
6972 # Broken: success on invalid input.
6975 echo "$as_me: failed program was:" >&5
6976 sed 's/^/| /' conftest.
$ac_ext >&5
6978 # Passes both tests.
6983 rm -f conftest.err conftest.
$ac_ext
6986 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6987 rm -f conftest.err conftest.
$ac_ext
6988 if $ac_preproc_ok; then
6993 ac_cv_prog_CXXCPP
=$CXXCPP
6996 CXXCPP
=$ac_cv_prog_CXXCPP
6998 ac_cv_prog_CXXCPP
=$CXXCPP
7000 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
7001 echo "${ECHO_T}$CXXCPP" >&6; }
7003 for ac_cxx_preproc_warn_flag
in '' yes
7005 # Use a header file that comes with gcc, so configuring glibc
7006 # with a fresh cross-compiler works.
7007 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7008 # <limits.h> exists even on freestanding compilers.
7009 # On the NeXT, cc -E runs the code through the compiler's parser,
7010 # not just through cpp. "Syntax error" is here to catch this case.
7011 cat >conftest.
$ac_ext <<_ACEOF
7014 cat confdefs.h
>>conftest.
$ac_ext
7015 cat >>conftest.
$ac_ext <<_ACEOF
7016 /* end confdefs.h. */
7018 # include <limits.h>
7020 # include <assert.h>
7024 if { (ac_try
="$ac_cpp conftest.$ac_ext"
7026 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
7027 *) ac_try_echo=$ac_try;;
7029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7030 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7032 grep -v '^ *+' conftest.er1 >conftest.err
7034 cat conftest.err >&5
7035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7036 (exit $ac_status); } >/dev/null && {
7037 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7038 test ! -s conftest.err
7042 echo "$as_me: failed program was:" >&5
7043 sed 's/^/| /' conftest.$ac_ext >&5
7045 # Broken: fails on valid input.
7049 rm -f conftest.err conftest.$ac_ext
7051 # OK, works on sane cases. Now check whether nonexistent headers
7052 # can be detected and how.
7053 cat >conftest.$ac_ext <<_ACEOF
7056 cat confdefs.h >>conftest.$ac_ext
7057 cat >>conftest.$ac_ext <<_ACEOF
7058 /* end confdefs.h. */
7059 #include <ac_nonexistent.h>
7061 if { (ac_try="$ac_cpp conftest.$ac_ext"
7063 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
7064 *) ac_try_echo
=$ac_try;;
7066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7067 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7069 grep -v '^ *+' conftest.er1
>conftest.err
7071 cat conftest.err
>&5
7072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7073 (exit $ac_status); } >/dev
/null
&& {
7074 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7075 test ! -s conftest.err
7077 # Broken: success on invalid input.
7080 echo "$as_me: failed program was:" >&5
7081 sed 's/^/| /' conftest.
$ac_ext >&5
7083 # Passes both tests.
7088 rm -f conftest.err conftest.
$ac_ext
7091 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7092 rm -f conftest.err conftest.
$ac_ext
7093 if $ac_preproc_ok; then
7096 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7097 See \`config.log' for more details." >&5
7098 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7099 See \`config.log' for more details." >&2;}
7100 { (exit 1); exit 1; }; }
7104 ac_cpp
='$CXXCPP $CPPFLAGS'
7105 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7106 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7107 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7113 ac_compile
='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7114 ac_link
='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7115 ac_compiler_gnu
=$ac_cv_f77_compiler_gnu
7116 if test -n "$ac_tool_prefix"; then
7117 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
7119 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7120 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
7121 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7122 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7123 if test "${ac_cv_prog_F77+set}" = set; then
7124 echo $ECHO_N "(cached) $ECHO_C" >&6
7126 if test -n "$F77"; then
7127 ac_cv_prog_F77
="$F77" # Let the user override the test.
7129 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7133 test -z "$as_dir" && as_dir
=.
7134 for ac_exec_ext
in '' $ac_executable_extensions; do
7135 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7136 ac_cv_prog_F77
="$ac_tool_prefix$ac_prog"
7137 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7147 if test -n "$F77"; then
7148 { echo "$as_me:$LINENO: result: $F77" >&5
7149 echo "${ECHO_T}$F77" >&6; }
7151 { echo "$as_me:$LINENO: result: no" >&5
7152 echo "${ECHO_T}no" >&6; }
7156 test -n "$F77" && break
7159 if test -z "$F77"; then
7161 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
7163 # Extract the first word of "$ac_prog", so it can be a program name with args.
7164 set dummy
$ac_prog; ac_word
=$2
7165 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7166 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7167 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7168 echo $ECHO_N "(cached) $ECHO_C" >&6
7170 if test -n "$ac_ct_F77"; then
7171 ac_cv_prog_ac_ct_F77
="$ac_ct_F77" # Let the user override the test.
7173 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7177 test -z "$as_dir" && as_dir
=.
7178 for ac_exec_ext
in '' $ac_executable_extensions; do
7179 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7180 ac_cv_prog_ac_ct_F77
="$ac_prog"
7181 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7190 ac_ct_F77
=$ac_cv_prog_ac_ct_F77
7191 if test -n "$ac_ct_F77"; then
7192 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7193 echo "${ECHO_T}$ac_ct_F77" >&6; }
7195 { echo "$as_me:$LINENO: result: no" >&5
7196 echo "${ECHO_T}no" >&6; }
7200 test -n "$ac_ct_F77" && break
7203 if test "x$ac_ct_F77" = x
; then
7206 case $cross_compiling:$ac_tool_warned in
7208 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7209 whose name does not start with the host triplet. If you think this
7210 configuration is useful to you, please write to autoconf@gnu.org." >&5
7211 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7212 whose name does not start with the host triplet. If you think this
7213 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7214 ac_tool_warned
=yes ;;
7221 # Provide some information about the compiler.
7222 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
7223 ac_compiler
=`set X $ac_compile; echo $2`
7224 { (ac_try
="$ac_compiler --version >&5"
7226 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
7227 *) ac_try_echo=$ac_try;;
7229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7230 (eval "$ac_compiler --version >&5") 2>&5
7232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7233 (exit $ac_status); }
7234 { (ac_try="$ac_compiler -v >&5"
7236 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
7237 *) ac_try_echo
=$ac_try;;
7239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7240 (eval "$ac_compiler -v >&5") 2>&5
7242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7243 (exit $ac_status); }
7244 { (ac_try
="$ac_compiler -V >&5"
7246 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
7247 *) ac_try_echo=$ac_try;;
7249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7250 (eval "$ac_compiler -V >&5") 2>&5
7252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7253 (exit $ac_status); }
7256 # If we don't use `.F
' as extension, the preprocessor is not run on the
7257 # input file. (Note that this only needs to work for GNU compilers.)
7260 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7261 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
7262 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7263 echo $ECHO_N "(cached) $ECHO_C" >&6
7265 cat >conftest.$ac_ext <<_ACEOF
7273 rm -f conftest.$ac_objext
7274 if { (ac_try="$ac_compile"
7276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7277 *) ac_try_echo=$ac_try;;
7279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7280 (eval "$ac_compile") 2>conftest.er1
7282 grep -v '^
*+' conftest.er1 >conftest.err
7284 cat conftest.err >&5
7285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7286 (exit $ac_status); } && {
7287 test -z "$ac_f77_werror_flag" ||
7288 test ! -s conftest.err
7289 } && test -s conftest.$ac_objext; then
7292 echo "$as_me: failed program was:" >&5
7293 sed 's
/^
/| /' conftest.$ac_ext >&5
7298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7299 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7302 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7303 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
7305 ac_test_FFLAGS=${FFLAGS+set}
7306 ac_save_FFLAGS=$FFLAGS
7308 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7309 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
7310 if test "${ac_cv_prog_f77_g+set}" = set; then
7311 echo $ECHO_N "(cached) $ECHO_C" >&6
7314 cat >conftest.$ac_ext <<_ACEOF
7319 rm -f conftest.$ac_objext
7320 if { (ac_try="$ac_compile"
7322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7323 *) ac_try_echo=$ac_try;;
7325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7326 (eval "$ac_compile") 2>conftest.er1
7328 grep -v '^
*+' conftest.er1 >conftest.err
7330 cat conftest.err >&5
7331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7332 (exit $ac_status); } && {
7333 test -z "$ac_f77_werror_flag" ||
7334 test ! -s conftest.err
7335 } && test -s conftest.$ac_objext; then
7336 ac_cv_prog_f77_g=yes
7338 echo "$as_me: failed program was:" >&5
7339 sed 's
/^
/| /' conftest.$ac_ext >&5
7344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7347 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7348 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
7349 if test "$ac_test_FFLAGS" = set; then
7350 FFLAGS=$ac_save_FFLAGS
7351 elif test $ac_cv_prog_f77_g = yes; then
7352 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7358 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7365 G77=`test $ac_compiler_gnu = yes && echo yes`
7367 ac_cpp='$CPP $CPPFLAGS'
7368 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
7369 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
7370 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7374 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works
for C compilers
!
7376 # find the maximum length of command line arguments
7377 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7378 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
7379 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7380 echo $ECHO_N "(cached) $ECHO_C" >&6
7387 # On DJGPP, this test can blow up pretty badly due to problems in libc
7388 # (any single argument exceeding 2000 bytes causes a buffer overrun
7389 # during glob expansion). Even if it were fixed, the result of this
7390 # check would be larger than it should be.
7391 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
7395 # Under GNU Hurd, this test is not required because there is
7396 # no limit to the length of command line arguments.
7397 # Libtool will interpret -1 as no limit whatsoever
7398 lt_cv_sys_max_cmd_len
=-1;
7402 # On Win9x/ME, this test blows up -- it succeeds, but takes
7403 # about 5 minutes as the teststring grows exponentially.
7404 # Worse, since 9x/ME are not pre-emptively multitasking,
7405 # you end up with a "frozen" computer, even though with patience
7406 # the test eventually succeeds (with a max line length of 256k).
7407 # Instead, let's just punt: use the minimum linelength reported by
7408 # all of the supported platforms: 8192 (on NT/2K/XP).
7409 lt_cv_sys_max_cmd_len
=8192;
7413 # On AmigaOS with pdksh, this test takes hours, literally.
7414 # So we just punt and use a minimum line length of 8192.
7415 lt_cv_sys_max_cmd_len
=8192;
7418 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
7419 # This has been around since 386BSD, at least. Likely further.
7420 if test -x /sbin
/sysctl
; then
7421 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
7422 elif test -x /usr
/sbin
/sysctl
; then
7423 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
7425 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
7427 # And add a safety zone
7428 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
7429 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
7433 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7434 lt_cv_sys_max_cmd_len
=196608
7438 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7439 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7440 # nice to cause kernel panics so lets avoid the loop below.
7441 # First set a reasonable default.
7442 lt_cv_sys_max_cmd_len
=16384
7444 if test -x /sbin
/sysconfig
; then
7445 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7446 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
7451 lt_cv_sys_max_cmd_len
=102400
7453 sysv5
* | sco5v6
* | sysv4.2uw2
*)
7454 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7455 if test -n "$kargmax"; then
7456 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
7458 lt_cv_sys_max_cmd_len
=32768
7462 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
7463 if test -n "$lt_cv_sys_max_cmd_len"; then
7464 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
7465 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
7467 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
7468 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7469 = "XX$teststring") >/dev
/null
2>&1 &&
7470 new_result
=`expr "X$teststring" : ".*" 2>&1` &&
7471 lt_cv_sys_max_cmd_len
=$new_result &&
7472 test $i != 17 # 1/2 MB should be enough
7475 teststring
=$teststring$teststring
7478 # Add a significant safety factor because C++ compilers can tack on massive
7479 # amounts of additional arguments before passing them to the linker.
7480 # It appears as though 1/2 is a usable value.
7481 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
7488 if test -n $lt_cv_sys_max_cmd_len ; then
7489 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7490 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
7492 { echo "$as_me:$LINENO: result: none" >&5
7493 echo "${ECHO_T}none" >&6; }
7500 # Check for command to grab the raw symbol name followed by C symbol from nm.
7501 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7502 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
7503 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7504 echo $ECHO_N "(cached) $ECHO_C" >&6
7507 # These are sane defaults that work on at least a few old systems.
7508 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7510 # Character class describing NM global symbol codes.
7511 symcode
='[BCDEGRST]'
7513 # Regexp to match symbols that can be accessed directly from C.
7514 sympat
='\([_A-Za-z][_A-Za-z0-9]*\)'
7516 # Transform an extracted symbol line into a proper C declaration
7517 lt_cv_sys_global_symbol_to_cdecl
="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7519 # Transform an extracted symbol line into symbol name and symbol address
7520 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'"
7522 # Define system-specific variables.
7527 cygwin
* | mingw
* | pw32
*)
7528 symcode
='[ABCDGISTW]'
7530 hpux
*) # Its linker distinguishes data from code symbols
7531 if test "$host_cpu" = ia64
; then
7532 symcode
='[ABCDEGRST]'
7534 lt_cv_sys_global_symbol_to_cdecl
="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7535 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'"
7537 linux
* | k
*bsd
*-gnu)
7538 if test "$host_cpu" = ia64
; then
7539 symcode
='[ABCDGIRSTW]'
7540 lt_cv_sys_global_symbol_to_cdecl
="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7541 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'"
7545 symcode
='[BCDEGRST]'
7548 symcode
='[BCDEGQRST]'
7559 sysv5
* | sco5v6
* | unixware
* | OpenUNIX
*)
7567 # Handle CRLF in mingw tool chain
7571 opt_cr
=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7575 # If we're using GNU nm, then use its standard symbol codes.
7576 case `$NM -V 2>&1` in
7577 *GNU
* | *'with BFD'*)
7578 symcode
='[ABCDGIRSTW]' ;;
7581 # Try without a prefix undercore, then with it.
7582 for ac_symprfx
in "" "_"; do
7584 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7585 symxfrm
="\\1 $ac_symprfx\\2 \\2"
7587 # Write the raw and C identifiers.
7588 lt_cv_sys_global_symbol_pipe
="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7590 # Check to see that the pipe works correctly.
7594 cat > conftest.
$ac_ext <<EOF
7599 void nm_test_func(){}
7603 int main(){nm_test_var='a';nm_test_func();return(0);}
7606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7607 (eval $ac_compile) 2>&5
7609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7610 (exit $ac_status); }; then
7611 # Now try to grab the symbols.
7613 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7614 (eval $NM conftest.
$ac_objext \
| $lt_cv_sys_global_symbol_pipe \
> $nlist) 2>&5
7616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7617 (exit $ac_status); } && test -s "$nlist"; then
7618 # Try sorting and uniquifying the output.
7619 if sort "$nlist" | uniq > "$nlist"T
; then
7620 mv -f "$nlist"T
"$nlist"
7625 # Make sure that we snagged all the symbols we need.
7626 if grep ' nm_test_var$' "$nlist" >/dev
/null
; then
7627 if grep ' nm_test_func$' "$nlist" >/dev
/null
; then
7628 cat <<EOF > conftest.$ac_ext
7634 # Now generate the symbol file.
7635 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7637 cat <<EOF >> conftest.$ac_ext
7638 #if defined (__STDC__) && __STDC__
7639 # define lt_ptr_t void *
7641 # define lt_ptr_t char *
7645 /* The mapping between symbol names and symbols. */
7650 lt_preloaded_symbols[] =
7653 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main
>> conftest.
$ac_ext
7654 cat <<\EOF
>> conftest.
$ac_ext
7662 # Now try linking the two files.
7663 mv conftest.
$ac_objext conftstm.
$ac_objext
7664 lt_save_LIBS
="$LIBS"
7665 lt_save_CFLAGS
="$CFLAGS"
7666 LIBS
="conftstm.$ac_objext"
7667 CFLAGS
="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7668 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7669 (eval $ac_link) 2>&5
7671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7672 (exit $ac_status); } && test -s conftest
${ac_exeext}; then
7675 LIBS
="$lt_save_LIBS"
7676 CFLAGS
="$lt_save_CFLAGS"
7678 echo "cannot find nm_test_func in $nlist" >&5
7681 echo "cannot find nm_test_var in $nlist" >&5
7684 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7687 echo "$progname: failed program was:" >&5
7688 cat conftest.
$ac_ext >&5
7690 rm -f conftest
* conftst
*
7692 # Do not use the global_symbol_pipe unless it works.
7693 if test "$pipe_works" = yes; then
7696 lt_cv_sys_global_symbol_pipe
=
7702 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7703 lt_cv_sys_global_symbol_to_cdecl
=
7705 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7706 { echo "$as_me:$LINENO: result: failed" >&5
7707 echo "${ECHO_T}failed" >&6; }
7709 { echo "$as_me:$LINENO: result: ok" >&5
7710 echo "${ECHO_T}ok" >&6; }
7713 { echo "$as_me:$LINENO: checking for objdir" >&5
7714 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
7715 if test "${lt_cv_objdir+set}" = set; then
7716 echo $ECHO_N "(cached) $ECHO_C" >&6
7718 rm -f .libs
2>/dev
/null
7719 mkdir .libs
2>/dev
/null
7720 if test -d .libs
; then
7723 # MS-DOS does not allow filenames that begin with a dot.
7726 rmdir .libs
2>/dev
/null
7728 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7729 echo "${ECHO_T}$lt_cv_objdir" >&6; }
7730 objdir
=$lt_cv_objdir
7738 # AIX sometimes has problems with the GCC collect2 program. For some
7739 # reason, if we set the COLLECT_NAMES environment variable, the problems
7740 # vanish in a puff of smoke.
7741 if test "X${COLLECT_NAMES+set}" != Xset
; then
7743 export COLLECT_NAMES
7748 # Sed substitution that helps us do robust quoting. It backslashifies
7749 # metacharacters that are still active within double-quoted strings.
7750 Xsed
='sed -e 1s/^X//'
7751 sed_quote_subst
='s/\([\\"\\`$\\\\]\)/\\\1/g'
7753 # Same as above, but do not quote variable references.
7754 double_quote_subst
='s/\([\\"\\`\\\\]\)/\\\1/g'
7756 # Sed substitution to delay expansion of an escaped shell variable in a
7757 # double_quote_subst'ed string.
7758 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
7760 # Sed substitution to avoid accidental globbing in evaled expressions
7761 no_glob_subst
='s/\*/\\\*/g'
7767 default_ofile
=libtool
7768 can_build_shared
=yes
7770 # All known linkers require a `.a' archive for static linking (except MSVC,
7771 # which needs '.lib').
7773 ltmain
="$ac_aux_dir/ltmain.sh"
7774 ofile
="$default_ofile"
7775 with_gnu_ld
="$lt_cv_prog_gnu_ld"
7777 if test -n "$ac_tool_prefix"; then
7778 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7779 set dummy
${ac_tool_prefix}ar; ac_word
=$2
7780 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7781 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7782 if test "${ac_cv_prog_AR+set}" = set; then
7783 echo $ECHO_N "(cached) $ECHO_C" >&6
7785 if test -n "$AR"; then
7786 ac_cv_prog_AR
="$AR" # Let the user override the test.
7788 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7792 test -z "$as_dir" && as_dir
=.
7793 for ac_exec_ext
in '' $ac_executable_extensions; do
7794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7795 ac_cv_prog_AR
="${ac_tool_prefix}ar"
7796 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7806 if test -n "$AR"; then
7807 { echo "$as_me:$LINENO: result: $AR" >&5
7808 echo "${ECHO_T}$AR" >&6; }
7810 { echo "$as_me:$LINENO: result: no" >&5
7811 echo "${ECHO_T}no" >&6; }
7816 if test -z "$ac_cv_prog_AR"; then
7818 # Extract the first word of "ar", so it can be a program name with args.
7819 set dummy
ar; ac_word
=$2
7820 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7821 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7822 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7823 echo $ECHO_N "(cached) $ECHO_C" >&6
7825 if test -n "$ac_ct_AR"; then
7826 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
7828 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7832 test -z "$as_dir" && as_dir
=.
7833 for ac_exec_ext
in '' $ac_executable_extensions; do
7834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7835 ac_cv_prog_ac_ct_AR
="ar"
7836 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7845 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
7846 if test -n "$ac_ct_AR"; then
7847 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7848 echo "${ECHO_T}$ac_ct_AR" >&6; }
7850 { echo "$as_me:$LINENO: result: no" >&5
7851 echo "${ECHO_T}no" >&6; }
7854 if test "x$ac_ct_AR" = x
; then
7857 case $cross_compiling:$ac_tool_warned in
7859 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7860 whose name does not start with the host triplet. If you think this
7861 configuration is useful to you, please write to autoconf@gnu.org." >&5
7862 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7863 whose name does not start with the host triplet. If you think this
7864 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7865 ac_tool_warned
=yes ;;
7873 if test -n "$ac_tool_prefix"; then
7874 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7875 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7876 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7877 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7878 if test "${ac_cv_prog_RANLIB+set}" = set; then
7879 echo $ECHO_N "(cached) $ECHO_C" >&6
7881 if test -n "$RANLIB"; then
7882 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7884 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7888 test -z "$as_dir" && as_dir
=.
7889 for ac_exec_ext
in '' $ac_executable_extensions; do
7890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7891 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7892 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7901 RANLIB
=$ac_cv_prog_RANLIB
7902 if test -n "$RANLIB"; then
7903 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7904 echo "${ECHO_T}$RANLIB" >&6; }
7906 { echo "$as_me:$LINENO: result: no" >&5
7907 echo "${ECHO_T}no" >&6; }
7912 if test -z "$ac_cv_prog_RANLIB"; then
7913 ac_ct_RANLIB
=$RANLIB
7914 # Extract the first word of "ranlib", so it can be a program name with args.
7915 set dummy ranlib
; ac_word
=$2
7916 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7917 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7918 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7919 echo $ECHO_N "(cached) $ECHO_C" >&6
7921 if test -n "$ac_ct_RANLIB"; then
7922 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7924 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7928 test -z "$as_dir" && as_dir
=.
7929 for ac_exec_ext
in '' $ac_executable_extensions; do
7930 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7931 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7932 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7941 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7942 if test -n "$ac_ct_RANLIB"; then
7943 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7944 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7946 { echo "$as_me:$LINENO: result: no" >&5
7947 echo "${ECHO_T}no" >&6; }
7950 if test "x$ac_ct_RANLIB" = x
; then
7953 case $cross_compiling:$ac_tool_warned in
7955 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7956 whose name does not start with the host triplet. If you think this
7957 configuration is useful to you, please write to autoconf@gnu.org." >&5
7958 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7959 whose name does not start with the host triplet. If you think this
7960 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7961 ac_tool_warned
=yes ;;
7963 RANLIB
=$ac_ct_RANLIB
7966 RANLIB
="$ac_cv_prog_RANLIB"
7969 if test -n "$ac_tool_prefix"; then
7970 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7971 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
7972 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7973 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7974 if test "${ac_cv_prog_STRIP+set}" = set; then
7975 echo $ECHO_N "(cached) $ECHO_C" >&6
7977 if test -n "$STRIP"; then
7978 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
7980 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7984 test -z "$as_dir" && as_dir
=.
7985 for ac_exec_ext
in '' $ac_executable_extensions; do
7986 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7987 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
7988 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7997 STRIP
=$ac_cv_prog_STRIP
7998 if test -n "$STRIP"; then
7999 { echo "$as_me:$LINENO: result: $STRIP" >&5
8000 echo "${ECHO_T}$STRIP" >&6; }
8002 { echo "$as_me:$LINENO: result: no" >&5
8003 echo "${ECHO_T}no" >&6; }
8008 if test -z "$ac_cv_prog_STRIP"; then
8010 # Extract the first word of "strip", so it can be a program name with args.
8011 set dummy strip
; ac_word
=$2
8012 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8013 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8014 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8015 echo $ECHO_N "(cached) $ECHO_C" >&6
8017 if test -n "$ac_ct_STRIP"; then
8018 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
8020 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8024 test -z "$as_dir" && as_dir
=.
8025 for ac_exec_ext
in '' $ac_executable_extensions; do
8026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8027 ac_cv_prog_ac_ct_STRIP
="strip"
8028 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8037 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
8038 if test -n "$ac_ct_STRIP"; then
8039 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8040 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
8042 { echo "$as_me:$LINENO: result: no" >&5
8043 echo "${ECHO_T}no" >&6; }
8046 if test "x$ac_ct_STRIP" = x
; then
8049 case $cross_compiling:$ac_tool_warned in
8051 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8052 whose name does not start with the host triplet. If you think this
8053 configuration is useful to you, please write to autoconf@gnu.org." >&5
8054 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8055 whose name does not start with the host triplet. If you think this
8056 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8057 ac_tool_warned
=yes ;;
8062 STRIP
="$ac_cv_prog_STRIP"
8067 old_CFLAGS
="$CFLAGS"
8069 # Set sane defaults for various variables
8070 test -z "$AR" && AR
=ar
8071 test -z "$AR_FLAGS" && AR_FLAGS
=cru
8072 test -z "$AS" && AS
=as
8073 test -z "$CC" && CC
=cc
8074 test -z "$LTCC" && LTCC
=$CC
8075 test -z "$LTCFLAGS" && LTCFLAGS
=$CFLAGS
8076 test -z "$DLLTOOL" && DLLTOOL
=dlltool
8077 test -z "$LD" && LD
=ld
8078 test -z "$LN_S" && LN_S
="ln -s"
8079 test -z "$MAGIC_CMD" && MAGIC_CMD
=file
8080 test -z "$NM" && NM
=nm
8081 test -z "$SED" && SED
=sed
8082 test -z "$OBJDUMP" && OBJDUMP
=objdump
8083 test -z "$RANLIB" && RANLIB
=:
8084 test -z "$STRIP" && STRIP
=:
8085 test -z "$ac_objext" && ac_objext
=o
8087 # Determine commands to create old-style static archives.
8088 old_archive_cmds
='$AR $AR_FLAGS $oldlib$oldobjs'
8089 old_postinstall_cmds
='chmod 644 $oldlib'
8090 old_postuninstall_cmds
=
8092 if test -n "$RANLIB"; then
8095 old_postinstall_cmds
="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8098 old_postinstall_cmds
="$old_postinstall_cmds~\$RANLIB \$oldlib"
8101 old_archive_cmds
="$old_archive_cmds~\$RANLIB \$oldlib"
8104 for cc_temp
in $compiler""; do
8106 compile
| *[\\/]compile
| ccache
| *[\\/]ccache
) ;;
8107 distcc
| *[\\/]distcc
| purify
| *[\\/]purify
) ;;
8112 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8115 # Only perform the check for file, if the check method requires it
8116 case $deplibs_check_method in
8118 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8119 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8120 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
8121 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8122 echo $ECHO_N "(cached) $ECHO_C" >&6
8126 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
8129 lt_save_MAGIC_CMD
="$MAGIC_CMD"
8130 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
8131 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
8132 for ac_dir
in $ac_dummy; do
8134 test -z "$ac_dir" && ac_dir
=.
8135 if test -f $ac_dir/${ac_tool_prefix}file; then
8136 lt_cv_path_MAGIC_CMD
="$ac_dir/${ac_tool_prefix}file"
8137 if test -n "$file_magic_test_file"; then
8138 case $deplibs_check_method in
8140 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8141 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
8142 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null
|
8143 $EGREP "$file_magic_regex" > /dev
/null
; then
8148 *** Warning: the command libtool uses to detect shared libraries,
8149 *** $file_magic_cmd, produces output that libtool cannot recognize.
8150 *** The result is that libtool may fail to recognize shared libraries
8151 *** as such. This will affect the creation of libtool libraries that
8152 *** depend on shared libraries, but programs linked with such libtool
8153 *** libraries will work regardless of this problem. Nevertheless, you
8154 *** may want to report the problem to your system manager and/or to
8155 *** bug-libtool@gnu.org
8165 MAGIC_CMD
="$lt_save_MAGIC_CMD"
8170 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
8171 if test -n "$MAGIC_CMD"; then
8172 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8173 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8175 { echo "$as_me:$LINENO: result: no" >&5
8176 echo "${ECHO_T}no" >&6; }
8179 if test -z "$lt_cv_path_MAGIC_CMD"; then
8180 if test -n "$ac_tool_prefix"; then
8181 { echo "$as_me:$LINENO: checking for file" >&5
8182 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
8183 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8184 echo $ECHO_N "(cached) $ECHO_C" >&6
8188 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
8191 lt_save_MAGIC_CMD
="$MAGIC_CMD"
8192 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
8193 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
8194 for ac_dir
in $ac_dummy; do
8196 test -z "$ac_dir" && ac_dir
=.
8197 if test -f $ac_dir/file; then
8198 lt_cv_path_MAGIC_CMD
="$ac_dir/file"
8199 if test -n "$file_magic_test_file"; then
8200 case $deplibs_check_method in
8202 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8203 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
8204 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null
|
8205 $EGREP "$file_magic_regex" > /dev
/null
; then
8210 *** Warning: the command libtool uses to detect shared libraries,
8211 *** $file_magic_cmd, produces output that libtool cannot recognize.
8212 *** The result is that libtool may fail to recognize shared libraries
8213 *** as such. This will affect the creation of libtool libraries that
8214 *** depend on shared libraries, but programs linked with such libtool
8215 *** libraries will work regardless of this problem. Nevertheless, you
8216 *** may want to report the problem to your system manager and/or to
8217 *** bug-libtool@gnu.org
8227 MAGIC_CMD
="$lt_save_MAGIC_CMD"
8232 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
8233 if test -n "$MAGIC_CMD"; then
8234 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8235 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8237 { echo "$as_me:$LINENO: result: no" >&5
8238 echo "${ECHO_T}no" >&6; }
8253 # Check whether --enable-libtool-lock was given.
8254 if test "${enable_libtool_lock+set}" = set; then
8255 enableval
=$enable_libtool_lock;
8258 test "x$enable_libtool_lock" != xno
&& enable_libtool_lock
=yes
8261 # Check whether --with-pic was given.
8262 if test "${with_pic+set}" = set; then
8263 withval
=$with_pic; pic_mode
="$withval"
8268 test -z "$pic_mode" && pic_mode
=default
8270 # Use C for the default configuration in the libtool script
8274 ac_cpp
='$CPP $CPPFLAGS'
8275 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8276 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8277 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8280 # Source file extension for C test sources.
8283 # Object file extension for compiled C test sources.
8287 # Code to be used in simple compile tests
8288 lt_simple_compile_test_code
="int some_variable = 0;"
8290 # Code to be used in simple link tests
8291 lt_simple_link_test_code
='int main(){return(0);}'
8294 # If no C compiler was specified, use CC.
8297 # If no C compiler flags were specified, use CFLAGS.
8298 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
8300 # Allow CC to be a program name with arguments.
8304 # save warnings/boilerplate of simple test code
8305 ac_outfile
=conftest.
$ac_objext
8306 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
8307 eval "$ac_compile" 2>&1 >/dev
/null
| $SED '/^$/d; /^ *+/d' >conftest.err
8308 _lt_compiler_boilerplate
=`cat conftest.err`
8311 ac_outfile
=conftest.
$ac_objext
8312 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
8313 eval "$ac_link" 2>&1 >/dev
/null
| $SED '/^$/d; /^ *+/d' >conftest.err
8314 _lt_linker_boilerplate
=`cat conftest.err`
8319 lt_prog_compiler_no_builtin_flag
=
8321 if test "$GCC" = yes; then
8322 lt_prog_compiler_no_builtin_flag
=' -fno-builtin'
8325 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8326 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
8327 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8328 echo $ECHO_N "(cached) $ECHO_C" >&6
8330 lt_cv_prog_compiler_rtti_exceptions
=no
8331 ac_outfile
=conftest.
$ac_objext
8332 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8333 lt_compiler_flag
="-fno-rtti -fno-exceptions"
8334 # Insert the option either (1) after the last *FLAGS variable, or
8335 # (2) before a word containing "conftest.", or (3) at the end.
8336 # Note that $ac_compile itself does not contain backslashes and begins
8337 # with a dollar sign (not a hyphen), so the echo should work correctly.
8338 # The option is referenced via a variable to avoid confusing sed.
8339 lt_compile
=`echo "$ac_compile" | $SED \
8340 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8341 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8342 -e 's:$: $lt_compiler_flag:'`
8343 (eval echo "\"\$as_me:8343: $lt_compile\"" >&5)
8344 (eval "$lt_compile" 2>conftest.err
)
8346 cat conftest.err
>&5
8347 echo "$as_me:8347: \$? = $ac_status" >&5
8348 if (exit $ac_status) && test -s "$ac_outfile"; then
8349 # The compiler can only warn and ignore the option if not recognized
8350 # So say no if there are warnings other than the usual output.
8351 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8352 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8353 if test ! -s conftest.er2
|| diff conftest.exp conftest.er2
>/dev
/null
; then
8354 lt_cv_prog_compiler_rtti_exceptions
=yes
8360 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8361 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8363 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
8364 lt_prog_compiler_no_builtin_flag
="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8371 lt_prog_compiler_wl
=
8372 lt_prog_compiler_pic
=
8373 lt_prog_compiler_static
=
8375 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8376 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
8378 if test "$GCC" = yes; then
8379 lt_prog_compiler_wl
='-Wl,'
8380 lt_prog_compiler_static
='-static'
8384 # All AIX code is PIC.
8385 if test "$host_cpu" = ia64
; then
8386 # AIX 5 now supports IA64 processor
8387 lt_prog_compiler_static
='-Bstatic'
8392 # FIXME: we need at least 68020 code to build shared libraries, but
8393 # adding the `-m68020' flag to GCC prevents building anything better,
8395 lt_prog_compiler_pic
='-m68020 -resident32 -malways-restore-a4'
8398 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
8399 # PIC is the default for these OSes.
8402 mingw
* | cygwin
* | pw32
* | os2
*)
8403 # This hack is so that the source file can tell whether it is being
8404 # built for inclusion in a dll (and should export symbols for example).
8405 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8406 # (--disable-auto-import) libraries
8407 lt_prog_compiler_pic
='-DDLL_EXPORT'
8410 darwin
* | rhapsody
*)
8411 # PIC is the default on this platform
8412 # Common symbols not allowed in MH_DYLIB files
8413 lt_prog_compiler_pic
='-fno-common'
8417 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8418 # Instead, we relocate shared libraries at runtime.
8422 # Just because we use GCC doesn't mean we suddenly get shared libraries
8423 # on systems that don't support them.
8424 lt_prog_compiler_can_build_shared
=no
8429 if test -d /usr
/nec
; then
8430 lt_prog_compiler_pic
=-Kconform_pic
8435 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8442 lt_prog_compiler_pic
='-fPIC'
8448 lt_prog_compiler_pic
='-fPIC'
8452 # PORTME Check for flag to pass linker flags through the system compiler.
8455 lt_prog_compiler_wl
='-Wl,'
8456 if test "$host_cpu" = ia64
; then
8457 # AIX 5 now supports IA64 processor
8458 lt_prog_compiler_static
='-Bstatic'
8460 lt_prog_compiler_static
='-bnso -bI:/lib/syscalls.exp'
8464 # PIC is the default on this platform
8465 # Common symbols not allowed in MH_DYLIB files
8466 case $cc_basename in
8468 lt_prog_compiler_pic
='-qnocommon'
8469 lt_prog_compiler_wl
='-Wl,'
8474 mingw
* | cygwin
* | pw32
* | os2
*)
8475 # This hack is so that the source file can tell whether it is being
8476 # built for inclusion in a dll (and should export symbols for example).
8477 lt_prog_compiler_pic
='-DDLL_EXPORT'
8480 hpux9
* | hpux10
* | hpux11
*)
8481 lt_prog_compiler_wl
='-Wl,'
8482 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8489 lt_prog_compiler_pic
='+Z'
8492 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8493 lt_prog_compiler_static
='${wl}-a ${wl}archive'
8496 irix5
* | irix6
* | nonstopux
*)
8497 lt_prog_compiler_wl
='-Wl,'
8498 # PIC (with -KPIC) is the default.
8499 lt_prog_compiler_static
='-non_shared'
8503 lt_prog_compiler_pic
='-KPIC'
8504 lt_prog_compiler_static
='-Bstatic'
8507 linux
* | k
*bsd
*-gnu)
8508 case $cc_basename in
8510 lt_prog_compiler_wl
='-Wl,'
8511 lt_prog_compiler_pic
='-KPIC'
8512 lt_prog_compiler_static
='-static'
8514 pgcc
* | pgf77
* | pgf90
* | pgf95
*)
8515 # Portland Group compilers (*not* the Pentium gcc compiler,
8516 # which looks to be a dead project)
8517 lt_prog_compiler_wl
='-Wl,'
8518 lt_prog_compiler_pic
='-fpic'
8519 lt_prog_compiler_static
='-Bstatic'
8522 lt_prog_compiler_wl
='-Wl,'
8523 # All Alpha code is PIC.
8524 lt_prog_compiler_static
='-non_shared'
8527 case `$CC -V 2>&1 | sed 5q` in
8530 lt_prog_compiler_pic
='-KPIC'
8531 lt_prog_compiler_static
='-Bstatic'
8532 lt_prog_compiler_wl
='-Wl,'
8535 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8536 lt_prog_compiler_pic
='-KPIC'
8537 lt_prog_compiler_static
='-Bstatic'
8538 lt_prog_compiler_wl
=''
8545 osf3
* | osf4
* | osf5
*)
8546 lt_prog_compiler_wl
='-Wl,'
8547 # All OSF/1 code is PIC.
8548 lt_prog_compiler_static
='-non_shared'
8552 lt_prog_compiler_static
='-non_shared'
8556 lt_prog_compiler_pic
='-KPIC'
8557 lt_prog_compiler_static
='-Bstatic'
8558 case $cc_basename in
8560 lt_prog_compiler_wl
='-Qoption ld ';;
8562 lt_prog_compiler_wl
='-Wl,';;
8567 lt_prog_compiler_wl
='-Qoption ld '
8568 lt_prog_compiler_pic
='-PIC'
8569 lt_prog_compiler_static
='-Bstatic'
8572 sysv4
| sysv4.2uw2
* | sysv4.3
*)
8573 lt_prog_compiler_wl
='-Wl,'
8574 lt_prog_compiler_pic
='-KPIC'
8575 lt_prog_compiler_static
='-Bstatic'
8579 if test -d /usr
/nec
;then
8580 lt_prog_compiler_pic
='-Kconform_pic'
8581 lt_prog_compiler_static
='-Bstatic'
8585 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
8586 lt_prog_compiler_wl
='-Wl,'
8587 lt_prog_compiler_pic
='-KPIC'
8588 lt_prog_compiler_static
='-Bstatic'
8592 lt_prog_compiler_wl
='-Wl,'
8593 lt_prog_compiler_can_build_shared
=no
8597 lt_prog_compiler_pic
='-pic'
8598 lt_prog_compiler_static
='-Bstatic'
8602 lt_prog_compiler_can_build_shared
=no
8607 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8608 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
8611 # Check to make sure the PIC flag actually works.
8613 if test -n "$lt_prog_compiler_pic"; then
8615 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8616 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
8617 if test "${lt_prog_compiler_pic_works+set}" = set; then
8618 echo $ECHO_N "(cached) $ECHO_C" >&6
8620 lt_prog_compiler_pic_works
=no
8621 ac_outfile
=conftest.
$ac_objext
8622 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8623 lt_compiler_flag
="$lt_prog_compiler_pic -DPIC"
8624 # Insert the option either (1) after the last *FLAGS variable, or
8625 # (2) before a word containing "conftest.", or (3) at the end.
8626 # Note that $ac_compile itself does not contain backslashes and begins
8627 # with a dollar sign (not a hyphen), so the echo should work correctly.
8628 # The option is referenced via a variable to avoid confusing sed.
8629 lt_compile
=`echo "$ac_compile" | $SED \
8630 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8631 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8632 -e 's:$: $lt_compiler_flag:'`
8633 (eval echo "\"\$as_me:8633: $lt_compile\"" >&5)
8634 (eval "$lt_compile" 2>conftest.err
)
8636 cat conftest.err
>&5
8637 echo "$as_me:8637: \$? = $ac_status" >&5
8638 if (exit $ac_status) && test -s "$ac_outfile"; then
8639 # The compiler can only warn and ignore the option if not recognized
8640 # So say no if there are warnings other than the usual output.
8641 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8642 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8643 if test ! -s conftest.er2
|| diff conftest.exp conftest.er2
>/dev
/null
; then
8644 lt_prog_compiler_pic_works
=yes
8650 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8651 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
8653 if test x
"$lt_prog_compiler_pic_works" = xyes
; then
8654 case $lt_prog_compiler_pic in
8656 *) lt_prog_compiler_pic
=" $lt_prog_compiler_pic" ;;
8659 lt_prog_compiler_pic
=
8660 lt_prog_compiler_can_build_shared
=no
8665 # For platforms which do not support PIC, -DPIC is meaningless:
8667 lt_prog_compiler_pic
=
8670 lt_prog_compiler_pic
="$lt_prog_compiler_pic -DPIC"
8675 # Check to make sure the static flag actually works.
8677 wl
=$lt_prog_compiler_wl eval lt_tmp_static_flag
=\"$lt_prog_compiler_static\"
8678 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8679 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
8680 if test "${lt_prog_compiler_static_works+set}" = set; then
8681 echo $ECHO_N "(cached) $ECHO_C" >&6
8683 lt_prog_compiler_static_works
=no
8684 save_LDFLAGS
="$LDFLAGS"
8685 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
8686 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
8687 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
8688 # The linker can only warn and ignore the option if not recognized
8689 # So say no if there are warnings
8690 if test -s conftest.err
; then
8691 # Append any errors to the config.log.
8692 cat conftest.err
1>&5
8693 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8694 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8695 if diff conftest.exp conftest.er2
>/dev
/null
; then
8696 lt_prog_compiler_static_works
=yes
8699 lt_prog_compiler_static_works
=yes
8703 LDFLAGS
="$save_LDFLAGS"
8706 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8707 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
8709 if test x
"$lt_prog_compiler_static_works" = xyes
; then
8712 lt_prog_compiler_static
=
8716 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8717 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8718 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8719 echo $ECHO_N "(cached) $ECHO_C" >&6
8721 lt_cv_prog_compiler_c_o
=no
8722 $rm -r conftest
2>/dev
/null
8726 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8728 lt_compiler_flag
="-o out/conftest2.$ac_objext"
8729 # Insert the option either (1) after the last *FLAGS variable, or
8730 # (2) before a word containing "conftest.", or (3) at the end.
8731 # Note that $ac_compile itself does not contain backslashes and begins
8732 # with a dollar sign (not a hyphen), so the echo should work correctly.
8733 lt_compile
=`echo "$ac_compile" | $SED \
8734 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8735 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8736 -e 's:$: $lt_compiler_flag:'`
8737 (eval echo "\"\$as_me:8737: $lt_compile\"" >&5)
8738 (eval "$lt_compile" 2>out
/conftest.err
)
8740 cat out
/conftest.err
>&5
8741 echo "$as_me:8741: \$? = $ac_status" >&5
8742 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
8744 # The compiler can only warn and ignore the option if not recognized
8745 # So say no if there are warnings
8746 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out
/conftest.exp
8747 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
8748 if test ! -s out
/conftest.er2
|| diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
8749 lt_cv_prog_compiler_c_o
=yes
8754 # SGI C++ compiler will create directory out/ii_files/ for
8755 # template instantiation
8756 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
8757 $rm out
/* && rmdir out
8763 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8764 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8767 hard_links
="nottested"
8768 if test "$lt_cv_prog_compiler_c_o" = no
&& test "$need_locks" != no
; then
8769 # do not overwrite the value of need_locks provided by the user
8770 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8771 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8774 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
8776 ln conftest.a conftest.b
2>&5 || hard_links
=no
8777 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
8778 { echo "$as_me:$LINENO: result: $hard_links" >&5
8779 echo "${ECHO_T}$hard_links" >&6; }
8780 if test "$hard_links" = no
; then
8781 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8782 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8789 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8790 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8793 allow_undefined_flag
=
8794 enable_shared_with_static_runtimes
=no
8796 archive_expsym_cmds
=
8797 old_archive_From_new_cmds
=
8798 old_archive_from_expsyms_cmds
=
8799 export_dynamic_flag_spec
=
8800 whole_archive_flag_spec
=
8801 thread_safe_flag_spec
=
8802 hardcode_libdir_flag_spec
=
8803 hardcode_libdir_flag_spec_ld
=
8804 hardcode_libdir_separator
=
8807 hardcode_shlibpath_var
=unsupported
8808 link_all_deplibs
=unknown
8809 hardcode_automatic
=no
8812 always_export_symbols
=no
8813 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8814 # include_expsyms should be a list of space-separated symbols to be *always*
8815 # included in the symbol list
8817 # exclude_expsyms can be an extended regexp of symbols to exclude
8818 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8819 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8820 # as well as any symbol that contains `d'.
8821 exclude_expsyms
="_GLOBAL_OFFSET_TABLE_"
8822 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8823 # platforms (ab)use it in PIC code, but their linkers get confused if
8824 # the symbol is explicitly referenced. Since portable code cannot
8825 # rely on this symbol name, it's probably fine to never include it in
8826 # preloaded symbol tables.
8827 extract_expsyms_cmds
=
8828 # Just being paranoid about ensuring that cc_basename is set.
8829 for cc_temp
in $compiler""; do
8831 compile
| *[\\/]compile
| ccache
| *[\\/]ccache
) ;;
8832 distcc
| *[\\/]distcc
| purify
| *[\\/]purify
) ;;
8837 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8840 cygwin
* | mingw
* | pw32
*)
8841 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8842 # When not using gcc, we currently assume that we are using
8843 # Microsoft Visual C++.
8844 if test "$GCC" != yes; then
8849 # we just hope/assume this is gcc and not c89 (= MSVC++)
8858 if test "$with_gnu_ld" = yes; then
8859 # If archive_cmds runs LD, not CC, wlarc should be empty
8862 # Set some defaults for GNU ld with shared library support. These
8863 # are reset later if shared libraries are not supported. Putting them
8864 # here allows them to be overridden if necessary.
8865 runpath_var
=LD_RUN_PATH
8866 hardcode_libdir_flag_spec
='${wl}--rpath ${wl}$libdir'
8867 export_dynamic_flag_spec
='${wl}--export-dynamic'
8868 # ancient GNU ld didn't support --whole-archive et. al.
8869 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev
/null
; then
8870 whole_archive_flag_spec
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8872 whole_archive_flag_spec
=
8874 supports_anon_versioning
=no
8875 case `$LD -v 2>/dev/null` in
8876 *\
[01].
* | *\
2.
[0-9].
* | *\
2.10.
*) ;; # catch versions < 2.11
8877 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
8878 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
8879 *\
2.11.
*) ;; # other 2.11 versions
8880 *) supports_anon_versioning
=yes ;;
8883 # See if GNU ld supports shared libraries.
8885 aix3
* | aix4
* | aix5
*)
8886 # On AIX/PPC, the GNU linker is very broken
8887 if test "$host_cpu" != ia64
; then
8891 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8892 *** to be unable to reliably create shared libraries on AIX.
8893 *** Therefore, libtool is disabling shared libraries support. If you
8894 *** really care for shared libraries, you may want to modify your PATH
8895 *** so that a non-GNU linker is found, and then restart.
8902 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)'
8903 hardcode_libdir_flag_spec
='-L$libdir'
8904 hardcode_minus_L
=yes
8906 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8907 # that the semantics of dynamic libraries on AmigaOS, at least up
8908 # to version 4, is to share data among multiple programs linked
8909 # with the same dynamic library. Since this doesn't match the
8910 # behavior of shared libraries on other platforms, we can't use
8916 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev
/null
; then
8917 allow_undefined_flag
=unsupported
8918 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8919 # support --undefined. This deserves some investigation. FIXME
8920 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8926 cygwin
* | mingw
* | pw32
*)
8927 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8928 # as there is no search path for DLLs.
8929 hardcode_libdir_flag_spec
='-L$libdir'
8930 allow_undefined_flag
=unsupported
8931 always_export_symbols
=no
8932 enable_shared_with_static_runtimes
=yes
8933 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8935 if $LD --help 2>&1 | grep 'auto-import' > /dev
/null
; then
8936 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8937 # If the export-symbols file already is a .def file (1st line
8938 # is EXPORTS), use it as is; otherwise, prepend...
8939 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8940 cp $export_symbols $output_objdir/$soname.def;
8942 echo EXPORTS > $output_objdir/$soname.def;
8943 cat $export_symbols >> $output_objdir/$soname.def;
8945 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8953 hardcode_shlibpath_var
=no
8954 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
8955 export_dynamic_flag_spec
='${wl}-E'
8956 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8957 # Instead, shared libraries are loaded at an image base (0x10000000 by
8958 # default) and relocated if they conflict, which is a slow very memory
8959 # consuming and fragmenting process. To avoid this, we pick a random,
8960 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8961 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8962 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8963 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'
8966 gnu
* | linux
* | k
*bsd
*-gnu)
8967 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev
/null
; then
8969 case $cc_basename,$host_cpu in
8970 pgcc
*) # Portland Group C compiler
8971 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'
8972 tmp_addflag
=' $pic_flag'
8974 pgf77
* | pgf90
* | pgf95
*) # Portland Group f77 and f90 compilers
8975 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'
8976 tmp_addflag
=' $pic_flag -Mnomain' ;;
8977 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
8978 tmp_addflag
=' -i_dynamic' ;;
8979 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
8980 tmp_addflag
=' -i_dynamic -nofor_main' ;;
8981 ifc
* | ifort
*) # Intel Fortran compiler
8982 tmp_addflag
=' -nofor_main' ;;
8984 case `$CC -V 2>&1 | sed 5q` in
8985 *Sun\ C
*) # Sun C 5.9
8986 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'
8987 tmp_sharedflag
='-G' ;;
8988 *Sun\ F
*) # Sun Fortran 8.3
8989 tmp_sharedflag
='-G' ;;
8991 tmp_sharedflag
='-shared' ;;
8993 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8995 if test $supports_anon_versioning = yes; then
8996 archive_expsym_cmds
='$echo "{ global:" > $output_objdir/$libname.ver~
8997 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8998 $echo "local: *; };" >> $output_objdir/$libname.ver~
8999 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9007 netbsd
* | netbsdelf
*-gnu)
9008 if echo __ELF__
| $CC -E - | grep __ELF__
>/dev
/null
; then
9009 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9012 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9013 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9018 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev
/null
; then
9022 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9023 *** create shared libraries on Solaris systems. Therefore, libtool
9024 *** is disabling shared libraries support. We urge you to upgrade GNU
9025 *** binutils to release 2.9.1 or newer. Another option is to modify
9026 *** your PATH or compiler configuration so that the native linker is
9027 *** used, and then restart.
9030 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev
/null
; then
9031 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9032 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9038 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
9039 case `$LD -v 2>&1` in
9040 *\
[01].
* | *\
2.
[0-9].
* | *\
2.1[0-5].
*)
9044 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9045 *** reliably create shared libraries on SCO systems. Therefore, libtool
9046 *** is disabling shared libraries support. We urge you to upgrade GNU
9047 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9048 *** your PATH or compiler configuration so that the native linker is
9049 *** used, and then restart.
9054 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev
/null
; then
9055 hardcode_libdir_flag_spec
='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
9056 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
9057 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
9066 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9069 hardcode_shlibpath_var
=no
9073 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev
/null
; then
9074 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9075 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9082 if test "$ld_shlibs" = no
; then
9084 hardcode_libdir_flag_spec
=
9085 export_dynamic_flag_spec
=
9086 whole_archive_flag_spec
=
9089 # PORTME fill in a description of your system's linker (not GNU ld)
9092 allow_undefined_flag
=unsupported
9093 always_export_symbols
=yes
9094 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'
9095 # Note: this linker hardcodes the directories in LIBPATH if there
9096 # are no directories specified by -L.
9097 hardcode_minus_L
=yes
9098 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9099 # Neither direct hardcoding nor static linking is supported with a
9101 hardcode_direct
=unsupported
9106 if test "$host_cpu" = ia64
; then
9107 # On IA64, the linker does run time linking by default, so we don't
9108 # have to do anything special.
9109 aix_use_runtimelinking
=no
9110 exp_sym_flag
='-Bexport'
9113 # If we're using GNU nm, then we don't want the "-C" option.
9114 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9115 if $NM -V 2>&1 | grep 'GNU' > /dev
/null
; then
9116 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'
9118 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'
9120 aix_use_runtimelinking
=no
9122 # Test if we are trying to use run time linking or normal
9123 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9124 # need to do runtime linking.
9125 case $host_os in aix4.
[23]|aix4.
[23].
*|aix5
*)
9126 for ld_flag
in $LDFLAGS; do
9127 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9128 aix_use_runtimelinking
=yes
9135 exp_sym_flag
='-bexport'
9136 no_entry_flag
='-bnoentry'
9139 # When large executables or shared objects are built, AIX ld can
9140 # have problems creating the table of contents. If linking a library
9141 # or program results in "error TOC overflow" add -mminimal-toc to
9142 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9143 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9147 hardcode_libdir_separator
=':'
9148 link_all_deplibs
=yes
9150 if test "$GCC" = yes; then
9151 case $host_os in aix4.
[012]|aix4.
[012].
*)
9152 # We only want to do this on AIX 4.2 and lower, the check
9153 # below for broken collect2 doesn't work under 4.3+
9154 collect2name
=`${CC} -print-prog-name=collect2`
9155 if test -f "$collect2name" && \
9156 strings "$collect2name" | grep resolve_lib_name
>/dev
/null
9158 # We have reworked collect2
9161 # We have old collect2
9162 hardcode_direct
=unsupported
9163 # It fails to find uninstalled libraries when the uninstalled
9164 # path is not listed in the libpath. Setting hardcode_minus_L
9165 # to unsupported forces relinking
9166 hardcode_minus_L
=yes
9167 hardcode_libdir_flag_spec
='-L$libdir'
9168 hardcode_libdir_separator
=
9172 shared_flag
='-shared'
9173 if test "$aix_use_runtimelinking" = yes; then
9174 shared_flag
="$shared_flag "'${wl}-G'
9178 if test "$host_cpu" = ia64
; then
9179 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9180 # chokes on -Wl,-G. The following line is correct:
9183 if test "$aix_use_runtimelinking" = yes; then
9184 shared_flag
='${wl}-G'
9186 shared_flag
='${wl}-bM:SRE'
9191 # It seems that -bexpall does not export symbols beginning with
9192 # underscore (_), so it is better to generate a list of symbols to export.
9193 always_export_symbols
=yes
9194 if test "$aix_use_runtimelinking" = yes; then
9195 # Warning - without using the other runtime loading flags (-brtl),
9196 # -berok will link without error, but may produce a broken library.
9197 allow_undefined_flag
='-berok'
9198 # Determine the default libpath from the value encoded in an empty executable.
9199 cat >conftest.
$ac_ext <<_ACEOF
9202 cat confdefs.h
>>conftest.
$ac_ext
9203 cat >>conftest.
$ac_ext <<_ACEOF
9204 /* end confdefs.h. */
9214 rm -f conftest.
$ac_objext conftest
$ac_exeext
9215 if { (ac_try
="$ac_link"
9217 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
9218 *) ac_try_echo=$ac_try;;
9220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9221 (eval "$ac_link") 2>conftest.er1
9223 grep -v '^ *+' conftest.er1 >conftest.err
9225 cat conftest.err >&5
9226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9227 (exit $ac_status); } && {
9228 test -z "$ac_c_werror_flag" ||
9229 test ! -s conftest.err
9230 } && test -s conftest$ac_exeext &&
9231 $as_test_x conftest$ac_exeext; then
9233 lt_aix_libpath_sed='
9234 /Import File Strings/,/^$/ {
9240 aix_libpath=`dump
-H conftest
$ac_exeext 2>/dev
/null
| $SED -n -e "$lt_aix_libpath_sed"`
9241 # Check for a 64-bit object if we didn't find anything.
9242 if test -z "$aix_libpath"; then
9243 aix_libpath=`dump
-HX64 conftest
$ac_exeext 2>/dev
/null
| $SED -n -e "$lt_aix_libpath_sed"`
9246 echo "$as_me: failed program was:" >&5
9247 sed 's/^/| /' conftest.$ac_ext >&5
9252 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9253 conftest$ac_exeext conftest.$ac_ext
9254 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9256 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9257 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"
9259 if test "$host_cpu" = ia64; then
9260 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9261 allow_undefined_flag="-z nodefs"
9262 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"
9264 # Determine the default libpath from the value encoded in an empty executable.
9265 cat >conftest.$ac_ext <<_ACEOF
9268 cat confdefs.h >>conftest.$ac_ext
9269 cat >>conftest.$ac_ext <<_ACEOF
9270 /* end confdefs.h. */
9280 rm -f conftest.$ac_objext conftest$ac_exeext
9281 if { (ac_try="$ac_link"
9283 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
9284 *) ac_try_echo
=$ac_try;;
9286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9287 (eval "$ac_link") 2>conftest.er1
9289 grep -v '^ *+' conftest.er1
>conftest.err
9291 cat conftest.err
>&5
9292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9293 (exit $ac_status); } && {
9294 test -z "$ac_c_werror_flag" ||
9295 test ! -s conftest.err
9296 } && test -s conftest
$ac_exeext &&
9297 $as_test_x conftest
$ac_exeext; then
9299 lt_aix_libpath_sed
='
9300 /Import File Strings/,/^$/ {
9306 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9307 # Check for a 64-bit object if we didn't find anything.
9308 if test -z "$aix_libpath"; then
9309 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9312 echo "$as_me: failed program was:" >&5
9313 sed 's/^/| /' conftest.
$ac_ext >&5
9318 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9319 conftest
$ac_exeext conftest.
$ac_ext
9320 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
9322 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
9323 # Warning - without using the other run time loading flags,
9324 # -berok will link without error, but may produce a broken library.
9325 no_undefined_flag
=' ${wl}-bernotok'
9326 allow_undefined_flag
=' ${wl}-berok'
9327 # Exported symbols can be pulled into shared objects from archives
9328 whole_archive_flag_spec
='$convenience'
9329 archive_cmds_need_lc
=yes
9330 # This is similar to how AIX traditionally builds its shared libraries.
9331 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'
9337 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)'
9338 hardcode_libdir_flag_spec
='-L$libdir'
9339 hardcode_minus_L
=yes
9340 # see comment about different semantics on the GNU ld section
9345 export_dynamic_flag_spec
=-rdynamic
9348 cygwin
* | mingw
* | pw32
*)
9349 # When not using gcc, we currently assume that we are using
9350 # Microsoft Visual C++.
9351 # hardcode_libdir_flag_spec is actually meaningless, as there is
9352 # no search path for DLLs.
9353 hardcode_libdir_flag_spec
=' '
9354 allow_undefined_flag
=unsupported
9355 # Tell ltmain to make .lib files, not .a files.
9357 # Tell ltmain to make .dll files, not .so files.
9359 # FIXME: Setting linknames here is a bad hack.
9360 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9361 # The linker will automatically build a .lib file if we build a DLL.
9362 old_archive_From_new_cmds
='true'
9363 # FIXME: Should let the user specify the lib program.
9364 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
9365 fix_srcfile_path
='`cygpath -w "$srcfile"`'
9366 enable_shared_with_static_runtimes
=yes
9369 darwin
* | rhapsody
*)
9371 rhapsody
* | darwin1.
[012])
9372 allow_undefined_flag
='${wl}-undefined ${wl}suppress'
9375 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9376 allow_undefined_flag
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9378 case ${MACOSX_DEPLOYMENT_TARGET} in
9380 allow_undefined_flag
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9383 allow_undefined_flag
='${wl}-undefined ${wl}dynamic_lookup'
9389 archive_cmds_need_lc
=no
9391 hardcode_automatic
=yes
9392 hardcode_shlibpath_var
=unsupported
9393 whole_archive_flag_spec
=''
9394 link_all_deplibs
=yes
9395 if test "$GCC" = yes ; then
9396 output_verbose_link_cmd
='echo'
9397 archive_cmds
='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9398 module_cmds
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9399 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9400 archive_expsym_cmds
='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9401 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}'
9403 case $cc_basename in
9405 output_verbose_link_cmd
='echo'
9406 archive_cmds
='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
9407 module_cmds
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9408 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9409 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}'
9410 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}'
9420 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9421 hardcode_libdir_flag_spec
='-L$libdir'
9422 hardcode_shlibpath_var
=no
9429 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9430 # support. Future versions do this automatically, but an explicit c++rt0.o
9431 # does not break anything, and helps significantly (at the cost of a little
9434 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9435 hardcode_libdir_flag_spec
='-R$libdir'
9437 hardcode_shlibpath_var
=no
9440 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9442 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9444 hardcode_minus_L
=yes
9445 hardcode_shlibpath_var
=no
9448 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9449 freebsd
* | dragonfly
*)
9450 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9451 hardcode_libdir_flag_spec
='-R$libdir'
9453 hardcode_shlibpath_var
=no
9457 if test "$GCC" = yes; then
9458 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'
9460 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'
9462 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9463 hardcode_libdir_separator
=:
9466 # hardcode_minus_L: Not really in the search PATH,
9467 # but as the default location of the library.
9468 hardcode_minus_L
=yes
9469 export_dynamic_flag_spec
='${wl}-E'
9473 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
9474 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9476 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9478 if test "$with_gnu_ld" = no
; then
9479 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9480 hardcode_libdir_separator
=:
9483 export_dynamic_flag_spec
='${wl}-E'
9485 # hardcode_minus_L: Not really in the search PATH,
9486 # but as the default location of the library.
9487 hardcode_minus_L
=yes
9492 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
9495 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9498 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9501 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9507 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9510 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9513 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9517 if test "$with_gnu_ld" = no
; then
9518 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9519 hardcode_libdir_separator
=:
9523 hardcode_libdir_flag_spec_ld
='+b $libdir'
9525 hardcode_shlibpath_var
=no
9529 export_dynamic_flag_spec
='${wl}-E'
9531 # hardcode_minus_L: Not really in the search PATH,
9532 # but as the default location of the library.
9533 hardcode_minus_L
=yes
9539 irix5
* | irix6
* | nonstopux
*)
9540 if test "$GCC" = yes; then
9541 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'
9543 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'
9544 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
9546 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9547 hardcode_libdir_separator
=:
9548 link_all_deplibs
=yes
9551 netbsd
* | netbsdelf
*-gnu)
9552 if echo __ELF__
| $CC -E - | grep __ELF__
>/dev
/null
; then
9553 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9555 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9557 hardcode_libdir_flag_spec
='-R$libdir'
9559 hardcode_shlibpath_var
=no
9563 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9565 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9566 hardcode_libdir_separator
=:
9567 hardcode_shlibpath_var
=no
9571 if test -f /usr
/libexec
/ld.so
; then
9573 hardcode_shlibpath_var
=no
9574 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9575 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9576 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9577 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
9578 export_dynamic_flag_spec
='${wl}-E'
9581 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
9582 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9583 hardcode_libdir_flag_spec
='-R$libdir'
9586 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9587 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
9597 hardcode_libdir_flag_spec
='-L$libdir'
9598 hardcode_minus_L
=yes
9599 allow_undefined_flag
=unsupported
9600 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'
9601 old_archive_From_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9605 if test "$GCC" = yes; then
9606 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
9607 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'
9609 allow_undefined_flag
=' -expect_unresolved \*'
9610 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'
9612 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9613 hardcode_libdir_separator
=:
9616 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
9617 if test "$GCC" = yes; then
9618 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
9619 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'
9620 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9622 allow_undefined_flag
=' -expect_unresolved \*'
9623 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'
9624 archive_expsym_cmds
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9625 $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'
9627 # Both c and cxx compiler support -rpath directly
9628 hardcode_libdir_flag_spec
='-rpath $libdir'
9630 hardcode_libdir_separator
=:
9634 no_undefined_flag
=' -z text'
9635 if test "$GCC" = yes; then
9637 archive_cmds
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9638 archive_expsym_cmds
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9639 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9642 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9643 archive_expsym_cmds
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9644 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9646 hardcode_libdir_flag_spec
='-R$libdir'
9647 hardcode_shlibpath_var
=no
9649 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
9651 # The compiler driver will combine and reorder linker options,
9652 # but understands `-z linker_flag'. GCC discards it without `$wl',
9653 # but is careful enough not to reorder.
9654 # Supported since Solaris 2.6 (maybe 2.5.1?)
9655 if test "$GCC" = yes; then
9656 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9658 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
9662 link_all_deplibs
=yes
9666 if test "x$host_vendor" = xsequent
; then
9667 # Use $CC to link under sequent, because it throws in some extra .o
9668 # files that make .init and .fini sections work.
9669 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9671 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9673 hardcode_libdir_flag_spec
='-L$libdir'
9675 hardcode_minus_L
=yes
9676 hardcode_shlibpath_var
=no
9680 case $host_vendor in
9682 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9683 hardcode_direct
=yes # is this really true???
9686 ## LD is ld it makes a PLAMLIB
9687 ## CC just makes a GrossModule.
9688 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9689 reload_cmds
='$CC -r -o $output$reload_objs'
9693 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9694 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
9697 runpath_var
='LD_RUN_PATH'
9698 hardcode_shlibpath_var
=no
9702 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9703 hardcode_shlibpath_var
=no
9704 export_dynamic_flag_spec
='-Bexport'
9708 if test -d /usr
/nec
; then
9709 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9710 hardcode_shlibpath_var
=no
9711 runpath_var
=LD_RUN_PATH
9712 hardcode_runpath_var
=yes
9717 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
9718 no_undefined_flag
='${wl}-z,text'
9719 archive_cmds_need_lc
=no
9720 hardcode_shlibpath_var
=no
9721 runpath_var
='LD_RUN_PATH'
9723 if test "$GCC" = yes; then
9724 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9725 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9727 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9728 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9732 sysv5
* | sco3.2v5
* | sco5v6
*)
9733 # Note: We can NOT use -z defs as we might desire, because we do not
9734 # link with -lc, and that would cause any symbols used from libc to
9735 # always be unresolved, which means just about no library would
9736 # ever link correctly. If we're not using GNU ld we use -z text
9737 # though, which does catch some bad symbols but isn't as heavy-handed
9739 no_undefined_flag
='${wl}-z,text'
9740 allow_undefined_flag
='${wl}-z,nodefs'
9741 archive_cmds_need_lc
=no
9742 hardcode_shlibpath_var
=no
9743 hardcode_libdir_flag_spec
='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9744 hardcode_libdir_separator
=':'
9745 link_all_deplibs
=yes
9746 export_dynamic_flag_spec
='${wl}-Bexport'
9747 runpath_var
='LD_RUN_PATH'
9749 if test "$GCC" = yes; then
9750 archive_cmds
='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9751 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9753 archive_cmds
='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9754 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9759 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9760 hardcode_libdir_flag_spec
='-L$libdir'
9761 hardcode_shlibpath_var
=no
9770 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9771 echo "${ECHO_T}$ld_shlibs" >&6; }
9772 test "$ld_shlibs" = no
&& can_build_shared
=no
9775 # Do we need to explicitly link libc?
9777 case "x$archive_cmds_need_lc" in
9779 # Assume -lc should be added
9780 archive_cmds_need_lc
=yes
9782 if test "$enable_shared" = yes && test "$GCC" = yes; then
9783 case $archive_cmds in
9785 # FIXME: we may have to deal with multi-command sequences.
9788 # Test whether the compiler implicitly links with -lc since on some
9789 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9790 # to ld, don't add -lc before -lgcc.
9791 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9792 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9794 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
9796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9797 (eval $ac_compile) 2>&5
9799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9800 (exit $ac_status); } 2>conftest.err
; then
9803 libobjs
=conftest.
$ac_objext
9805 wl
=$lt_prog_compiler_wl
9806 pic_flag
=$lt_prog_compiler_pic
9812 lt_save_allow_undefined_flag
=$allow_undefined_flag
9813 allow_undefined_flag
=
9814 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9815 (eval $archive_cmds 2\
>\
&1 \
| grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
9817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9818 (exit $ac_status); }
9820 archive_cmds_need_lc
=no
9822 archive_cmds_need_lc
=yes
9824 allow_undefined_flag
=$lt_save_allow_undefined_flag
9826 cat conftest.err
1>&5
9829 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9830 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9837 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9838 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9840 libname_spec
='lib$name'
9848 shlibpath_overrides_runpath
=unknown
9850 dynamic_linker
="$host_os ld.so"
9851 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
9853 if test "$GCC" = yes; then
9855 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
9856 *) lt_awk_arg
="/^libraries:/" ;;
9858 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9859 if echo "$lt_search_path_spec" | grep ';' >/dev
/null
; then
9860 # if the path contains ";" then we assume it to be the separator
9861 # otherwise default to the standard path separator (i.e. ":") - it is
9862 # assumed that no part of a normal pathname contains ";" but that should
9863 # okay in the real world where ";" in dirpaths is itself problematic.
9864 lt_search_path_spec
=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9866 lt_search_path_spec
=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9868 # Ok, now we have the path, separated by spaces, we can step through it
9869 # and add multilib dir if necessary.
9870 lt_tmp_lt_search_path_spec
=
9871 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9872 for lt_sys_path
in $lt_search_path_spec; do
9873 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9874 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9876 test -d "$lt_sys_path" && \
9877 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
9880 lt_search_path_spec
=`echo $lt_tmp_lt_search_path_spec | awk '
9881 BEGIN {RS=" "; FS="/|\n";} {
9884 for (lt_i = NF; lt_i > 0; lt_i--) {
9885 if ($lt_i != "" && $lt_i != ".") {
9886 if ($lt_i == "..") {
9889 if (lt_count == 0) {
9890 lt_foo="/" $lt_i lt_foo;
9897 if (lt_foo != "") { lt_freq[lt_foo]++; }
9898 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9900 sys_lib_search_path_spec
=`echo $lt_search_path_spec`
9902 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
9904 need_lib_prefix
=unknown
9905 hardcode_into_libs
=no
9907 # when you set need_version to no, make sure it does not cause -set_version
9908 # flags to be left without arguments
9909 need_version
=unknown
9914 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
9915 shlibpath_var
=LIBPATH
9917 # AIX 3 has no versioning support, so we append a major version to the name.
9918 soname_spec
='${libname}${release}${shared_ext}$major'
9925 hardcode_into_libs
=yes
9926 if test "$host_cpu" = ia64
; then
9927 # AIX 5 supports IA64
9928 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9929 shlibpath_var
=LD_LIBRARY_PATH
9931 # With GCC up to 2.95.x, collect2 would create an import file
9932 # for dependence libraries. The import file would start with
9933 # the line `#! .'. This would cause the generated library to
9934 # depend on `.', always an invalid library. This was fixed in
9935 # development snapshots of GCC prior to 3.0.
9937 aix4
| aix4.
[01] | aix4.
[01].
*)
9938 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9940 echo '#endif'; } | ${CC} -E - | grep yes > /dev
/null
; then
9947 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9948 # soname into executable. Probably we can add versioning support to
9949 # collect2, so additional links can be useful in future.
9950 if test "$aix_use_runtimelinking" = yes; then
9951 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9952 # instead of lib<name>.a to let people know that these are not
9953 # typical AIX shared libraries.
9954 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9956 # We preserve .a as extension for shared libraries through AIX4.2
9957 # and later when we are not doing run time linking.
9958 library_names_spec
='${libname}${release}.a $libname.a'
9959 soname_spec
='${libname}${release}${shared_ext}$major'
9961 shlibpath_var
=LIBPATH
9966 library_names_spec
='$libname.ixlibrary $libname.a'
9967 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9968 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'
9972 library_names_spec
='${libname}${shared_ext}'
9973 dynamic_linker
="$host_os ld.so"
9974 shlibpath_var
=LIBRARY_PATH
9980 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9981 soname_spec
='${libname}${release}${shared_ext}$major'
9982 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
9983 shlibpath_var
=LD_LIBRARY_PATH
9984 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9985 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
9986 # the default ld.so.conf also contains /usr/contrib/lib and
9987 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9988 # libtool to hard-code these into programs
9991 cygwin
* | mingw
* | pw32
*)
9992 version_type
=windows
9997 case $GCC,$host_os in
9998 yes,cygwin
* | yes,mingw
* | yes,pw32
*)
9999 library_names_spec
='$libname.dll.a'
10000 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10001 postinstall_cmds
='base_file=`basename \${file}`~
10002 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10003 dldir=$destdir/`dirname \$dlpath`~
10004 test -d \$dldir || mkdir -p \$dldir~
10005 $install_prog $dir/$dlname \$dldir/$dlname~
10006 chmod a+x \$dldir/$dlname'
10007 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10008 dlpath=$dir/\$dldll~
10010 shlibpath_overrides_runpath
=yes
10014 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10015 soname_spec
='`echo ${libname} | sed -e 's
/^lib
/cyg
/'``echo ${release} | $SED -e 's
/[.
]/-/g
'`${versuffix}${shared_ext}'
10016 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
10019 # MinGW DLLs use traditional 'lib' prefix
10020 soname_spec
='${libname}`echo ${release} | $SED -e 's
/[.
]/-/g
'`${versuffix}${shared_ext}'
10021 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10022 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev
/null
; then
10023 # It is most probably a Windows format PATH printed by
10024 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10025 # path with ; separators, and with drive letters. We can handle the
10026 # drive letters (cygwin fileutils understands them), so leave them,
10027 # especially as we might pass files found there to a mingw objdump,
10028 # which wouldn't understand a cygwinified path. Ahh.
10029 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10031 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10035 # pw32 DLLs use 'pw' prefix rather than 'lib'
10036 library_names_spec
='`echo ${libname} | sed -e 's
/^lib
/pw
/'``echo ${release} | $SED -e 's
/[.
]/-/g
'`${versuffix}${shared_ext}'
10042 library_names_spec
='${libname}`echo ${release} | $SED -e 's
/[.
]/-/g
'`${versuffix}${shared_ext} $libname.lib'
10045 dynamic_linker
='Win32 ld.exe'
10046 # FIXME: first we should search . and the directory the executable is in
10050 darwin
* | rhapsody
*)
10051 dynamic_linker
="$host_os dyld"
10052 version_type
=darwin
10055 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10056 soname_spec
='${libname}${release}${major}$shared_ext'
10057 shlibpath_overrides_runpath
=yes
10058 shlibpath_var
=DYLD_LIBRARY_PATH
10059 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
10061 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
10062 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
10069 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10070 soname_spec
='${libname}${release}${shared_ext}$major'
10071 shlibpath_var
=LD_LIBRARY_PATH
10078 freebsd
* | dragonfly
*)
10079 # DragonFly does not have aout. When/if they implement a new
10080 # versioning mechanism, adjust this.
10081 if test -x /usr
/bin
/objformat
; then
10082 objformat
=`/usr/bin/objformat`
10085 freebsd
[123]*) objformat
=aout
;;
10086 *) objformat
=elf
;;
10089 version_type
=freebsd
-$objformat
10090 case $version_type in
10092 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10097 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10101 shlibpath_var
=LD_LIBRARY_PATH
10104 shlibpath_overrides_runpath
=yes
10106 freebsd3.
[01]* | freebsdelf3.
[01]*)
10107 shlibpath_overrides_runpath
=yes
10108 hardcode_into_libs
=yes
10110 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
10111 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
10112 shlibpath_overrides_runpath
=no
10113 hardcode_into_libs
=yes
10115 *) # from 4.6 on, and DragonFly
10116 shlibpath_overrides_runpath
=yes
10117 hardcode_into_libs
=yes
10126 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10127 soname_spec
='${libname}${release}${shared_ext}$major'
10128 shlibpath_var
=LD_LIBRARY_PATH
10129 hardcode_into_libs
=yes
10132 hpux9
* | hpux10
* | hpux11
*)
10133 # Give a soname corresponding to the major version so that dld.sl refuses to
10134 # link against other versions.
10141 hardcode_into_libs
=yes
10142 dynamic_linker
="$host_os dld.so"
10143 shlibpath_var
=LD_LIBRARY_PATH
10144 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
10145 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10146 soname_spec
='${libname}${release}${shared_ext}$major'
10147 if test "X$HPUX_IA64_MODE" = X32
; then
10148 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10150 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
10152 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
10156 hardcode_into_libs
=yes
10157 dynamic_linker
="$host_os dld.sl"
10158 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
10159 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
10160 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10161 soname_spec
='${libname}${release}${shared_ext}$major'
10162 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10163 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
10167 dynamic_linker
="$host_os dld.sl"
10168 shlibpath_var
=SHLIB_PATH
10169 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
10170 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10171 soname_spec
='${libname}${release}${shared_ext}$major'
10174 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10175 postinstall_cmds
='chmod 555 $lib'
10182 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10183 soname_spec
='${libname}${release}${shared_ext}$major'
10184 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
10185 shlibpath_var
=LD_LIBRARY_PATH
10186 shlibpath_overrides_runpath
=no
10187 hardcode_into_libs
=yes
10190 irix5
* | irix6
* | nonstopux
*)
10192 nonstopux
*) version_type
=nonstopux
;;
10194 if test "$lt_cv_prog_gnu_ld" = yes; then
10202 soname_spec
='${libname}${release}${shared_ext}$major'
10203 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10205 irix5
* | nonstopux
*)
10206 libsuff
= shlibsuff
=
10209 case $LD in # libtool.m4 will add one of these switches to LD
10210 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10211 libsuff
= shlibsuff
= libmagic
=32-bit;;
10212 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10213 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
10214 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10215 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
10216 *) libsuff
= shlibsuff
= libmagic
=never
-match;;
10220 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
10221 shlibpath_overrides_runpath
=no
10222 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10223 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
10224 hardcode_into_libs
=yes
10227 # No shared lib support for Linux oldld, aout, or coff.
10228 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
10232 # This must be Linux ELF.
10233 linux
* | k
*bsd
*-gnu)
10237 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10238 soname_spec
='${libname}${release}${shared_ext}$major'
10239 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10240 shlibpath_var
=LD_LIBRARY_PATH
10241 shlibpath_overrides_runpath
=no
10242 # This implies no fast_install, which is unacceptable.
10243 # Some rework will be needed to allow for fast_install
10244 # before this can be enabled.
10245 hardcode_into_libs
=yes
10247 # Append ld.so.conf contents to the search path
10248 if test -f /etc
/ld.so.conf
; then
10249 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' ' '`
10250 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
10253 # We used to test for /lib/ld.so.1 and disable shared libraries on
10254 # powerpc, because MkLinux only supported shared libraries with the
10255 # GNU dynamic linker. Since this was broken with cross compilers,
10256 # most powerpc-linux boxes support dynamic linking these days and
10257 # people can always --disable-shared, the test was removed, and we
10258 # assume the GNU/Linux dynamic linker is in use.
10259 dynamic_linker
='GNU/Linux ld.so'
10266 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10267 soname_spec
='${libname}${release}${shared_ext}$major'
10268 shlibpath_var
=LD_LIBRARY_PATH
10269 shlibpath_overrides_runpath
=no
10270 hardcode_into_libs
=yes
10271 dynamic_linker
='NetBSD ld.elf_so'
10278 if echo __ELF__
| $CC -E - | grep __ELF__
>/dev
/null
; then
10279 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10280 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10281 dynamic_linker
='NetBSD (a.out) ld.so'
10283 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10284 soname_spec
='${libname}${release}${shared_ext}$major'
10285 dynamic_linker
='NetBSD ld.elf_so'
10287 shlibpath_var
=LD_LIBRARY_PATH
10288 shlibpath_overrides_runpath
=yes
10289 hardcode_into_libs
=yes
10294 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10295 shlibpath_var
=LD_LIBRARY_PATH
10296 shlibpath_overrides_runpath
=yes
10303 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10304 soname_spec
='${libname}${release}${shared_ext}$major'
10305 shlibpath_var
=LD_LIBRARY_PATH
10306 shlibpath_overrides_runpath
=yes
10311 sys_lib_dlsearch_path_spec
="/usr/lib"
10313 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10315 openbsd3.3
| openbsd3.3.
*) need_version
=yes ;;
10316 *) need_version
=no
;;
10318 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10319 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10320 shlibpath_var
=LD_LIBRARY_PATH
10321 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10323 openbsd2.
[89] | openbsd2.
[89].
*)
10324 shlibpath_overrides_runpath
=no
10327 shlibpath_overrides_runpath
=yes
10331 shlibpath_overrides_runpath
=yes
10336 libname_spec
='$name'
10339 library_names_spec
='$libname${shared_ext} $libname.a'
10340 dynamic_linker
='OS/2 ld.exe'
10341 shlibpath_var
=LIBPATH
10344 osf3
* | osf4
* | osf5
*)
10348 soname_spec
='${libname}${release}${shared_ext}$major'
10349 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10350 shlibpath_var
=LD_LIBRARY_PATH
10351 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10352 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
10363 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10364 soname_spec
='${libname}${release}${shared_ext}$major'
10365 shlibpath_var
=LD_LIBRARY_PATH
10366 shlibpath_overrides_runpath
=yes
10367 hardcode_into_libs
=yes
10368 # ldd complains unless libraries are executable
10369 postinstall_cmds
='chmod +x $lib'
10374 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10375 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10376 shlibpath_var
=LD_LIBRARY_PATH
10377 shlibpath_overrides_runpath
=yes
10378 if test "$with_gnu_ld" = yes; then
10386 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10387 soname_spec
='${libname}${release}${shared_ext}$major'
10388 shlibpath_var
=LD_LIBRARY_PATH
10389 case $host_vendor in
10391 shlibpath_overrides_runpath
=no
10393 export_dynamic_flag_spec
='${wl}-Blargedynsym'
10394 runpath_var
=LD_RUN_PATH
10402 shlibpath_overrides_runpath
=no
10403 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
10409 if test -d /usr
/nec
;then
10411 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10412 soname_spec
='$libname${shared_ext}.$major'
10413 shlibpath_var
=LD_LIBRARY_PATH
10417 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
10418 version_type
=freebsd
-elf
10421 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10422 soname_spec
='${libname}${release}${shared_ext}$major'
10423 shlibpath_var
=LD_LIBRARY_PATH
10424 hardcode_into_libs
=yes
10425 if test "$with_gnu_ld" = yes; then
10426 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10427 shlibpath_overrides_runpath
=no
10429 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
10430 shlibpath_overrides_runpath
=yes
10433 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
10437 sys_lib_dlsearch_path_spec
='/usr/lib'
10442 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10443 soname_spec
='${libname}${release}${shared_ext}$major'
10444 shlibpath_var
=LD_LIBRARY_PATH
10451 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10452 echo "${ECHO_T}$dynamic_linker" >&6; }
10453 test "$dynamic_linker" = no
&& can_build_shared
=no
10455 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
10456 if test "$GCC" = yes; then
10457 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10460 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10461 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
10463 if test -n "$hardcode_libdir_flag_spec" || \
10464 test -n "$runpath_var" || \
10465 test "X$hardcode_automatic" = "Xyes" ; then
10467 # We can hardcode non-existant directories.
10468 if test "$hardcode_direct" != no
&&
10469 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10470 # have to relink, otherwise we might link with an installed library
10471 # when we should be linking with a yet-to-be-installed one
10472 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10473 test "$hardcode_minus_L" != no
; then
10474 # Linking always hardcodes the temporary library directory.
10475 hardcode_action
=relink
10477 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10478 hardcode_action
=immediate
10481 # We cannot hardcode anything, or else we can only hardcode existing
10483 hardcode_action
=unsupported
10485 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
10486 echo "${ECHO_T}$hardcode_action" >&6; }
10488 if test "$hardcode_action" = relink
; then
10489 # Fast installation is not supported
10490 enable_fast_install
=no
10491 elif test "$shlibpath_overrides_runpath" = yes ||
10492 test "$enable_shared" = no
; then
10493 # Fast installation is not necessary
10494 enable_fast_install
=needless
10499 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10500 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
10501 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev
/null
; then
10502 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
10503 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
10504 { echo "$as_me:$LINENO: result: yes" >&5
10505 echo "${ECHO_T}yes" >&6; }
10507 # FIXME - insert some real tests, host_os isn't really good enough
10510 if test -n "$STRIP" ; then
10511 striplib
="$STRIP -x"
10512 old_striplib
="$STRIP -S"
10513 { echo "$as_me:$LINENO: result: yes" >&5
10514 echo "${ECHO_T}yes" >&6; }
10516 { echo "$as_me:$LINENO: result: no" >&5
10517 echo "${ECHO_T}no" >&6; }
10521 { echo "$as_me:$LINENO: result: no" >&5
10522 echo "${ECHO_T}no" >&6; }
10527 if test "x$enable_dlopen" != xyes
; then
10528 enable_dlopen
=unknown
10529 enable_dlopen_self
=unknown
10530 enable_dlopen_self_static
=unknown
10537 lt_cv_dlopen
="load_add_on"
10539 lt_cv_dlopen_self
=yes
10543 lt_cv_dlopen
="LoadLibrary"
10548 lt_cv_dlopen
="dlopen"
10553 # if libdl is installed we need to link against it
10554 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10555 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10556 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10557 echo $ECHO_N "(cached) $ECHO_C" >&6
10559 ac_check_lib_save_LIBS
=$LIBS
10561 cat >conftest.
$ac_ext <<_ACEOF
10564 cat confdefs.h
>>conftest.
$ac_ext
10565 cat >>conftest.
$ac_ext <<_ACEOF
10566 /* end confdefs.h. */
10568 /* Override any GCC internal prototype to avoid an error.
10569 Use char because int might match the return type of a GCC
10570 builtin and then its argument prototype would still apply. */
10583 rm -f conftest.
$ac_objext conftest
$ac_exeext
10584 if { (ac_try
="$ac_link"
10585 case "(($ac_try" in
10586 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
10587 *) ac_try_echo=$ac_try;;
10589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10590 (eval "$ac_link") 2>conftest.er1
10592 grep -v '^ *+' conftest.er1 >conftest.err
10594 cat conftest.err >&5
10595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10596 (exit $ac_status); } && {
10597 test -z "$ac_c_werror_flag" ||
10598 test ! -s conftest.err
10599 } && test -s conftest$ac_exeext &&
10600 $as_test_x conftest$ac_exeext; then
10601 ac_cv_lib_dl_dlopen=yes
10603 echo "$as_me: failed program was:" >&5
10604 sed 's/^/| /' conftest.$ac_ext >&5
10606 ac_cv_lib_dl_dlopen=no
10609 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10610 conftest$ac_exeext conftest.$ac_ext
10611 LIBS=$ac_check_lib_save_LIBS
10613 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10614 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10615 if test $ac_cv_lib_dl_dlopen = yes; then
10616 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10619 lt_cv_dlopen="dyld"
10621 lt_cv_dlopen_self=yes
10628 { echo "$as_me:$LINENO: checking for shl_load" >&5
10629 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10630 if test "${ac_cv_func_shl_load+set}" = set; then
10631 echo $ECHO_N "(cached) $ECHO_C" >&6
10633 cat >conftest.$ac_ext <<_ACEOF
10636 cat confdefs.h >>conftest.$ac_ext
10637 cat >>conftest.$ac_ext <<_ACEOF
10638 /* end confdefs.h. */
10639 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10640 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10641 #define shl_load innocuous_shl_load
10643 /* System header to define __stub macros and hopefully few prototypes,
10644 which can conflict with char shl_load (); below.
10645 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10646 <limits.h> exists even on freestanding compilers. */
10649 # include <limits.h>
10651 # include <assert.h>
10656 /* Override any GCC internal prototype to avoid an error.
10657 Use char because int might match the return type of a GCC
10658 builtin and then its argument prototype would still apply. */
10663 /* The GNU C library defines this for functions which it implements
10664 to always fail with ENOSYS. Some functions are actually named
10665 something starting with __ and the normal name is an alias. */
10666 #if defined __stub_shl_load || defined __stub___shl_load
10673 return shl_load ();
10678 rm -f conftest.$ac_objext conftest$ac_exeext
10679 if { (ac_try="$ac_link"
10680 case "(($ac_try" in
10681 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
10682 *) ac_try_echo
=$ac_try;;
10684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10685 (eval "$ac_link") 2>conftest.er1
10687 grep -v '^ *+' conftest.er1
>conftest.err
10689 cat conftest.err
>&5
10690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10691 (exit $ac_status); } && {
10692 test -z "$ac_c_werror_flag" ||
10693 test ! -s conftest.err
10694 } && test -s conftest
$ac_exeext &&
10695 $as_test_x conftest
$ac_exeext; then
10696 ac_cv_func_shl_load
=yes
10698 echo "$as_me: failed program was:" >&5
10699 sed 's/^/| /' conftest.
$ac_ext >&5
10701 ac_cv_func_shl_load
=no
10704 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10705 conftest
$ac_exeext conftest.
$ac_ext
10707 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10708 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10709 if test $ac_cv_func_shl_load = yes; then
10710 lt_cv_dlopen
="shl_load"
10712 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10713 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10714 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10715 echo $ECHO_N "(cached) $ECHO_C" >&6
10717 ac_check_lib_save_LIBS
=$LIBS
10719 cat >conftest.
$ac_ext <<_ACEOF
10722 cat confdefs.h
>>conftest.
$ac_ext
10723 cat >>conftest.
$ac_ext <<_ACEOF
10724 /* end confdefs.h. */
10726 /* Override any GCC internal prototype to avoid an error.
10727 Use char because int might match the return type of a GCC
10728 builtin and then its argument prototype would still apply. */
10736 return shl_load ();
10741 rm -f conftest.
$ac_objext conftest
$ac_exeext
10742 if { (ac_try
="$ac_link"
10743 case "(($ac_try" in
10744 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
10745 *) ac_try_echo=$ac_try;;
10747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10748 (eval "$ac_link") 2>conftest.er1
10750 grep -v '^ *+' conftest.er1 >conftest.err
10752 cat conftest.err >&5
10753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10754 (exit $ac_status); } && {
10755 test -z "$ac_c_werror_flag" ||
10756 test ! -s conftest.err
10757 } && test -s conftest$ac_exeext &&
10758 $as_test_x conftest$ac_exeext; then
10759 ac_cv_lib_dld_shl_load=yes
10761 echo "$as_me: failed program was:" >&5
10762 sed 's/^/| /' conftest.$ac_ext >&5
10764 ac_cv_lib_dld_shl_load=no
10767 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10768 conftest$ac_exeext conftest.$ac_ext
10769 LIBS=$ac_check_lib_save_LIBS
10771 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10772 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10773 if test $ac_cv_lib_dld_shl_load = yes; then
10774 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10776 { echo "$as_me:$LINENO: checking for dlopen" >&5
10777 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10778 if test "${ac_cv_func_dlopen+set}" = set; then
10779 echo $ECHO_N "(cached) $ECHO_C" >&6
10781 cat >conftest.$ac_ext <<_ACEOF
10784 cat confdefs.h >>conftest.$ac_ext
10785 cat >>conftest.$ac_ext <<_ACEOF
10786 /* end confdefs.h. */
10787 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10788 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10789 #define dlopen innocuous_dlopen
10791 /* System header to define __stub macros and hopefully few prototypes,
10792 which can conflict with char dlopen (); below.
10793 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10794 <limits.h> exists even on freestanding compilers. */
10797 # include <limits.h>
10799 # include <assert.h>
10804 /* Override any GCC internal prototype to avoid an error.
10805 Use char because int might match the return type of a GCC
10806 builtin and then its argument prototype would still apply. */
10811 /* The GNU C library defines this for functions which it implements
10812 to always fail with ENOSYS. Some functions are actually named
10813 something starting with __ and the normal name is an alias. */
10814 #if defined __stub_dlopen || defined __stub___dlopen
10826 rm -f conftest.$ac_objext conftest$ac_exeext
10827 if { (ac_try="$ac_link"
10828 case "(($ac_try" in
10829 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
10830 *) ac_try_echo
=$ac_try;;
10832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10833 (eval "$ac_link") 2>conftest.er1
10835 grep -v '^ *+' conftest.er1
>conftest.err
10837 cat conftest.err
>&5
10838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10839 (exit $ac_status); } && {
10840 test -z "$ac_c_werror_flag" ||
10841 test ! -s conftest.err
10842 } && test -s conftest
$ac_exeext &&
10843 $as_test_x conftest
$ac_exeext; then
10844 ac_cv_func_dlopen
=yes
10846 echo "$as_me: failed program was:" >&5
10847 sed 's/^/| /' conftest.
$ac_ext >&5
10849 ac_cv_func_dlopen
=no
10852 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10853 conftest
$ac_exeext conftest.
$ac_ext
10855 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10856 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10857 if test $ac_cv_func_dlopen = yes; then
10858 lt_cv_dlopen
="dlopen"
10860 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10861 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10862 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10863 echo $ECHO_N "(cached) $ECHO_C" >&6
10865 ac_check_lib_save_LIBS
=$LIBS
10867 cat >conftest.
$ac_ext <<_ACEOF
10870 cat confdefs.h
>>conftest.
$ac_ext
10871 cat >>conftest.
$ac_ext <<_ACEOF
10872 /* end confdefs.h. */
10874 /* Override any GCC internal prototype to avoid an error.
10875 Use char because int might match the return type of a GCC
10876 builtin and then its argument prototype would still apply. */
10889 rm -f conftest.
$ac_objext conftest
$ac_exeext
10890 if { (ac_try
="$ac_link"
10891 case "(($ac_try" in
10892 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
10893 *) ac_try_echo=$ac_try;;
10895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10896 (eval "$ac_link") 2>conftest.er1
10898 grep -v '^ *+' conftest.er1 >conftest.err
10900 cat conftest.err >&5
10901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10902 (exit $ac_status); } && {
10903 test -z "$ac_c_werror_flag" ||
10904 test ! -s conftest.err
10905 } && test -s conftest$ac_exeext &&
10906 $as_test_x conftest$ac_exeext; then
10907 ac_cv_lib_dl_dlopen=yes
10909 echo "$as_me: failed program was:" >&5
10910 sed 's/^/| /' conftest.$ac_ext >&5
10912 ac_cv_lib_dl_dlopen=no
10915 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10916 conftest$ac_exeext conftest.$ac_ext
10917 LIBS=$ac_check_lib_save_LIBS
10919 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10920 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10921 if test $ac_cv_lib_dl_dlopen = yes; then
10922 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10924 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10925 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10926 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10927 echo $ECHO_N "(cached) $ECHO_C" >&6
10929 ac_check_lib_save_LIBS=$LIBS
10930 LIBS="-lsvld $LIBS"
10931 cat >conftest.$ac_ext <<_ACEOF
10934 cat confdefs.h >>conftest.$ac_ext
10935 cat >>conftest.$ac_ext <<_ACEOF
10936 /* end confdefs.h. */
10938 /* Override any GCC internal prototype to avoid an error.
10939 Use char because int might match the return type of a GCC
10940 builtin and then its argument prototype would still apply. */
10953 rm -f conftest.$ac_objext conftest$ac_exeext
10954 if { (ac_try="$ac_link"
10955 case "(($ac_try" in
10956 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
10957 *) ac_try_echo
=$ac_try;;
10959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10960 (eval "$ac_link") 2>conftest.er1
10962 grep -v '^ *+' conftest.er1
>conftest.err
10964 cat conftest.err
>&5
10965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10966 (exit $ac_status); } && {
10967 test -z "$ac_c_werror_flag" ||
10968 test ! -s conftest.err
10969 } && test -s conftest
$ac_exeext &&
10970 $as_test_x conftest
$ac_exeext; then
10971 ac_cv_lib_svld_dlopen
=yes
10973 echo "$as_me: failed program was:" >&5
10974 sed 's/^/| /' conftest.
$ac_ext >&5
10976 ac_cv_lib_svld_dlopen
=no
10979 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10980 conftest
$ac_exeext conftest.
$ac_ext
10981 LIBS
=$ac_check_lib_save_LIBS
10983 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10984 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10985 if test $ac_cv_lib_svld_dlopen = yes; then
10986 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
10988 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10989 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10990 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10991 echo $ECHO_N "(cached) $ECHO_C" >&6
10993 ac_check_lib_save_LIBS
=$LIBS
10995 cat >conftest.
$ac_ext <<_ACEOF
10998 cat confdefs.h
>>conftest.
$ac_ext
10999 cat >>conftest.
$ac_ext <<_ACEOF
11000 /* end confdefs.h. */
11002 /* Override any GCC internal prototype to avoid an error.
11003 Use char because int might match the return type of a GCC
11004 builtin and then its argument prototype would still apply. */
11012 return dld_link ();
11017 rm -f conftest.
$ac_objext conftest
$ac_exeext
11018 if { (ac_try
="$ac_link"
11019 case "(($ac_try" in
11020 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
11021 *) ac_try_echo=$ac_try;;
11023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11024 (eval "$ac_link") 2>conftest.er1
11026 grep -v '^ *+' conftest.er1 >conftest.err
11028 cat conftest.err >&5
11029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11030 (exit $ac_status); } && {
11031 test -z "$ac_c_werror_flag" ||
11032 test ! -s conftest.err
11033 } && test -s conftest$ac_exeext &&
11034 $as_test_x conftest$ac_exeext; then
11035 ac_cv_lib_dld_dld_link=yes
11037 echo "$as_me: failed program was:" >&5
11038 sed 's/^/| /' conftest.$ac_ext >&5
11040 ac_cv_lib_dld_dld_link=no
11043 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11044 conftest$ac_exeext conftest.$ac_ext
11045 LIBS=$ac_check_lib_save_LIBS
11047 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11048 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11049 if test $ac_cv_lib_dld_dld_link = yes; then
11050 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11071 if test "x$lt_cv_dlopen" != xno; then
11077 case $lt_cv_dlopen in
11079 save_CPPFLAGS="$CPPFLAGS"
11080 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11082 save_LDFLAGS="$LDFLAGS"
11083 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11086 LIBS="$lt_cv_dlopen_libs $LIBS"
11088 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11089 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
11090 if test "${lt_cv_dlopen_self+set}" = set; then
11091 echo $ECHO_N "(cached) $ECHO_C" >&6
11093 if test "$cross_compiling" = yes; then :
11094 lt_cv_dlopen_self=cross
11096 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11097 lt_status=$lt_dlunknown
11098 cat > conftest.$ac_ext <<EOF
11099 #line 11099 "configure"
11100 #include "confdefs.h"
11109 # define LT_DLGLOBAL RTLD_GLOBAL
11112 # define LT_DLGLOBAL DL_GLOBAL
11114 # define LT_DLGLOBAL 0
11118 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11119 find out it does not work in some platform. */
11120 #ifndef LT_DLLAZY_OR_NOW
11122 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11125 # define LT_DLLAZY_OR_NOW DL_LAZY
11128 # define LT_DLLAZY_OR_NOW RTLD_NOW
11131 # define LT_DLLAZY_OR_NOW DL_NOW
11133 # define LT_DLLAZY_OR_NOW 0
11141 extern "C" void exit (int);
11144 void fnord() { int i=42;}
11147 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11148 int status = $lt_dlunknown;
11152 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11153 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11154 /* dlclose (self); */
11162 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11163 (eval $ac_link) 2>&5
11165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11166 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11167 (./conftest; exit; ) >&5 2>/dev/null
11169 case x$lt_status in
11170 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11171 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11172 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11175 # compilation failed
11176 lt_cv_dlopen_self=no
11183 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11184 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
11186 if test "x$lt_cv_dlopen_self" = xyes; then
11187 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11188 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11189 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
11190 if test "${lt_cv_dlopen_self_static+set}" = set; then
11191 echo $ECHO_N "(cached) $ECHO_C" >&6
11193 if test "$cross_compiling" = yes; then :
11194 lt_cv_dlopen_self_static=cross
11196 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11197 lt_status=$lt_dlunknown
11198 cat > conftest.$ac_ext <<EOF
11199 #line 11199 "configure"
11200 #include "confdefs.h"
11209 # define LT_DLGLOBAL RTLD_GLOBAL
11212 # define LT_DLGLOBAL DL_GLOBAL
11214 # define LT_DLGLOBAL 0
11218 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11219 find out it does not work in some platform. */
11220 #ifndef LT_DLLAZY_OR_NOW
11222 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11225 # define LT_DLLAZY_OR_NOW DL_LAZY
11228 # define LT_DLLAZY_OR_NOW RTLD_NOW
11231 # define LT_DLLAZY_OR_NOW DL_NOW
11233 # define LT_DLLAZY_OR_NOW 0
11241 extern "C" void exit (int);
11244 void fnord() { int i=42;}
11247 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11248 int status = $lt_dlunknown;
11252 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11253 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11254 /* dlclose (self); */
11262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11263 (eval $ac_link) 2>&5
11265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11266 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11267 (./conftest; exit; ) >&5 2>/dev/null
11269 case x$lt_status in
11270 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11271 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11272 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11275 # compilation failed
11276 lt_cv_dlopen_self_static=no
11283 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11284 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
11287 CPPFLAGS="$save_CPPFLAGS"
11288 LDFLAGS="$save_LDFLAGS"
11293 case $lt_cv_dlopen_self in
11294 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11295 *) enable_dlopen_self=unknown ;;
11298 case $lt_cv_dlopen_self_static in
11299 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11300 *) enable_dlopen_self_static=unknown ;;
11305 # Report which library types will actually be built
11306 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11307 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
11308 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
11309 echo "${ECHO_T}$can_build_shared" >&6; }
11311 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11312 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
11313 test "$can_build_shared" = "no" && enable_shared=no
11315 # On AIX, shared libraries and static libraries use the same namespace, and
11316 # are all built from PIC.
11319 test "$enable_shared" = yes && enable_static=no
11320 if test -n "$RANLIB"; then
11321 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11322 postinstall_cmds='$RANLIB $lib'
11327 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11328 test "$enable_shared" = yes && enable_static=no
11332 { echo "$as_me:$LINENO: result: $enable_shared" >&5
11333 echo "${ECHO_T}$enable_shared" >&6; }
11335 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11336 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
11337 # Make sure either enable_shared or enable_static is yes.
11338 test "$enable_shared" = yes || enable_static=yes
11339 { echo "$as_me:$LINENO: result: $enable_static" >&5
11340 echo "${ECHO_T}$enable_static" >&6; }
11342 # The else clause should only fire when bootstrapping the
11343 # libtool distribution, otherwise you forgot to ship ltmain.sh
11344 # with your package, and you will get complaints that there are
11345 # no rules to generate ltmain.sh.
11346 if test -f "$ltmain"; then
11347 # See if we are running on zsh, and set the options which allow our commands through
11348 # without removal of \ escapes.
11349 if test -n "${ZSH_VERSION+set}" ; then
11350 setopt NO_GLOB_SUBST
11352 # Now quote all the things that may contain metacharacters while being
11353 # careful not to overquote the AC_SUBSTed values. We take copies of the
11354 # variables and quote the copies for generation of the libtool script.
11355 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
11357 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11358 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11359 deplibs_check_method reload_flag reload_cmds need_locks \
11360 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11361 lt_cv_sys_global_symbol_to_c_name_address \
11362 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11363 old_postinstall_cmds old_postuninstall_cmds \
11367 lt_prog_compiler_wl \
11368 lt_prog_compiler_pic \
11369 lt_prog_compiler_static \
11370 lt_prog_compiler_no_builtin_flag \
11371 export_dynamic_flag_spec \
11372 thread_safe_flag_spec \
11373 whole_archive_flag_spec \
11374 enable_shared_with_static_runtimes \
11376 old_archive_from_new_cmds \
11381 compiler_lib_search_path \
11383 archive_expsym_cmds \
11385 postuninstall_cmds \
11386 old_archive_from_expsyms_cmds \
11387 allow_undefined_flag \
11388 no_undefined_flag \
11389 export_symbols_cmds \
11390 hardcode_libdir_flag_spec \
11391 hardcode_libdir_flag_spec_ld \
11392 hardcode_libdir_separator \
11393 hardcode_automatic \
11395 module_expsym_cmds \
11396 lt_cv_prog_compiler_c_o \
11399 include_expsyms; do
11402 old_archive_cmds | \
11403 old_archive_from_new_cmds | \
11405 archive_expsym_cmds | \
11407 module_expsym_cmds | \
11408 old_archive_from_expsyms_cmds | \
11409 export_symbols_cmds | \
11410 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11411 postinstall_cmds | postuninstall_cmds | \
11412 old_postinstall_cmds | old_postuninstall_cmds | \
11413 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11414 # Double-quote double-evaled strings.
11415 eval "lt_$var=\\\"\`\
$echo \"X\$
$var\" | \
$Xsed -e \"\
$double_quote_subst\" -e \"\
$sed_quote_subst\" -e \"\
$delay_variable_subst\"\
`\\\""
11418 eval "lt_$var=\\\"\`\
$echo \"X\$
$var\" | \
$Xsed -e \"\
$sed_quote_subst\"\
`\\\""
11424 *'\$0 --fallback-echo"')
11425 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11429 cfgfile="${ofile}T"
11430 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11432 { echo "$as_me:$LINENO: creating $ofile" >&5
11433 echo "$as_me: creating $ofile" >&6;}
11435 cat <<__EOF__ >> "$cfgfile"
11438 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11439 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11440 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11442 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
11443 # Free Software Foundation, Inc.
11445 # This file is part of GNU Libtool:
11446 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11448 # This program is free software; you can redistribute it and/or modify
11449 # it under the terms of the GNU General Public License as published by
11450 # the Free Software Foundation; either version 2 of the License, or
11451 # (at your option) any later version.
11453 # This program is distributed in the hope that it will be useful, but
11454 # WITHOUT ANY WARRANTY; without even the implied warranty of
11455 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11456 # General Public License for more details.
11458 # You should have received a copy of the GNU General Public License
11459 # along with this program; if not, write to the Free Software
11460 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11462 # As a special exception to the GNU General Public License, if you
11463 # distribute this file as part of a program that contains a
11464 # configuration script generated by Autoconf, you may include it under
11465 # the same distribution terms that you use for the rest of that program.
11467 # A sed program that does not truncate output.
11470 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11471 Xsed="$SED -e 1s/^X//"
11473 # The HP-UX ksh and POSIX shell print the target directory to stdout
11474 # if CDPATH is set.
11475 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11477 # The names of the tagged configurations supported by this script.
11480 # ### BEGIN LIBTOOL CONFIG
11482 # Libtool was configured on host `(hostname
|| uname
-n) 2>/dev
/null
| sed 1q
`:
11484 # Shell to use when invoking shell scripts.
11487 # Whether or not to build shared libraries.
11488 build_libtool_libs=$enable_shared
11490 # Whether or not to build static libraries.
11491 build_old_libs=$enable_static
11493 # Whether or not to add -lc for building shared libraries.
11494 build_libtool_need_lc=$archive_cmds_need_lc
11496 # Whether or not to disallow shared libs when runtime libs are static
11497 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11499 # Whether or not to optimize for fast installation.
11500 fast_install=$enable_fast_install
11503 host_alias=$host_alias
11507 # The build system.
11508 build_alias=$build_alias
11512 # An echo program that does not interpret backslashes.
11517 AR_FLAGS=$lt_AR_FLAGS
11522 # LTCC compiler flags.
11523 LTCFLAGS=$lt_LTCFLAGS
11525 # A language-specific compiler.
11528 # Is the compiler the GNU C compiler?
11534 # The linker used to build libraries.
11537 # Whether we need hard or soft links.
11540 # A BSD-compatible nm program.
11543 # A symbol stripping program
11546 # Used to examine libraries when file_magic_cmd begins "file"
11547 MAGIC_CMD=$MAGIC_CMD
11549 # Used on cygwin: DLL creation program.
11552 # Used on cygwin: object dumper.
11555 # Used on cygwin: assembler.
11558 # The name of the directory that contains temporary libtool files.
11561 # How to create reloadable object files.
11562 reload_flag=$lt_reload_flag
11563 reload_cmds=$lt_reload_cmds
11565 # How to pass a linker flag through the compiler.
11566 wl=$lt_lt_prog_compiler_wl
11568 # Object file suffix (normally "o").
11569 objext="$ac_objext"
11571 # Old archive suffix (normally "a").
11574 # Shared library suffix (normally ".so").
11575 shrext_cmds='$shrext_cmds'
11577 # Executable file suffix (normally "").
11580 # Additional compiler flags for building library objects.
11581 pic_flag=$lt_lt_prog_compiler_pic
11584 # What is the maximum length of a command?
11585 max_cmd_len=$lt_cv_sys_max_cmd_len
11587 # Does compiler simultaneously support -c and -o options?
11588 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11590 # Must we lock files when doing compilation?
11591 need_locks=$lt_need_locks
11593 # Do we need the lib prefix for modules?
11594 need_lib_prefix=$need_lib_prefix
11596 # Do we need a version for libraries?
11597 need_version=$need_version
11599 # Whether dlopen is supported.
11600 dlopen_support=$enable_dlopen
11602 # Whether dlopen of programs is supported.
11603 dlopen_self=$enable_dlopen_self
11605 # Whether dlopen of statically linked programs is supported.
11606 dlopen_self_static=$enable_dlopen_self_static
11608 # Compiler flag to prevent dynamic linking.
11609 link_static_flag=$lt_lt_prog_compiler_static
11611 # Compiler flag to turn off builtin functions.
11612 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11614 # Compiler flag to allow reflexive dlopens.
11615 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11617 # Compiler flag to generate shared objects directly from archives.
11618 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11620 # Compiler flag to generate thread-safe objects.
11621 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11623 # Library versioning type.
11624 version_type=$version_type
11626 # Format of library name prefix.
11627 libname_spec=$lt_libname_spec
11629 # List of archive names. First name is the real one, the rest are links.
11630 # The last name is the one that the linker finds with -lNAME.
11631 library_names_spec=$lt_library_names_spec
11633 # The coded name of the library, if different from the real name.
11634 soname_spec=$lt_soname_spec
11636 # Commands used to build and install an old-style archive.
11638 old_archive_cmds=$lt_old_archive_cmds
11639 old_postinstall_cmds=$lt_old_postinstall_cmds
11640 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11642 # Create an old-style archive from a shared archive.
11643 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11645 # Create a temporary old-style archive to link instead of a shared archive.
11646 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11648 # Commands used to build and install a shared archive.
11649 archive_cmds=$lt_archive_cmds
11650 archive_expsym_cmds=$lt_archive_expsym_cmds
11651 postinstall_cmds=$lt_postinstall_cmds
11652 postuninstall_cmds=$lt_postuninstall_cmds
11654 # Commands used to build a loadable module (assumed same as above if empty)
11655 module_cmds=$lt_module_cmds
11656 module_expsym_cmds=$lt_module_expsym_cmds
11658 # Commands to strip libraries.
11659 old_striplib=$lt_old_striplib
11660 striplib=$lt_striplib
11662 # Dependencies to place before the objects being linked to create a
11664 predep_objects=$lt_predep_objects
11666 # Dependencies to place after the objects being linked to create a
11668 postdep_objects=$lt_postdep_objects
11670 # Dependencies to place before the objects being linked to create a
11672 predeps=$lt_predeps
11674 # Dependencies to place after the objects being linked to create a
11676 postdeps=$lt_postdeps
11678 # The library search path used internally by the compiler when linking
11679 # a shared library.
11680 compiler_lib_search_path=$lt_compiler_lib_search_path
11682 # Method to check whether dependent libraries are shared objects.
11683 deplibs_check_method=$lt_deplibs_check_method
11685 # Command to use when deplibs_check_method == file_magic.
11686 file_magic_cmd=$lt_file_magic_cmd
11688 # Flag that allows shared libraries with undefined symbols to be built.
11689 allow_undefined_flag=$lt_allow_undefined_flag
11691 # Flag that forces no undefined symbols.
11692 no_undefined_flag=$lt_no_undefined_flag
11694 # Commands used to finish a libtool library installation in a directory.
11695 finish_cmds=$lt_finish_cmds
11697 # Same as above, but a single script fragment to be evaled but not shown.
11698 finish_eval=$lt_finish_eval
11700 # Take the output of nm and produce a listing of raw symbols and C names.
11701 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11703 # Transform the output of nm in a proper C declaration
11704 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11706 # Transform the output of nm in a C name address pair
11707 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11709 # This is the shared library runtime path variable.
11710 runpath_var=$runpath_var
11712 # This is the shared library path variable.
11713 shlibpath_var=$shlibpath_var
11715 # Is shlibpath searched before the hard-coded library search path?
11716 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11718 # How to hardcode a shared library path into an executable.
11719 hardcode_action=$hardcode_action
11721 # Whether we should hardcode library paths into libraries.
11722 hardcode_into_libs=$hardcode_into_libs
11724 # Flag to hardcode \$libdir into a binary during linking.
11725 # This must work even if \$libdir does not exist.
11726 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11728 # If ld is used when linking, flag to hardcode \$libdir into
11729 # a binary during linking. This must work even if \$libdir does
11731 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11733 # Whether we need a single -rpath flag with a separated argument.
11734 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11736 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11737 # resulting binary.
11738 hardcode_direct=$hardcode_direct
11740 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11741 # resulting binary.
11742 hardcode_minus_L=$hardcode_minus_L
11744 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11745 # the resulting binary.
11746 hardcode_shlibpath_var=$hardcode_shlibpath_var
11748 # Set to yes if building a shared library automatically hardcodes DIR into the library
11749 # and all subsequent libraries and executables linked against it.
11750 hardcode_automatic=$hardcode_automatic
11752 # Variables whose values should be saved in libtool wrapper scripts and
11753 # restored at relink time.
11754 variables_saved_for_relink="$variables_saved_for_relink"
11756 # Whether libtool must link a program against all its dependency libraries.
11757 link_all_deplibs=$link_all_deplibs
11759 # Compile-time system search path for libraries
11760 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11762 # Run-time system search path for libraries
11763 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11765 # Fix the shell variable \$srcfile for the compiler.
11766 fix_srcfile_path=$lt_fix_srcfile_path
11768 # Set to yes if exported symbols are required.
11769 always_export_symbols=$always_export_symbols
11771 # The commands to list exported symbols.
11772 export_symbols_cmds=$lt_export_symbols_cmds
11774 # The commands to extract the exported symbol list from a shared archive.
11775 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11777 # Symbols that should not be listed in the preloaded symbols.
11778 exclude_expsyms=$lt_exclude_expsyms
11780 # Symbols that must always be exported.
11781 include_expsyms=$lt_include_expsyms
11783 # ### END LIBTOOL CONFIG
11790 cat <<\EOF >> "$cfgfile"
11792 # AIX sometimes has problems with the GCC collect2 program. For some
11793 # reason, if we set the COLLECT_NAMES environment variable, the problems
11794 # vanish in a puff of smoke.
11795 if test "X${COLLECT_NAMES+set}" != Xset; then
11797 export COLLECT_NAMES
11803 # We use sed instead of cat because bash on DJGPP gets confused if
11804 # if finds mixed CR/LF and LF-only lines. Since sed operates in
11805 # text mode, it properly converts lines to CR/LF. This bash problem
11806 # is reportedly fixed, but why not run on old versions too?
11807 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11809 mv -f "$cfgfile" "$ofile" || \
11810 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11814 # If there is no Makefile yet, we rely on a make rule to execute
11815 # `config.status
--recheck' to rerun these tests and create the
11816 # libtool script then.
11817 ltmain_in=`echo $ltmain | sed -e 's
/\.sh$
/.in
/'`
11818 if test -f "$ltmain_in"; then
11819 test -f Makefile && make "$ltmain"
11825 ac_cpp='$CPP $CPPFLAGS'
11826 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
11827 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
11828 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11833 # Check whether --with-tags was given.
11834 if test "${with_tags+set}" = set; then
11835 withval=$with_tags; tagnames="$withval"
11839 if test -f "$ltmain" && test -n "$tagnames"; then
11840 if test ! -f "${ofile}"; then
11841 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist
" >&5
11842 echo "$as_me: WARNING
: output
file \
`$ofile' does not exist" >&2;}
11845 if test -z "$LTCC"; then
11846 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11847 if test -z "$LTCC"; then
11848 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11849 echo "$as_me: WARNING: output file \`$ofile' does not
look like a libtool
script" >&2;}
11851 { echo "$as_me:$LINENO: WARNING
: using \
`LTCC=$LTCC', extracted from \`$ofile'" >&5
11852 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \
`$ofile'" >&2;}
11855 if test -z "$LTCFLAGS"; then
11856 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11859 # Extract list of available tagged configurations in $ofile.
11860 # Note that this assumes the entire list is on one line.
11861 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11863 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11864 for tagname in $tagnames; do
11866 # Check whether tagname contains only valid characters
11867 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11869 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11870 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11871 { (exit 1); exit 1; }; }
11875 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11877 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11878 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11879 { (exit 1); exit 1; }; }
11882 # Update the list of available tags.
11883 if test -n "$tagname"; then
11884 echo appending configuration tag \"$tagname\" to $ofile
11888 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11889 ( (test "X$CXX" = "Xg++" && `g
++ -v >/dev
/null
2>&1` ) ||
11890 (test "X$CXX" != "Xg++"))) ; then
11892 ac_cpp='$CXXCPP $CPPFLAGS'
11893 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11894 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11895 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11900 archive_cmds_need_lc_CXX=no
11901 allow_undefined_flag_CXX=
11902 always_export_symbols_CXX=no
11903 archive_expsym_cmds_CXX=
11904 export_dynamic_flag_spec_CXX=
11905 hardcode_direct_CXX=no
11906 hardcode_libdir_flag_spec_CXX=
11907 hardcode_libdir_flag_spec_ld_CXX=
11908 hardcode_libdir_separator_CXX=
11909 hardcode_minus_L_CXX=no
11910 hardcode_shlibpath_var_CXX=unsupported
11911 hardcode_automatic_CXX=no
11913 module_expsym_cmds_CXX=
11914 link_all_deplibs_CXX=unknown
11915 old_archive_cmds_CXX=$old_archive_cmds
11916 no_undefined_flag_CXX=
11917 whole_archive_flag_spec_CXX=
11918 enable_shared_with_static_runtimes_CXX=no
11920 # Dependencies to place before and after the object being linked:
11921 predep_objects_CXX=
11922 postdep_objects_CXX=
11925 compiler_lib_search_path_CXX=
11927 # Source file extension for C++ test sources.
11930 # Object file extension for compiled C++ test sources.
11934 # Code to be used in simple compile tests
11935 lt_simple_compile_test_code="int some_variable = 0;"
11937 # Code to be used in simple link tests
11938 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11940 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11942 # If no C compiler was specified, use CC.
11945 # If no C compiler flags were specified, use CFLAGS.
11946 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11948 # Allow CC to be a program name with arguments.
11952 # save warnings/boilerplate of simple test code
11953 ac_outfile=conftest.$ac_objext
11954 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11955 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11956 _lt_compiler_boilerplate=`cat conftest.err
`
11959 ac_outfile=conftest.$ac_objext
11960 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11961 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11962 _lt_linker_boilerplate=`cat conftest.err
`
11966 # Allow CC to be a program name with arguments.
11971 lt_save_with_gnu_ld=$with_gnu_ld
11972 lt_save_path_LD=$lt_cv_path_LD
11973 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11974 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11976 $as_unset lt_cv_prog_gnu_ld
11978 if test -n "${lt_cv_path_LDCXX+set}"; then
11979 lt_cv_path_LD=$lt_cv_path_LDCXX
11981 $as_unset lt_cv_path_LD
11983 test -z "${LDCXX+set}" || LD=$LDCXX
11987 for cc_temp in $compiler""; do
11989 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11990 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11995 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11998 # We don't want -fno-exception wen compiling C++ code, so set the
11999 # no_builtin_flag separately
12000 if test "$GXX" = yes; then
12001 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12003 lt_prog_compiler_no_builtin_flag_CXX=
12006 if test "$GXX" = yes; then
12007 # Set up default GNU C++ configuration
12010 # Check whether --with-gnu-ld was given.
12011 if test "${with_gnu_ld+set}" = set; then
12012 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12018 if test "$GCC" = yes; then
12019 # Check if gcc -print-prog-name=ld gives a path.
12020 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12021 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12024 # gcc leaves a trailing carriage return which upsets mingw
12025 ac_prog=`($CC -print-prog-name=ld
) 2>&5 | tr -d '\015'` ;;
12027 ac_prog=`($CC -print-prog-name=ld
) 2>&5` ;;
12030 # Accept absolute paths.
12032 re_direlt='/[^/][^/]*/\.\./'
12033 # Canonicalize the pathname of ld
12034 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12035 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12036 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12038 test -z "$LD" && LD="$ac_prog"
12041 # If it fails, then pretend we aren't using GCC.
12045 # If it is relative, then search for the first ld in PATH.
12046 with_gnu_ld=unknown
12049 elif test "$with_gnu_ld" = yes; then
12050 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12051 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12053 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12054 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12056 if test "${lt_cv_path_LD+set}" = set; then
12057 echo $ECHO_N "(cached) $ECHO_C" >&6
12059 if test -z "$LD"; then
12060 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12061 for ac_dir in $PATH; do
12063 test -z "$ac_dir" && ac_dir=.
12064 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12065 lt_cv_path_LD="$ac_dir/$ac_prog"
12066 # Check to see if the program is GNU ld. I'd rather use --version,
12067 # but apparently some variants of GNU ld only accept -v.
12068 # Break only if it was the GNU/non-GNU ld that we prefer.
12069 case `"$lt_cv_path_LD" -v 2>&1 </dev
/null
` in
12070 *GNU* | *'with BFD'*)
12071 test "$with_gnu_ld" != no && break
12074 test "$with_gnu_ld" != yes && break
12081 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12085 LD="$lt_cv_path_LD"
12086 if test -n "$LD"; then
12087 { echo "$as_me:$LINENO: result: $LD" >&5
12088 echo "${ECHO_T}$LD" >&6; }
12090 { echo "$as_me:$LINENO: result: no" >&5
12091 echo "${ECHO_T}no" >&6; }
12093 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12094 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12095 { (exit 1); exit 1; }; }
12096 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12097 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12098 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12099 echo $ECHO_N "(cached) $ECHO_C" >&6
12101 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12102 case `$LD -v 2>&1 </dev
/null
` in
12103 *GNU* | *'with BFD'*)
12104 lt_cv_prog_gnu_ld=yes
12107 lt_cv_prog_gnu_ld=no
12111 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12112 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12113 with_gnu_ld=$lt_cv_prog_gnu_ld
12117 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12118 # archiving commands below assume that GNU ld is being used.
12119 if test "$with_gnu_ld" = yes; then
12120 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12121 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'
12123 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12124 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12126 # If archive_cmds runs LD, not CC, wlarc should be empty
12127 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12128 # investigate it a little bit more. (MM)
12131 # ancient GNU ld didn't support --whole-archive et. al.
12132 if eval "`$CC -print-prog-name=ld
` --help 2>&1" | \
12133 grep 'no-whole-archive' > /dev/null; then
12134 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12136 whole_archive_flag_spec_CXX=
12142 # A generic and very simple default shared library creation
12143 # command for GNU C++ for the case where it uses the native
12144 # linker, instead of GNU ld. If possible, this setting should
12145 # overridden to take advantage of the native linker features on
12146 # the platform it is being used on.
12147 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12150 # Commands to make compiler produce verbose output that lists
12151 # what "hidden" libraries, object files and flags are used when
12152 # linking a shared library.
12153 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12161 # PORTME: fill in a description of your system's C++ link characteristics
12162 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12163 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12167 # FIXME: insert proper C++ library support
12171 if test "$host_cpu" = ia64; then
12172 # On IA64, the linker does run time linking by default, so we don't
12173 # have to do anything special.
12174 aix_use_runtimelinking=no
12175 exp_sym_flag='-Bexport'
12178 aix_use_runtimelinking=no
12180 # Test if we are trying to use run time linking or normal
12181 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12182 # need to do runtime linking.
12183 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12184 for ld_flag in $LDFLAGS; do
12187 aix_use_runtimelinking=yes
12195 exp_sym_flag='-bexport'
12196 no_entry_flag='-bnoentry'
12199 # When large executables or shared objects are built, AIX ld can
12200 # have problems creating the table of contents. If linking a library
12201 # or program results in "error TOC overflow" add -mminimal-toc to
12202 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12203 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12205 archive_cmds_CXX=''
12206 hardcode_direct_CXX=yes
12207 hardcode_libdir_separator_CXX=':'
12208 link_all_deplibs_CXX=yes
12210 if test "$GXX" = yes; then
12211 case $host_os in aix4.[012]|aix4.[012].*)
12212 # We only want to do this on AIX 4.2 and lower, the check
12213 # below for broken collect2 doesn't work under 4.3+
12214 collect2name=`${CC} -print-prog-name=collect2
`
12215 if test -f "$collect2name" && \
12216 strings "$collect2name" | grep resolve_lib_name >/dev/null
12218 # We have reworked collect2
12221 # We have old collect2
12222 hardcode_direct_CXX=unsupported
12223 # It fails to find uninstalled libraries when the uninstalled
12224 # path is not listed in the libpath. Setting hardcode_minus_L
12225 # to unsupported forces relinking
12226 hardcode_minus_L_CXX=yes
12227 hardcode_libdir_flag_spec_CXX='-L$libdir'
12228 hardcode_libdir_separator_CXX=
12232 shared_flag='-shared'
12233 if test "$aix_use_runtimelinking" = yes; then
12234 shared_flag="$shared_flag "'${wl}-G'
12238 if test "$host_cpu" = ia64; then
12239 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12240 # chokes on -Wl,-G. The following line is correct:
12243 if test "$aix_use_runtimelinking" = yes; then
12244 shared_flag='${wl}-G'
12246 shared_flag='${wl}-bM:SRE'
12251 # It seems that -bexpall does not export symbols beginning with
12252 # underscore (_), so it is better to generate a list of symbols to export.
12253 always_export_symbols_CXX=yes
12254 if test "$aix_use_runtimelinking" = yes; then
12255 # Warning - without using the other runtime loading flags (-brtl),
12256 # -berok will link without error, but may produce a broken library.
12257 allow_undefined_flag_CXX='-berok'
12258 # Determine the default libpath from the value encoded in an empty executable.
12259 cat >conftest.$ac_ext <<_ACEOF
12262 cat confdefs.h >>conftest.$ac_ext
12263 cat >>conftest.$ac_ext <<_ACEOF
12264 /* end confdefs.h. */
12274 rm -f conftest.$ac_objext conftest$ac_exeext
12275 if { (ac_try="$ac_link"
12276 case "(($ac_try" in
12277 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
12278 *) ac_try_echo
=$ac_try;;
12280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12281 (eval "$ac_link") 2>conftest.er1
12283 grep -v '^ *+' conftest.er1
>conftest.err
12285 cat conftest.err
>&5
12286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12287 (exit $ac_status); } && {
12288 test -z "$ac_cxx_werror_flag" ||
12289 test ! -s conftest.err
12290 } && test -s conftest
$ac_exeext &&
12291 $as_test_x conftest
$ac_exeext; then
12293 lt_aix_libpath_sed
='
12294 /Import File Strings/,/^$/ {
12300 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12301 # Check for a 64-bit object if we didn't find anything.
12302 if test -z "$aix_libpath"; then
12303 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12306 echo "$as_me: failed program was:" >&5
12307 sed 's/^/| /' conftest.
$ac_ext >&5
12312 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12313 conftest
$ac_exeext conftest.
$ac_ext
12314 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
12316 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
12318 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"
12320 if test "$host_cpu" = ia64
; then
12321 hardcode_libdir_flag_spec_CXX
='${wl}-R $libdir:/usr/lib:/lib'
12322 allow_undefined_flag_CXX
="-z nodefs"
12323 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"
12325 # Determine the default libpath from the value encoded in an empty executable.
12326 cat >conftest.
$ac_ext <<_ACEOF
12329 cat confdefs.h
>>conftest.
$ac_ext
12330 cat >>conftest.
$ac_ext <<_ACEOF
12331 /* end confdefs.h. */
12341 rm -f conftest.
$ac_objext conftest
$ac_exeext
12342 if { (ac_try
="$ac_link"
12343 case "(($ac_try" in
12344 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
12345 *) ac_try_echo=$ac_try;;
12347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12348 (eval "$ac_link") 2>conftest.er1
12350 grep -v '^ *+' conftest.er1 >conftest.err
12352 cat conftest.err >&5
12353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12354 (exit $ac_status); } && {
12355 test -z "$ac_cxx_werror_flag" ||
12356 test ! -s conftest.err
12357 } && test -s conftest$ac_exeext &&
12358 $as_test_x conftest$ac_exeext; then
12360 lt_aix_libpath_sed='
12361 /Import File Strings/,/^$/ {
12367 aix_libpath=`dump
-H conftest
$ac_exeext 2>/dev
/null
| $SED -n -e "$lt_aix_libpath_sed"`
12368 # Check for a 64-bit object if we didn't find anything.
12369 if test -z "$aix_libpath"; then
12370 aix_libpath=`dump
-HX64 conftest
$ac_exeext 2>/dev
/null
| $SED -n -e "$lt_aix_libpath_sed"`
12373 echo "$as_me: failed program was:" >&5
12374 sed 's/^/| /' conftest.$ac_ext >&5
12379 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12380 conftest$ac_exeext conftest.$ac_ext
12381 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12383 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12384 # Warning - without using the other run time loading flags,
12385 # -berok will link without error, but may produce a broken library.
12386 no_undefined_flag_CXX=' ${wl}-bernotok'
12387 allow_undefined_flag_CXX=' ${wl}-berok'
12388 # Exported symbols can be pulled into shared objects from archives
12389 whole_archive_flag_spec_CXX='$convenience'
12390 archive_cmds_need_lc_CXX=yes
12391 # This is similar to how AIX traditionally builds its shared libraries.
12392 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'
12398 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12399 allow_undefined_flag_CXX=unsupported
12400 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12401 # support --undefined. This deserves some investigation. FIXME
12402 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12409 case $cc_basename in
12411 # FIXME: insert proper C++ library support
12417 cygwin* | mingw* | pw32*)
12418 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12419 # as there is no search path for DLLs.
12420 hardcode_libdir_flag_spec_CXX='-L$libdir'
12421 allow_undefined_flag_CXX=unsupported
12422 always_export_symbols_CXX=no
12423 enable_shared_with_static_runtimes_CXX=yes
12425 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12426 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'
12427 # If the export-symbols file already is a .def file (1st line
12428 # is EXPORTS), use it as is; otherwise, prepend...
12429 archive_expsym_cmds_CXX='if test "x`$SED 1q
$export_symbols`" = xEXPORTS; then
12430 cp $export_symbols $output_objdir/$soname.def;
12432 echo EXPORTS > $output_objdir/$soname.def;
12433 cat $export_symbols >> $output_objdir/$soname.def;
12435 $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'
12440 darwin* | rhapsody*)
12442 rhapsody* | darwin1.[012])
12443 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
12446 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12447 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12449 case ${MACOSX_DEPLOYMENT_TARGET} in
12451 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12454 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
12460 archive_cmds_need_lc_CXX=no
12461 hardcode_direct_CXX=no
12462 hardcode_automatic_CXX=yes
12463 hardcode_shlibpath_var_CXX=unsupported
12464 whole_archive_flag_spec_CXX=''
12465 link_all_deplibs_CXX=yes
12467 if test "$GXX" = yes ; then
12468 lt_int_apple_cc_single_mod=no
12469 output_verbose_link_cmd='echo'
12470 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
12471 lt_int_apple_cc_single_mod=yes
12473 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12474 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12476 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'
12478 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12479 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12480 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12481 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12483 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12485 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}'
12487 case $cc_basename in
12489 output_verbose_link_cmd='echo'
12490 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'
12491 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12492 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12493 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}'
12494 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}'
12504 case $cc_basename in
12506 # FIXME: insert proper C++ library support
12510 # Green Hills C++ Compiler
12511 # FIXME: insert proper C++ library support
12515 # FIXME: insert proper C++ library support
12521 # C++ shared libraries reported to be fairly broken before switch to ELF
12525 archive_cmds_need_lc_CXX=no
12527 freebsd* | dragonfly*)
12528 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12535 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12536 hardcode_libdir_separator_CXX=:
12537 export_dynamic_flag_spec_CXX='${wl}-E'
12538 hardcode_direct_CXX=yes
12539 hardcode_minus_L_CXX=yes # Not in the search PATH,
12540 # but as the default
12541 # location of the library.
12543 case $cc_basename in
12545 # FIXME: insert proper C++ library support
12549 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'
12550 # Commands to make compiler produce verbose output that lists
12551 # what "hidden" libraries, object files and flags are used when
12552 # linking a shared library.
12554 # There doesn't appear to be a way to prevent this compiler from
12555 # explicitly linking system object files so we need to strip them
12556 # from the output so that they don't get included in the library
12558 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'
12561 if test "$GXX" = yes; then
12562 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'
12564 # FIXME: insert proper C++ library support
12571 if test $with_gnu_ld = no; then
12572 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12573 hardcode_libdir_separator_CXX=:
12578 export_dynamic_flag_spec_CXX='${wl}-E'
12584 hardcode_direct_CXX=no
12585 hardcode_shlibpath_var_CXX=no
12588 hardcode_direct_CXX=yes
12589 hardcode_minus_L_CXX=yes # Not in the search PATH,
12590 # but as the default
12591 # location of the library.
12595 case $cc_basename in
12597 # FIXME: insert proper C++ library support
12603 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12606 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12609 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12612 # Commands to make compiler produce verbose output that lists
12613 # what "hidden" libraries, object files and flags are used when
12614 # linking a shared library.
12616 # There doesn't appear to be a way to prevent this compiler from
12617 # explicitly linking system object files so we need to strip them
12618 # from the output so that they don't get included in the library
12620 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'
12623 if test "$GXX" = yes; then
12624 if test $with_gnu_ld = no; then
12627 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12630 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12633 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'
12638 # FIXME: insert proper C++ library support
12645 hardcode_direct_CXX=no
12646 hardcode_shlibpath_var_CXX=no
12647 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12648 export_dynamic_flag_spec_CXX='${wl}-E'
12649 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12650 # Instead, shared libraries are loaded at an image base (0x10000000 by
12651 # default) and relocated if they conflict, which is a slow very memory
12652 # consuming and fragmenting process. To avoid this, we pick a random,
12653 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12654 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12655 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'
12656 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'
12659 case $cc_basename in
12662 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'
12664 # Archives containing C++ object files must be created using
12665 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12666 # necessary to make sure instantiated templates are included
12668 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12671 if test "$GXX" = yes; then
12672 if test "$with_gnu_ld" = no; then
12673 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'
12675 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'
12678 link_all_deplibs_CXX=yes
12681 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12682 hardcode_libdir_separator_CXX=:
12684 linux* | k*bsd*-gnu)
12685 case $cc_basename in
12687 # Kuck and Associates, Inc. (KAI) C++ Compiler
12689 # KCC will only create a shared library if the output file
12690 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12691 # to its proper name (with version) after linking.
12692 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'
12693 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'
12694 # Commands to make compiler produce verbose output that lists
12695 # what "hidden" libraries, object files and flags are used when
12696 # linking a shared library.
12698 # There doesn't appear to be a way to prevent this compiler from
12699 # explicitly linking system object files so we need to strip them
12700 # from the output so that they don't get included in the library
12702 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'
12704 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12705 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12707 # Archives containing C++ object files must be created using
12708 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12709 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12714 # version 8.0 and above of icpc choke on multiply defined symbols
12715 # if we add $predep_objects and $postdep_objects, however 7.1 and
12716 # earlier do not add the objects themselves.
12717 case `$CC -V 2>&1` in
12719 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12720 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'
12722 *) # Version 8.0 or newer
12725 ia64*) tmp_idyn=' -i_dynamic';;
12727 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12728 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'
12731 archive_cmds_need_lc_CXX=no
12732 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12733 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12734 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12737 # Portland Group C++ compiler
12738 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12739 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'
12741 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12742 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12743 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'
12747 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12748 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'
12750 runpath_var=LD_RUN_PATH
12751 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12752 hardcode_libdir_separator_CXX=:
12754 # Commands to make compiler produce verbose output that lists
12755 # what "hidden" libraries, object files and flags are used when
12756 # linking a shared library.
12758 # There doesn't appear to be a way to prevent this compiler from
12759 # explicitly linking system object files so we need to strip them
12760 # from the output so that they don't get included in the library
12762 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'
12765 case `$CC -V 2>&1 | sed 5q
` in
12768 no_undefined_flag_CXX=' -zdefs'
12769 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12770 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'
12771 hardcode_libdir_flag_spec_CXX='-R$libdir'
12772 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'
12774 # Not sure whether something based on
12775 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12777 output_verbose_link_cmd='echo'
12779 # Archives containing C++ object files must be created using
12780 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12781 # necessary to make sure instantiated templates are included
12783 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12790 # FIXME: insert proper C++ library support
12794 # FIXME: insert proper C++ library support
12798 case $cc_basename in
12800 # FIXME: insert proper C++ library support
12804 # FIXME: insert proper C++ library support
12809 netbsd* | netbsdelf*-gnu)
12810 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12811 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12813 hardcode_libdir_flag_spec_CXX='-R$libdir'
12814 hardcode_direct_CXX=yes
12815 hardcode_shlibpath_var_CXX=no
12817 # Workaround some broken pre-1.5 toolchains
12818 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12821 # C++ shared libraries are fairly broken
12825 if test -f /usr/libexec/ld.so; then
12826 hardcode_direct_CXX=yes
12827 hardcode_shlibpath_var_CXX=no
12828 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12829 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12830 if test -z "`echo __ELF__
| $CC -E - | grep __ELF__
`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12831 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12832 export_dynamic_flag_spec_CXX='${wl}-E'
12833 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12835 output_verbose_link_cmd='echo'
12841 case $cc_basename in
12843 # Kuck and Associates, Inc. (KAI) C++ Compiler
12845 # KCC will only create a shared library if the output file
12846 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12847 # to its proper name (with version) after linking.
12848 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'
12850 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12851 hardcode_libdir_separator_CXX=:
12853 # Archives containing C++ object files must be created using
12854 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12855 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12859 # Rational C++ 2.4.1
12860 # FIXME: insert proper C++ library support
12864 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12865 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'
12867 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12868 hardcode_libdir_separator_CXX=:
12870 # Commands to make compiler produce verbose output that lists
12871 # what "hidden" libraries, object files and flags are used when
12872 # linking a shared library.
12874 # There doesn't appear to be a way to prevent this compiler from
12875 # explicitly linking system object files so we need to strip them
12876 # from the output so that they don't get included in the library
12878 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'
12881 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12882 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12883 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'
12885 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12886 hardcode_libdir_separator_CXX=:
12888 # Commands to make compiler produce verbose output that lists
12889 # what "hidden" libraries, object files and flags are used when
12890 # linking a shared library.
12891 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12894 # FIXME: insert proper C++ library support
12901 case $cc_basename in
12903 # Kuck and Associates, Inc. (KAI) C++ Compiler
12905 # KCC will only create a shared library if the output file
12906 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12907 # to its proper name (with version) after linking.
12908 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'
12910 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12911 hardcode_libdir_separator_CXX=:
12913 # Archives containing C++ object files must be created using
12914 # the KAI C++ compiler.
12915 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12918 # Rational C++ 2.4.1
12919 # FIXME: insert proper C++ library support
12923 allow_undefined_flag_CXX=' -expect_unresolved \*'
12924 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'
12925 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12926 echo "-hidden">> $lib.exp~
12927 $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~
12930 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12931 hardcode_libdir_separator_CXX=:
12933 # Commands to make compiler produce verbose output that lists
12934 # what "hidden" libraries, object files and flags are used when
12935 # linking a shared library.
12937 # There doesn't appear to be a way to prevent this compiler from
12938 # explicitly linking system object files so we need to strip them
12939 # from the output so that they don't get included in the library
12941 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'
12944 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12945 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12946 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'
12948 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12949 hardcode_libdir_separator_CXX=:
12951 # Commands to make compiler produce verbose output that lists
12952 # what "hidden" libraries, object files and flags are used when
12953 # linking a shared library.
12954 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12957 # FIXME: insert proper C++ library support
12964 # FIXME: insert proper C++ library support
12968 case $cc_basename in
12971 # FIXME: insert proper C++ library support
12976 # FIXME: insert proper C++ library support
12980 # FIXME: insert proper C++ library support
12986 case $cc_basename in
12988 # Sun C++ 4.2, 5.x and Centerline C++
12989 archive_cmds_need_lc_CXX=yes
12990 no_undefined_flag_CXX=' -zdefs'
12991 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12992 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12993 $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'
12995 hardcode_libdir_flag_spec_CXX='-R$libdir'
12996 hardcode_shlibpath_var_CXX=no
12998 solaris2.[0-5] | solaris2.[0-5].*) ;;
13000 # The compiler driver will combine and reorder linker options,
13001 # but understands `-z linker_flag
'.
13002 # Supported since Solaris 2.6 (maybe 2.5.1?)
13003 whole_archive_flag_spec_CXX='-z allextract
$convenience -z defaultextract
'
13006 link_all_deplibs_CXX=yes
13008 output_verbose_link_cmd='echo'
13010 # Archives containing C++ object files must be created using
13011 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13012 # necessary to make sure instantiated templates are included
13014 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13017 # Green Hills C++ Compiler
13018 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13020 # The C++ compiler must be used to create the archive.
13021 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13024 # GNU C++ compiler with Solaris linker
13025 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13026 no_undefined_flag_CXX=' ${wl}-z ${wl}defs
'
13027 if $CC --version | grep -v '^
2\
.7' > /dev/null; then
13028 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13029 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~
cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~
$echo "local: *; };" >> $lib.exp~
13030 $CC -shared -nostdlib ${wl}-M $wl$lib.exp
-o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~
$rm $lib.exp
'
13032 # Commands to make compiler produce verbose output that lists
13033 # what "hidden" libraries, object files and flags are used when
13034 # linking a shared library.
13035 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13037 # g++ 2.7 appears to require `-G' NOT
`-shared' on this
13039 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13040 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13041 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13043 # Commands to make compiler produce verbose output that lists
13044 # what "hidden" libraries, object files and flags are used when
13045 # linking a shared library.
13046 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13049 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13051 solaris2.[0-5] | solaris2.[0-5].*) ;;
13053 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13060 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13061 no_undefined_flag_CXX='${wl}-z,text'
13062 archive_cmds_need_lc_CXX=no
13063 hardcode_shlibpath_var_CXX=no
13064 runpath_var='LD_RUN_PATH'
13066 case $cc_basename in
13068 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13069 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13072 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13073 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13077 sysv5* | sco3.2v5* | sco5v6*)
13078 # Note: We can NOT use -z defs as we might desire, because we do not
13079 # link with -lc, and that would cause any symbols used from libc to
13080 # always be unresolved, which means just about no library would
13081 # ever link correctly. If we're not using GNU ld we use -z text
13082 # though, which does catch some bad symbols but isn't as heavy-handed
13084 # For security reasons, it is highly recommended that you always
13085 # use absolute paths for naming shared libraries, and exclude the
13086 # DT_RUNPATH tag from executables and libraries. But doing so
13087 # requires that you compile everything twice, which is a pain.
13088 # So that behaviour is only enabled if SCOABSPATH is set to a
13089 # non-empty value in the environment. Most likely only useful for
13090 # creating official distributions of packages.
13091 # This is a hack until libtool officially supports absolute path
13092 # names for shared libraries.
13093 no_undefined_flag_CXX='${wl}-z,text'
13094 allow_undefined_flag_CXX='${wl}-z,nodefs'
13095 archive_cmds_need_lc_CXX=no
13096 hardcode_shlibpath_var_CXX=no
13097 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
13098 hardcode_libdir_separator_CXX=':'
13099 link_all_deplibs_CXX=yes
13100 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13101 runpath_var='LD_RUN_PATH'
13103 case $cc_basename in
13105 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13106 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13109 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13110 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13115 case $cc_basename in
13117 # NonStop-UX NCC 3.20
13118 # FIXME: insert proper C++ library support
13122 # FIXME: insert proper C++ library support
13128 # FIXME: insert proper C++ library support
13132 # FIXME: insert proper C++ library support
13136 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13137 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13138 test "$ld_shlibs_CXX" = no && can_build_shared=no
13144 cat > conftest.$ac_ext <<EOF
13148 Foo (void) { a = 0; }
13154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13155 (eval $ac_compile) 2>&5
13157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13158 (exit $ac_status); }; then
13159 # Parse the compiler output and extract the necessary
13160 # objects, libraries and library flags.
13162 # Sentinel used to keep track of whether or not we are before
13163 # the conftest object file.
13164 pre_test_object_deps_done=no
13166 # The `*' in the case matches for architectures that use `case' in
13167 # $output_verbose_cmd can trigger glob expansion during the loop
13168 # eval without this substitution.
13169 output_verbose_link_cmd
=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
13171 for p
in `eval $output_verbose_link_cmd`; do
13175 # Some compilers place space between "-{L,R}" and the path.
13176 # Remove the space.
13177 if test $p = "-L" \
13178 || test $p = "-R"; then
13185 if test "$pre_test_object_deps_done" = no
; then
13188 # Internal compiler library paths should come after those
13189 # provided the user. The postdeps already come after the
13190 # user supplied libs so there is no need to process them.
13191 if test -z "$compiler_lib_search_path_CXX"; then
13192 compiler_lib_search_path_CXX
="${prev}${p}"
13194 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
13197 # The "-l" case would never come before the object being
13198 # linked, so don't bother handling this case.
13201 if test -z "$postdeps_CXX"; then
13202 postdeps_CXX
="${prev}${p}"
13204 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
13210 # This assumes that the test object file only shows up
13211 # once in the compiler output.
13212 if test "$p" = "conftest.$objext"; then
13213 pre_test_object_deps_done
=yes
13217 if test "$pre_test_object_deps_done" = no
; then
13218 if test -z "$predep_objects_CXX"; then
13219 predep_objects_CXX
="$p"
13221 predep_objects_CXX
="$predep_objects_CXX $p"
13224 if test -z "$postdep_objects_CXX"; then
13225 postdep_objects_CXX
="$p"
13227 postdep_objects_CXX
="$postdep_objects_CXX $p"
13232 *) ;; # Ignore the rest.
13240 echo "libtool.m4: error: problem compiling CXX test program"
13243 $rm -f confest.
$objext
13245 # PORTME: override above test on systems where it is broken
13248 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13249 # hack all around it, let's just trust "g++" to DTRT.
13250 predep_objects_CXX
=
13251 postdep_objects_CXX
=
13256 case `$CC -V 2>&1 | sed 5q` in
13260 # The more standards-conforming stlport4 library is
13261 # incompatible with the Cstd library. Avoid specifying
13262 # it if it's in CXXFLAGS. Ignore libCrun as
13263 # -library=stlport4 depends on it.
13264 case " $CXX $CXXFLAGS " in
13265 *" -library=stlport4 "*)
13266 solaris_use_stlport4
=yes
13269 if test "$solaris_use_stlport4" != yes; then
13270 postdeps_CXX
='-library=Cstd -library=Crun'
13277 case $cc_basename in
13279 # The more standards-conforming stlport4 library is
13280 # incompatible with the Cstd library. Avoid specifying
13281 # it if it's in CXXFLAGS. Ignore libCrun as
13282 # -library=stlport4 depends on it.
13283 case " $CXX $CXXFLAGS " in
13284 *" -library=stlport4 "*)
13285 solaris_use_stlport4
=yes
13289 # Adding this requires a known-good setup of shared libraries for
13290 # Sun compiler versions before 5.6, else PIC objects from an old
13291 # archive will be linked into the output, leading to subtle bugs.
13292 if test "$solaris_use_stlport4" != yes; then
13293 postdeps_CXX
='-library=Cstd -library=Crun'
13301 case " $postdeps_CXX " in
13302 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
13305 lt_prog_compiler_wl_CXX
=
13306 lt_prog_compiler_pic_CXX
=
13307 lt_prog_compiler_static_CXX
=
13309 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13310 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13312 # C++ specific cases for pic, static, wl, etc.
13313 if test "$GXX" = yes; then
13314 lt_prog_compiler_wl_CXX
='-Wl,'
13315 lt_prog_compiler_static_CXX
='-static'
13319 # All AIX code is PIC.
13320 if test "$host_cpu" = ia64
; then
13321 # AIX 5 now supports IA64 processor
13322 lt_prog_compiler_static_CXX
='-Bstatic'
13326 # FIXME: we need at least 68020 code to build shared libraries, but
13327 # adding the `-m68020' flag to GCC prevents building anything better,
13329 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
13331 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
13332 # PIC is the default for these OSes.
13334 mingw
* | cygwin
* | os2
* | pw32
*)
13335 # This hack is so that the source file can tell whether it is being
13336 # built for inclusion in a dll (and should export symbols for example).
13337 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13338 # (--disable-auto-import) libraries
13339 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
13341 darwin
* | rhapsody
*)
13342 # PIC is the default on this platform
13343 # Common symbols not allowed in MH_DYLIB files
13344 lt_prog_compiler_pic_CXX
='-fno-common'
13347 # DJGPP does not support shared libraries at all
13348 lt_prog_compiler_pic_CXX
=
13351 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13352 # Instead, we relocate shared libraries at runtime.
13355 if test -d /usr
/nec
; then
13356 lt_prog_compiler_pic_CXX
=-Kconform_pic
13360 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13361 # not for PA HP-UX.
13366 lt_prog_compiler_pic_CXX
='-fPIC'
13371 lt_prog_compiler_pic_CXX
='-fPIC'
13377 # All AIX code is PIC.
13378 if test "$host_cpu" = ia64
; then
13379 # AIX 5 now supports IA64 processor
13380 lt_prog_compiler_static_CXX
='-Bstatic'
13382 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
13386 case $cc_basename in
13388 # Green Hills C++ Compiler
13389 # _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"
13394 # PIC is the default on this platform
13395 # Common symbols not allowed in MH_DYLIB files
13396 case $cc_basename in
13398 lt_prog_compiler_pic_CXX
='-qnocommon'
13399 lt_prog_compiler_wl_CXX
='-Wl,'
13404 case $cc_basename in
13406 lt_prog_compiler_pic_CXX
='-KPIC'
13409 # Green Hills C++ Compiler
13410 lt_prog_compiler_pic_CXX
='-pic'
13416 freebsd
* | dragonfly
*)
13417 # FreeBSD uses GNU C++
13419 hpux9
* | hpux10
* | hpux11
*)
13420 case $cc_basename in
13422 lt_prog_compiler_wl_CXX
='-Wl,'
13423 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
13424 if test "$host_cpu" != ia64
; then
13425 lt_prog_compiler_pic_CXX
='+Z'
13429 lt_prog_compiler_wl_CXX
='-Wl,'
13430 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
13436 lt_prog_compiler_pic_CXX
='+Z'
13445 # This is c89, which is MS Visual C++ (no shared libs)
13446 # Anyone wants to do a port?
13448 irix5
* | irix6
* | nonstopux
*)
13449 case $cc_basename in
13451 lt_prog_compiler_wl_CXX
='-Wl,'
13452 lt_prog_compiler_static_CXX
='-non_shared'
13453 # CC pic flag -KPIC is the default.
13459 linux
* | k
*bsd
*-gnu)
13460 case $cc_basename in
13463 lt_prog_compiler_wl_CXX
='--backend -Wl,'
13464 lt_prog_compiler_pic_CXX
='-fPIC'
13468 lt_prog_compiler_wl_CXX
='-Wl,'
13469 lt_prog_compiler_pic_CXX
='-KPIC'
13470 lt_prog_compiler_static_CXX
='-static'
13473 # Portland Group C++ compiler.
13474 lt_prog_compiler_wl_CXX
='-Wl,'
13475 lt_prog_compiler_pic_CXX
='-fpic'
13476 lt_prog_compiler_static_CXX
='-Bstatic'
13480 # Make sure the PIC flag is empty. It appears that all Alpha
13481 # Linux and Compaq Tru64 Unix objects are PIC.
13482 lt_prog_compiler_pic_CXX
=
13483 lt_prog_compiler_static_CXX
='-non_shared'
13486 case `$CC -V 2>&1 | sed 5q` in
13489 lt_prog_compiler_pic_CXX
='-KPIC'
13490 lt_prog_compiler_static_CXX
='-Bstatic'
13491 lt_prog_compiler_wl_CXX
='-Qoption ld '
13502 case $cc_basename in
13504 lt_prog_compiler_pic_CXX
='-W c,exportall'
13510 netbsd
* | netbsdelf
*-gnu)
13512 osf3
* | osf4
* | osf5
*)
13513 case $cc_basename in
13515 lt_prog_compiler_wl_CXX
='--backend -Wl,'
13518 # Rational C++ 2.4.1
13519 lt_prog_compiler_pic_CXX
='-pic'
13522 # Digital/Compaq C++
13523 lt_prog_compiler_wl_CXX
='-Wl,'
13524 # Make sure the PIC flag is empty. It appears that all Alpha
13525 # Linux and Compaq Tru64 Unix objects are PIC.
13526 lt_prog_compiler_pic_CXX
=
13527 lt_prog_compiler_static_CXX
='-non_shared'
13536 case $cc_basename in
13538 # Sun C++ 4.2, 5.x and Centerline C++
13539 lt_prog_compiler_pic_CXX
='-KPIC'
13540 lt_prog_compiler_static_CXX
='-Bstatic'
13541 lt_prog_compiler_wl_CXX
='-Qoption ld '
13544 # Green Hills C++ Compiler
13545 lt_prog_compiler_pic_CXX
='-PIC'
13552 case $cc_basename in
13555 lt_prog_compiler_pic_CXX
='-pic'
13556 lt_prog_compiler_static_CXX
='-Bstatic'
13560 lt_prog_compiler_pic_CXX
='-pic'
13567 case $cc_basename in
13569 # NonStop-UX NCC 3.20
13570 lt_prog_compiler_pic_CXX
='-KPIC'
13576 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
13577 case $cc_basename in
13579 lt_prog_compiler_wl_CXX
='-Wl,'
13580 lt_prog_compiler_pic_CXX
='-KPIC'
13581 lt_prog_compiler_static_CXX
='-Bstatic'
13588 lt_prog_compiler_can_build_shared_CXX
=no
13593 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13594 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
13597 # Check to make sure the PIC flag actually works.
13599 if test -n "$lt_prog_compiler_pic_CXX"; then
13601 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13602 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
13603 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
13604 echo $ECHO_N "(cached) $ECHO_C" >&6
13606 lt_prog_compiler_pic_works_CXX
=no
13607 ac_outfile
=conftest.
$ac_objext
13608 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
13609 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
13610 # Insert the option either (1) after the last *FLAGS variable, or
13611 # (2) before a word containing "conftest.", or (3) at the end.
13612 # Note that $ac_compile itself does not contain backslashes and begins
13613 # with a dollar sign (not a hyphen), so the echo should work correctly.
13614 # The option is referenced via a variable to avoid confusing sed.
13615 lt_compile
=`echo "$ac_compile" | $SED \
13616 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13617 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13618 -e 's:$: $lt_compiler_flag:'`
13619 (eval echo "\"\$as_me:13619: $lt_compile\"" >&5)
13620 (eval "$lt_compile" 2>conftest.err
)
13622 cat conftest.err
>&5
13623 echo "$as_me:13623: \$? = $ac_status" >&5
13624 if (exit $ac_status) && test -s "$ac_outfile"; then
13625 # The compiler can only warn and ignore the option if not recognized
13626 # So say no if there are warnings other than the usual output.
13627 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13628 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
13629 if test ! -s conftest.er2
|| diff conftest.exp conftest.er2
>/dev
/null
; then
13630 lt_prog_compiler_pic_works_CXX
=yes
13636 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
13637 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
13639 if test x
"$lt_prog_compiler_pic_works_CXX" = xyes
; then
13640 case $lt_prog_compiler_pic_CXX in
13642 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
13645 lt_prog_compiler_pic_CXX
=
13646 lt_prog_compiler_can_build_shared_CXX
=no
13651 # For platforms which do not support PIC, -DPIC is meaningless:
13653 lt_prog_compiler_pic_CXX
=
13656 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
13661 # Check to make sure the static flag actually works.
13663 wl
=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_CXX\"
13664 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13665 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13666 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
13667 echo $ECHO_N "(cached) $ECHO_C" >&6
13669 lt_prog_compiler_static_works_CXX
=no
13670 save_LDFLAGS
="$LDFLAGS"
13671 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
13672 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
13673 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
13674 # The linker can only warn and ignore the option if not recognized
13675 # So say no if there are warnings
13676 if test -s conftest.err
; then
13677 # Append any errors to the config.log.
13678 cat conftest.err
1>&5
13679 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13680 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
13681 if diff conftest.exp conftest.er2
>/dev
/null
; then
13682 lt_prog_compiler_static_works_CXX
=yes
13685 lt_prog_compiler_static_works_CXX
=yes
13689 LDFLAGS
="$save_LDFLAGS"
13692 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
13693 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
13695 if test x
"$lt_prog_compiler_static_works_CXX" = xyes
; then
13698 lt_prog_compiler_static_CXX
=
13702 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13703 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13704 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13705 echo $ECHO_N "(cached) $ECHO_C" >&6
13707 lt_cv_prog_compiler_c_o_CXX
=no
13708 $rm -r conftest
2>/dev
/null
13712 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
13714 lt_compiler_flag
="-o out/conftest2.$ac_objext"
13715 # Insert the option either (1) after the last *FLAGS variable, or
13716 # (2) before a word containing "conftest.", or (3) at the end.
13717 # Note that $ac_compile itself does not contain backslashes and begins
13718 # with a dollar sign (not a hyphen), so the echo should work correctly.
13719 lt_compile
=`echo "$ac_compile" | $SED \
13720 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13721 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13722 -e 's:$: $lt_compiler_flag:'`
13723 (eval echo "\"\$as_me:13723: $lt_compile\"" >&5)
13724 (eval "$lt_compile" 2>out
/conftest.err
)
13726 cat out
/conftest.err
>&5
13727 echo "$as_me:13727: \$? = $ac_status" >&5
13728 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
13730 # The compiler can only warn and ignore the option if not recognized
13731 # So say no if there are warnings
13732 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out
/conftest.exp
13733 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
13734 if test ! -s out
/conftest.er2
|| diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
13735 lt_cv_prog_compiler_c_o_CXX
=yes
13740 # SGI C++ compiler will create directory out/ii_files/ for
13741 # template instantiation
13742 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
13743 $rm out
/* && rmdir out
13749 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13750 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
13753 hard_links
="nottested"
13754 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
13755 # do not overwrite the value of need_locks provided by the user
13756 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13757 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13760 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
13762 ln conftest.a conftest.b
2>&5 || hard_links
=no
13763 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
13764 { echo "$as_me:$LINENO: result: $hard_links" >&5
13765 echo "${ECHO_T}$hard_links" >&6; }
13766 if test "$hard_links" = no
; then
13767 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13768 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13775 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13776 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13778 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13781 # If we're using GNU nm, then we don't want the "-C" option.
13782 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13783 if $NM -V 2>&1 | grep 'GNU' > /dev
/null
; then
13784 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'
13786 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'
13790 export_symbols_cmds_CXX
="$ltdll_cmds"
13793 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'
13795 linux
* | k
*bsd
*-gnu)
13796 link_all_deplibs_CXX
=no
13799 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13803 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13804 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13805 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
13808 # Do we need to explicitly link libc?
13810 case "x$archive_cmds_need_lc_CXX" in
13812 # Assume -lc should be added
13813 archive_cmds_need_lc_CXX
=yes
13815 if test "$enable_shared" = yes && test "$GCC" = yes; then
13816 case $archive_cmds_CXX in
13818 # FIXME: we may have to deal with multi-command sequences.
13821 # Test whether the compiler implicitly links with -lc since on some
13822 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13823 # to ld, don't add -lc before -lgcc.
13824 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13825 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
13827 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
13829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13830 (eval $ac_compile) 2>&5
13832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13833 (exit $ac_status); } 2>conftest.err
; then
13836 libobjs
=conftest.
$ac_objext
13838 wl
=$lt_prog_compiler_wl_CXX
13839 pic_flag
=$lt_prog_compiler_pic_CXX
13845 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
13846 allow_undefined_flag_CXX
=
13847 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13848 (eval $archive_cmds_CXX 2\
>\
&1 \
| grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
13850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13851 (exit $ac_status); }
13853 archive_cmds_need_lc_CXX
=no
13855 archive_cmds_need_lc_CXX
=yes
13857 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
13859 cat conftest.err
1>&5
13862 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13863 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
13870 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13871 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
13872 library_names_spec
=
13873 libname_spec
='lib$name'
13877 postuninstall_cmds
=
13881 shlibpath_overrides_runpath
=unknown
13883 dynamic_linker
="$host_os ld.so"
13884 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
13886 need_lib_prefix
=unknown
13887 hardcode_into_libs
=no
13889 # when you set need_version to no, make sure it does not cause -set_version
13890 # flags to be left without arguments
13891 need_version
=unknown
13896 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
13897 shlibpath_var
=LIBPATH
13899 # AIX 3 has no versioning support, so we append a major version to the name.
13900 soname_spec
='${libname}${release}${shared_ext}$major'
13907 hardcode_into_libs
=yes
13908 if test "$host_cpu" = ia64
; then
13909 # AIX 5 supports IA64
13910 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13911 shlibpath_var
=LD_LIBRARY_PATH
13913 # With GCC up to 2.95.x, collect2 would create an import file
13914 # for dependence libraries. The import file would start with
13915 # the line `#! .'. This would cause the generated library to
13916 # depend on `.', always an invalid library. This was fixed in
13917 # development snapshots of GCC prior to 3.0.
13919 aix4
| aix4.
[01] | aix4.
[01].
*)
13920 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13922 echo '#endif'; } | ${CC} -E - | grep yes > /dev
/null
; then
13925 can_build_shared
=no
13929 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13930 # soname into executable. Probably we can add versioning support to
13931 # collect2, so additional links can be useful in future.
13932 if test "$aix_use_runtimelinking" = yes; then
13933 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13934 # instead of lib<name>.a to let people know that these are not
13935 # typical AIX shared libraries.
13936 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13938 # We preserve .a as extension for shared libraries through AIX4.2
13939 # and later when we are not doing run time linking.
13940 library_names_spec
='${libname}${release}.a $libname.a'
13941 soname_spec
='${libname}${release}${shared_ext}$major'
13943 shlibpath_var
=LIBPATH
13948 library_names_spec
='$libname.ixlibrary $libname.a'
13949 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13950 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'
13954 library_names_spec
='${libname}${shared_ext}'
13955 dynamic_linker
="$host_os ld.so"
13956 shlibpath_var
=LIBRARY_PATH
13962 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13963 soname_spec
='${libname}${release}${shared_ext}$major'
13964 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
13965 shlibpath_var
=LD_LIBRARY_PATH
13966 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13967 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
13968 # the default ld.so.conf also contains /usr/contrib/lib and
13969 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13970 # libtool to hard-code these into programs
13973 cygwin
* | mingw
* | pw32
*)
13974 version_type
=windows
13979 case $GCC,$host_os in
13980 yes,cygwin
* | yes,mingw
* | yes,pw32
*)
13981 library_names_spec
='$libname.dll.a'
13982 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13983 postinstall_cmds
='base_file=`basename \${file}`~
13984 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13985 dldir=$destdir/`dirname \$dlpath`~
13986 test -d \$dldir || mkdir -p \$dldir~
13987 $install_prog $dir/$dlname \$dldir/$dlname~
13988 chmod a+x \$dldir/$dlname'
13989 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13990 dlpath=$dir/\$dldll~
13992 shlibpath_overrides_runpath
=yes
13996 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13997 soname_spec
='`echo ${libname} | sed -e 's
/^lib
/cyg
/'``echo ${release} | $SED -e 's
/[.
]/-/g
'`${versuffix}${shared_ext}'
13998 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
14001 # MinGW DLLs use traditional 'lib' prefix
14002 soname_spec
='${libname}`echo ${release} | $SED -e 's
/[.
]/-/g
'`${versuffix}${shared_ext}'
14003 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14004 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev
/null
; then
14005 # It is most probably a Windows format PATH printed by
14006 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14007 # path with ; separators, and with drive letters. We can handle the
14008 # drive letters (cygwin fileutils understands them), so leave them,
14009 # especially as we might pass files found there to a mingw objdump,
14010 # which wouldn't understand a cygwinified path. Ahh.
14011 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14013 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14017 # pw32 DLLs use 'pw' prefix rather than 'lib'
14018 library_names_spec
='`echo ${libname} | sed -e 's
/^lib
/pw
/'``echo ${release} | $SED -e 's
/[.
]/-/g
'`${versuffix}${shared_ext}'
14024 library_names_spec
='${libname}`echo ${release} | $SED -e 's
/[.
]/-/g
'`${versuffix}${shared_ext} $libname.lib'
14027 dynamic_linker
='Win32 ld.exe'
14028 # FIXME: first we should search . and the directory the executable is in
14032 darwin
* | rhapsody
*)
14033 dynamic_linker
="$host_os dyld"
14034 version_type
=darwin
14037 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14038 soname_spec
='${libname}${release}${major}$shared_ext'
14039 shlibpath_overrides_runpath
=yes
14040 shlibpath_var
=DYLD_LIBRARY_PATH
14041 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
14043 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
14050 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14051 soname_spec
='${libname}${release}${shared_ext}$major'
14052 shlibpath_var
=LD_LIBRARY_PATH
14059 freebsd
* | dragonfly
*)
14060 # DragonFly does not have aout. When/if they implement a new
14061 # versioning mechanism, adjust this.
14062 if test -x /usr
/bin
/objformat
; then
14063 objformat
=`/usr/bin/objformat`
14066 freebsd
[123]*) objformat
=aout
;;
14067 *) objformat
=elf
;;
14070 version_type
=freebsd
-$objformat
14071 case $version_type in
14073 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14078 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14082 shlibpath_var
=LD_LIBRARY_PATH
14085 shlibpath_overrides_runpath
=yes
14087 freebsd3.
[01]* | freebsdelf3.
[01]*)
14088 shlibpath_overrides_runpath
=yes
14089 hardcode_into_libs
=yes
14091 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
14092 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
14093 shlibpath_overrides_runpath
=no
14094 hardcode_into_libs
=yes
14096 *) # from 4.6 on, and DragonFly
14097 shlibpath_overrides_runpath
=yes
14098 hardcode_into_libs
=yes
14107 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14108 soname_spec
='${libname}${release}${shared_ext}$major'
14109 shlibpath_var
=LD_LIBRARY_PATH
14110 hardcode_into_libs
=yes
14113 hpux9
* | hpux10
* | hpux11
*)
14114 # Give a soname corresponding to the major version so that dld.sl refuses to
14115 # link against other versions.
14122 hardcode_into_libs
=yes
14123 dynamic_linker
="$host_os dld.so"
14124 shlibpath_var
=LD_LIBRARY_PATH
14125 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
14126 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14127 soname_spec
='${libname}${release}${shared_ext}$major'
14128 if test "X$HPUX_IA64_MODE" = X32
; then
14129 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14131 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
14133 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
14137 hardcode_into_libs
=yes
14138 dynamic_linker
="$host_os dld.sl"
14139 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
14140 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
14141 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14142 soname_spec
='${libname}${release}${shared_ext}$major'
14143 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14144 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
14148 dynamic_linker
="$host_os dld.sl"
14149 shlibpath_var
=SHLIB_PATH
14150 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
14151 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14152 soname_spec
='${libname}${release}${shared_ext}$major'
14155 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14156 postinstall_cmds
='chmod 555 $lib'
14163 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14164 soname_spec
='${libname}${release}${shared_ext}$major'
14165 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
14166 shlibpath_var
=LD_LIBRARY_PATH
14167 shlibpath_overrides_runpath
=no
14168 hardcode_into_libs
=yes
14171 irix5
* | irix6
* | nonstopux
*)
14173 nonstopux
*) version_type
=nonstopux
;;
14175 if test "$lt_cv_prog_gnu_ld" = yes; then
14183 soname_spec
='${libname}${release}${shared_ext}$major'
14184 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14186 irix5
* | nonstopux
*)
14187 libsuff
= shlibsuff
=
14190 case $LD in # libtool.m4 will add one of these switches to LD
14191 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14192 libsuff
= shlibsuff
= libmagic
=32-bit;;
14193 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14194 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
14195 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14196 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
14197 *) libsuff
= shlibsuff
= libmagic
=never
-match;;
14201 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
14202 shlibpath_overrides_runpath
=no
14203 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14204 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
14205 hardcode_into_libs
=yes
14208 # No shared lib support for Linux oldld, aout, or coff.
14209 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
14213 # This must be Linux ELF.
14214 linux
* | k
*bsd
*-gnu)
14218 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14219 soname_spec
='${libname}${release}${shared_ext}$major'
14220 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14221 shlibpath_var
=LD_LIBRARY_PATH
14222 shlibpath_overrides_runpath
=no
14223 # This implies no fast_install, which is unacceptable.
14224 # Some rework will be needed to allow for fast_install
14225 # before this can be enabled.
14226 hardcode_into_libs
=yes
14228 # Append ld.so.conf contents to the search path
14229 if test -f /etc
/ld.so.conf
; then
14230 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' ' '`
14231 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
14234 # We used to test for /lib/ld.so.1 and disable shared libraries on
14235 # powerpc, because MkLinux only supported shared libraries with the
14236 # GNU dynamic linker. Since this was broken with cross compilers,
14237 # most powerpc-linux boxes support dynamic linking these days and
14238 # people can always --disable-shared, the test was removed, and we
14239 # assume the GNU/Linux dynamic linker is in use.
14240 dynamic_linker
='GNU/Linux ld.so'
14247 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14248 soname_spec
='${libname}${release}${shared_ext}$major'
14249 shlibpath_var
=LD_LIBRARY_PATH
14250 shlibpath_overrides_runpath
=no
14251 hardcode_into_libs
=yes
14252 dynamic_linker
='NetBSD ld.elf_so'
14259 if echo __ELF__
| $CC -E - | grep __ELF__
>/dev
/null
; then
14260 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14261 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14262 dynamic_linker
='NetBSD (a.out) ld.so'
14264 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14265 soname_spec
='${libname}${release}${shared_ext}$major'
14266 dynamic_linker
='NetBSD ld.elf_so'
14268 shlibpath_var
=LD_LIBRARY_PATH
14269 shlibpath_overrides_runpath
=yes
14270 hardcode_into_libs
=yes
14275 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14276 shlibpath_var
=LD_LIBRARY_PATH
14277 shlibpath_overrides_runpath
=yes
14284 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14285 soname_spec
='${libname}${release}${shared_ext}$major'
14286 shlibpath_var
=LD_LIBRARY_PATH
14287 shlibpath_overrides_runpath
=yes
14292 sys_lib_dlsearch_path_spec
="/usr/lib"
14294 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14296 openbsd3.3
| openbsd3.3.
*) need_version
=yes ;;
14297 *) need_version
=no
;;
14299 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14300 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14301 shlibpath_var
=LD_LIBRARY_PATH
14302 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14304 openbsd2.
[89] | openbsd2.
[89].
*)
14305 shlibpath_overrides_runpath
=no
14308 shlibpath_overrides_runpath
=yes
14312 shlibpath_overrides_runpath
=yes
14317 libname_spec
='$name'
14320 library_names_spec
='$libname${shared_ext} $libname.a'
14321 dynamic_linker
='OS/2 ld.exe'
14322 shlibpath_var
=LIBPATH
14325 osf3
* | osf4
* | osf5
*)
14329 soname_spec
='${libname}${release}${shared_ext}$major'
14330 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14331 shlibpath_var
=LD_LIBRARY_PATH
14332 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14333 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
14344 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14345 soname_spec
='${libname}${release}${shared_ext}$major'
14346 shlibpath_var
=LD_LIBRARY_PATH
14347 shlibpath_overrides_runpath
=yes
14348 hardcode_into_libs
=yes
14349 # ldd complains unless libraries are executable
14350 postinstall_cmds
='chmod +x $lib'
14355 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14356 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14357 shlibpath_var
=LD_LIBRARY_PATH
14358 shlibpath_overrides_runpath
=yes
14359 if test "$with_gnu_ld" = yes; then
14367 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14368 soname_spec
='${libname}${release}${shared_ext}$major'
14369 shlibpath_var
=LD_LIBRARY_PATH
14370 case $host_vendor in
14372 shlibpath_overrides_runpath
=no
14374 export_dynamic_flag_spec
='${wl}-Blargedynsym'
14375 runpath_var
=LD_RUN_PATH
14383 shlibpath_overrides_runpath
=no
14384 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
14390 if test -d /usr
/nec
;then
14392 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14393 soname_spec
='$libname${shared_ext}.$major'
14394 shlibpath_var
=LD_LIBRARY_PATH
14398 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
14399 version_type
=freebsd
-elf
14402 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14403 soname_spec
='${libname}${release}${shared_ext}$major'
14404 shlibpath_var
=LD_LIBRARY_PATH
14405 hardcode_into_libs
=yes
14406 if test "$with_gnu_ld" = yes; then
14407 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14408 shlibpath_overrides_runpath
=no
14410 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
14411 shlibpath_overrides_runpath
=yes
14414 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
14418 sys_lib_dlsearch_path_spec
='/usr/lib'
14423 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14424 soname_spec
='${libname}${release}${shared_ext}$major'
14425 shlibpath_var
=LD_LIBRARY_PATH
14432 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14433 echo "${ECHO_T}$dynamic_linker" >&6; }
14434 test "$dynamic_linker" = no
&& can_build_shared
=no
14436 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
14437 if test "$GCC" = yes; then
14438 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14441 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14442 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
14443 hardcode_action_CXX
=
14444 if test -n "$hardcode_libdir_flag_spec_CXX" || \
14445 test -n "$runpath_var_CXX" || \
14446 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14448 # We can hardcode non-existant directories.
14449 if test "$hardcode_direct_CXX" != no
&&
14450 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14451 # have to relink, otherwise we might link with an installed library
14452 # when we should be linking with a yet-to-be-installed one
14453 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14454 test "$hardcode_minus_L_CXX" != no
; then
14455 # Linking always hardcodes the temporary library directory.
14456 hardcode_action_CXX
=relink
14458 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14459 hardcode_action_CXX
=immediate
14462 # We cannot hardcode anything, or else we can only hardcode existing
14464 hardcode_action_CXX
=unsupported
14466 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14467 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
14469 if test "$hardcode_action_CXX" = relink
; then
14470 # Fast installation is not supported
14471 enable_fast_install
=no
14472 elif test "$shlibpath_overrides_runpath" = yes ||
14473 test "$enable_shared" = no
; then
14474 # Fast installation is not necessary
14475 enable_fast_install
=needless
14479 # The else clause should only fire when bootstrapping the
14480 # libtool distribution, otherwise you forgot to ship ltmain.sh
14481 # with your package, and you will get complaints that there are
14482 # no rules to generate ltmain.sh.
14483 if test -f "$ltmain"; then
14484 # See if we are running on zsh, and set the options which allow our commands through
14485 # without removal of \ escapes.
14486 if test -n "${ZSH_VERSION+set}" ; then
14487 setopt NO_GLOB_SUBST
14489 # Now quote all the things that may contain metacharacters while being
14490 # careful not to overquote the AC_SUBSTed values. We take copies of the
14491 # variables and quote the copies for generation of the libtool script.
14492 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14494 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14495 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14496 deplibs_check_method reload_flag reload_cmds need_locks \
14497 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14498 lt_cv_sys_global_symbol_to_c_name_address \
14499 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14500 old_postinstall_cmds old_postuninstall_cmds \
14504 lt_prog_compiler_wl_CXX \
14505 lt_prog_compiler_pic_CXX \
14506 lt_prog_compiler_static_CXX \
14507 lt_prog_compiler_no_builtin_flag_CXX \
14508 export_dynamic_flag_spec_CXX \
14509 thread_safe_flag_spec_CXX \
14510 whole_archive_flag_spec_CXX \
14511 enable_shared_with_static_runtimes_CXX \
14512 old_archive_cmds_CXX \
14513 old_archive_from_new_cmds_CXX \
14514 predep_objects_CXX \
14515 postdep_objects_CXX \
14518 compiler_lib_search_path_CXX \
14520 archive_expsym_cmds_CXX \
14521 postinstall_cmds_CXX \
14522 postuninstall_cmds_CXX \
14523 old_archive_from_expsyms_cmds_CXX \
14524 allow_undefined_flag_CXX \
14525 no_undefined_flag_CXX \
14526 export_symbols_cmds_CXX \
14527 hardcode_libdir_flag_spec_CXX \
14528 hardcode_libdir_flag_spec_ld_CXX \
14529 hardcode_libdir_separator_CXX \
14530 hardcode_automatic_CXX \
14532 module_expsym_cmds_CXX \
14533 lt_cv_prog_compiler_c_o_CXX \
14534 fix_srcfile_path_CXX \
14535 exclude_expsyms_CXX \
14536 include_expsyms_CXX
; do
14539 old_archive_cmds_CXX
| \
14540 old_archive_from_new_cmds_CXX
| \
14541 archive_cmds_CXX
| \
14542 archive_expsym_cmds_CXX
| \
14543 module_cmds_CXX
| \
14544 module_expsym_cmds_CXX
| \
14545 old_archive_from_expsyms_cmds_CXX
| \
14546 export_symbols_cmds_CXX
| \
14547 extract_expsyms_cmds
| reload_cmds
| finish_cmds
| \
14548 postinstall_cmds
| postuninstall_cmds
| \
14549 old_postinstall_cmds
| old_postuninstall_cmds
| \
14550 sys_lib_search_path_spec
| sys_lib_dlsearch_path_spec
)
14551 # Double-quote double-evaled strings.
14552 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14555 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14561 *'\$0 --fallback-echo"')
14562 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14568 cat <<__EOF__ >> "$cfgfile"
14569 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14571 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14573 # Shell to use when invoking shell scripts.
14576 # Whether or not to build shared libraries.
14577 build_libtool_libs=$enable_shared
14579 # Whether or not to build static libraries.
14580 build_old_libs=$enable_static
14582 # Whether or not to add -lc for building shared libraries.
14583 build_libtool_need_lc=$archive_cmds_need_lc_CXX
14585 # Whether or not to disallow shared libs when runtime libs are static
14586 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14588 # Whether or not to optimize for fast installation.
14589 fast_install=$enable_fast_install
14592 host_alias=$host_alias
14596 # The build system.
14597 build_alias=$build_alias
14601 # An echo program that does not interpret backslashes.
14606 AR_FLAGS=$lt_AR_FLAGS
14611 # LTCC compiler flags.
14612 LTCFLAGS=$lt_LTCFLAGS
14614 # A language-specific compiler.
14615 CC=$lt_compiler_CXX
14617 # Is the compiler the GNU C compiler?
14623 # The linker used to build libraries.
14626 # Whether we need hard or soft links.
14629 # A BSD-compatible nm program.
14632 # A symbol stripping program
14635 # Used to examine libraries when file_magic_cmd begins "file"
14636 MAGIC_CMD=$MAGIC_CMD
14638 # Used on cygwin: DLL creation program.
14641 # Used on cygwin: object dumper.
14644 # Used on cygwin: assembler.
14647 # The name of the directory that contains temporary libtool files.
14650 # How to create reloadable object files.
14651 reload_flag=$lt_reload_flag
14652 reload_cmds=$lt_reload_cmds
14654 # How to pass a linker flag through the compiler.
14655 wl=$lt_lt_prog_compiler_wl_CXX
14657 # Object file suffix (normally "o").
14658 objext="$ac_objext"
14660 # Old archive suffix (normally "a").
14663 # Shared library suffix (normally ".so").
14664 shrext_cmds='$shrext_cmds'
14666 # Executable file suffix (normally "").
14669 # Additional compiler flags for building library objects.
14670 pic_flag=$lt_lt_prog_compiler_pic_CXX
14673 # What is the maximum length of a command?
14674 max_cmd_len=$lt_cv_sys_max_cmd_len
14676 # Does compiler simultaneously support -c and -o options?
14677 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14679 # Must we lock files when doing compilation?
14680 need_locks=$lt_need_locks
14682 # Do we need the lib prefix for modules?
14683 need_lib_prefix=$need_lib_prefix
14685 # Do we need a version for libraries?
14686 need_version=$need_version
14688 # Whether dlopen is supported.
14689 dlopen_support=$enable_dlopen
14691 # Whether dlopen of programs is supported.
14692 dlopen_self=$enable_dlopen_self
14694 # Whether dlopen of statically linked programs is supported.
14695 dlopen_self_static=$enable_dlopen_self_static
14697 # Compiler flag to prevent dynamic linking.
14698 link_static_flag=$lt_lt_prog_compiler_static_CXX
14700 # Compiler flag to turn off builtin functions.
14701 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14703 # Compiler flag to allow reflexive dlopens.
14704 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14706 # Compiler flag to generate shared objects directly from archives.
14707 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14709 # Compiler flag to generate thread-safe objects.
14710 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14712 # Library versioning type.
14713 version_type=$version_type
14715 # Format of library name prefix.
14716 libname_spec=$lt_libname_spec
14718 # List of archive names. First name is the real one, the rest are links.
14719 # The last name is the one that the linker finds with -lNAME.
14720 library_names_spec=$lt_library_names_spec
14722 # The coded name of the library, if different from the real name.
14723 soname_spec=$lt_soname_spec
14725 # Commands used to build and install an old-style archive.
14727 old_archive_cmds=$lt_old_archive_cmds_CXX
14728 old_postinstall_cmds=$lt_old_postinstall_cmds
14729 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14731 # Create an old-style archive from a shared archive.
14732 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14734 # Create a temporary old-style archive to link instead of a shared archive.
14735 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14737 # Commands used to build and install a shared archive.
14738 archive_cmds=$lt_archive_cmds_CXX
14739 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14740 postinstall_cmds=$lt_postinstall_cmds
14741 postuninstall_cmds=$lt_postuninstall_cmds
14743 # Commands used to build a loadable module (assumed same as above if empty)
14744 module_cmds=$lt_module_cmds_CXX
14745 module_expsym_cmds=$lt_module_expsym_cmds_CXX
14747 # Commands to strip libraries.
14748 old_striplib=$lt_old_striplib
14749 striplib=$lt_striplib
14751 # Dependencies to place before the objects being linked to create a
14753 predep_objects=$lt_predep_objects_CXX
14755 # Dependencies to place after the objects being linked to create a
14757 postdep_objects=$lt_postdep_objects_CXX
14759 # Dependencies to place before the objects being linked to create a
14761 predeps=$lt_predeps_CXX
14763 # Dependencies to place after the objects being linked to create a
14765 postdeps=$lt_postdeps_CXX
14767 # The library search path used internally by the compiler when linking
14768 # a shared library.
14769 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14771 # Method to check whether dependent libraries are shared objects.
14772 deplibs_check_method=$lt_deplibs_check_method
14774 # Command to use when deplibs_check_method == file_magic.
14775 file_magic_cmd=$lt_file_magic_cmd
14777 # Flag that allows shared libraries with undefined symbols to be built.
14778 allow_undefined_flag=$lt_allow_undefined_flag_CXX
14780 # Flag that forces no undefined symbols.
14781 no_undefined_flag=$lt_no_undefined_flag_CXX
14783 # Commands used to finish a libtool library installation in a directory.
14784 finish_cmds=$lt_finish_cmds
14786 # Same as above, but a single script fragment to be evaled but not shown.
14787 finish_eval=$lt_finish_eval
14789 # Take the output of nm and produce a listing of raw symbols and C names.
14790 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14792 # Transform the output of nm in a proper C declaration
14793 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14795 # Transform the output of nm in a C name address pair
14796 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14798 # This is the shared library runtime path variable.
14799 runpath_var=$runpath_var
14801 # This is the shared library path variable.
14802 shlibpath_var=$shlibpath_var
14804 # Is shlibpath searched before the hard-coded library search path?
14805 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14807 # How to hardcode a shared library path into an executable.
14808 hardcode_action=$hardcode_action_CXX
14810 # Whether we should hardcode library paths into libraries.
14811 hardcode_into_libs=$hardcode_into_libs
14813 # Flag to hardcode \$libdir into a binary during linking.
14814 # This must work even if \$libdir does not exist.
14815 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14817 # If ld is used when linking, flag to hardcode \$libdir into
14818 # a binary during linking. This must work even if \$libdir does
14820 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14822 # Whether we need a single -rpath flag with a separated argument.
14823 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14825 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14826 # resulting binary.
14827 hardcode_direct=$hardcode_direct_CXX
14829 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14830 # resulting binary.
14831 hardcode_minus_L=$hardcode_minus_L_CXX
14833 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14834 # the resulting binary.
14835 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14837 # Set to yes if building a shared library automatically hardcodes DIR into the library
14838 # and all subsequent libraries and executables linked against it.
14839 hardcode_automatic=$hardcode_automatic_CXX
14841 # Variables whose values should be saved in libtool wrapper scripts and
14842 # restored at relink time.
14843 variables_saved_for_relink="$variables_saved_for_relink"
14845 # Whether libtool must link a program against all its dependency libraries.
14846 link_all_deplibs=$link_all_deplibs_CXX
14848 # Compile-time system search path for libraries
14849 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14851 # Run-time system search path for libraries
14852 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14854 # Fix the shell variable \$srcfile for the compiler.
14855 fix_srcfile_path=$lt_fix_srcfile_path
14857 # Set to yes if exported symbols are required.
14858 always_export_symbols=$always_export_symbols_CXX
14860 # The commands to list exported symbols.
14861 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14863 # The commands to extract the exported symbol list from a shared archive.
14864 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14866 # Symbols that should not be listed in the preloaded symbols.
14867 exclude_expsyms=$lt_exclude_expsyms_CXX
14869 # Symbols that must always be exported.
14870 include_expsyms=$lt_include_expsyms_CXX
14872 # ### END LIBTOOL TAG CONFIG: $tagname
14878 # If there is no Makefile yet, we rely on a make rule to execute
14879 # `config.status --recheck' to rerun these tests and create the
14880 # libtool script then.
14881 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14882 if test -f "$ltmain_in"; then
14883 test -f Makefile
&& make "$ltmain"
14889 ac_cpp
='$CPP $CPPFLAGS'
14890 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14891 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14892 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
14898 with_gnu_ldcxx
=$with_gnu_ld
14899 with_gnu_ld
=$lt_save_with_gnu_ld
14900 lt_cv_path_LDCXX
=$lt_cv_path_LD
14901 lt_cv_path_LD
=$lt_save_path_LD
14902 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
14903 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
14911 if test -n "$F77" && test "X$F77" != "Xno"; then
14914 ac_compile
='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14915 ac_link
='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14916 ac_compiler_gnu
=$ac_cv_f77_compiler_gnu
14919 archive_cmds_need_lc_F77
=no
14920 allow_undefined_flag_F77
=
14921 always_export_symbols_F77
=no
14922 archive_expsym_cmds_F77
=
14923 export_dynamic_flag_spec_F77
=
14924 hardcode_direct_F77
=no
14925 hardcode_libdir_flag_spec_F77
=
14926 hardcode_libdir_flag_spec_ld_F77
=
14927 hardcode_libdir_separator_F77
=
14928 hardcode_minus_L_F77
=no
14929 hardcode_automatic_F77
=no
14931 module_expsym_cmds_F77
=
14932 link_all_deplibs_F77
=unknown
14933 old_archive_cmds_F77
=$old_archive_cmds
14934 no_undefined_flag_F77
=
14935 whole_archive_flag_spec_F77
=
14936 enable_shared_with_static_runtimes_F77
=no
14938 # Source file extension for f77 test sources.
14941 # Object file extension for compiled f77 test sources.
14945 # Code to be used in simple compile tests
14946 lt_simple_compile_test_code
="\
14952 # Code to be used in simple link tests
14953 lt_simple_link_test_code
="\
14958 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14960 # If no C compiler was specified, use CC.
14963 # If no C compiler flags were specified, use CFLAGS.
14964 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
14966 # Allow CC to be a program name with arguments.
14970 # save warnings/boilerplate of simple test code
14971 ac_outfile
=conftest.
$ac_objext
14972 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
14973 eval "$ac_compile" 2>&1 >/dev
/null
| $SED '/^$/d; /^ *+/d' >conftest.err
14974 _lt_compiler_boilerplate
=`cat conftest.err`
14977 ac_outfile
=conftest.
$ac_objext
14978 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
14979 eval "$ac_link" 2>&1 >/dev
/null
| $SED '/^$/d; /^ *+/d' >conftest.err
14980 _lt_linker_boilerplate
=`cat conftest.err`
14984 # Allow CC to be a program name with arguments.
14989 for cc_temp
in $compiler""; do
14991 compile
| *[\\/]compile
| ccache
| *[\\/]ccache
) ;;
14992 distcc
| *[\\/]distcc
| purify
| *[\\/]purify
) ;;
14997 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15000 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
15001 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
15002 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
15003 echo "${ECHO_T}$can_build_shared" >&6; }
15005 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
15006 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
15007 test "$can_build_shared" = "no" && enable_shared
=no
15009 # On AIX, shared libraries and static libraries use the same namespace, and
15010 # are all built from PIC.
15013 test "$enable_shared" = yes && enable_static
=no
15014 if test -n "$RANLIB"; then
15015 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
15016 postinstall_cmds
='$RANLIB $lib'
15020 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
15021 test "$enable_shared" = yes && enable_static
=no
15025 { echo "$as_me:$LINENO: result: $enable_shared" >&5
15026 echo "${ECHO_T}$enable_shared" >&6; }
15028 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
15029 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
15030 # Make sure either enable_shared or enable_static is yes.
15031 test "$enable_shared" = yes || enable_static
=yes
15032 { echo "$as_me:$LINENO: result: $enable_static" >&5
15033 echo "${ECHO_T}$enable_static" >&6; }
15038 lt_prog_compiler_wl_F77
=
15039 lt_prog_compiler_pic_F77
=
15040 lt_prog_compiler_static_F77
=
15042 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15043 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
15045 if test "$GCC" = yes; then
15046 lt_prog_compiler_wl_F77
='-Wl,'
15047 lt_prog_compiler_static_F77
='-static'
15051 # All AIX code is PIC.
15052 if test "$host_cpu" = ia64
; then
15053 # AIX 5 now supports IA64 processor
15054 lt_prog_compiler_static_F77
='-Bstatic'
15059 # FIXME: we need at least 68020 code to build shared libraries, but
15060 # adding the `-m68020' flag to GCC prevents building anything better,
15062 lt_prog_compiler_pic_F77
='-m68020 -resident32 -malways-restore-a4'
15065 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
15066 # PIC is the default for these OSes.
15069 mingw
* | cygwin
* | pw32
* | os2
*)
15070 # This hack is so that the source file can tell whether it is being
15071 # built for inclusion in a dll (and should export symbols for example).
15072 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15073 # (--disable-auto-import) libraries
15074 lt_prog_compiler_pic_F77
='-DDLL_EXPORT'
15077 darwin
* | rhapsody
*)
15078 # PIC is the default on this platform
15079 # Common symbols not allowed in MH_DYLIB files
15080 lt_prog_compiler_pic_F77
='-fno-common'
15084 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15085 # Instead, we relocate shared libraries at runtime.
15089 # Just because we use GCC doesn't mean we suddenly get shared libraries
15090 # on systems that don't support them.
15091 lt_prog_compiler_can_build_shared_F77
=no
15096 if test -d /usr
/nec
; then
15097 lt_prog_compiler_pic_F77
=-Kconform_pic
15102 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15103 # not for PA HP-UX.
15109 lt_prog_compiler_pic_F77
='-fPIC'
15115 lt_prog_compiler_pic_F77
='-fPIC'
15119 # PORTME Check for flag to pass linker flags through the system compiler.
15122 lt_prog_compiler_wl_F77
='-Wl,'
15123 if test "$host_cpu" = ia64
; then
15124 # AIX 5 now supports IA64 processor
15125 lt_prog_compiler_static_F77
='-Bstatic'
15127 lt_prog_compiler_static_F77
='-bnso -bI:/lib/syscalls.exp'
15131 # PIC is the default on this platform
15132 # Common symbols not allowed in MH_DYLIB files
15133 case $cc_basename in
15135 lt_prog_compiler_pic_F77
='-qnocommon'
15136 lt_prog_compiler_wl_F77
='-Wl,'
15141 mingw
* | cygwin
* | pw32
* | os2
*)
15142 # This hack is so that the source file can tell whether it is being
15143 # built for inclusion in a dll (and should export symbols for example).
15144 lt_prog_compiler_pic_F77
='-DDLL_EXPORT'
15147 hpux9
* | hpux10
* | hpux11
*)
15148 lt_prog_compiler_wl_F77
='-Wl,'
15149 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15150 # not for PA HP-UX.
15156 lt_prog_compiler_pic_F77
='+Z'
15159 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15160 lt_prog_compiler_static_F77
='${wl}-a ${wl}archive'
15163 irix5
* | irix6
* | nonstopux
*)
15164 lt_prog_compiler_wl_F77
='-Wl,'
15165 # PIC (with -KPIC) is the default.
15166 lt_prog_compiler_static_F77
='-non_shared'
15170 lt_prog_compiler_pic_F77
='-KPIC'
15171 lt_prog_compiler_static_F77
='-Bstatic'
15174 linux
* | k
*bsd
*-gnu)
15175 case $cc_basename in
15177 lt_prog_compiler_wl_F77
='-Wl,'
15178 lt_prog_compiler_pic_F77
='-KPIC'
15179 lt_prog_compiler_static_F77
='-static'
15181 pgcc
* | pgf77
* | pgf90
* | pgf95
*)
15182 # Portland Group compilers (*not* the Pentium gcc compiler,
15183 # which looks to be a dead project)
15184 lt_prog_compiler_wl_F77
='-Wl,'
15185 lt_prog_compiler_pic_F77
='-fpic'
15186 lt_prog_compiler_static_F77
='-Bstatic'
15189 lt_prog_compiler_wl_F77
='-Wl,'
15190 # All Alpha code is PIC.
15191 lt_prog_compiler_static_F77
='-non_shared'
15194 case `$CC -V 2>&1 | sed 5q` in
15197 lt_prog_compiler_pic_F77
='-KPIC'
15198 lt_prog_compiler_static_F77
='-Bstatic'
15199 lt_prog_compiler_wl_F77
='-Wl,'
15202 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15203 lt_prog_compiler_pic_F77
='-KPIC'
15204 lt_prog_compiler_static_F77
='-Bstatic'
15205 lt_prog_compiler_wl_F77
=''
15212 osf3
* | osf4
* | osf5
*)
15213 lt_prog_compiler_wl_F77
='-Wl,'
15214 # All OSF/1 code is PIC.
15215 lt_prog_compiler_static_F77
='-non_shared'
15219 lt_prog_compiler_static_F77
='-non_shared'
15223 lt_prog_compiler_pic_F77
='-KPIC'
15224 lt_prog_compiler_static_F77
='-Bstatic'
15225 case $cc_basename in
15226 f77
* | f90
* | f95
*)
15227 lt_prog_compiler_wl_F77
='-Qoption ld ';;
15229 lt_prog_compiler_wl_F77
='-Wl,';;
15234 lt_prog_compiler_wl_F77
='-Qoption ld '
15235 lt_prog_compiler_pic_F77
='-PIC'
15236 lt_prog_compiler_static_F77
='-Bstatic'
15239 sysv4
| sysv4.2uw2
* | sysv4.3
*)
15240 lt_prog_compiler_wl_F77
='-Wl,'
15241 lt_prog_compiler_pic_F77
='-KPIC'
15242 lt_prog_compiler_static_F77
='-Bstatic'
15246 if test -d /usr
/nec
;then
15247 lt_prog_compiler_pic_F77
='-Kconform_pic'
15248 lt_prog_compiler_static_F77
='-Bstatic'
15252 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
15253 lt_prog_compiler_wl_F77
='-Wl,'
15254 lt_prog_compiler_pic_F77
='-KPIC'
15255 lt_prog_compiler_static_F77
='-Bstatic'
15259 lt_prog_compiler_wl_F77
='-Wl,'
15260 lt_prog_compiler_can_build_shared_F77
=no
15264 lt_prog_compiler_pic_F77
='-pic'
15265 lt_prog_compiler_static_F77
='-Bstatic'
15269 lt_prog_compiler_can_build_shared_F77
=no
15274 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
15275 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
15278 # Check to make sure the PIC flag actually works.
15280 if test -n "$lt_prog_compiler_pic_F77"; then
15282 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15283 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
15284 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
15285 echo $ECHO_N "(cached) $ECHO_C" >&6
15287 lt_prog_compiler_pic_works_F77
=no
15288 ac_outfile
=conftest.
$ac_objext
15289 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
15290 lt_compiler_flag
="$lt_prog_compiler_pic_F77"
15291 # Insert the option either (1) after the last *FLAGS variable, or
15292 # (2) before a word containing "conftest.", or (3) at the end.
15293 # Note that $ac_compile itself does not contain backslashes and begins
15294 # with a dollar sign (not a hyphen), so the echo should work correctly.
15295 # The option is referenced via a variable to avoid confusing sed.
15296 lt_compile
=`echo "$ac_compile" | $SED \
15297 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15298 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15299 -e 's:$: $lt_compiler_flag:'`
15300 (eval echo "\"\$as_me:15300: $lt_compile\"" >&5)
15301 (eval "$lt_compile" 2>conftest.err
)
15303 cat conftest.err
>&5
15304 echo "$as_me:15304: \$? = $ac_status" >&5
15305 if (exit $ac_status) && test -s "$ac_outfile"; then
15306 # The compiler can only warn and ignore the option if not recognized
15307 # So say no if there are warnings other than the usual output.
15308 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15309 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
15310 if test ! -s conftest.er2
|| diff conftest.exp conftest.er2
>/dev
/null
; then
15311 lt_prog_compiler_pic_works_F77
=yes
15317 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
15318 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
15320 if test x
"$lt_prog_compiler_pic_works_F77" = xyes
; then
15321 case $lt_prog_compiler_pic_F77 in
15323 *) lt_prog_compiler_pic_F77
=" $lt_prog_compiler_pic_F77" ;;
15326 lt_prog_compiler_pic_F77
=
15327 lt_prog_compiler_can_build_shared_F77
=no
15332 # For platforms which do not support PIC, -DPIC is meaningless:
15334 lt_prog_compiler_pic_F77
=
15337 lt_prog_compiler_pic_F77
="$lt_prog_compiler_pic_F77"
15342 # Check to make sure the static flag actually works.
15344 wl
=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_F77\"
15345 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15346 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15347 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
15348 echo $ECHO_N "(cached) $ECHO_C" >&6
15350 lt_prog_compiler_static_works_F77
=no
15351 save_LDFLAGS
="$LDFLAGS"
15352 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
15353 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
15354 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
15355 # The linker can only warn and ignore the option if not recognized
15356 # So say no if there are warnings
15357 if test -s conftest.err
; then
15358 # Append any errors to the config.log.
15359 cat conftest.err
1>&5
15360 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15361 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
15362 if diff conftest.exp conftest.er2
>/dev
/null
; then
15363 lt_prog_compiler_static_works_F77
=yes
15366 lt_prog_compiler_static_works_F77
=yes
15370 LDFLAGS
="$save_LDFLAGS"
15373 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
15374 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
15376 if test x
"$lt_prog_compiler_static_works_F77" = xyes
; then
15379 lt_prog_compiler_static_F77
=
15383 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15384 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15385 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
15386 echo $ECHO_N "(cached) $ECHO_C" >&6
15388 lt_cv_prog_compiler_c_o_F77
=no
15389 $rm -r conftest
2>/dev
/null
15393 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
15395 lt_compiler_flag
="-o out/conftest2.$ac_objext"
15396 # Insert the option either (1) after the last *FLAGS variable, or
15397 # (2) before a word containing "conftest.", or (3) at the end.
15398 # Note that $ac_compile itself does not contain backslashes and begins
15399 # with a dollar sign (not a hyphen), so the echo should work correctly.
15400 lt_compile
=`echo "$ac_compile" | $SED \
15401 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15402 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15403 -e 's:$: $lt_compiler_flag:'`
15404 (eval echo "\"\$as_me:15404: $lt_compile\"" >&5)
15405 (eval "$lt_compile" 2>out
/conftest.err
)
15407 cat out
/conftest.err
>&5
15408 echo "$as_me:15408: \$? = $ac_status" >&5
15409 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
15411 # The compiler can only warn and ignore the option if not recognized
15412 # So say no if there are warnings
15413 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out
/conftest.exp
15414 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
15415 if test ! -s out
/conftest.er2
|| diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
15416 lt_cv_prog_compiler_c_o_F77
=yes
15421 # SGI C++ compiler will create directory out/ii_files/ for
15422 # template instantiation
15423 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
15424 $rm out
/* && rmdir out
15430 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15431 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
15434 hard_links
="nottested"
15435 if test "$lt_cv_prog_compiler_c_o_F77" = no
&& test "$need_locks" != no
; then
15436 # do not overwrite the value of need_locks provided by the user
15437 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15438 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15441 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
15443 ln conftest.a conftest.b
2>&5 || hard_links
=no
15444 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
15445 { echo "$as_me:$LINENO: result: $hard_links" >&5
15446 echo "${ECHO_T}$hard_links" >&6; }
15447 if test "$hard_links" = no
; then
15448 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15449 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15456 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15457 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15460 allow_undefined_flag_F77
=
15461 enable_shared_with_static_runtimes_F77
=no
15463 archive_expsym_cmds_F77
=
15464 old_archive_From_new_cmds_F77
=
15465 old_archive_from_expsyms_cmds_F77
=
15466 export_dynamic_flag_spec_F77
=
15467 whole_archive_flag_spec_F77
=
15468 thread_safe_flag_spec_F77
=
15469 hardcode_libdir_flag_spec_F77
=
15470 hardcode_libdir_flag_spec_ld_F77
=
15471 hardcode_libdir_separator_F77
=
15472 hardcode_direct_F77
=no
15473 hardcode_minus_L_F77
=no
15474 hardcode_shlibpath_var_F77
=unsupported
15475 link_all_deplibs_F77
=unknown
15476 hardcode_automatic_F77
=no
15478 module_expsym_cmds_F77
=
15479 always_export_symbols_F77
=no
15480 export_symbols_cmds_F77
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15481 # include_expsyms should be a list of space-separated symbols to be *always*
15482 # included in the symbol list
15483 include_expsyms_F77
=
15484 # exclude_expsyms can be an extended regexp of symbols to exclude
15485 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15486 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15487 # as well as any symbol that contains `d'.
15488 exclude_expsyms_F77
="_GLOBAL_OFFSET_TABLE_"
15489 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15490 # platforms (ab)use it in PIC code, but their linkers get confused if
15491 # the symbol is explicitly referenced. Since portable code cannot
15492 # rely on this symbol name, it's probably fine to never include it in
15493 # preloaded symbol tables.
15494 extract_expsyms_cmds
=
15495 # Just being paranoid about ensuring that cc_basename is set.
15496 for cc_temp
in $compiler""; do
15498 compile
| *[\\/]compile
| ccache
| *[\\/]ccache
) ;;
15499 distcc
| *[\\/]distcc
| purify
| *[\\/]purify
) ;;
15504 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15507 cygwin
* | mingw
* | pw32
*)
15508 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15509 # When not using gcc, we currently assume that we are using
15510 # Microsoft Visual C++.
15511 if test "$GCC" != yes; then
15516 # we just hope/assume this is gcc and not c89 (= MSVC++)
15525 if test "$with_gnu_ld" = yes; then
15526 # If archive_cmds runs LD, not CC, wlarc should be empty
15529 # Set some defaults for GNU ld with shared library support. These
15530 # are reset later if shared libraries are not supported. Putting them
15531 # here allows them to be overridden if necessary.
15532 runpath_var
=LD_RUN_PATH
15533 hardcode_libdir_flag_spec_F77
='${wl}--rpath ${wl}$libdir'
15534 export_dynamic_flag_spec_F77
='${wl}--export-dynamic'
15535 # ancient GNU ld didn't support --whole-archive et. al.
15536 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev
/null
; then
15537 whole_archive_flag_spec_F77
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15539 whole_archive_flag_spec_F77
=
15541 supports_anon_versioning
=no
15542 case `$LD -v 2>/dev/null` in
15543 *\
[01].
* | *\
2.
[0-9].
* | *\
2.10.
*) ;; # catch versions < 2.11
15544 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
15545 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
15546 *\
2.11.
*) ;; # other 2.11 versions
15547 *) supports_anon_versioning
=yes ;;
15550 # See if GNU ld supports shared libraries.
15552 aix3
* | aix4
* | aix5
*)
15553 # On AIX/PPC, the GNU linker is very broken
15554 if test "$host_cpu" != ia64
; then
15558 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15559 *** to be unable to reliably create shared libraries on AIX.
15560 *** Therefore, libtool is disabling shared libraries support. If you
15561 *** really care for shared libraries, you may want to modify your PATH
15562 *** so that a non-GNU linker is found, and then restart.
15569 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)'
15570 hardcode_libdir_flag_spec_F77
='-L$libdir'
15571 hardcode_minus_L_F77
=yes
15573 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15574 # that the semantics of dynamic libraries on AmigaOS, at least up
15575 # to version 4, is to share data among multiple programs linked
15576 # with the same dynamic library. Since this doesn't match the
15577 # behavior of shared libraries on other platforms, we can't use
15583 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev
/null
; then
15584 allow_undefined_flag_F77
=unsupported
15585 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15586 # support --undefined. This deserves some investigation. FIXME
15587 archive_cmds_F77
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15593 cygwin
* | mingw
* | pw32
*)
15594 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15595 # as there is no search path for DLLs.
15596 hardcode_libdir_flag_spec_F77
='-L$libdir'
15597 allow_undefined_flag_F77
=unsupported
15598 always_export_symbols_F77
=no
15599 enable_shared_with_static_runtimes_F77
=yes
15600 export_symbols_cmds_F77
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15602 if $LD --help 2>&1 | grep 'auto-import' > /dev
/null
; then
15603 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15604 # If the export-symbols file already is a .def file (1st line
15605 # is EXPORTS), use it as is; otherwise, prepend...
15606 archive_expsym_cmds_F77
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15607 cp $export_symbols $output_objdir/$soname.def;
15609 echo EXPORTS > $output_objdir/$soname.def;
15610 cat $export_symbols >> $output_objdir/$soname.def;
15612 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15619 hardcode_direct_F77
=no
15620 hardcode_shlibpath_var_F77
=no
15621 hardcode_libdir_flag_spec_F77
='${wl}-rpath,$libdir'
15622 export_dynamic_flag_spec_F77
='${wl}-E'
15623 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15624 # Instead, shared libraries are loaded at an image base (0x10000000 by
15625 # default) and relocated if they conflict, which is a slow very memory
15626 # consuming and fragmenting process. To avoid this, we pick a random,
15627 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15628 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15629 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'
15630 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'
15633 gnu
* | linux
* | k
*bsd
*-gnu)
15634 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev
/null
; then
15636 case $cc_basename,$host_cpu in
15637 pgcc
*) # Portland Group C compiler
15638 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'
15639 tmp_addflag
=' $pic_flag'
15641 pgf77
* | pgf90
* | pgf95
*) # Portland Group f77 and f90 compilers
15642 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'
15643 tmp_addflag
=' $pic_flag -Mnomain' ;;
15644 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
15645 tmp_addflag
=' -i_dynamic' ;;
15646 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
15647 tmp_addflag
=' -i_dynamic -nofor_main' ;;
15648 ifc
* | ifort
*) # Intel Fortran compiler
15649 tmp_addflag
=' -nofor_main' ;;
15651 case `$CC -V 2>&1 | sed 5q` in
15652 *Sun\ C
*) # Sun C 5.9
15653 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'
15654 tmp_sharedflag
='-G' ;;
15655 *Sun\ F
*) # Sun Fortran 8.3
15656 tmp_sharedflag
='-G' ;;
15658 tmp_sharedflag
='-shared' ;;
15660 archive_cmds_F77
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15662 if test $supports_anon_versioning = yes; then
15663 archive_expsym_cmds_F77
='$echo "{ global:" > $output_objdir/$libname.ver~
15664 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15665 $echo "local: *; };" >> $output_objdir/$libname.ver~
15666 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15668 link_all_deplibs_F77
=no
15674 netbsd
* | netbsdelf
*-gnu)
15675 if echo __ELF__
| $CC -E - | grep __ELF__
>/dev
/null
; then
15676 archive_cmds_F77
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15679 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15680 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15685 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev
/null
; then
15689 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15690 *** create shared libraries on Solaris systems. Therefore, libtool
15691 *** is disabling shared libraries support. We urge you to upgrade GNU
15692 *** binutils to release 2.9.1 or newer. Another option is to modify
15693 *** your PATH or compiler configuration so that the native linker is
15694 *** used, and then restart.
15697 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev
/null
; then
15698 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15699 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15705 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
15706 case `$LD -v 2>&1` in
15707 *\
[01].
* | *\
2.
[0-9].
* | *\
2.1[0-5].
*)
15711 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15712 *** reliably create shared libraries on SCO systems. Therefore, libtool
15713 *** is disabling shared libraries support. We urge you to upgrade GNU
15714 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15715 *** your PATH or compiler configuration so that the native linker is
15716 *** used, and then restart.
15721 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev
/null
; then
15722 hardcode_libdir_flag_spec_F77
='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15723 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15724 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15733 archive_cmds_F77
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15735 hardcode_direct_F77
=yes
15736 hardcode_shlibpath_var_F77
=no
15740 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev
/null
; then
15741 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15742 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15749 if test "$ld_shlibs_F77" = no
; then
15751 hardcode_libdir_flag_spec_F77
=
15752 export_dynamic_flag_spec_F77
=
15753 whole_archive_flag_spec_F77
=
15756 # PORTME fill in a description of your system's linker (not GNU ld)
15759 allow_undefined_flag_F77
=unsupported
15760 always_export_symbols_F77
=yes
15761 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'
15762 # Note: this linker hardcodes the directories in LIBPATH if there
15763 # are no directories specified by -L.
15764 hardcode_minus_L_F77
=yes
15765 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15766 # Neither direct hardcoding nor static linking is supported with a
15768 hardcode_direct_F77
=unsupported
15773 if test "$host_cpu" = ia64
; then
15774 # On IA64, the linker does run time linking by default, so we don't
15775 # have to do anything special.
15776 aix_use_runtimelinking
=no
15777 exp_sym_flag
='-Bexport'
15780 # If we're using GNU nm, then we don't want the "-C" option.
15781 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15782 if $NM -V 2>&1 | grep 'GNU' > /dev
/null
; then
15783 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'
15785 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'
15787 aix_use_runtimelinking
=no
15789 # Test if we are trying to use run time linking or normal
15790 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15791 # need to do runtime linking.
15792 case $host_os in aix4.
[23]|aix4.
[23].
*|aix5
*)
15793 for ld_flag
in $LDFLAGS; do
15794 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15795 aix_use_runtimelinking
=yes
15802 exp_sym_flag
='-bexport'
15803 no_entry_flag
='-bnoentry'
15806 # When large executables or shared objects are built, AIX ld can
15807 # have problems creating the table of contents. If linking a library
15808 # or program results in "error TOC overflow" add -mminimal-toc to
15809 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15810 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15812 archive_cmds_F77
=''
15813 hardcode_direct_F77
=yes
15814 hardcode_libdir_separator_F77
=':'
15815 link_all_deplibs_F77
=yes
15817 if test "$GCC" = yes; then
15818 case $host_os in aix4.
[012]|aix4.
[012].
*)
15819 # We only want to do this on AIX 4.2 and lower, the check
15820 # below for broken collect2 doesn't work under 4.3+
15821 collect2name
=`${CC} -print-prog-name=collect2`
15822 if test -f "$collect2name" && \
15823 strings "$collect2name" | grep resolve_lib_name
>/dev
/null
15825 # We have reworked collect2
15828 # We have old collect2
15829 hardcode_direct_F77
=unsupported
15830 # It fails to find uninstalled libraries when the uninstalled
15831 # path is not listed in the libpath. Setting hardcode_minus_L
15832 # to unsupported forces relinking
15833 hardcode_minus_L_F77
=yes
15834 hardcode_libdir_flag_spec_F77
='-L$libdir'
15835 hardcode_libdir_separator_F77
=
15839 shared_flag
='-shared'
15840 if test "$aix_use_runtimelinking" = yes; then
15841 shared_flag
="$shared_flag "'${wl}-G'
15845 if test "$host_cpu" = ia64
; then
15846 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15847 # chokes on -Wl,-G. The following line is correct:
15850 if test "$aix_use_runtimelinking" = yes; then
15851 shared_flag
='${wl}-G'
15853 shared_flag
='${wl}-bM:SRE'
15858 # It seems that -bexpall does not export symbols beginning with
15859 # underscore (_), so it is better to generate a list of symbols to export.
15860 always_export_symbols_F77
=yes
15861 if test "$aix_use_runtimelinking" = yes; then
15862 # Warning - without using the other runtime loading flags (-brtl),
15863 # -berok will link without error, but may produce a broken library.
15864 allow_undefined_flag_F77
='-berok'
15865 # Determine the default libpath from the value encoded in an empty executable.
15866 cat >conftest.
$ac_ext <<_ACEOF
15871 rm -f conftest.
$ac_objext conftest
$ac_exeext
15872 if { (ac_try
="$ac_link"
15873 case "(($ac_try" in
15874 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
15875 *) ac_try_echo=$ac_try;;
15877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15878 (eval "$ac_link") 2>conftest.er1
15880 grep -v '^ *+' conftest.er1 >conftest.err
15882 cat conftest.err >&5
15883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15884 (exit $ac_status); } && {
15885 test -z "$ac_f77_werror_flag" ||
15886 test ! -s conftest.err
15887 } && test -s conftest$ac_exeext &&
15888 $as_test_x conftest$ac_exeext; then
15890 lt_aix_libpath_sed='
15891 /Import File Strings/,/^$/ {
15897 aix_libpath=`dump
-H conftest
$ac_exeext 2>/dev
/null
| $SED -n -e "$lt_aix_libpath_sed"`
15898 # Check for a 64-bit object if we didn't find anything.
15899 if test -z "$aix_libpath"; then
15900 aix_libpath=`dump
-HX64 conftest
$ac_exeext 2>/dev
/null
| $SED -n -e "$lt_aix_libpath_sed"`
15903 echo "$as_me: failed program was:" >&5
15904 sed 's/^/| /' conftest.$ac_ext >&5
15909 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15910 conftest$ac_exeext conftest.$ac_ext
15911 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15913 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15914 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"
15916 if test "$host_cpu" = ia64; then
15917 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15918 allow_undefined_flag_F77="-z nodefs"
15919 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"
15921 # Determine the default libpath from the value encoded in an empty executable.
15922 cat >conftest.$ac_ext <<_ACEOF
15927 rm -f conftest.$ac_objext conftest$ac_exeext
15928 if { (ac_try="$ac_link"
15929 case "(($ac_try" in
15930 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
15931 *) ac_try_echo
=$ac_try;;
15933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15934 (eval "$ac_link") 2>conftest.er1
15936 grep -v '^ *+' conftest.er1
>conftest.err
15938 cat conftest.err
>&5
15939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15940 (exit $ac_status); } && {
15941 test -z "$ac_f77_werror_flag" ||
15942 test ! -s conftest.err
15943 } && test -s conftest
$ac_exeext &&
15944 $as_test_x conftest
$ac_exeext; then
15946 lt_aix_libpath_sed
='
15947 /Import File Strings/,/^$/ {
15953 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15954 # Check for a 64-bit object if we didn't find anything.
15955 if test -z "$aix_libpath"; then
15956 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15959 echo "$as_me: failed program was:" >&5
15960 sed 's/^/| /' conftest.
$ac_ext >&5
15965 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15966 conftest
$ac_exeext conftest.
$ac_ext
15967 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
15969 hardcode_libdir_flag_spec_F77
='${wl}-blibpath:$libdir:'"$aix_libpath"
15970 # Warning - without using the other run time loading flags,
15971 # -berok will link without error, but may produce a broken library.
15972 no_undefined_flag_F77
=' ${wl}-bernotok'
15973 allow_undefined_flag_F77
=' ${wl}-berok'
15974 # Exported symbols can be pulled into shared objects from archives
15975 whole_archive_flag_spec_F77
='$convenience'
15976 archive_cmds_need_lc_F77
=yes
15977 # This is similar to how AIX traditionally builds its shared libraries.
15978 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'
15984 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)'
15985 hardcode_libdir_flag_spec_F77
='-L$libdir'
15986 hardcode_minus_L_F77
=yes
15987 # see comment about different semantics on the GNU ld section
15992 export_dynamic_flag_spec_F77
=-rdynamic
15995 cygwin
* | mingw
* | pw32
*)
15996 # When not using gcc, we currently assume that we are using
15997 # Microsoft Visual C++.
15998 # hardcode_libdir_flag_spec is actually meaningless, as there is
15999 # no search path for DLLs.
16000 hardcode_libdir_flag_spec_F77
=' '
16001 allow_undefined_flag_F77
=unsupported
16002 # Tell ltmain to make .lib files, not .a files.
16004 # Tell ltmain to make .dll files, not .so files.
16006 # FIXME: Setting linknames here is a bad hack.
16007 archive_cmds_F77
='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16008 # The linker will automatically build a .lib file if we build a DLL.
16009 old_archive_From_new_cmds_F77
='true'
16010 # FIXME: Should let the user specify the lib program.
16011 old_archive_cmds_F77
='lib -OUT:$oldlib$oldobjs$old_deplibs'
16012 fix_srcfile_path_F77
='`cygpath -w "$srcfile"`'
16013 enable_shared_with_static_runtimes_F77
=yes
16016 darwin
* | rhapsody
*)
16018 rhapsody
* | darwin1.
[012])
16019 allow_undefined_flag_F77
='${wl}-undefined ${wl}suppress'
16022 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16023 allow_undefined_flag_F77
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16025 case ${MACOSX_DEPLOYMENT_TARGET} in
16027 allow_undefined_flag_F77
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16030 allow_undefined_flag_F77
='${wl}-undefined ${wl}dynamic_lookup'
16036 archive_cmds_need_lc_F77
=no
16037 hardcode_direct_F77
=no
16038 hardcode_automatic_F77
=yes
16039 hardcode_shlibpath_var_F77
=unsupported
16040 whole_archive_flag_spec_F77
=''
16041 link_all_deplibs_F77
=yes
16042 if test "$GCC" = yes ; then
16043 output_verbose_link_cmd
='echo'
16044 archive_cmds_F77
='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16045 module_cmds_F77
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16046 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16047 archive_expsym_cmds_F77
='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16048 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}'
16050 case $cc_basename in
16052 output_verbose_link_cmd
='echo'
16053 archive_cmds_F77
='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
16054 module_cmds_F77
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16055 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16056 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}'
16057 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}'
16067 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16068 hardcode_libdir_flag_spec_F77
='-L$libdir'
16069 hardcode_shlibpath_var_F77
=no
16076 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16077 # support. Future versions do this automatically, but an explicit c++rt0.o
16078 # does not break anything, and helps significantly (at the cost of a little
16081 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16082 hardcode_libdir_flag_spec_F77
='-R$libdir'
16083 hardcode_direct_F77
=yes
16084 hardcode_shlibpath_var_F77
=no
16087 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16089 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16090 hardcode_direct_F77
=yes
16091 hardcode_minus_L_F77
=yes
16092 hardcode_shlibpath_var_F77
=no
16095 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16096 freebsd
* | dragonfly
*)
16097 archive_cmds_F77
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16098 hardcode_libdir_flag_spec_F77
='-R$libdir'
16099 hardcode_direct_F77
=yes
16100 hardcode_shlibpath_var_F77
=no
16104 if test "$GCC" = yes; then
16105 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'
16107 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'
16109 hardcode_libdir_flag_spec_F77
='${wl}+b ${wl}$libdir'
16110 hardcode_libdir_separator_F77
=:
16111 hardcode_direct_F77
=yes
16113 # hardcode_minus_L: Not really in the search PATH,
16114 # but as the default location of the library.
16115 hardcode_minus_L_F77
=yes
16116 export_dynamic_flag_spec_F77
='${wl}-E'
16120 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
16121 archive_cmds_F77
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16123 archive_cmds_F77
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16125 if test "$with_gnu_ld" = no
; then
16126 hardcode_libdir_flag_spec_F77
='${wl}+b ${wl}$libdir'
16127 hardcode_libdir_separator_F77
=:
16129 hardcode_direct_F77
=yes
16130 export_dynamic_flag_spec_F77
='${wl}-E'
16132 # hardcode_minus_L: Not really in the search PATH,
16133 # but as the default location of the library.
16134 hardcode_minus_L_F77
=yes
16139 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
16142 archive_cmds_F77
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16145 archive_cmds_F77
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16148 archive_cmds_F77
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16154 archive_cmds_F77
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16157 archive_cmds_F77
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16160 archive_cmds_F77
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16164 if test "$with_gnu_ld" = no
; then
16165 hardcode_libdir_flag_spec_F77
='${wl}+b ${wl}$libdir'
16166 hardcode_libdir_separator_F77
=:
16170 hardcode_libdir_flag_spec_ld_F77
='+b $libdir'
16171 hardcode_direct_F77
=no
16172 hardcode_shlibpath_var_F77
=no
16175 hardcode_direct_F77
=yes
16176 export_dynamic_flag_spec_F77
='${wl}-E'
16178 # hardcode_minus_L: Not really in the search PATH,
16179 # but as the default location of the library.
16180 hardcode_minus_L_F77
=yes
16186 irix5
* | irix6
* | nonstopux
*)
16187 if test "$GCC" = yes; then
16188 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'
16190 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'
16191 hardcode_libdir_flag_spec_ld_F77
='-rpath $libdir'
16193 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
16194 hardcode_libdir_separator_F77
=:
16195 link_all_deplibs_F77
=yes
16198 netbsd
* | netbsdelf
*-gnu)
16199 if echo __ELF__
| $CC -E - | grep __ELF__
>/dev
/null
; then
16200 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16202 archive_cmds_F77
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16204 hardcode_libdir_flag_spec_F77
='-R$libdir'
16205 hardcode_direct_F77
=yes
16206 hardcode_shlibpath_var_F77
=no
16210 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16211 hardcode_direct_F77
=yes
16212 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
16213 hardcode_libdir_separator_F77
=:
16214 hardcode_shlibpath_var_F77
=no
16218 if test -f /usr
/libexec
/ld.so
; then
16219 hardcode_direct_F77
=yes
16220 hardcode_shlibpath_var_F77
=no
16221 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16222 archive_cmds_F77
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16223 archive_expsym_cmds_F77
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16224 hardcode_libdir_flag_spec_F77
='${wl}-rpath,$libdir'
16225 export_dynamic_flag_spec_F77
='${wl}-E'
16228 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
16229 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16230 hardcode_libdir_flag_spec_F77
='-R$libdir'
16233 archive_cmds_F77
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16234 hardcode_libdir_flag_spec_F77
='${wl}-rpath,$libdir'
16244 hardcode_libdir_flag_spec_F77
='-L$libdir'
16245 hardcode_minus_L_F77
=yes
16246 allow_undefined_flag_F77
=unsupported
16247 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'
16248 old_archive_From_new_cmds_F77
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16252 if test "$GCC" = yes; then
16253 allow_undefined_flag_F77
=' ${wl}-expect_unresolved ${wl}\*'
16254 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'
16256 allow_undefined_flag_F77
=' -expect_unresolved \*'
16257 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'
16259 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
16260 hardcode_libdir_separator_F77
=:
16263 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
16264 if test "$GCC" = yes; then
16265 allow_undefined_flag_F77
=' ${wl}-expect_unresolved ${wl}\*'
16266 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'
16267 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
16269 allow_undefined_flag_F77
=' -expect_unresolved \*'
16270 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'
16271 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~
16272 $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'
16274 # Both c and cxx compiler support -rpath directly
16275 hardcode_libdir_flag_spec_F77
='-rpath $libdir'
16277 hardcode_libdir_separator_F77
=:
16281 no_undefined_flag_F77
=' -z text'
16282 if test "$GCC" = yes; then
16284 archive_cmds_F77
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16285 archive_expsym_cmds_F77
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16286 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16289 archive_cmds_F77
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16290 archive_expsym_cmds_F77
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16291 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16293 hardcode_libdir_flag_spec_F77
='-R$libdir'
16294 hardcode_shlibpath_var_F77
=no
16296 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
16298 # The compiler driver will combine and reorder linker options,
16299 # but understands `-z linker_flag'. GCC discards it without `$wl',
16300 # but is careful enough not to reorder.
16301 # Supported since Solaris 2.6 (maybe 2.5.1?)
16302 if test "$GCC" = yes; then
16303 whole_archive_flag_spec_F77
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16305 whole_archive_flag_spec_F77
='-z allextract$convenience -z defaultextract'
16309 link_all_deplibs_F77
=yes
16313 if test "x$host_vendor" = xsequent
; then
16314 # Use $CC to link under sequent, because it throws in some extra .o
16315 # files that make .init and .fini sections work.
16316 archive_cmds_F77
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16318 archive_cmds_F77
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16320 hardcode_libdir_flag_spec_F77
='-L$libdir'
16321 hardcode_direct_F77
=yes
16322 hardcode_minus_L_F77
=yes
16323 hardcode_shlibpath_var_F77
=no
16327 case $host_vendor in
16329 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16330 hardcode_direct_F77
=yes # is this really true???
16333 ## LD is ld it makes a PLAMLIB
16334 ## CC just makes a GrossModule.
16335 archive_cmds_F77
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16336 reload_cmds_F77
='$CC -r -o $output$reload_objs'
16337 hardcode_direct_F77
=no
16340 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16341 hardcode_direct_F77
=no
#Motorola manual says yes, but my tests say they lie
16344 runpath_var
='LD_RUN_PATH'
16345 hardcode_shlibpath_var_F77
=no
16349 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16350 hardcode_shlibpath_var_F77
=no
16351 export_dynamic_flag_spec_F77
='-Bexport'
16355 if test -d /usr
/nec
; then
16356 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16357 hardcode_shlibpath_var_F77
=no
16358 runpath_var
=LD_RUN_PATH
16359 hardcode_runpath_var
=yes
16364 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
16365 no_undefined_flag_F77
='${wl}-z,text'
16366 archive_cmds_need_lc_F77
=no
16367 hardcode_shlibpath_var_F77
=no
16368 runpath_var
='LD_RUN_PATH'
16370 if test "$GCC" = yes; then
16371 archive_cmds_F77
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16372 archive_expsym_cmds_F77
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16374 archive_cmds_F77
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16375 archive_expsym_cmds_F77
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16379 sysv5
* | sco3.2v5
* | sco5v6
*)
16380 # Note: We can NOT use -z defs as we might desire, because we do not
16381 # link with -lc, and that would cause any symbols used from libc to
16382 # always be unresolved, which means just about no library would
16383 # ever link correctly. If we're not using GNU ld we use -z text
16384 # though, which does catch some bad symbols but isn't as heavy-handed
16386 no_undefined_flag_F77
='${wl}-z,text'
16387 allow_undefined_flag_F77
='${wl}-z,nodefs'
16388 archive_cmds_need_lc_F77
=no
16389 hardcode_shlibpath_var_F77
=no
16390 hardcode_libdir_flag_spec_F77
='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16391 hardcode_libdir_separator_F77
=':'
16392 link_all_deplibs_F77
=yes
16393 export_dynamic_flag_spec_F77
='${wl}-Bexport'
16394 runpath_var
='LD_RUN_PATH'
16396 if test "$GCC" = yes; then
16397 archive_cmds_F77
='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16398 archive_expsym_cmds_F77
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16400 archive_cmds_F77
='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16401 archive_expsym_cmds_F77
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16406 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16407 hardcode_libdir_flag_spec_F77
='-L$libdir'
16408 hardcode_shlibpath_var_F77
=no
16417 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16418 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
16419 test "$ld_shlibs_F77" = no
&& can_build_shared
=no
16422 # Do we need to explicitly link libc?
16424 case "x$archive_cmds_need_lc_F77" in
16426 # Assume -lc should be added
16427 archive_cmds_need_lc_F77
=yes
16429 if test "$enable_shared" = yes && test "$GCC" = yes; then
16430 case $archive_cmds_F77 in
16432 # FIXME: we may have to deal with multi-command sequences.
16435 # Test whether the compiler implicitly links with -lc since on some
16436 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16437 # to ld, don't add -lc before -lgcc.
16438 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16439 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16441 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
16443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16444 (eval $ac_compile) 2>&5
16446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16447 (exit $ac_status); } 2>conftest.err
; then
16450 libobjs
=conftest.
$ac_objext
16452 wl
=$lt_prog_compiler_wl_F77
16453 pic_flag
=$lt_prog_compiler_pic_F77
16459 lt_save_allow_undefined_flag
=$allow_undefined_flag_F77
16460 allow_undefined_flag_F77
=
16461 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16462 (eval $archive_cmds_F77 2\
>\
&1 \
| grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
16464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16465 (exit $ac_status); }
16467 archive_cmds_need_lc_F77
=no
16469 archive_cmds_need_lc_F77
=yes
16471 allow_undefined_flag_F77
=$lt_save_allow_undefined_flag
16473 cat conftest.err
1>&5
16476 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16477 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
16484 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16485 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16486 library_names_spec
=
16487 libname_spec
='lib$name'
16491 postuninstall_cmds
=
16495 shlibpath_overrides_runpath
=unknown
16497 dynamic_linker
="$host_os ld.so"
16498 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
16500 need_lib_prefix
=unknown
16501 hardcode_into_libs
=no
16503 # when you set need_version to no, make sure it does not cause -set_version
16504 # flags to be left without arguments
16505 need_version
=unknown
16510 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
16511 shlibpath_var
=LIBPATH
16513 # AIX 3 has no versioning support, so we append a major version to the name.
16514 soname_spec
='${libname}${release}${shared_ext}$major'
16521 hardcode_into_libs
=yes
16522 if test "$host_cpu" = ia64
; then
16523 # AIX 5 supports IA64
16524 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16525 shlibpath_var
=LD_LIBRARY_PATH
16527 # With GCC up to 2.95.x, collect2 would create an import file
16528 # for dependence libraries. The import file would start with
16529 # the line `#! .'. This would cause the generated library to
16530 # depend on `.', always an invalid library. This was fixed in
16531 # development snapshots of GCC prior to 3.0.
16533 aix4
| aix4.
[01] | aix4.
[01].
*)
16534 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16536 echo '#endif'; } | ${CC} -E - | grep yes > /dev
/null
; then
16539 can_build_shared
=no
16543 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16544 # soname into executable. Probably we can add versioning support to
16545 # collect2, so additional links can be useful in future.
16546 if test "$aix_use_runtimelinking" = yes; then
16547 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16548 # instead of lib<name>.a to let people know that these are not
16549 # typical AIX shared libraries.
16550 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16552 # We preserve .a as extension for shared libraries through AIX4.2
16553 # and later when we are not doing run time linking.
16554 library_names_spec
='${libname}${release}.a $libname.a'
16555 soname_spec
='${libname}${release}${shared_ext}$major'
16557 shlibpath_var
=LIBPATH
16562 library_names_spec
='$libname.ixlibrary $libname.a'
16563 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16564 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'
16568 library_names_spec
='${libname}${shared_ext}'
16569 dynamic_linker
="$host_os ld.so"
16570 shlibpath_var
=LIBRARY_PATH
16576 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16577 soname_spec
='${libname}${release}${shared_ext}$major'
16578 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
16579 shlibpath_var
=LD_LIBRARY_PATH
16580 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16581 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
16582 # the default ld.so.conf also contains /usr/contrib/lib and
16583 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16584 # libtool to hard-code these into programs
16587 cygwin
* | mingw
* | pw32
*)
16588 version_type
=windows
16593 case $GCC,$host_os in
16594 yes,cygwin
* | yes,mingw
* | yes,pw32
*)
16595 library_names_spec
='$libname.dll.a'
16596 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16597 postinstall_cmds
='base_file=`basename \${file}`~
16598 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16599 dldir=$destdir/`dirname \$dlpath`~
16600 test -d \$dldir || mkdir -p \$dldir~
16601 $install_prog $dir/$dlname \$dldir/$dlname~
16602 chmod a+x \$dldir/$dlname'
16603 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16604 dlpath=$dir/\$dldll~
16606 shlibpath_overrides_runpath
=yes
16610 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16611 soname_spec
='`echo ${libname} | sed -e 's
/^lib
/cyg
/'``echo ${release} | $SED -e 's
/[.
]/-/g
'`${versuffix}${shared_ext}'
16612 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
16615 # MinGW DLLs use traditional 'lib' prefix
16616 soname_spec
='${libname}`echo ${release} | $SED -e 's
/[.
]/-/g
'`${versuffix}${shared_ext}'
16617 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16618 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev
/null
; then
16619 # It is most probably a Windows format PATH printed by
16620 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16621 # path with ; separators, and with drive letters. We can handle the
16622 # drive letters (cygwin fileutils understands them), so leave them,
16623 # especially as we might pass files found there to a mingw objdump,
16624 # which wouldn't understand a cygwinified path. Ahh.
16625 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16627 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16631 # pw32 DLLs use 'pw' prefix rather than 'lib'
16632 library_names_spec
='`echo ${libname} | sed -e 's
/^lib
/pw
/'``echo ${release} | $SED -e 's
/[.
]/-/g
'`${versuffix}${shared_ext}'
16638 library_names_spec
='${libname}`echo ${release} | $SED -e 's
/[.
]/-/g
'`${versuffix}${shared_ext} $libname.lib'
16641 dynamic_linker
='Win32 ld.exe'
16642 # FIXME: first we should search . and the directory the executable is in
16646 darwin
* | rhapsody
*)
16647 dynamic_linker
="$host_os dyld"
16648 version_type
=darwin
16651 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16652 soname_spec
='${libname}${release}${major}$shared_ext'
16653 shlibpath_overrides_runpath
=yes
16654 shlibpath_var
=DYLD_LIBRARY_PATH
16655 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
16657 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
16664 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16665 soname_spec
='${libname}${release}${shared_ext}$major'
16666 shlibpath_var
=LD_LIBRARY_PATH
16673 freebsd
* | dragonfly
*)
16674 # DragonFly does not have aout. When/if they implement a new
16675 # versioning mechanism, adjust this.
16676 if test -x /usr
/bin
/objformat
; then
16677 objformat
=`/usr/bin/objformat`
16680 freebsd
[123]*) objformat
=aout
;;
16681 *) objformat
=elf
;;
16684 version_type
=freebsd
-$objformat
16685 case $version_type in
16687 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16692 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16696 shlibpath_var
=LD_LIBRARY_PATH
16699 shlibpath_overrides_runpath
=yes
16701 freebsd3.
[01]* | freebsdelf3.
[01]*)
16702 shlibpath_overrides_runpath
=yes
16703 hardcode_into_libs
=yes
16705 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
16706 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
16707 shlibpath_overrides_runpath
=no
16708 hardcode_into_libs
=yes
16710 *) # from 4.6 on, and DragonFly
16711 shlibpath_overrides_runpath
=yes
16712 hardcode_into_libs
=yes
16721 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16722 soname_spec
='${libname}${release}${shared_ext}$major'
16723 shlibpath_var
=LD_LIBRARY_PATH
16724 hardcode_into_libs
=yes
16727 hpux9
* | hpux10
* | hpux11
*)
16728 # Give a soname corresponding to the major version so that dld.sl refuses to
16729 # link against other versions.
16736 hardcode_into_libs
=yes
16737 dynamic_linker
="$host_os dld.so"
16738 shlibpath_var
=LD_LIBRARY_PATH
16739 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
16740 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16741 soname_spec
='${libname}${release}${shared_ext}$major'
16742 if test "X$HPUX_IA64_MODE" = X32
; then
16743 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16745 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
16747 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
16751 hardcode_into_libs
=yes
16752 dynamic_linker
="$host_os dld.sl"
16753 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
16754 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
16755 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16756 soname_spec
='${libname}${release}${shared_ext}$major'
16757 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16758 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
16762 dynamic_linker
="$host_os dld.sl"
16763 shlibpath_var
=SHLIB_PATH
16764 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
16765 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16766 soname_spec
='${libname}${release}${shared_ext}$major'
16769 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16770 postinstall_cmds
='chmod 555 $lib'
16777 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16778 soname_spec
='${libname}${release}${shared_ext}$major'
16779 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
16780 shlibpath_var
=LD_LIBRARY_PATH
16781 shlibpath_overrides_runpath
=no
16782 hardcode_into_libs
=yes
16785 irix5
* | irix6
* | nonstopux
*)
16787 nonstopux
*) version_type
=nonstopux
;;
16789 if test "$lt_cv_prog_gnu_ld" = yes; then
16797 soname_spec
='${libname}${release}${shared_ext}$major'
16798 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16800 irix5
* | nonstopux
*)
16801 libsuff
= shlibsuff
=
16804 case $LD in # libtool.m4 will add one of these switches to LD
16805 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16806 libsuff
= shlibsuff
= libmagic
=32-bit;;
16807 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16808 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
16809 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16810 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
16811 *) libsuff
= shlibsuff
= libmagic
=never
-match;;
16815 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
16816 shlibpath_overrides_runpath
=no
16817 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16818 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
16819 hardcode_into_libs
=yes
16822 # No shared lib support for Linux oldld, aout, or coff.
16823 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
16827 # This must be Linux ELF.
16828 linux
* | k
*bsd
*-gnu)
16832 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16833 soname_spec
='${libname}${release}${shared_ext}$major'
16834 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16835 shlibpath_var
=LD_LIBRARY_PATH
16836 shlibpath_overrides_runpath
=no
16837 # This implies no fast_install, which is unacceptable.
16838 # Some rework will be needed to allow for fast_install
16839 # before this can be enabled.
16840 hardcode_into_libs
=yes
16842 # Append ld.so.conf contents to the search path
16843 if test -f /etc
/ld.so.conf
; then
16844 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' ' '`
16845 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
16848 # We used to test for /lib/ld.so.1 and disable shared libraries on
16849 # powerpc, because MkLinux only supported shared libraries with the
16850 # GNU dynamic linker. Since this was broken with cross compilers,
16851 # most powerpc-linux boxes support dynamic linking these days and
16852 # people can always --disable-shared, the test was removed, and we
16853 # assume the GNU/Linux dynamic linker is in use.
16854 dynamic_linker
='GNU/Linux ld.so'
16861 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16862 soname_spec
='${libname}${release}${shared_ext}$major'
16863 shlibpath_var
=LD_LIBRARY_PATH
16864 shlibpath_overrides_runpath
=no
16865 hardcode_into_libs
=yes
16866 dynamic_linker
='NetBSD ld.elf_so'
16873 if echo __ELF__
| $CC -E - | grep __ELF__
>/dev
/null
; then
16874 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16875 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16876 dynamic_linker
='NetBSD (a.out) ld.so'
16878 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16879 soname_spec
='${libname}${release}${shared_ext}$major'
16880 dynamic_linker
='NetBSD ld.elf_so'
16882 shlibpath_var
=LD_LIBRARY_PATH
16883 shlibpath_overrides_runpath
=yes
16884 hardcode_into_libs
=yes
16889 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16890 shlibpath_var
=LD_LIBRARY_PATH
16891 shlibpath_overrides_runpath
=yes
16898 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16899 soname_spec
='${libname}${release}${shared_ext}$major'
16900 shlibpath_var
=LD_LIBRARY_PATH
16901 shlibpath_overrides_runpath
=yes
16906 sys_lib_dlsearch_path_spec
="/usr/lib"
16908 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16910 openbsd3.3
| openbsd3.3.
*) need_version
=yes ;;
16911 *) need_version
=no
;;
16913 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16914 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16915 shlibpath_var
=LD_LIBRARY_PATH
16916 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16918 openbsd2.
[89] | openbsd2.
[89].
*)
16919 shlibpath_overrides_runpath
=no
16922 shlibpath_overrides_runpath
=yes
16926 shlibpath_overrides_runpath
=yes
16931 libname_spec
='$name'
16934 library_names_spec
='$libname${shared_ext} $libname.a'
16935 dynamic_linker
='OS/2 ld.exe'
16936 shlibpath_var
=LIBPATH
16939 osf3
* | osf4
* | osf5
*)
16943 soname_spec
='${libname}${release}${shared_ext}$major'
16944 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16945 shlibpath_var
=LD_LIBRARY_PATH
16946 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16947 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
16958 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16959 soname_spec
='${libname}${release}${shared_ext}$major'
16960 shlibpath_var
=LD_LIBRARY_PATH
16961 shlibpath_overrides_runpath
=yes
16962 hardcode_into_libs
=yes
16963 # ldd complains unless libraries are executable
16964 postinstall_cmds
='chmod +x $lib'
16969 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16970 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16971 shlibpath_var
=LD_LIBRARY_PATH
16972 shlibpath_overrides_runpath
=yes
16973 if test "$with_gnu_ld" = yes; then
16981 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16982 soname_spec
='${libname}${release}${shared_ext}$major'
16983 shlibpath_var
=LD_LIBRARY_PATH
16984 case $host_vendor in
16986 shlibpath_overrides_runpath
=no
16988 export_dynamic_flag_spec
='${wl}-Blargedynsym'
16989 runpath_var
=LD_RUN_PATH
16997 shlibpath_overrides_runpath
=no
16998 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
17004 if test -d /usr
/nec
;then
17006 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17007 soname_spec
='$libname${shared_ext}.$major'
17008 shlibpath_var
=LD_LIBRARY_PATH
17012 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
17013 version_type
=freebsd
-elf
17016 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17017 soname_spec
='${libname}${release}${shared_ext}$major'
17018 shlibpath_var
=LD_LIBRARY_PATH
17019 hardcode_into_libs
=yes
17020 if test "$with_gnu_ld" = yes; then
17021 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17022 shlibpath_overrides_runpath
=no
17024 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
17025 shlibpath_overrides_runpath
=yes
17028 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
17032 sys_lib_dlsearch_path_spec
='/usr/lib'
17037 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17038 soname_spec
='${libname}${release}${shared_ext}$major'
17039 shlibpath_var
=LD_LIBRARY_PATH
17046 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17047 echo "${ECHO_T}$dynamic_linker" >&6; }
17048 test "$dynamic_linker" = no
&& can_build_shared
=no
17050 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
17051 if test "$GCC" = yes; then
17052 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17055 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17056 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
17057 hardcode_action_F77
=
17058 if test -n "$hardcode_libdir_flag_spec_F77" || \
17059 test -n "$runpath_var_F77" || \
17060 test "X$hardcode_automatic_F77" = "Xyes" ; then
17062 # We can hardcode non-existant directories.
17063 if test "$hardcode_direct_F77" != no
&&
17064 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17065 # have to relink, otherwise we might link with an installed library
17066 # when we should be linking with a yet-to-be-installed one
17067 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
17068 test "$hardcode_minus_L_F77" != no
; then
17069 # Linking always hardcodes the temporary library directory.
17070 hardcode_action_F77
=relink
17072 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17073 hardcode_action_F77
=immediate
17076 # We cannot hardcode anything, or else we can only hardcode existing
17078 hardcode_action_F77
=unsupported
17080 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
17081 echo "${ECHO_T}$hardcode_action_F77" >&6; }
17083 if test "$hardcode_action_F77" = relink
; then
17084 # Fast installation is not supported
17085 enable_fast_install
=no
17086 elif test "$shlibpath_overrides_runpath" = yes ||
17087 test "$enable_shared" = no
; then
17088 # Fast installation is not necessary
17089 enable_fast_install
=needless
17093 # The else clause should only fire when bootstrapping the
17094 # libtool distribution, otherwise you forgot to ship ltmain.sh
17095 # with your package, and you will get complaints that there are
17096 # no rules to generate ltmain.sh.
17097 if test -f "$ltmain"; then
17098 # See if we are running on zsh, and set the options which allow our commands through
17099 # without removal of \ escapes.
17100 if test -n "${ZSH_VERSION+set}" ; then
17101 setopt NO_GLOB_SUBST
17103 # Now quote all the things that may contain metacharacters while being
17104 # careful not to overquote the AC_SUBSTed values. We take copies of the
17105 # variables and quote the copies for generation of the libtool script.
17106 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17108 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17109 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17110 deplibs_check_method reload_flag reload_cmds need_locks \
17111 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17112 lt_cv_sys_global_symbol_to_c_name_address \
17113 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17114 old_postinstall_cmds old_postuninstall_cmds \
17118 lt_prog_compiler_wl_F77 \
17119 lt_prog_compiler_pic_F77 \
17120 lt_prog_compiler_static_F77 \
17121 lt_prog_compiler_no_builtin_flag_F77 \
17122 export_dynamic_flag_spec_F77 \
17123 thread_safe_flag_spec_F77 \
17124 whole_archive_flag_spec_F77 \
17125 enable_shared_with_static_runtimes_F77 \
17126 old_archive_cmds_F77 \
17127 old_archive_from_new_cmds_F77 \
17128 predep_objects_F77 \
17129 postdep_objects_F77 \
17132 compiler_lib_search_path_F77 \
17134 archive_expsym_cmds_F77 \
17135 postinstall_cmds_F77 \
17136 postuninstall_cmds_F77 \
17137 old_archive_from_expsyms_cmds_F77 \
17138 allow_undefined_flag_F77 \
17139 no_undefined_flag_F77 \
17140 export_symbols_cmds_F77 \
17141 hardcode_libdir_flag_spec_F77 \
17142 hardcode_libdir_flag_spec_ld_F77 \
17143 hardcode_libdir_separator_F77 \
17144 hardcode_automatic_F77 \
17146 module_expsym_cmds_F77 \
17147 lt_cv_prog_compiler_c_o_F77 \
17148 fix_srcfile_path_F77 \
17149 exclude_expsyms_F77 \
17150 include_expsyms_F77
; do
17153 old_archive_cmds_F77
| \
17154 old_archive_from_new_cmds_F77
| \
17155 archive_cmds_F77
| \
17156 archive_expsym_cmds_F77
| \
17157 module_cmds_F77
| \
17158 module_expsym_cmds_F77
| \
17159 old_archive_from_expsyms_cmds_F77
| \
17160 export_symbols_cmds_F77
| \
17161 extract_expsyms_cmds
| reload_cmds
| finish_cmds
| \
17162 postinstall_cmds
| postuninstall_cmds
| \
17163 old_postinstall_cmds
| old_postuninstall_cmds
| \
17164 sys_lib_search_path_spec
| sys_lib_dlsearch_path_spec
)
17165 # Double-quote double-evaled strings.
17166 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17169 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17175 *'\$0 --fallback-echo"')
17176 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17182 cat <<__EOF__ >> "$cfgfile"
17183 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17185 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17187 # Shell to use when invoking shell scripts.
17190 # Whether or not to build shared libraries.
17191 build_libtool_libs=$enable_shared
17193 # Whether or not to build static libraries.
17194 build_old_libs=$enable_static
17196 # Whether or not to add -lc for building shared libraries.
17197 build_libtool_need_lc=$archive_cmds_need_lc_F77
17199 # Whether or not to disallow shared libs when runtime libs are static
17200 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
17202 # Whether or not to optimize for fast installation.
17203 fast_install=$enable_fast_install
17206 host_alias=$host_alias
17210 # The build system.
17211 build_alias=$build_alias
17215 # An echo program that does not interpret backslashes.
17220 AR_FLAGS=$lt_AR_FLAGS
17225 # LTCC compiler flags.
17226 LTCFLAGS=$lt_LTCFLAGS
17228 # A language-specific compiler.
17229 CC=$lt_compiler_F77
17231 # Is the compiler the GNU C compiler?
17237 # The linker used to build libraries.
17240 # Whether we need hard or soft links.
17243 # A BSD-compatible nm program.
17246 # A symbol stripping program
17249 # Used to examine libraries when file_magic_cmd begins "file"
17250 MAGIC_CMD=$MAGIC_CMD
17252 # Used on cygwin: DLL creation program.
17255 # Used on cygwin: object dumper.
17258 # Used on cygwin: assembler.
17261 # The name of the directory that contains temporary libtool files.
17264 # How to create reloadable object files.
17265 reload_flag=$lt_reload_flag
17266 reload_cmds=$lt_reload_cmds
17268 # How to pass a linker flag through the compiler.
17269 wl=$lt_lt_prog_compiler_wl_F77
17271 # Object file suffix (normally "o").
17272 objext="$ac_objext"
17274 # Old archive suffix (normally "a").
17277 # Shared library suffix (normally ".so").
17278 shrext_cmds='$shrext_cmds'
17280 # Executable file suffix (normally "").
17283 # Additional compiler flags for building library objects.
17284 pic_flag=$lt_lt_prog_compiler_pic_F77
17287 # What is the maximum length of a command?
17288 max_cmd_len=$lt_cv_sys_max_cmd_len
17290 # Does compiler simultaneously support -c and -o options?
17291 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17293 # Must we lock files when doing compilation?
17294 need_locks=$lt_need_locks
17296 # Do we need the lib prefix for modules?
17297 need_lib_prefix=$need_lib_prefix
17299 # Do we need a version for libraries?
17300 need_version=$need_version
17302 # Whether dlopen is supported.
17303 dlopen_support=$enable_dlopen
17305 # Whether dlopen of programs is supported.
17306 dlopen_self=$enable_dlopen_self
17308 # Whether dlopen of statically linked programs is supported.
17309 dlopen_self_static=$enable_dlopen_self_static
17311 # Compiler flag to prevent dynamic linking.
17312 link_static_flag=$lt_lt_prog_compiler_static_F77
17314 # Compiler flag to turn off builtin functions.
17315 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
17317 # Compiler flag to allow reflexive dlopens.
17318 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
17320 # Compiler flag to generate shared objects directly from archives.
17321 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
17323 # Compiler flag to generate thread-safe objects.
17324 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
17326 # Library versioning type.
17327 version_type=$version_type
17329 # Format of library name prefix.
17330 libname_spec=$lt_libname_spec
17332 # List of archive names. First name is the real one, the rest are links.
17333 # The last name is the one that the linker finds with -lNAME.
17334 library_names_spec=$lt_library_names_spec
17336 # The coded name of the library, if different from the real name.
17337 soname_spec=$lt_soname_spec
17339 # Commands used to build and install an old-style archive.
17341 old_archive_cmds=$lt_old_archive_cmds_F77
17342 old_postinstall_cmds=$lt_old_postinstall_cmds
17343 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17345 # Create an old-style archive from a shared archive.
17346 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
17348 # Create a temporary old-style archive to link instead of a shared archive.
17349 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
17351 # Commands used to build and install a shared archive.
17352 archive_cmds=$lt_archive_cmds_F77
17353 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17354 postinstall_cmds=$lt_postinstall_cmds
17355 postuninstall_cmds=$lt_postuninstall_cmds
17357 # Commands used to build a loadable module (assumed same as above if empty)
17358 module_cmds=$lt_module_cmds_F77
17359 module_expsym_cmds=$lt_module_expsym_cmds_F77
17361 # Commands to strip libraries.
17362 old_striplib=$lt_old_striplib
17363 striplib=$lt_striplib
17365 # Dependencies to place before the objects being linked to create a
17367 predep_objects=$lt_predep_objects_F77
17369 # Dependencies to place after the objects being linked to create a
17371 postdep_objects=$lt_postdep_objects_F77
17373 # Dependencies to place before the objects being linked to create a
17375 predeps=$lt_predeps_F77
17377 # Dependencies to place after the objects being linked to create a
17379 postdeps=$lt_postdeps_F77
17381 # The library search path used internally by the compiler when linking
17382 # a shared library.
17383 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17385 # Method to check whether dependent libraries are shared objects.
17386 deplibs_check_method=$lt_deplibs_check_method
17388 # Command to use when deplibs_check_method == file_magic.
17389 file_magic_cmd=$lt_file_magic_cmd
17391 # Flag that allows shared libraries with undefined symbols to be built.
17392 allow_undefined_flag=$lt_allow_undefined_flag_F77
17394 # Flag that forces no undefined symbols.
17395 no_undefined_flag=$lt_no_undefined_flag_F77
17397 # Commands used to finish a libtool library installation in a directory.
17398 finish_cmds=$lt_finish_cmds
17400 # Same as above, but a single script fragment to be evaled but not shown.
17401 finish_eval=$lt_finish_eval
17403 # Take the output of nm and produce a listing of raw symbols and C names.
17404 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17406 # Transform the output of nm in a proper C declaration
17407 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17409 # Transform the output of nm in a C name address pair
17410 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17412 # This is the shared library runtime path variable.
17413 runpath_var=$runpath_var
17415 # This is the shared library path variable.
17416 shlibpath_var=$shlibpath_var
17418 # Is shlibpath searched before the hard-coded library search path?
17419 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17421 # How to hardcode a shared library path into an executable.
17422 hardcode_action=$hardcode_action_F77
17424 # Whether we should hardcode library paths into libraries.
17425 hardcode_into_libs=$hardcode_into_libs
17427 # Flag to hardcode \$libdir into a binary during linking.
17428 # This must work even if \$libdir does not exist.
17429 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17431 # If ld is used when linking, flag to hardcode \$libdir into
17432 # a binary during linking. This must work even if \$libdir does
17434 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17436 # Whether we need a single -rpath flag with a separated argument.
17437 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17439 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17440 # resulting binary.
17441 hardcode_direct=$hardcode_direct_F77
17443 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17444 # resulting binary.
17445 hardcode_minus_L=$hardcode_minus_L_F77
17447 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17448 # the resulting binary.
17449 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17451 # Set to yes if building a shared library automatically hardcodes DIR into the library
17452 # and all subsequent libraries and executables linked against it.
17453 hardcode_automatic=$hardcode_automatic_F77
17455 # Variables whose values should be saved in libtool wrapper scripts and
17456 # restored at relink time.
17457 variables_saved_for_relink="$variables_saved_for_relink"
17459 # Whether libtool must link a program against all its dependency libraries.
17460 link_all_deplibs=$link_all_deplibs_F77
17462 # Compile-time system search path for libraries
17463 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17465 # Run-time system search path for libraries
17466 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17468 # Fix the shell variable \$srcfile for the compiler.
17469 fix_srcfile_path=$lt_fix_srcfile_path
17471 # Set to yes if exported symbols are required.
17472 always_export_symbols=$always_export_symbols_F77
17474 # The commands to list exported symbols.
17475 export_symbols_cmds=$lt_export_symbols_cmds_F77
17477 # The commands to extract the exported symbol list from a shared archive.
17478 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17480 # Symbols that should not be listed in the preloaded symbols.
17481 exclude_expsyms=$lt_exclude_expsyms_F77
17483 # Symbols that must always be exported.
17484 include_expsyms=$lt_include_expsyms_F77
17486 # ### END LIBTOOL TAG CONFIG: $tagname
17492 # If there is no Makefile yet, we rely on a make rule to execute
17493 # `config.status --recheck' to rerun these tests and create the
17494 # libtool script then.
17495 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17496 if test -f "$ltmain_in"; then
17497 test -f Makefile
&& make "$ltmain"
17503 ac_cpp
='$CPP $CPPFLAGS'
17504 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17505 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17506 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
17516 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17519 # Source file extension for Java test sources.
17522 # Object file extension for compiled Java test sources.
17526 # Code to be used in simple compile tests
17527 lt_simple_compile_test_code
="class foo {}"
17529 # Code to be used in simple link tests
17530 lt_simple_link_test_code
='public class conftest { public static void main(String[] argv) {}; }'
17532 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17534 # If no C compiler was specified, use CC.
17537 # If no C compiler flags were specified, use CFLAGS.
17538 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
17540 # Allow CC to be a program name with arguments.
17544 # save warnings/boilerplate of simple test code
17545 ac_outfile
=conftest.
$ac_objext
17546 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
17547 eval "$ac_compile" 2>&1 >/dev
/null
| $SED '/^$/d; /^ *+/d' >conftest.err
17548 _lt_compiler_boilerplate
=`cat conftest.err`
17551 ac_outfile
=conftest.
$ac_objext
17552 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
17553 eval "$ac_link" 2>&1 >/dev
/null
| $SED '/^$/d; /^ *+/d' >conftest.err
17554 _lt_linker_boilerplate
=`cat conftest.err`
17558 # Allow CC to be a program name with arguments.
17563 for cc_temp
in $compiler""; do
17565 compile
| *[\\/]compile
| ccache
| *[\\/]ccache
) ;;
17566 distcc
| *[\\/]distcc
| purify
| *[\\/]purify
) ;;
17571 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17574 # GCJ did not exist at the time GCC didn't implicitly link libc in.
17575 archive_cmds_need_lc_GCJ
=no
17577 old_archive_cmds_GCJ
=$old_archive_cmds
17580 lt_prog_compiler_no_builtin_flag_GCJ
=
17582 if test "$GCC" = yes; then
17583 lt_prog_compiler_no_builtin_flag_GCJ
=' -fno-builtin'
17586 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17587 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
17588 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17589 echo $ECHO_N "(cached) $ECHO_C" >&6
17591 lt_cv_prog_compiler_rtti_exceptions
=no
17592 ac_outfile
=conftest.
$ac_objext
17593 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
17594 lt_compiler_flag
="-fno-rtti -fno-exceptions"
17595 # Insert the option either (1) after the last *FLAGS variable, or
17596 # (2) before a word containing "conftest.", or (3) at the end.
17597 # Note that $ac_compile itself does not contain backslashes and begins
17598 # with a dollar sign (not a hyphen), so the echo should work correctly.
17599 # The option is referenced via a variable to avoid confusing sed.
17600 lt_compile
=`echo "$ac_compile" | $SED \
17601 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17602 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17603 -e 's:$: $lt_compiler_flag:'`
17604 (eval echo "\"\$as_me:17604: $lt_compile\"" >&5)
17605 (eval "$lt_compile" 2>conftest.err
)
17607 cat conftest.err
>&5
17608 echo "$as_me:17608: \$? = $ac_status" >&5
17609 if (exit $ac_status) && test -s "$ac_outfile"; then
17610 # The compiler can only warn and ignore the option if not recognized
17611 # So say no if there are warnings other than the usual output.
17612 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17613 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
17614 if test ! -s conftest.er2
|| diff conftest.exp conftest.er2
>/dev
/null
; then
17615 lt_cv_prog_compiler_rtti_exceptions
=yes
17621 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17622 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17624 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
17625 lt_prog_compiler_no_builtin_flag_GCJ
="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17632 lt_prog_compiler_wl_GCJ
=
17633 lt_prog_compiler_pic_GCJ
=
17634 lt_prog_compiler_static_GCJ
=
17636 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17637 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
17639 if test "$GCC" = yes; then
17640 lt_prog_compiler_wl_GCJ
='-Wl,'
17641 lt_prog_compiler_static_GCJ
='-static'
17645 # All AIX code is PIC.
17646 if test "$host_cpu" = ia64
; then
17647 # AIX 5 now supports IA64 processor
17648 lt_prog_compiler_static_GCJ
='-Bstatic'
17653 # FIXME: we need at least 68020 code to build shared libraries, but
17654 # adding the `-m68020' flag to GCC prevents building anything better,
17656 lt_prog_compiler_pic_GCJ
='-m68020 -resident32 -malways-restore-a4'
17659 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
17660 # PIC is the default for these OSes.
17663 mingw
* | cygwin
* | pw32
* | os2
*)
17664 # This hack is so that the source file can tell whether it is being
17665 # built for inclusion in a dll (and should export symbols for example).
17666 # Although the cygwin gcc ignores -fPIC, still need this for old-style
17667 # (--disable-auto-import) libraries
17668 lt_prog_compiler_pic_GCJ
='-DDLL_EXPORT'
17671 darwin
* | rhapsody
*)
17672 # PIC is the default on this platform
17673 # Common symbols not allowed in MH_DYLIB files
17674 lt_prog_compiler_pic_GCJ
='-fno-common'
17678 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17679 # Instead, we relocate shared libraries at runtime.
17683 # Just because we use GCC doesn't mean we suddenly get shared libraries
17684 # on systems that don't support them.
17685 lt_prog_compiler_can_build_shared_GCJ
=no
17690 if test -d /usr
/nec
; then
17691 lt_prog_compiler_pic_GCJ
=-Kconform_pic
17696 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17697 # not for PA HP-UX.
17703 lt_prog_compiler_pic_GCJ
='-fPIC'
17709 lt_prog_compiler_pic_GCJ
='-fPIC'
17713 # PORTME Check for flag to pass linker flags through the system compiler.
17716 lt_prog_compiler_wl_GCJ
='-Wl,'
17717 if test "$host_cpu" = ia64
; then
17718 # AIX 5 now supports IA64 processor
17719 lt_prog_compiler_static_GCJ
='-Bstatic'
17721 lt_prog_compiler_static_GCJ
='-bnso -bI:/lib/syscalls.exp'
17725 # PIC is the default on this platform
17726 # Common symbols not allowed in MH_DYLIB files
17727 case $cc_basename in
17729 lt_prog_compiler_pic_GCJ
='-qnocommon'
17730 lt_prog_compiler_wl_GCJ
='-Wl,'
17735 mingw
* | cygwin
* | pw32
* | os2
*)
17736 # This hack is so that the source file can tell whether it is being
17737 # built for inclusion in a dll (and should export symbols for example).
17738 lt_prog_compiler_pic_GCJ
='-DDLL_EXPORT'
17741 hpux9
* | hpux10
* | hpux11
*)
17742 lt_prog_compiler_wl_GCJ
='-Wl,'
17743 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17744 # not for PA HP-UX.
17750 lt_prog_compiler_pic_GCJ
='+Z'
17753 # Is there a better lt_prog_compiler_static that works with the bundled CC?
17754 lt_prog_compiler_static_GCJ
='${wl}-a ${wl}archive'
17757 irix5
* | irix6
* | nonstopux
*)
17758 lt_prog_compiler_wl_GCJ
='-Wl,'
17759 # PIC (with -KPIC) is the default.
17760 lt_prog_compiler_static_GCJ
='-non_shared'
17764 lt_prog_compiler_pic_GCJ
='-KPIC'
17765 lt_prog_compiler_static_GCJ
='-Bstatic'
17768 linux
* | k
*bsd
*-gnu)
17769 case $cc_basename in
17771 lt_prog_compiler_wl_GCJ
='-Wl,'
17772 lt_prog_compiler_pic_GCJ
='-KPIC'
17773 lt_prog_compiler_static_GCJ
='-static'
17775 pgcc
* | pgf77
* | pgf90
* | pgf95
*)
17776 # Portland Group compilers (*not* the Pentium gcc compiler,
17777 # which looks to be a dead project)
17778 lt_prog_compiler_wl_GCJ
='-Wl,'
17779 lt_prog_compiler_pic_GCJ
='-fpic'
17780 lt_prog_compiler_static_GCJ
='-Bstatic'
17783 lt_prog_compiler_wl_GCJ
='-Wl,'
17784 # All Alpha code is PIC.
17785 lt_prog_compiler_static_GCJ
='-non_shared'
17788 case `$CC -V 2>&1 | sed 5q` in
17791 lt_prog_compiler_pic_GCJ
='-KPIC'
17792 lt_prog_compiler_static_GCJ
='-Bstatic'
17793 lt_prog_compiler_wl_GCJ
='-Wl,'
17796 # Sun Fortran 8.3 passes all unrecognized flags to the linker
17797 lt_prog_compiler_pic_GCJ
='-KPIC'
17798 lt_prog_compiler_static_GCJ
='-Bstatic'
17799 lt_prog_compiler_wl_GCJ
=''
17806 osf3
* | osf4
* | osf5
*)
17807 lt_prog_compiler_wl_GCJ
='-Wl,'
17808 # All OSF/1 code is PIC.
17809 lt_prog_compiler_static_GCJ
='-non_shared'
17813 lt_prog_compiler_static_GCJ
='-non_shared'
17817 lt_prog_compiler_pic_GCJ
='-KPIC'
17818 lt_prog_compiler_static_GCJ
='-Bstatic'
17819 case $cc_basename in
17820 f77
* | f90
* | f95
*)
17821 lt_prog_compiler_wl_GCJ
='-Qoption ld ';;
17823 lt_prog_compiler_wl_GCJ
='-Wl,';;
17828 lt_prog_compiler_wl_GCJ
='-Qoption ld '
17829 lt_prog_compiler_pic_GCJ
='-PIC'
17830 lt_prog_compiler_static_GCJ
='-Bstatic'
17833 sysv4
| sysv4.2uw2
* | sysv4.3
*)
17834 lt_prog_compiler_wl_GCJ
='-Wl,'
17835 lt_prog_compiler_pic_GCJ
='-KPIC'
17836 lt_prog_compiler_static_GCJ
='-Bstatic'
17840 if test -d /usr
/nec
;then
17841 lt_prog_compiler_pic_GCJ
='-Kconform_pic'
17842 lt_prog_compiler_static_GCJ
='-Bstatic'
17846 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
17847 lt_prog_compiler_wl_GCJ
='-Wl,'
17848 lt_prog_compiler_pic_GCJ
='-KPIC'
17849 lt_prog_compiler_static_GCJ
='-Bstatic'
17853 lt_prog_compiler_wl_GCJ
='-Wl,'
17854 lt_prog_compiler_can_build_shared_GCJ
=no
17858 lt_prog_compiler_pic_GCJ
='-pic'
17859 lt_prog_compiler_static_GCJ
='-Bstatic'
17863 lt_prog_compiler_can_build_shared_GCJ
=no
17868 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17869 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17872 # Check to make sure the PIC flag actually works.
17874 if test -n "$lt_prog_compiler_pic_GCJ"; then
17876 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17877 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17878 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
17879 echo $ECHO_N "(cached) $ECHO_C" >&6
17881 lt_prog_compiler_pic_works_GCJ
=no
17882 ac_outfile
=conftest.
$ac_objext
17883 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
17884 lt_compiler_flag
="$lt_prog_compiler_pic_GCJ"
17885 # Insert the option either (1) after the last *FLAGS variable, or
17886 # (2) before a word containing "conftest.", or (3) at the end.
17887 # Note that $ac_compile itself does not contain backslashes and begins
17888 # with a dollar sign (not a hyphen), so the echo should work correctly.
17889 # The option is referenced via a variable to avoid confusing sed.
17890 lt_compile
=`echo "$ac_compile" | $SED \
17891 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17892 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17893 -e 's:$: $lt_compiler_flag:'`
17894 (eval echo "\"\$as_me:17894: $lt_compile\"" >&5)
17895 (eval "$lt_compile" 2>conftest.err
)
17897 cat conftest.err
>&5
17898 echo "$as_me:17898: \$? = $ac_status" >&5
17899 if (exit $ac_status) && test -s "$ac_outfile"; then
17900 # The compiler can only warn and ignore the option if not recognized
17901 # So say no if there are warnings other than the usual output.
17902 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17903 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
17904 if test ! -s conftest.er2
|| diff conftest.exp conftest.er2
>/dev
/null
; then
17905 lt_prog_compiler_pic_works_GCJ
=yes
17911 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17912 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
17914 if test x
"$lt_prog_compiler_pic_works_GCJ" = xyes
; then
17915 case $lt_prog_compiler_pic_GCJ in
17917 *) lt_prog_compiler_pic_GCJ
=" $lt_prog_compiler_pic_GCJ" ;;
17920 lt_prog_compiler_pic_GCJ
=
17921 lt_prog_compiler_can_build_shared_GCJ
=no
17926 # For platforms which do not support PIC, -DPIC is meaningless:
17928 lt_prog_compiler_pic_GCJ
=
17931 lt_prog_compiler_pic_GCJ
="$lt_prog_compiler_pic_GCJ"
17936 # Check to make sure the static flag actually works.
17938 wl
=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_GCJ\"
17939 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17940 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17941 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
17942 echo $ECHO_N "(cached) $ECHO_C" >&6
17944 lt_prog_compiler_static_works_GCJ
=no
17945 save_LDFLAGS
="$LDFLAGS"
17946 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
17947 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
17948 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
17949 # The linker can only warn and ignore the option if not recognized
17950 # So say no if there are warnings
17951 if test -s conftest.err
; then
17952 # Append any errors to the config.log.
17953 cat conftest.err
1>&5
17954 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17955 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
17956 if diff conftest.exp conftest.er2
>/dev
/null
; then
17957 lt_prog_compiler_static_works_GCJ
=yes
17960 lt_prog_compiler_static_works_GCJ
=yes
17964 LDFLAGS
="$save_LDFLAGS"
17967 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
17968 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
17970 if test x
"$lt_prog_compiler_static_works_GCJ" = xyes
; then
17973 lt_prog_compiler_static_GCJ
=
17977 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17978 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17979 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17980 echo $ECHO_N "(cached) $ECHO_C" >&6
17982 lt_cv_prog_compiler_c_o_GCJ
=no
17983 $rm -r conftest
2>/dev
/null
17987 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
17989 lt_compiler_flag
="-o out/conftest2.$ac_objext"
17990 # Insert the option either (1) after the last *FLAGS variable, or
17991 # (2) before a word containing "conftest.", or (3) at the end.
17992 # Note that $ac_compile itself does not contain backslashes and begins
17993 # with a dollar sign (not a hyphen), so the echo should work correctly.
17994 lt_compile
=`echo "$ac_compile" | $SED \
17995 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17996 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17997 -e 's:$: $lt_compiler_flag:'`
17998 (eval echo "\"\$as_me:17998: $lt_compile\"" >&5)
17999 (eval "$lt_compile" 2>out
/conftest.err
)
18001 cat out
/conftest.err
>&5
18002 echo "$as_me:18002: \$? = $ac_status" >&5
18003 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
18005 # The compiler can only warn and ignore the option if not recognized
18006 # So say no if there are warnings
18007 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out
/conftest.exp
18008 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
18009 if test ! -s out
/conftest.er2
|| diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
18010 lt_cv_prog_compiler_c_o_GCJ
=yes
18015 # SGI C++ compiler will create directory out/ii_files/ for
18016 # template instantiation
18017 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
18018 $rm out
/* && rmdir out
18024 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
18025 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
18028 hard_links
="nottested"
18029 if test "$lt_cv_prog_compiler_c_o_GCJ" = no
&& test "$need_locks" != no
; then
18030 # do not overwrite the value of need_locks provided by the user
18031 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18032 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
18035 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
18037 ln conftest.a conftest.b
2>&5 || hard_links
=no
18038 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
18039 { echo "$as_me:$LINENO: result: $hard_links" >&5
18040 echo "${ECHO_T}$hard_links" >&6; }
18041 if test "$hard_links" = no
; then
18042 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18043 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18050 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18051 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18054 allow_undefined_flag_GCJ
=
18055 enable_shared_with_static_runtimes_GCJ
=no
18057 archive_expsym_cmds_GCJ
=
18058 old_archive_From_new_cmds_GCJ
=
18059 old_archive_from_expsyms_cmds_GCJ
=
18060 export_dynamic_flag_spec_GCJ
=
18061 whole_archive_flag_spec_GCJ
=
18062 thread_safe_flag_spec_GCJ
=
18063 hardcode_libdir_flag_spec_GCJ
=
18064 hardcode_libdir_flag_spec_ld_GCJ
=
18065 hardcode_libdir_separator_GCJ
=
18066 hardcode_direct_GCJ
=no
18067 hardcode_minus_L_GCJ
=no
18068 hardcode_shlibpath_var_GCJ
=unsupported
18069 link_all_deplibs_GCJ
=unknown
18070 hardcode_automatic_GCJ
=no
18072 module_expsym_cmds_GCJ
=
18073 always_export_symbols_GCJ
=no
18074 export_symbols_cmds_GCJ
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18075 # include_expsyms should be a list of space-separated symbols to be *always*
18076 # included in the symbol list
18077 include_expsyms_GCJ
=
18078 # exclude_expsyms can be an extended regexp of symbols to exclude
18079 # it will be wrapped by ` (' and `)$', so one must not match beginning or
18080 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
18081 # as well as any symbol that contains `d'.
18082 exclude_expsyms_GCJ
="_GLOBAL_OFFSET_TABLE_"
18083 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
18084 # platforms (ab)use it in PIC code, but their linkers get confused if
18085 # the symbol is explicitly referenced. Since portable code cannot
18086 # rely on this symbol name, it's probably fine to never include it in
18087 # preloaded symbol tables.
18088 extract_expsyms_cmds
=
18089 # Just being paranoid about ensuring that cc_basename is set.
18090 for cc_temp
in $compiler""; do
18092 compile
| *[\\/]compile
| ccache
| *[\\/]ccache
) ;;
18093 distcc
| *[\\/]distcc
| purify
| *[\\/]purify
) ;;
18098 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18101 cygwin
* | mingw
* | pw32
*)
18102 # FIXME: the MSVC++ port hasn't been tested in a loooong time
18103 # When not using gcc, we currently assume that we are using
18104 # Microsoft Visual C++.
18105 if test "$GCC" != yes; then
18110 # we just hope/assume this is gcc and not c89 (= MSVC++)
18119 if test "$with_gnu_ld" = yes; then
18120 # If archive_cmds runs LD, not CC, wlarc should be empty
18123 # Set some defaults for GNU ld with shared library support. These
18124 # are reset later if shared libraries are not supported. Putting them
18125 # here allows them to be overridden if necessary.
18126 runpath_var
=LD_RUN_PATH
18127 hardcode_libdir_flag_spec_GCJ
='${wl}--rpath ${wl}$libdir'
18128 export_dynamic_flag_spec_GCJ
='${wl}--export-dynamic'
18129 # ancient GNU ld didn't support --whole-archive et. al.
18130 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev
/null
; then
18131 whole_archive_flag_spec_GCJ
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18133 whole_archive_flag_spec_GCJ
=
18135 supports_anon_versioning
=no
18136 case `$LD -v 2>/dev/null` in
18137 *\
[01].
* | *\
2.
[0-9].
* | *\
2.10.
*) ;; # catch versions < 2.11
18138 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
18139 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
18140 *\
2.11.
*) ;; # other 2.11 versions
18141 *) supports_anon_versioning
=yes ;;
18144 # See if GNU ld supports shared libraries.
18146 aix3
* | aix4
* | aix5
*)
18147 # On AIX/PPC, the GNU linker is very broken
18148 if test "$host_cpu" != ia64
; then
18152 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
18153 *** to be unable to reliably create shared libraries on AIX.
18154 *** Therefore, libtool is disabling shared libraries support. If you
18155 *** really care for shared libraries, you may want to modify your PATH
18156 *** so that a non-GNU linker is found, and then restart.
18163 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)'
18164 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
18165 hardcode_minus_L_GCJ
=yes
18167 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
18168 # that the semantics of dynamic libraries on AmigaOS, at least up
18169 # to version 4, is to share data among multiple programs linked
18170 # with the same dynamic library. Since this doesn't match the
18171 # behavior of shared libraries on other platforms, we can't use
18177 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev
/null
; then
18178 allow_undefined_flag_GCJ
=unsupported
18179 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18180 # support --undefined. This deserves some investigation. FIXME
18181 archive_cmds_GCJ
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18187 cygwin
* | mingw
* | pw32
*)
18188 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
18189 # as there is no search path for DLLs.
18190 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
18191 allow_undefined_flag_GCJ
=unsupported
18192 always_export_symbols_GCJ
=no
18193 enable_shared_with_static_runtimes_GCJ
=yes
18194 export_symbols_cmds_GCJ
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
18196 if $LD --help 2>&1 | grep 'auto-import' > /dev
/null
; then
18197 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18198 # If the export-symbols file already is a .def file (1st line
18199 # is EXPORTS), use it as is; otherwise, prepend...
18200 archive_expsym_cmds_GCJ
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18201 cp $export_symbols $output_objdir/$soname.def;
18203 echo EXPORTS > $output_objdir/$soname.def;
18204 cat $export_symbols >> $output_objdir/$soname.def;
18206 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18213 hardcode_direct_GCJ
=no
18214 hardcode_shlibpath_var_GCJ
=no
18215 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath,$libdir'
18216 export_dynamic_flag_spec_GCJ
='${wl}-E'
18217 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18218 # Instead, shared libraries are loaded at an image base (0x10000000 by
18219 # default) and relocated if they conflict, which is a slow very memory
18220 # consuming and fragmenting process. To avoid this, we pick a random,
18221 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18222 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18223 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'
18224 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'
18227 gnu
* | linux
* | k
*bsd
*-gnu)
18228 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev
/null
; then
18230 case $cc_basename,$host_cpu in
18231 pgcc
*) # Portland Group C compiler
18232 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'
18233 tmp_addflag
=' $pic_flag'
18235 pgf77
* | pgf90
* | pgf95
*) # Portland Group f77 and f90 compilers
18236 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'
18237 tmp_addflag
=' $pic_flag -Mnomain' ;;
18238 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
18239 tmp_addflag
=' -i_dynamic' ;;
18240 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
18241 tmp_addflag
=' -i_dynamic -nofor_main' ;;
18242 ifc
* | ifort
*) # Intel Fortran compiler
18243 tmp_addflag
=' -nofor_main' ;;
18245 case `$CC -V 2>&1 | sed 5q` in
18246 *Sun\ C
*) # Sun C 5.9
18247 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'
18248 tmp_sharedflag
='-G' ;;
18249 *Sun\ F
*) # Sun Fortran 8.3
18250 tmp_sharedflag
='-G' ;;
18252 tmp_sharedflag
='-shared' ;;
18254 archive_cmds_GCJ
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18256 if test $supports_anon_versioning = yes; then
18257 archive_expsym_cmds_GCJ
='$echo "{ global:" > $output_objdir/$libname.ver~
18258 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18259 $echo "local: *; };" >> $output_objdir/$libname.ver~
18260 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18262 link_all_deplibs_GCJ
=no
18268 netbsd
* | netbsdelf
*-gnu)
18269 if echo __ELF__
| $CC -E - | grep __ELF__
>/dev
/null
; then
18270 archive_cmds_GCJ
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18273 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18274 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18279 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev
/null
; then
18283 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
18284 *** create shared libraries on Solaris systems. Therefore, libtool
18285 *** is disabling shared libraries support. We urge you to upgrade GNU
18286 *** binutils to release 2.9.1 or newer. Another option is to modify
18287 *** your PATH or compiler configuration so that the native linker is
18288 *** used, and then restart.
18291 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev
/null
; then
18292 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18293 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18299 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
18300 case `$LD -v 2>&1` in
18301 *\
[01].
* | *\
2.
[0-9].
* | *\
2.1[0-5].
*)
18305 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
18306 *** reliably create shared libraries on SCO systems. Therefore, libtool
18307 *** is disabling shared libraries support. We urge you to upgrade GNU
18308 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
18309 *** your PATH or compiler configuration so that the native linker is
18310 *** used, and then restart.
18315 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev
/null
; then
18316 hardcode_libdir_flag_spec_GCJ
='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
18317 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
18318 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
18327 archive_cmds_GCJ
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18329 hardcode_direct_GCJ
=yes
18330 hardcode_shlibpath_var_GCJ
=no
18334 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev
/null
; then
18335 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18336 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18343 if test "$ld_shlibs_GCJ" = no
; then
18345 hardcode_libdir_flag_spec_GCJ
=
18346 export_dynamic_flag_spec_GCJ
=
18347 whole_archive_flag_spec_GCJ
=
18350 # PORTME fill in a description of your system's linker (not GNU ld)
18353 allow_undefined_flag_GCJ
=unsupported
18354 always_export_symbols_GCJ
=yes
18355 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'
18356 # Note: this linker hardcodes the directories in LIBPATH if there
18357 # are no directories specified by -L.
18358 hardcode_minus_L_GCJ
=yes
18359 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
18360 # Neither direct hardcoding nor static linking is supported with a
18362 hardcode_direct_GCJ
=unsupported
18367 if test "$host_cpu" = ia64
; then
18368 # On IA64, the linker does run time linking by default, so we don't
18369 # have to do anything special.
18370 aix_use_runtimelinking
=no
18371 exp_sym_flag
='-Bexport'
18374 # If we're using GNU nm, then we don't want the "-C" option.
18375 # -C means demangle to AIX nm, but means don't demangle with GNU nm
18376 if $NM -V 2>&1 | grep 'GNU' > /dev
/null
; then
18377 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'
18379 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'
18381 aix_use_runtimelinking
=no
18383 # Test if we are trying to use run time linking or normal
18384 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18385 # need to do runtime linking.
18386 case $host_os in aix4.
[23]|aix4.
[23].
*|aix5
*)
18387 for ld_flag
in $LDFLAGS; do
18388 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18389 aix_use_runtimelinking
=yes
18396 exp_sym_flag
='-bexport'
18397 no_entry_flag
='-bnoentry'
18400 # When large executables or shared objects are built, AIX ld can
18401 # have problems creating the table of contents. If linking a library
18402 # or program results in "error TOC overflow" add -mminimal-toc to
18403 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18404 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18406 archive_cmds_GCJ
=''
18407 hardcode_direct_GCJ
=yes
18408 hardcode_libdir_separator_GCJ
=':'
18409 link_all_deplibs_GCJ
=yes
18411 if test "$GCC" = yes; then
18412 case $host_os in aix4.
[012]|aix4.
[012].
*)
18413 # We only want to do this on AIX 4.2 and lower, the check
18414 # below for broken collect2 doesn't work under 4.3+
18415 collect2name
=`${CC} -print-prog-name=collect2`
18416 if test -f "$collect2name" && \
18417 strings "$collect2name" | grep resolve_lib_name
>/dev
/null
18419 # We have reworked collect2
18422 # We have old collect2
18423 hardcode_direct_GCJ
=unsupported
18424 # It fails to find uninstalled libraries when the uninstalled
18425 # path is not listed in the libpath. Setting hardcode_minus_L
18426 # to unsupported forces relinking
18427 hardcode_minus_L_GCJ
=yes
18428 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
18429 hardcode_libdir_separator_GCJ
=
18433 shared_flag
='-shared'
18434 if test "$aix_use_runtimelinking" = yes; then
18435 shared_flag
="$shared_flag "'${wl}-G'
18439 if test "$host_cpu" = ia64
; then
18440 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18441 # chokes on -Wl,-G. The following line is correct:
18444 if test "$aix_use_runtimelinking" = yes; then
18445 shared_flag
='${wl}-G'
18447 shared_flag
='${wl}-bM:SRE'
18452 # It seems that -bexpall does not export symbols beginning with
18453 # underscore (_), so it is better to generate a list of symbols to export.
18454 always_export_symbols_GCJ
=yes
18455 if test "$aix_use_runtimelinking" = yes; then
18456 # Warning - without using the other runtime loading flags (-brtl),
18457 # -berok will link without error, but may produce a broken library.
18458 allow_undefined_flag_GCJ
='-berok'
18459 # Determine the default libpath from the value encoded in an empty executable.
18460 cat >conftest.
$ac_ext <<_ACEOF
18463 cat confdefs.h
>>conftest.
$ac_ext
18464 cat >>conftest.
$ac_ext <<_ACEOF
18465 /* end confdefs.h. */
18475 rm -f conftest.
$ac_objext conftest
$ac_exeext
18476 if { (ac_try
="$ac_link"
18477 case "(($ac_try" in
18478 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
18479 *) ac_try_echo=$ac_try;;
18481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18482 (eval "$ac_link") 2>conftest.er1
18484 grep -v '^ *+' conftest.er1 >conftest.err
18486 cat conftest.err >&5
18487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18488 (exit $ac_status); } && {
18489 test -z "$ac_c_werror_flag" ||
18490 test ! -s conftest.err
18491 } && test -s conftest$ac_exeext &&
18492 $as_test_x conftest$ac_exeext; then
18494 lt_aix_libpath_sed='
18495 /Import File Strings/,/^$/ {
18501 aix_libpath=`dump
-H conftest
$ac_exeext 2>/dev
/null
| $SED -n -e "$lt_aix_libpath_sed"`
18502 # Check for a 64-bit object if we didn't find anything.
18503 if test -z "$aix_libpath"; then
18504 aix_libpath=`dump
-HX64 conftest
$ac_exeext 2>/dev
/null
| $SED -n -e "$lt_aix_libpath_sed"`
18507 echo "$as_me: failed program was:" >&5
18508 sed 's/^/| /' conftest.$ac_ext >&5
18513 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18514 conftest$ac_exeext conftest.$ac_ext
18515 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18517 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18518 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"
18520 if test "$host_cpu" = ia64; then
18521 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18522 allow_undefined_flag_GCJ="-z nodefs"
18523 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"
18525 # Determine the default libpath from the value encoded in an empty executable.
18526 cat >conftest.$ac_ext <<_ACEOF
18529 cat confdefs.h >>conftest.$ac_ext
18530 cat >>conftest.$ac_ext <<_ACEOF
18531 /* end confdefs.h. */
18541 rm -f conftest.$ac_objext conftest$ac_exeext
18542 if { (ac_try="$ac_link"
18543 case "(($ac_try" in
18544 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
18545 *) ac_try_echo
=$ac_try;;
18547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18548 (eval "$ac_link") 2>conftest.er1
18550 grep -v '^ *+' conftest.er1
>conftest.err
18552 cat conftest.err
>&5
18553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18554 (exit $ac_status); } && {
18555 test -z "$ac_c_werror_flag" ||
18556 test ! -s conftest.err
18557 } && test -s conftest
$ac_exeext &&
18558 $as_test_x conftest
$ac_exeext; then
18560 lt_aix_libpath_sed
='
18561 /Import File Strings/,/^$/ {
18567 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18568 # Check for a 64-bit object if we didn't find anything.
18569 if test -z "$aix_libpath"; then
18570 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18573 echo "$as_me: failed program was:" >&5
18574 sed 's/^/| /' conftest.
$ac_ext >&5
18579 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18580 conftest
$ac_exeext conftest.
$ac_ext
18581 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
18583 hardcode_libdir_flag_spec_GCJ
='${wl}-blibpath:$libdir:'"$aix_libpath"
18584 # Warning - without using the other run time loading flags,
18585 # -berok will link without error, but may produce a broken library.
18586 no_undefined_flag_GCJ
=' ${wl}-bernotok'
18587 allow_undefined_flag_GCJ
=' ${wl}-berok'
18588 # Exported symbols can be pulled into shared objects from archives
18589 whole_archive_flag_spec_GCJ
='$convenience'
18590 archive_cmds_need_lc_GCJ
=yes
18591 # This is similar to how AIX traditionally builds its shared libraries.
18592 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'
18598 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)'
18599 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
18600 hardcode_minus_L_GCJ
=yes
18601 # see comment about different semantics on the GNU ld section
18606 export_dynamic_flag_spec_GCJ
=-rdynamic
18609 cygwin
* | mingw
* | pw32
*)
18610 # When not using gcc, we currently assume that we are using
18611 # Microsoft Visual C++.
18612 # hardcode_libdir_flag_spec is actually meaningless, as there is
18613 # no search path for DLLs.
18614 hardcode_libdir_flag_spec_GCJ
=' '
18615 allow_undefined_flag_GCJ
=unsupported
18616 # Tell ltmain to make .lib files, not .a files.
18618 # Tell ltmain to make .dll files, not .so files.
18620 # FIXME: Setting linknames here is a bad hack.
18621 archive_cmds_GCJ
='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18622 # The linker will automatically build a .lib file if we build a DLL.
18623 old_archive_From_new_cmds_GCJ
='true'
18624 # FIXME: Should let the user specify the lib program.
18625 old_archive_cmds_GCJ
='lib -OUT:$oldlib$oldobjs$old_deplibs'
18626 fix_srcfile_path_GCJ
='`cygpath -w "$srcfile"`'
18627 enable_shared_with_static_runtimes_GCJ
=yes
18630 darwin
* | rhapsody
*)
18632 rhapsody
* | darwin1.
[012])
18633 allow_undefined_flag_GCJ
='${wl}-undefined ${wl}suppress'
18636 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18637 allow_undefined_flag_GCJ
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18639 case ${MACOSX_DEPLOYMENT_TARGET} in
18641 allow_undefined_flag_GCJ
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18644 allow_undefined_flag_GCJ
='${wl}-undefined ${wl}dynamic_lookup'
18650 archive_cmds_need_lc_GCJ
=no
18651 hardcode_direct_GCJ
=no
18652 hardcode_automatic_GCJ
=yes
18653 hardcode_shlibpath_var_GCJ
=unsupported
18654 whole_archive_flag_spec_GCJ
=''
18655 link_all_deplibs_GCJ
=yes
18656 if test "$GCC" = yes ; then
18657 output_verbose_link_cmd
='echo'
18658 archive_cmds_GCJ
='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18659 module_cmds_GCJ
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18660 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18661 archive_expsym_cmds_GCJ
='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18662 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}'
18664 case $cc_basename in
18666 output_verbose_link_cmd
='echo'
18667 archive_cmds_GCJ
='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
18668 module_cmds_GCJ
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18669 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18670 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}'
18671 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}'
18681 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18682 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
18683 hardcode_shlibpath_var_GCJ
=no
18690 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18691 # support. Future versions do this automatically, but an explicit c++rt0.o
18692 # does not break anything, and helps significantly (at the cost of a little
18695 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18696 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
18697 hardcode_direct_GCJ
=yes
18698 hardcode_shlibpath_var_GCJ
=no
18701 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18703 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18704 hardcode_direct_GCJ
=yes
18705 hardcode_minus_L_GCJ
=yes
18706 hardcode_shlibpath_var_GCJ
=no
18709 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18710 freebsd
* | dragonfly
*)
18711 archive_cmds_GCJ
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18712 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
18713 hardcode_direct_GCJ
=yes
18714 hardcode_shlibpath_var_GCJ
=no
18718 if test "$GCC" = yes; then
18719 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'
18721 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'
18723 hardcode_libdir_flag_spec_GCJ
='${wl}+b ${wl}$libdir'
18724 hardcode_libdir_separator_GCJ
=:
18725 hardcode_direct_GCJ
=yes
18727 # hardcode_minus_L: Not really in the search PATH,
18728 # but as the default location of the library.
18729 hardcode_minus_L_GCJ
=yes
18730 export_dynamic_flag_spec_GCJ
='${wl}-E'
18734 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
18735 archive_cmds_GCJ
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18737 archive_cmds_GCJ
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18739 if test "$with_gnu_ld" = no
; then
18740 hardcode_libdir_flag_spec_GCJ
='${wl}+b ${wl}$libdir'
18741 hardcode_libdir_separator_GCJ
=:
18743 hardcode_direct_GCJ
=yes
18744 export_dynamic_flag_spec_GCJ
='${wl}-E'
18746 # hardcode_minus_L: Not really in the search PATH,
18747 # but as the default location of the library.
18748 hardcode_minus_L_GCJ
=yes
18753 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
18756 archive_cmds_GCJ
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18759 archive_cmds_GCJ
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18762 archive_cmds_GCJ
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18768 archive_cmds_GCJ
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18771 archive_cmds_GCJ
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18774 archive_cmds_GCJ
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18778 if test "$with_gnu_ld" = no
; then
18779 hardcode_libdir_flag_spec_GCJ
='${wl}+b ${wl}$libdir'
18780 hardcode_libdir_separator_GCJ
=:
18784 hardcode_libdir_flag_spec_ld_GCJ
='+b $libdir'
18785 hardcode_direct_GCJ
=no
18786 hardcode_shlibpath_var_GCJ
=no
18789 hardcode_direct_GCJ
=yes
18790 export_dynamic_flag_spec_GCJ
='${wl}-E'
18792 # hardcode_minus_L: Not really in the search PATH,
18793 # but as the default location of the library.
18794 hardcode_minus_L_GCJ
=yes
18800 irix5
* | irix6
* | nonstopux
*)
18801 if test "$GCC" = yes; then
18802 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'
18804 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'
18805 hardcode_libdir_flag_spec_ld_GCJ
='-rpath $libdir'
18807 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
18808 hardcode_libdir_separator_GCJ
=:
18809 link_all_deplibs_GCJ
=yes
18812 netbsd
* | netbsdelf
*-gnu)
18813 if echo __ELF__
| $CC -E - | grep __ELF__
>/dev
/null
; then
18814 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18816 archive_cmds_GCJ
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18818 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
18819 hardcode_direct_GCJ
=yes
18820 hardcode_shlibpath_var_GCJ
=no
18824 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18825 hardcode_direct_GCJ
=yes
18826 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
18827 hardcode_libdir_separator_GCJ
=:
18828 hardcode_shlibpath_var_GCJ
=no
18832 if test -f /usr
/libexec
/ld.so
; then
18833 hardcode_direct_GCJ
=yes
18834 hardcode_shlibpath_var_GCJ
=no
18835 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18836 archive_cmds_GCJ
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18837 archive_expsym_cmds_GCJ
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18838 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath,$libdir'
18839 export_dynamic_flag_spec_GCJ
='${wl}-E'
18842 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
18843 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18844 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
18847 archive_cmds_GCJ
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18848 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath,$libdir'
18858 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
18859 hardcode_minus_L_GCJ
=yes
18860 allow_undefined_flag_GCJ
=unsupported
18861 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'
18862 old_archive_From_new_cmds_GCJ
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18866 if test "$GCC" = yes; then
18867 allow_undefined_flag_GCJ
=' ${wl}-expect_unresolved ${wl}\*'
18868 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'
18870 allow_undefined_flag_GCJ
=' -expect_unresolved \*'
18871 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'
18873 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
18874 hardcode_libdir_separator_GCJ
=:
18877 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
18878 if test "$GCC" = yes; then
18879 allow_undefined_flag_GCJ
=' ${wl}-expect_unresolved ${wl}\*'
18880 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'
18881 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
18883 allow_undefined_flag_GCJ
=' -expect_unresolved \*'
18884 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'
18885 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~
18886 $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'
18888 # Both c and cxx compiler support -rpath directly
18889 hardcode_libdir_flag_spec_GCJ
='-rpath $libdir'
18891 hardcode_libdir_separator_GCJ
=:
18895 no_undefined_flag_GCJ
=' -z text'
18896 if test "$GCC" = yes; then
18898 archive_cmds_GCJ
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18899 archive_expsym_cmds_GCJ
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18900 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18903 archive_cmds_GCJ
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18904 archive_expsym_cmds_GCJ
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18905 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18907 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
18908 hardcode_shlibpath_var_GCJ
=no
18910 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
18912 # The compiler driver will combine and reorder linker options,
18913 # but understands `-z linker_flag'. GCC discards it without `$wl',
18914 # but is careful enough not to reorder.
18915 # Supported since Solaris 2.6 (maybe 2.5.1?)
18916 if test "$GCC" = yes; then
18917 whole_archive_flag_spec_GCJ
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18919 whole_archive_flag_spec_GCJ
='-z allextract$convenience -z defaultextract'
18923 link_all_deplibs_GCJ
=yes
18927 if test "x$host_vendor" = xsequent
; then
18928 # Use $CC to link under sequent, because it throws in some extra .o
18929 # files that make .init and .fini sections work.
18930 archive_cmds_GCJ
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18932 archive_cmds_GCJ
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18934 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
18935 hardcode_direct_GCJ
=yes
18936 hardcode_minus_L_GCJ
=yes
18937 hardcode_shlibpath_var_GCJ
=no
18941 case $host_vendor in
18943 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18944 hardcode_direct_GCJ
=yes # is this really true???
18947 ## LD is ld it makes a PLAMLIB
18948 ## CC just makes a GrossModule.
18949 archive_cmds_GCJ
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18950 reload_cmds_GCJ
='$CC -r -o $output$reload_objs'
18951 hardcode_direct_GCJ
=no
18954 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18955 hardcode_direct_GCJ
=no
#Motorola manual says yes, but my tests say they lie
18958 runpath_var
='LD_RUN_PATH'
18959 hardcode_shlibpath_var_GCJ
=no
18963 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18964 hardcode_shlibpath_var_GCJ
=no
18965 export_dynamic_flag_spec_GCJ
='-Bexport'
18969 if test -d /usr
/nec
; then
18970 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18971 hardcode_shlibpath_var_GCJ
=no
18972 runpath_var
=LD_RUN_PATH
18973 hardcode_runpath_var
=yes
18978 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
18979 no_undefined_flag_GCJ
='${wl}-z,text'
18980 archive_cmds_need_lc_GCJ
=no
18981 hardcode_shlibpath_var_GCJ
=no
18982 runpath_var
='LD_RUN_PATH'
18984 if test "$GCC" = yes; then
18985 archive_cmds_GCJ
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18986 archive_expsym_cmds_GCJ
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18988 archive_cmds_GCJ
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18989 archive_expsym_cmds_GCJ
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18993 sysv5
* | sco3.2v5
* | sco5v6
*)
18994 # Note: We can NOT use -z defs as we might desire, because we do not
18995 # link with -lc, and that would cause any symbols used from libc to
18996 # always be unresolved, which means just about no library would
18997 # ever link correctly. If we're not using GNU ld we use -z text
18998 # though, which does catch some bad symbols but isn't as heavy-handed
19000 no_undefined_flag_GCJ
='${wl}-z,text'
19001 allow_undefined_flag_GCJ
='${wl}-z,nodefs'
19002 archive_cmds_need_lc_GCJ
=no
19003 hardcode_shlibpath_var_GCJ
=no
19004 hardcode_libdir_flag_spec_GCJ
='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19005 hardcode_libdir_separator_GCJ
=':'
19006 link_all_deplibs_GCJ
=yes
19007 export_dynamic_flag_spec_GCJ
='${wl}-Bexport'
19008 runpath_var
='LD_RUN_PATH'
19010 if test "$GCC" = yes; then
19011 archive_cmds_GCJ
='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19012 archive_expsym_cmds_GCJ
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19014 archive_cmds_GCJ
='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19015 archive_expsym_cmds_GCJ
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19020 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19021 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
19022 hardcode_shlibpath_var_GCJ
=no
19031 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
19032 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
19033 test "$ld_shlibs_GCJ" = no
&& can_build_shared
=no
19036 # Do we need to explicitly link libc?
19038 case "x$archive_cmds_need_lc_GCJ" in
19040 # Assume -lc should be added
19041 archive_cmds_need_lc_GCJ
=yes
19043 if test "$enable_shared" = yes && test "$GCC" = yes; then
19044 case $archive_cmds_GCJ in
19046 # FIXME: we may have to deal with multi-command sequences.
19049 # Test whether the compiler implicitly links with -lc since on some
19050 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19051 # to ld, don't add -lc before -lgcc.
19052 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19053 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
19055 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
19057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19058 (eval $ac_compile) 2>&5
19060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19061 (exit $ac_status); } 2>conftest.err
; then
19064 libobjs
=conftest.
$ac_objext
19066 wl
=$lt_prog_compiler_wl_GCJ
19067 pic_flag
=$lt_prog_compiler_pic_GCJ
19073 lt_save_allow_undefined_flag
=$allow_undefined_flag_GCJ
19074 allow_undefined_flag_GCJ
=
19075 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19076 (eval $archive_cmds_GCJ 2\
>\
&1 \
| grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
19078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19079 (exit $ac_status); }
19081 archive_cmds_need_lc_GCJ
=no
19083 archive_cmds_need_lc_GCJ
=yes
19085 allow_undefined_flag_GCJ
=$lt_save_allow_undefined_flag
19087 cat conftest.err
1>&5
19090 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
19091 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
19098 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19099 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
19100 library_names_spec
=
19101 libname_spec
='lib$name'
19105 postuninstall_cmds
=
19109 shlibpath_overrides_runpath
=unknown
19111 dynamic_linker
="$host_os ld.so"
19112 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
19114 need_lib_prefix
=unknown
19115 hardcode_into_libs
=no
19117 # when you set need_version to no, make sure it does not cause -set_version
19118 # flags to be left without arguments
19119 need_version
=unknown
19124 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
19125 shlibpath_var
=LIBPATH
19127 # AIX 3 has no versioning support, so we append a major version to the name.
19128 soname_spec
='${libname}${release}${shared_ext}$major'
19135 hardcode_into_libs
=yes
19136 if test "$host_cpu" = ia64
; then
19137 # AIX 5 supports IA64
19138 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19139 shlibpath_var
=LD_LIBRARY_PATH
19141 # With GCC up to 2.95.x, collect2 would create an import file
19142 # for dependence libraries. The import file would start with
19143 # the line `#! .'. This would cause the generated library to
19144 # depend on `.', always an invalid library. This was fixed in
19145 # development snapshots of GCC prior to 3.0.
19147 aix4
| aix4.
[01] | aix4.
[01].
*)
19148 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19150 echo '#endif'; } | ${CC} -E - | grep yes > /dev
/null
; then
19153 can_build_shared
=no
19157 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19158 # soname into executable. Probably we can add versioning support to
19159 # collect2, so additional links can be useful in future.
19160 if test "$aix_use_runtimelinking" = yes; then
19161 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19162 # instead of lib<name>.a to let people know that these are not
19163 # typical AIX shared libraries.
19164 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19166 # We preserve .a as extension for shared libraries through AIX4.2
19167 # and later when we are not doing run time linking.
19168 library_names_spec
='${libname}${release}.a $libname.a'
19169 soname_spec
='${libname}${release}${shared_ext}$major'
19171 shlibpath_var
=LIBPATH
19176 library_names_spec
='$libname.ixlibrary $libname.a'
19177 # Create ${libname}_ixlibrary.a entries in /sys/libs.
19178 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'
19182 library_names_spec
='${libname}${shared_ext}'
19183 dynamic_linker
="$host_os ld.so"
19184 shlibpath_var
=LIBRARY_PATH
19190 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19191 soname_spec
='${libname}${release}${shared_ext}$major'
19192 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
19193 shlibpath_var
=LD_LIBRARY_PATH
19194 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19195 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
19196 # the default ld.so.conf also contains /usr/contrib/lib and
19197 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19198 # libtool to hard-code these into programs
19201 cygwin
* | mingw
* | pw32
*)
19202 version_type
=windows
19207 case $GCC,$host_os in
19208 yes,cygwin
* | yes,mingw
* | yes,pw32
*)
19209 library_names_spec
='$libname.dll.a'
19210 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19211 postinstall_cmds
='base_file=`basename \${file}`~
19212 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19213 dldir=$destdir/`dirname \$dlpath`~
19214 test -d \$dldir || mkdir -p \$dldir~
19215 $install_prog $dir/$dlname \$dldir/$dlname~
19216 chmod a+x \$dldir/$dlname'
19217 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19218 dlpath=$dir/\$dldll~
19220 shlibpath_overrides_runpath
=yes
19224 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19225 soname_spec
='`echo ${libname} | sed -e 's
/^lib
/cyg
/'``echo ${release} | $SED -e 's
/[.
]/-/g
'`${versuffix}${shared_ext}'
19226 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
19229 # MinGW DLLs use traditional 'lib' prefix
19230 soname_spec
='${libname}`echo ${release} | $SED -e 's
/[.
]/-/g
'`${versuffix}${shared_ext}'
19231 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19232 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev
/null
; then
19233 # It is most probably a Windows format PATH printed by
19234 # mingw gcc, but we are running on Cygwin. Gcc prints its search
19235 # path with ; separators, and with drive letters. We can handle the
19236 # drive letters (cygwin fileutils understands them), so leave them,
19237 # especially as we might pass files found there to a mingw objdump,
19238 # which wouldn't understand a cygwinified path. Ahh.
19239 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19241 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19245 # pw32 DLLs use 'pw' prefix rather than 'lib'
19246 library_names_spec
='`echo ${libname} | sed -e 's
/^lib
/pw
/'``echo ${release} | $SED -e 's
/[.
]/-/g
'`${versuffix}${shared_ext}'
19252 library_names_spec
='${libname}`echo ${release} | $SED -e 's
/[.
]/-/g
'`${versuffix}${shared_ext} $libname.lib'
19255 dynamic_linker
='Win32 ld.exe'
19256 # FIXME: first we should search . and the directory the executable is in
19260 darwin
* | rhapsody
*)
19261 dynamic_linker
="$host_os dyld"
19262 version_type
=darwin
19265 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19266 soname_spec
='${libname}${release}${major}$shared_ext'
19267 shlibpath_overrides_runpath
=yes
19268 shlibpath_var
=DYLD_LIBRARY_PATH
19269 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
19271 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
19278 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19279 soname_spec
='${libname}${release}${shared_ext}$major'
19280 shlibpath_var
=LD_LIBRARY_PATH
19287 freebsd
* | dragonfly
*)
19288 # DragonFly does not have aout. When/if they implement a new
19289 # versioning mechanism, adjust this.
19290 if test -x /usr
/bin
/objformat
; then
19291 objformat
=`/usr/bin/objformat`
19294 freebsd
[123]*) objformat
=aout
;;
19295 *) objformat
=elf
;;
19298 version_type
=freebsd
-$objformat
19299 case $version_type in
19301 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19306 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19310 shlibpath_var
=LD_LIBRARY_PATH
19313 shlibpath_overrides_runpath
=yes
19315 freebsd3.
[01]* | freebsdelf3.
[01]*)
19316 shlibpath_overrides_runpath
=yes
19317 hardcode_into_libs
=yes
19319 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
19320 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
19321 shlibpath_overrides_runpath
=no
19322 hardcode_into_libs
=yes
19324 *) # from 4.6 on, and DragonFly
19325 shlibpath_overrides_runpath
=yes
19326 hardcode_into_libs
=yes
19335 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19336 soname_spec
='${libname}${release}${shared_ext}$major'
19337 shlibpath_var
=LD_LIBRARY_PATH
19338 hardcode_into_libs
=yes
19341 hpux9
* | hpux10
* | hpux11
*)
19342 # Give a soname corresponding to the major version so that dld.sl refuses to
19343 # link against other versions.
19350 hardcode_into_libs
=yes
19351 dynamic_linker
="$host_os dld.so"
19352 shlibpath_var
=LD_LIBRARY_PATH
19353 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
19354 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19355 soname_spec
='${libname}${release}${shared_ext}$major'
19356 if test "X$HPUX_IA64_MODE" = X32
; then
19357 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19359 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
19361 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
19365 hardcode_into_libs
=yes
19366 dynamic_linker
="$host_os dld.sl"
19367 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
19368 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
19369 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19370 soname_spec
='${libname}${release}${shared_ext}$major'
19371 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19372 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
19376 dynamic_linker
="$host_os dld.sl"
19377 shlibpath_var
=SHLIB_PATH
19378 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
19379 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19380 soname_spec
='${libname}${release}${shared_ext}$major'
19383 # HP-UX runs *really* slowly unless shared libraries are mode 555.
19384 postinstall_cmds
='chmod 555 $lib'
19391 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19392 soname_spec
='${libname}${release}${shared_ext}$major'
19393 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
19394 shlibpath_var
=LD_LIBRARY_PATH
19395 shlibpath_overrides_runpath
=no
19396 hardcode_into_libs
=yes
19399 irix5
* | irix6
* | nonstopux
*)
19401 nonstopux
*) version_type
=nonstopux
;;
19403 if test "$lt_cv_prog_gnu_ld" = yes; then
19411 soname_spec
='${libname}${release}${shared_ext}$major'
19412 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19414 irix5
* | nonstopux
*)
19415 libsuff
= shlibsuff
=
19418 case $LD in # libtool.m4 will add one of these switches to LD
19419 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19420 libsuff
= shlibsuff
= libmagic
=32-bit;;
19421 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19422 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
19423 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19424 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
19425 *) libsuff
= shlibsuff
= libmagic
=never
-match;;
19429 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
19430 shlibpath_overrides_runpath
=no
19431 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19432 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
19433 hardcode_into_libs
=yes
19436 # No shared lib support for Linux oldld, aout, or coff.
19437 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
19441 # This must be Linux ELF.
19442 linux
* | k
*bsd
*-gnu)
19446 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19447 soname_spec
='${libname}${release}${shared_ext}$major'
19448 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19449 shlibpath_var
=LD_LIBRARY_PATH
19450 shlibpath_overrides_runpath
=no
19451 # This implies no fast_install, which is unacceptable.
19452 # Some rework will be needed to allow for fast_install
19453 # before this can be enabled.
19454 hardcode_into_libs
=yes
19456 # Append ld.so.conf contents to the search path
19457 if test -f /etc
/ld.so.conf
; then
19458 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' ' '`
19459 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
19462 # We used to test for /lib/ld.so.1 and disable shared libraries on
19463 # powerpc, because MkLinux only supported shared libraries with the
19464 # GNU dynamic linker. Since this was broken with cross compilers,
19465 # most powerpc-linux boxes support dynamic linking these days and
19466 # people can always --disable-shared, the test was removed, and we
19467 # assume the GNU/Linux dynamic linker is in use.
19468 dynamic_linker
='GNU/Linux ld.so'
19475 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19476 soname_spec
='${libname}${release}${shared_ext}$major'
19477 shlibpath_var
=LD_LIBRARY_PATH
19478 shlibpath_overrides_runpath
=no
19479 hardcode_into_libs
=yes
19480 dynamic_linker
='NetBSD ld.elf_so'
19487 if echo __ELF__
| $CC -E - | grep __ELF__
>/dev
/null
; then
19488 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19489 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19490 dynamic_linker
='NetBSD (a.out) ld.so'
19492 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19493 soname_spec
='${libname}${release}${shared_ext}$major'
19494 dynamic_linker
='NetBSD ld.elf_so'
19496 shlibpath_var
=LD_LIBRARY_PATH
19497 shlibpath_overrides_runpath
=yes
19498 hardcode_into_libs
=yes
19503 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19504 shlibpath_var
=LD_LIBRARY_PATH
19505 shlibpath_overrides_runpath
=yes
19512 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19513 soname_spec
='${libname}${release}${shared_ext}$major'
19514 shlibpath_var
=LD_LIBRARY_PATH
19515 shlibpath_overrides_runpath
=yes
19520 sys_lib_dlsearch_path_spec
="/usr/lib"
19522 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19524 openbsd3.3
| openbsd3.3.
*) need_version
=yes ;;
19525 *) need_version
=no
;;
19527 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19528 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19529 shlibpath_var
=LD_LIBRARY_PATH
19530 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19532 openbsd2.
[89] | openbsd2.
[89].
*)
19533 shlibpath_overrides_runpath
=no
19536 shlibpath_overrides_runpath
=yes
19540 shlibpath_overrides_runpath
=yes
19545 libname_spec
='$name'
19548 library_names_spec
='$libname${shared_ext} $libname.a'
19549 dynamic_linker
='OS/2 ld.exe'
19550 shlibpath_var
=LIBPATH
19553 osf3
* | osf4
* | osf5
*)
19557 soname_spec
='${libname}${release}${shared_ext}$major'
19558 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19559 shlibpath_var
=LD_LIBRARY_PATH
19560 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19561 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
19572 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19573 soname_spec
='${libname}${release}${shared_ext}$major'
19574 shlibpath_var
=LD_LIBRARY_PATH
19575 shlibpath_overrides_runpath
=yes
19576 hardcode_into_libs
=yes
19577 # ldd complains unless libraries are executable
19578 postinstall_cmds
='chmod +x $lib'
19583 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19584 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19585 shlibpath_var
=LD_LIBRARY_PATH
19586 shlibpath_overrides_runpath
=yes
19587 if test "$with_gnu_ld" = yes; then
19595 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19596 soname_spec
='${libname}${release}${shared_ext}$major'
19597 shlibpath_var
=LD_LIBRARY_PATH
19598 case $host_vendor in
19600 shlibpath_overrides_runpath
=no
19602 export_dynamic_flag_spec
='${wl}-Blargedynsym'
19603 runpath_var
=LD_RUN_PATH
19611 shlibpath_overrides_runpath
=no
19612 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
19618 if test -d /usr
/nec
;then
19620 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19621 soname_spec
='$libname${shared_ext}.$major'
19622 shlibpath_var
=LD_LIBRARY_PATH
19626 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
19627 version_type
=freebsd
-elf
19630 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19631 soname_spec
='${libname}${release}${shared_ext}$major'
19632 shlibpath_var
=LD_LIBRARY_PATH
19633 hardcode_into_libs
=yes
19634 if test "$with_gnu_ld" = yes; then
19635 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19636 shlibpath_overrides_runpath
=no
19638 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
19639 shlibpath_overrides_runpath
=yes
19642 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
19646 sys_lib_dlsearch_path_spec
='/usr/lib'
19651 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19652 soname_spec
='${libname}${release}${shared_ext}$major'
19653 shlibpath_var
=LD_LIBRARY_PATH
19660 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19661 echo "${ECHO_T}$dynamic_linker" >&6; }
19662 test "$dynamic_linker" = no
&& can_build_shared
=no
19664 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
19665 if test "$GCC" = yes; then
19666 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19669 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19670 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
19671 hardcode_action_GCJ
=
19672 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19673 test -n "$runpath_var_GCJ" || \
19674 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19676 # We can hardcode non-existant directories.
19677 if test "$hardcode_direct_GCJ" != no
&&
19678 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19679 # have to relink, otherwise we might link with an installed library
19680 # when we should be linking with a yet-to-be-installed one
19681 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19682 test "$hardcode_minus_L_GCJ" != no
; then
19683 # Linking always hardcodes the temporary library directory.
19684 hardcode_action_GCJ
=relink
19686 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19687 hardcode_action_GCJ
=immediate
19690 # We cannot hardcode anything, or else we can only hardcode existing
19692 hardcode_action_GCJ
=unsupported
19694 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19695 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
19697 if test "$hardcode_action_GCJ" = relink
; then
19698 # Fast installation is not supported
19699 enable_fast_install
=no
19700 elif test "$shlibpath_overrides_runpath" = yes ||
19701 test "$enable_shared" = no
; then
19702 # Fast installation is not necessary
19703 enable_fast_install
=needless
19707 # The else clause should only fire when bootstrapping the
19708 # libtool distribution, otherwise you forgot to ship ltmain.sh
19709 # with your package, and you will get complaints that there are
19710 # no rules to generate ltmain.sh.
19711 if test -f "$ltmain"; then
19712 # See if we are running on zsh, and set the options which allow our commands through
19713 # without removal of \ escapes.
19714 if test -n "${ZSH_VERSION+set}" ; then
19715 setopt NO_GLOB_SUBST
19717 # Now quote all the things that may contain metacharacters while being
19718 # careful not to overquote the AC_SUBSTed values. We take copies of the
19719 # variables and quote the copies for generation of the libtool script.
19720 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19722 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19723 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19724 deplibs_check_method reload_flag reload_cmds need_locks \
19725 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19726 lt_cv_sys_global_symbol_to_c_name_address \
19727 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19728 old_postinstall_cmds old_postuninstall_cmds \
19732 lt_prog_compiler_wl_GCJ \
19733 lt_prog_compiler_pic_GCJ \
19734 lt_prog_compiler_static_GCJ \
19735 lt_prog_compiler_no_builtin_flag_GCJ \
19736 export_dynamic_flag_spec_GCJ \
19737 thread_safe_flag_spec_GCJ \
19738 whole_archive_flag_spec_GCJ \
19739 enable_shared_with_static_runtimes_GCJ \
19740 old_archive_cmds_GCJ \
19741 old_archive_from_new_cmds_GCJ \
19742 predep_objects_GCJ \
19743 postdep_objects_GCJ \
19746 compiler_lib_search_path_GCJ \
19748 archive_expsym_cmds_GCJ \
19749 postinstall_cmds_GCJ \
19750 postuninstall_cmds_GCJ \
19751 old_archive_from_expsyms_cmds_GCJ \
19752 allow_undefined_flag_GCJ \
19753 no_undefined_flag_GCJ \
19754 export_symbols_cmds_GCJ \
19755 hardcode_libdir_flag_spec_GCJ \
19756 hardcode_libdir_flag_spec_ld_GCJ \
19757 hardcode_libdir_separator_GCJ \
19758 hardcode_automatic_GCJ \
19760 module_expsym_cmds_GCJ \
19761 lt_cv_prog_compiler_c_o_GCJ \
19762 fix_srcfile_path_GCJ \
19763 exclude_expsyms_GCJ \
19764 include_expsyms_GCJ
; do
19767 old_archive_cmds_GCJ
| \
19768 old_archive_from_new_cmds_GCJ
| \
19769 archive_cmds_GCJ
| \
19770 archive_expsym_cmds_GCJ
| \
19771 module_cmds_GCJ
| \
19772 module_expsym_cmds_GCJ
| \
19773 old_archive_from_expsyms_cmds_GCJ
| \
19774 export_symbols_cmds_GCJ
| \
19775 extract_expsyms_cmds
| reload_cmds
| finish_cmds
| \
19776 postinstall_cmds
| postuninstall_cmds
| \
19777 old_postinstall_cmds
| old_postuninstall_cmds
| \
19778 sys_lib_search_path_spec
| sys_lib_dlsearch_path_spec
)
19779 # Double-quote double-evaled strings.
19780 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19783 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19789 *'\$0 --fallback-echo"')
19790 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19796 cat <<__EOF__ >> "$cfgfile"
19797 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19799 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19801 # Shell to use when invoking shell scripts.
19804 # Whether or not to build shared libraries.
19805 build_libtool_libs=$enable_shared
19807 # Whether or not to build static libraries.
19808 build_old_libs=$enable_static
19810 # Whether or not to add -lc for building shared libraries.
19811 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19813 # Whether or not to disallow shared libs when runtime libs are static
19814 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19816 # Whether or not to optimize for fast installation.
19817 fast_install=$enable_fast_install
19820 host_alias=$host_alias
19824 # The build system.
19825 build_alias=$build_alias
19829 # An echo program that does not interpret backslashes.
19834 AR_FLAGS=$lt_AR_FLAGS
19839 # LTCC compiler flags.
19840 LTCFLAGS=$lt_LTCFLAGS
19842 # A language-specific compiler.
19843 CC=$lt_compiler_GCJ
19845 # Is the compiler the GNU C compiler?
19851 # The linker used to build libraries.
19854 # Whether we need hard or soft links.
19857 # A BSD-compatible nm program.
19860 # A symbol stripping program
19863 # Used to examine libraries when file_magic_cmd begins "file"
19864 MAGIC_CMD=$MAGIC_CMD
19866 # Used on cygwin: DLL creation program.
19869 # Used on cygwin: object dumper.
19872 # Used on cygwin: assembler.
19875 # The name of the directory that contains temporary libtool files.
19878 # How to create reloadable object files.
19879 reload_flag=$lt_reload_flag
19880 reload_cmds=$lt_reload_cmds
19882 # How to pass a linker flag through the compiler.
19883 wl=$lt_lt_prog_compiler_wl_GCJ
19885 # Object file suffix (normally "o").
19886 objext="$ac_objext"
19888 # Old archive suffix (normally "a").
19891 # Shared library suffix (normally ".so").
19892 shrext_cmds='$shrext_cmds'
19894 # Executable file suffix (normally "").
19897 # Additional compiler flags for building library objects.
19898 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19901 # What is the maximum length of a command?
19902 max_cmd_len=$lt_cv_sys_max_cmd_len
19904 # Does compiler simultaneously support -c and -o options?
19905 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19907 # Must we lock files when doing compilation?
19908 need_locks=$lt_need_locks
19910 # Do we need the lib prefix for modules?
19911 need_lib_prefix=$need_lib_prefix
19913 # Do we need a version for libraries?
19914 need_version=$need_version
19916 # Whether dlopen is supported.
19917 dlopen_support=$enable_dlopen
19919 # Whether dlopen of programs is supported.
19920 dlopen_self=$enable_dlopen_self
19922 # Whether dlopen of statically linked programs is supported.
19923 dlopen_self_static=$enable_dlopen_self_static
19925 # Compiler flag to prevent dynamic linking.
19926 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19928 # Compiler flag to turn off builtin functions.
19929 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19931 # Compiler flag to allow reflexive dlopens.
19932 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19934 # Compiler flag to generate shared objects directly from archives.
19935 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19937 # Compiler flag to generate thread-safe objects.
19938 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19940 # Library versioning type.
19941 version_type=$version_type
19943 # Format of library name prefix.
19944 libname_spec=$lt_libname_spec
19946 # List of archive names. First name is the real one, the rest are links.
19947 # The last name is the one that the linker finds with -lNAME.
19948 library_names_spec=$lt_library_names_spec
19950 # The coded name of the library, if different from the real name.
19951 soname_spec=$lt_soname_spec
19953 # Commands used to build and install an old-style archive.
19955 old_archive_cmds=$lt_old_archive_cmds_GCJ
19956 old_postinstall_cmds=$lt_old_postinstall_cmds
19957 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19959 # Create an old-style archive from a shared archive.
19960 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19962 # Create a temporary old-style archive to link instead of a shared archive.
19963 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19965 # Commands used to build and install a shared archive.
19966 archive_cmds=$lt_archive_cmds_GCJ
19967 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19968 postinstall_cmds=$lt_postinstall_cmds
19969 postuninstall_cmds=$lt_postuninstall_cmds
19971 # Commands used to build a loadable module (assumed same as above if empty)
19972 module_cmds=$lt_module_cmds_GCJ
19973 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19975 # Commands to strip libraries.
19976 old_striplib=$lt_old_striplib
19977 striplib=$lt_striplib
19979 # Dependencies to place before the objects being linked to create a
19981 predep_objects=$lt_predep_objects_GCJ
19983 # Dependencies to place after the objects being linked to create a
19985 postdep_objects=$lt_postdep_objects_GCJ
19987 # Dependencies to place before the objects being linked to create a
19989 predeps=$lt_predeps_GCJ
19991 # Dependencies to place after the objects being linked to create a
19993 postdeps=$lt_postdeps_GCJ
19995 # The library search path used internally by the compiler when linking
19996 # a shared library.
19997 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19999 # Method to check whether dependent libraries are shared objects.
20000 deplibs_check_method=$lt_deplibs_check_method
20002 # Command to use when deplibs_check_method == file_magic.
20003 file_magic_cmd=$lt_file_magic_cmd
20005 # Flag that allows shared libraries with undefined symbols to be built.
20006 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
20008 # Flag that forces no undefined symbols.
20009 no_undefined_flag=$lt_no_undefined_flag_GCJ
20011 # Commands used to finish a libtool library installation in a directory.
20012 finish_cmds=$lt_finish_cmds
20014 # Same as above, but a single script fragment to be evaled but not shown.
20015 finish_eval=$lt_finish_eval
20017 # Take the output of nm and produce a listing of raw symbols and C names.
20018 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20020 # Transform the output of nm in a proper C declaration
20021 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20023 # Transform the output of nm in a C name address pair
20024 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20026 # This is the shared library runtime path variable.
20027 runpath_var=$runpath_var
20029 # This is the shared library path variable.
20030 shlibpath_var=$shlibpath_var
20032 # Is shlibpath searched before the hard-coded library search path?
20033 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20035 # How to hardcode a shared library path into an executable.
20036 hardcode_action=$hardcode_action_GCJ
20038 # Whether we should hardcode library paths into libraries.
20039 hardcode_into_libs=$hardcode_into_libs
20041 # Flag to hardcode \$libdir into a binary during linking.
20042 # This must work even if \$libdir does not exist.
20043 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
20045 # If ld is used when linking, flag to hardcode \$libdir into
20046 # a binary during linking. This must work even if \$libdir does
20048 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
20050 # Whether we need a single -rpath flag with a separated argument.
20051 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
20053 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20054 # resulting binary.
20055 hardcode_direct=$hardcode_direct_GCJ
20057 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20058 # resulting binary.
20059 hardcode_minus_L=$hardcode_minus_L_GCJ
20061 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20062 # the resulting binary.
20063 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
20065 # Set to yes if building a shared library automatically hardcodes DIR into the library
20066 # and all subsequent libraries and executables linked against it.
20067 hardcode_automatic=$hardcode_automatic_GCJ
20069 # Variables whose values should be saved in libtool wrapper scripts and
20070 # restored at relink time.
20071 variables_saved_for_relink="$variables_saved_for_relink"
20073 # Whether libtool must link a program against all its dependency libraries.
20074 link_all_deplibs=$link_all_deplibs_GCJ
20076 # Compile-time system search path for libraries
20077 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20079 # Run-time system search path for libraries
20080 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20082 # Fix the shell variable \$srcfile for the compiler.
20083 fix_srcfile_path=$lt_fix_srcfile_path
20085 # Set to yes if exported symbols are required.
20086 always_export_symbols=$always_export_symbols_GCJ
20088 # The commands to list exported symbols.
20089 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
20091 # The commands to extract the exported symbol list from a shared archive.
20092 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20094 # Symbols that should not be listed in the preloaded symbols.
20095 exclude_expsyms=$lt_exclude_expsyms_GCJ
20097 # Symbols that must always be exported.
20098 include_expsyms=$lt_include_expsyms_GCJ
20100 # ### END LIBTOOL TAG CONFIG: $tagname
20106 # If there is no Makefile yet, we rely on a make rule to execute
20107 # `config.status --recheck' to rerun these tests and create the
20108 # libtool script then.
20109 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20110 if test -f "$ltmain_in"; then
20111 test -f Makefile
&& make "$ltmain"
20117 ac_cpp
='$CPP $CPPFLAGS'
20118 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20119 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20120 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
20132 # Source file extension for RC test sources.
20135 # Object file extension for compiled RC test sources.
20139 # Code to be used in simple compile tests
20140 lt_simple_compile_test_code
='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
20142 # Code to be used in simple link tests
20143 lt_simple_link_test_code
="$lt_simple_compile_test_code"
20145 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20147 # If no C compiler was specified, use CC.
20150 # If no C compiler flags were specified, use CFLAGS.
20151 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
20153 # Allow CC to be a program name with arguments.
20157 # save warnings/boilerplate of simple test code
20158 ac_outfile
=conftest.
$ac_objext
20159 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
20160 eval "$ac_compile" 2>&1 >/dev
/null
| $SED '/^$/d; /^ *+/d' >conftest.err
20161 _lt_compiler_boilerplate
=`cat conftest.err`
20164 ac_outfile
=conftest.
$ac_objext
20165 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
20166 eval "$ac_link" 2>&1 >/dev
/null
| $SED '/^$/d; /^ *+/d' >conftest.err
20167 _lt_linker_boilerplate
=`cat conftest.err`
20171 # Allow CC to be a program name with arguments.
20176 for cc_temp
in $compiler""; do
20178 compile
| *[\\/]compile
| ccache
| *[\\/]ccache
) ;;
20179 distcc
| *[\\/]distcc
| purify
| *[\\/]purify
) ;;
20184 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20186 lt_cv_prog_compiler_c_o_RC
=yes
20188 # The else clause should only fire when bootstrapping the
20189 # libtool distribution, otherwise you forgot to ship ltmain.sh
20190 # with your package, and you will get complaints that there are
20191 # no rules to generate ltmain.sh.
20192 if test -f "$ltmain"; then
20193 # See if we are running on zsh, and set the options which allow our commands through
20194 # without removal of \ escapes.
20195 if test -n "${ZSH_VERSION+set}" ; then
20196 setopt NO_GLOB_SUBST
20198 # Now quote all the things that may contain metacharacters while being
20199 # careful not to overquote the AC_SUBSTed values. We take copies of the
20200 # variables and quote the copies for generation of the libtool script.
20201 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20203 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20204 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20205 deplibs_check_method reload_flag reload_cmds need_locks \
20206 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20207 lt_cv_sys_global_symbol_to_c_name_address \
20208 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20209 old_postinstall_cmds old_postuninstall_cmds \
20213 lt_prog_compiler_wl_RC \
20214 lt_prog_compiler_pic_RC \
20215 lt_prog_compiler_static_RC \
20216 lt_prog_compiler_no_builtin_flag_RC \
20217 export_dynamic_flag_spec_RC \
20218 thread_safe_flag_spec_RC \
20219 whole_archive_flag_spec_RC \
20220 enable_shared_with_static_runtimes_RC \
20221 old_archive_cmds_RC \
20222 old_archive_from_new_cmds_RC \
20223 predep_objects_RC \
20224 postdep_objects_RC \
20227 compiler_lib_search_path_RC \
20229 archive_expsym_cmds_RC \
20230 postinstall_cmds_RC \
20231 postuninstall_cmds_RC \
20232 old_archive_from_expsyms_cmds_RC \
20233 allow_undefined_flag_RC \
20234 no_undefined_flag_RC \
20235 export_symbols_cmds_RC \
20236 hardcode_libdir_flag_spec_RC \
20237 hardcode_libdir_flag_spec_ld_RC \
20238 hardcode_libdir_separator_RC \
20239 hardcode_automatic_RC \
20241 module_expsym_cmds_RC \
20242 lt_cv_prog_compiler_c_o_RC \
20243 fix_srcfile_path_RC \
20244 exclude_expsyms_RC \
20245 include_expsyms_RC
; do
20248 old_archive_cmds_RC
| \
20249 old_archive_from_new_cmds_RC
| \
20250 archive_cmds_RC
| \
20251 archive_expsym_cmds_RC
| \
20253 module_expsym_cmds_RC
| \
20254 old_archive_from_expsyms_cmds_RC
| \
20255 export_symbols_cmds_RC
| \
20256 extract_expsyms_cmds
| reload_cmds
| finish_cmds
| \
20257 postinstall_cmds
| postuninstall_cmds
| \
20258 old_postinstall_cmds
| old_postuninstall_cmds
| \
20259 sys_lib_search_path_spec
| sys_lib_dlsearch_path_spec
)
20260 # Double-quote double-evaled strings.
20261 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20264 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20270 *'\$0 --fallback-echo"')
20271 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20277 cat <<__EOF__ >> "$cfgfile"
20278 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20280 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20282 # Shell to use when invoking shell scripts.
20285 # Whether or not to build shared libraries.
20286 build_libtool_libs=$enable_shared
20288 # Whether or not to build static libraries.
20289 build_old_libs=$enable_static
20291 # Whether or not to add -lc for building shared libraries.
20292 build_libtool_need_lc=$archive_cmds_need_lc_RC
20294 # Whether or not to disallow shared libs when runtime libs are static
20295 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
20297 # Whether or not to optimize for fast installation.
20298 fast_install=$enable_fast_install
20301 host_alias=$host_alias
20305 # The build system.
20306 build_alias=$build_alias
20310 # An echo program that does not interpret backslashes.
20315 AR_FLAGS=$lt_AR_FLAGS
20320 # LTCC compiler flags.
20321 LTCFLAGS=$lt_LTCFLAGS
20323 # A language-specific compiler.
20326 # Is the compiler the GNU C compiler?
20332 # The linker used to build libraries.
20335 # Whether we need hard or soft links.
20338 # A BSD-compatible nm program.
20341 # A symbol stripping program
20344 # Used to examine libraries when file_magic_cmd begins "file"
20345 MAGIC_CMD=$MAGIC_CMD
20347 # Used on cygwin: DLL creation program.
20350 # Used on cygwin: object dumper.
20353 # Used on cygwin: assembler.
20356 # The name of the directory that contains temporary libtool files.
20359 # How to create reloadable object files.
20360 reload_flag=$lt_reload_flag
20361 reload_cmds=$lt_reload_cmds
20363 # How to pass a linker flag through the compiler.
20364 wl=$lt_lt_prog_compiler_wl_RC
20366 # Object file suffix (normally "o").
20367 objext="$ac_objext"
20369 # Old archive suffix (normally "a").
20372 # Shared library suffix (normally ".so").
20373 shrext_cmds='$shrext_cmds'
20375 # Executable file suffix (normally "").
20378 # Additional compiler flags for building library objects.
20379 pic_flag=$lt_lt_prog_compiler_pic_RC
20382 # What is the maximum length of a command?
20383 max_cmd_len=$lt_cv_sys_max_cmd_len
20385 # Does compiler simultaneously support -c and -o options?
20386 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20388 # Must we lock files when doing compilation?
20389 need_locks=$lt_need_locks
20391 # Do we need the lib prefix for modules?
20392 need_lib_prefix=$need_lib_prefix
20394 # Do we need a version for libraries?
20395 need_version=$need_version
20397 # Whether dlopen is supported.
20398 dlopen_support=$enable_dlopen
20400 # Whether dlopen of programs is supported.
20401 dlopen_self=$enable_dlopen_self
20403 # Whether dlopen of statically linked programs is supported.
20404 dlopen_self_static=$enable_dlopen_self_static
20406 # Compiler flag to prevent dynamic linking.
20407 link_static_flag=$lt_lt_prog_compiler_static_RC
20409 # Compiler flag to turn off builtin functions.
20410 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20412 # Compiler flag to allow reflexive dlopens.
20413 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20415 # Compiler flag to generate shared objects directly from archives.
20416 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20418 # Compiler flag to generate thread-safe objects.
20419 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20421 # Library versioning type.
20422 version_type=$version_type
20424 # Format of library name prefix.
20425 libname_spec=$lt_libname_spec
20427 # List of archive names. First name is the real one, the rest are links.
20428 # The last name is the one that the linker finds with -lNAME.
20429 library_names_spec=$lt_library_names_spec
20431 # The coded name of the library, if different from the real name.
20432 soname_spec=$lt_soname_spec
20434 # Commands used to build and install an old-style archive.
20436 old_archive_cmds=$lt_old_archive_cmds_RC
20437 old_postinstall_cmds=$lt_old_postinstall_cmds
20438 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20440 # Create an old-style archive from a shared archive.
20441 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20443 # Create a temporary old-style archive to link instead of a shared archive.
20444 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20446 # Commands used to build and install a shared archive.
20447 archive_cmds=$lt_archive_cmds_RC
20448 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20449 postinstall_cmds=$lt_postinstall_cmds
20450 postuninstall_cmds=$lt_postuninstall_cmds
20452 # Commands used to build a loadable module (assumed same as above if empty)
20453 module_cmds=$lt_module_cmds_RC
20454 module_expsym_cmds=$lt_module_expsym_cmds_RC
20456 # Commands to strip libraries.
20457 old_striplib=$lt_old_striplib
20458 striplib=$lt_striplib
20460 # Dependencies to place before the objects being linked to create a
20462 predep_objects=$lt_predep_objects_RC
20464 # Dependencies to place after the objects being linked to create a
20466 postdep_objects=$lt_postdep_objects_RC
20468 # Dependencies to place before the objects being linked to create a
20470 predeps=$lt_predeps_RC
20472 # Dependencies to place after the objects being linked to create a
20474 postdeps=$lt_postdeps_RC
20476 # The library search path used internally by the compiler when linking
20477 # a shared library.
20478 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20480 # Method to check whether dependent libraries are shared objects.
20481 deplibs_check_method=$lt_deplibs_check_method
20483 # Command to use when deplibs_check_method == file_magic.
20484 file_magic_cmd=$lt_file_magic_cmd
20486 # Flag that allows shared libraries with undefined symbols to be built.
20487 allow_undefined_flag=$lt_allow_undefined_flag_RC
20489 # Flag that forces no undefined symbols.
20490 no_undefined_flag=$lt_no_undefined_flag_RC
20492 # Commands used to finish a libtool library installation in a directory.
20493 finish_cmds=$lt_finish_cmds
20495 # Same as above, but a single script fragment to be evaled but not shown.
20496 finish_eval=$lt_finish_eval
20498 # Take the output of nm and produce a listing of raw symbols and C names.
20499 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20501 # Transform the output of nm in a proper C declaration
20502 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20504 # Transform the output of nm in a C name address pair
20505 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20507 # This is the shared library runtime path variable.
20508 runpath_var=$runpath_var
20510 # This is the shared library path variable.
20511 shlibpath_var=$shlibpath_var
20513 # Is shlibpath searched before the hard-coded library search path?
20514 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20516 # How to hardcode a shared library path into an executable.
20517 hardcode_action=$hardcode_action_RC
20519 # Whether we should hardcode library paths into libraries.
20520 hardcode_into_libs=$hardcode_into_libs
20522 # Flag to hardcode \$libdir into a binary during linking.
20523 # This must work even if \$libdir does not exist.
20524 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20526 # If ld is used when linking, flag to hardcode \$libdir into
20527 # a binary during linking. This must work even if \$libdir does
20529 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20531 # Whether we need a single -rpath flag with a separated argument.
20532 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20534 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20535 # resulting binary.
20536 hardcode_direct=$hardcode_direct_RC
20538 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20539 # resulting binary.
20540 hardcode_minus_L=$hardcode_minus_L_RC
20542 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20543 # the resulting binary.
20544 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20546 # Set to yes if building a shared library automatically hardcodes DIR into the library
20547 # and all subsequent libraries and executables linked against it.
20548 hardcode_automatic=$hardcode_automatic_RC
20550 # Variables whose values should be saved in libtool wrapper scripts and
20551 # restored at relink time.
20552 variables_saved_for_relink="$variables_saved_for_relink"
20554 # Whether libtool must link a program against all its dependency libraries.
20555 link_all_deplibs=$link_all_deplibs_RC
20557 # Compile-time system search path for libraries
20558 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20560 # Run-time system search path for libraries
20561 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20563 # Fix the shell variable \$srcfile for the compiler.
20564 fix_srcfile_path=$lt_fix_srcfile_path
20566 # Set to yes if exported symbols are required.
20567 always_export_symbols=$always_export_symbols_RC
20569 # The commands to list exported symbols.
20570 export_symbols_cmds=$lt_export_symbols_cmds_RC
20572 # The commands to extract the exported symbol list from a shared archive.
20573 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20575 # Symbols that should not be listed in the preloaded symbols.
20576 exclude_expsyms=$lt_exclude_expsyms_RC
20578 # Symbols that must always be exported.
20579 include_expsyms=$lt_include_expsyms_RC
20581 # ### END LIBTOOL TAG CONFIG: $tagname
20587 # If there is no Makefile yet, we rely on a make rule to execute
20588 # `config.status --recheck' to rerun these tests and create the
20589 # libtool script then.
20590 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20591 if test -f "$ltmain_in"; then
20592 test -f Makefile
&& make "$ltmain"
20598 ac_cpp
='$CPP $CPPFLAGS'
20599 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20600 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20601 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
20608 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20609 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20610 { (exit 1); exit 1; }; }
20614 # Append the new tag name to the list of available tags.
20615 if test -n "$tagname" ; then
20616 available_tags
="$available_tags $tagname"
20622 # Now substitute the updated list of available tags.
20623 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20624 mv "${ofile}T" "$ofile"
20628 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20629 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20630 { (exit 1); exit 1; }; }
20636 # This can be used to rebuild libtool when needed
20637 LIBTOOL_DEPS
="$ac_aux_dir/ltmain.sh"
20639 # Always use our own libtool.
20640 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
20642 # Prevent multiple expansion
20664 LIBTOOL
="$LIBTOOL --silent"
20666 subdirs
="$subdirs libltdl"
20673 cat >>confdefs.h
<<_ACEOF
20678 cat >>confdefs.h
<<_ACEOF
20685 cat >>confdefs.h
<<_ACEOF
20690 cat >>confdefs.h
<<_ACEOF
20694 if test "${ac_cv_header_windows_h+set}" = set; then
20695 { echo "$as_me:$LINENO: checking for windows.h" >&5
20696 echo $ECHO_N "checking for windows.h... $ECHO_C" >&6; }
20697 if test "${ac_cv_header_windows_h+set}" = set; then
20698 echo $ECHO_N "(cached) $ECHO_C" >&6
20700 { echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
20701 echo "${ECHO_T}$ac_cv_header_windows_h" >&6; }
20703 # Is the header compilable?
20704 { echo "$as_me:$LINENO: checking windows.h usability" >&5
20705 echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6; }
20706 cat >conftest.
$ac_ext <<_ACEOF
20709 cat confdefs.h
>>conftest.
$ac_ext
20710 cat >>conftest.
$ac_ext <<_ACEOF
20711 /* end confdefs.h. */
20712 $ac_includes_default
20713 #include <windows.h>
20715 rm -f conftest.
$ac_objext
20716 if { (ac_try
="$ac_compile"
20717 case "(($ac_try" in
20718 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
20719 *) ac_try_echo=$ac_try;;
20721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20722 (eval "$ac_compile") 2>conftest.er1
20724 grep -v '^ *+' conftest.er1 >conftest.err
20726 cat conftest.err >&5
20727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20728 (exit $ac_status); } && {
20729 test -z "$ac_c_werror_flag" ||
20730 test ! -s conftest.err
20731 } && test -s conftest.$ac_objext; then
20732 ac_header_compiler=yes
20734 echo "$as_me: failed program was:" >&5
20735 sed 's/^/| /' conftest.$ac_ext >&5
20737 ac_header_compiler=no
20740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20741 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20742 echo "${ECHO_T}$ac_header_compiler" >&6; }
20744 # Is the header present?
20745 { echo "$as_me:$LINENO: checking windows.h presence" >&5
20746 echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6; }
20747 cat >conftest.$ac_ext <<_ACEOF
20750 cat confdefs.h >>conftest.$ac_ext
20751 cat >>conftest.$ac_ext <<_ACEOF
20752 /* end confdefs.h. */
20753 #include <windows.h>
20755 if { (ac_try="$ac_cpp conftest.$ac_ext"
20756 case "(($ac_try" in
20757 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
20758 *) ac_try_echo
=$ac_try;;
20760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20761 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20763 grep -v '^ *+' conftest.er1
>conftest.err
20765 cat conftest.err
>&5
20766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20767 (exit $ac_status); } >/dev
/null
&& {
20768 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20769 test ! -s conftest.err
20771 ac_header_preproc
=yes
20773 echo "$as_me: failed program was:" >&5
20774 sed 's/^/| /' conftest.
$ac_ext >&5
20776 ac_header_preproc
=no
20779 rm -f conftest.err conftest.
$ac_ext
20780 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20781 echo "${ECHO_T}$ac_header_preproc" >&6; }
20783 # So? What about this header?
20784 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20786 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
20787 echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20788 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
20789 echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
20790 ac_header_preproc
=yes
20793 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
20794 echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
20795 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
20796 echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
20797 { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
20798 echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
20799 { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5
20800 echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;}
20801 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
20802 echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
20803 { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
20804 echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
20808 { echo "$as_me:$LINENO: checking for windows.h" >&5
20809 echo $ECHO_N "checking for windows.h... $ECHO_C" >&6; }
20810 if test "${ac_cv_header_windows_h+set}" = set; then
20811 echo $ECHO_N "(cached) $ECHO_C" >&6
20813 ac_cv_header_windows_h
=$ac_header_preproc
20815 { echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
20816 echo "${ECHO_T}$ac_cv_header_windows_h" >&6; }
20819 if test $ac_cv_header_windows_h = yes; then
20822 { { echo "$as_me:$LINENO: error: ** MinGW and no windows.h. I give up." >&5
20823 echo "$as_me: error: ** MinGW and no windows.h. I give up." >&2;}
20824 { (exit 1); exit 1; }; }
20828 if test "${ac_cv_header_winsock2_h+set}" = set; then
20829 { echo "$as_me:$LINENO: checking for winsock2.h" >&5
20830 echo $ECHO_N "checking for winsock2.h... $ECHO_C" >&6; }
20831 if test "${ac_cv_header_winsock2_h+set}" = set; then
20832 echo $ECHO_N "(cached) $ECHO_C" >&6
20834 { echo "$as_me:$LINENO: result: $ac_cv_header_winsock2_h" >&5
20835 echo "${ECHO_T}$ac_cv_header_winsock2_h" >&6; }
20837 # Is the header compilable?
20838 { echo "$as_me:$LINENO: checking winsock2.h usability" >&5
20839 echo $ECHO_N "checking winsock2.h usability... $ECHO_C" >&6; }
20840 cat >conftest.
$ac_ext <<_ACEOF
20843 cat confdefs.h
>>conftest.
$ac_ext
20844 cat >>conftest.
$ac_ext <<_ACEOF
20845 /* end confdefs.h. */
20846 $ac_includes_default
20847 #include <winsock2.h>
20849 rm -f conftest.
$ac_objext
20850 if { (ac_try
="$ac_compile"
20851 case "(($ac_try" in
20852 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
20853 *) ac_try_echo=$ac_try;;
20855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20856 (eval "$ac_compile") 2>conftest.er1
20858 grep -v '^ *+' conftest.er1 >conftest.err
20860 cat conftest.err >&5
20861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20862 (exit $ac_status); } && {
20863 test -z "$ac_c_werror_flag" ||
20864 test ! -s conftest.err
20865 } && test -s conftest.$ac_objext; then
20866 ac_header_compiler=yes
20868 echo "$as_me: failed program was:" >&5
20869 sed 's/^/| /' conftest.$ac_ext >&5
20871 ac_header_compiler=no
20874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20875 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20876 echo "${ECHO_T}$ac_header_compiler" >&6; }
20878 # Is the header present?
20879 { echo "$as_me:$LINENO: checking winsock2.h presence" >&5
20880 echo $ECHO_N "checking winsock2.h presence... $ECHO_C" >&6; }
20881 cat >conftest.$ac_ext <<_ACEOF
20884 cat confdefs.h >>conftest.$ac_ext
20885 cat >>conftest.$ac_ext <<_ACEOF
20886 /* end confdefs.h. */
20887 #include <winsock2.h>
20889 if { (ac_try="$ac_cpp conftest.$ac_ext"
20890 case "(($ac_try" in
20891 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
20892 *) ac_try_echo
=$ac_try;;
20894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20895 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20897 grep -v '^ *+' conftest.er1
>conftest.err
20899 cat conftest.err
>&5
20900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20901 (exit $ac_status); } >/dev
/null
&& {
20902 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20903 test ! -s conftest.err
20905 ac_header_preproc
=yes
20907 echo "$as_me: failed program was:" >&5
20908 sed 's/^/| /' conftest.
$ac_ext >&5
20910 ac_header_preproc
=no
20913 rm -f conftest.err conftest.
$ac_ext
20914 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20915 echo "${ECHO_T}$ac_header_preproc" >&6; }
20917 # So? What about this header?
20918 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20920 { echo "$as_me:$LINENO: WARNING: winsock2.h: accepted by the compiler, rejected by the preprocessor!" >&5
20921 echo "$as_me: WARNING: winsock2.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20922 { echo "$as_me:$LINENO: WARNING: winsock2.h: proceeding with the compiler's result" >&5
20923 echo "$as_me: WARNING: winsock2.h: proceeding with the compiler's result" >&2;}
20924 ac_header_preproc
=yes
20927 { echo "$as_me:$LINENO: WARNING: winsock2.h: present but cannot be compiled" >&5
20928 echo "$as_me: WARNING: winsock2.h: present but cannot be compiled" >&2;}
20929 { echo "$as_me:$LINENO: WARNING: winsock2.h: check for missing prerequisite headers?" >&5
20930 echo "$as_me: WARNING: winsock2.h: check for missing prerequisite headers?" >&2;}
20931 { echo "$as_me:$LINENO: WARNING: winsock2.h: see the Autoconf documentation" >&5
20932 echo "$as_me: WARNING: winsock2.h: see the Autoconf documentation" >&2;}
20933 { echo "$as_me:$LINENO: WARNING: winsock2.h: section \"Present But Cannot Be Compiled\"" >&5
20934 echo "$as_me: WARNING: winsock2.h: section \"Present But Cannot Be Compiled\"" >&2;}
20935 { echo "$as_me:$LINENO: WARNING: winsock2.h: proceeding with the preprocessor's result" >&5
20936 echo "$as_me: WARNING: winsock2.h: proceeding with the preprocessor's result" >&2;}
20937 { echo "$as_me:$LINENO: WARNING: winsock2.h: in the future, the compiler will take precedence" >&5
20938 echo "$as_me: WARNING: winsock2.h: in the future, the compiler will take precedence" >&2;}
20942 { echo "$as_me:$LINENO: checking for winsock2.h" >&5
20943 echo $ECHO_N "checking for winsock2.h... $ECHO_C" >&6; }
20944 if test "${ac_cv_header_winsock2_h+set}" = set; then
20945 echo $ECHO_N "(cached) $ECHO_C" >&6
20947 ac_cv_header_winsock2_h
=$ac_header_preproc
20949 { echo "$as_me:$LINENO: result: $ac_cv_header_winsock2_h" >&5
20950 echo "${ECHO_T}$ac_cv_header_winsock2_h" >&6; }
20953 if test $ac_cv_header_winsock2_h = yes; then
20956 { { echo "$as_me:$LINENO: error: ** MinGW and no winsock2.h. I give up." >&5
20957 echo "$as_me: error: ** MinGW and no winsock2.h. I give up." >&2;}
20958 { (exit 1); exit 1; }; }
20962 LIBS
="$LIBS -lws2_32 -liphlpapi"
20966 CPPFLAGS
="$CFLAGS -D_ALL_SOURCE -D_XOPEN_SOURCE=500"
20969 CPPFLAGS
="$CFLAGS -D_POSIX_PTHREAD_SEMANTICS"
20975 if test "$is_mingw" = "yes"; then
20985 # backwards support for IRC_CFLAGS
20986 CFLAGS
="$IRC_CFLAGS $CFLAGS -O0 -Wall"
20988 if test "$libexecdir" = '${exec_prefix}/libexec' &&
20989 test "$localstatedir" = '${prefix}/var'; then
20990 libexecdir
='${bindir}'
20991 localstatedir
='${prefix}'
20995 { echo "$as_me:$LINENO: checking for int8_t" >&5
20996 echo $ECHO_N "checking for int8_t... $ECHO_C" >&6; }
20997 if test "${ac_cv_c_int8_t+set}" = set; then
20998 echo $ECHO_N "(cached) $ECHO_C" >&6
21001 for ac_type
in 'int8_t' 'int' 'long int' \
21002 'long long int' 'short int' 'signed char'; do
21003 cat >conftest.
$ac_ext <<_ACEOF
21006 cat confdefs.h
>>conftest.
$ac_ext
21007 cat >>conftest.
$ac_ext <<_ACEOF
21008 /* end confdefs.h. */
21009 $ac_includes_default
21013 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 1))];
21020 rm -f conftest.
$ac_objext
21021 if { (ac_try
="$ac_compile"
21022 case "(($ac_try" in
21023 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
21024 *) ac_try_echo=$ac_try;;
21026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21027 (eval "$ac_compile") 2>conftest.er1
21029 grep -v '^ *+' conftest.er1 >conftest.err
21031 cat conftest.err >&5
21032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21033 (exit $ac_status); } && {
21034 test -z "$ac_c_werror_flag" ||
21035 test ! -s conftest.err
21036 } && test -s conftest.$ac_objext; then
21037 cat >conftest.$ac_ext <<_ACEOF
21040 cat confdefs.h >>conftest.$ac_ext
21041 cat >>conftest.$ac_ext <<_ACEOF
21042 /* end confdefs.h. */
21043 $ac_includes_default
21047 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 1)
21048 < ($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 2))];
21055 rm -f conftest.$ac_objext
21056 if { (ac_try="$ac_compile"
21057 case "(($ac_try" in
21058 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
21059 *) ac_try_echo
=$ac_try;;
21061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21062 (eval "$ac_compile") 2>conftest.er1
21064 grep -v '^ *+' conftest.er1
>conftest.err
21066 cat conftest.err
>&5
21067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21068 (exit $ac_status); } && {
21069 test -z "$ac_c_werror_flag" ||
21070 test ! -s conftest.err
21071 } && test -s conftest.
$ac_objext; then
21074 echo "$as_me: failed program was:" >&5
21075 sed 's/^/| /' conftest.
$ac_ext >&5
21078 int8_t
) ac_cv_c_int8_t
=yes ;;
21079 *) ac_cv_c_int8_t
=$ac_type ;;
21084 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21086 echo "$as_me: failed program was:" >&5
21087 sed 's/^/| /' conftest.
$ac_ext >&5
21092 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21093 test "$ac_cv_c_int8_t" != no
&& break
21096 { echo "$as_me:$LINENO: result: $ac_cv_c_int8_t" >&5
21097 echo "${ECHO_T}$ac_cv_c_int8_t" >&6; }
21098 case $ac_cv_c_int8_t in #(
21102 cat >>confdefs.h
<<_ACEOF
21103 #define int8_t $ac_cv_c_int8_t
21109 { echo "$as_me:$LINENO: checking for int16_t" >&5
21110 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
21111 if test "${ac_cv_c_int16_t+set}" = set; then
21112 echo $ECHO_N "(cached) $ECHO_C" >&6
21115 for ac_type
in 'int16_t' 'int' 'long int' \
21116 'long long int' 'short int' 'signed char'; do
21117 cat >conftest.
$ac_ext <<_ACEOF
21120 cat confdefs.h
>>conftest.
$ac_ext
21121 cat >>conftest.
$ac_ext <<_ACEOF
21122 /* end confdefs.h. */
21123 $ac_includes_default
21127 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1))];
21134 rm -f conftest.
$ac_objext
21135 if { (ac_try
="$ac_compile"
21136 case "(($ac_try" in
21137 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
21138 *) ac_try_echo=$ac_try;;
21140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21141 (eval "$ac_compile") 2>conftest.er1
21143 grep -v '^ *+' conftest.er1 >conftest.err
21145 cat conftest.err >&5
21146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21147 (exit $ac_status); } && {
21148 test -z "$ac_c_werror_flag" ||
21149 test ! -s conftest.err
21150 } && test -s conftest.$ac_objext; then
21151 cat >conftest.$ac_ext <<_ACEOF
21154 cat confdefs.h >>conftest.$ac_ext
21155 cat >>conftest.$ac_ext <<_ACEOF
21156 /* end confdefs.h. */
21157 $ac_includes_default
21161 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1)
21162 < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 2))];
21169 rm -f conftest.$ac_objext
21170 if { (ac_try="$ac_compile"
21171 case "(($ac_try" in
21172 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
21173 *) ac_try_echo
=$ac_try;;
21175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21176 (eval "$ac_compile") 2>conftest.er1
21178 grep -v '^ *+' conftest.er1
>conftest.err
21180 cat conftest.err
>&5
21181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21182 (exit $ac_status); } && {
21183 test -z "$ac_c_werror_flag" ||
21184 test ! -s conftest.err
21185 } && test -s conftest.
$ac_objext; then
21188 echo "$as_me: failed program was:" >&5
21189 sed 's/^/| /' conftest.
$ac_ext >&5
21192 int16_t
) ac_cv_c_int16_t
=yes ;;
21193 *) ac_cv_c_int16_t
=$ac_type ;;
21198 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21200 echo "$as_me: failed program was:" >&5
21201 sed 's/^/| /' conftest.
$ac_ext >&5
21206 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21207 test "$ac_cv_c_int16_t" != no
&& break
21210 { echo "$as_me:$LINENO: result: $ac_cv_c_int16_t" >&5
21211 echo "${ECHO_T}$ac_cv_c_int16_t" >&6; }
21212 case $ac_cv_c_int16_t in #(
21216 cat >>confdefs.h
<<_ACEOF
21217 #define int16_t $ac_cv_c_int16_t
21223 { echo "$as_me:$LINENO: checking for int32_t" >&5
21224 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
21225 if test "${ac_cv_c_int32_t+set}" = set; then
21226 echo $ECHO_N "(cached) $ECHO_C" >&6
21229 for ac_type
in 'int32_t' 'int' 'long int' \
21230 'long long int' 'short int' 'signed char'; do
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
21241 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1))];
21248 rm -f conftest.
$ac_objext
21249 if { (ac_try
="$ac_compile"
21250 case "(($ac_try" in
21251 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
21252 *) ac_try_echo=$ac_try;;
21254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21255 (eval "$ac_compile") 2>conftest.er1
21257 grep -v '^ *+' conftest.er1 >conftest.err
21259 cat conftest.err >&5
21260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21261 (exit $ac_status); } && {
21262 test -z "$ac_c_werror_flag" ||
21263 test ! -s conftest.err
21264 } && test -s conftest.$ac_objext; then
21265 cat >conftest.$ac_ext <<_ACEOF
21268 cat confdefs.h >>conftest.$ac_ext
21269 cat >>conftest.$ac_ext <<_ACEOF
21270 /* end confdefs.h. */
21271 $ac_includes_default
21275 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1)
21276 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 2))];
21283 rm -f conftest.$ac_objext
21284 if { (ac_try="$ac_compile"
21285 case "(($ac_try" in
21286 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
21287 *) ac_try_echo
=$ac_try;;
21289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21290 (eval "$ac_compile") 2>conftest.er1
21292 grep -v '^ *+' conftest.er1
>conftest.err
21294 cat conftest.err
>&5
21295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21296 (exit $ac_status); } && {
21297 test -z "$ac_c_werror_flag" ||
21298 test ! -s conftest.err
21299 } && test -s conftest.
$ac_objext; then
21302 echo "$as_me: failed program was:" >&5
21303 sed 's/^/| /' conftest.
$ac_ext >&5
21306 int32_t
) ac_cv_c_int32_t
=yes ;;
21307 *) ac_cv_c_int32_t
=$ac_type ;;
21312 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21314 echo "$as_me: failed program was:" >&5
21315 sed 's/^/| /' conftest.
$ac_ext >&5
21320 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21321 test "$ac_cv_c_int32_t" != no
&& break
21324 { echo "$as_me:$LINENO: result: $ac_cv_c_int32_t" >&5
21325 echo "${ECHO_T}$ac_cv_c_int32_t" >&6; }
21326 case $ac_cv_c_int32_t in #(
21330 cat >>confdefs.h
<<_ACEOF
21331 #define int32_t $ac_cv_c_int32_t
21337 { echo "$as_me:$LINENO: checking for int64_t" >&5
21338 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
21339 if test "${ac_cv_c_int64_t+set}" = set; then
21340 echo $ECHO_N "(cached) $ECHO_C" >&6
21343 for ac_type
in 'int64_t' 'int' 'long int' \
21344 'long long int' 'short int' 'signed char'; do
21345 cat >conftest.
$ac_ext <<_ACEOF
21348 cat confdefs.h
>>conftest.
$ac_ext
21349 cat >>conftest.
$ac_ext <<_ACEOF
21350 /* end confdefs.h. */
21351 $ac_includes_default
21355 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1))];
21362 rm -f conftest.
$ac_objext
21363 if { (ac_try
="$ac_compile"
21364 case "(($ac_try" in
21365 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
21366 *) ac_try_echo=$ac_try;;
21368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21369 (eval "$ac_compile") 2>conftest.er1
21371 grep -v '^ *+' conftest.er1 >conftest.err
21373 cat conftest.err >&5
21374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21375 (exit $ac_status); } && {
21376 test -z "$ac_c_werror_flag" ||
21377 test ! -s conftest.err
21378 } && test -s conftest.$ac_objext; then
21379 cat >conftest.$ac_ext <<_ACEOF
21382 cat confdefs.h >>conftest.$ac_ext
21383 cat >>conftest.$ac_ext <<_ACEOF
21384 /* end confdefs.h. */
21385 $ac_includes_default
21389 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1)
21390 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 2))];
21397 rm -f conftest.$ac_objext
21398 if { (ac_try="$ac_compile"
21399 case "(($ac_try" in
21400 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
21401 *) ac_try_echo
=$ac_try;;
21403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21404 (eval "$ac_compile") 2>conftest.er1
21406 grep -v '^ *+' conftest.er1
>conftest.err
21408 cat conftest.err
>&5
21409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21410 (exit $ac_status); } && {
21411 test -z "$ac_c_werror_flag" ||
21412 test ! -s conftest.err
21413 } && test -s conftest.
$ac_objext; then
21416 echo "$as_me: failed program was:" >&5
21417 sed 's/^/| /' conftest.
$ac_ext >&5
21420 int64_t
) ac_cv_c_int64_t
=yes ;;
21421 *) ac_cv_c_int64_t
=$ac_type ;;
21426 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21428 echo "$as_me: failed program was:" >&5
21429 sed 's/^/| /' conftest.
$ac_ext >&5
21434 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21435 test "$ac_cv_c_int64_t" != no
&& break
21438 { echo "$as_me:$LINENO: result: $ac_cv_c_int64_t" >&5
21439 echo "${ECHO_T}$ac_cv_c_int64_t" >&6; }
21440 case $ac_cv_c_int64_t in #(
21444 cat >>confdefs.h
<<_ACEOF
21445 #define int64_t $ac_cv_c_int64_t
21451 { echo "$as_me:$LINENO: checking for uint8_t" >&5
21452 echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6; }
21453 if test "${ac_cv_c_uint8_t+set}" = set; then
21454 echo $ECHO_N "(cached) $ECHO_C" >&6
21457 for ac_type
in 'uint8_t' 'unsigned int' 'unsigned long int' \
21458 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
21459 cat >conftest.
$ac_ext <<_ACEOF
21462 cat confdefs.h
>>conftest.
$ac_ext
21463 cat >>conftest.
$ac_ext <<_ACEOF
21464 /* end confdefs.h. */
21465 $ac_includes_default
21469 static int test_array [1 - 2 * !(($ac_type) -1 >> (8 - 1) == 1)];
21476 rm -f conftest.
$ac_objext
21477 if { (ac_try
="$ac_compile"
21478 case "(($ac_try" in
21479 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
21480 *) ac_try_echo=$ac_try;;
21482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21483 (eval "$ac_compile") 2>conftest.er1
21485 grep -v '^ *+' conftest.er1 >conftest.err
21487 cat conftest.err >&5
21488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21489 (exit $ac_status); } && {
21490 test -z "$ac_c_werror_flag" ||
21491 test ! -s conftest.err
21492 } && test -s conftest.$ac_objext; then
21494 uint8_t) ac_cv_c_uint8_t=yes ;;
21495 *) ac_cv_c_uint8_t=$ac_type ;;
21499 echo "$as_me: failed program was:" >&5
21500 sed 's/^/| /' conftest.$ac_ext >&5
21505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21506 test "$ac_cv_c_uint8_t" != no && break
21509 { echo "$as_me:$LINENO: result: $ac_cv_c_uint8_t" >&5
21510 echo "${ECHO_T}$ac_cv_c_uint8_t" >&6; }
21511 case $ac_cv_c_uint8_t in #(
21515 cat >>confdefs.h <<\_ACEOF
21520 cat >>confdefs.h <<_ACEOF
21521 #define uint8_t $ac_cv_c_uint8_t
21527 { echo "$as_me:$LINENO: checking for uint16_t" >&5
21528 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
21529 if test "${ac_cv_c_uint16_t+set}" = set; then
21530 echo $ECHO_N "(cached) $ECHO_C" >&6
21532 ac_cv_c_uint16_t=no
21533 for ac_type in 'uint16_t' 'unsigned int' 'unsigned long int' \
21534 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
21535 cat >conftest.$ac_ext <<_ACEOF
21538 cat confdefs.h >>conftest.$ac_ext
21539 cat >>conftest.$ac_ext <<_ACEOF
21540 /* end confdefs.h. */
21541 $ac_includes_default
21545 static int test_array [1 - 2 * !(($ac_type) -1 >> (16 - 1) == 1)];
21552 rm -f conftest.$ac_objext
21553 if { (ac_try="$ac_compile"
21554 case "(($ac_try" in
21555 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
21556 *) ac_try_echo
=$ac_try;;
21558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21559 (eval "$ac_compile") 2>conftest.er1
21561 grep -v '^ *+' conftest.er1
>conftest.err
21563 cat conftest.err
>&5
21564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21565 (exit $ac_status); } && {
21566 test -z "$ac_c_werror_flag" ||
21567 test ! -s conftest.err
21568 } && test -s conftest.
$ac_objext; then
21570 uint16_t
) ac_cv_c_uint16_t
=yes ;;
21571 *) ac_cv_c_uint16_t
=$ac_type ;;
21575 echo "$as_me: failed program was:" >&5
21576 sed 's/^/| /' conftest.
$ac_ext >&5
21581 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21582 test "$ac_cv_c_uint16_t" != no
&& break
21585 { echo "$as_me:$LINENO: result: $ac_cv_c_uint16_t" >&5
21586 echo "${ECHO_T}$ac_cv_c_uint16_t" >&6; }
21587 case $ac_cv_c_uint16_t in #(
21592 cat >>confdefs.h
<<_ACEOF
21593 #define uint16_t $ac_cv_c_uint16_t
21599 { echo "$as_me:$LINENO: checking for uint32_t" >&5
21600 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
21601 if test "${ac_cv_c_uint32_t+set}" = set; then
21602 echo $ECHO_N "(cached) $ECHO_C" >&6
21604 ac_cv_c_uint32_t
=no
21605 for ac_type
in 'uint32_t' 'unsigned int' 'unsigned long int' \
21606 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
21607 cat >conftest.
$ac_ext <<_ACEOF
21610 cat confdefs.h
>>conftest.
$ac_ext
21611 cat >>conftest.
$ac_ext <<_ACEOF
21612 /* end confdefs.h. */
21613 $ac_includes_default
21617 static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)];
21624 rm -f conftest.
$ac_objext
21625 if { (ac_try
="$ac_compile"
21626 case "(($ac_try" in
21627 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
21628 *) ac_try_echo=$ac_try;;
21630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21631 (eval "$ac_compile") 2>conftest.er1
21633 grep -v '^ *+' conftest.er1 >conftest.err
21635 cat conftest.err >&5
21636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21637 (exit $ac_status); } && {
21638 test -z "$ac_c_werror_flag" ||
21639 test ! -s conftest.err
21640 } && test -s conftest.$ac_objext; then
21642 uint32_t) ac_cv_c_uint32_t=yes ;;
21643 *) ac_cv_c_uint32_t=$ac_type ;;
21647 echo "$as_me: failed program was:" >&5
21648 sed 's/^/| /' conftest.$ac_ext >&5
21653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21654 test "$ac_cv_c_uint32_t" != no && break
21657 { echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5
21658 echo "${ECHO_T}$ac_cv_c_uint32_t" >&6; }
21659 case $ac_cv_c_uint32_t in #(
21663 cat >>confdefs.h <<\_ACEOF
21664 #define _UINT32_T 1
21668 cat >>confdefs.h <<_ACEOF
21669 #define uint32_t $ac_cv_c_uint32_t
21675 { echo "$as_me:$LINENO: checking for uint64_t" >&5
21676 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
21677 if test "${ac_cv_c_uint64_t+set}" = set; then
21678 echo $ECHO_N "(cached) $ECHO_C" >&6
21680 ac_cv_c_uint64_t=no
21681 for ac_type in 'uint64_t' 'unsigned int' 'unsigned long int' \
21682 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
21683 cat >conftest.$ac_ext <<_ACEOF
21686 cat confdefs.h >>conftest.$ac_ext
21687 cat >>conftest.$ac_ext <<_ACEOF
21688 /* end confdefs.h. */
21689 $ac_includes_default
21693 static int test_array [1 - 2 * !(($ac_type) -1 >> (64 - 1) == 1)];
21700 rm -f conftest.$ac_objext
21701 if { (ac_try="$ac_compile"
21702 case "(($ac_try" in
21703 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
21704 *) ac_try_echo
=$ac_try;;
21706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21707 (eval "$ac_compile") 2>conftest.er1
21709 grep -v '^ *+' conftest.er1
>conftest.err
21711 cat conftest.err
>&5
21712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21713 (exit $ac_status); } && {
21714 test -z "$ac_c_werror_flag" ||
21715 test ! -s conftest.err
21716 } && test -s conftest.
$ac_objext; then
21718 uint64_t
) ac_cv_c_uint64_t
=yes ;;
21719 *) ac_cv_c_uint64_t
=$ac_type ;;
21723 echo "$as_me: failed program was:" >&5
21724 sed 's/^/| /' conftest.
$ac_ext >&5
21729 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21730 test "$ac_cv_c_uint64_t" != no
&& break
21733 { echo "$as_me:$LINENO: result: $ac_cv_c_uint64_t" >&5
21734 echo "${ECHO_T}$ac_cv_c_uint64_t" >&6; }
21735 case $ac_cv_c_uint64_t in #(
21739 cat >>confdefs.h
<<\_ACEOF
21740 #define _UINT64_T 1
21744 cat >>confdefs.h
<<_ACEOF
21745 #define uint64_t $ac_cv_c_uint64_t
21752 { echo "$as_me:$LINENO: checking for intptr_t" >&5
21753 echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6; }
21754 if test "${ac_cv_type_intptr_t+set}" = set; then
21755 echo $ECHO_N "(cached) $ECHO_C" >&6
21757 cat >conftest.
$ac_ext <<_ACEOF
21760 cat confdefs.h
>>conftest.
$ac_ext
21761 cat >>conftest.
$ac_ext <<_ACEOF
21762 /* end confdefs.h. */
21763 $ac_includes_default
21764 typedef intptr_t ac__type_new_;
21768 if ((ac__type_new_ *) 0)
21770 if (sizeof (ac__type_new_))
21776 rm -f conftest.
$ac_objext
21777 if { (ac_try
="$ac_compile"
21778 case "(($ac_try" in
21779 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
21780 *) ac_try_echo=$ac_try;;
21782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21783 (eval "$ac_compile") 2>conftest.er1
21785 grep -v '^ *+' conftest.er1 >conftest.err
21787 cat conftest.err >&5
21788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21789 (exit $ac_status); } && {
21790 test -z "$ac_c_werror_flag" ||
21791 test ! -s conftest.err
21792 } && test -s conftest.$ac_objext; then
21793 ac_cv_type_intptr_t=yes
21795 echo "$as_me: failed program was:" >&5
21796 sed 's/^/| /' conftest.$ac_ext >&5
21798 ac_cv_type_intptr_t=no
21801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21803 { echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
21804 echo "${ECHO_T}$ac_cv_type_intptr_t" >&6; }
21805 if test $ac_cv_type_intptr_t = yes; then
21807 cat >>confdefs.h <<\_ACEOF
21808 #define HAVE_INTPTR_T 1
21810 ac_cv_c_intptr_t=yes
21812 for ac_type in 'int' 'long int' 'long long int'; do
21813 cat >conftest.$ac_ext <<_ACEOF
21816 cat confdefs.h >>conftest.$ac_ext
21817 cat >>conftest.$ac_ext <<_ACEOF
21818 /* end confdefs.h. */
21819 $ac_includes_default
21823 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
21830 rm -f conftest.$ac_objext
21831 if { (ac_try="$ac_compile"
21832 case "(($ac_try" in
21833 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
21834 *) ac_try_echo
=$ac_try;;
21836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21837 (eval "$ac_compile") 2>conftest.er1
21839 grep -v '^ *+' conftest.er1
>conftest.err
21841 cat conftest.err
>&5
21842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21843 (exit $ac_status); } && {
21844 test -z "$ac_c_werror_flag" ||
21845 test ! -s conftest.err
21846 } && test -s conftest.
$ac_objext; then
21848 cat >>confdefs.h
<<_ACEOF
21849 #define intptr_t $ac_type
21851 ac_cv_c_intptr_t
="$ac_type"
21854 echo "$as_me: failed program was:" >&5
21855 sed 's/^/| /' conftest.
$ac_ext >&5
21860 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21861 test -z "$ac_type" && break
21867 { echo "$as_me:$LINENO: checking for long long int" >&5
21868 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
21869 if test "${ac_cv_type_long_long_int+set}" = set; then
21870 echo $ECHO_N "(cached) $ECHO_C" >&6
21872 cat >conftest.
$ac_ext <<_ACEOF
21875 cat confdefs.h
>>conftest.
$ac_ext
21876 cat >>conftest.
$ac_ext <<_ACEOF
21877 /* end confdefs.h. */
21878 long long int ll = 9223372036854775807ll;
21879 long long int nll = -9223372036854775807LL;
21880 typedef int a[((-9223372036854775807LL < 0
21881 && 0 < 9223372036854775807ll)
21887 long long int llmax = 9223372036854775807ll;
21888 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
21889 | (llmax / ll) | (llmax % ll));
21894 rm -f conftest.
$ac_objext conftest
$ac_exeext
21895 if { (ac_try
="$ac_link"
21896 case "(($ac_try" in
21897 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
21898 *) ac_try_echo=$ac_try;;
21900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21901 (eval "$ac_link") 2>conftest.er1
21903 grep -v '^ *+' conftest.er1 >conftest.err
21905 cat conftest.err >&5
21906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21907 (exit $ac_status); } && {
21908 test -z "$ac_c_werror_flag" ||
21909 test ! -s conftest.err
21910 } && test -s conftest$ac_exeext &&
21911 $as_test_x conftest$ac_exeext; then
21912 ac_cv_type_long_long_int=yes
21914 echo "$as_me: failed program was:" >&5
21915 sed 's/^/| /' conftest.$ac_ext >&5
21917 ac_cv_type_long_long_int=no
21920 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21921 conftest$ac_exeext conftest.$ac_ext
21923 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
21924 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
21925 if test $ac_cv_type_long_long_int = yes; then
21927 cat >>confdefs.h <<\_ACEOF
21928 #define HAVE_LONG_LONG_INT 1
21935 { echo "$as_me:$LINENO: checking for intmax_t" >&5
21936 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
21937 if test "${ac_cv_type_intmax_t+set}" = set; then
21938 echo $ECHO_N "(cached) $ECHO_C" >&6
21940 cat >conftest.$ac_ext <<_ACEOF
21943 cat confdefs.h >>conftest.$ac_ext
21944 cat >>conftest.$ac_ext <<_ACEOF
21945 /* end confdefs.h. */
21946 $ac_includes_default
21947 typedef intmax_t ac__type_new_;
21951 if ((ac__type_new_ *) 0)
21953 if (sizeof (ac__type_new_))
21959 rm -f conftest.$ac_objext
21960 if { (ac_try="$ac_compile"
21961 case "(($ac_try" in
21962 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
21963 *) ac_try_echo
=$ac_try;;
21965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21966 (eval "$ac_compile") 2>conftest.er1
21968 grep -v '^ *+' conftest.er1
>conftest.err
21970 cat conftest.err
>&5
21971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21972 (exit $ac_status); } && {
21973 test -z "$ac_c_werror_flag" ||
21974 test ! -s conftest.err
21975 } && test -s conftest.
$ac_objext; then
21976 ac_cv_type_intmax_t
=yes
21978 echo "$as_me: failed program was:" >&5
21979 sed 's/^/| /' conftest.
$ac_ext >&5
21981 ac_cv_type_intmax_t
=no
21984 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21986 { echo "$as_me:$LINENO: result: $ac_cv_type_intmax_t" >&5
21987 echo "${ECHO_T}$ac_cv_type_intmax_t" >&6; }
21988 if test $ac_cv_type_intmax_t = yes; then
21990 cat >>confdefs.h
<<\_ACEOF
21991 #define HAVE_INTMAX_T 1
21993 ac_cv_c_intmax_t
=yes
21995 test $ac_cv_type_long_long_int = yes \
21996 && ac_type
='long long int' \
21997 || ac_type
='long int'
21999 cat >>confdefs.h
<<_ACEOF
22000 #define intmax_t $ac_type
22002 ac_cv_c_intmax_t
="$ac_type"
22007 { echo "$as_me:$LINENO: checking for unsigned long long int" >&5
22008 echo $ECHO_N "checking for unsigned long long int... $ECHO_C" >&6; }
22009 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then
22010 echo $ECHO_N "(cached) $ECHO_C" >&6
22012 cat >conftest.
$ac_ext <<_ACEOF
22015 cat confdefs.h
>>conftest.
$ac_ext
22016 cat >>conftest.
$ac_ext <<_ACEOF
22017 /* end confdefs.h. */
22018 unsigned long long int ull = 18446744073709551615ULL;
22019 typedef int a[(18446744073709551615ULL <= (unsigned long long int) -1
22025 unsigned long long int ullmax = 18446744073709551615ull;
22026 return (ull << 63 | ull >> 63 | ull << i | ull >> i
22027 | ullmax / ull | ullmax % ull);
22032 rm -f conftest.
$ac_objext conftest
$ac_exeext
22033 if { (ac_try
="$ac_link"
22034 case "(($ac_try" in
22035 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
22036 *) ac_try_echo=$ac_try;;
22038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22039 (eval "$ac_link") 2>conftest.er1
22041 grep -v '^ *+' conftest.er1 >conftest.err
22043 cat conftest.err >&5
22044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22045 (exit $ac_status); } && {
22046 test -z "$ac_c_werror_flag" ||
22047 test ! -s conftest.err
22048 } && test -s conftest$ac_exeext &&
22049 $as_test_x conftest$ac_exeext; then
22050 ac_cv_type_unsigned_long_long_int=yes
22052 echo "$as_me: failed program was:" >&5
22053 sed 's/^/| /' conftest.$ac_ext >&5
22055 ac_cv_type_unsigned_long_long_int=no
22058 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22059 conftest$ac_exeext conftest.$ac_ext
22061 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long_int" >&5
22062 echo "${ECHO_T}$ac_cv_type_unsigned_long_long_int" >&6; }
22063 if test $ac_cv_type_unsigned_long_long_int = yes; then
22065 cat >>confdefs.h <<\_ACEOF
22066 #define HAVE_UNSIGNED_LONG_LONG_INT 1
22073 { echo "$as_me:$LINENO: checking for uintmax_t" >&5
22074 echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6; }
22075 if test "${ac_cv_type_uintmax_t+set}" = set; then
22076 echo $ECHO_N "(cached) $ECHO_C" >&6
22078 cat >conftest.$ac_ext <<_ACEOF
22081 cat confdefs.h >>conftest.$ac_ext
22082 cat >>conftest.$ac_ext <<_ACEOF
22083 /* end confdefs.h. */
22084 $ac_includes_default
22085 typedef uintmax_t ac__type_new_;
22089 if ((ac__type_new_ *) 0)
22091 if (sizeof (ac__type_new_))
22097 rm -f conftest.$ac_objext
22098 if { (ac_try="$ac_compile"
22099 case "(($ac_try" in
22100 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
22101 *) ac_try_echo
=$ac_try;;
22103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22104 (eval "$ac_compile") 2>conftest.er1
22106 grep -v '^ *+' conftest.er1
>conftest.err
22108 cat conftest.err
>&5
22109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22110 (exit $ac_status); } && {
22111 test -z "$ac_c_werror_flag" ||
22112 test ! -s conftest.err
22113 } && test -s conftest.
$ac_objext; then
22114 ac_cv_type_uintmax_t
=yes
22116 echo "$as_me: failed program was:" >&5
22117 sed 's/^/| /' conftest.
$ac_ext >&5
22119 ac_cv_type_uintmax_t
=no
22122 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22124 { echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
22125 echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6; }
22126 if test $ac_cv_type_uintmax_t = yes; then
22128 cat >>confdefs.h
<<\_ACEOF
22129 #define HAVE_UINTMAX_T 1
22131 ac_cv_c_uintmax_t
=yes
22133 test $ac_cv_type_unsigned_long_long_int = yes \
22134 && ac_type
='unsigned long long int' \
22135 || ac_type
='unsigned long int'
22137 cat >>confdefs.h
<<_ACEOF
22138 #define uintmax_t $ac_type
22140 ac_cv_c_uintmax_t
="$ac_type"
22145 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
22146 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
22147 if test "${ac_cv_type_uintptr_t+set}" = set; then
22148 echo $ECHO_N "(cached) $ECHO_C" >&6
22150 cat >conftest.
$ac_ext <<_ACEOF
22153 cat confdefs.h
>>conftest.
$ac_ext
22154 cat >>conftest.
$ac_ext <<_ACEOF
22155 /* end confdefs.h. */
22156 $ac_includes_default
22157 typedef uintptr_t ac__type_new_;
22161 if ((ac__type_new_ *) 0)
22163 if (sizeof (ac__type_new_))
22169 rm -f conftest.
$ac_objext
22170 if { (ac_try
="$ac_compile"
22171 case "(($ac_try" in
22172 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
22173 *) ac_try_echo=$ac_try;;
22175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22176 (eval "$ac_compile") 2>conftest.er1
22178 grep -v '^ *+' conftest.er1 >conftest.err
22180 cat conftest.err >&5
22181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22182 (exit $ac_status); } && {
22183 test -z "$ac_c_werror_flag" ||
22184 test ! -s conftest.err
22185 } && test -s conftest.$ac_objext; then
22186 ac_cv_type_uintptr_t=yes
22188 echo "$as_me: failed program was:" >&5
22189 sed 's/^/| /' conftest.$ac_ext >&5
22191 ac_cv_type_uintptr_t=no
22194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22196 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
22197 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
22198 if test $ac_cv_type_uintptr_t = yes; then
22200 cat >>confdefs.h <<\_ACEOF
22201 #define HAVE_UINTPTR_T 1
22203 ac_cv_c_uintptr_t=yes
22205 for ac_type in 'unsigned int' 'unsigned long int' \
22206 'unsigned long long int'; do
22207 cat >conftest.$ac_ext <<_ACEOF
22210 cat confdefs.h >>conftest.$ac_ext
22211 cat >>conftest.$ac_ext <<_ACEOF
22212 /* end confdefs.h. */
22213 $ac_includes_default
22217 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
22224 rm -f conftest.$ac_objext
22225 if { (ac_try="$ac_compile"
22226 case "(($ac_try" in
22227 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
22228 *) ac_try_echo
=$ac_try;;
22230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22231 (eval "$ac_compile") 2>conftest.er1
22233 grep -v '^ *+' conftest.er1
>conftest.err
22235 cat conftest.err
>&5
22236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22237 (exit $ac_status); } && {
22238 test -z "$ac_c_werror_flag" ||
22239 test ! -s conftest.err
22240 } && test -s conftest.
$ac_objext; then
22242 cat >>confdefs.h
<<_ACEOF
22243 #define uintptr_t $ac_type
22245 ac_cv_c_uintptr_t
="$ac_type"
22248 echo "$as_me: failed program was:" >&5
22249 sed 's/^/| /' conftest.
$ac_ext >&5
22254 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22255 test -z "$ac_type" && break
22261 { echo "$as_me:$LINENO: checking for pid_t" >&5
22262 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
22263 if test "${ac_cv_type_pid_t+set}" = set; then
22264 echo $ECHO_N "(cached) $ECHO_C" >&6
22266 cat >conftest.
$ac_ext <<_ACEOF
22269 cat confdefs.h
>>conftest.
$ac_ext
22270 cat >>conftest.
$ac_ext <<_ACEOF
22271 /* end confdefs.h. */
22272 $ac_includes_default
22273 typedef pid_t ac__type_new_;
22277 if ((ac__type_new_ *) 0)
22279 if (sizeof (ac__type_new_))
22285 rm -f conftest.
$ac_objext
22286 if { (ac_try
="$ac_compile"
22287 case "(($ac_try" in
22288 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
22289 *) ac_try_echo=$ac_try;;
22291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22292 (eval "$ac_compile") 2>conftest.er1
22294 grep -v '^ *+' conftest.er1 >conftest.err
22296 cat conftest.err >&5
22297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22298 (exit $ac_status); } && {
22299 test -z "$ac_c_werror_flag" ||
22300 test ! -s conftest.err
22301 } && test -s conftest.$ac_objext; then
22302 ac_cv_type_pid_t=yes
22304 echo "$as_me: failed program was:" >&5
22305 sed 's/^/| /' conftest.$ac_ext >&5
22307 ac_cv_type_pid_t=no
22310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22312 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22313 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
22314 if test $ac_cv_type_pid_t = yes; then
22318 cat >>confdefs.h <<_ACEOF
22324 { echo "$as_me:$LINENO: checking for size_t" >&5
22325 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
22326 if test "${ac_cv_type_size_t+set}" = set; then
22327 echo $ECHO_N "(cached) $ECHO_C" >&6
22329 cat >conftest.$ac_ext <<_ACEOF
22332 cat confdefs.h >>conftest.$ac_ext
22333 cat >>conftest.$ac_ext <<_ACEOF
22334 /* end confdefs.h. */
22335 $ac_includes_default
22336 typedef size_t ac__type_new_;
22340 if ((ac__type_new_ *) 0)
22342 if (sizeof (ac__type_new_))
22348 rm -f conftest.$ac_objext
22349 if { (ac_try="$ac_compile"
22350 case "(($ac_try" in
22351 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
22352 *) ac_try_echo
=$ac_try;;
22354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22355 (eval "$ac_compile") 2>conftest.er1
22357 grep -v '^ *+' conftest.er1
>conftest.err
22359 cat conftest.err
>&5
22360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22361 (exit $ac_status); } && {
22362 test -z "$ac_c_werror_flag" ||
22363 test ! -s conftest.err
22364 } && test -s conftest.
$ac_objext; then
22365 ac_cv_type_size_t
=yes
22367 echo "$as_me: failed program was:" >&5
22368 sed 's/^/| /' conftest.
$ac_ext >&5
22370 ac_cv_type_size_t
=no
22373 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22375 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22376 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
22377 if test $ac_cv_type_size_t = yes; then
22381 cat >>confdefs.h
<<_ACEOF
22382 #define size_t unsigned int
22387 { echo "$as_me:$LINENO: checking for ssize_t" >&5
22388 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
22389 if test "${ac_cv_type_ssize_t+set}" = set; then
22390 echo $ECHO_N "(cached) $ECHO_C" >&6
22392 cat >conftest.
$ac_ext <<_ACEOF
22395 cat confdefs.h
>>conftest.
$ac_ext
22396 cat >>conftest.
$ac_ext <<_ACEOF
22397 /* end confdefs.h. */
22398 $ac_includes_default
22399 typedef ssize_t ac__type_new_;
22403 if ((ac__type_new_ *) 0)
22405 if (sizeof (ac__type_new_))
22411 rm -f conftest.
$ac_objext
22412 if { (ac_try
="$ac_compile"
22413 case "(($ac_try" in
22414 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
22415 *) ac_try_echo=$ac_try;;
22417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22418 (eval "$ac_compile") 2>conftest.er1
22420 grep -v '^ *+' conftest.er1 >conftest.err
22422 cat conftest.err >&5
22423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22424 (exit $ac_status); } && {
22425 test -z "$ac_c_werror_flag" ||
22426 test ! -s conftest.err
22427 } && test -s conftest.$ac_objext; then
22428 ac_cv_type_ssize_t=yes
22430 echo "$as_me: failed program was:" >&5
22431 sed 's/^/| /' conftest.$ac_ext >&5
22433 ac_cv_type_ssize_t=no
22436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22438 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
22439 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
22440 if test $ac_cv_type_ssize_t = yes; then
22444 cat >>confdefs.h <<_ACEOF
22445 #define ssize_t int
22450 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
22451 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
22452 if test "${ac_cv_type_uid_t+set}" = set; then
22453 echo $ECHO_N "(cached) $ECHO_C" >&6
22455 cat >conftest.$ac_ext <<_ACEOF
22458 cat confdefs.h >>conftest.$ac_ext
22459 cat >>conftest.$ac_ext <<_ACEOF
22460 /* end confdefs.h. */
22461 #include <sys/types.h>
22464 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22465 $EGREP "uid_t" >/dev/null 2>&1; then
22466 ac_cv_type_uid_t=yes
22468 ac_cv_type_uid_t=no
22473 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
22474 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
22475 if test $ac_cv_type_uid_t = no; then
22477 cat >>confdefs.h <<\_ACEOF
22482 cat >>confdefs.h <<\_ACEOF
22490 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
22491 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
22492 if test "${ac_cv_header_stdc+set}" = set; then
22493 echo $ECHO_N "(cached) $ECHO_C" >&6
22495 cat >conftest.$ac_ext <<_ACEOF
22498 cat confdefs.h >>conftest.$ac_ext
22499 cat >>conftest.$ac_ext <<_ACEOF
22500 /* end confdefs.h. */
22501 #include <stdlib.h>
22502 #include <stdarg.h>
22503 #include <string.h>
22514 rm -f conftest.$ac_objext
22515 if { (ac_try="$ac_compile"
22516 case "(($ac_try" in
22517 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
22518 *) ac_try_echo
=$ac_try;;
22520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22521 (eval "$ac_compile") 2>conftest.er1
22523 grep -v '^ *+' conftest.er1
>conftest.err
22525 cat conftest.err
>&5
22526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22527 (exit $ac_status); } && {
22528 test -z "$ac_c_werror_flag" ||
22529 test ! -s conftest.err
22530 } && test -s conftest.
$ac_objext; then
22531 ac_cv_header_stdc
=yes
22533 echo "$as_me: failed program was:" >&5
22534 sed 's/^/| /' conftest.
$ac_ext >&5
22536 ac_cv_header_stdc
=no
22539 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22541 if test $ac_cv_header_stdc = yes; then
22542 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
22543 cat >conftest.
$ac_ext <<_ACEOF
22546 cat confdefs.h
>>conftest.
$ac_ext
22547 cat >>conftest.
$ac_ext <<_ACEOF
22548 /* end confdefs.h. */
22549 #include <string.h>
22552 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22553 $EGREP "memchr" >/dev
/null
2>&1; then
22556 ac_cv_header_stdc
=no
22562 if test $ac_cv_header_stdc = yes; then
22563 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
22564 cat >conftest.
$ac_ext <<_ACEOF
22567 cat confdefs.h
>>conftest.
$ac_ext
22568 cat >>conftest.
$ac_ext <<_ACEOF
22569 /* end confdefs.h. */
22570 #include <stdlib.h>
22573 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22574 $EGREP "free" >/dev
/null
2>&1; then
22577 ac_cv_header_stdc
=no
22583 if test $ac_cv_header_stdc = yes; then
22584 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
22585 if test "$cross_compiling" = yes; then
22588 cat >conftest.
$ac_ext <<_ACEOF
22591 cat confdefs.h
>>conftest.
$ac_ext
22592 cat >>conftest.
$ac_ext <<_ACEOF
22593 /* end confdefs.h. */
22595 #include <stdlib.h>
22596 #if ((' ' & 0x0FF) == 0x020)
22597 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
22598 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
22600 # define ISLOWER(c) \
22601 (('a' <= (c) && (c) <= 'i') \
22602 || ('j' <= (c) && (c) <= 'r') \
22603 || ('s' <= (c) && (c) <= 'z'))
22604 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
22607 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
22612 for (i = 0; i < 256; i++)
22613 if (XOR (islower (i), ISLOWER (i))
22614 || toupper (i) != TOUPPER (i))
22619 rm -f conftest
$ac_exeext
22620 if { (ac_try
="$ac_link"
22621 case "(($ac_try" in
22622 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
22623 *) ac_try_echo=$ac_try;;
22625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22626 (eval "$ac_link") 2>&5
22628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22629 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22630 { (case "(($ac_try" in
22631 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
22632 *) ac_try_echo
=$ac_try;;
22634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22635 (eval "$ac_try") 2>&5
22637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22638 (exit $ac_status); }; }; then
22641 echo "$as_me: program exited with status $ac_status" >&5
22642 echo "$as_me: failed program was:" >&5
22643 sed 's/^/| /' conftest.
$ac_ext >&5
22645 ( exit $ac_status )
22646 ac_cv_header_stdc
=no
22648 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
22654 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
22655 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
22656 if test $ac_cv_header_stdc = yes; then
22658 cat >>confdefs.h
<<\_ACEOF
22659 #define STDC_HEADERS 1
22684 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
22686 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22687 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22688 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22689 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22690 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22691 echo $ECHO_N "(cached) $ECHO_C" >&6
22693 ac_res
=`eval echo '${'$as_ac_Header'}'`
22694 { echo "$as_me:$LINENO: result: $ac_res" >&5
22695 echo "${ECHO_T}$ac_res" >&6; }
22697 # Is the header compilable?
22698 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22699 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22700 cat >conftest.
$ac_ext <<_ACEOF
22703 cat confdefs.h
>>conftest.
$ac_ext
22704 cat >>conftest.
$ac_ext <<_ACEOF
22705 /* end confdefs.h. */
22706 $ac_includes_default
22707 #include <$ac_header>
22709 rm -f conftest.
$ac_objext
22710 if { (ac_try
="$ac_compile"
22711 case "(($ac_try" in
22712 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
22713 *) ac_try_echo=$ac_try;;
22715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22716 (eval "$ac_compile") 2>conftest.er1
22718 grep -v '^ *+' conftest.er1 >conftest.err
22720 cat conftest.err >&5
22721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22722 (exit $ac_status); } && {
22723 test -z "$ac_c_werror_flag" ||
22724 test ! -s conftest.err
22725 } && test -s conftest.$ac_objext; then
22726 ac_header_compiler=yes
22728 echo "$as_me: failed program was:" >&5
22729 sed 's/^/| /' conftest.$ac_ext >&5
22731 ac_header_compiler=no
22734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22735 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22736 echo "${ECHO_T}$ac_header_compiler" >&6; }
22738 # Is the header present?
22739 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22740 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22741 cat >conftest.$ac_ext <<_ACEOF
22744 cat confdefs.h >>conftest.$ac_ext
22745 cat >>conftest.$ac_ext <<_ACEOF
22746 /* end confdefs.h. */
22747 #include <$ac_header>
22749 if { (ac_try="$ac_cpp conftest.$ac_ext"
22750 case "(($ac_try" in
22751 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
22752 *) ac_try_echo
=$ac_try;;
22754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22755 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22757 grep -v '^ *+' conftest.er1
>conftest.err
22759 cat conftest.err
>&5
22760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22761 (exit $ac_status); } >/dev
/null
&& {
22762 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22763 test ! -s conftest.err
22765 ac_header_preproc
=yes
22767 echo "$as_me: failed program was:" >&5
22768 sed 's/^/| /' conftest.
$ac_ext >&5
22770 ac_header_preproc
=no
22773 rm -f conftest.err conftest.
$ac_ext
22774 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22775 echo "${ECHO_T}$ac_header_preproc" >&6; }
22777 # So? What about this header?
22778 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22780 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22781 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22782 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22783 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22784 ac_header_preproc
=yes
22787 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22788 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22789 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22790 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22791 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22792 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22793 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22794 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22795 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22796 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22797 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22798 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22802 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22803 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22804 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22805 echo $ECHO_N "(cached) $ECHO_C" >&6
22807 eval "$as_ac_Header=\$ac_header_preproc"
22809 ac_res
=`eval echo '${'$as_ac_Header'}'`
22810 { echo "$as_me:$LINENO: result: $ac_res" >&5
22811 echo "${ECHO_T}$ac_res" >&6; }
22814 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22815 cat >>confdefs.h
<<_ACEOF
22816 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22823 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
22824 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
22825 if test "${ac_cv_header_time+set}" = set; then
22826 echo $ECHO_N "(cached) $ECHO_C" >&6
22828 cat >conftest.
$ac_ext <<_ACEOF
22831 cat confdefs.h
>>conftest.
$ac_ext
22832 cat >>conftest.
$ac_ext <<_ACEOF
22833 /* end confdefs.h. */
22834 #include <sys/types.h>
22835 #include <sys/time.h>
22841 if ((struct tm *) 0)
22847 rm -f conftest.
$ac_objext
22848 if { (ac_try
="$ac_compile"
22849 case "(($ac_try" in
22850 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
22851 *) ac_try_echo=$ac_try;;
22853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22854 (eval "$ac_compile") 2>conftest.er1
22856 grep -v '^ *+' conftest.er1 >conftest.err
22858 cat conftest.err >&5
22859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22860 (exit $ac_status); } && {
22861 test -z "$ac_c_werror_flag" ||
22862 test ! -s conftest.err
22863 } && test -s conftest.$ac_objext; then
22864 ac_cv_header_time=yes
22866 echo "$as_me: failed program was:" >&5
22867 sed 's/^/| /' conftest.$ac_ext >&5
22869 ac_cv_header_time=no
22872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22874 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
22875 echo "${ECHO_T}$ac_cv_header_time" >&6; }
22876 if test $ac_cv_header_time = yes; then
22878 cat >>confdefs.h <<\_ACEOF
22879 #define TIME_WITH_SYS_TIME 1
22886 { echo "$as_me:$LINENO: checking for library containing socket" >&5
22887 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; }
22888 if test "${ac_cv_search_socket+set}" = set; then
22889 echo $ECHO_N "(cached) $ECHO_C" >&6
22891 ac_func_search_save_LIBS=$LIBS
22892 cat >conftest.$ac_ext <<_ACEOF
22895 cat confdefs.h >>conftest.$ac_ext
22896 cat >>conftest.$ac_ext <<_ACEOF
22897 /* end confdefs.h. */
22899 /* Override any GCC internal prototype to avoid an error.
22900 Use char because int might match the return type of a GCC
22901 builtin and then its argument prototype would still apply. */
22914 for ac_lib in '' socket; do
22915 if test -z "$ac_lib"; then
22916 ac_res="none required"
22919 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22921 rm -f conftest.$ac_objext conftest$ac_exeext
22922 if { (ac_try="$ac_link"
22923 case "(($ac_try" in
22924 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
22925 *) ac_try_echo
=$ac_try;;
22927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22928 (eval "$ac_link") 2>conftest.er1
22930 grep -v '^ *+' conftest.er1
>conftest.err
22932 cat conftest.err
>&5
22933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22934 (exit $ac_status); } && {
22935 test -z "$ac_c_werror_flag" ||
22936 test ! -s conftest.err
22937 } && test -s conftest
$ac_exeext &&
22938 $as_test_x conftest
$ac_exeext; then
22939 ac_cv_search_socket
=$ac_res
22941 echo "$as_me: failed program was:" >&5
22942 sed 's/^/| /' conftest.
$ac_ext >&5
22947 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
22949 if test "${ac_cv_search_socket+set}" = set; then
22953 if test "${ac_cv_search_socket+set}" = set; then
22956 ac_cv_search_socket
=no
22958 rm conftest.
$ac_ext
22959 LIBS
=$ac_func_search_save_LIBS
22961 { echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
22962 echo "${ECHO_T}$ac_cv_search_socket" >&6; }
22963 ac_res
=$ac_cv_search_socket
22964 if test "$ac_res" != no
; then
22965 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
22971 { echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
22972 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; }
22973 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
22974 echo $ECHO_N "(cached) $ECHO_C" >&6
22976 cat >conftest.
$ac_ext <<_ACEOF
22979 cat confdefs.h
>>conftest.
$ac_ext
22980 cat >>conftest.
$ac_ext <<_ACEOF
22981 /* end confdefs.h. */
22983 #ifdef HAVE_SYS_TYPES_H
22984 #include <sys/types.h>
22986 #ifdef HAVE_SYS_SOCKET_H
22987 #include <sys/socket.h>
22989 #ifdef HAVE_WINSOCK2_H
22990 #include <winsock2.h>
22997 static struct sockaddr ac_aggr;
22998 if (ac_aggr.sa_len)
23004 rm -f conftest.
$ac_objext
23005 if { (ac_try
="$ac_compile"
23006 case "(($ac_try" in
23007 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
23008 *) ac_try_echo=$ac_try;;
23010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23011 (eval "$ac_compile") 2>conftest.er1
23013 grep -v '^ *+' conftest.er1 >conftest.err
23015 cat conftest.err >&5
23016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23017 (exit $ac_status); } && {
23018 test -z "$ac_c_werror_flag" ||
23019 test ! -s conftest.err
23020 } && test -s conftest.$ac_objext; then
23021 ac_cv_member_struct_sockaddr_sa_len=yes
23023 echo "$as_me: failed program was:" >&5
23024 sed 's/^/| /' conftest.$ac_ext >&5
23026 cat >conftest.$ac_ext <<_ACEOF
23029 cat confdefs.h >>conftest.$ac_ext
23030 cat >>conftest.$ac_ext <<_ACEOF
23031 /* end confdefs.h. */
23033 #ifdef HAVE_SYS_TYPES_H
23034 #include <sys/types.h>
23036 #ifdef HAVE_SYS_SOCKET_H
23037 #include <sys/socket.h>
23039 #ifdef HAVE_WINSOCK2_H
23040 #include <winsock2.h>
23047 static struct sockaddr ac_aggr;
23048 if (sizeof ac_aggr.sa_len)
23054 rm -f conftest.$ac_objext
23055 if { (ac_try="$ac_compile"
23056 case "(($ac_try" in
23057 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
23058 *) ac_try_echo
=$ac_try;;
23060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23061 (eval "$ac_compile") 2>conftest.er1
23063 grep -v '^ *+' conftest.er1
>conftest.err
23065 cat conftest.err
>&5
23066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23067 (exit $ac_status); } && {
23068 test -z "$ac_c_werror_flag" ||
23069 test ! -s conftest.err
23070 } && test -s conftest.
$ac_objext; then
23071 ac_cv_member_struct_sockaddr_sa_len
=yes
23073 echo "$as_me: failed program was:" >&5
23074 sed 's/^/| /' conftest.
$ac_ext >&5
23076 ac_cv_member_struct_sockaddr_sa_len
=no
23079 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23082 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23084 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
23085 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; }
23086 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
23088 cat >>confdefs.h
<<\_ACEOF
23089 #define SOCKADDR_IN_HAS_LEN 1
23095 { echo "$as_me:$LINENO: checking for socklen_t" >&5
23096 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
23097 if test "${ac_cv_type_socklen_t+set}" = set; then
23098 echo $ECHO_N "(cached) $ECHO_C" >&6
23100 cat >conftest.
$ac_ext <<_ACEOF
23103 cat confdefs.h
>>conftest.
$ac_ext
23104 cat >>conftest.
$ac_ext <<_ACEOF
23105 /* end confdefs.h. */
23107 #ifdef HAVE_SYS_TYPES_H
23108 #include <sys/types.h>
23110 #ifdef HAVE_SYS_SOCKET_H
23111 #include <sys/socket.h>
23113 #ifdef HAVE_WINSOCK2_H
23114 #include <winsock2.h>
23119 typedef socklen_t ac__type_new_;
23123 if ((ac__type_new_ *) 0)
23125 if (sizeof (ac__type_new_))
23131 rm -f conftest.
$ac_objext
23132 if { (ac_try
="$ac_compile"
23133 case "(($ac_try" in
23134 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
23135 *) ac_try_echo=$ac_try;;
23137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23138 (eval "$ac_compile") 2>conftest.er1
23140 grep -v '^ *+' conftest.er1 >conftest.err
23142 cat conftest.err >&5
23143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23144 (exit $ac_status); } && {
23145 test -z "$ac_c_werror_flag" ||
23146 test ! -s conftest.err
23147 } && test -s conftest.$ac_objext; then
23148 ac_cv_type_socklen_t=yes
23150 echo "$as_me: failed program was:" >&5
23151 sed 's/^/| /' conftest.$ac_ext >&5
23153 ac_cv_type_socklen_t=no
23156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23158 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
23159 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
23160 if test $ac_cv_type_socklen_t = yes; then
23164 cat >>confdefs.h <<\_ACEOF
23165 #define socklen_t unsigned int
23171 # Check whether --enable-ipv6 was given.
23172 if test "${enable_ipv6+set}" = set; then
23173 enableval=$enable_ipv6; ipv6=$enableval
23179 if test x$ipv6 != xyes; then
23185 { echo "$as_me:$LINENO: checking for INET6 protocol support" >&5
23186 echo $ECHO_N "checking for INET6 protocol support... $ECHO_C" >&6; }
23187 if test "${rb_cv_proto_inet6+set}" = set; then
23188 echo $ECHO_N "(cached) $ECHO_C" >&6
23191 cat >conftest.$ac_ext <<_ACEOF
23194 cat confdefs.h >>conftest.$ac_ext
23195 cat >>conftest.$ac_ext <<_ACEOF
23196 /* end confdefs.h. */
23198 #include <sys/types.h>
23199 #include <sys/socket.h>
23202 #error Missing PF_INET6
23205 #error Mlssing AF_INET6
23209 if { (ac_try="$ac_cpp conftest.$ac_ext"
23210 case "(($ac_try" in
23211 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
23212 *) ac_try_echo
=$ac_try;;
23214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23215 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23217 grep -v '^ *+' conftest.er1
>conftest.err
23219 cat conftest.err
>&5
23220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23221 (exit $ac_status); } >/dev
/null
&& {
23222 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23223 test ! -s conftest.err
23226 rb_cv_proto_inet6
=yes
23229 echo "$as_me: failed program was:" >&5
23230 sed 's/^/| /' conftest.
$ac_ext >&5
23233 rb_cv_proto_inet6
=no
23237 rm -f conftest.err conftest.
$ac_ext
23240 { echo "$as_me:$LINENO: result: $rb_cv_proto_inet6" >&5
23241 echo "${ECHO_T}$rb_cv_proto_inet6" >&6; }
23243 if test "X$rb_cv_proto_inet6" = "Xyes"; then :
23247 { echo "$as_me:$LINENO: Disabling IPv6 support: PF_INET6 not found" >&5
23248 echo "$as_me: Disabling IPv6 support: PF_INET6 not found" >&6;}
23254 if test "X$have_v6" = "Xyes"; then
23256 rb_have_sockaddr_in6
=
23257 { echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
23258 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6; }
23259 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
23260 echo $ECHO_N "(cached) $ECHO_C" >&6
23262 cat >conftest.
$ac_ext <<_ACEOF
23265 cat confdefs.h
>>conftest.
$ac_ext
23266 cat >>conftest.
$ac_ext <<_ACEOF
23267 /* end confdefs.h. */
23269 #include <sys/types.h>
23270 #include <sys/socket.h>
23271 #include <netinet/in.h>
23274 typedef struct sockaddr_in6 ac__type_new_;
23278 if ((ac__type_new_ *) 0)
23280 if (sizeof (ac__type_new_))
23286 rm -f conftest.
$ac_objext
23287 if { (ac_try
="$ac_compile"
23288 case "(($ac_try" in
23289 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
23290 *) ac_try_echo=$ac_try;;
23292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23293 (eval "$ac_compile") 2>conftest.er1
23295 grep -v '^ *+' conftest.er1 >conftest.err
23297 cat conftest.err >&5
23298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23299 (exit $ac_status); } && {
23300 test -z "$ac_c_werror_flag" ||
23301 test ! -s conftest.err
23302 } && test -s conftest.$ac_objext; then
23303 ac_cv_type_struct_sockaddr_in6=yes
23305 echo "$as_me: failed program was:" >&5
23306 sed 's/^/| /' conftest.$ac_ext >&5
23308 ac_cv_type_struct_sockaddr_in6=no
23311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23313 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
23314 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6; }
23315 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
23317 cat >>confdefs.h <<_ACEOF
23318 #define HAVE_STRUCT_SOCKADDR_IN6 1
23322 rb_have_sockaddr_in6=yes
23326 rb_have_sockaddr_in6=no
23331 if test "X$rb_have_sockaddr_in6" = "Xyes"; then :
23335 { echo "$as_me:$LINENO: Disabling IPv6 support: struct sockaddr_in6 not found" >&5
23336 echo "$as_me: Disabling IPv6 support: struct sockaddr_in6 not found" >&6;}
23345 { echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
23346 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6; }
23347 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
23348 echo $ECHO_N "(cached) $ECHO_C" >&6
23350 cat >conftest.$ac_ext <<_ACEOF
23353 cat confdefs.h >>conftest.$ac_ext
23354 cat >>conftest.$ac_ext <<_ACEOF
23355 /* end confdefs.h. */
23357 #include <sys/types.h>
23358 #include <sys/socket.h>
23361 typedef struct sockaddr_storage ac__type_new_;
23365 if ((ac__type_new_ *) 0)
23367 if (sizeof (ac__type_new_))
23373 rm -f conftest.$ac_objext
23374 if { (ac_try="$ac_compile"
23375 case "(($ac_try" in
23376 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
23377 *) ac_try_echo
=$ac_try;;
23379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23380 (eval "$ac_compile") 2>conftest.er1
23382 grep -v '^ *+' conftest.er1
>conftest.err
23384 cat conftest.err
>&5
23385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23386 (exit $ac_status); } && {
23387 test -z "$ac_c_werror_flag" ||
23388 test ! -s conftest.err
23389 } && test -s conftest.
$ac_objext; then
23390 ac_cv_type_struct_sockaddr_storage
=yes
23392 echo "$as_me: failed program was:" >&5
23393 sed 's/^/| /' conftest.
$ac_ext >&5
23395 ac_cv_type_struct_sockaddr_storage
=no
23398 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23400 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
23401 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6; }
23402 if test $ac_cv_type_struct_sockaddr_storage = yes; then
23404 cat >>confdefs.h
<<_ACEOF
23405 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
23409 rb_have_sockaddr_storage
=yes
23416 { echo "$as_me:$LINENO: checking for library containing crypt" >&5
23417 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6; }
23418 if test "${ac_cv_search_crypt+set}" = set; then
23419 echo $ECHO_N "(cached) $ECHO_C" >&6
23421 ac_func_search_save_LIBS
=$LIBS
23422 cat >conftest.
$ac_ext <<_ACEOF
23425 cat confdefs.h
>>conftest.
$ac_ext
23426 cat >>conftest.
$ac_ext <<_ACEOF
23427 /* end confdefs.h. */
23429 /* Override any GCC internal prototype to avoid an error.
23430 Use char because int might match the return type of a GCC
23431 builtin and then its argument prototype would still apply. */
23444 for ac_lib
in '' crypt descrypt
; do
23445 if test -z "$ac_lib"; then
23446 ac_res
="none required"
23449 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
23451 rm -f conftest.
$ac_objext conftest
$ac_exeext
23452 if { (ac_try
="$ac_link"
23453 case "(($ac_try" in
23454 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
23455 *) ac_try_echo=$ac_try;;
23457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23458 (eval "$ac_link") 2>conftest.er1
23460 grep -v '^ *+' conftest.er1 >conftest.err
23462 cat conftest.err >&5
23463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23464 (exit $ac_status); } && {
23465 test -z "$ac_c_werror_flag" ||
23466 test ! -s conftest.err
23467 } && test -s conftest$ac_exeext &&
23468 $as_test_x conftest$ac_exeext; then
23469 ac_cv_search_crypt=$ac_res
23471 echo "$as_me: failed program was:" >&5
23472 sed 's/^/| /' conftest.$ac_ext >&5
23477 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23479 if test "${ac_cv_search_crypt+set}" = set; then
23483 if test "${ac_cv_search_crypt+set}" = set; then
23486 ac_cv_search_crypt=no
23488 rm conftest.$ac_ext
23489 LIBS=$ac_func_search_save_LIBS
23491 { echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
23492 echo "${ECHO_T}$ac_cv_search_crypt" >&6; }
23493 ac_res=$ac_cv_search_crypt
23494 if test "$ac_res" != no; then
23495 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23501 CRYPT_LIB=$ac_cv_search_crypt
23503 if test "$CRYPT_LIB" = "none required"; then
23505 elif test "$CRYPT_LIB" = no; then
23508 cat >>confdefs.h <<\_ACEOF
23509 #define NEED_CRYPT 1
23515 if test x"$need_crypt" == "xyes"; then
23517 NEED_CRYPT_FALSE='#'
23519 NEED_CRYPT_TRUE='#'
23527 if test "${ac_cv_header_stdarg_h+set}" = set; then
23528 { echo "$as_me:$LINENO: checking for stdarg.h" >&5
23529 echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6; }
23530 if test "${ac_cv_header_stdarg_h+set}" = set; then
23531 echo $ECHO_N "(cached) $ECHO_C" >&6
23533 { echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5
23534 echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6; }
23536 # Is the header compilable?
23537 { echo "$as_me:$LINENO: checking stdarg.h usability" >&5
23538 echo $ECHO_N "checking stdarg.h usability... $ECHO_C" >&6; }
23539 cat >conftest.$ac_ext <<_ACEOF
23542 cat confdefs.h >>conftest.$ac_ext
23543 cat >>conftest.$ac_ext <<_ACEOF
23544 /* end confdefs.h. */
23545 $ac_includes_default
23546 #include <stdarg.h>
23548 rm -f conftest.$ac_objext
23549 if { (ac_try="$ac_compile"
23550 case "(($ac_try" in
23551 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
23552 *) ac_try_echo
=$ac_try;;
23554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23555 (eval "$ac_compile") 2>conftest.er1
23557 grep -v '^ *+' conftest.er1
>conftest.err
23559 cat conftest.err
>&5
23560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23561 (exit $ac_status); } && {
23562 test -z "$ac_c_werror_flag" ||
23563 test ! -s conftest.err
23564 } && test -s conftest.
$ac_objext; then
23565 ac_header_compiler
=yes
23567 echo "$as_me: failed program was:" >&5
23568 sed 's/^/| /' conftest.
$ac_ext >&5
23570 ac_header_compiler
=no
23573 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23574 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23575 echo "${ECHO_T}$ac_header_compiler" >&6; }
23577 # Is the header present?
23578 { echo "$as_me:$LINENO: checking stdarg.h presence" >&5
23579 echo $ECHO_N "checking stdarg.h presence... $ECHO_C" >&6; }
23580 cat >conftest.
$ac_ext <<_ACEOF
23583 cat confdefs.h
>>conftest.
$ac_ext
23584 cat >>conftest.
$ac_ext <<_ACEOF
23585 /* end confdefs.h. */
23586 #include <stdarg.h>
23588 if { (ac_try
="$ac_cpp conftest.$ac_ext"
23589 case "(($ac_try" in
23590 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
23591 *) ac_try_echo=$ac_try;;
23593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23594 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23596 grep -v '^ *+' conftest.er1 >conftest.err
23598 cat conftest.err >&5
23599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23600 (exit $ac_status); } >/dev/null && {
23601 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23602 test ! -s conftest.err
23604 ac_header_preproc=yes
23606 echo "$as_me: failed program was:" >&5
23607 sed 's/^/| /' conftest.$ac_ext >&5
23609 ac_header_preproc=no
23612 rm -f conftest.err conftest.$ac_ext
23613 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23614 echo "${ECHO_T}$ac_header_preproc" >&6; }
23616 # So? What about this header?
23617 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23619 { echo "$as_me:$LINENO: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&5
23620 echo "$as_me: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23621 { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the compiler's result" >&5
23622 echo "$as_me: WARNING: stdarg.h: proceeding with the compiler's result" >&2;}
23623 ac_header_preproc=yes
23626 { echo "$as_me:$LINENO: WARNING: stdarg.h: present but cannot be compiled" >&5
23627 echo "$as_me: WARNING: stdarg.h: present but cannot be compiled" >&2;}
23628 { echo "$as_me:$LINENO: WARNING: stdarg.h: check for missing prerequisite headers?" >&5
23629 echo "$as_me: WARNING: stdarg.h: check for missing prerequisite headers?" >&2;}
23630 { echo "$as_me:$LINENO: WARNING: stdarg.h: see the Autoconf documentation" >&5
23631 echo "$as_me: WARNING: stdarg.h: see the Autoconf documentation" >&2;}
23632 { echo "$as_me:$LINENO: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&5
23633 echo "$as_me: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&2;}
23634 { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the preprocessor's result" >&5
23635 echo "$as_me: WARNING: stdarg.h: proceeding with the preprocessor's result" >&2;}
23636 { echo "$as_me:$LINENO: WARNING: stdarg.h: in the future, the compiler will take precedence" >&5
23637 echo "$as_me: WARNING: stdarg.h: in the future, the compiler will take precedence" >&2;}
23641 { echo "$as_me:$LINENO: checking for stdarg.h" >&5
23642 echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6; }
23643 if test "${ac_cv_header_stdarg_h+set}" = set; then
23644 echo $ECHO_N "(cached) $ECHO_C" >&6
23646 ac_cv_header_stdarg_h=$ac_header_preproc
23648 { echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5
23649 echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6; }
23652 if test $ac_cv_header_stdarg_h = yes; then
23655 { { echo "$as_me:$LINENO: error: ** stdarg.h could not be found - libratbox will not compile without it **" >&5
23656 echo "$as_me: error: ** stdarg.h could not be found - libratbox will not compile without it **" >&2;}
23657 { (exit 1); exit 1; }; }
23662 { echo "$as_me:$LINENO: checking for sa_family_t" >&5
23663 echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6; }
23664 if test "${ac_cv_type_sa_family_t+set}" = set; then
23665 echo $ECHO_N "(cached) $ECHO_C" >&6
23667 cat >conftest.$ac_ext <<_ACEOF
23670 cat confdefs.h >>conftest.$ac_ext
23671 cat >>conftest.$ac_ext <<_ACEOF
23672 /* end confdefs.h. */
23673 #include <sys/types.h>
23674 #include <sys/socket.h>
23676 typedef sa_family_t ac__type_new_;
23680 if ((ac__type_new_ *) 0)
23682 if (sizeof (ac__type_new_))
23688 rm -f conftest.$ac_objext
23689 if { (ac_try="$ac_compile"
23690 case "(($ac_try" in
23691 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
23692 *) ac_try_echo
=$ac_try;;
23694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23695 (eval "$ac_compile") 2>conftest.er1
23697 grep -v '^ *+' conftest.er1
>conftest.err
23699 cat conftest.err
>&5
23700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23701 (exit $ac_status); } && {
23702 test -z "$ac_c_werror_flag" ||
23703 test ! -s conftest.err
23704 } && test -s conftest.
$ac_objext; then
23705 ac_cv_type_sa_family_t
=yes
23707 echo "$as_me: failed program was:" >&5
23708 sed 's/^/| /' conftest.
$ac_ext >&5
23710 ac_cv_type_sa_family_t
=no
23713 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23715 { echo "$as_me:$LINENO: result: $ac_cv_type_sa_family_t" >&5
23716 echo "${ECHO_T}$ac_cv_type_sa_family_t" >&6; }
23717 if test $ac_cv_type_sa_family_t = yes; then
23721 cat >>confdefs.h
<<\_ACEOF
23722 #define sa_family_t u_int16_t
23747 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
23749 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23750 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23751 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23752 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23753 echo $ECHO_N "(cached) $ECHO_C" >&6
23755 cat >conftest.
$ac_ext <<_ACEOF
23758 cat confdefs.h
>>conftest.
$ac_ext
23759 cat >>conftest.
$ac_ext <<_ACEOF
23760 /* end confdefs.h. */
23761 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23762 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23763 #define $ac_func innocuous_$ac_func
23765 /* System header to define __stub macros and hopefully few prototypes,
23766 which can conflict with char $ac_func (); below.
23767 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23768 <limits.h> exists even on freestanding compilers. */
23771 # include <limits.h>
23773 # include <assert.h>
23778 /* Override any GCC internal prototype to avoid an error.
23779 Use char because int might match the return type of a GCC
23780 builtin and then its argument prototype would still apply. */
23785 /* The GNU C library defines this for functions which it implements
23786 to always fail with ENOSYS. Some functions are actually named
23787 something starting with __ and the normal name is an alias. */
23788 #if defined __stub_$ac_func || defined __stub___$ac_func
23795 return $ac_func ();
23800 rm -f conftest.
$ac_objext conftest
$ac_exeext
23801 if { (ac_try
="$ac_link"
23802 case "(($ac_try" in
23803 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
23804 *) ac_try_echo=$ac_try;;
23806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23807 (eval "$ac_link") 2>conftest.er1
23809 grep -v '^ *+' conftest.er1 >conftest.err
23811 cat conftest.err >&5
23812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23813 (exit $ac_status); } && {
23814 test -z "$ac_c_werror_flag" ||
23815 test ! -s conftest.err
23816 } && test -s conftest$ac_exeext &&
23817 $as_test_x conftest$ac_exeext; then
23818 eval "$as_ac_var=yes"
23820 echo "$as_me: failed program was:" >&5
23821 sed 's/^/| /' conftest.$ac_ext >&5
23823 eval "$as_ac_var=no"
23826 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23827 conftest$ac_exeext conftest.$ac_ext
23829 ac_res=`eval echo '${'$as_ac_var'}'`
23830 { echo "$as_me:$LINENO: result: $ac_res" >&5
23831 echo "${ECHO_T}$ac_res" >&6; }
23832 if test `eval echo '${'$as_ac_var'}'` = yes; then
23833 cat >>confdefs.h <<_ACEOF
23834 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23841 { echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
23842 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6; }
23843 if test "${ac_cv_search_nanosleep+set}" = set; then
23844 echo $ECHO_N "(cached) $ECHO_C" >&6
23846 ac_func_search_save_LIBS=$LIBS
23847 cat >conftest.$ac_ext <<_ACEOF
23850 cat confdefs.h >>conftest.$ac_ext
23851 cat >>conftest.$ac_ext <<_ACEOF
23852 /* end confdefs.h. */
23854 /* Override any GCC internal prototype to avoid an error.
23855 Use char because int might match the return type of a GCC
23856 builtin and then its argument prototype would still apply. */
23864 return nanosleep ();
23869 for ac_lib in '' rt posix4; do
23870 if test -z "$ac_lib"; then
23871 ac_res="none required"
23874 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23876 rm -f conftest.$ac_objext conftest$ac_exeext
23877 if { (ac_try="$ac_link"
23878 case "(($ac_try" in
23879 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
23880 *) ac_try_echo
=$ac_try;;
23882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23883 (eval "$ac_link") 2>conftest.er1
23885 grep -v '^ *+' conftest.er1
>conftest.err
23887 cat conftest.err
>&5
23888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23889 (exit $ac_status); } && {
23890 test -z "$ac_c_werror_flag" ||
23891 test ! -s conftest.err
23892 } && test -s conftest
$ac_exeext &&
23893 $as_test_x conftest
$ac_exeext; then
23894 ac_cv_search_nanosleep
=$ac_res
23896 echo "$as_me: failed program was:" >&5
23897 sed 's/^/| /' conftest.
$ac_ext >&5
23902 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
23904 if test "${ac_cv_search_nanosleep+set}" = set; then
23908 if test "${ac_cv_search_nanosleep+set}" = set; then
23911 ac_cv_search_nanosleep
=no
23913 rm conftest.
$ac_ext
23914 LIBS
=$ac_func_search_save_LIBS
23916 { echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
23917 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6; }
23918 ac_res
=$ac_cv_search_nanosleep
23919 if test "$ac_res" != no
; then
23920 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
23922 cat >>confdefs.h
<<\_ACEOF
23923 #define HAVE_NANOSLEEP 1
23928 { echo "$as_me:$LINENO: checking for library containing timer_create" >&5
23929 echo $ECHO_N "checking for library containing timer_create... $ECHO_C" >&6; }
23930 if test "${ac_cv_search_timer_create+set}" = set; then
23931 echo $ECHO_N "(cached) $ECHO_C" >&6
23933 ac_func_search_save_LIBS
=$LIBS
23934 cat >conftest.
$ac_ext <<_ACEOF
23937 cat confdefs.h
>>conftest.
$ac_ext
23938 cat >>conftest.
$ac_ext <<_ACEOF
23939 /* end confdefs.h. */
23941 /* Override any GCC internal prototype to avoid an error.
23942 Use char because int might match the return type of a GCC
23943 builtin and then its argument prototype would still apply. */
23947 char timer_create ();
23951 return timer_create ();
23956 for ac_lib
in '' rt
; do
23957 if test -z "$ac_lib"; then
23958 ac_res
="none required"
23961 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
23963 rm -f conftest.
$ac_objext conftest
$ac_exeext
23964 if { (ac_try
="$ac_link"
23965 case "(($ac_try" in
23966 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
23967 *) ac_try_echo=$ac_try;;
23969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23970 (eval "$ac_link") 2>conftest.er1
23972 grep -v '^ *+' conftest.er1 >conftest.err
23974 cat conftest.err >&5
23975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23976 (exit $ac_status); } && {
23977 test -z "$ac_c_werror_flag" ||
23978 test ! -s conftest.err
23979 } && test -s conftest$ac_exeext &&
23980 $as_test_x conftest$ac_exeext; then
23981 ac_cv_search_timer_create=$ac_res
23983 echo "$as_me: failed program was:" >&5
23984 sed 's/^/| /' conftest.$ac_ext >&5
23989 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23991 if test "${ac_cv_search_timer_create+set}" = set; then
23995 if test "${ac_cv_search_timer_create+set}" = set; then
23998 ac_cv_search_timer_create=no
24000 rm conftest.$ac_ext
24001 LIBS=$ac_func_search_save_LIBS
24003 { echo "$as_me:$LINENO: result: $ac_cv_search_timer_create" >&5
24004 echo "${ECHO_T}$ac_cv_search_timer_create" >&6; }
24005 ac_res=$ac_cv_search_timer_create
24006 if test "$ac_res" != no; then
24007 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24009 cat >>confdefs.h <<\_ACEOF
24010 #define HAVE_TIMER_CREATE 1
24015 { echo "$as_me:$LINENO: checking for a working timer_create(CLOCK_REALTIME)" >&5
24016 echo $ECHO_N "checking for a working timer_create(CLOCK_REALTIME)... $ECHO_C" >&6; }
24017 if test "${rb__cv_timer_create_works+set}" = set; then
24018 echo $ECHO_N "(cached) $ECHO_C" >&6
24020 if test "$cross_compiling" = yes; then
24021 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
24022 See \`config.log
' for more details." >&5
24023 echo "$as_me: error: cannot run test program while cross compiling
24024 See \`config.log' for more details.
" >&2;}
24025 { (exit 1); exit 1; }; }
24027 cat >conftest.$ac_ext <<_ACEOF
24030 cat confdefs.h >>conftest.$ac_ext
24031 cat >>conftest.$ac_ext <<_ACEOF
24032 /* end confdefs.h. */
24037 #ifdef HAVE_SIGNAL_H
24038 #include <signal.h>
24040 #ifdef HAVE_UNISTD_H
24041 #include <unistd.h>
24043 int main(int argc, char *argv[])
24045 #if HAVE_TIMER_CREATE
24046 struct sigevent ev;
24048 ev.sigev_notify = SIGEV_SIGNAL;
24049 ev.sigev_signo = SIGVTALRM;
24050 if (timer_create(CLOCK_REALTIME, &ev, &timer) != 0) {
24060 rm -f conftest$ac_exeext
24061 if { (ac_try="$ac_link"
24062 case "(($ac_try" in
24063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24064 *) ac_try_echo=$ac_try;;
24066 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24067 (eval "$ac_link") 2>&5
24069 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24070 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24071 { (case "(($ac_try" in
24072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24073 *) ac_try_echo=$ac_try;;
24075 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24076 (eval "$ac_try") 2>&5
24078 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24079 (exit $ac_status); }; }; then
24080 rb__cv_timer_create_works=yes
24082 echo "$as_me: program exited with status
$ac_status" >&5
24083 echo "$as_me: failed program was
:" >&5
24084 sed 's/^/| /' conftest.$ac_ext >&5
24086 ( exit $ac_status )
24087 rb__cv_timer_create_works=no
24089 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24095 { echo "$as_me:$LINENO: result
: $rb__cv_timer_create_works" >&5
24096 echo "${ECHO_T}$rb__cv_timer_create_works" >&6; }
24097 case $rb__cv_timer_create_works in
24099 cat >>confdefs.h <<\_ACEOF
24100 #define USE_TIMER_CREATE 1
24106 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
24107 # for constant arguments. Useless!
24108 { echo "$as_me:$LINENO: checking
for working alloca.h
" >&5
24109 echo $ECHO_N "checking
for working alloca.h...
$ECHO_C" >&6; }
24110 if test "${ac_cv_working_alloca_h+set}" = set; then
24111 echo $ECHO_N "(cached
) $ECHO_C" >&6
24113 cat >conftest.$ac_ext <<_ACEOF
24116 cat confdefs.h >>conftest.$ac_ext
24117 cat >>conftest.$ac_ext <<_ACEOF
24118 /* end confdefs.h. */
24119 #include <alloca.h>
24123 char *p = (char *) alloca (2 * sizeof (int));
24129 rm -f conftest.$ac_objext conftest$ac_exeext
24130 if { (ac_try="$ac_link"
24131 case "(($ac_try" in
24132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24133 *) ac_try_echo=$ac_try;;
24135 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24136 (eval "$ac_link") 2>conftest.er1
24138 grep -v '^ *+' conftest.er1 >conftest.err
24140 cat conftest.err >&5
24141 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24142 (exit $ac_status); } && {
24143 test -z "$ac_c_werror_flag" ||
24144 test ! -s conftest.err
24145 } && test -s conftest$ac_exeext &&
24146 $as_test_x conftest$ac_exeext; then
24147 ac_cv_working_alloca_h=yes
24149 echo "$as_me: failed program was
:" >&5
24150 sed 's/^/| /' conftest.$ac_ext >&5
24152 ac_cv_working_alloca_h=no
24155 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24156 conftest$ac_exeext conftest.$ac_ext
24158 { echo "$as_me:$LINENO: result
: $ac_cv_working_alloca_h" >&5
24159 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
24160 if test $ac_cv_working_alloca_h = yes; then
24162 cat >>confdefs.h <<\_ACEOF
24163 #define HAVE_ALLOCA_H 1
24168 { echo "$as_me:$LINENO: checking
for alloca
" >&5
24169 echo $ECHO_N "checking
for alloca...
$ECHO_C" >&6; }
24170 if test "${ac_cv_func_alloca_works+set}" = set; then
24171 echo $ECHO_N "(cached
) $ECHO_C" >&6
24173 cat >conftest.$ac_ext <<_ACEOF
24176 cat confdefs.h >>conftest.$ac_ext
24177 cat >>conftest.$ac_ext <<_ACEOF
24178 /* end confdefs.h. */
24180 # define alloca __builtin_alloca
24183 # include <malloc.h>
24184 # define alloca _alloca
24186 # ifdef HAVE_ALLOCA_H
24187 # include <alloca.h>
24192 # ifndef alloca /* predefined by HP cc +Olibcalls */
24203 char *p = (char *) alloca (1);
24209 rm -f conftest.$ac_objext conftest$ac_exeext
24210 if { (ac_try="$ac_link"
24211 case "(($ac_try" in
24212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24213 *) ac_try_echo=$ac_try;;
24215 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24216 (eval "$ac_link") 2>conftest.er1
24218 grep -v '^ *+' conftest.er1 >conftest.err
24220 cat conftest.err >&5
24221 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24222 (exit $ac_status); } && {
24223 test -z "$ac_c_werror_flag" ||
24224 test ! -s conftest.err
24225 } && test -s conftest$ac_exeext &&
24226 $as_test_x conftest$ac_exeext; then
24227 ac_cv_func_alloca_works=yes
24229 echo "$as_me: failed program was
:" >&5
24230 sed 's/^/| /' conftest.$ac_ext >&5
24232 ac_cv_func_alloca_works=no
24235 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24236 conftest$ac_exeext conftest.$ac_ext
24238 { echo "$as_me:$LINENO: result
: $ac_cv_func_alloca_works" >&5
24239 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
24241 if test $ac_cv_func_alloca_works = yes; then
24243 cat >>confdefs.h <<\_ACEOF
24244 #define HAVE_ALLOCA 1
24248 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
24249 # that cause trouble. Some versions do not even contain alloca or
24250 # contain a buggy version. If you still want to use their alloca,
24251 # use ar to extract alloca.o from them instead of compiling alloca.c.
24253 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
24255 cat >>confdefs.h <<\_ACEOF
24260 { echo "$as_me:$LINENO: checking whether \
`alloca.c' needs Cray hooks" >&5
24261 echo $ECHO_N "checking whether \`alloca.c
' needs Cray hooks... $ECHO_C" >&6; }
24262 if test "${ac_cv_os_cray+set}" = set; then
24263 echo $ECHO_N "(cached) $ECHO_C" >&6
24265 cat >conftest.$ac_ext <<_ACEOF
24268 cat confdefs.h >>conftest.$ac_ext
24269 cat >>conftest.$ac_ext <<_ACEOF
24270 /* end confdefs.h. */
24271 #if defined CRAY && ! defined CRAY2
24278 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24279 $EGREP "webecray" >/dev/null 2>&1; then
24287 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
24288 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
24289 if test $ac_cv_os_cray = yes; then
24290 for ac_func in _getb67 GETB67 getb67; do
24291 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24292 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24293 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24294 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24295 echo $ECHO_N "(cached) $ECHO_C" >&6
24297 cat >conftest.$ac_ext <<_ACEOF
24300 cat confdefs.h >>conftest.$ac_ext
24301 cat >>conftest.$ac_ext <<_ACEOF
24302 /* end confdefs.h. */
24303 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24304 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24305 #define $ac_func innocuous_$ac_func
24307 /* System header to define __stub macros and hopefully few prototypes,
24308 which can conflict with char $ac_func (); below.
24309 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24310 <limits.h> exists even on freestanding compilers. */
24313 # include <limits.h>
24315 # include <assert.h>
24320 /* Override any GCC internal prototype to avoid an error.
24321 Use char because int might match the return type of a GCC
24322 builtin and then its argument prototype would still apply. */
24327 /* The GNU C library defines this for functions which it implements
24328 to always fail with ENOSYS. Some functions are actually named
24329 something starting with __ and the normal name is an alias. */
24330 #if defined __stub_$ac_func || defined __stub___$ac_func
24337 return $ac_func ();
24342 rm -f conftest.$ac_objext conftest$ac_exeext
24343 if { (ac_try="$ac_link"
24344 case "(($ac_try" in
24345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24346 *) ac_try_echo=$ac_try;;
24348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24349 (eval "$ac_link") 2>conftest.er1
24351 grep -v '^
*+' conftest.er1 >conftest.err
24353 cat conftest.err >&5
24354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24355 (exit $ac_status); } && {
24356 test -z "$ac_c_werror_flag" ||
24357 test ! -s conftest.err
24358 } && test -s conftest$ac_exeext &&
24359 $as_test_x conftest$ac_exeext; then
24360 eval "$as_ac_var=yes"
24362 echo "$as_me: failed program was:" >&5
24363 sed 's
/^
/| /' conftest.$ac_ext >&5
24365 eval "$as_ac_var=no"
24368 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24369 conftest$ac_exeext conftest.$ac_ext
24371 ac_res=`eval echo '${'$as_ac_var'}'`
24372 { echo "$as_me:$LINENO: result: $ac_res" >&5
24373 echo "${ECHO_T}$ac_res" >&6; }
24374 if test `eval echo '${'$as_ac_var'}'` = yes; then
24376 cat >>confdefs.h <<_ACEOF
24377 #define CRAY_STACKSEG_END $ac_func
24386 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
24387 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
24388 if test "${ac_cv_c_stack_direction+set}" = set; then
24389 echo $ECHO_N "(cached) $ECHO_C" >&6
24391 if test "$cross_compiling" = yes; then
24392 ac_cv_c_stack_direction=0
24394 cat >conftest.$ac_ext <<_ACEOF
24397 cat confdefs.h >>conftest.$ac_ext
24398 cat >>conftest.$ac_ext <<_ACEOF
24399 /* end confdefs.h. */
24400 $ac_includes_default
24402 find_stack_direction ()
24404 static char *addr = 0;
24409 return find_stack_direction ();
24412 return (&dummy > addr) ? 1 : -1;
24418 return find_stack_direction () < 0;
24421 rm -f conftest$ac_exeext
24422 if { (ac_try="$ac_link"
24423 case "(($ac_try" in
24424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24425 *) ac_try_echo=$ac_try;;
24427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24428 (eval "$ac_link") 2>&5
24430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24431 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
24432 { (case "(($ac_try" in
24433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24434 *) ac_try_echo=$ac_try;;
24436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24437 (eval "$ac_try") 2>&5
24439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24440 (exit $ac_status); }; }; then
24441 ac_cv_c_stack_direction=1
24443 echo "$as_me: program exited with status $ac_status" >&5
24444 echo "$as_me: failed program was:" >&5
24445 sed 's
/^
/| /' conftest.$ac_ext >&5
24447 ( exit $ac_status )
24448 ac_cv_c_stack_direction=-1
24450 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24455 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
24456 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
24458 cat >>confdefs.h <<_ACEOF
24459 #define STACK_DIRECTION $ac_cv_c_stack_direction
24466 for ac_header in vfork.h
24468 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24469 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24470 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24471 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24472 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24473 echo $ECHO_N "(cached) $ECHO_C" >&6
24475 ac_res=`eval echo '${'$as_ac_Header'}'`
24476 { echo "$as_me:$LINENO: result: $ac_res" >&5
24477 echo "${ECHO_T}$ac_res" >&6; }
24479 # Is the header compilable?
24480 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24481 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24482 cat >conftest.$ac_ext <<_ACEOF
24485 cat confdefs.h >>conftest.$ac_ext
24486 cat >>conftest.$ac_ext <<_ACEOF
24487 /* end confdefs.h. */
24488 $ac_includes_default
24489 #include <$ac_header>
24491 rm -f conftest.$ac_objext
24492 if { (ac_try="$ac_compile"
24493 case "(($ac_try" in
24494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24495 *) ac_try_echo=$ac_try;;
24497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24498 (eval "$ac_compile") 2>conftest.er1
24500 grep -v '^
*+' conftest.er1 >conftest.err
24502 cat conftest.err >&5
24503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24504 (exit $ac_status); } && {
24505 test -z "$ac_c_werror_flag" ||
24506 test ! -s conftest.err
24507 } && test -s conftest.$ac_objext; then
24508 ac_header_compiler=yes
24510 echo "$as_me: failed program was:" >&5
24511 sed 's
/^
/| /' conftest.$ac_ext >&5
24513 ac_header_compiler=no
24516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24517 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24518 echo "${ECHO_T}$ac_header_compiler" >&6; }
24520 # Is the header present?
24521 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24522 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24523 cat >conftest.$ac_ext <<_ACEOF
24526 cat confdefs.h >>conftest.$ac_ext
24527 cat >>conftest.$ac_ext <<_ACEOF
24528 /* end confdefs.h. */
24529 #include <$ac_header>
24531 if { (ac_try="$ac_cpp conftest.$ac_ext"
24532 case "(($ac_try" in
24533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24534 *) ac_try_echo=$ac_try;;
24536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24537 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24539 grep -v '^
*+' conftest.er1 >conftest.err
24541 cat conftest.err >&5
24542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24543 (exit $ac_status); } >/dev/null && {
24544 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24545 test ! -s conftest.err
24547 ac_header_preproc=yes
24549 echo "$as_me: failed program was:" >&5
24550 sed 's
/^
/| /' conftest.$ac_ext >&5
24552 ac_header_preproc=no
24555 rm -f conftest.err conftest.$ac_ext
24556 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24557 echo "${ECHO_T}$ac_header_preproc" >&6; }
24559 # So? What about this header?
24560 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24562 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24563 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24564 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result
" >&5
24565 echo "$as_me: WARNING
: $ac_header: proceeding with the compiler
's result" >&2;}
24566 ac_header_preproc=yes
24569 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24570 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24571 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24572 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24573 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24574 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24575 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24576 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24577 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result
" >&5
24578 echo "$as_me: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&2;}
24579 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24580 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24584 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24585 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24586 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24587 echo $ECHO_N "(cached) $ECHO_C" >&6
24589 eval "$as_ac_Header=\$ac_header_preproc"
24591 ac_res=`eval echo '${'$as_ac_Header'}'`
24592 { echo "$as_me:$LINENO: result: $ac_res" >&5
24593 echo "${ECHO_T}$ac_res" >&6; }
24596 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24597 cat >>confdefs.h <<_ACEOF
24598 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24607 for ac_func in fork vfork
24609 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24610 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24611 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24612 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24613 echo $ECHO_N "(cached) $ECHO_C" >&6
24615 cat >conftest.$ac_ext <<_ACEOF
24618 cat confdefs.h >>conftest.$ac_ext
24619 cat >>conftest.$ac_ext <<_ACEOF
24620 /* end confdefs.h. */
24621 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24622 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24623 #define $ac_func innocuous_$ac_func
24625 /* System header to define __stub macros and hopefully few prototypes,
24626 which can conflict with char $ac_func (); below.
24627 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24628 <limits.h> exists even on freestanding compilers. */
24631 # include <limits.h>
24633 # include <assert.h>
24638 /* Override any GCC internal prototype to avoid an error.
24639 Use char because int might match the return type of a GCC
24640 builtin and then its argument prototype would still apply. */
24645 /* The GNU C library defines this for functions which it implements
24646 to always fail with ENOSYS. Some functions are actually named
24647 something starting with __ and the normal name is an alias. */
24648 #if defined __stub_$ac_func || defined __stub___$ac_func
24655 return $ac_func ();
24660 rm -f conftest.$ac_objext conftest$ac_exeext
24661 if { (ac_try="$ac_link"
24662 case "(($ac_try" in
24663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24664 *) ac_try_echo=$ac_try;;
24666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24667 (eval "$ac_link") 2>conftest.er1
24669 grep -v '^
*+' conftest.er1 >conftest.err
24671 cat conftest.err >&5
24672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24673 (exit $ac_status); } && {
24674 test -z "$ac_c_werror_flag" ||
24675 test ! -s conftest.err
24676 } && test -s conftest$ac_exeext &&
24677 $as_test_x conftest$ac_exeext; then
24678 eval "$as_ac_var=yes"
24680 echo "$as_me: failed program was:" >&5
24681 sed 's
/^
/| /' conftest.$ac_ext >&5
24683 eval "$as_ac_var=no"
24686 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24687 conftest$ac_exeext conftest.$ac_ext
24689 ac_res=`eval echo '${'$as_ac_var'}'`
24690 { echo "$as_me:$LINENO: result: $ac_res" >&5
24691 echo "${ECHO_T}$ac_res" >&6; }
24692 if test `eval echo '${'$as_ac_var'}'` = yes; then
24693 cat >>confdefs.h <<_ACEOF
24694 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24700 if test "x$ac_cv_func_fork" = xyes; then
24701 { echo "$as_me:$LINENO: checking for working fork" >&5
24702 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
24703 if test "${ac_cv_func_fork_works+set}" = set; then
24704 echo $ECHO_N "(cached) $ECHO_C" >&6
24706 if test "$cross_compiling" = yes; then
24707 ac_cv_func_fork_works=cross
24709 cat >conftest.$ac_ext <<_ACEOF
24712 cat confdefs.h >>conftest.$ac_ext
24713 cat >>conftest.$ac_ext <<_ACEOF
24714 /* end confdefs.h. */
24715 $ac_includes_default
24720 /* By Ruediger Kuhlmann. */
24721 return fork () < 0;
24727 rm -f conftest$ac_exeext
24728 if { (ac_try="$ac_link"
24729 case "(($ac_try" in
24730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24731 *) ac_try_echo=$ac_try;;
24733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24734 (eval "$ac_link") 2>&5
24736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24737 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
24738 { (case "(($ac_try" in
24739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24740 *) ac_try_echo=$ac_try;;
24742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24743 (eval "$ac_try") 2>&5
24745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24746 (exit $ac_status); }; }; then
24747 ac_cv_func_fork_works=yes
24749 echo "$as_me: program exited with status $ac_status" >&5
24750 echo "$as_me: failed program was:" >&5
24751 sed 's
/^
/| /' conftest.$ac_ext >&5
24753 ( exit $ac_status )
24754 ac_cv_func_fork_works=no
24756 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24761 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
24762 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
24765 ac_cv_func_fork_works=$ac_cv_func_fork
24767 if test "x$ac_cv_func_fork_works" = xcross; then
24769 *-*-amigaos* | *-*-msdosdjgpp*)
24770 # Override, as these systems have only a dummy fork() stub
24771 ac_cv_func_fork_works=no
24774 ac_cv_func_fork_works=yes
24777 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
24778 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
24780 ac_cv_func_vfork_works=$ac_cv_func_vfork
24781 if test "x$ac_cv_func_vfork" = xyes; then
24782 { echo "$as_me:$LINENO: checking for working vfork" >&5
24783 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
24784 if test "${ac_cv_func_vfork_works+set}" = set; then
24785 echo $ECHO_N "(cached) $ECHO_C" >&6
24787 if test "$cross_compiling" = yes; then
24788 ac_cv_func_vfork_works=cross
24790 cat >conftest.$ac_ext <<_ACEOF
24793 cat confdefs.h >>conftest.$ac_ext
24794 cat >>conftest.$ac_ext <<_ACEOF
24795 /* end confdefs.h. */
24796 /* Thanks to Paul Eggert for this test. */
24797 $ac_includes_default
24798 #include <sys/wait.h>
24799 #ifdef HAVE_VFORK_H
24800 # include <vfork.h>
24802 /* On some sparc systems, changes by the child to local and incoming
24803 argument registers are propagated back to the parent. The compiler
24804 is told about this with #include <vfork.h>, but some compilers
24805 (e.g. gcc -O) don't grok
<vfork.h
>. Test
for this by using a
24806 static variable whose address is put into a register that is
24807 clobbered by the vfork.
*/
24810 sparc_address_test
(int arg
)
24812 sparc_address_test
(arg
) int arg
;
24815 static pid_t child
;
24833 pid_t parent
= getpid
();
24836 sparc_address_test
(0);
24841 /* Here is another
test for sparc vfork register problems. This
24842 test uses lots of
local variables
, at least as many
local
24843 variables as main has allocated so far including compiler
24844 temporaries.
4 locals are enough
for gcc
1.40.3 on a Solaris
24845 4.1.3 sparc
, but we use
8 to be safe. A buggy compiler should
24846 reuse the register of parent
for one of the
local variables
,
24847 since it will think that parent can
't possibly be used any more
24848 in this routine. Assigning to the local variable will thus
24849 munge parent in the parent process. */
24851 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
24852 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
24853 /* Convince the compiler that p..p7 are live; otherwise, it might
24854 use the same hardware register for all 8 local variables. */
24855 if (p != p1 || p != p2 || p != p3 || p != p4
24856 || p != p5 || p != p6 || p != p7)
24859 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
24860 from child
file descriptors. If the child closes a descriptor
24861 before it execs or exits
, this munges the parent
's descriptor
24862 as well. Test for this by closing stdout in the child. */
24863 _exit(close(fileno(stdout)) != 0);
24868 while (wait(&status) != child)
24871 /* Was there some problem with vforking? */
24874 /* Did the child fail? (This shouldn't happen.
) */
24877 /* Did the vfork
/compiler bug occur?
*/
24878 || parent
!= getpid
()
24880 /* Did the
file descriptor bug occur?
*/
24881 || fstat
(fileno
(stdout
), &st
) != 0
24886 rm -f conftest
$ac_exeext
24887 if { (ac_try
="$ac_link"
24888 case "(($ac_try" in
24889 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
24890 *) ac_try_echo=$ac_try;;
24892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24893 (eval "$ac_link") 2>&5
24895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24896 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24897 { (case "(($ac_try" in
24898 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
24899 *) ac_try_echo
=$ac_try;;
24901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24902 (eval "$ac_try") 2>&5
24904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24905 (exit $ac_status); }; }; then
24906 ac_cv_func_vfork_works
=yes
24908 echo "$as_me: program exited with status $ac_status" >&5
24909 echo "$as_me: failed program was:" >&5
24910 sed 's/^/| /' conftest.
$ac_ext >&5
24912 ( exit $ac_status )
24913 ac_cv_func_vfork_works
=no
24915 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
24920 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
24921 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
24924 if test "x$ac_cv_func_fork_works" = xcross
; then
24925 ac_cv_func_vfork_works
=$ac_cv_func_vfork
24926 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
24927 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
24930 if test "x$ac_cv_func_vfork_works" = xyes
; then
24932 cat >>confdefs.h
<<\_ACEOF
24933 #define HAVE_WORKING_VFORK 1
24938 cat >>confdefs.h
<<\_ACEOF
24943 if test "x$ac_cv_func_fork_works" = xyes
; then
24945 cat >>confdefs.h
<<\_ACEOF
24946 #define HAVE_WORKING_FORK 1
24953 for ac_header
in stdlib.h unistd.h
24955 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24956 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24957 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24958 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24959 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24960 echo $ECHO_N "(cached) $ECHO_C" >&6
24962 ac_res
=`eval echo '${'$as_ac_Header'}'`
24963 { echo "$as_me:$LINENO: result: $ac_res" >&5
24964 echo "${ECHO_T}$ac_res" >&6; }
24966 # Is the header compilable?
24967 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24968 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24969 cat >conftest.
$ac_ext <<_ACEOF
24972 cat confdefs.h
>>conftest.
$ac_ext
24973 cat >>conftest.
$ac_ext <<_ACEOF
24974 /* end confdefs.h. */
24975 $ac_includes_default
24976 #include <$ac_header>
24978 rm -f conftest.
$ac_objext
24979 if { (ac_try
="$ac_compile"
24980 case "(($ac_try" in
24981 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
24982 *) ac_try_echo=$ac_try;;
24984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24985 (eval "$ac_compile") 2>conftest.er1
24987 grep -v '^ *+' conftest.er1 >conftest.err
24989 cat conftest.err >&5
24990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24991 (exit $ac_status); } && {
24992 test -z "$ac_c_werror_flag" ||
24993 test ! -s conftest.err
24994 } && test -s conftest.$ac_objext; then
24995 ac_header_compiler=yes
24997 echo "$as_me: failed program was:" >&5
24998 sed 's/^/| /' conftest.$ac_ext >&5
25000 ac_header_compiler=no
25003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25004 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25005 echo "${ECHO_T}$ac_header_compiler" >&6; }
25007 # Is the header present?
25008 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
25009 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
25010 cat >conftest.$ac_ext <<_ACEOF
25013 cat confdefs.h >>conftest.$ac_ext
25014 cat >>conftest.$ac_ext <<_ACEOF
25015 /* end confdefs.h. */
25016 #include <$ac_header>
25018 if { (ac_try="$ac_cpp conftest.$ac_ext"
25019 case "(($ac_try" in
25020 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
25021 *) ac_try_echo
=$ac_try;;
25023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25024 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25026 grep -v '^ *+' conftest.er1
>conftest.err
25028 cat conftest.err
>&5
25029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25030 (exit $ac_status); } >/dev
/null
&& {
25031 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25032 test ! -s conftest.err
25034 ac_header_preproc
=yes
25036 echo "$as_me: failed program was:" >&5
25037 sed 's/^/| /' conftest.
$ac_ext >&5
25039 ac_header_preproc
=no
25042 rm -f conftest.err conftest.
$ac_ext
25043 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25044 echo "${ECHO_T}$ac_header_preproc" >&6; }
25046 # So? What about this header?
25047 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25049 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25050 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25051 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25052 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25053 ac_header_preproc
=yes
25056 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25057 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25058 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25059 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25060 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25061 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25062 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25063 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25064 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25065 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25066 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25067 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25071 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25072 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25073 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25074 echo $ECHO_N "(cached) $ECHO_C" >&6
25076 eval "$as_ac_Header=\$ac_header_preproc"
25078 ac_res
=`eval echo '${'$as_ac_Header'}'`
25079 { echo "$as_me:$LINENO: result: $ac_res" >&5
25080 echo "${ECHO_T}$ac_res" >&6; }
25083 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25084 cat >>confdefs.h
<<_ACEOF
25085 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25093 for ac_func
in getpagesize
25095 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25096 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25097 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25098 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25099 echo $ECHO_N "(cached) $ECHO_C" >&6
25101 cat >conftest.
$ac_ext <<_ACEOF
25104 cat confdefs.h
>>conftest.
$ac_ext
25105 cat >>conftest.
$ac_ext <<_ACEOF
25106 /* end confdefs.h. */
25107 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25108 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25109 #define $ac_func innocuous_$ac_func
25111 /* System header to define __stub macros and hopefully few prototypes,
25112 which can conflict with char $ac_func (); below.
25113 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25114 <limits.h> exists even on freestanding compilers. */
25117 # include <limits.h>
25119 # include <assert.h>
25124 /* Override any GCC internal prototype to avoid an error.
25125 Use char because int might match the return type of a GCC
25126 builtin and then its argument prototype would still apply. */
25131 /* The GNU C library defines this for functions which it implements
25132 to always fail with ENOSYS. Some functions are actually named
25133 something starting with __ and the normal name is an alias. */
25134 #if defined __stub_$ac_func || defined __stub___$ac_func
25141 return $ac_func ();
25146 rm -f conftest.
$ac_objext conftest
$ac_exeext
25147 if { (ac_try
="$ac_link"
25148 case "(($ac_try" in
25149 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
25150 *) ac_try_echo=$ac_try;;
25152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25153 (eval "$ac_link") 2>conftest.er1
25155 grep -v '^ *+' conftest.er1 >conftest.err
25157 cat conftest.err >&5
25158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25159 (exit $ac_status); } && {
25160 test -z "$ac_c_werror_flag" ||
25161 test ! -s conftest.err
25162 } && test -s conftest$ac_exeext &&
25163 $as_test_x conftest$ac_exeext; then
25164 eval "$as_ac_var=yes"
25166 echo "$as_me: failed program was:" >&5
25167 sed 's/^/| /' conftest.$ac_ext >&5
25169 eval "$as_ac_var=no"
25172 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25173 conftest$ac_exeext conftest.$ac_ext
25175 ac_res=`eval echo '${'$as_ac_var'}'`
25176 { echo "$as_me:$LINENO: result: $ac_res" >&5
25177 echo "${ECHO_T}$ac_res" >&6; }
25178 if test `eval echo '${'$as_ac_var'}'` = yes; then
25179 cat >>confdefs.h <<_ACEOF
25180 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25186 { echo "$as_me:$LINENO: checking for working mmap" >&5
25187 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
25188 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
25189 echo $ECHO_N "(cached) $ECHO_C" >&6
25191 if test "$cross_compiling" = yes; then
25192 ac_cv_func_mmap_fixed_mapped=no
25194 cat >conftest.$ac_ext <<_ACEOF
25197 cat confdefs.h >>conftest.$ac_ext
25198 cat >>conftest.$ac_ext <<_ACEOF
25199 /* end confdefs.h. */
25200 $ac_includes_default
25201 /* malloc might have been renamed as rpl_malloc. */
25204 /* Thanks to Mike Haertel and Jim Avera for this test.
25205 Here is a matrix of mmap possibilities:
25206 mmap private not fixed
25207 mmap private fixed at somewhere currently unmapped
25208 mmap private fixed at somewhere already mapped
25209 mmap shared not fixed
25210 mmap shared fixed at somewhere currently unmapped
25211 mmap shared fixed at somewhere already mapped
25212 For private mappings, we should verify that changes cannot be read()
25213 back from the file, nor mmap's back from the file at a different
25214 address. (There have been systems where private was not correctly
25215 implemented like the infamous i386 svr4.0, and systems where the
25216 VM page cache was not coherent with the file system buffer cache
25217 like early versions of FreeBSD and possibly contemporary NetBSD.)
25218 For shared mappings, we should conversely verify that changes get
25219 propagated back to all the places they're supposed to be.
25221 Grep wants private fixed already mapped.
25222 The main things grep needs to know about mmap are:
25223 * does it exist and is it safe to write into the mmap'd area
25224 * how to use it (BSD variants) */
25227 #include <sys/mman.h>
25229 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
25233 /* This mess was copied from the GNU getpagesize.h. */
25234 #ifndef HAVE_GETPAGESIZE
25235 /* Assume that all systems that can run configure have sys/param.h. */
25236 # ifndef HAVE_SYS_PARAM_H
25237 # define HAVE_SYS_PARAM_H 1
25240 # ifdef _SC_PAGESIZE
25241 # define getpagesize() sysconf(_SC_PAGESIZE)
25242 # else /* no _SC_PAGESIZE */
25243 # ifdef HAVE_SYS_PARAM_H
25244 # include <sys/param.h>
25245 # ifdef EXEC_PAGESIZE
25246 # define getpagesize() EXEC_PAGESIZE
25247 # else /* no EXEC_PAGESIZE */
25249 # define getpagesize() NBPG * CLSIZE
25252 # endif /* no CLSIZE */
25253 # else /* no NBPG */
25255 # define getpagesize() NBPC
25256 # else /* no NBPC */
25258 # define getpagesize() PAGESIZE
25259 # endif /* PAGESIZE */
25260 # endif /* no NBPC */
25261 # endif /* no NBPG */
25262 # endif /* no EXEC_PAGESIZE */
25263 # else /* no HAVE_SYS_PARAM_H */
25264 # define getpagesize() 8192 /* punt totally */
25265 # endif /* no HAVE_SYS_PARAM_H */
25266 # endif /* no _SC_PAGESIZE */
25268 #endif /* no HAVE_GETPAGESIZE */
25273 char *data, *data2, *data3;
25277 pagesize = getpagesize ();
25279 /* First, make a file with some known garbage in it. */
25280 data = (char *) malloc (pagesize);
25283 for (i = 0; i < pagesize; ++i)
25284 *(data + i) = rand ();
25286 fd = creat ("conftest.mmap", 0600);
25289 if (write (fd, data, pagesize) != pagesize)
25293 /* Next, try to mmap the file at a fixed address which already has
25294 something else allocated at it. If we can, also make sure that
25295 we see the same garbage. */
25296 fd = open ("conftest.mmap", O_RDWR);
25299 data2 = (char *) malloc (2 * pagesize);
25302 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
25303 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
25304 MAP_PRIVATE | MAP_FIXED, fd, 0L))
25306 for (i = 0; i < pagesize; ++i)
25307 if (*(data + i) != *(data2 + i))
25310 /* Finally, make sure that changes to the mapped area do not
25311 percolate back to the file as seen by read(). (This is a bug on
25312 some variants of i386 svr4.0.) */
25313 for (i = 0; i < pagesize; ++i)
25314 *(data2 + i) = *(data2 + i) + 1;
25315 data3 = (char *) malloc (pagesize);
25318 if (read (fd, data3, pagesize) != pagesize)
25320 for (i = 0; i < pagesize; ++i)
25321 if (*(data + i) != *(data3 + i))
25327 rm -f conftest$ac_exeext
25328 if { (ac_try="$ac_link"
25329 case "(($ac_try" in
25330 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
25331 *) ac_try_echo
=$ac_try;;
25333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25334 (eval "$ac_link") 2>&5
25336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25337 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
25338 { (case "(($ac_try" in
25339 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
25340 *) ac_try_echo=$ac_try;;
25342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25343 (eval "$ac_try") 2>&5
25345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25346 (exit $ac_status); }; }; then
25347 ac_cv_func_mmap_fixed_mapped=yes
25349 echo "$as_me: program exited with status $ac_status" >&5
25350 echo "$as_me: failed program was:" >&5
25351 sed 's/^/| /' conftest.$ac_ext >&5
25353 ( exit $ac_status )
25354 ac_cv_func_mmap_fixed_mapped=no
25356 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25361 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
25362 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
25363 if test $ac_cv_func_mmap_fixed_mapped = yes; then
25365 cat >>confdefs.h <<\_ACEOF
25366 #define HAVE_MMAP 1
25370 rm -f conftest.mmap
25373 { echo "$as_me:$LINENO: checking for /dev/poll" >&5
25374 echo $ECHO_N "checking for /dev/poll... $ECHO_C" >&6; }
25375 if test -c "/dev/poll"; then
25376 { echo "$as_me:$LINENO: result: yes" >&5
25377 echo "${ECHO_T}yes" >&6; }
25379 cat >>confdefs.h <<\_ACEOF
25380 #define HAVE_DEVPOLL 1
25384 { echo "$as_me:$LINENO: result: no" >&5
25385 echo "${ECHO_T}no" >&6; }
25389 if test "$is_mingw" = "yes"; then
25391 cat >>confdefs.h <<\_ACEOF
25392 #define HAVE_WIN32 1
25398 { echo "$as_me:$LINENO: checking for OpenSSL" >&5
25399 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6; }
25400 # Check whether --enable-openssl was given.
25401 if test "${enable_openssl+set}" = set; then
25402 enableval=$enable_openssl; cf_enable_openssl=$enableval
25404 cf_enable_openssl="auto"
25408 if test "$cf_enable_openssl" != "no" ; then
25409 cf_openssl_basedir=""
25410 if test "$cf_enable_openssl" != "auto" &&
25411 test "$cf_enable_openssl" != "yes" ; then
25412 cf_openssl_basedir="`echo ${cf_enable_openssl} | sed 's/\/$//'`"
25414 for dirs in /usr/local/ssl /usr/pkg /usr/local \
25415 /usr/local/openssl ; do
25416 if test -f "${dirs}/include/openssl/opensslv.h" ; then
25417 cf_openssl_basedir="${dirs}"
25423 if test ! -z "$cf_openssl_basedir"; then
25424 if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h" ; then
25425 SSL_INCLUDES="-I${cf_openssl_basedir}/include"
25426 SSL_LIBS="-L${cf_openssl_basedir}/lib"
25428 cf_openssl_basedir=""
25431 if test -f "/usr/include/openssl/opensslv.h" ; then
25432 cf_openssl_basedir="/usr"
25436 if test ! -z "$cf_openssl_basedir"; then
25437 { echo "$as_me:$LINENO: result: $cf_openssl_basedir" >&5
25438 echo "${ECHO_T}$cf_openssl_basedir" >&6; }
25439 cf_enable_openssl="yes"
25441 { echo "$as_me:$LINENO: result: not found. Specify a correct path?" >&5
25442 echo "${ECHO_T}not found. Specify a correct path?" >&6; }
25443 cf_enable_openssl="no"
25445 unset cf_openssl_basedir
25447 { echo "$as_me:$LINENO: result: disabled" >&5
25448 echo "${ECHO_T}disabled" >&6; }
25451 save_CPPFLAGS="$CPPFLAGS"
25452 CPPFLAGS="$CPPFLAGS $SSL_INCLUDES"
25454 LIBS="$LIBS $SSL_LIBS"
25455 if test "$cf_enable_openssl" != no; then
25456 { echo "$as_me:$LINENO: checking for OpenSSL 0.9.7 or above" >&5
25457 echo $ECHO_N "checking for OpenSSL 0.9.7 or above... $ECHO_C" >&6; }
25458 if test "$cross_compiling" = yes; then
25459 cf_enable_openssl=no
25461 cat >conftest.$ac_ext <<_ACEOF
25464 cat confdefs.h >>conftest.$ac_ext
25465 cat >>conftest.$ac_ext <<_ACEOF
25466 /* end confdefs.h. */
25467 #include <openssl/opensslv.h>
25468 #include <stdlib.h>
25472 if (OPENSSL_VERSION_NUMBER >= 0x00907000)
25473 exit(0); else exit(1);
25478 rm -f conftest$ac_exeext
25479 if { (ac_try="$ac_link"
25480 case "(($ac_try" in
25481 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
25482 *) ac_try_echo
=$ac_try;;
25484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25485 (eval "$ac_link") 2>&5
25487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25488 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
25489 { (case "(($ac_try" in
25490 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
25491 *) ac_try_echo=$ac_try;;
25493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25494 (eval "$ac_try") 2>&5
25496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25497 (exit $ac_status); }; }; then
25498 cf_enable_openssl=yes
25500 echo "$as_me: program exited with status $ac_status" >&5
25501 echo "$as_me: failed program was:" >&5
25502 sed 's/^/| /' conftest.$ac_ext >&5
25504 ( exit $ac_status )
25505 cf_enable_openssl=no
25507 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25512 if test "$cf_enable_openssl" != no; then
25513 { echo "$as_me:$LINENO: result: found" >&5
25514 echo "${ECHO_T}found" >&6; }
25516 { echo "$as_me:$LINENO: result: no - OpenSSL support disabled" >&5
25517 echo "${ECHO_T}no - OpenSSL support disabled" >&6; }
25523 if test "$cf_enable_openssl" != no; then
25524 CPPFLAGS="$CPPFLAGS $SSL_LIBS"
25525 { echo "$as_me:$LINENO: checking for RAND_status in -lcrypto" >&5
25526 echo $ECHO_N "checking for RAND_status in -lcrypto... $ECHO_C" >&6; }
25527 if test "${ac_cv_lib_crypto_RAND_status+set}" = set; then
25528 echo $ECHO_N "(cached) $ECHO_C" >&6
25530 ac_check_lib_save_LIBS=$LIBS
25531 LIBS="-lcrypto $LIBS"
25532 cat >conftest.$ac_ext <<_ACEOF
25535 cat confdefs.h >>conftest.$ac_ext
25536 cat >>conftest.$ac_ext <<_ACEOF
25537 /* end confdefs.h. */
25539 /* Override any GCC internal prototype to avoid an error.
25540 Use char because int might match the return type of a GCC
25541 builtin and then its argument prototype would still apply. */
25545 char RAND_status ();
25549 return RAND_status ();
25554 rm -f conftest.$ac_objext conftest$ac_exeext
25555 if { (ac_try="$ac_link"
25556 case "(($ac_try" in
25557 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
25558 *) ac_try_echo
=$ac_try;;
25560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25561 (eval "$ac_link") 2>conftest.er1
25563 grep -v '^ *+' conftest.er1
>conftest.err
25565 cat conftest.err
>&5
25566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25567 (exit $ac_status); } && {
25568 test -z "$ac_c_werror_flag" ||
25569 test ! -s conftest.err
25570 } && test -s conftest
$ac_exeext &&
25571 $as_test_x conftest
$ac_exeext; then
25572 ac_cv_lib_crypto_RAND_status
=yes
25574 echo "$as_me: failed program was:" >&5
25575 sed 's/^/| /' conftest.
$ac_ext >&5
25577 ac_cv_lib_crypto_RAND_status
=no
25580 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
25581 conftest
$ac_exeext conftest.
$ac_ext
25582 LIBS
=$ac_check_lib_save_LIBS
25584 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_RAND_status" >&5
25585 echo "${ECHO_T}$ac_cv_lib_crypto_RAND_status" >&6; }
25586 if test $ac_cv_lib_crypto_RAND_status = yes; then
25587 cf_enable_openssl
=yes
25589 cf_enable_openssl
=no
25595 if test "$cf_enable_openssl" != no
; then
25596 CPPFLAGS
="$CPPFLAGS $SSL_LIBS"
25597 { echo "$as_me:$LINENO: checking for SSL_read in -lssl" >&5
25598 echo $ECHO_N "checking for SSL_read in -lssl... $ECHO_C" >&6; }
25599 if test "${ac_cv_lib_ssl_SSL_read+set}" = set; then
25600 echo $ECHO_N "(cached) $ECHO_C" >&6
25602 ac_check_lib_save_LIBS
=$LIBS
25603 LIBS
="-lssl -lcrypto $LIBS"
25604 cat >conftest.
$ac_ext <<_ACEOF
25607 cat confdefs.h
>>conftest.
$ac_ext
25608 cat >>conftest.
$ac_ext <<_ACEOF
25609 /* end confdefs.h. */
25611 /* Override any GCC internal prototype to avoid an error.
25612 Use char because int might match the return type of a GCC
25613 builtin and then its argument prototype would still apply. */
25621 return SSL_read ();
25626 rm -f conftest.
$ac_objext conftest
$ac_exeext
25627 if { (ac_try
="$ac_link"
25628 case "(($ac_try" in
25629 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
25630 *) ac_try_echo=$ac_try;;
25632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25633 (eval "$ac_link") 2>conftest.er1
25635 grep -v '^ *+' conftest.er1 >conftest.err
25637 cat conftest.err >&5
25638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25639 (exit $ac_status); } && {
25640 test -z "$ac_c_werror_flag" ||
25641 test ! -s conftest.err
25642 } && test -s conftest$ac_exeext &&
25643 $as_test_x conftest$ac_exeext; then
25644 ac_cv_lib_ssl_SSL_read=yes
25646 echo "$as_me: failed program was:" >&5
25647 sed 's/^/| /' conftest.$ac_ext >&5
25649 ac_cv_lib_ssl_SSL_read=no
25652 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25653 conftest$ac_exeext conftest.$ac_ext
25654 LIBS=$ac_check_lib_save_LIBS
25656 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_read" >&5
25657 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_read" >&6; }
25658 if test $ac_cv_lib_ssl_SSL_read = yes; then
25659 SSL_LIBS="-lssl -lcrypto"
25661 cf_enable_openssl=no
25666 if test "$cf_enable_openssl" != no; then
25668 cat >>confdefs.h <<\_ACEOF
25669 #define HAVE_OPENSSL 1
25675 CPPFLAGS="$save_CPPFLAGS"
25683 # Check whether --enable-assert was given.
25684 if test "${enable_assert+set}" = set; then
25685 enableval=$enable_assert; assert=$enableval
25691 if test "$assert" = no; then
25693 cat >>confdefs.h <<\_ACEOF
25697 elif test "$assert" = soft; then
25699 cat >>confdefs.h <<\_ACEOF
25700 #define SOFT_ASSERT 1
25704 cat >>confdefs.h <<\_ACEOF
25708 elif test "$assert" = yes; then
25712 { echo "$as_me:$LINENO: checking if you want to do a profile build" >&5
25713 echo $ECHO_N "checking if you want to do a profile build... $ECHO_C" >&6; }
25714 # Check whether --enable-profile was given.
25715 if test "${enable_profile+set}" = set; then
25716 enableval=$enable_profile; profile=$enableval
25722 if test "$profile" = yes; then
25723 if test "$ac_cv_c_compiler_gnu" = yes; then
25724 CFLAGS="$CFLAGS -pg -static"
25725 { echo "$as_me:$LINENO: result: yes, adding -pg -static" >&5
25726 echo "${ECHO_T}yes, adding -pg -static" >&6; }
25728 cat >>confdefs.h <<\_ACEOF
25729 #define RATBOX_PROFILE 1
25733 { echo "$as_me:$LINENO: result: no, profile builds only work with gcc" >&5
25734 echo "${ECHO_T}no, profile builds only work with gcc" >&6; }
25737 { echo "$as_me:$LINENO: result: no" >&5
25738 echo "${ECHO_T}no" >&6; }
25741 # Check whether --enable-balloc was given.
25742 if test "${enable_balloc+set}" = set; then
25743 enableval=$enable_balloc; balloc=$enableval
25749 if test "$balloc" = no; then
25751 cat >>confdefs.h <<\_ACEOF
25757 # Check whether --enable-warnings was given.
25758 if test "${enable_warnings+set}" = set; then
25759 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"
25771 if test "$prefix" = "NONE"; then
25773 cat >>confdefs.h <<_ACEOF
25774 #define RB_PREFIX "$ac_default_prefix"
25781 prefix=`echo $prefix | sed 's/\/$//'`
25783 cat >>confdefs.h <<_ACEOF
25784 #define RB_PREFIX "$prefix"
25792 for dtype in uint64_t uint32_t uint16_t uint8_t int64_t int32_t int16_t int8_t intmax_t intptr_t uintmax_t uintptr_t
25794 var="\$ac_cv_c_${dtype}"
25795 t_type=$(eval echo $var);
25796 if test "x$t_type" = "xyes"; then
25797 eval rb_$dtype="\"$dtype\""
25799 eval rb_$dtype="\"$t_type\""
25803 ac_config_commands="$ac_config_commands include/librb-config.h"
25807 ac_config_files="$ac_config_files src/Makefile Makefile"
25810 cat >confcache <<\_ACEOF
25811 # This file is a shell script that caches the results of configure
25812 # tests run on this system so they can be shared between configure
25813 # scripts and configure runs, see configure's option --config-cache.
25814 # It is not useful on other systems. If it contains results you don't
25815 # want to keep, you may remove or edit it.
25817 # config.status only pays attention to the cache file if you give it
25818 # the --recheck option to rerun configure.
25820 # `ac_cv_env_foo
' variables (set or unset) will be overridden when
25821 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25822 # following values.
25826 # The following way of writing the cache mishandles newlines in values,
25827 # but we know of no workaround that is simple, portable, and efficient.
25828 # So, we kill variables containing newlines.
25829 # Ultrix sh set writes to stderr and can't be redirected directly,
25830 # and sets the high bit in the cache file unless we assign to the vars.
25832 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25833 eval ac_val
=\$
$ac_var
25837 *_cv_
*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
25838 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
25841 _
| IFS
| as_nl
) ;; #(
25842 *) $as_unset $ac_var ;;
25848 case $as_nl`(ac_space=' '; set) 2>&1` in #(
25849 *${as_nl}ac_space
=\
*)
25850 # `set' does not quote correctly, so add quotes (double-quote
25851 # substitution turns \\\\ into \\, and sed turns \\ into \).
25854 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25857 # `set' quotes correctly as required by POSIX, so do not add quotes.
25858 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25867 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25869 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25871 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
25872 if test -w "$cache_file"; then
25873 test "x$cache_file" != "x/dev/null" &&
25874 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
25875 echo "$as_me: updating cache $cache_file" >&6;}
25876 cat confcache
>$cache_file
25878 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
25879 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25884 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
25885 # Let make expand exec_prefix.
25886 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
25888 DEFS
=-DHAVE_CONFIG_H
25892 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
25893 # 1. Remove the extension, and $U if already installed.
25894 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
25895 ac_i
=`echo "$ac_i" | sed "$ac_script"`
25896 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
25897 # will be set to the directory where LIBOBJS objects are built.
25898 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25899 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
25901 LIBOBJS
=$ac_libobjs
25903 LTLIBOBJS
=$ac_ltlibobjs
25906 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
25907 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
25908 Usually this means the macro was only invoked conditionally." >&5
25909 echo "$as_me: error: conditional \"AMDEP\" was never defined.
25910 Usually this means the macro was only invoked conditionally." >&2;}
25911 { (exit 1); exit 1; }; }
25913 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
25914 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
25915 Usually this means the macro was only invoked conditionally." >&5
25916 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
25917 Usually this means the macro was only invoked conditionally." >&2;}
25918 { (exit 1); exit 1; }; }
25920 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
25921 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
25922 Usually this means the macro was only invoked conditionally." >&5
25923 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
25924 Usually this means the macro was only invoked conditionally." >&2;}
25925 { (exit 1); exit 1; }; }
25927 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
25928 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
25929 Usually this means the macro was only invoked conditionally." >&5
25930 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
25931 Usually this means the macro was only invoked conditionally." >&2;}
25932 { (exit 1); exit 1; }; }
25934 if test -z "${MINGW_TRUE}" && test -z "${MINGW_FALSE}"; then
25935 { { echo "$as_me:$LINENO: error: conditional \"MINGW\" was never defined.
25936 Usually this means the macro was only invoked conditionally." >&5
25937 echo "$as_me: error: conditional \"MINGW\" was never defined.
25938 Usually this means the macro was only invoked conditionally." >&2;}
25939 { (exit 1); exit 1; }; }
25941 if test -z "${NEED_CRYPT_TRUE}" && test -z "${NEED_CRYPT_FALSE}"; then
25942 { { echo "$as_me:$LINENO: error: conditional \"NEED_CRYPT\" was never defined.
25943 Usually this means the macro was only invoked conditionally." >&5
25944 echo "$as_me: error: conditional \"NEED_CRYPT\" was never defined.
25945 Usually this means the macro was only invoked conditionally." >&2;}
25946 { (exit 1); exit 1; }; }
25949 : ${CONFIG_STATUS=./config.status}
25950 ac_clean_files_save
=$ac_clean_files
25951 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
25952 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
25953 echo "$as_me: creating $CONFIG_STATUS" >&6;}
25954 cat >$CONFIG_STATUS <<_ACEOF
25956 # Generated by $as_me.
25957 # Run this file to recreate the current configuration.
25958 # Compiler output produced by configure, useful for debugging
25959 # configure, is in config.log if it exists.
25962 ac_cs_recheck=false
25964 SHELL=\${CONFIG_SHELL-$SHELL}
25967 cat >>$CONFIG_STATUS <<\_ACEOF
25968 ## --------------------- ##
25969 ## M4sh Initialization. ##
25970 ## --------------------- ##
25972 # Be more Bourne compatible
25973 DUALCASE
=1; export DUALCASE
# for MKS sh
25974 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
25977 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25978 # is contrary to our usage. Disable this feature.
25979 alias -g '${1+"$@"}'='"$@"'
25980 setopt NO_GLOB_SUBST
25982 case `(set -o) 2>/dev/null` in
25983 *posix
*) set -o posix
;;
25992 # Avoid depending upon Character Ranges.
25993 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
25994 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25995 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
25996 as_cr_digits
='0123456789'
25997 as_cr_alnum
=$as_cr_Letters$as_cr_digits
25999 # The user is always right.
26000 if test "${PATH_SEPARATOR+set}" != set; then
26001 echo "#! /bin/sh" >conf$$.sh
26002 echo "exit 0" >>conf$$.sh
26004 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
26012 # Support unset when possible.
26013 if ( (MAIL
=60; unset MAIL
) || exit) >/dev
/null
2>&1; then
26021 # We need space, tab and new line, in precisely that order. Quoting is
26022 # there to prevent editors from complaining about space-tab.
26023 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26024 # splitting by setting IFS to empty value.)
26029 # Find who we are. Look in the path if we contain no directory separator.
26031 *[\\/]* ) as_myself
=$0 ;;
26032 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
26033 for as_dir
in $PATH
26036 test -z "$as_dir" && as_dir
=.
26037 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
26043 # We did not find ourselves, most probably we were run as `sh COMMAND'
26044 # in which case we are not to be found in the path.
26045 if test "x$as_myself" = x
; then
26048 if test ! -f "$as_myself"; then
26049 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26050 { (exit 1); exit 1; }
26053 # Work around bugs in pre-3.0 UWIN ksh.
26054 for as_var
in ENV MAIL MAILPATH
26055 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
26063 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
26064 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
26065 LC_TELEPHONE LC_TIME
26067 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
26068 eval $as_var=C
; export $as_var
26070 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
26074 # Required to use basename.
26075 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
26076 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
26082 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26083 as_basename
=basename
26089 # Name of the executable.
26090 as_me
=`$as_basename -- "$0" ||
26091 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26092 X"$0" : 'X\(//\)$' \| \
26093 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26095 sed '/^.*\/\([^/][^/]*\)\/*$/{
26114 as_lineno_1
=$LINENO
26115 as_lineno_2
=$LINENO
26116 test "x$as_lineno_1" != "x$as_lineno_2" &&
26117 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
26119 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26120 # uniformly replaced by the line number. The first 'sed' inserts a
26121 # line-number line after each line using $LINENO; the second 'sed'
26122 # does the real work. The second script uses 'N' to pair each
26123 # line-number line with the line containing $LINENO, and appends
26124 # trailing '-' during substitution so that $LINENO is not a special
26125 # case at line end.
26126 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26127 # scripts with optimization help from Paolo Bonzini. Blame Lee
26128 # E. McMahon (1931-1989) for sed's syntax. :-)
26140 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
26143 ' >$as_me.lineno
&&
26144 chmod +x
"$as_me.lineno" ||
26145 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
26146 { (exit 1); exit 1; }; }
26148 # Don't try to exec as it changes $[0], causing all sort of problems
26149 # (the dirname of $[0] is not the place where we might find the
26150 # original and so on. Autoconf is especially sensitive to this).
26151 .
"./$as_me.lineno"
26152 # Exit status is that of the last command.
26157 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
26163 ECHO_C
= ECHO_N
= ECHO_T
=
26164 case `echo -n x` in
26166 case `echo 'x\c'` in
26167 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
26174 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
26175 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
26181 rm -f conf$$ conf$$.exe conf$$.
file
26182 if test -d conf$$.dir
; then
26183 rm -f conf$$.dir
/conf$$.
file
26189 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
26191 # ... but there are two gotchas:
26192 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26193 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26194 # In both cases, we have to default to `cp -p'.
26195 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe
||
26197 elif ln conf$$.
file conf$$
2>/dev
/null
; then
26202 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
26203 rmdir conf$$.dir
2>/dev
/null
26205 if mkdir -p .
2>/dev
/null
; then
26208 test -d .
/-p && rmdir .
/-p
26212 if test -x / >/dev
/null
2>&1; then
26213 as_test_x
='test -x'
26215 if ls -dL / >/dev
/null
2>&1; then
26222 if test -d "$1"; then
26228 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
26229 ???[sx]*):;;*)false;;esac;fi
26233 as_executable_p
=$as_test_x
26235 # Sed expression to map a string onto a valid CPP name.
26236 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26238 # Sed expression to map a string onto a valid variable name.
26239 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26244 # Save the log message, to keep $[0] and so on meaningful, and to
26245 # report actual input values of CONFIG_FILES etc. instead of their
26246 # values after options handling.
26248 This file was extended by libratbox $as_me devel, which was
26249 generated by GNU Autoconf 2.61. Invocation command line was
26251 CONFIG_FILES = $CONFIG_FILES
26252 CONFIG_HEADERS = $CONFIG_HEADERS
26253 CONFIG_LINKS = $CONFIG_LINKS
26254 CONFIG_COMMANDS = $CONFIG_COMMANDS
26257 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26262 cat >>$CONFIG_STATUS <<_ACEOF
26263 # Files that config.status was made for.
26264 config_files="$ac_config_files"
26265 config_headers="$ac_config_headers"
26266 config_commands="$ac_config_commands"
26270 cat >>$CONFIG_STATUS <<\_ACEOF
26272 \`$as_me' instantiates files from templates according to the
26273 current configuration.
26275 Usage: $0 [OPTIONS] [FILE]...
26277 -h, --help print this help, then exit
26278 -V, --version print version number and configuration settings, then exit
26279 -q, --quiet do not print progress messages
26280 -d, --debug don't remove temporary files
26281 --recheck update $as_me by reconfiguring in the same conditions
26282 --file=FILE[:TEMPLATE]
26283 instantiate the configuration file FILE
26284 --header=FILE[:TEMPLATE]
26285 instantiate the configuration header FILE
26287 Configuration files:
26290 Configuration headers:
26293 Configuration commands:
26296 Report bugs to <bug-autoconf@gnu.org>."
26299 cat >>$CONFIG_STATUS <<_ACEOF
26301 libratbox config.status devel
26302 configured by $0, generated by GNU Autoconf 2.61,
26303 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
26305 Copyright (C) 2006 Free Software Foundation, Inc.
26306 This config.status script is free software; the Free Software Foundation
26307 gives unlimited permission to copy, distribute and modify it."
26315 cat >>$CONFIG_STATUS <<\_ACEOF
26316 # If no file are specified by the user, then we need to provide default
26317 # value. By we need to know if files were specified by the user.
26323 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
26324 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
26335 # Handling of the options.
26336 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26338 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26339 echo "$ac_cs_version"; exit ;;
26340 --debug | --debu | --deb | --de | --d | -d )
26342 --file | --fil | --fi | --f )
26344 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
26345 ac_need_defaults
=false
;;
26346 --header | --heade | --head | --hea )
26348 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
26349 ac_need_defaults
=false
;;
26351 # Conflict between --help and --header
26352 { echo "$as_me: error: ambiguous option: $1
26353 Try \`$0 --help' for more information." >&2
26354 { (exit 1); exit 1; }; };;
26355 --help | --hel | -h )
26356 echo "$ac_cs_usage"; exit ;;
26357 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26358 | -silent | --silent | --silen | --sile | --sil | --si | --s)
26361 # This is an error.
26362 -*) { echo "$as_me: error: unrecognized option: $1
26363 Try \`$0 --help' for more information." >&2
26364 { (exit 1); exit 1; }; } ;;
26366 *) ac_config_targets
="$ac_config_targets $1"
26367 ac_need_defaults
=false
;;
26373 ac_configure_extra_args
=
26375 if $ac_cs_silent; then
26377 ac_configure_extra_args
="$ac_configure_extra_args --silent"
26381 cat >>$CONFIG_STATUS <<_ACEOF
26382 if \$ac_cs_recheck; then
26383 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
26384 CONFIG_SHELL=$SHELL
26385 export CONFIG_SHELL
26386 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26390 cat >>$CONFIG_STATUS <<\_ACEOF
26394 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26395 ## Running $as_me. ##
26401 cat >>$CONFIG_STATUS <<_ACEOF
26405 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
26407 rb_uint64_t="$rb_uint64_t"
26408 rb_uint32_t="$rb_uint32_t"
26409 rb_uint16_t="$rb_uint16_t"
26410 rb_uint8_t="$rb_uint8_t"
26411 rb_int64_t="$rb_int64_t"
26412 rb_int32_t="$rb_int32_t"
26413 rb_int16_t="$rb_int16_t"
26414 rb_int8_t="$rb_int8_t"
26415 rb_intmax_t="$rb_intmax_t"
26416 rb_intptr_t="$rb_intptr_t"
26417 rb_uintmax_t="$rb_uintmax_t"
26418 rb_uintptr_t="$rb_uintptr_t"
26419 if test x$ac_cv_header_stdc = xyes; then
26422 if test x$ac_cv_header_stdlib_h = xyes; then
26423 rb_header_stdlib_h=yes
26425 if test x$ac_cv_header_string_h = xyes; then
26426 rb_header_string_h=yes
26428 if test x$ac_cv_header_memory_h = xyes; then
26429 rb_header_memory_h=yes
26431 if test "x${ac_cv_working_alloca_h+set}" = xset ; then
26432 rb_alloca_h="$ac_cv_working_alloca_h"
26434 rb_alloc_h="$ac_cv_header_alloca_h"
26436 if test x$ac_cv_member_struct_sockaddr_sa_len = xyes; then
26437 rb_sockaddr_sa_len=yes
26439 if test x$ac_cv_header_sys_socket_h = xyes; then
26440 rb_sys_socket_h=yes
26442 if test x$ac_cv_header_sys_types_h = xyes; then
26445 if test x$ac_cv_header_sys_stat_h = xyes; then
26448 if test x$ac_cv_header_sys_time_h = xyes; then
26451 if test x$ac_cv_header_time = xyes; then
26455 if test x$ac_cv_header_stdint_h = xyes; then
26458 if test x$ac_cv_header_inttypes_h = xyes; then
26461 if test x$ac_cv_header_netinet_in_h = xyes; then
26462 rb_netinet_in_h=yes
26465 if test x$ac_cv_header_crypt_h = xyes; then
26468 if test x$ac_cv_header_errno_h = xyes; then
26471 if test x$ac_cv_header_unistd_h = xyes; then
26474 if test x$ac_cv_header_windows_h = xyes; then
26477 if test x$ac_cv_header_winsock2_h = xyes; then
26480 if test x$ac_cv_type_socklen_t = xyes; then
26481 rb_socklen_t="socklen_t"
26483 rb_socklen_t="unsigned int"
26485 if test "x$rb_have_sockaddr_storage" = "xyes"; then
26486 rb_sockaddr_storage="yes"
26488 rb_sockaddr_storage="no"
26491 rb_have_ipv6="$have_v6"
26503 cat >>$CONFIG_STATUS <<\_ACEOF
26505 # Handling of arguments.
26506 for ac_config_target
in $ac_config_targets
26508 case $ac_config_target in
26509 "include/libratbox_config.h") CONFIG_HEADERS
="$CONFIG_HEADERS include/libratbox_config.h" ;;
26510 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
26511 "include/librb-config.h") CONFIG_COMMANDS
="$CONFIG_COMMANDS include/librb-config.h" ;;
26512 "src/Makefile") CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
26513 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
26515 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26516 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26517 { (exit 1); exit 1; }; };;
26522 # If the user did not use the arguments to specify the items to instantiate,
26523 # then the envvar interface is used. Set only those that are not.
26524 # We use the long form for the default assignment because of an extremely
26525 # bizarre bug on SunOS 4.1.3.
26526 if $ac_need_defaults; then
26527 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
26528 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
26529 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
26532 # Have a temporary directory for convenience. Make it in the build tree
26533 # simply because there is no reason against having it here, and in addition,
26534 # creating and moving files from /tmp can sometimes cause problems.
26535 # Hook for its removal unless debugging.
26536 # Note that there is a small window in which the directory will not be cleaned:
26537 # after its creation but before its name has been assigned to `$tmp'.
26541 trap 'exit_status=$?
26542 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26544 trap '{ (exit 1); exit 1; }' 1 2 13 15
26546 # Create a (secure) tmp directory for tmp files.
26549 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26550 test -n "$tmp" && test -d "$tmp"
26553 tmp
=.
/conf$$
-$RANDOM
26554 (umask 077 && mkdir "$tmp")
26557 echo "$me: cannot create a temporary directory in ." >&2
26558 { (exit 1); exit 1; }
26562 # Set up the sed scripts for CONFIG_FILES section.
26565 # No need to generate the scripts if there are no CONFIG_FILES.
26566 # This happens for instance when ./config.status config.h
26567 if test -n "$CONFIG_FILES"; then
26574 for ac_last_try
in false false false false false
:; do
26575 cat >conf$
$subs.
sed <<_ACEOF
26576 SHELL!$SHELL$ac_delim
26577 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
26578 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
26579 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
26580 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
26581 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
26582 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
26583 exec_prefix!$exec_prefix$ac_delim
26584 prefix!$prefix$ac_delim
26585 program_transform_name!$program_transform_name$ac_delim
26586 bindir!$bindir$ac_delim
26587 sbindir!$sbindir$ac_delim
26588 libexecdir!$libexecdir$ac_delim
26589 datarootdir!$datarootdir$ac_delim
26590 datadir!$datadir$ac_delim
26591 sysconfdir!$sysconfdir$ac_delim
26592 sharedstatedir!$sharedstatedir$ac_delim
26593 localstatedir!$localstatedir$ac_delim
26594 includedir!$includedir$ac_delim
26595 oldincludedir!$oldincludedir$ac_delim
26596 docdir!$docdir$ac_delim
26597 infodir!$infodir$ac_delim
26598 htmldir!$htmldir$ac_delim
26599 dvidir!$dvidir$ac_delim
26600 pdfdir!$pdfdir$ac_delim
26601 psdir!$psdir$ac_delim
26602 libdir!$libdir$ac_delim
26603 localedir!$localedir$ac_delim
26604 mandir!$mandir$ac_delim
26605 DEFS!$DEFS$ac_delim
26606 ECHO_C!$ECHO_C$ac_delim
26607 ECHO_N!$ECHO_N$ac_delim
26608 ECHO_T!$ECHO_T$ac_delim
26609 LIBS!$LIBS$ac_delim
26610 build_alias!$build_alias$ac_delim
26611 host_alias!$host_alias$ac_delim
26612 target_alias!$target_alias$ac_delim
26613 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
26614 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
26615 INSTALL_DATA!$INSTALL_DATA$ac_delim
26616 am__isrc!$am__isrc$ac_delim
26617 CYGPATH_W!$CYGPATH_W$ac_delim
26618 PACKAGE!$PACKAGE$ac_delim
26619 VERSION!$VERSION$ac_delim
26620 ACLOCAL!$ACLOCAL$ac_delim
26621 AUTOCONF!$AUTOCONF$ac_delim
26622 AUTOMAKE!$AUTOMAKE$ac_delim
26623 AUTOHEADER!$AUTOHEADER$ac_delim
26624 MAKEINFO!$MAKEINFO$ac_delim
26625 install_sh!$install_sh$ac_delim
26626 STRIP!$STRIP$ac_delim
26627 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
26628 mkdir_p!$mkdir_p$ac_delim
26630 SET_MAKE!$SET_MAKE$ac_delim
26631 am__leading_dot!$am__leading_dot$ac_delim
26632 AMTAR!$AMTAR$ac_delim
26633 am__tar!$am__tar$ac_delim
26634 am__untar!$am__untar$ac_delim
26636 CFLAGS!$CFLAGS$ac_delim
26637 LDFLAGS!$LDFLAGS$ac_delim
26638 CPPFLAGS!$CPPFLAGS$ac_delim
26639 ac_ct_CC!$ac_ct_CC$ac_delim
26640 EXEEXT!$EXEEXT$ac_delim
26641 OBJEXT!$OBJEXT$ac_delim
26642 DEPDIR!$DEPDIR$ac_delim
26643 am__include!$am__include$ac_delim
26644 am__quote!$am__quote$ac_delim
26645 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
26646 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
26647 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
26648 CCDEPMODE!$CCDEPMODE$ac_delim
26649 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
26650 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
26651 GREP!$GREP$ac_delim
26652 EGREP!$EGREP$ac_delim
26654 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
26655 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
26656 MAINT!$MAINT$ac_delim
26664 RANLIB!$RANLIB$ac_delim
26665 TOUCH!$TOUCH$ac_delim
26666 build!$build$ac_delim
26667 build_cpu!$build_cpu$ac_delim
26668 build_vendor!$build_vendor$ac_delim
26669 build_os!$build_os$ac_delim
26670 host!$host$ac_delim
26671 host_cpu!$host_cpu$ac_delim
26672 host_vendor!$host_vendor$ac_delim
26675 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
26677 elif $ac_last_try; then
26678 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26679 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26680 { (exit 1); exit 1; }; }
26682 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
26686 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26687 if test -n "$ac_eof"; then
26688 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
26689 ac_eof
=`expr $ac_eof + 1`
26692 cat >>$CONFIG_STATUS <<_ACEOF
26693 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
26694 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26697 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26698 s/^/s,@/; s/!/@,|#_!!_#|/
26701 s/'"$ac_delim"'$/,g/; t
26703 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26704 ' >>$CONFIG_STATUS <conf$
$subs.
sed
26705 rm -f conf$
$subs.
sed
26706 cat >>$CONFIG_STATUS <<_ACEOF
26712 for ac_last_try
in false false false false false
:; do
26713 cat >conf$
$subs.
sed <<_ACEOF
26714 host_os!$host_os$ac_delim
26715 LN_S!$LN_S$ac_delim
26716 ECHO!$ECHO$ac_delim
26719 CXXFLAGS!$CXXFLAGS$ac_delim
26720 ac_ct_CXX!$ac_ct_CXX$ac_delim
26721 CXXDEPMODE!$CXXDEPMODE$ac_delim
26722 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
26723 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
26724 CXXCPP!$CXXCPP$ac_delim
26726 FFLAGS!$FFLAGS$ac_delim
26727 ac_ct_F77!$ac_ct_F77$ac_delim
26728 LIBTOOL!$LIBTOOL$ac_delim
26729 subdirs!$subdirs$ac_delim
26730 MINGW_TRUE!$MINGW_TRUE$ac_delim
26731 MINGW_FALSE!$MINGW_FALSE$ac_delim
26732 NEED_CRYPT_TRUE!$NEED_CRYPT_TRUE$ac_delim
26733 NEED_CRYPT_FALSE!$NEED_CRYPT_FALSE$ac_delim
26734 CRYPT_LIB!$CRYPT_LIB$ac_delim
26735 ALLOCA!$ALLOCA$ac_delim
26736 PICFLAGS!$PICFLAGS$ac_delim
26737 SEDOBJ!$SEDOBJ$ac_delim
26738 SSL_INCLUDES!$SSL_INCLUDES$ac_delim
26739 SSL_LIBS!$SSL_LIBS$ac_delim
26740 RB_PREFIX!$RB_PREFIX$ac_delim
26741 LIBOBJS!$LIBOBJS$ac_delim
26742 LTLIBOBJS!$LTLIBOBJS$ac_delim
26745 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 29; then
26747 elif $ac_last_try; then
26748 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26749 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26750 { (exit 1); exit 1; }; }
26752 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
26756 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26757 if test -n "$ac_eof"; then
26758 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
26759 ac_eof
=`expr $ac_eof + 1`
26762 cat >>$CONFIG_STATUS <<_ACEOF
26763 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
26764 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
26767 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26768 s/^/s,@/; s/!/@,|#_!!_#|/
26771 s/'"$ac_delim"'$/,g/; t
26773 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26774 ' >>$CONFIG_STATUS <conf$
$subs.
sed
26775 rm -f conf$
$subs.
sed
26776 cat >>$CONFIG_STATUS <<_ACEOF
26783 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26784 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26785 # trailing colons and then remove the whole line if VPATH becomes empty
26786 # (actually we leave an empty line to preserve line numbers).
26787 if test "x$srcdir" = x.
; then
26788 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
26789 s/:*\$(srcdir):*/:/
26790 s/:*\${srcdir}:*/:/
26792 s/^\([^=]*=[ ]*\):*/\1/
26798 cat >>$CONFIG_STATUS <<\_ACEOF
26799 fi # test -n "$CONFIG_FILES"
26802 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS :C
$CONFIG_COMMANDS
26805 :[FHLC
]) ac_mode
=$ac_tag; continue;;
26807 case $ac_mode$ac_tag in
26809 :L
* | :C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
26810 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
26811 { (exit 1); exit 1; }; };;
26812 :[FH
]-) ac_tag
=-:-;;
26813 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
26830 -) ac_f
="$tmp/stdin";;
26831 *) # Look for the file first in the build tree, then in the source tree
26832 # (if the path is not absolute). The absolute path cannot be DOS-style,
26833 # because $ac_f cannot contain `:'.
26837 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
26839 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
26840 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
26841 { (exit 1); exit 1; }; };;
26843 ac_file_inputs
="$ac_file_inputs $ac_f"
26846 # Let's still pretend it is `configure' which instantiates (i.e., don't
26847 # use $as_me), people would be surprised to read:
26848 # /* config.h. Generated by config.status. */
26849 configure_input
="Generated from "`IFS=:
26850 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
26851 if test x
"$ac_file" != x
-; then
26852 configure_input
="$ac_file. $configure_input"
26853 { echo "$as_me:$LINENO: creating $ac_file" >&5
26854 echo "$as_me: creating $ac_file" >&6;}
26858 *:-:* | *:-) cat >"$tmp/stdin";;
26863 ac_dir
=`$as_dirname -- "$ac_file" ||
26864 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26865 X"$ac_file" : 'X\(//\)[^/]' \| \
26866 X"$ac_file" : 'X\(//\)$' \| \
26867 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26869 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26873 /^X\(\/\/\)[^/].*/{
26888 -*) as_dir
=.
/$as_dir;;
26890 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
26894 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
26895 *) as_qdir
=$as_dir;;
26897 as_dirs
="'$as_qdir' $as_dirs"
26898 as_dir
=`$as_dirname -- "$as_dir" ||
26899 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26900 X"$as_dir" : 'X\(//\)[^/]' \| \
26901 X"$as_dir" : 'X\(//\)$' \| \
26902 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26904 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26908 /^X\(\/\/\)[^/].*/{
26921 test -d "$as_dir" && break
26923 test -z "$as_dirs" || eval "mkdir $as_dirs"
26924 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
26925 echo "$as_me: error: cannot create directory $as_dir" >&2;}
26926 { (exit 1); exit 1; }; }; }
26930 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
26932 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26933 # A ".." for each directory in $ac_dir_suffix.
26934 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
26935 case $ac_top_builddir_sub in
26936 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
26937 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
26940 ac_abs_top_builddir
=$ac_pwd
26941 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
26942 # for backward compatibility:
26943 ac_top_builddir
=$ac_top_build_prefix
26946 .
) # We are building in place.
26948 ac_top_srcdir
=$ac_top_builddir_sub
26949 ac_abs_top_srcdir
=$ac_pwd ;;
26950 [\\/]* | ?
:[\\/]* ) # Absolute name.
26951 ac_srcdir
=$srcdir$ac_dir_suffix;
26952 ac_top_srcdir
=$srcdir
26953 ac_abs_top_srcdir
=$srcdir ;;
26954 *) # Relative name.
26955 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
26956 ac_top_srcdir
=$ac_top_build_prefix$srcdir
26957 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
26959 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
26969 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
26970 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
26972 ac_MKDIR_P
=$MKDIR_P
26974 [\\/$
]* | ?
:[\\/]* ) ;;
26975 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
26979 cat >>$CONFIG_STATUS <<\_ACEOF
26980 # If the template does not know about datarootdir, expand it.
26981 # FIXME: This hack should be removed a few years after 2.60.
26982 ac_datarootdir_hack
=; ac_datarootdir_seen
=
26984 case `sed -n '/datarootdir/ {
26993 ' $ac_file_inputs` in
26994 *datarootdir
*) ac_datarootdir_seen
=yes;;
26995 *@datadir@
*|*@docdir@
*|*@infodir@
*|*@localedir@
*|*@mandir@
*)
26996 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26997 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26999 cat >>$CONFIG_STATUS <<_ACEOF
27000 ac_datarootdir_hack='
27001 s&@datadir@&$datadir&g
27002 s&@docdir@&$docdir&g
27003 s&@infodir@&$infodir&g
27004 s&@localedir@&$localedir&g
27005 s&@mandir@&$mandir&g
27006 s&\\\${datarootdir}&$datarootdir&g' ;;
27010 # Neutralize VPATH when `$srcdir' = `.'.
27011 # Shell code in configure.ac might set extrasub.
27012 # FIXME: do we really want to maintain this feature?
27013 cat >>$CONFIG_STATUS <<_ACEOF
27017 cat >>$CONFIG_STATUS <<\_ACEOF
27019 /@
[a
-zA-Z_][a
-zA-Z_0-9]*@
/!b
27020 s
&@configure_input@
&$configure_input&;t t
27021 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
27022 s
&@srcdir@
&$ac_srcdir&;t t
27023 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
27024 s
&@top_srcdir@
&$ac_top_srcdir&;t t
27025 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
27026 s
&@builddir@
&$ac_builddir&;t t
27027 s
&@abs_builddir@
&$ac_abs_builddir&;t t
27028 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
27029 s
&@INSTALL@
&$ac_INSTALL&;t t
27030 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
27031 $ac_datarootdir_hack
27032 " $ac_file_inputs | sed -f "$tmp/subs
-1.
sed" | sed -f "$tmp/subs
-2.
sed" >$tmp/out
27034 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27035 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
27036 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
27037 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
27038 which seems to be undefined. Please make sure it is defined." >&5
27039 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
27040 which seems to be undefined. Please make sure it is defined." >&2;}
27044 -) cat "$tmp/out"; rm -f "$tmp/out";;
27045 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
27054 # Transform confdefs.h into a sed script `conftest.defines', that
27055 # substitutes the proper values into config.h.in to produce config.h.
27056 rm -f conftest.defines conftest.
tail
27057 # First, append a space to every undef/define line, to ease matching.
27058 echo 's/$/ /' >conftest.defines
27059 # Then, protect against being on the right side of a sed subst, or in
27060 # an unquoted here document, in config.status. If some macros were
27061 # called several times there might be several #defines for the same
27062 # symbol, which is useless. But do not sort them, since the last
27063 # AC_DEFINE must be honored.
27064 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
27065 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
27066 # NAME is the cpp macro being defined, VALUE is the value it is being given.
27067 # PARAMS is the parameter list in the macro definition--in most cases, it's
27068 # just an empty string.
27069 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
27070 ac_dB
='\\)[ (].*,\\1define\\2'
27078 s/^[ ]*#[ ]*define[ ][ ]*//
27083 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
27084 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
27085 ' >>conftest.defines
27087 # Remove the space that was appended to ease matching.
27088 # Then replace #undef with comments. This is necessary, for
27089 # example, in the case of _POSIX_SOURCE, which is predefined and required
27090 # on some systems where configure will not decide to define it.
27091 # (The regexp can be short, since the line contains either #define or #undef.)
27093 s,^[ #]*u.*,/* & */,' >>conftest.defines
27095 # Break up conftest.defines:
27096 ac_max_sed_lines
=50
27098 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
27099 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
27100 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
27102 ac_in
='$ac_file_inputs'
27103 ac_out
='"$tmp/out1"'
27104 ac_nxt
='"$tmp/out2"'
27108 # Write a here document:
27109 cat >>$CONFIG_STATUS <<_ACEOF
27110 # First, check the format of the line:
27111 cat >"\$tmp/defines.sed" <<\\CEOF
27112 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
27113 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
27117 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
27119 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
27120 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
27121 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
27122 grep . conftest.
tail >/dev
/null
|| break
27123 rm -f conftest.defines
27124 mv conftest.
tail conftest.defines
27126 rm -f conftest.defines conftest.
tail
27128 echo "ac_result=$ac_in" >>$CONFIG_STATUS
27129 cat >>$CONFIG_STATUS <<\_ACEOF
27130 if test x
"$ac_file" != x
-; then
27131 echo "/* $configure_input */" >"$tmp/config.h"
27132 cat "$ac_result" >>"$tmp/config.h"
27133 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
27134 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27135 echo "$as_me: $ac_file is unchanged" >&6;}
27138 mv "$tmp/config.h" $ac_file
27141 echo "/* $configure_input */"
27145 # Compute $ac_file's index in $config_headers.
27147 for _am_header
in $config_headers :; do
27148 case $_am_header in
27149 $ac_file | $ac_file:* )
27152 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
27155 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
27156 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27157 X$ac_file : 'X\(//\)[^/]' \| \
27158 X$ac_file : 'X\(//\)$' \| \
27159 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
27161 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27165 /^X\(\/\/\)[^/].*/{
27177 s/.*/./; q'`/stamp
-h$_am_stamp_count
27180 :C
) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
27181 echo "$as_me: executing $ac_file commands" >&6;}
27186 case $ac_file$ac_mode in
27187 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" || for mf
in $CONFIG_FILES; do
27188 # Strip MF so we end up with the name of the file.
27189 mf
=`echo "$mf" | sed -e 's/:.*$//'`
27190 # Check whether this is an Automake generated Makefile or not.
27191 # We used to match only the files named `Makefile.in', but
27192 # some people rename them; so instead we look at the file content.
27193 # Grep'ing the first line is not enough: some people post-process
27194 # each Makefile.in and add a new line on top of each file to say so.
27195 # Grep'ing the whole file is not good either: AIX grep has a line
27196 # limit of 2048, but all sed's we know have understand at least 4000.
27197 if sed 10q
"$mf" | grep '^#.*generated by automake' > /dev
/null
2>&1; then
27198 dirpart
=`$as_dirname -- "$mf" ||
27199 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27200 X"$mf" : 'X\(//\)[^/]' \| \
27201 X"$mf" : 'X\(//\)$' \| \
27202 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
27204 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27208 /^X\(\/\/\)[^/].*/{
27224 # Extract the definition of DEPDIR, am__include, and am__quote
27225 # from the Makefile without running `make'.
27226 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
27227 test -z "$DEPDIR" && continue
27228 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
27229 test -z "am__include" && continue
27230 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
27231 # When using ansi2knr, U may be empty or an underscore; expand it
27232 U
=`sed -n 's/^U = //p' < "$mf"`
27233 # Find all dependency output files, they are included files with
27234 # $(DEPDIR) in their names. We invoke sed twice because it is the
27235 # simplest approach to changing $(DEPDIR) to its actual value in the
27237 for file in `sed -n "
27238 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
27239 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
27240 # Make sure the directory exists.
27241 test -f "$dirpart/$file" && continue
27242 fdir
=`$as_dirname -- "$file" ||
27243 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27244 X"$file" : 'X\(//\)[^/]' \| \
27245 X"$file" : 'X\(//\)$' \| \
27246 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
27248 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27252 /^X\(\/\/\)[^/].*/{
27265 { as_dir
=$dirpart/$fdir
27267 -*) as_dir
=.
/$as_dir;;
27269 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
27273 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
27274 *) as_qdir
=$as_dir;;
27276 as_dirs
="'$as_qdir' $as_dirs"
27277 as_dir
=`$as_dirname -- "$as_dir" ||
27278 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27279 X"$as_dir" : 'X\(//\)[^/]' \| \
27280 X"$as_dir" : 'X\(//\)$' \| \
27281 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27283 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27287 /^X\(\/\/\)[^/].*/{
27300 test -d "$as_dir" && break
27302 test -z "$as_dirs" || eval "mkdir $as_dirs"
27303 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27304 echo "$as_me: error: cannot create directory $as_dir" >&2;}
27305 { (exit 1); exit 1; }; }; }
27306 # echo "creating $dirpart/$file"
27307 echo '# dummy' > "$dirpart/$file"
27311 "include/librb-config.h":C
)
27312 outfile
=include
/librb
-config.h.tmp
27313 cat > $outfile <<\_______EOF
27315 * librb
-config.h
: libratbox config
file. Please modify configure.ac
27318 #ifndef __LIBRB_CONFIG_H
27319 #define __LIBRB_CONFIG_H
27323 if test "x$rb_have_ipv6" = "xyes"; then
27324 echo "#define RB_IPV6 1" >> $outfile
27327 if test "x$rb_windows_h" = "xyes"; then
27328 echo '#define WIN32_LEAN_AND_MEAN 1' >> $outfile
27329 echo '#include <windows.h>' >> $outfile
27330 echo '#include <winsock2.h>' >> $outfile
27331 echo '#include <iphlpapi.h>' >> $outfile
27334 if test "x$rb_alloca_h" = "xyes"; then
27335 echo '#define RB_HAVE_ALLOCA_H 1' >> $outfile
27338 if test "x$rb_header_stdc" = "xyes"; then
27339 echo '#include <stdlib.h>' >> $outfile
27340 echo '#include <stddef.h>' >> $outfile
27341 elif test "x$rb_header_stdlib" = "xyes"; then
27342 echo '#include <stdlib.h>' >> $outfile
27345 if test "x$rb_header_string_h" = "xyes"; then
27346 echo '#include <string.h>' >> $outfile
27349 if test "x$rb_stdint_h" = "xyes"; then
27350 echo '#include <stdint.h>' >> $outfile
27353 if test "x$rb_inttypes_h" = "xyes"; then
27354 echo '#include <inttypes.h>' >> $outfile
27357 if test "x$rb_sys_types_h" = "xyes"; then
27358 echo '#include <sys/types.h>' >> $outfile
27360 if test "x$rb_sys_time_h" = "xyes"; then
27361 echo '#include <sys/time.h>' >> $outfile
27363 if test "x$rb_sys_stat_h" = "xyes"; then
27364 echo '#include <sys/stat.h>' >> $outfile
27366 if test "x$rb_time_h" = "xyes"; then
27367 echo '#include <time.h>' >> $outfile
27370 if test "x$rb_sys_socket_h" = "xyes"; then
27371 echo '#include <sys/socket.h>' >> $outfile
27374 if test "x$rb_netinet_in_h" = "xyes"; then
27375 echo '#include <netinet/in.h>' >> $outfile
27378 if test "x$rb_arpa_inet_h" = "xyes"; then
27379 echo '#include <arpa/inet.h>' >> $outfile
27382 if test "x$rb_unistd_h" = "xyes"; then
27383 echo '#include <unistd.h>' >> $outfile
27386 if test "x$rb_crypt_h" = "xyes"; then
27387 echo '#include <crypt.h>' >> $outfile
27390 if test "x$rb_errno_h" = "xyes"; then
27391 echo '#include <errno.h>' >> $outfile
27394 if test "x$rb_sockaddr_sa_len" = "xyes"; then
27395 echo '#define RB_SOCKADDR_HAS_SA_LEN 1' >> $outfile
27398 echo "typedef $rb_uint64_t rb_uint64_t;" >> $outfile
27399 echo "typedef $rb_uint32_t rb_uint32_t;" >> $outfile
27400 echo "typedef $rb_uint16_t rb_uint16_t;" >> $outfile
27401 echo "typedef $rb_uint8_t rb_uint8_t;" >> $outfile
27402 echo "typedef $rb_int64_t rb_int64_t;" >> $outfile
27403 echo "typedef $rb_int32_t rb_int32_t;" >> $outfile
27404 echo "typedef $rb_int16_t rb_int16_t;" >> $outfile
27405 echo "typedef $rb_int8_t rb_int8_t;" >> $outfile
27406 echo "typedef $rb_intmax_t rb_intmax_t;" >> $outfile
27407 echo "typedef $rb_intptr_t rb_intptr_t;" >> $outfile
27408 echo "typedef $rb_uintmax_t rb_uintmax_t;" >> $outfile
27409 echo "typedef $rb_uintptr_t rb_uintptr_t;" >> $outfile
27410 echo "typedef $rb_socklen_t rb_socklen_t;" >> $outfile
27412 if test "x$rb_sockaddr_storage" = "xyes"; then
27413 echo '#define rb_sockaddr_storage sockaddr_storage' >> $outfile
27415 echo 'struct rb_sockaddr_storage { rb_uint8_t _padding128; };' >> $outfile
27418 cat >> $outfile <<\_______EOF
27419 #endif /* __LIBRB_CONFIG_H */
27422 if cmp -s $outfile include
/librb
-config.h
; then
27423 { echo "$as_me:$LINENO: include/librb-config.h is unchanged" >&5
27424 echo "$as_me: include/librb-config.h is unchanged" >&6;}
27425 ${rb_rm} -f $outfile
27427 ${rb_mv} $outfile include
/librb
-config.h
27436 { (exit 0); exit 0; }
27438 chmod +x
$CONFIG_STATUS
27439 ac_clean_files
=$ac_clean_files_save
27442 # configure is writing to config.log, and then calls config.status.
27443 # config.status does its own redirection, appending to config.log.
27444 # Unfortunately, on DOS this fails, as config.log is still kept open
27445 # by configure, so config.status won't be able to write to it; its
27446 # output is simply discarded. So we exec the FD to /dev/null,
27447 # effectively closing config.log, so it can be properly (re)opened and
27448 # appended to by config.status. When coming back to configure, we
27449 # need to make the FD available again.
27450 if test "$no_create" != yes; then
27452 ac_config_status_args
=
27453 test "$silent" = yes &&
27454 ac_config_status_args
="$ac_config_status_args --quiet"
27456 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
27458 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27459 # would make configure fail if this is the last instruction.
27460 $ac_cs_success || { (exit 1); exit 1; }
27464 # CONFIG_SUBDIRS section.
27466 if test "$no_recursion" != yes; then
27468 # Remove --cache-file and --srcdir arguments so they do not pile up.
27469 ac_sub_configure_args
=
27471 eval "set x $ac_configure_args"
27475 if test -n "$ac_prev"; then
27480 -cache-file | --cache-file | --cache-fil | --cache-fi \
27481 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
27482 ac_prev
=cache_file
;;
27483 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
27484 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
27487 --config-cache | -C)
27489 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
27491 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
27493 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
27495 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
27499 *\'*) ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
27501 ac_sub_configure_args
="$ac_sub_configure_args '$ac_arg'" ;;
27505 # Always prepend --prefix to ensure using the same prefix
27506 # in subdir configurations.
27507 ac_arg
="--prefix=$prefix"
27509 *\'*) ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
27511 ac_sub_configure_args
="'$ac_arg' $ac_sub_configure_args"
27514 if test "$silent" = yes; then
27515 ac_sub_configure_args
="--silent $ac_sub_configure_args"
27519 for ac_dir
in : $subdirs; do test "x$ac_dir" = x
: && continue
27521 # Do not complain, so a configure script can configure whichever
27522 # parts of a large source tree are present.
27523 test -d "$srcdir/$ac_dir" || continue
27525 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
27526 echo "$as_me:$LINENO: $ac_msg" >&5
27530 -*) as_dir
=.
/$as_dir;;
27532 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
27536 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
27537 *) as_qdir
=$as_dir;;
27539 as_dirs
="'$as_qdir' $as_dirs"
27540 as_dir
=`$as_dirname -- "$as_dir" ||
27541 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27542 X"$as_dir" : 'X\(//\)[^/]' \| \
27543 X"$as_dir" : 'X\(//\)$' \| \
27544 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27546 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27550 /^X\(\/\/\)[^/].*/{
27563 test -d "$as_dir" && break
27565 test -z "$as_dirs" || eval "mkdir $as_dirs"
27566 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27567 echo "$as_me: error: cannot create directory $as_dir" >&2;}
27568 { (exit 1); exit 1; }; }; }
27572 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
27574 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27575 # A ".." for each directory in $ac_dir_suffix.
27576 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
27577 case $ac_top_builddir_sub in
27578 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
27579 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
27582 ac_abs_top_builddir
=$ac_pwd
27583 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
27584 # for backward compatibility:
27585 ac_top_builddir
=$ac_top_build_prefix
27588 .
) # We are building in place.
27590 ac_top_srcdir
=$ac_top_builddir_sub
27591 ac_abs_top_srcdir
=$ac_pwd ;;
27592 [\\/]* | ?
:[\\/]* ) # Absolute name.
27593 ac_srcdir
=$srcdir$ac_dir_suffix;
27594 ac_top_srcdir
=$srcdir
27595 ac_abs_top_srcdir
=$srcdir ;;
27596 *) # Relative name.
27597 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
27598 ac_top_srcdir
=$ac_top_build_prefix$srcdir
27599 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
27601 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
27606 # Check for guested configure; otherwise get Cygnus style configure.
27607 if test -f "$ac_srcdir/configure.gnu"; then
27608 ac_sub_configure
=$ac_srcdir/configure.gnu
27609 elif test -f "$ac_srcdir/configure"; then
27610 ac_sub_configure
=$ac_srcdir/configure
27611 elif test -f "$ac_srcdir/configure.in"; then
27612 # This should be Cygnus configure.
27613 ac_sub_configure
=$ac_aux_dir/configure
27615 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
27616 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
27620 # The recursion is here.
27621 if test -n "$ac_sub_configure"; then
27622 # Make the cache file name correct relative to the subdirectory.
27623 case $cache_file in
27624 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
27625 *) # Relative name.
27626 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
27629 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
27630 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
27631 # The eval makes quoting arguments work.
27632 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
27633 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
27634 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
27635 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
27636 { (exit 1); exit 1; }; }
27646 echo "Compiling $PACKAGE_NAME $PACKAGE_VERSION"
27649 echo "Installing into: $prefix"
27651 echo "IPv6 support ................... $have_v6"
27652 echo "Assert debugging ............... $assert"
27653 echo "Block allocator ................ $balloc"
27654 echo "OpenSSL ........................ $cf_enable_openssl"