2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for MaNGOS 0.7-SVN.
5 # Report bugs to <http://www.mangosproject.org/>.
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 Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
24 case `(set -o) 2>/dev/null` in *posix
*) set -o posix
;; esac
26 BIN_SH
=xpg4
; export BIN_SH
# for Tru64
27 DUALCASE
=1; export DUALCASE
# for MKS sh
31 # Avoid depending upon Character Ranges.
32 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
33 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
35 as_cr_digits
='0123456789'
36 as_cr_alnum
=$as_cr_Letters$as_cr_digits
38 # The user is always right.
39 if test "${PATH_SEPARATOR+set}" != set; then
40 echo "#! /bin/sh" >conf$$.sh
41 echo "exit 0" >>conf$$.sh
43 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
51 # Support unset when possible.
52 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
60 # We need space, tab and new line, in precisely that order. Quoting is
61 # there to prevent editors from complaining about space-tab.
62 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
63 # splitting by setting IFS to empty value.)
68 # Find who we are. Look in the path if we contain no directory separator.
70 *[\\/]* ) as_myself
=$0 ;;
71 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
75 test -z "$as_dir" && as_dir
=.
76 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
82 # We did not find ourselves, most probably we were run as `sh COMMAND'
83 # in which case we are not to be found in the path.
84 if test "x$as_myself" = x
; then
87 if test ! -f "$as_myself"; then
88 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
92 # Work around bugs in pre-3.0 UWIN ksh.
93 for as_var
in ENV MAIL MAILPATH
94 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
102 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
103 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
107 eval $as_var=C
; export $as_var
109 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
113 # Required to use basename.
114 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
115 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
121 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
128 # Name of the executable.
129 as_me
=`$as_basename -- "$0" ||
130 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
131 X"$0" : 'X\(//\)$' \| \
132 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
134 sed '/^.*\/\([^/][^/]*\)\/*$/{
152 if test "x$CONFIG_SHELL" = x
; then
153 if (eval ":") 2>/dev
/null
; then
159 if test $as_have_required = yes && (eval ":
169 as_func_ret_success () {
172 as_func_ret_failure () {
177 if as_func_success; then
181 echo as_func_success failed.
184 if as_func_failure; then
186 echo as_func_failure succeeded.
189 if as_func_ret_success; then
193 echo as_func_ret_success failed.
196 if as_func_ret_failure; then
198 echo as_func_ret_failure succeeded.
201 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
205 echo positional parameters were not saved.
208 test \$exitcode = 0) || { (exit 1); exit 1; }
213 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
214 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
215 ") 2> /dev
/null
; then
219 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
220 for as_dir
in /usr
/bin
/posix
$PATH_SEPARATOR/bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
223 test -z "$as_dir" && as_dir
=.
226 for as_base
in sh bash ksh sh5
; do
227 as_candidate_shells
="$as_candidate_shells $as_dir/$as_base"
234 for as_shell
in $as_candidate_shells $SHELL; do
235 # Try only shells that exist, to save several forks.
236 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
237 { ("$as_shell") 2> /dev
/null
<<\_ASEOF
238 # Be Bourne compatible
239 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
242 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
243 # is contrary to our usage. Disable this feature.
244 alias -g '${1+"$@"}'='"$@"'
247 case `(set -o) 2>/dev/null` in *posix
*) set -o posix
;; esac
249 BIN_SH
=xpg4
; export BIN_SH
# for Tru64
250 DUALCASE
=1; export DUALCASE
# for MKS sh
255 CONFIG_SHELL
=$as_shell
257 if { "$as_shell" 2> /dev
/null
<<\_ASEOF
258 # Be Bourne compatible
259 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
262 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
267 case `(set -o) 2>/dev/null` in *posix
*) set -o posix
;; esac
269 BIN_SH
=xpg4
; export BIN_SH
# for Tru64
270 DUALCASE
=1; export DUALCASE
# for MKS sh
282 as_func_ret_success
() {
285 as_func_ret_failure
() {
290 if as_func_success
; then
294 echo as_func_success failed.
297 if as_func_failure
; then
299 echo as_func_failure succeeded.
302 if as_func_ret_success
; then
306 echo as_func_ret_success failed.
309 if as_func_ret_failure
; then
311 echo as_func_ret_failure succeeded.
314 if ( set x
; as_func_ret_success y
&& test x
= "$1" ); then
318 echo positional parameters were not saved.
321 test $exitcode = 0) ||
{ (exit 1); exit 1; }
326 test "x$as_lineno_1" != "x$as_lineno_2" &&
327 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") ||
{ (exit 1); exit 1; }
338 if test "x$CONFIG_SHELL" != x
; then
339 for as_var
in BASH_ENV ENV
340 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
343 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
347 if test $as_have_required = no
; then
348 echo This
script requires a shell
more modern than all the
349 echo shells that I found on your system. Please
install a
350 echo modern shell
, or manually run the
script under such a
351 echo shell
if you
do have one.
352 { (exit 1); exit 1; }
362 (eval "as_func_return () {
371 as_func_ret_success () {
374 as_func_ret_failure () {
379 if as_func_success; then
383 echo as_func_success failed.
386 if as_func_failure; then
388 echo as_func_failure succeeded.
391 if as_func_ret_success; then
395 echo as_func_ret_success failed.
398 if as_func_ret_failure; then
400 echo as_func_ret_failure succeeded.
403 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
407 echo positional parameters were not saved.
410 test \$exitcode = 0") ||
{
411 echo No shell found that supports shell functions.
412 echo Please tell autoconf@gnu.org about your system
,
413 echo including any error possibly output before this
421 test "x$as_lineno_1" != "x$as_lineno_2" &&
422 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
424 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
425 # uniformly replaced by the line number. The first 'sed' inserts a
426 # line-number line after each line using $LINENO; the second 'sed'
427 # does the real work. The second script uses 'N' to pair each
428 # line-number line with the line containing $LINENO, and appends
429 # trailing '-' during substitution so that $LINENO is not a special
431 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
432 # scripts with optimization help from Paolo Bonzini. Blame Lee
433 # E. McMahon (1931-1989) for sed's syntax. :-)
445 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
449 chmod +x
"$as_me.lineno" ||
450 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
451 { (exit 1); exit 1; }; }
453 # Don't try to exec as it changes $[0], causing all sort of problems
454 # (the dirname of $[0] is not the place where we might find the
455 # original and so on. Autoconf is especially sensitive to this).
457 # Exit status is that of the last command.
462 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
468 ECHO_C
= ECHO_N
= ECHO_T
=
472 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
479 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
480 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
486 rm -f conf$$ conf$$.exe conf$$.
file
487 if test -d conf$$.dir
; then
488 rm -f conf$$.dir
/conf$$.
file
494 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
496 # ... but there are two gotchas:
497 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
498 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
499 # In both cases, we have to default to `cp -p'.
500 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
502 elif ln conf$$.
file conf$$
2>/dev
/null
; then
507 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
508 rmdir conf$$.dir
2>/dev
/null
510 if mkdir
-p .
2>/dev
/null
; then
513 test -d .
/-p && rmdir .
/-p
517 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
518 # systems may use methods other than mode bits to determine executability.
519 cat >conf$$.
file <<_ASEOF
524 if test -x conf$$.
file >/dev
/null
2>&1; then
525 as_executable_p
="test -x"
531 # Sed expression to map a string onto a valid CPP name.
532 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
534 # Sed expression to map a string onto a valid variable name.
535 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
540 # Check that we are running under the correct shell.
541 SHELL
=${CONFIG_SHELL-/bin/sh}
545 # Remove one level of quotation (which was required for Make).
546 ECHO
=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
551 if test "X$1" = X--no-reexec
; then
552 # Discard the --no-reexec flag, and continue.
554 elif test "X$1" = X--fallback-echo
; then
555 # Avoid inline document here, it may be left over
557 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
558 # Yippee, $echo works!
561 # Restart under the correct shell.
562 exec $SHELL "$0" --no-reexec ${1+"$@"}
565 if test "X$1" = X--fallback-echo
; then
566 # used as fallback echo
574 # The HP-UX ksh and POSIX shell print the target directory to stdout
576 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
578 if test -z "$ECHO"; then
579 if test "X${echo_test_string+set}" != Xset
; then
580 # find a string as large as possible, as long as the shell can cope with it
581 for cmd
in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
582 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
583 if (echo_test_string
=`eval $cmd`) 2>/dev
/null
&&
584 echo_test_string
=`eval $cmd` &&
585 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev
/null
592 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
593 echo_testing_string
=`($echo "$echo_test_string") 2>/dev/null` &&
594 test "X$echo_testing_string" = "X$echo_test_string"; then
597 # The Solaris, AIX, and Digital Unix default echo programs unquote
598 # backslashes. This makes it impossible to quote backslashes using
599 # echo "$something" | sed 's/\\/\\\\/g'
601 # So, first we look for a working echo in the user's PATH.
603 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
604 for dir
in $PATH /usr
/ucb
; do
606 if (test -f $dir/echo ||
test -f $dir/echo$ac_exeext) &&
607 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
608 echo_testing_string
=`($dir/echo "$echo_test_string") 2>/dev/null` &&
609 test "X$echo_testing_string" = "X$echo_test_string"; then
616 if test "X$echo" = Xecho
; then
617 # We didn't find a better echo, so look for alternatives.
618 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
619 echo_testing_string
=`(print -r "$echo_test_string") 2>/dev/null` &&
620 test "X$echo_testing_string" = "X$echo_test_string"; then
621 # This shell has a builtin print -r that does the trick.
623 elif (test -f /bin
/ksh ||
test -f /bin
/ksh
$ac_exeext) &&
624 test "X$CONFIG_SHELL" != X
/bin
/ksh
; then
625 # If we have ksh, try running configure again with it.
626 ORIGINAL_CONFIG_SHELL
=${CONFIG_SHELL-/bin/sh}
627 export ORIGINAL_CONFIG_SHELL
628 CONFIG_SHELL
=/bin
/ksh
630 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
634 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
635 echo_testing_string
=`($echo "$echo_test_string") 2>/dev/null` &&
636 test "X$echo_testing_string" = "X$echo_test_string"; then
639 elif echo_testing_string
=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
640 test "X$echo_testing_string" = 'X\t' &&
641 echo_testing_string
=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
642 test "X$echo_testing_string" = "X$echo_test_string"; then
643 CONFIG_SHELL
=$ORIGINAL_CONFIG_SHELL
645 SHELL
="$CONFIG_SHELL"
647 echo="$CONFIG_SHELL $0 --fallback-echo"
648 elif echo_testing_string
=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
649 test "X$echo_testing_string" = 'X\t' &&
650 echo_testing_string
=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
651 test "X$echo_testing_string" = "X$echo_test_string"; then
652 echo="$CONFIG_SHELL $0 --fallback-echo"
654 # maybe with a smaller string...
657 for cmd
in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
658 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev
/null
665 if test "$prev" != 'sed 50q "$0"'; then
666 echo_test_string
=`eval $prev`
667 export echo_test_string
668 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
670 # Oops. We lost completely, so just stick with echo.
679 # Copy echo and quote the copy suitably for passing to libtool from
680 # the Makefile, instead of quoting the original, which is used later.
682 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
683 ECHO
="$CONFIG_SHELL \\\$\$0 --fallback-echo"
689 tagnames
=${tagnames+${tagnames},}CXX
691 tagnames
=${tagnames+${tagnames},}F77
693 exec 7<&0 </dev
/null
6>&1
696 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
697 # so uname gets run too.
698 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
703 ac_default_prefix
=/usr
/local
705 ac_config_libobj_dir
=.
711 SHELL
=${CONFIG_SHELL-/bin/sh}
713 # Identity of this package.
714 PACKAGE_NAME
='MaNGOS'
715 PACKAGE_TARNAME
='mangos'
716 PACKAGE_VERSION
='0.7-SVN'
717 PACKAGE_STRING
='MaNGOS 0.7-SVN'
718 PACKAGE_BUGREPORT
='http://www.mangosproject.org/'
720 ac_unique_file
="src/mangosd/Main.cpp"
721 # Factoring default headers for most tests.
722 ac_includes_default
="\
725 # include <sys/types.h>
728 # include <sys/stat.h>
739 # if !STDC_HEADERS && HAVE_MEMORY_H
745 # include <strings.h>
748 # include <inttypes.h>
766 program_transform_name
807 INSTALL_STRIP_PROGRAM
816 MAINTAINER_MODE_FALSE
869 WITH_PYTHON_SUBPACKAGE
877 EXTRA_COMPILER_OPTIONS
895 ac_precious_vars
='build_alias
911 # Initialize some variables set by options.
913 ac_init_version
=false
914 # The variables have the same names as the options, with
915 # dashes changed to underlines.
923 program_transform_name
=s
,x
,x
,
931 # Installation directory options.
932 # These are left unexpanded so users can "make install exec_prefix=/foo"
933 # and all the variables that are supposed to be based on exec_prefix
934 # by default will actually change.
935 # Use braces instead of parens because sh, perl, etc. also accept them.
936 # (The list follows the same order as the GNU Coding Standards.)
937 bindir
='${exec_prefix}/bin'
938 sbindir
='${exec_prefix}/sbin'
939 libexecdir
='${exec_prefix}/libexec'
940 datarootdir
='${prefix}/share'
941 datadir
='${datarootdir}'
942 sysconfdir
='${prefix}/etc'
943 sharedstatedir
='${prefix}/com'
944 localstatedir
='${prefix}/var'
945 includedir
='${prefix}/include'
946 oldincludedir
='/usr/include'
947 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
948 infodir
='${datarootdir}/info'
953 libdir
='${exec_prefix}/lib'
954 localedir
='${datarootdir}/locale'
955 mandir
='${datarootdir}/man'
961 # If the previous option needs an argument, assign it.
962 if test -n "$ac_prev"; then
963 eval $ac_prev=\
$ac_option
969 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
973 # Accept the important Cygnus configure options, so we can diagnose typos.
975 case $ac_dashdash$ac_option in
979 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
981 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
984 -build |
--build |
--buil |
--bui |
--bu)
985 ac_prev
=build_alias
;;
986 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
987 build_alias
=$ac_optarg ;;
989 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
990 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
991 ac_prev
=cache_file
;;
992 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
993 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
994 cache_file
=$ac_optarg ;;
997 cache_file
=config.cache
;;
999 -datadir |
--datadir |
--datadi |
--datad)
1001 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1002 datadir
=$ac_optarg ;;
1004 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1005 |
--dataroo |
--dataro |
--datar)
1006 ac_prev
=datarootdir
;;
1007 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1008 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1009 datarootdir
=$ac_optarg ;;
1011 -disable-* |
--disable-*)
1012 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1013 # Reject names that are not valid shell variable names.
1014 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
1015 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1016 { (exit 1); exit 1; }; }
1017 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
1018 eval enable_
$ac_feature=no
;;
1020 -docdir |
--docdir |
--docdi |
--doc |
--do)
1022 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1023 docdir
=$ac_optarg ;;
1025 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1027 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1028 dvidir
=$ac_optarg ;;
1030 -enable-* |
--enable-*)
1031 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1032 # Reject names that are not valid shell variable names.
1033 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
1034 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1035 { (exit 1); exit 1; }; }
1036 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
1037 eval enable_
$ac_feature=\
$ac_optarg ;;
1039 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1040 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1041 |
--exec |
--exe |
--ex)
1042 ac_prev
=exec_prefix
;;
1043 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1044 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1045 |
--exec=* |
--exe=* |
--ex=*)
1046 exec_prefix
=$ac_optarg ;;
1048 -gas |
--gas |
--ga |
--g)
1049 # Obsolete; use --with-gas.
1052 -help |
--help |
--hel |
--he |
-h)
1053 ac_init_help
=long
;;
1054 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1055 ac_init_help
=recursive
;;
1056 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1057 ac_init_help
=short
;;
1059 -host |
--host |
--hos |
--ho)
1060 ac_prev
=host_alias
;;
1061 -host=* |
--host=* |
--hos=* |
--ho=*)
1062 host_alias
=$ac_optarg ;;
1064 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1066 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1068 htmldir
=$ac_optarg ;;
1070 -includedir |
--includedir |
--includedi |
--included |
--include \
1071 |
--includ |
--inclu |
--incl |
--inc)
1072 ac_prev
=includedir
;;
1073 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1074 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1075 includedir
=$ac_optarg ;;
1077 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1079 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1080 infodir
=$ac_optarg ;;
1082 -libdir |
--libdir |
--libdi |
--libd)
1084 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1085 libdir
=$ac_optarg ;;
1087 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1088 |
--libexe |
--libex |
--libe)
1089 ac_prev
=libexecdir
;;
1090 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1091 |
--libexe=* |
--libex=* |
--libe=*)
1092 libexecdir
=$ac_optarg ;;
1094 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1095 ac_prev
=localedir
;;
1096 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1097 localedir
=$ac_optarg ;;
1099 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1100 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1101 ac_prev
=localstatedir
;;
1102 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1103 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1104 localstatedir
=$ac_optarg ;;
1106 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1108 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1109 mandir
=$ac_optarg ;;
1111 -nfp |
--nfp |
--nf)
1112 # Obsolete; use --without-fp.
1115 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1116 |
--no-cr |
--no-c |
-n)
1119 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1120 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1123 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1124 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1125 |
--oldin |
--oldi |
--old |
--ol |
--o)
1126 ac_prev
=oldincludedir
;;
1127 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1128 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1129 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1130 oldincludedir
=$ac_optarg ;;
1132 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1134 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1135 prefix
=$ac_optarg ;;
1137 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1138 |
--program-pre |
--program-pr |
--program-p)
1139 ac_prev
=program_prefix
;;
1140 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1141 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1142 program_prefix
=$ac_optarg ;;
1144 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1145 |
--program-suf |
--program-su |
--program-s)
1146 ac_prev
=program_suffix
;;
1147 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1148 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1149 program_suffix
=$ac_optarg ;;
1151 -program-transform-name |
--program-transform-name \
1152 |
--program-transform-nam |
--program-transform-na \
1153 |
--program-transform-n |
--program-transform- \
1154 |
--program-transform |
--program-transfor \
1155 |
--program-transfo |
--program-transf \
1156 |
--program-trans |
--program-tran \
1157 |
--progr-tra |
--program-tr |
--program-t)
1158 ac_prev
=program_transform_name
;;
1159 -program-transform-name=* |
--program-transform-name=* \
1160 |
--program-transform-nam=* |
--program-transform-na=* \
1161 |
--program-transform-n=* |
--program-transform-=* \
1162 |
--program-transform=* |
--program-transfor=* \
1163 |
--program-transfo=* |
--program-transf=* \
1164 |
--program-trans=* |
--program-tran=* \
1165 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1166 program_transform_name
=$ac_optarg ;;
1168 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1170 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1171 pdfdir
=$ac_optarg ;;
1173 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1175 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1178 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1179 |
-silent |
--silent |
--silen |
--sile |
--sil)
1182 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1184 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1186 sbindir
=$ac_optarg ;;
1188 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1189 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1190 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1192 ac_prev
=sharedstatedir
;;
1193 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1194 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1195 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1197 sharedstatedir
=$ac_optarg ;;
1199 -site |
--site |
--sit)
1201 -site=* |
--site=* |
--sit=*)
1204 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1206 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1207 srcdir
=$ac_optarg ;;
1209 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1210 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1211 ac_prev
=sysconfdir
;;
1212 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1213 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1214 sysconfdir
=$ac_optarg ;;
1216 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1217 ac_prev
=target_alias
;;
1218 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1219 target_alias
=$ac_optarg ;;
1221 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1224 -version |
--version |
--versio |
--versi |
--vers |
-V)
1225 ac_init_version
=: ;;
1228 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1229 # Reject names that are not valid shell variable names.
1230 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
1231 { echo "$as_me: error: invalid package name: $ac_package" >&2
1232 { (exit 1); exit 1; }; }
1233 ac_package
=`echo $ac_package| sed 's/-/_/g'`
1234 eval with_
$ac_package=\
$ac_optarg ;;
1236 -without-* |
--without-*)
1237 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1238 # Reject names that are not valid shell variable names.
1239 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
1240 { echo "$as_me: error: invalid package name: $ac_package" >&2
1241 { (exit 1); exit 1; }; }
1242 ac_package
=`echo $ac_package | sed 's/-/_/g'`
1243 eval with_
$ac_package=no
;;
1246 # Obsolete; use --with-x.
1249 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1250 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1251 ac_prev
=x_includes
;;
1252 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1253 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1254 x_includes
=$ac_optarg ;;
1256 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1257 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1258 ac_prev
=x_libraries
;;
1259 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1260 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1261 x_libraries
=$ac_optarg ;;
1263 -*) { echo "$as_me: error: unrecognized option: $ac_option
1264 Try \`$0 --help' for more information." >&2
1265 { (exit 1); exit 1; }; }
1269 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1270 # Reject names that are not valid shell variable names.
1271 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1272 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1273 { (exit 1); exit 1; }; }
1274 eval $ac_envvar=\
$ac_optarg
1275 export $ac_envvar ;;
1278 # FIXME: should be removed in autoconf 3.0.
1279 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1280 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1281 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1282 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1288 if test -n "$ac_prev"; then
1289 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1290 { echo "$as_me: error: missing argument to $ac_option" >&2
1291 { (exit 1); exit 1; }; }
1294 # Be sure to have absolute directory names.
1295 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1296 datadir sysconfdir sharedstatedir localstatedir includedir \
1297 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1298 libdir localedir mandir
1300 eval ac_val
=\$
$ac_var
1302 [\\/$
]* | ?
:[\\/]* ) continue;;
1303 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1305 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1306 { (exit 1); exit 1; }; }
1309 # There might be people who depend on the old broken behavior: `$host'
1310 # used to hold the argument of --host etc.
1311 # FIXME: To remove some day.
1314 target
=$target_alias
1316 # FIXME: To remove some day.
1317 if test "x$host_alias" != x
; then
1318 if test "x$build_alias" = x
; then
1319 cross_compiling
=maybe
1320 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1321 If a cross compiler is detected then cross compile mode will be used." >&2
1322 elif test "x$build_alias" != "x$host_alias"; then
1328 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1330 test "$silent" = yes && exec 6>/dev
/null
1333 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1334 ac_ls_di
=`ls -di .` &&
1335 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1336 { echo "$as_me: error: Working directory cannot be determined" >&2
1337 { (exit 1); exit 1; }; }
1338 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1339 { echo "$as_me: error: pwd does not report name of working directory" >&2
1340 { (exit 1); exit 1; }; }
1343 # Find the source files, if location was not specified.
1344 if test -z "$srcdir"; then
1345 ac_srcdir_defaulted
=yes
1346 # Try the directory containing this script, then the parent directory.
1347 ac_confdir
=`$as_dirname -- "$0" ||
1348 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1349 X"$0" : 'X\(//\)[^/]' \| \
1350 X"$0" : 'X\(//\)$' \| \
1351 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1353 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1371 if test ! -r "$srcdir/$ac_unique_file"; then
1375 ac_srcdir_defaulted
=no
1377 if test ! -r "$srcdir/$ac_unique_file"; then
1378 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1379 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1380 { (exit 1); exit 1; }; }
1382 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1384 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1385 { (exit 1); exit 1; }; }
1387 # When building in place, set srcdir=.
1388 if test "$ac_abs_confdir" = "$ac_pwd"; then
1391 # Remove unnecessary trailing slashes from srcdir.
1392 # Double slashes in file names in object file debugging info
1393 # mess up M-x gdb in Emacs.
1395 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1397 for ac_var
in $ac_precious_vars; do
1398 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1399 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1400 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1401 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1405 # Report the --help message.
1407 if test "$ac_init_help" = "long"; then
1408 # Omit some internal or obsolete options to make the list less imposing.
1409 # This message is too long to be a string in the A/UX 3.1 sh.
1411 \`configure' configures MaNGOS 0.7-SVN to adapt to many kinds of systems.
1413 Usage: $0 [OPTION]... [VAR=VALUE]...
1415 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1416 VAR=VALUE. See below for descriptions of some of the useful variables.
1418 Defaults for the options are specified in brackets.
1421 -h, --help display this help and exit
1422 --help=short display options specific to this package
1423 --help=recursive display the short help of all the included packages
1424 -V, --version display version information and exit
1425 -q, --quiet, --silent do not print \`checking...' messages
1426 --cache-file=FILE cache test results in FILE [disabled]
1427 -C, --config-cache alias for \`--cache-file=config.cache'
1428 -n, --no-create do not create output files
1429 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1431 Installation directories:
1432 --prefix=PREFIX install architecture-independent files in PREFIX
1433 [$ac_default_prefix]
1434 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1437 By default, \`make install' will install all the files in
1438 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1439 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1440 for instance \`--prefix=\$HOME'.
1442 For better control, use the options below.
1444 Fine tuning of the installation directories:
1445 --bindir=DIR user executables [EPREFIX/bin]
1446 --sbindir=DIR system admin executables [EPREFIX/sbin]
1447 --libexecdir=DIR program executables [EPREFIX/libexec]
1448 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1449 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1450 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1451 --libdir=DIR object code libraries [EPREFIX/lib]
1452 --includedir=DIR C header files [PREFIX/include]
1453 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1454 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1455 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1456 --infodir=DIR info documentation [DATAROOTDIR/info]
1457 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1458 --mandir=DIR man documentation [DATAROOTDIR/man]
1459 --docdir=DIR documentation root [DATAROOTDIR/doc/mangos]
1460 --htmldir=DIR html documentation [DOCDIR]
1461 --dvidir=DIR dvi documentation [DOCDIR]
1462 --pdfdir=DIR pdf documentation [DOCDIR]
1463 --psdir=DIR ps documentation [DOCDIR]
1469 --program-prefix=PREFIX prepend PREFIX to installed program names
1470 --program-suffix=SUFFIX append SUFFIX to installed program names
1471 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1474 --build=BUILD configure
for building on BUILD
[guessed
]
1475 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1479 if test -n "$ac_init_help"; then
1480 case $ac_init_help in
1481 short | recursive
) echo "Configuration of MaNGOS 0.7-SVN:";;
1486 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1487 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1488 --enable-maintainer-mode enable make rules and dependencies not useful
1489 (and sometimes confusing
) to the casual installer
1490 --disable-dependency-tracking speeds up one-time build
1491 --enable-dependency-tracking do not reject slow dependency extractors
1492 --enable-shared[=PKGS
] build shared libraries
[default
=yes]
1493 --enable-static[=PKGS
] build static libraries
[default
=yes]
1494 --enable-fast-install[=PKGS
]
1495 optimize
for fast installation
[default
=yes]
1496 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1497 --enable-cli Turn on
command console system
1498 --enable-ra Turn on remote console system
1501 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1502 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1503 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1504 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1506 --with-tags[=TAGS
] include additional configurations
[automatic
]
1507 --with-openssl=/path
/to
/openssl
/dir OpenSSL directory
1508 --with-mysql=/path
/to
/mysql
/dir MySQL directory
]
1509 --with-python build python bindings
1510 --with-apidocs build MaNGOS API docs
1514 --with-debug-info Include debug info
in library
1516 Some influential environment variables
:
1517 CC C compiler
command
1518 CFLAGS C compiler flags
1519 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1520 nonstandard directory
<lib dir
>
1521 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1522 you have headers
in a nonstandard directory
<include dir
>
1523 CXX C
++ compiler
command
1524 CXXFLAGS C
++ compiler flags
1526 CXXCPP C
++ preprocessor
1527 F77 Fortran
77 compiler
command
1528 FFLAGS Fortran
77 compiler flags
1530 Use these variables to override the choices made by
`configure' or to help
1531 it to find libraries and programs with nonstandard names/locations.
1533 Report bugs to <http://www.mangosproject.org/>.
1538 if test "$ac_init_help" = "recursive"; then
1539 # If there are subdirs, report their specific --help.
1540 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1541 test -d "$ac_dir" || continue
1545 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1547 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
1548 # A ".." for each directory in $ac_dir_suffix.
1549 ac_top_builddir_sub=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,/..,g;s,/,,'`
1550 case $ac_top_builddir_sub in
1551 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1552 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1555 ac_abs_top_builddir=$ac_pwd
1556 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1557 # for backward compatibility:
1558 ac_top_builddir=$ac_top_build_prefix
1561 .) # We are building in place.
1563 ac_top_srcdir=$ac_top_builddir_sub
1564 ac_abs_top_srcdir=$ac_pwd ;;
1565 [\\/]* | ?:[\\/]* ) # Absolute name.
1566 ac_srcdir=$srcdir$ac_dir_suffix;
1567 ac_top_srcdir=$srcdir
1568 ac_abs_top_srcdir=$srcdir ;;
1570 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1571 ac_top_srcdir=$ac_top_build_prefix$srcdir
1572 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1574 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1576 cd "$ac_dir" || { ac_status=$?; continue; }
1577 # Check for guested configure.
1578 if test -f "$ac_srcdir/configure.gnu"; then
1580 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1581 elif test -f "$ac_srcdir/configure"; then
1583 $SHELL "$ac_srcdir/configure" --help=recursive
1585 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1587 cd "$ac_pwd" || { ac_status=$?; break; }
1591 test -n "$ac_init_help" && exit $ac_status
1592 if $ac_init_version; then
1594 MaNGOS configure 0.7-SVN
1595 generated by GNU Autoconf 2.60
1597 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1598 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1599 This configure script is free software; the Free Software Foundation
1600 gives unlimited permission to copy, distribute and modify it.
1604 cat >config.log <<_ACEOF
1605 This file contains any messages produced by compilers while
1606 running configure, to aid debugging if configure makes a mistake.
1608 It was created by MaNGOS $as_me 0.7-SVN, which was
1609 generated by GNU Autoconf 2.60. Invocation command line was
1621 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1622 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1623 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1624 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1625 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1627 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1628 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1630 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1631 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1632 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1633 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1634 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1635 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1636 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1644 test -z "$as_dir" && as_dir=.
1645 echo "PATH: $as_dir"
1661 # Keep a trace of the command line.
1662 # Strip out --no-create and --no-recursion so they do not pile up.
1663 # Strip out --silent because we don't want to record it for future runs.
1664 # Also quote any args containing shell meta-characters.
1665 # Make two passes to allow for proper duplicate-argument suppression.
1669 ac_must_keep_next=false
1675 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1676 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1677 | -silent | --silent | --silen | --sile | --sil)
1680 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1683 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1685 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1686 if test $ac_must_keep_next = true; then
1687 ac_must_keep_next=false # Got value, back to normal.
1690 *=* | --config-cache | -C | -disable-* | --disable-* \
1691 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1692 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1693 | -with-* | --with-* | -without-* | --without-* | --x)
1694 case "$ac_configure_args0 " in
1695 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1698 -* ) ac_must_keep_next=true ;;
1701 ac_configure_args="$ac_configure_args '$ac_arg'"
1706 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1707 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1709 # When interrupted or exit'd, cleanup temporary files, and complete
1710 # config.log. We remove comments because anyway the quotes in there
1711 # would cause problems or look ugly.
1712 # WARNING: Use '\'' to represent an apostrophe within the trap.
1713 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1714 trap 'exit_status=$?
1715 # Save into config.log some information that might help in debugging.
1720 ## ---------------- ##
1721 ## Cache variables. ##
1722 ## ---------------- ##
1725 # The following way of writing the cache mishandles newlines in values,
1727 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1728 eval ac_val=\$$ac_var
1732 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1733 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1736 _ | IFS | as_nl) ;; #(
1737 *) $as_unset $ac_var ;;
1742 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1743 *${as_nl}ac_space=\ *)
1745 "s/'\''/'\''\\\\'\'''\''/g;
1746 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1749 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1757 ## ----------------- ##
1758 ## Output variables. ##
1759 ## ----------------- ##
1762 for ac_var in $ac_subst_vars
1764 eval ac_val=\$$ac_var
1766 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1768 echo "$ac_var='\''$ac_val'\''"
1772 if test -n "$ac_subst_files"; then
1774 ## ------------------- ##
1775 ## File substitutions. ##
1776 ## ------------------- ##
1779 for ac_var in $ac_subst_files
1781 eval ac_val=\$$ac_var
1783 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1785 echo "$ac_var='\''$ac_val'\''"
1790 if test -s confdefs.h; then
1800 test "$ac_signal" != 0 &&
1801 echo "$as_me: caught signal $ac_signal"
1802 echo "$as_me: exit $exit_status"
1804 rm -f core *.core core.conftest.* &&
1805 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1808 for ac_signal in 1 2 13 15; do
1809 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1813 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1814 rm -f -r conftest* confdefs.h
1816 # Predefined preprocessor variables.
1818 cat >>confdefs.h <<_ACEOF
1819 #define PACKAGE_NAME "$PACKAGE_NAME"
1823 cat >>confdefs.h <<_ACEOF
1824 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1828 cat >>confdefs.h <<_ACEOF
1829 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1833 cat >>confdefs.h <<_ACEOF
1834 #define PACKAGE_STRING "$PACKAGE_STRING"
1838 cat >>confdefs.h <<_ACEOF
1839 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1843 # Let the site file select an alternate cache file if it wants to.
1844 # Prefer explicitly selected file to automatically selected ones.
1845 if test -n "$CONFIG_SITE"; then
1846 set x "$CONFIG_SITE"
1847 elif test "x$prefix" != xNONE; then
1848 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1850 set x "$ac_default_prefix/share/config.site" \
1851 "$ac_default_prefix/etc/config.site"
1856 if test -r "$ac_site_file"; then
1857 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1858 echo "$as_me: loading site script $ac_site_file" >&6;}
1859 sed 's/^/| /' "$ac_site_file" >&5
1864 if test -r "$cache_file"; then
1865 # Some versions of bash will fail to source /dev/null (special
1866 # files actually), so we avoid doing that.
1867 if test -f "$cache_file"; then
1868 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1869 echo "$as_me: loading cache $cache_file" >&6;}
1871 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1872 *) . "./$cache_file";;
1876 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1877 echo "$as_me: creating cache $cache_file" >&6;}
1881 # Check that the precious variables saved in the cache have kept the same
1883 ac_cache_corrupted=false
1884 for ac_var in $ac_precious_vars; do
1885 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1886 eval ac_new_set=\$ac_env_${ac_var}_set
1887 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1888 eval ac_new_val=\$ac_env_${ac_var}_value
1889 case $ac_old_set,$ac_new_set in
1891 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1892 echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1893 ac_cache_corrupted=: ;;
1895 { echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1896 echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1897 ac_cache_corrupted=: ;;
1900 if test "x$ac_old_val" != "x$ac_new_val"; then
1901 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1902 echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1903 { echo "$as_me:$LINENO: former value
: $ac_old_val" >&5
1904 echo "$as_me: former value
: $ac_old_val" >&2;}
1905 { echo "$as_me:$LINENO: current value
: $ac_new_val" >&5
1906 echo "$as_me: current value
: $ac_new_val" >&2;}
1907 ac_cache_corrupted=:
1910 # Pass precious variables to config.status.
1911 if test "$ac_new_set" = set; then
1913 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1914 *) ac_arg=$ac_var=$ac_new_val ;;
1916 case " $ac_configure_args " in
1917 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1918 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1922 if $ac_cache_corrupted; then
1923 { echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
1924 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
1925 { { echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
1926 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
1927 { (exit 1); exit 1; }; }
1955 ac_cpp='$CPP $CPPFLAGS'
1956 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1957 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1958 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1961 ac_config_headers="$ac_config_headers config.h"
1965 am__api_version="1.9"
1967 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1968 if test -f "$ac_dir/install-sh"; then
1970 ac_install_sh="$ac_aux_dir/install-sh -c"
1972 elif test -f "$ac_dir/install.sh"; then
1974 ac_install_sh="$ac_aux_dir/install.sh -c"
1976 elif test -f "$ac_dir/shtool"; then
1978 ac_install_sh="$ac_aux_dir/shtool install -c"
1982 if test -z "$ac_aux_dir"; then
1983 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1984 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1985 { (exit 1); exit 1; }; }
1988 # These three variables are undocumented and unsupported,
1989 # and are intended to be withdrawn in a future Autoconf release.
1990 # They can cause serious problems if a builder's source tree is in a directory
1991 # whose full name contains unusual characters.
1992 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1993 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1994 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1997 # Find a good install program. We prefer a C program (faster),
1998 # so one script is as good as another. But avoid the broken or
1999 # incompatible versions:
2000 # SysV /etc/install, /usr/sbin/install
2001 # SunOS /usr/etc/install
2002 # IRIX /sbin/install
2004 # AmigaOS /C/install, which installs bootblocks on floppy discs
2005 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2006 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2007 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2008 # OS/2's system install, which has a completely different semantic
2009 # ./install, which can be erroneously created by make from ./install.sh.
2010 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2011 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2012 if test -z "$INSTALL"; then
2013 if test "${ac_cv_path_install+set}" = set; then
2014 echo $ECHO_N "(cached) $ECHO_C" >&6
2016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2020 test -z "$as_dir" && as_dir=.
2021 # Account for people who put trailing slashes in PATH elements.
2023 ./ | .// | /cC/* | \
2024 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2025 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2028 # OSF1 and SCO ODT 3.0 have their own names for install.
2029 # Don't use installbsd from OSF since it installs stuff as root
2031 for ac_prog in ginstall scoinst install; do
2032 for ac_exec_ext in '' $ac_executable_extensions; do
2033 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
2034 if test $ac_prog = install &&
2035 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2036 # AIX install. It has an incompatible calling convention.
2038 elif test $ac_prog = install &&
2039 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2040 # program-specific install script used by HP pwplus--don't use.
2043 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2056 if test "${ac_cv_path_install+set}" = set; then
2057 INSTALL=$ac_cv_path_install
2059 # As a last resort, use the slow shell script. Don't cache a
2060 # value for INSTALL within a source directory, because that will
2061 # break other packages using the cache if that directory is
2062 # removed, or if the value is a relative name.
2063 INSTALL=$ac_install_sh
2066 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2067 echo "${ECHO_T}$INSTALL" >&6; }
2069 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2070 # It thinks the first close brace ends the variable substitution.
2071 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2073 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2075 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2077 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2078 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2081 echo timestamp > conftest.file
2082 # Do `set' in a subshell so we don't clobber the current shell
's
2083 # arguments. Must try -L first in case configure is actually a
2084 # symlink; some systems play weird games with the mod time of symlinks
2085 # (eg FreeBSD returns the mod time of the symlink's containing
2088 set X
`ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2089 if test "$*" = "X"; then
2091 set X
`ls -t $srcdir/configure conftest.file`
2094 if test "$*" != "X $srcdir/configure conftest.file" \
2095 && test "$*" != "X conftest.file $srcdir/configure"; then
2097 # If neither matched, then we have a broken ls. This can happen
2098 # if, for instance, CONFIG_SHELL is bash and it inherits a
2099 # broken ls alias from the environment. This has actually
2100 # happened. Such a system could not be considered "sane".
2101 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2102 alias in your environment" >&5
2103 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2104 alias in your environment" >&2;}
2105 { (exit 1); exit 1; }; }
2108 test "$2" = conftest.
file
2114 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2115 Check your system clock" >&5
2116 echo "$as_me: error: newly created file is older than distributed files!
2117 Check your system clock" >&2;}
2118 { (exit 1); exit 1; }; }
2120 { echo "$as_me:$LINENO: result: yes" >&5
2121 echo "${ECHO_T}yes" >&6; }
2122 test "$program_prefix" != NONE
&&
2123 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2124 # Use a double $ so make ignores it.
2125 test "$program_suffix" != NONE
&&
2126 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2127 # Double any \ or $. echo might interpret backslashes.
2128 # By default was `s,x,x', remove it if useless.
2129 cat <<\_ACEOF
>conftest.
sed
2130 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
2132 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
2135 # expand $ac_aux_dir to an absolute path
2136 am_aux_dir
=`cd $ac_aux_dir && pwd`
2138 test x
"${MISSING+set}" = xset || MISSING
="\${SHELL} $am_aux_dir/missing"
2139 # Use eval to expand $SHELL
2140 if eval "$MISSING --run true"; then
2141 am_missing_run
="$MISSING --run "
2144 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2145 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2148 if mkdir
-p --version .
>/dev
/null
2>&1 && test ! -d .
/--version; then
2149 # We used to keeping the `.' as first argument, in order to
2150 # allow $(mkdir_p) to be used without argument. As in
2151 # $(mkdir_p) $(somedir)
2152 # where $(somedir) is conditionally defined. However this is wrong
2154 # 1. if the package is installed by a user who cannot write `.'
2155 # make install will fail,
2156 # 2. the above comment should most certainly read
2157 # $(mkdir_p) $(DESTDIR)$(somedir)
2158 # so it does not work when $(somedir) is undefined and
2159 # $(DESTDIR) is not.
2160 # To support the latter case, we have to write
2161 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2162 # so the `.' trick is pointless.
2163 mkdir_p
='mkdir -p --'
2165 # On NextStep and OpenStep, the `mkdir' command does not
2166 # recognize any option. It will interpret all options as
2167 # directories to create, and then abort because `.' already
2169 for d
in .
/-p .
/--version;
2171 test -d $d && rmdir $d
2173 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2174 if test -f "$ac_aux_dir/mkinstalldirs"; then
2175 mkdir_p
='$(mkinstalldirs)'
2177 mkdir_p
='$(install_sh) -d'
2181 for ac_prog
in gawk mawk nawk
awk
2183 # Extract the first word of "$ac_prog", so it can be a program name with args.
2184 set dummy
$ac_prog; ac_word
=$2
2185 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2186 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2187 if test "${ac_cv_prog_AWK+set}" = set; then
2188 echo $ECHO_N "(cached) $ECHO_C" >&6
2190 if test -n "$AWK"; then
2191 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2193 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2197 test -z "$as_dir" && as_dir
=.
2198 for ac_exec_ext
in '' $ac_executable_extensions; do
2199 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2200 ac_cv_prog_AWK
="$ac_prog"
2201 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2211 if test -n "$AWK"; then
2212 { echo "$as_me:$LINENO: result: $AWK" >&5
2213 echo "${ECHO_T}$AWK" >&6; }
2215 { echo "$as_me:$LINENO: result: no" >&5
2216 echo "${ECHO_T}no" >&6; }
2220 test -n "$AWK" && break
2223 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2224 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2225 set x
${MAKE-make}; ac_make
=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2226 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2227 echo $ECHO_N "(cached) $ECHO_C" >&6
2229 cat >conftest.
make <<\_ACEOF
2232 @
echo '@@@%%%=$(MAKE)=@@@%%%'
2234 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2235 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2237 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
2239 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
2243 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
2244 { echo "$as_me:$LINENO: result: yes" >&5
2245 echo "${ECHO_T}yes" >&6; }
2248 { echo "$as_me:$LINENO: result: no" >&5
2249 echo "${ECHO_T}no" >&6; }
2250 SET_MAKE
="MAKE=${MAKE-make}"
2253 rm -rf .tst
2>/dev
/null
2254 mkdir .tst
2>/dev
/null
2255 if test -d .tst
; then
2260 rmdir .tst
2>/dev
/null
2262 # test to see if srcdir already configured
2263 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2264 test -f $srcdir/config.status
; then
2265 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2266 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2267 { (exit 1); exit 1; }; }
2270 # test whether we have cygpath
2271 if test -z "$CYGPATH_W"; then
2272 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
2273 CYGPATH_W
='cygpath -w'
2280 # Define the identity of the package.
2285 cat >>confdefs.h
<<_ACEOF
2286 #define PACKAGE "$PACKAGE"
2290 cat >>confdefs.h
<<_ACEOF
2291 #define VERSION "$VERSION"
2294 # Some tools Automake needs.
2296 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2299 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
2302 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2305 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
2308 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
2310 install_sh
=${install_sh-"$am_aux_dir/install-sh"}
2312 # Installed binaries are usually stripped using `strip' when the user
2313 # run `make install-strip'. However `strip' might not be the right
2314 # tool to use in cross-compilation environments, therefore Automake
2315 # will honor the `STRIP' environment variable to overrule this program.
2316 if test "$cross_compiling" != no
; then
2317 if test -n "$ac_tool_prefix"; then
2318 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2319 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
2320 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2321 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2322 if test "${ac_cv_prog_STRIP+set}" = set; then
2323 echo $ECHO_N "(cached) $ECHO_C" >&6
2325 if test -n "$STRIP"; then
2326 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
2328 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2332 test -z "$as_dir" && as_dir
=.
2333 for ac_exec_ext
in '' $ac_executable_extensions; do
2334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2335 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
2336 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2345 STRIP
=$ac_cv_prog_STRIP
2346 if test -n "$STRIP"; then
2347 { echo "$as_me:$LINENO: result: $STRIP" >&5
2348 echo "${ECHO_T}$STRIP" >&6; }
2350 { echo "$as_me:$LINENO: result: no" >&5
2351 echo "${ECHO_T}no" >&6; }
2356 if test -z "$ac_cv_prog_STRIP"; then
2358 # Extract the first word of "strip", so it can be a program name with args.
2359 set dummy strip
; ac_word
=$2
2360 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2361 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2362 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2363 echo $ECHO_N "(cached) $ECHO_C" >&6
2365 if test -n "$ac_ct_STRIP"; then
2366 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
2368 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2372 test -z "$as_dir" && as_dir
=.
2373 for ac_exec_ext
in '' $ac_executable_extensions; do
2374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2375 ac_cv_prog_ac_ct_STRIP
="strip"
2376 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2385 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
2386 if test -n "$ac_ct_STRIP"; then
2387 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2388 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2390 { echo "$as_me:$LINENO: result: no" >&5
2391 echo "${ECHO_T}no" >&6; }
2394 if test "x$ac_ct_STRIP" = x
; then
2397 case $cross_compiling:$ac_tool_warned in
2399 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2400 whose name does not start with the host triplet. If you think this
2401 configuration is useful to you, please write to autoconf@gnu.org." >&5
2402 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2403 whose name does not start with the host triplet. If you think this
2404 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2405 ac_tool_warned
=yes ;;
2410 STRIP
="$ac_cv_prog_STRIP"
2414 INSTALL_STRIP_PROGRAM
="\${SHELL} \$(install_sh) -c -s"
2416 # We need awk for the "check" target. The system "awk" is bad on
2418 # Always define AMTAR for backward compatibility.
2420 AMTAR
=${AMTAR-"${am_missing_run}tar"}
2422 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
2428 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2429 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2430 # Check whether --enable-maintainer-mode was given.
2431 if test "${enable_maintainer_mode+set}" = set; then
2432 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
2434 USE_MAINTAINER_MODE
=no
2437 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2438 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2441 if test $USE_MAINTAINER_MODE = yes; then
2442 MAINTAINER_MODE_TRUE
=
2443 MAINTAINER_MODE_FALSE
='#'
2445 MAINTAINER_MODE_TRUE
='#'
2446 MAINTAINER_MODE_FALSE
=
2449 MAINT
=$MAINTAINER_MODE_TRUE
2454 ac_cpp
='$CPP $CPPFLAGS'
2455 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2456 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2457 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2458 if test -n "$ac_tool_prefix"; then
2459 for ac_prog
in gcc cc
2461 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2462 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2463 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2464 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2465 if test "${ac_cv_prog_CC+set}" = set; then
2466 echo $ECHO_N "(cached) $ECHO_C" >&6
2468 if test -n "$CC"; then
2469 ac_cv_prog_CC
="$CC" # Let the user override the test.
2471 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2475 test -z "$as_dir" && as_dir
=.
2476 for ac_exec_ext
in '' $ac_executable_extensions; do
2477 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2478 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2479 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2489 if test -n "$CC"; then
2490 { echo "$as_me:$LINENO: result: $CC" >&5
2491 echo "${ECHO_T}$CC" >&6; }
2493 { echo "$as_me:$LINENO: result: no" >&5
2494 echo "${ECHO_T}no" >&6; }
2498 test -n "$CC" && break
2501 if test -z "$CC"; then
2503 for ac_prog
in gcc cc
2505 # Extract the first word of "$ac_prog", so it can be a program name with args.
2506 set dummy
$ac_prog; ac_word
=$2
2507 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2508 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2509 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2510 echo $ECHO_N "(cached) $ECHO_C" >&6
2512 if test -n "$ac_ct_CC"; then
2513 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2515 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2519 test -z "$as_dir" && as_dir
=.
2520 for ac_exec_ext
in '' $ac_executable_extensions; do
2521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2522 ac_cv_prog_ac_ct_CC
="$ac_prog"
2523 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2532 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2533 if test -n "$ac_ct_CC"; then
2534 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2535 echo "${ECHO_T}$ac_ct_CC" >&6; }
2537 { echo "$as_me:$LINENO: result: no" >&5
2538 echo "${ECHO_T}no" >&6; }
2542 test -n "$ac_ct_CC" && break
2545 if test "x$ac_ct_CC" = x
; then
2548 case $cross_compiling:$ac_tool_warned in
2550 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2551 whose name does not start with the host triplet. If you think this
2552 configuration is useful to you, please write to autoconf@gnu.org." >&5
2553 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2554 whose name does not start with the host triplet. If you think this
2555 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2556 ac_tool_warned
=yes ;;
2563 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2564 See \`config.log' for more details." >&5
2565 echo "$as_me: error: no acceptable C compiler found in \$PATH
2566 See \`config.log' for more details." >&2;}
2567 { (exit 1); exit 1; }; }
2569 # Provide some information about the compiler.
2570 echo "$as_me:$LINENO: checking for C compiler version" >&5
2571 ac_compiler
=`set X $ac_compile; echo $2`
2572 { (ac_try
="$ac_compiler --version >&5"
2574 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2575 *) ac_try_echo=$ac_try;;
2577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2578 (eval "$ac_compiler --version >&5") 2>&5
2580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2581 (exit $ac_status); }
2582 { (ac_try="$ac_compiler -v >&5"
2584 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2585 *) ac_try_echo
=$ac_try;;
2587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2588 (eval "$ac_compiler -v >&5") 2>&5
2590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2591 (exit $ac_status); }
2592 { (ac_try
="$ac_compiler -V >&5"
2594 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2595 *) ac_try_echo=$ac_try;;
2597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2598 (eval "$ac_compiler -V >&5") 2>&5
2600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2601 (exit $ac_status); }
2603 cat >conftest.$ac_ext <<_ACEOF
2606 cat confdefs.h >>conftest.$ac_ext
2607 cat >>conftest.$ac_ext <<_ACEOF
2608 /* end confdefs.h. */
2618 ac_clean_files_save=$ac_clean_files
2619 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2620 # Try to create an executable without -o first, disregard a.out.
2621 # It will help us diagnose broken compilers, and finding out an intuition
2623 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2624 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2625 ac_link_default=`echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
2627 # List of possible output files, starting from the most likely.
2628 # The algorithm is not robust to junk in `.
', hence go to wildcards (a.*)
2629 # only as a last resort. b.out is created by i960 compilers.
2630 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
'
2632 # The IRIX 6 linker writes into existing files which may not be
2633 # executable, retaining their permissions. Remove them first so a
2634 # subsequent execution test works.
2636 for ac_file in $ac_files
2639 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2640 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2645 if { (ac_try="$ac_link_default"
2647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2648 *) ac_try_echo=$ac_try;;
2650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2651 (eval "$ac_link_default") 2>&5
2653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2654 (exit $ac_status); }; then
2655 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2656 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2657 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2658 # so that the user can short-circuit this test for compilers unknown to
2660 for ac_file
in $ac_files
2662 test -f "$ac_file" ||
continue
2664 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
)
2667 # We found the default executable, but exeext='' is most
2671 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
2673 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2675 # We set ac_cv_exeext here because the later test for it is not
2676 # safe: cross compilers may not add the suffix if given an `-o'
2677 # argument, so we may need to know it at that point already.
2678 # Even if this section looks crufty: it has the advantage of
2685 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
2688 echo "$as_me: failed program was:" >&5
2689 sed 's/^/| /' conftest.
$ac_ext >&5
2691 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2692 See \`config.log' for more details." >&5
2693 echo "$as_me: error: C compiler cannot create executables
2694 See \`config.log' for more details." >&2;}
2695 { (exit 77); exit 77; }; }
2698 ac_exeext
=$ac_cv_exeext
2699 { echo "$as_me:$LINENO: result: $ac_file" >&5
2700 echo "${ECHO_T}$ac_file" >&6; }
2702 # Check that the compiler produces executables we can run. If not, either
2703 # the compiler is broken, or we cross compile.
2704 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2705 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2706 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2707 # If not cross compiling, check that we can run a simple program.
2708 if test "$cross_compiling" != yes; then
2709 if { ac_try
='./$ac_file'
2710 { (case "(($ac_try" in
2711 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2712 *) ac_try_echo=$ac_try;;
2714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2715 (eval "$ac_try") 2>&5
2717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2718 (exit $ac_status); }; }; then
2721 if test "$cross_compiling" = maybe; then
2724 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2725 If you meant to cross compile, use \`--host'.
2726 See \`config.log' for more details.
" >&5
2727 echo "$as_me: error
: cannot run C compiled programs.
2728 If you meant to cross compile
, use \
`--host'.
2729 See \`config.log
' for more details." >&2;}
2730 { (exit 1); exit 1; }; }
2734 { echo "$as_me:$LINENO: result: yes" >&5
2735 echo "${ECHO_T}yes" >&6; }
2737 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2738 ac_clean_files=$ac_clean_files_save
2739 # Check that the compiler produces executables we can run. If not, either
2740 # the compiler is broken, or we cross compile.
2741 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2742 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2743 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2744 echo "${ECHO_T}$cross_compiling" >&6; }
2746 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2747 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2748 if { (ac_try="$ac_link"
2750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2751 *) ac_try_echo=$ac_try;;
2753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2754 (eval "$ac_link") 2>&5
2756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2757 (exit $ac_status); }; then
2758 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
2759 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
2760 # work properly (i.e., refer to `conftest.exe
'), while it won't with
2762 for ac_file
in conftest.exe conftest conftest.
*; do
2763 test -f "$ac_file" ||
continue
2765 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
) ;;
2766 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2772 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2773 See \`config.log' for more details." >&5
2774 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2775 See \`config.log' for more details." >&2;}
2776 { (exit 1); exit 1; }; }
2779 rm -f conftest
$ac_cv_exeext
2780 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2781 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2783 rm -f conftest.
$ac_ext
2784 EXEEXT
=$ac_cv_exeext
2786 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2787 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2788 if test "${ac_cv_objext+set}" = set; then
2789 echo $ECHO_N "(cached) $ECHO_C" >&6
2791 cat >conftest.
$ac_ext <<_ACEOF
2794 cat confdefs.h
>>conftest.
$ac_ext
2795 cat >>conftest.
$ac_ext <<_ACEOF
2796 /* end confdefs.h. */
2806 rm -f conftest.o conftest.obj
2807 if { (ac_try
="$ac_compile"
2809 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2810 *) ac_try_echo=$ac_try;;
2812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2813 (eval "$ac_compile") 2>&5
2815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2816 (exit $ac_status); }; then
2817 for ac_file in conftest.o conftest.obj conftest.*; do
2818 test -f "$ac_file" || continue;
2820 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2821 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2826 echo "$as_me: failed program was:" >&5
2827 sed 's/^/| /' conftest.$ac_ext >&5
2829 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2830 See \`config.log
' for more details." >&5
2831 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2832 See \`config.log' for more details.
" >&2;}
2833 { (exit 1); exit 1; }; }
2836 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2838 { echo "$as_me:$LINENO: result
: $ac_cv_objext" >&5
2839 echo "${ECHO_T}$ac_cv_objext" >&6; }
2840 OBJEXT=$ac_cv_objext
2842 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
2843 echo $ECHO_N "checking whether we are using the GNU C compiler...
$ECHO_C" >&6; }
2844 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2845 echo $ECHO_N "(cached
) $ECHO_C" >&6
2847 cat >conftest.$ac_ext <<_ACEOF
2850 cat confdefs.h >>conftest.$ac_ext
2851 cat >>conftest.$ac_ext <<_ACEOF
2852 /* end confdefs.h. */
2865 rm -f conftest.$ac_objext
2866 if { (ac_try="$ac_compile"
2868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2869 *) ac_try_echo=$ac_try;;
2871 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2872 (eval "$ac_compile") 2>conftest.er1
2874 grep -v '^ *+' conftest.er1 >conftest.err
2876 cat conftest.err >&5
2877 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2878 (exit $ac_status); } &&
2879 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2880 { (case "(($ac_try" in
2881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2882 *) ac_try_echo=$ac_try;;
2884 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2885 (eval "$ac_try") 2>&5
2887 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2888 (exit $ac_status); }; } &&
2889 { ac_try='test -s conftest.$ac_objext'
2890 { (case "(($ac_try" in
2891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2892 *) ac_try_echo=$ac_try;;
2894 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2895 (eval "$ac_try") 2>&5
2897 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2898 (exit $ac_status); }; }; then
2901 echo "$as_me: failed program was
:" >&5
2902 sed 's/^/| /' conftest.$ac_ext >&5
2907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2908 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2911 { echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
2912 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2913 GCC=`test $ac_compiler_gnu = yes && echo yes`
2914 ac_test_CFLAGS=${CFLAGS+set}
2915 ac_save_CFLAGS=$CFLAGS
2916 { echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
2917 echo $ECHO_N "checking whether
$CC accepts
-g...
$ECHO_C" >&6; }
2918 if test "${ac_cv_prog_cc_g+set}" = set; then
2919 echo $ECHO_N "(cached
) $ECHO_C" >&6
2921 ac_save_c_werror_flag=$ac_c_werror_flag
2922 ac_c_werror_flag=yes
2925 cat >conftest.$ac_ext <<_ACEOF
2928 cat confdefs.h >>conftest.$ac_ext
2929 cat >>conftest.$ac_ext <<_ACEOF
2930 /* end confdefs.h. */
2940 rm -f conftest.$ac_objext
2941 if { (ac_try="$ac_compile"
2943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2944 *) ac_try_echo=$ac_try;;
2946 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2947 (eval "$ac_compile") 2>conftest.er1
2949 grep -v '^ *+' conftest.er1 >conftest.err
2951 cat conftest.err >&5
2952 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2953 (exit $ac_status); } &&
2954 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2955 { (case "(($ac_try" in
2956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2957 *) ac_try_echo=$ac_try;;
2959 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2960 (eval "$ac_try") 2>&5
2962 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2963 (exit $ac_status); }; } &&
2964 { ac_try='test -s conftest.$ac_objext'
2965 { (case "(($ac_try" in
2966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2967 *) ac_try_echo=$ac_try;;
2969 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2970 (eval "$ac_try") 2>&5
2972 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2973 (exit $ac_status); }; }; then
2976 echo "$as_me: failed program was
:" >&5
2977 sed 's/^/| /' conftest.$ac_ext >&5
2980 cat >conftest.$ac_ext <<_ACEOF
2983 cat confdefs.h >>conftest.$ac_ext
2984 cat >>conftest.$ac_ext <<_ACEOF
2985 /* end confdefs.h. */
2995 rm -f conftest.$ac_objext
2996 if { (ac_try="$ac_compile"
2998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2999 *) ac_try_echo=$ac_try;;
3001 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3002 (eval "$ac_compile") 2>conftest.er1
3004 grep -v '^ *+' conftest.er1 >conftest.err
3006 cat conftest.err >&5
3007 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3008 (exit $ac_status); } &&
3009 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3010 { (case "(($ac_try" in
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_try") 2>&5
3017 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3018 (exit $ac_status); }; } &&
3019 { ac_try='test -s conftest.$ac_objext'
3020 { (case "(($ac_try" in
3021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3022 *) ac_try_echo=$ac_try;;
3024 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3025 (eval "$ac_try") 2>&5
3027 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3028 (exit $ac_status); }; }; then
3031 echo "$as_me: failed program was
:" >&5
3032 sed 's/^/| /' conftest.$ac_ext >&5
3034 ac_c_werror_flag=$ac_save_c_werror_flag
3036 cat >conftest.$ac_ext <<_ACEOF
3039 cat confdefs.h >>conftest.$ac_ext
3040 cat >>conftest.$ac_ext <<_ACEOF
3041 /* end confdefs.h. */
3051 rm -f conftest.$ac_objext
3052 if { (ac_try="$ac_compile"
3054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3055 *) ac_try_echo=$ac_try;;
3057 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3058 (eval "$ac_compile") 2>conftest.er1
3060 grep -v '^ *+' conftest.er1 >conftest.err
3062 cat conftest.err >&5
3063 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3064 (exit $ac_status); } &&
3065 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3066 { (case "(($ac_try" in
3067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3068 *) ac_try_echo=$ac_try;;
3070 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3071 (eval "$ac_try") 2>&5
3073 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3074 (exit $ac_status); }; } &&
3075 { ac_try='test -s conftest.$ac_objext'
3076 { (case "(($ac_try" in
3077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3078 *) ac_try_echo=$ac_try;;
3080 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3081 (eval "$ac_try") 2>&5
3083 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3084 (exit $ac_status); }; }; then
3087 echo "$as_me: failed program was
:" >&5
3088 sed 's/^/| /' conftest.$ac_ext >&5
3093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3100 ac_c_werror_flag=$ac_save_c_werror_flag
3102 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
3103 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3104 if test "$ac_test_CFLAGS" = set; then
3105 CFLAGS=$ac_save_CFLAGS
3106 elif test $ac_cv_prog_cc_g = yes; then
3107 if test "$GCC" = yes; then
3113 if test "$GCC" = yes; then
3119 { echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
3120 echo $ECHO_N "checking
for $CC option to accept ISO C89...
$ECHO_C" >&6; }
3121 if test "${ac_cv_prog_cc_c89+set}" = set; then
3122 echo $ECHO_N "(cached
) $ECHO_C" >&6
3124 ac_cv_prog_cc_c89=no
3126 cat >conftest.$ac_ext <<_ACEOF
3129 cat confdefs.h >>conftest.$ac_ext
3130 cat >>conftest.$ac_ext <<_ACEOF
3131 /* end confdefs.h. */
3134 #include <sys/types.h>
3135 #include <sys/stat.h>
3136 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3137 struct buf { int x; };
3138 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3139 static char *e (p, i)
3145 static char *f (char * (*g) (char **, int), char **p, ...)
3150 s = g (p, va_arg (v,int));
3155 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3156 function prototypes and stuff, but not '\xHH' hex character constants.
3157 These don't provoke an error unfortunately, instead are silently treated
3158 as 'x'. The following induces an error, until -std is added to get
3159 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3160 array size at least. It's necessary to write '\x00'==0 to get something
3161 that's true only with -std. */
3162 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3164 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3165 inside strings and character constants. */
3167 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3169 int test (int i, double x);
3170 struct s1 {int (*f) (int a);};
3171 struct s2 {int (*f) (double a);};
3172 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3178 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3183 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3184 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3186 CC="$ac_save_CC $ac_arg"
3187 rm -f conftest.$ac_objext
3188 if { (ac_try="$ac_compile"
3190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3191 *) ac_try_echo=$ac_try;;
3193 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3194 (eval "$ac_compile") 2>conftest.er1
3196 grep -v '^ *+' conftest.er1 >conftest.err
3198 cat conftest.err >&5
3199 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3200 (exit $ac_status); } &&
3201 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3202 { (case "(($ac_try" in
3203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3204 *) ac_try_echo=$ac_try;;
3206 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3207 (eval "$ac_try") 2>&5
3209 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3210 (exit $ac_status); }; } &&
3211 { ac_try='test -s conftest.$ac_objext'
3212 { (case "(($ac_try" in
3213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3214 *) ac_try_echo=$ac_try;;
3216 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3217 (eval "$ac_try") 2>&5
3219 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3220 (exit $ac_status); }; }; then
3221 ac_cv_prog_cc_c89=$ac_arg
3223 echo "$as_me: failed program was
:" >&5
3224 sed 's/^/| /' conftest.$ac_ext >&5
3229 rm -f core conftest.err conftest.$ac_objext
3230 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
3232 rm -f conftest.$ac_ext
3237 case "x
$ac_cv_prog_cc_c89" in
3239 { echo "$as_me:$LINENO: result
: none needed
" >&5
3240 echo "${ECHO_T}none needed
" >&6; } ;;
3242 { echo "$as_me:$LINENO: result
: unsupported
" >&5
3243 echo "${ECHO_T}unsupported
" >&6; } ;;
3245 CC="$CC $ac_cv_prog_cc_c89"
3246 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
3247 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3252 ac_cpp='$CPP $CPPFLAGS'
3253 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3254 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3255 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3256 DEPDIR="${am__leading_dot}deps
"
3258 ac_config_commands="$ac_config_commands depfiles
"
3261 am_make=${MAKE-make}
3262 cat > confinc << 'END'
3267 # If we don't find an include directive, just comment out the code.
3268 { echo "$as_me:$LINENO: checking
for style of include used by
$am_make" >&5
3269 echo $ECHO_N "checking
for style of include used by
$am_make...
$ECHO_C" >&6; }
3273 # First try GNU make style include.
3274 echo "include confinc" > confmf
3275 # We grep out `Entering directory' and `Leaving directory'
3276 # messages which can occur if `w' ends up in MAKEFLAGS.
3277 # In particular we don't look at `^make:' because GNU make might
3278 # be invoked under some other name (usually "gmake"), in which
3279 # case it prints its new name instead of `make'.
3280 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3285 # Now try BSD make style include.
3286 if test "$am__include" = "#"; then
3287 echo '.include "confinc"' > confmf
3288 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3289 am__include
=.include
3296 { echo "$as_me:$LINENO: result: $_am_result" >&5
3297 echo "${ECHO_T}$_am_result" >&6; }
3298 rm -f confinc confmf
3300 # Check whether --enable-dependency-tracking was given.
3301 if test "${enable_dependency_tracking+set}" = set; then
3302 enableval
=$enable_dependency_tracking;
3305 if test "x$enable_dependency_tracking" != xno
; then
3306 am_depcomp
="$ac_aux_dir/depcomp"
3311 if test "x$enable_dependency_tracking" != xno; then
3322 depcc
="$CC" am_compiler_list
=
3324 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3325 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3326 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3327 echo $ECHO_N "(cached) $ECHO_C" >&6
3329 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3330 # We make a subdir and do the tests there. Otherwise we can end up
3331 # making bogus files that we don't know about and never remove. For
3332 # instance it was reported that on HP-UX the gcc test will end up
3333 # making a dummy file named `D' -- because `-MD' means `put the output
3336 # Copy depcomp to subdir because otherwise we won't find it if we're
3337 # using a relative directory.
3338 cp "$am_depcomp" conftest.dir
3340 # We will build objects and dependencies in a subdirectory because
3341 # it helps to detect inapplicable dependency modes. For instance
3342 # both Tru64's cc and ICC support -MD to output dependencies as a
3343 # side effect of compilation, but ICC will put the dependencies in
3344 # the current directory while Tru64 will put them in the object
3348 am_cv_CC_dependencies_compiler_type
=none
3349 if test "$am_compiler_list" = ""; then
3350 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3352 for depmode
in $am_compiler_list; do
3353 # Setup a source with many dependencies, because some compilers
3354 # like to wrap large dependency lists on column 80 (with \), and
3355 # we should not choose a depcomp mode which is confused by this.
3357 # We need to recreate these files for each test, as the compiler may
3358 # overwrite some of them when testing with obscure command lines.
3359 # This happens at least with the AIX C compiler.
3361 for i
in 1 2 3 4 5 6; do
3362 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
3363 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3364 # Solaris 8's {/usr,}/bin/sh.
3365 touch sub
/conftst
$i.h
3367 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3371 # after this tag, mechanisms are not by side-effect, so they'll
3372 # only be used when explicitly requested
3373 if test "x$enable_dependency_tracking" = xyes
; then
3381 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3382 # mode. It turns out that the SunPro C++ compiler does not properly
3383 # handle `-M -o', and we need to detect this.
3384 if depmode
=$depmode \
3385 source=sub
/conftest.c object
=sub
/conftest.
${OBJEXT-o} \
3386 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
3387 $SHELL .
/depcomp
$depcc -c -o sub
/conftest.
${OBJEXT-o} sub
/conftest.c \
3388 >/dev
/null
2>conftest.err
&&
3389 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
3390 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
> /dev
/null
2>&1 &&
3391 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
3392 # icc doesn't choke on unknown options, it will just issue warnings
3393 # or remarks (even with -Werror). So we grep stderr for any message
3394 # that says an option was ignored or not supported.
3395 # When given -MP, icc 7.0 and 7.1 complain thusly:
3396 # icc: Command line warning: ignoring option '-M'; no argument required
3397 # The diagnosis changed in icc 8.0:
3398 # icc: Command line remark: option '-MP' not supported
3399 if (grep 'ignoring option' conftest.err ||
3400 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
3401 am_cv_CC_dependencies_compiler_type
=$depmode
3410 am_cv_CC_dependencies_compiler_type
=none
3414 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3415 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3416 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
3421 test "x$enable_dependency_tracking" != xno \
3422 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
3424 am__fastdepCC_FALSE
='#'
3426 am__fastdepCC_TRUE
='#'
3427 am__fastdepCC_FALSE
=
3432 ac_cpp
='$CXXCPP $CPPFLAGS'
3433 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3434 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3435 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
3436 if test -z "$CXX"; then
3437 if test -n "$CCC"; then
3440 if test -n "$ac_tool_prefix"; then
3441 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
3443 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3444 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3445 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3446 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3447 if test "${ac_cv_prog_CXX+set}" = set; then
3448 echo $ECHO_N "(cached) $ECHO_C" >&6
3450 if test -n "$CXX"; then
3451 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
3453 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3457 test -z "$as_dir" && as_dir
=.
3458 for ac_exec_ext
in '' $ac_executable_extensions; do
3459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3460 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
3461 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3471 if test -n "$CXX"; then
3472 { echo "$as_me:$LINENO: result: $CXX" >&5
3473 echo "${ECHO_T}$CXX" >&6; }
3475 { echo "$as_me:$LINENO: result: no" >&5
3476 echo "${ECHO_T}no" >&6; }
3480 test -n "$CXX" && break
3483 if test -z "$CXX"; then
3485 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
3487 # Extract the first word of "$ac_prog", so it can be a program name with args.
3488 set dummy
$ac_prog; ac_word
=$2
3489 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3490 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3491 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3492 echo $ECHO_N "(cached) $ECHO_C" >&6
3494 if test -n "$ac_ct_CXX"; then
3495 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
3497 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3501 test -z "$as_dir" && as_dir
=.
3502 for ac_exec_ext
in '' $ac_executable_extensions; do
3503 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3504 ac_cv_prog_ac_ct_CXX
="$ac_prog"
3505 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3514 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
3515 if test -n "$ac_ct_CXX"; then
3516 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3517 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3519 { echo "$as_me:$LINENO: result: no" >&5
3520 echo "${ECHO_T}no" >&6; }
3524 test -n "$ac_ct_CXX" && break
3527 if test "x$ac_ct_CXX" = x
; then
3530 case $cross_compiling:$ac_tool_warned in
3532 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3533 whose name does not start with the host triplet. If you think this
3534 configuration is useful to you, please write to autoconf@gnu.org." >&5
3535 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3536 whose name does not start with the host triplet. If you think this
3537 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3538 ac_tool_warned
=yes ;;
3546 # Provide some information about the compiler.
3547 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3548 ac_compiler
=`set X $ac_compile; echo $2`
3549 { (ac_try
="$ac_compiler --version >&5"
3551 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3552 *) ac_try_echo=$ac_try;;
3554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3555 (eval "$ac_compiler --version >&5") 2>&5
3557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3558 (exit $ac_status); }
3559 { (ac_try="$ac_compiler -v >&5"
3561 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3562 *) ac_try_echo
=$ac_try;;
3564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3565 (eval "$ac_compiler -v >&5") 2>&5
3567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3568 (exit $ac_status); }
3569 { (ac_try
="$ac_compiler -V >&5"
3571 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3572 *) ac_try_echo=$ac_try;;
3574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3575 (eval "$ac_compiler -V >&5") 2>&5
3577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3578 (exit $ac_status); }
3580 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3581 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3582 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3583 echo $ECHO_N "(cached) $ECHO_C" >&6
3585 cat >conftest.$ac_ext <<_ACEOF
3588 cat confdefs.h >>conftest.$ac_ext
3589 cat >>conftest.$ac_ext <<_ACEOF
3590 /* end confdefs.h. */
3603 rm -f conftest.$ac_objext
3604 if { (ac_try="$ac_compile"
3606 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3607 *) ac_try_echo
=$ac_try;;
3609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3610 (eval "$ac_compile") 2>conftest.er1
3612 grep -v '^ *+' conftest.er1
>conftest.err
3614 cat conftest.err
>&5
3615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3616 (exit $ac_status); } &&
3617 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3618 { (case "(($ac_try" in
3619 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3620 *) ac_try_echo=$ac_try;;
3622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3623 (eval "$ac_try") 2>&5
3625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3626 (exit $ac_status); }; } &&
3627 { ac_try='test -s conftest.$ac_objext'
3628 { (case "(($ac_try" in
3629 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3630 *) ac_try_echo
=$ac_try;;
3632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3633 (eval "$ac_try") 2>&5
3635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3636 (exit $ac_status); }; }; then
3639 echo "$as_me: failed program was:" >&5
3640 sed 's/^/| /' conftest.
$ac_ext >&5
3645 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3646 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
3649 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3650 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3651 GXX
=`test $ac_compiler_gnu = yes && echo yes`
3652 ac_test_CXXFLAGS
=${CXXFLAGS+set}
3653 ac_save_CXXFLAGS
=$CXXFLAGS
3654 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3655 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3656 if test "${ac_cv_prog_cxx_g+set}" = set; then
3657 echo $ECHO_N "(cached) $ECHO_C" >&6
3659 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
3660 ac_cxx_werror_flag
=yes
3663 cat >conftest.
$ac_ext <<_ACEOF
3666 cat confdefs.h
>>conftest.
$ac_ext
3667 cat >>conftest.
$ac_ext <<_ACEOF
3668 /* end confdefs.h. */
3678 rm -f conftest.
$ac_objext
3679 if { (ac_try
="$ac_compile"
3681 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3682 *) ac_try_echo=$ac_try;;
3684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3685 (eval "$ac_compile") 2>conftest.er1
3687 grep -v '^ *+' conftest.er1 >conftest.err
3689 cat conftest.err >&5
3690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3691 (exit $ac_status); } &&
3692 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3693 { (case "(($ac_try" in
3694 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3695 *) ac_try_echo
=$ac_try;;
3697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3698 (eval "$ac_try") 2>&5
3700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3701 (exit $ac_status); }; } &&
3702 { ac_try
='test -s conftest.$ac_objext'
3703 { (case "(($ac_try" in
3704 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3705 *) ac_try_echo=$ac_try;;
3707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3708 (eval "$ac_try") 2>&5
3710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3711 (exit $ac_status); }; }; then
3712 ac_cv_prog_cxx_g=yes
3714 echo "$as_me: failed program was:" >&5
3715 sed 's/^/| /' conftest.$ac_ext >&5
3718 cat >conftest.$ac_ext <<_ACEOF
3721 cat confdefs.h >>conftest.$ac_ext
3722 cat >>conftest.$ac_ext <<_ACEOF
3723 /* end confdefs.h. */
3733 rm -f conftest.$ac_objext
3734 if { (ac_try="$ac_compile"
3736 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3737 *) ac_try_echo
=$ac_try;;
3739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3740 (eval "$ac_compile") 2>conftest.er1
3742 grep -v '^ *+' conftest.er1
>conftest.err
3744 cat conftest.err
>&5
3745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3746 (exit $ac_status); } &&
3747 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3748 { (case "(($ac_try" in
3749 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3750 *) ac_try_echo=$ac_try;;
3752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3753 (eval "$ac_try") 2>&5
3755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3756 (exit $ac_status); }; } &&
3757 { ac_try='test -s conftest.$ac_objext'
3758 { (case "(($ac_try" in
3759 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3760 *) ac_try_echo
=$ac_try;;
3762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3763 (eval "$ac_try") 2>&5
3765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3766 (exit $ac_status); }; }; then
3769 echo "$as_me: failed program was:" >&5
3770 sed 's/^/| /' conftest.
$ac_ext >&5
3772 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
3774 cat >conftest.
$ac_ext <<_ACEOF
3777 cat confdefs.h
>>conftest.
$ac_ext
3778 cat >>conftest.
$ac_ext <<_ACEOF
3779 /* end confdefs.h. */
3789 rm -f conftest.
$ac_objext
3790 if { (ac_try
="$ac_compile"
3792 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3793 *) ac_try_echo=$ac_try;;
3795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3796 (eval "$ac_compile") 2>conftest.er1
3798 grep -v '^ *+' conftest.er1 >conftest.err
3800 cat conftest.err >&5
3801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3802 (exit $ac_status); } &&
3803 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3804 { (case "(($ac_try" in
3805 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3806 *) ac_try_echo
=$ac_try;;
3808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3809 (eval "$ac_try") 2>&5
3811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3812 (exit $ac_status); }; } &&
3813 { ac_try
='test -s conftest.$ac_objext'
3814 { (case "(($ac_try" in
3815 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3816 *) ac_try_echo=$ac_try;;
3818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3819 (eval "$ac_try") 2>&5
3821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3822 (exit $ac_status); }; }; then
3823 ac_cv_prog_cxx_g=yes
3825 echo "$as_me: failed program was:" >&5
3826 sed 's/^/| /' conftest.$ac_ext >&5
3831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3838 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3840 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3841 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3842 if test "$ac_test_CXXFLAGS" = set; then
3843 CXXFLAGS=$ac_save_CXXFLAGS
3844 elif test $ac_cv_prog_cxx_g = yes; then
3845 if test "$GXX" = yes; then
3851 if test "$GXX" = yes; then
3858 ac_cpp='$CPP $CPPFLAGS'
3859 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3860 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3861 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3863 depcc="$CXX" am_compiler_list=
3865 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3866 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3867 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3868 echo $ECHO_N "(cached) $ECHO_C" >&6
3870 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3871 # We make a subdir and do the tests there. Otherwise we can end up
3872 # making bogus files that we don't know about and never remove. For
3873 # instance it was reported that on HP-UX the gcc test will end up
3874 # making a dummy file named `D
' -- because `-MD' means
`put the output
3877 # Copy depcomp to subdir because otherwise we won't find it if we're
3878 # using a relative directory.
3879 cp "$am_depcomp" conftest.dir
3881 # We will build objects and dependencies in a subdirectory because
3882 # it helps to detect inapplicable dependency modes. For instance
3883 # both Tru64's cc and ICC support -MD to output dependencies as a
3884 # side effect of compilation, but ICC will put the dependencies in
3885 # the current directory while Tru64 will put them in the object
3889 am_cv_CXX_dependencies_compiler_type=none
3890 if test "$am_compiler_list" = ""; then
3891 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < .
/depcomp
`
3893 for depmode in $am_compiler_list; do
3894 # Setup a source with many dependencies, because some compilers
3895 # like to wrap large dependency lists on column 80 (with \), and
3896 # we should not choose a depcomp mode which is confused by this.
3898 # We need to recreate these files for each test, as the compiler may
3899 # overwrite some of them when testing with obscure command lines.
3900 # This happens at least with the AIX C compiler.
3902 for i in 1 2 3 4 5 6; do
3903 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3904 # Using `: > sub
/conftst
$i.h
' creates only sub/conftst1.h with
3905 # Solaris 8's
{/usr
,}/bin
/sh.
3906 touch sub
/conftst
$i.h
3908 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3912 # after this tag, mechanisms are not by side-effect, so they'll
3913 # only be used when explicitly requested
3914 if test "x$enable_dependency_tracking" = xyes
; then
3922 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3923 # mode. It turns out that the SunPro C++ compiler does not properly
3924 # handle `-M -o', and we need to detect this.
3925 if depmode
=$depmode \
3926 source=sub
/conftest.c object
=sub
/conftest.
${OBJEXT-o} \
3927 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
3928 $SHELL .
/depcomp
$depcc -c -o sub
/conftest.
${OBJEXT-o} sub
/conftest.c \
3929 >/dev
/null
2>conftest.err
&&
3930 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
3931 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
> /dev
/null
2>&1 &&
3932 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
3933 # icc doesn't choke on unknown options, it will just issue warnings
3934 # or remarks (even with -Werror). So we grep stderr for any message
3935 # that says an option was ignored or not supported.
3936 # When given -MP, icc 7.0 and 7.1 complain thusly:
3937 # icc: Command line warning: ignoring option '-M'; no argument required
3938 # The diagnosis changed in icc 8.0:
3939 # icc: Command line remark: option '-MP' not supported
3940 if (grep 'ignoring option' conftest.err ||
3941 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
3942 am_cv_CXX_dependencies_compiler_type
=$depmode
3951 am_cv_CXX_dependencies_compiler_type
=none
3955 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3956 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
3957 CXXDEPMODE
=depmode
=$am_cv_CXX_dependencies_compiler_type
3962 test "x$enable_dependency_tracking" != xno \
3963 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3
; then
3964 am__fastdepCXX_TRUE
=
3965 am__fastdepCXX_FALSE
='#'
3967 am__fastdepCXX_TRUE
='#'
3968 am__fastdepCXX_FALSE
=
3972 # Check whether --enable-shared was given.
3973 if test "${enable_shared+set}" = set; then
3974 enableval
=$enable_shared; p
=${PACKAGE-default}
3976 yes) enable_shared
=yes ;;
3977 no
) enable_shared
=no
;;
3980 # Look at the argument we got. We use all the common list separators.
3981 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
3982 for pkg
in $enableval; do
3984 if test "X$pkg" = "X$p"; then
3996 # Check whether --enable-static was given.
3997 if test "${enable_static+set}" = set; then
3998 enableval
=$enable_static; p
=${PACKAGE-default}
4000 yes) enable_static
=yes ;;
4001 no
) enable_static
=no
;;
4004 # Look at the argument we got. We use all the common list separators.
4005 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
4006 for pkg
in $enableval; do
4008 if test "X$pkg" = "X$p"; then
4020 # Check whether --enable-fast-install was given.
4021 if test "${enable_fast_install+set}" = set; then
4022 enableval
=$enable_fast_install; p
=${PACKAGE-default}
4024 yes) enable_fast_install
=yes ;;
4025 no
) enable_fast_install
=no
;;
4027 enable_fast_install
=no
4028 # Look at the argument we got. We use all the common list separators.
4029 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
4030 for pkg
in $enableval; do
4032 if test "X$pkg" = "X$p"; then
4033 enable_fast_install
=yes
4040 enable_fast_install
=yes
4044 # Make sure we can run config.sub.
4045 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
4046 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4047 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4048 { (exit 1); exit 1; }; }
4050 { echo "$as_me:$LINENO: checking build system type" >&5
4051 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
4052 if test "${ac_cv_build+set}" = set; then
4053 echo $ECHO_N "(cached) $ECHO_C" >&6
4055 ac_build_alias
=$build_alias
4056 test "x$ac_build_alias" = x
&&
4057 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
4058 test "x$ac_build_alias" = x
&&
4059 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4060 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4061 { (exit 1); exit 1; }; }
4062 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4063 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4064 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4065 { (exit 1); exit 1; }; }
4068 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4069 echo "${ECHO_T}$ac_cv_build" >&6; }
4070 case $ac_cv_build in
4072 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4073 echo "$as_me: error: invalid value of canonical build" >&2;}
4074 { (exit 1); exit 1; }; };;
4077 ac_save_IFS
=$IFS; IFS
='-'
4083 # Remember, the first character of IFS is used to create $*,
4084 # except with old shells:
4087 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
4090 { echo "$as_me:$LINENO: checking host system type" >&5
4091 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
4092 if test "${ac_cv_host+set}" = set; then
4093 echo $ECHO_N "(cached) $ECHO_C" >&6
4095 if test "x$host_alias" = x
; then
4096 ac_cv_host
=$ac_cv_build
4098 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4099 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4100 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4101 { (exit 1); exit 1; }; }
4105 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4106 echo "${ECHO_T}$ac_cv_host" >&6; }
4109 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4110 echo "$as_me: error: invalid value of canonical host" >&2;}
4111 { (exit 1); exit 1; }; };;
4114 ac_save_IFS
=$IFS; IFS
='-'
4120 # Remember, the first character of IFS is used to create $*,
4121 # except with old shells:
4124 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
4127 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4128 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4129 if test "${lt_cv_path_SED+set}" = set; then
4130 echo $ECHO_N "(cached) $ECHO_C" >&6
4132 # Loop through the user's path and test for sed and gsed.
4133 # Then use that list of sed's as ones to test for truncation.
4134 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4138 test -z "$as_dir" && as_dir
=.
4139 for lt_ac_prog
in sed gsed
; do
4140 for ac_exec_ext
in '' $ac_executable_extensions; do
4141 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4142 lt_ac_sed_list
="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4149 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4150 # along with /bin/sed that truncates output.
4151 for lt_ac_sed
in $lt_ac_sed_list /usr
/xpg
4/bin
/sed; do
4152 test ! -f $lt_ac_sed && continue
4153 cat /dev
/null
> conftest.
in
4155 echo $ECHO_N "0123456789$ECHO_C" >conftest.
in
4156 # Check for GNU sed and select it if it is found.
4157 if "$lt_ac_sed" --version 2>&1 < /dev
/null |
grep 'GNU' > /dev
/null
; then
4158 lt_cv_path_SED
=$lt_ac_sed
4162 cat conftest.
in conftest.
in >conftest.tmp
4163 mv conftest.tmp conftest.
in
4164 cp conftest.
in conftest.
nl
4166 $lt_ac_sed -e 's/a$//' < conftest.
nl >conftest.out ||
break
4167 cmp -s conftest.out conftest.
nl ||
break
4168 # 10000 chars as input seems more than enough
4169 test $lt_ac_count -gt 10 && break
4170 lt_ac_count
=`expr $lt_ac_count + 1`
4171 if test $lt_ac_count -gt $lt_ac_max; then
4172 lt_ac_max
=$lt_ac_count
4173 lt_cv_path_SED
=$lt_ac_sed
4181 { echo "$as_me:$LINENO: result: $SED" >&5
4182 echo "${ECHO_T}$SED" >&6; }
4184 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4185 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4186 if test "${ac_cv_path_GREP+set}" = set; then
4187 echo $ECHO_N "(cached) $ECHO_C" >&6
4189 # Extract the first word of "grep ggrep" to use in msg output
4190 if test -z "$GREP"; then
4191 set dummy
grep ggrep
; ac_prog_name
=$2
4192 if test "${ac_cv_path_GREP+set}" = set; then
4193 echo $ECHO_N "(cached) $ECHO_C" >&6
4195 ac_path_GREP_found
=false
4196 # Loop through the user's path and test for each of PROGNAME-LIST
4197 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4198 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4201 test -z "$as_dir" && as_dir
=.
4202 for ac_prog
in grep ggrep
; do
4203 for ac_exec_ext
in '' $ac_executable_extensions; do
4204 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4205 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } ||
continue
4206 # Check for GNU ac_path_GREP and select it if it is found.
4207 # Check for GNU $ac_path_GREP
4208 case `"$ac_path_GREP" --version 2>&1` in
4210 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4213 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4216 cat "conftest.in" "conftest.in" >"conftest.tmp"
4217 mv "conftest.tmp" "conftest.in"
4218 cp "conftest.in" "conftest.nl"
4219 echo 'GREP' >> "conftest.nl"
4220 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4221 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4222 ac_count
=`expr $ac_count + 1`
4223 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4224 # Best one so far, save it but keep looking for a better one
4225 ac_cv_path_GREP
="$ac_path_GREP"
4226 ac_path_GREP_max
=$ac_count
4228 # 10*(2^10) chars as input seems more than enough
4229 test $ac_count -gt 10 && break
4231 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4235 $ac_path_GREP_found && break 3
4245 GREP
="$ac_cv_path_GREP"
4246 if test -z "$GREP"; then
4247 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4248 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4249 { (exit 1); exit 1; }; }
4253 ac_cv_path_GREP
=$GREP
4258 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4259 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4260 GREP
="$ac_cv_path_GREP"
4263 { echo "$as_me:$LINENO: checking for egrep" >&5
4264 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4265 if test "${ac_cv_path_EGREP+set}" = set; then
4266 echo $ECHO_N "(cached) $ECHO_C" >&6
4268 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4269 then ac_cv_path_EGREP
="$GREP -E"
4271 # Extract the first word of "egrep" to use in msg output
4272 if test -z "$EGREP"; then
4273 set dummy
egrep; ac_prog_name
=$2
4274 if test "${ac_cv_path_EGREP+set}" = set; then
4275 echo $ECHO_N "(cached) $ECHO_C" >&6
4277 ac_path_EGREP_found
=false
4278 # Loop through the user's path and test for each of PROGNAME-LIST
4279 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4280 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4283 test -z "$as_dir" && as_dir
=.
4284 for ac_prog
in egrep; do
4285 for ac_exec_ext
in '' $ac_executable_extensions; do
4286 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4287 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } ||
continue
4288 # Check for GNU ac_path_EGREP and select it if it is found.
4289 # Check for GNU $ac_path_EGREP
4290 case `"$ac_path_EGREP" --version 2>&1` in
4292 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4295 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4298 cat "conftest.in" "conftest.in" >"conftest.tmp"
4299 mv "conftest.tmp" "conftest.in"
4300 cp "conftest.in" "conftest.nl"
4301 echo 'EGREP' >> "conftest.nl"
4302 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4303 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4304 ac_count
=`expr $ac_count + 1`
4305 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4306 # Best one so far, save it but keep looking for a better one
4307 ac_cv_path_EGREP
="$ac_path_EGREP"
4308 ac_path_EGREP_max
=$ac_count
4310 # 10*(2^10) chars as input seems more than enough
4311 test $ac_count -gt 10 && break
4313 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4317 $ac_path_EGREP_found && break 3
4327 EGREP
="$ac_cv_path_EGREP"
4328 if test -z "$EGREP"; then
4329 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4330 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4331 { (exit 1); exit 1; }; }
4335 ac_cv_path_EGREP
=$EGREP
4341 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4342 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4343 EGREP
="$ac_cv_path_EGREP"
4347 # Check whether --with-gnu-ld was given.
4348 if test "${with_gnu_ld+set}" = set; then
4349 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
4355 if test "$GCC" = yes; then
4356 # Check if gcc -print-prog-name=ld gives a path.
4357 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4358 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4361 # gcc leaves a trailing carriage return which upsets mingw
4362 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4364 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
4367 # Accept absolute paths.
4369 re_direlt
='/[^/][^/]*/\.\./'
4370 # Canonicalize the pathname of ld
4371 ac_prog
=`echo $ac_prog| $SED 's%\\\\%/%g'`
4372 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
4373 ac_prog
=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4375 test -z "$LD" && LD
="$ac_prog"
4378 # If it fails, then pretend we aren't using GCC.
4382 # If it is relative, then search for the first ld in PATH.
4386 elif test "$with_gnu_ld" = yes; then
4387 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4388 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4390 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4391 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4393 if test "${lt_cv_path_LD+set}" = set; then
4394 echo $ECHO_N "(cached) $ECHO_C" >&6
4396 if test -z "$LD"; then
4397 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
4398 for ac_dir
in $PATH; do
4400 test -z "$ac_dir" && ac_dir
=.
4401 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
4402 lt_cv_path_LD
="$ac_dir/$ac_prog"
4403 # Check to see if the program is GNU ld. I'd rather use --version,
4404 # but apparently some variants of GNU ld only accept -v.
4405 # Break only if it was the GNU/non-GNU ld that we prefer.
4406 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4407 *GNU
* |
*'with BFD'*)
4408 test "$with_gnu_ld" != no
&& break
4411 test "$with_gnu_ld" != yes && break
4418 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
4423 if test -n "$LD"; then
4424 { echo "$as_me:$LINENO: result: $LD" >&5
4425 echo "${ECHO_T}$LD" >&6; }
4427 { echo "$as_me:$LINENO: result: no" >&5
4428 echo "${ECHO_T}no" >&6; }
4430 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4431 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4432 { (exit 1); exit 1; }; }
4433 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4434 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4435 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4436 echo $ECHO_N "(cached) $ECHO_C" >&6
4438 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4439 case `$LD -v 2>&1 </dev/null` in
4440 *GNU
* |
*'with BFD'*)
4441 lt_cv_prog_gnu_ld
=yes
4444 lt_cv_prog_gnu_ld
=no
4448 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4449 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4450 with_gnu_ld
=$lt_cv_prog_gnu_ld
4453 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4454 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4455 if test "${lt_cv_ld_reload_flag+set}" = set; then
4456 echo $ECHO_N "(cached) $ECHO_C" >&6
4458 lt_cv_ld_reload_flag
='-r'
4460 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4461 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4462 reload_flag
=$lt_cv_ld_reload_flag
4463 case $reload_flag in
4465 *) reload_flag
=" $reload_flag" ;;
4467 reload_cmds
='$LD$reload_flag -o $output$reload_objs'
4470 if test "$GCC" = yes; then
4471 reload_cmds
='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4473 reload_cmds
='$LD$reload_flag -o $output$reload_objs'
4478 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4479 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4480 if test "${lt_cv_path_NM+set}" = set; then
4481 echo $ECHO_N "(cached) $ECHO_C" >&6
4483 if test -n "$NM"; then
4484 # Let the user override the test.
4487 lt_nm_to_check
="${ac_tool_prefix}nm"
4488 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4489 lt_nm_to_check
="$lt_nm_to_check nm"
4491 for lt_tmp_nm
in $lt_nm_to_check; do
4492 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
4493 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
4495 test -z "$ac_dir" && ac_dir
=.
4496 tmp_nm
="$ac_dir/$lt_tmp_nm"
4497 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
4498 # Check to see if the nm accepts a BSD-compat flag.
4499 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4500 # nm: unknown option "B" ignored
4501 # Tru64's nm complains that /dev/null is an invalid object file
4502 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4503 */dev
/null
* |
*'Invalid file or object type'*)
4504 lt_cv_path_NM
="$tmp_nm -B"
4508 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4510 lt_cv_path_NM
="$tmp_nm -p"
4514 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4515 continue # so that we can try to find one that supports BSD flags
4524 test -z "$lt_cv_path_NM" && lt_cv_path_NM
=nm
4527 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4528 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4531 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4532 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4534 if test "$LN_S" = "ln -s"; then
4535 { echo "$as_me:$LINENO: result: yes" >&5
4536 echo "${ECHO_T}yes" >&6; }
4538 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4539 echo "${ECHO_T}no, using $LN_S" >&6; }
4542 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4543 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
4544 if test "${lt_cv_deplibs_check_method+set}" = set; then
4545 echo $ECHO_N "(cached) $ECHO_C" >&6
4547 lt_cv_file_magic_cmd
='$MAGIC_CMD'
4548 lt_cv_file_magic_test_file
=
4549 lt_cv_deplibs_check_method
='unknown'
4550 # Need to set the preceding variable on all platforms that support
4551 # interlibrary dependencies.
4552 # 'none' -- dependencies not supported.
4553 # `unknown' -- same as none, but documents that we really don't know.
4554 # 'pass_all' -- all dependencies passed with no checks.
4555 # 'test_compile' -- check by making test program.
4556 # 'file_magic [[regex]]' -- check by looking for files in library path
4557 # which responds to the $file_magic_cmd with a given extended regex.
4558 # If you have `file' or equivalent on your system and you're not sure
4559 # whether `pass_all' will *always* work, you probably want this one.
4563 lt_cv_deplibs_check_method
=pass_all
4567 lt_cv_deplibs_check_method
=pass_all
4571 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4572 lt_cv_file_magic_cmd
='/usr/bin/file -L'
4573 lt_cv_file_magic_test_file
=/shlib
/libc.so
4577 # func_win32_libid is a shell function defined in ltmain.sh
4578 lt_cv_deplibs_check_method
='file_magic ^x86 archive import|^x86 DLL'
4579 lt_cv_file_magic_cmd
='func_win32_libid'
4583 # Base MSYS/MinGW do not provide the 'file' command needed by
4584 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4585 lt_cv_deplibs_check_method
='file_magic file format pei*-i386(.*architecture: i386)?'
4586 lt_cv_file_magic_cmd
='$OBJDUMP -f'
4589 darwin
* | rhapsody
*)
4590 lt_cv_deplibs_check_method
=pass_all
4593 freebsd
* | dragonfly
*)
4594 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then
4597 # Not sure whether the presence of OpenBSD here was a mistake.
4598 # Let's accept both of them until this is cleared up.
4599 lt_cv_deplibs_check_method
='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4600 lt_cv_file_magic_cmd
=/usr
/bin
/file
4601 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so.*`
4605 lt_cv_deplibs_check_method
=pass_all
4610 lt_cv_deplibs_check_method
=pass_all
4613 hpux10.20
* | hpux11
*)
4614 lt_cv_file_magic_cmd
=/usr
/bin
/file
4617 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4618 lt_cv_file_magic_test_file
=/usr
/lib
/hpux32
/libc.so
4621 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]'
4622 lt_cv_file_magic_test_file
=/usr
/lib
/pa20_64
/libc.sl
4625 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4626 lt_cv_file_magic_test_file
=/usr
/lib
/libc.sl
4632 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4633 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so|\.a)$'
4636 irix5
* | irix6
* | nonstopux
*)
4638 *-32|
*"-32 ") libmagic
=32-bit;;
4639 *-n32|
*"-n32 ") libmagic
=N32
;;
4640 *-64|
*"-64 ") libmagic
=64-bit;;
4641 *) libmagic
=never-match
;;
4643 lt_cv_deplibs_check_method
=pass_all
4646 # This must be Linux ELF.
4647 linux
* | k
*bsd
*-gnu)
4648 lt_cv_deplibs_check_method
=pass_all
4651 netbsd
* | netbsdelf
*-gnu)
4652 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then
4653 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4655 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4660 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4661 lt_cv_file_magic_cmd
=/usr
/bin
/file
4662 lt_cv_file_magic_test_file
=/usr
/lib
/libnls.so
4666 lt_cv_deplibs_check_method
=unknown
4670 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4671 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4673 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4677 osf3
* | osf4
* | osf5
*)
4678 lt_cv_deplibs_check_method
=pass_all
4682 lt_cv_deplibs_check_method
=pass_all
4686 case $host_vendor in
4688 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]'
4689 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so*`
4692 lt_cv_deplibs_check_method
=pass_all
4695 lt_cv_file_magic_cmd
='/bin/file'
4696 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4699 lt_cv_file_magic_cmd
='/bin/file'
4700 lt_cv_deplibs_check_method
="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4701 lt_cv_file_magic_test_file
=/lib
/libc.so
4704 lt_cv_deplibs_check_method
=pass_all
4707 lt_cv_deplibs_check_method
=pass_all
4712 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
4713 lt_cv_deplibs_check_method
=pass_all
4718 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4719 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4720 file_magic_cmd
=$lt_cv_file_magic_cmd
4721 deplibs_check_method
=$lt_cv_deplibs_check_method
4722 test -z "$deplibs_check_method" && deplibs_check_method
=unknown
4727 # If no C compiler was specified, use CC.
4730 # If no C compiler flags were specified, use CFLAGS.
4731 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
4733 # Allow CC to be a program name with arguments.
4737 # Check whether --enable-libtool-lock was given.
4738 if test "${enable_libtool_lock+set}" = set; then
4739 enableval
=$enable_libtool_lock;
4742 test "x$enable_libtool_lock" != xno
&& enable_libtool_lock
=yes
4744 # Some flags need to be propagated to the compiler or linker for good
4748 # Find out which ABI we are using.
4749 echo 'int i;' > conftest.
$ac_ext
4750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4751 (eval $ac_compile) 2>&5
4753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4754 (exit $ac_status); }; then
4755 case `/usr/bin/file conftest.$ac_objext` in
4767 # Find out which ABI we are using.
4768 echo '#line 4768 "configure"' > conftest.
$ac_ext
4769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4770 (eval $ac_compile) 2>&5
4772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4773 (exit $ac_status); }; then
4774 if test "$lt_cv_prog_gnu_ld" = yes; then
4775 case `/usr/bin/file conftest.$ac_objext` in
4777 LD
="${LD-ld} -melf32bsmip"
4780 LD
="${LD-ld} -melf32bmipn32"
4783 LD
="${LD-ld} -melf64bmip"
4787 case `/usr/bin/file conftest.$ac_objext` in
4803 x86_64-
*linux
*|ppc
*-*linux
*|powerpc
*-*linux
*|s390
*-*linux
*|sparc
*-*linux
*)
4804 # Find out which ABI we are using.
4805 echo 'int i;' > conftest.
$ac_ext
4806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4807 (eval $ac_compile) 2>&5
4809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4810 (exit $ac_status); }; then
4811 case `/usr/bin/file conftest.o` in
4815 LD
="${LD-ld} -m elf_i386"
4817 ppc64-
*linux
*|powerpc64-
*linux
*)
4818 LD
="${LD-ld} -m elf32ppclinux"
4821 LD
="${LD-ld} -m elf_s390"
4824 LD
="${LD-ld} -m elf32_sparc"
4831 LD
="${LD-ld} -m elf_x86_64"
4833 ppc
*-*linux
*|powerpc
*-*linux
*)
4834 LD
="${LD-ld} -m elf64ppc"
4837 LD
="${LD-ld} -m elf64_s390"
4840 LD
="${LD-ld} -m elf64_sparc"
4850 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4851 SAVE_CFLAGS
="$CFLAGS"
4852 CFLAGS
="$CFLAGS -belf"
4853 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4854 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4855 if test "${lt_cv_cc_needs_belf+set}" = set; then
4856 echo $ECHO_N "(cached) $ECHO_C" >&6
4859 ac_cpp
='$CPP $CPPFLAGS'
4860 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4861 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4862 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4864 cat >conftest.
$ac_ext <<_ACEOF
4867 cat confdefs.h
>>conftest.
$ac_ext
4868 cat >>conftest.
$ac_ext <<_ACEOF
4869 /* end confdefs.h. */
4879 rm -f conftest.
$ac_objext conftest
$ac_exeext
4880 if { (ac_try
="$ac_link"
4882 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4883 *) ac_try_echo=$ac_try;;
4885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4886 (eval "$ac_link") 2>conftest.er1
4888 grep -v '^ *+' conftest.er1 >conftest.err
4890 cat conftest.err >&5
4891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4892 (exit $ac_status); } &&
4893 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4894 { (case "(($ac_try" in
4895 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4896 *) ac_try_echo
=$ac_try;;
4898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4899 (eval "$ac_try") 2>&5
4901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4902 (exit $ac_status); }; } &&
4903 { ac_try
='test -s conftest$ac_exeext'
4904 { (case "(($ac_try" in
4905 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4906 *) ac_try_echo=$ac_try;;
4908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4909 (eval "$ac_try") 2>&5
4911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4912 (exit $ac_status); }; }; then
4913 lt_cv_cc_needs_belf=yes
4915 echo "$as_me: failed program was:" >&5
4916 sed 's/^/| /' conftest.$ac_ext >&5
4918 lt_cv_cc_needs_belf=no
4921 rm -f core conftest.err conftest.$ac_objext \
4922 conftest$ac_exeext conftest.$ac_ext
4924 ac_cpp='$CPP $CPPFLAGS'
4925 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4926 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4927 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4930 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4931 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4932 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4933 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4934 CFLAGS="$SAVE_CFLAGS"
4938 # Find out which ABI we are using.
4939 echo 'int i;' > conftest.$ac_ext
4940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4941 (eval $ac_compile) 2>&5
4943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4944 (exit $ac_status); }; then
4945 case `/usr
/bin
/file conftest.o
` in
4947 case $lt_cv_prog_gnu_ld in
4948 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4949 *) LD="${LD-ld} -64" ;;
4960 need_locks="$enable_libtool_lock"
4964 ac_cpp='$CPP $CPPFLAGS'
4965 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4966 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4967 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4968 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4969 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4970 # On Suns, sometimes $CPP names a directory.
4971 if test -n "$CPP" && test -d "$CPP"; then
4974 if test -z "$CPP"; then
4975 if test "${ac_cv_prog_CPP+set}" = set; then
4976 echo $ECHO_N "(cached) $ECHO_C" >&6
4978 # Double quotes because CPP needs to be expanded
4979 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4982 for ac_c_preproc_warn_flag in '' yes
4984 # Use a header file that comes with gcc, so configuring glibc
4985 # with a fresh cross-compiler works.
4986 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4987 # <limits.h> exists even on freestanding compilers.
4988 # On the NeXT, cc -E runs the code through the compiler's parser,
4989 # not just through cpp. "Syntax error" is here to catch this case.
4990 cat >conftest.$ac_ext <<_ACEOF
4993 cat confdefs.h >>conftest.$ac_ext
4994 cat >>conftest.$ac_ext <<_ACEOF
4995 /* end confdefs.h. */
4997 # include <limits.h>
4999 # include <assert.h>
5003 if { (ac_try="$ac_cpp conftest.$ac_ext"
5005 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5006 *) ac_try_echo
=$ac_try;;
5008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5009 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5011 grep -v '^ *+' conftest.er1
>conftest.err
5013 cat conftest.err
>&5
5014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5015 (exit $ac_status); } >/dev
/null
; then
5016 if test -s conftest.err
; then
5017 ac_cpp_err
=$ac_c_preproc_warn_flag
5018 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5025 if test -z "$ac_cpp_err"; then
5028 echo "$as_me: failed program was:" >&5
5029 sed 's/^/| /' conftest.
$ac_ext >&5
5031 # Broken: fails on valid input.
5035 rm -f conftest.err conftest.
$ac_ext
5037 # OK, works on sane cases. Now check whether nonexistent headers
5038 # can be detected and how.
5039 cat >conftest.
$ac_ext <<_ACEOF
5042 cat confdefs.h
>>conftest.
$ac_ext
5043 cat >>conftest.
$ac_ext <<_ACEOF
5044 /* end confdefs.h. */
5045 #include <ac_nonexistent.h>
5047 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5049 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5050 *) ac_try_echo=$ac_try;;
5052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5053 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5055 grep -v '^ *+' conftest.er1 >conftest.err
5057 cat conftest.err >&5
5058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5059 (exit $ac_status); } >/dev/null; then
5060 if test -s conftest.err; then
5061 ac_cpp_err=$ac_c_preproc_warn_flag
5062 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5069 if test -z "$ac_cpp_err"; then
5070 # Broken: success on invalid input.
5073 echo "$as_me: failed program was:" >&5
5074 sed 's/^/| /' conftest.$ac_ext >&5
5076 # Passes both tests.
5081 rm -f conftest.err conftest.$ac_ext
5084 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5085 rm -f conftest.err conftest.
$ac_ext
5086 if $ac_preproc_ok; then
5098 { echo "$as_me:$LINENO: result: $CPP" >&5
5099 echo "${ECHO_T}$CPP" >&6; }
5101 for ac_c_preproc_warn_flag
in '' yes
5103 # Use a header file that comes with gcc, so configuring glibc
5104 # with a fresh cross-compiler works.
5105 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5106 # <limits.h> exists even on freestanding compilers.
5107 # On the NeXT, cc -E runs the code through the compiler's parser,
5108 # not just through cpp. "Syntax error" is here to catch this case.
5109 cat >conftest.
$ac_ext <<_ACEOF
5112 cat confdefs.h
>>conftest.
$ac_ext
5113 cat >>conftest.
$ac_ext <<_ACEOF
5114 /* end confdefs.h. */
5116 # include <limits.h>
5118 # include <assert.h>
5122 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5124 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5125 *) ac_try_echo=$ac_try;;
5127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5128 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5130 grep -v '^ *+' conftest.er1 >conftest.err
5132 cat conftest.err >&5
5133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5134 (exit $ac_status); } >/dev/null; then
5135 if test -s conftest.err; then
5136 ac_cpp_err=$ac_c_preproc_warn_flag
5137 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5144 if test -z "$ac_cpp_err"; then
5147 echo "$as_me: failed program was:" >&5
5148 sed 's/^/| /' conftest.$ac_ext >&5
5150 # Broken: fails on valid input.
5154 rm -f conftest.err conftest.$ac_ext
5156 # OK, works on sane cases. Now check whether nonexistent headers
5157 # can be detected and how.
5158 cat >conftest.$ac_ext <<_ACEOF
5161 cat confdefs.h >>conftest.$ac_ext
5162 cat >>conftest.$ac_ext <<_ACEOF
5163 /* end confdefs.h. */
5164 #include <ac_nonexistent.h>
5166 if { (ac_try="$ac_cpp conftest.$ac_ext"
5168 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5169 *) ac_try_echo
=$ac_try;;
5171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5172 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5174 grep -v '^ *+' conftest.er1
>conftest.err
5176 cat conftest.err
>&5
5177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5178 (exit $ac_status); } >/dev
/null
; then
5179 if test -s conftest.err
; then
5180 ac_cpp_err
=$ac_c_preproc_warn_flag
5181 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5188 if test -z "$ac_cpp_err"; then
5189 # Broken: success on invalid input.
5192 echo "$as_me: failed program was:" >&5
5193 sed 's/^/| /' conftest.
$ac_ext >&5
5195 # Passes both tests.
5200 rm -f conftest.err conftest.
$ac_ext
5203 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5204 rm -f conftest.err conftest.
$ac_ext
5205 if $ac_preproc_ok; then
5208 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5209 See \`config.log' for more details." >&5
5210 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5211 See \`config.log' for more details." >&2;}
5212 { (exit 1); exit 1; }; }
5216 ac_cpp
='$CPP $CPPFLAGS'
5217 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5218 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5219 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5222 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5223 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5224 if test "${ac_cv_header_stdc+set}" = set; then
5225 echo $ECHO_N "(cached) $ECHO_C" >&6
5227 cat >conftest.
$ac_ext <<_ACEOF
5230 cat confdefs.h
>>conftest.
$ac_ext
5231 cat >>conftest.
$ac_ext <<_ACEOF
5232 /* end confdefs.h. */
5246 rm -f conftest.
$ac_objext
5247 if { (ac_try
="$ac_compile"
5249 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5250 *) ac_try_echo=$ac_try;;
5252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5253 (eval "$ac_compile") 2>conftest.er1
5255 grep -v '^ *+' conftest.er1 >conftest.err
5257 cat conftest.err >&5
5258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5259 (exit $ac_status); } &&
5260 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5261 { (case "(($ac_try" in
5262 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5263 *) ac_try_echo
=$ac_try;;
5265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5266 (eval "$ac_try") 2>&5
5268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5269 (exit $ac_status); }; } &&
5270 { ac_try
='test -s conftest.$ac_objext'
5271 { (case "(($ac_try" in
5272 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5273 *) ac_try_echo=$ac_try;;
5275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5276 (eval "$ac_try") 2>&5
5278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5279 (exit $ac_status); }; }; then
5280 ac_cv_header_stdc=yes
5282 echo "$as_me: failed program was:" >&5
5283 sed 's/^/| /' conftest.$ac_ext >&5
5285 ac_cv_header_stdc=no
5288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5290 if test $ac_cv_header_stdc = yes; then
5291 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5292 cat >conftest.$ac_ext <<_ACEOF
5295 cat confdefs.h >>conftest.$ac_ext
5296 cat >>conftest.$ac_ext <<_ACEOF
5297 /* end confdefs.h. */
5301 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5302 $EGREP "memchr" >/dev/null 2>&1; then
5305 ac_cv_header_stdc=no
5311 if test $ac_cv_header_stdc = yes; then
5312 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5313 cat >conftest.$ac_ext <<_ACEOF
5316 cat confdefs.h >>conftest.$ac_ext
5317 cat >>conftest.$ac_ext <<_ACEOF
5318 /* end confdefs.h. */
5322 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5323 $EGREP "free" >/dev/null 2>&1; then
5326 ac_cv_header_stdc=no
5332 if test $ac_cv_header_stdc = yes; then
5333 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5334 if test "$cross_compiling" = yes; then
5337 cat >conftest.$ac_ext <<_ACEOF
5340 cat confdefs.h >>conftest.$ac_ext
5341 cat >>conftest.$ac_ext <<_ACEOF
5342 /* end confdefs.h. */
5345 #if ((' ' & 0x0FF) == 0x020)
5346 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5347 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5349 # define ISLOWER(c) \
5350 (('a' <= (c) && (c) <= 'i') \
5351 || ('j' <= (c) && (c) <= 'r') \
5352 || ('s' <= (c) && (c) <= 'z'))
5353 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5356 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5361 for (i = 0; i < 256; i++)
5362 if (XOR (islower (i), ISLOWER (i))
5363 || toupper (i) != TOUPPER (i))
5368 rm -f conftest$ac_exeext
5369 if { (ac_try="$ac_link"
5371 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5372 *) ac_try_echo
=$ac_try;;
5374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5375 (eval "$ac_link") 2>&5
5377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5378 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5379 { (case "(($ac_try" in
5380 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5381 *) ac_try_echo=$ac_try;;
5383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5384 (eval "$ac_try") 2>&5
5386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5387 (exit $ac_status); }; }; then
5390 echo "$as_me: program exited with status $ac_status" >&5
5391 echo "$as_me: failed program was:" >&5
5392 sed 's/^/| /' conftest.$ac_ext >&5
5395 ac_cv_header_stdc=no
5397 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5403 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5404 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5405 if test $ac_cv_header_stdc = yes; then
5407 cat >>confdefs.h <<\_ACEOF
5408 #define STDC_HEADERS 1
5413 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5423 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5424 inttypes.h stdint.h unistd.h
5426 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
5427 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5428 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5429 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5430 echo $ECHO_N "(cached) $ECHO_C" >&6
5432 cat >conftest.$ac_ext <<_ACEOF
5435 cat confdefs.h >>conftest.$ac_ext
5436 cat >>conftest.$ac_ext <<_ACEOF
5437 /* end confdefs.h. */
5438 $ac_includes_default
5440 #include <$ac_header>
5442 rm -f conftest.$ac_objext
5443 if { (ac_try="$ac_compile"
5445 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5446 *) ac_try_echo
=$ac_try;;
5448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5449 (eval "$ac_compile") 2>conftest.er1
5451 grep -v '^ *+' conftest.er1
>conftest.err
5453 cat conftest.err
>&5
5454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5455 (exit $ac_status); } &&
5456 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5457 { (case "(($ac_try" in
5458 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5459 *) ac_try_echo=$ac_try;;
5461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5462 (eval "$ac_try") 2>&5
5464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5465 (exit $ac_status); }; } &&
5466 { ac_try='test -s conftest.$ac_objext'
5467 { (case "(($ac_try" in
5468 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5469 *) ac_try_echo
=$ac_try;;
5471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5472 (eval "$ac_try") 2>&5
5474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5475 (exit $ac_status); }; }; then
5476 eval "$as_ac_Header=yes"
5478 echo "$as_me: failed program was:" >&5
5479 sed 's/^/| /' conftest.
$ac_ext >&5
5481 eval "$as_ac_Header=no"
5484 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5486 ac_res
=`eval echo '${'$as_ac_Header'}'`
5487 { echo "$as_me:$LINENO: result: $ac_res" >&5
5488 echo "${ECHO_T}$ac_res" >&6; }
5489 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5490 cat >>confdefs.h
<<_ACEOF
5491 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5500 for ac_header
in dlfcn.h
5502 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5503 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5504 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5505 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5506 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5507 echo $ECHO_N "(cached) $ECHO_C" >&6
5509 ac_res
=`eval echo '${'$as_ac_Header'}'`
5510 { echo "$as_me:$LINENO: result: $ac_res" >&5
5511 echo "${ECHO_T}$ac_res" >&6; }
5513 # Is the header compilable?
5514 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5515 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5516 cat >conftest.
$ac_ext <<_ACEOF
5519 cat confdefs.h
>>conftest.
$ac_ext
5520 cat >>conftest.
$ac_ext <<_ACEOF
5521 /* end confdefs.h. */
5522 $ac_includes_default
5523 #include <$ac_header>
5525 rm -f conftest.
$ac_objext
5526 if { (ac_try
="$ac_compile"
5528 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5529 *) ac_try_echo=$ac_try;;
5531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5532 (eval "$ac_compile") 2>conftest.er1
5534 grep -v '^ *+' conftest.er1 >conftest.err
5536 cat conftest.err >&5
5537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5538 (exit $ac_status); } &&
5539 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5540 { (case "(($ac_try" in
5541 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5542 *) ac_try_echo
=$ac_try;;
5544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5545 (eval "$ac_try") 2>&5
5547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5548 (exit $ac_status); }; } &&
5549 { ac_try
='test -s conftest.$ac_objext'
5550 { (case "(($ac_try" in
5551 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5552 *) ac_try_echo=$ac_try;;
5554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5555 (eval "$ac_try") 2>&5
5557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5558 (exit $ac_status); }; }; then
5559 ac_header_compiler=yes
5561 echo "$as_me: failed program was:" >&5
5562 sed 's/^/| /' conftest.$ac_ext >&5
5564 ac_header_compiler=no
5567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5568 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5569 echo "${ECHO_T}$ac_header_compiler" >&6; }
5571 # Is the header present?
5572 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5573 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5574 cat >conftest.$ac_ext <<_ACEOF
5577 cat confdefs.h >>conftest.$ac_ext
5578 cat >>conftest.$ac_ext <<_ACEOF
5579 /* end confdefs.h. */
5580 #include <$ac_header>
5582 if { (ac_try="$ac_cpp conftest.$ac_ext"
5584 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5585 *) ac_try_echo
=$ac_try;;
5587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5588 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5590 grep -v '^ *+' conftest.er1
>conftest.err
5592 cat conftest.err
>&5
5593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5594 (exit $ac_status); } >/dev
/null
; then
5595 if test -s conftest.err
; then
5596 ac_cpp_err
=$ac_c_preproc_warn_flag
5597 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5604 if test -z "$ac_cpp_err"; then
5605 ac_header_preproc
=yes
5607 echo "$as_me: failed program was:" >&5
5608 sed 's/^/| /' conftest.
$ac_ext >&5
5610 ac_header_preproc
=no
5613 rm -f conftest.err conftest.
$ac_ext
5614 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5615 echo "${ECHO_T}$ac_header_preproc" >&6; }
5617 # So? What about this header?
5618 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5620 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5621 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5622 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5623 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5624 ac_header_preproc
=yes
5627 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5628 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5629 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5630 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5631 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5632 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5633 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5634 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5635 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5636 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5637 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5638 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5640 ## -------------------------------------------- ##
5641 ## Report this to http://www.mangosproject.org/ ##
5642 ## -------------------------------------------- ##
5644 ) |
sed "s/^/$as_me: WARNING: /" >&2
5647 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5648 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5649 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5650 echo $ECHO_N "(cached) $ECHO_C" >&6
5652 eval "$as_ac_Header=\$ac_header_preproc"
5654 ac_res
=`eval echo '${'$as_ac_Header'}'`
5655 { echo "$as_me:$LINENO: result: $ac_res" >&5
5656 echo "${ECHO_T}$ac_res" >&6; }
5659 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5660 cat >>confdefs.h
<<_ACEOF
5661 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5670 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5671 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5672 (test "X$CXX" != "Xg++"))) ; then
5674 ac_cpp
='$CXXCPP $CPPFLAGS'
5675 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5676 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5677 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5678 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5679 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5680 if test -z "$CXXCPP"; then
5681 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5682 echo $ECHO_N "(cached) $ECHO_C" >&6
5684 # Double quotes because CXXCPP needs to be expanded
5685 for CXXCPP
in "$CXX -E" "/lib/cpp"
5688 for ac_cxx_preproc_warn_flag
in '' yes
5690 # Use a header file that comes with gcc, so configuring glibc
5691 # with a fresh cross-compiler works.
5692 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5693 # <limits.h> exists even on freestanding compilers.
5694 # On the NeXT, cc -E runs the code through the compiler's parser,
5695 # not just through cpp. "Syntax error" is here to catch this case.
5696 cat >conftest.
$ac_ext <<_ACEOF
5699 cat confdefs.h
>>conftest.
$ac_ext
5700 cat >>conftest.
$ac_ext <<_ACEOF
5701 /* end confdefs.h. */
5703 # include <limits.h>
5705 # include <assert.h>
5709 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5711 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5712 *) ac_try_echo=$ac_try;;
5714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5715 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5717 grep -v '^ *+' conftest.er1 >conftest.err
5719 cat conftest.err >&5
5720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5721 (exit $ac_status); } >/dev/null; then
5722 if test -s conftest.err; then
5723 ac_cpp_err=$ac_cxx_preproc_warn_flag
5724 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5731 if test -z "$ac_cpp_err"; then
5734 echo "$as_me: failed program was:" >&5
5735 sed 's/^/| /' conftest.$ac_ext >&5
5737 # Broken: fails on valid input.
5741 rm -f conftest.err conftest.$ac_ext
5743 # OK, works on sane cases. Now check whether nonexistent headers
5744 # can be detected and how.
5745 cat >conftest.$ac_ext <<_ACEOF
5748 cat confdefs.h >>conftest.$ac_ext
5749 cat >>conftest.$ac_ext <<_ACEOF
5750 /* end confdefs.h. */
5751 #include <ac_nonexistent.h>
5753 if { (ac_try="$ac_cpp conftest.$ac_ext"
5755 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5756 *) ac_try_echo
=$ac_try;;
5758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5759 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5761 grep -v '^ *+' conftest.er1
>conftest.err
5763 cat conftest.err
>&5
5764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5765 (exit $ac_status); } >/dev
/null
; then
5766 if test -s conftest.err
; then
5767 ac_cpp_err
=$ac_cxx_preproc_warn_flag
5768 ac_cpp_err
=$ac_cpp_err$ac_cxx_werror_flag
5775 if test -z "$ac_cpp_err"; then
5776 # Broken: success on invalid input.
5779 echo "$as_me: failed program was:" >&5
5780 sed 's/^/| /' conftest.
$ac_ext >&5
5782 # Passes both tests.
5787 rm -f conftest.err conftest.
$ac_ext
5790 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5791 rm -f conftest.err conftest.
$ac_ext
5792 if $ac_preproc_ok; then
5797 ac_cv_prog_CXXCPP
=$CXXCPP
5800 CXXCPP
=$ac_cv_prog_CXXCPP
5802 ac_cv_prog_CXXCPP
=$CXXCPP
5804 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5805 echo "${ECHO_T}$CXXCPP" >&6; }
5807 for ac_cxx_preproc_warn_flag
in '' yes
5809 # Use a header file that comes with gcc, so configuring glibc
5810 # with a fresh cross-compiler works.
5811 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5812 # <limits.h> exists even on freestanding compilers.
5813 # On the NeXT, cc -E runs the code through the compiler's parser,
5814 # not just through cpp. "Syntax error" is here to catch this case.
5815 cat >conftest.
$ac_ext <<_ACEOF
5818 cat confdefs.h
>>conftest.
$ac_ext
5819 cat >>conftest.
$ac_ext <<_ACEOF
5820 /* end confdefs.h. */
5822 # include <limits.h>
5824 # include <assert.h>
5828 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5830 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5831 *) ac_try_echo=$ac_try;;
5833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5834 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5836 grep -v '^ *+' conftest.er1 >conftest.err
5838 cat conftest.err >&5
5839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5840 (exit $ac_status); } >/dev/null; then
5841 if test -s conftest.err; then
5842 ac_cpp_err=$ac_cxx_preproc_warn_flag
5843 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5850 if test -z "$ac_cpp_err"; then
5853 echo "$as_me: failed program was:" >&5
5854 sed 's/^/| /' conftest.$ac_ext >&5
5856 # Broken: fails on valid input.
5860 rm -f conftest.err conftest.$ac_ext
5862 # OK, works on sane cases. Now check whether nonexistent headers
5863 # can be detected and how.
5864 cat >conftest.$ac_ext <<_ACEOF
5867 cat confdefs.h >>conftest.$ac_ext
5868 cat >>conftest.$ac_ext <<_ACEOF
5869 /* end confdefs.h. */
5870 #include <ac_nonexistent.h>
5872 if { (ac_try="$ac_cpp conftest.$ac_ext"
5874 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5875 *) ac_try_echo
=$ac_try;;
5877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5878 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5880 grep -v '^ *+' conftest.er1
>conftest.err
5882 cat conftest.err
>&5
5883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5884 (exit $ac_status); } >/dev
/null
; then
5885 if test -s conftest.err
; then
5886 ac_cpp_err
=$ac_cxx_preproc_warn_flag
5887 ac_cpp_err
=$ac_cpp_err$ac_cxx_werror_flag
5894 if test -z "$ac_cpp_err"; then
5895 # Broken: success on invalid input.
5898 echo "$as_me: failed program was:" >&5
5899 sed 's/^/| /' conftest.
$ac_ext >&5
5901 # Passes both tests.
5906 rm -f conftest.err conftest.
$ac_ext
5909 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5910 rm -f conftest.err conftest.
$ac_ext
5911 if $ac_preproc_ok; then
5914 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5915 See \`config.log' for more details." >&5
5916 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5917 See \`config.log' for more details." >&2;}
5918 { (exit 1); exit 1; }; }
5922 ac_cpp
='$CXXCPP $CPPFLAGS'
5923 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5924 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5925 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5931 ac_compile
='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5932 ac_link
='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5933 ac_compiler_gnu
=$ac_cv_f77_compiler_gnu
5934 if test -n "$ac_tool_prefix"; then
5935 for ac_prog
in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
5937 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5938 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
5939 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5940 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5941 if test "${ac_cv_prog_F77+set}" = set; then
5942 echo $ECHO_N "(cached) $ECHO_C" >&6
5944 if test -n "$F77"; then
5945 ac_cv_prog_F77
="$F77" # Let the user override the test.
5947 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5951 test -z "$as_dir" && as_dir
=.
5952 for ac_exec_ext
in '' $ac_executable_extensions; do
5953 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5954 ac_cv_prog_F77
="$ac_tool_prefix$ac_prog"
5955 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5965 if test -n "$F77"; then
5966 { echo "$as_me:$LINENO: result: $F77" >&5
5967 echo "${ECHO_T}$F77" >&6; }
5969 { echo "$as_me:$LINENO: result: no" >&5
5970 echo "${ECHO_T}no" >&6; }
5974 test -n "$F77" && break
5977 if test -z "$F77"; then
5979 for ac_prog
in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
5981 # Extract the first word of "$ac_prog", so it can be a program name with args.
5982 set dummy
$ac_prog; ac_word
=$2
5983 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5984 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5985 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5986 echo $ECHO_N "(cached) $ECHO_C" >&6
5988 if test -n "$ac_ct_F77"; then
5989 ac_cv_prog_ac_ct_F77
="$ac_ct_F77" # Let the user override the test.
5991 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5995 test -z "$as_dir" && as_dir
=.
5996 for ac_exec_ext
in '' $ac_executable_extensions; do
5997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5998 ac_cv_prog_ac_ct_F77
="$ac_prog"
5999 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6008 ac_ct_F77
=$ac_cv_prog_ac_ct_F77
6009 if test -n "$ac_ct_F77"; then
6010 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6011 echo "${ECHO_T}$ac_ct_F77" >&6; }
6013 { echo "$as_me:$LINENO: result: no" >&5
6014 echo "${ECHO_T}no" >&6; }
6018 test -n "$ac_ct_F77" && break
6021 if test "x$ac_ct_F77" = x
; then
6024 case $cross_compiling:$ac_tool_warned in
6026 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6027 whose name does not start with the host triplet. If you think this
6028 configuration is useful to you, please write to autoconf@gnu.org." >&5
6029 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6030 whose name does not start with the host triplet. If you think this
6031 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6032 ac_tool_warned
=yes ;;
6039 # Provide some information about the compiler.
6040 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6041 ac_compiler
=`set X $ac_compile; echo $2`
6042 { (ac_try
="$ac_compiler --version >&5"
6044 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6045 *) ac_try_echo=$ac_try;;
6047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6048 (eval "$ac_compiler --version >&5") 2>&5
6050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6051 (exit $ac_status); }
6052 { (ac_try="$ac_compiler -v >&5"
6054 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6055 *) ac_try_echo
=$ac_try;;
6057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6058 (eval "$ac_compiler -v >&5") 2>&5
6060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6061 (exit $ac_status); }
6062 { (ac_try
="$ac_compiler -V >&5"
6064 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6065 *) ac_try_echo=$ac_try;;
6067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6068 (eval "$ac_compiler -V >&5") 2>&5
6070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6071 (exit $ac_status); }
6074 # If we don't use `.F
' as extension, the preprocessor is not run on the
6075 # input file. (Note that this only needs to work for GNU compilers.)
6078 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6079 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6080 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6081 echo $ECHO_N "(cached) $ECHO_C" >&6
6083 cat >conftest.$ac_ext <<_ACEOF
6091 rm -f conftest.$ac_objext
6092 if { (ac_try="$ac_compile"
6094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6095 *) ac_try_echo=$ac_try;;
6097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6098 (eval "$ac_compile") 2>conftest.er1
6100 grep -v '^
*+' conftest.er1 >conftest.err
6102 cat conftest.err >&5
6103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6104 (exit $ac_status); } &&
6105 { ac_try='test -z "$ac_f77_werror_flag" ||
test ! -s conftest.err
'
6106 { (case "(($ac_try" in
6107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6108 *) ac_try_echo=$ac_try;;
6110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6111 (eval "$ac_try") 2>&5
6113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6114 (exit $ac_status); }; } &&
6115 { ac_try='test -s conftest.
$ac_objext'
6116 { (case "(($ac_try" in
6117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6118 *) ac_try_echo=$ac_try;;
6120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6121 (eval "$ac_try") 2>&5
6123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6124 (exit $ac_status); }; }; then
6127 echo "$as_me: failed program was:" >&5
6128 sed 's
/^
/|
/' conftest.$ac_ext >&5
6133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6134 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6137 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6138 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6140 ac_test_FFLAGS=${FFLAGS+set}
6141 ac_save_FFLAGS=$FFLAGS
6143 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6144 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6145 if test "${ac_cv_prog_f77_g+set}" = set; then
6146 echo $ECHO_N "(cached) $ECHO_C" >&6
6149 cat >conftest.$ac_ext <<_ACEOF
6154 rm -f conftest.$ac_objext
6155 if { (ac_try="$ac_compile"
6157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6158 *) ac_try_echo=$ac_try;;
6160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6161 (eval "$ac_compile") 2>conftest.er1
6163 grep -v '^
*+' conftest.er1 >conftest.err
6165 cat conftest.err >&5
6166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6167 (exit $ac_status); } &&
6168 { ac_try='test -z "$ac_f77_werror_flag" ||
test ! -s conftest.err
'
6169 { (case "(($ac_try" in
6170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6171 *) ac_try_echo=$ac_try;;
6173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6174 (eval "$ac_try") 2>&5
6176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6177 (exit $ac_status); }; } &&
6178 { ac_try='test -s conftest.
$ac_objext'
6179 { (case "(($ac_try" in
6180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6181 *) ac_try_echo=$ac_try;;
6183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6184 (eval "$ac_try") 2>&5
6186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6187 (exit $ac_status); }; }; then
6188 ac_cv_prog_f77_g=yes
6190 echo "$as_me: failed program was:" >&5
6191 sed 's
/^
/|
/' conftest.$ac_ext >&5
6196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6199 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6200 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6201 if test "$ac_test_FFLAGS" = set; then
6202 FFLAGS=$ac_save_FFLAGS
6203 elif test $ac_cv_prog_f77_g = yes; then
6204 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6210 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6217 G77=`test $ac_compiler_gnu = yes && echo yes`
6219 ac_cpp='$CPP $CPPFLAGS'
6220 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
6221 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
6222 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6226 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works
for C compilers
!
6228 # find the maximum length of command line arguments
6229 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6230 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6231 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6232 echo $ECHO_N "(cached) $ECHO_C" >&6
6239 # On DJGPP, this test can blow up pretty badly due to problems in libc
6240 # (any single argument exceeding 2000 bytes causes a buffer overrun
6241 # during glob expansion). Even if it were fixed, the result of this
6242 # check would be larger than it should be.
6243 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
6247 # Under GNU Hurd, this test is not required because there is
6248 # no limit to the length of command line arguments.
6249 # Libtool will interpret -1 as no limit whatsoever
6250 lt_cv_sys_max_cmd_len
=-1;
6254 # On Win9x/ME, this test blows up -- it succeeds, but takes
6255 # about 5 minutes as the teststring grows exponentially.
6256 # Worse, since 9x/ME are not pre-emptively multitasking,
6257 # you end up with a "frozen" computer, even though with patience
6258 # the test eventually succeeds (with a max line length of 256k).
6259 # Instead, let's just punt: use the minimum linelength reported by
6260 # all of the supported platforms: 8192 (on NT/2K/XP).
6261 lt_cv_sys_max_cmd_len
=8192;
6265 # On AmigaOS with pdksh, this test takes hours, literally.
6266 # So we just punt and use a minimum line length of 8192.
6267 lt_cv_sys_max_cmd_len
=8192;
6270 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
6271 # This has been around since 386BSD, at least. Likely further.
6272 if test -x /sbin
/sysctl
; then
6273 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
6274 elif test -x /usr
/sbin
/sysctl
; then
6275 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
6277 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
6279 # And add a safety zone
6280 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
6281 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
6285 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6286 lt_cv_sys_max_cmd_len
=196608
6290 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6291 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6292 # nice to cause kernel panics so lets avoid the loop below.
6293 # First set a reasonable default.
6294 lt_cv_sys_max_cmd_len
=16384
6296 if test -x /sbin
/sysconfig
; then
6297 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6298 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
6303 lt_cv_sys_max_cmd_len
=102400
6305 sysv5
* | sco5v6
* | sysv4.2uw2
*)
6306 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6307 if test -n "$kargmax"; then
6308 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
6310 lt_cv_sys_max_cmd_len
=32768
6314 # If test is not a shell built-in, we'll probably end up computing a
6315 # maximum length that is only half of the actual maximum length, but
6317 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
6318 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6319 = "XX$teststring") >/dev
/null
2>&1 &&
6320 new_result
=`expr "X$teststring" : ".*" 2>&1` &&
6321 lt_cv_sys_max_cmd_len
=$new_result &&
6322 test $i != 17 # 1/2 MB should be enough
6325 teststring
=$teststring$teststring
6328 # Add a significant safety factor because C++ compilers can tack on massive
6329 # amounts of additional arguments before passing them to the linker.
6330 # It appears as though 1/2 is a usable value.
6331 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
6337 if test -n $lt_cv_sys_max_cmd_len ; then
6338 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6339 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6341 { echo "$as_me:$LINENO: result: none" >&5
6342 echo "${ECHO_T}none" >&6; }
6348 # Check for command to grab the raw symbol name followed by C symbol from nm.
6349 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6350 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6351 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6352 echo $ECHO_N "(cached) $ECHO_C" >&6
6355 # These are sane defaults that work on at least a few old systems.
6356 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6358 # Character class describing NM global symbol codes.
6359 symcode
='[BCDEGRST]'
6361 # Regexp to match symbols that can be accessed directly from C.
6362 sympat
='\([_A-Za-z][_A-Za-z0-9]*\)'
6364 # Transform an extracted symbol line into a proper C declaration
6365 lt_cv_sys_global_symbol_to_cdecl
="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6367 # Transform an extracted symbol line into symbol name and symbol address
6368 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'"
6370 # Define system-specific variables.
6375 cygwin
* | mingw
* | pw32
*)
6376 symcode
='[ABCDGISTW]'
6378 hpux
*) # Its linker distinguishes data from code symbols
6379 if test "$host_cpu" = ia64
; then
6380 symcode
='[ABCDEGRST]'
6382 lt_cv_sys_global_symbol_to_cdecl
="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6383 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'"
6385 linux
* | k
*bsd
*-gnu)
6386 if test "$host_cpu" = ia64
; then
6387 symcode
='[ABCDGIRSTW]'
6388 lt_cv_sys_global_symbol_to_cdecl
="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6389 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'"
6393 symcode
='[BCDEGRST]'
6396 symcode
='[BCDEGQRST]'
6407 sysv5
* | sco5v6
* | unixware
* | OpenUNIX
*)
6415 # Handle CRLF in mingw tool chain
6419 opt_cr
=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6423 # If we're using GNU nm, then use its standard symbol codes.
6424 case `$NM -V 2>&1` in
6425 *GNU
* |
*'with BFD'*)
6426 symcode
='[ABCDGIRSTW]' ;;
6429 # Try without a prefix undercore, then with it.
6430 for ac_symprfx
in "" "_"; do
6432 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6433 symxfrm
="\\1 $ac_symprfx\\2 \\2"
6435 # Write the raw and C identifiers.
6436 lt_cv_sys_global_symbol_pipe
="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6438 # Check to see that the pipe works correctly.
6442 cat > conftest.
$ac_ext <<EOF
6447 void nm_test_func(){}
6451 int main(){nm_test_var='a';nm_test_func();return(0);}
6454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6455 (eval $ac_compile) 2>&5
6457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6458 (exit $ac_status); }; then
6459 # Now try to grab the symbols.
6461 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6462 (eval $NM conftest.
$ac_objext \|
$lt_cv_sys_global_symbol_pipe \
> $nlist) 2>&5
6464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6465 (exit $ac_status); } && test -s "$nlist"; then
6466 # Try sorting and uniquifying the output.
6467 if sort "$nlist" |
uniq > "$nlist"T
; then
6468 mv -f "$nlist"T
"$nlist"
6473 # Make sure that we snagged all the symbols we need.
6474 if grep ' nm_test_var$' "$nlist" >/dev
/null
; then
6475 if grep ' nm_test_func$' "$nlist" >/dev
/null
; then
6476 cat <<EOF > conftest.$ac_ext
6482 # Now generate the symbol file.
6483 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6485 cat <<EOF >> conftest.$ac_ext
6486 #if defined (__STDC__) && __STDC__
6487 # define lt_ptr_t void *
6489 # define lt_ptr_t char *
6493 /* The mapping between symbol names and symbols. */
6498 lt_preloaded_symbols[] =
6501 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" |
grep -v main
>> conftest.
$ac_ext
6502 cat <<\EOF
>> conftest.
$ac_ext
6510 # Now try linking the two files.
6511 mv conftest.
$ac_objext conftstm.
$ac_objext
6512 lt_save_LIBS
="$LIBS"
6513 lt_save_CFLAGS
="$CFLAGS"
6514 LIBS
="conftstm.$ac_objext"
6515 CFLAGS
="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6517 (eval $ac_link) 2>&5
6519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6520 (exit $ac_status); } && test -s conftest
${ac_exeext}; then
6523 LIBS
="$lt_save_LIBS"
6524 CFLAGS
="$lt_save_CFLAGS"
6526 echo "cannot find nm_test_func in $nlist" >&5
6529 echo "cannot find nm_test_var in $nlist" >&5
6532 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6535 echo "$progname: failed program was:" >&5
6536 cat conftest.
$ac_ext >&5
6538 rm -f conftest
* conftst
*
6540 # Do not use the global_symbol_pipe unless it works.
6541 if test "$pipe_works" = yes; then
6544 lt_cv_sys_global_symbol_pipe
=
6550 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6551 lt_cv_sys_global_symbol_to_cdecl
=
6553 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6554 { echo "$as_me:$LINENO: result: failed" >&5
6555 echo "${ECHO_T}failed" >&6; }
6557 { echo "$as_me:$LINENO: result: ok" >&5
6558 echo "${ECHO_T}ok" >&6; }
6561 { echo "$as_me:$LINENO: checking for objdir" >&5
6562 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6563 if test "${lt_cv_objdir+set}" = set; then
6564 echo $ECHO_N "(cached) $ECHO_C" >&6
6566 rm -f .libs
2>/dev
/null
6567 mkdir .libs
2>/dev
/null
6568 if test -d .libs
; then
6571 # MS-DOS does not allow filenames that begin with a dot.
6574 rmdir .libs
2>/dev
/null
6576 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6577 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6578 objdir
=$lt_cv_objdir
6586 # AIX sometimes has problems with the GCC collect2 program. For some
6587 # reason, if we set the COLLECT_NAMES environment variable, the problems
6588 # vanish in a puff of smoke.
6589 if test "X${COLLECT_NAMES+set}" != Xset
; then
6591 export COLLECT_NAMES
6596 # Sed substitution that helps us do robust quoting. It backslashifies
6597 # metacharacters that are still active within double-quoted strings.
6598 Xsed
='sed -e 1s/^X//'
6599 sed_quote_subst
='s/\([\\"\\`$\\\\]\)/\\\1/g'
6601 # Same as above, but do not quote variable references.
6602 double_quote_subst
='s/\([\\"\\`\\\\]\)/\\\1/g'
6604 # Sed substitution to delay expansion of an escaped shell variable in a
6605 # double_quote_subst'ed string.
6606 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
6608 # Sed substitution to avoid accidental globbing in evaled expressions
6609 no_glob_subst
='s/\*/\\\*/g'
6615 default_ofile
=libtool
6616 can_build_shared
=yes
6618 # All known linkers require a `.a' archive for static linking (except MSVC,
6619 # which needs '.lib').
6621 ltmain
="$ac_aux_dir/ltmain.sh"
6622 ofile
="$default_ofile"
6623 with_gnu_ld
="$lt_cv_prog_gnu_ld"
6625 if test -n "$ac_tool_prefix"; then
6626 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6627 set dummy
${ac_tool_prefix}ar; ac_word
=$2
6628 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6629 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6630 if test "${ac_cv_prog_AR+set}" = set; then
6631 echo $ECHO_N "(cached) $ECHO_C" >&6
6633 if test -n "$AR"; then
6634 ac_cv_prog_AR
="$AR" # Let the user override the test.
6636 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6640 test -z "$as_dir" && as_dir
=.
6641 for ac_exec_ext
in '' $ac_executable_extensions; do
6642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6643 ac_cv_prog_AR
="${ac_tool_prefix}ar"
6644 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6654 if test -n "$AR"; then
6655 { echo "$as_me:$LINENO: result: $AR" >&5
6656 echo "${ECHO_T}$AR" >&6; }
6658 { echo "$as_me:$LINENO: result: no" >&5
6659 echo "${ECHO_T}no" >&6; }
6664 if test -z "$ac_cv_prog_AR"; then
6666 # Extract the first word of "ar", so it can be a program name with args.
6667 set dummy
ar; ac_word
=$2
6668 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6669 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6670 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6671 echo $ECHO_N "(cached) $ECHO_C" >&6
6673 if test -n "$ac_ct_AR"; then
6674 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
6676 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6680 test -z "$as_dir" && as_dir
=.
6681 for ac_exec_ext
in '' $ac_executable_extensions; do
6682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6683 ac_cv_prog_ac_ct_AR
="ar"
6684 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6693 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
6694 if test -n "$ac_ct_AR"; then
6695 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6696 echo "${ECHO_T}$ac_ct_AR" >&6; }
6698 { echo "$as_me:$LINENO: result: no" >&5
6699 echo "${ECHO_T}no" >&6; }
6702 if test "x$ac_ct_AR" = x
; then
6705 case $cross_compiling:$ac_tool_warned in
6707 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6708 whose name does not start with the host triplet. If you think this
6709 configuration is useful to you, please write to autoconf@gnu.org." >&5
6710 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6711 whose name does not start with the host triplet. If you think this
6712 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6713 ac_tool_warned
=yes ;;
6721 if test -n "$ac_tool_prefix"; then
6722 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6723 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
6724 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6725 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6726 if test "${ac_cv_prog_RANLIB+set}" = set; then
6727 echo $ECHO_N "(cached) $ECHO_C" >&6
6729 if test -n "$RANLIB"; then
6730 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
6732 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6736 test -z "$as_dir" && as_dir
=.
6737 for ac_exec_ext
in '' $ac_executable_extensions; do
6738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6739 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
6740 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6749 RANLIB
=$ac_cv_prog_RANLIB
6750 if test -n "$RANLIB"; then
6751 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6752 echo "${ECHO_T}$RANLIB" >&6; }
6754 { echo "$as_me:$LINENO: result: no" >&5
6755 echo "${ECHO_T}no" >&6; }
6760 if test -z "$ac_cv_prog_RANLIB"; then
6761 ac_ct_RANLIB
=$RANLIB
6762 # Extract the first word of "ranlib", so it can be a program name with args.
6763 set dummy ranlib
; ac_word
=$2
6764 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6765 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6766 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6767 echo $ECHO_N "(cached) $ECHO_C" >&6
6769 if test -n "$ac_ct_RANLIB"; then
6770 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
6772 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6776 test -z "$as_dir" && as_dir
=.
6777 for ac_exec_ext
in '' $ac_executable_extensions; do
6778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6779 ac_cv_prog_ac_ct_RANLIB
="ranlib"
6780 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6789 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
6790 if test -n "$ac_ct_RANLIB"; then
6791 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6792 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6794 { echo "$as_me:$LINENO: result: no" >&5
6795 echo "${ECHO_T}no" >&6; }
6798 if test "x$ac_ct_RANLIB" = x
; then
6801 case $cross_compiling:$ac_tool_warned in
6803 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6804 whose name does not start with the host triplet. If you think this
6805 configuration is useful to you, please write to autoconf@gnu.org." >&5
6806 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6807 whose name does not start with the host triplet. If you think this
6808 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6809 ac_tool_warned
=yes ;;
6811 RANLIB
=$ac_ct_RANLIB
6814 RANLIB
="$ac_cv_prog_RANLIB"
6817 if test -n "$ac_tool_prefix"; then
6818 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6819 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
6820 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6821 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6822 if test "${ac_cv_prog_STRIP+set}" = set; then
6823 echo $ECHO_N "(cached) $ECHO_C" >&6
6825 if test -n "$STRIP"; then
6826 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
6828 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6832 test -z "$as_dir" && as_dir
=.
6833 for ac_exec_ext
in '' $ac_executable_extensions; do
6834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6835 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
6836 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6845 STRIP
=$ac_cv_prog_STRIP
6846 if test -n "$STRIP"; then
6847 { echo "$as_me:$LINENO: result: $STRIP" >&5
6848 echo "${ECHO_T}$STRIP" >&6; }
6850 { echo "$as_me:$LINENO: result: no" >&5
6851 echo "${ECHO_T}no" >&6; }
6856 if test -z "$ac_cv_prog_STRIP"; then
6858 # Extract the first word of "strip", so it can be a program name with args.
6859 set dummy strip
; ac_word
=$2
6860 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6862 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6863 echo $ECHO_N "(cached) $ECHO_C" >&6
6865 if test -n "$ac_ct_STRIP"; then
6866 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
6868 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6872 test -z "$as_dir" && as_dir
=.
6873 for ac_exec_ext
in '' $ac_executable_extensions; do
6874 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6875 ac_cv_prog_ac_ct_STRIP
="strip"
6876 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6885 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
6886 if test -n "$ac_ct_STRIP"; then
6887 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6888 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6890 { echo "$as_me:$LINENO: result: no" >&5
6891 echo "${ECHO_T}no" >&6; }
6894 if test "x$ac_ct_STRIP" = x
; then
6897 case $cross_compiling:$ac_tool_warned in
6899 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6900 whose name does not start with the host triplet. If you think this
6901 configuration is useful to you, please write to autoconf@gnu.org." >&5
6902 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6903 whose name does not start with the host triplet. If you think this
6904 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6905 ac_tool_warned
=yes ;;
6910 STRIP
="$ac_cv_prog_STRIP"
6915 old_CFLAGS
="$CFLAGS"
6917 # Set sane defaults for various variables
6918 test -z "$AR" && AR
=ar
6919 test -z "$AR_FLAGS" && AR_FLAGS
=cru
6920 test -z "$AS" && AS
=as
6921 test -z "$CC" && CC
=cc
6922 test -z "$LTCC" && LTCC
=$CC
6923 test -z "$LTCFLAGS" && LTCFLAGS
=$CFLAGS
6924 test -z "$DLLTOOL" && DLLTOOL
=dlltool
6925 test -z "$LD" && LD
=ld
6926 test -z "$LN_S" && LN_S
="ln -s"
6927 test -z "$MAGIC_CMD" && MAGIC_CMD
=file
6928 test -z "$NM" && NM
=nm
6929 test -z "$SED" && SED
=sed
6930 test -z "$OBJDUMP" && OBJDUMP
=objdump
6931 test -z "$RANLIB" && RANLIB
=:
6932 test -z "$STRIP" && STRIP
=:
6933 test -z "$ac_objext" && ac_objext
=o
6935 # Determine commands to create old-style static archives.
6936 old_archive_cmds
='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6937 old_postinstall_cmds
='chmod 644 $oldlib'
6938 old_postuninstall_cmds
=
6940 if test -n "$RANLIB"; then
6943 old_postinstall_cmds
="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6946 old_postinstall_cmds
="$old_postinstall_cmds~\$RANLIB \$oldlib"
6949 old_archive_cmds
="$old_archive_cmds~\$RANLIB \$oldlib"
6952 for cc_temp
in $compiler""; do
6954 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
6955 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
6960 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6963 # Only perform the check for file, if the check method requires it
6964 case $deplibs_check_method in
6966 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6967 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6968 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6969 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6970 echo $ECHO_N "(cached) $ECHO_C" >&6
6974 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
6977 lt_save_MAGIC_CMD
="$MAGIC_CMD"
6978 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
6979 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
6980 for ac_dir
in $ac_dummy; do
6982 test -z "$ac_dir" && ac_dir
=.
6983 if test -f $ac_dir/${ac_tool_prefix}file; then
6984 lt_cv_path_MAGIC_CMD
="$ac_dir/${ac_tool_prefix}file"
6985 if test -n "$file_magic_test_file"; then
6986 case $deplibs_check_method in
6988 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6989 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
6990 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
6991 $EGREP "$file_magic_regex" > /dev
/null
; then
6996 *** Warning: the command libtool uses to detect shared libraries,
6997 *** $file_magic_cmd, produces output that libtool cannot recognize.
6998 *** The result is that libtool may fail to recognize shared libraries
6999 *** as such. This will affect the creation of libtool libraries that
7000 *** depend on shared libraries, but programs linked with such libtool
7001 *** libraries will work regardless of this problem. Nevertheless, you
7002 *** may want to report the problem to your system manager and/or to
7003 *** bug-libtool@gnu.org
7013 MAGIC_CMD
="$lt_save_MAGIC_CMD"
7018 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
7019 if test -n "$MAGIC_CMD"; then
7020 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7021 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7023 { echo "$as_me:$LINENO: result: no" >&5
7024 echo "${ECHO_T}no" >&6; }
7027 if test -z "$lt_cv_path_MAGIC_CMD"; then
7028 if test -n "$ac_tool_prefix"; then
7029 { echo "$as_me:$LINENO: checking for file" >&5
7030 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7031 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7032 echo $ECHO_N "(cached) $ECHO_C" >&6
7036 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
7039 lt_save_MAGIC_CMD
="$MAGIC_CMD"
7040 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
7041 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
7042 for ac_dir
in $ac_dummy; do
7044 test -z "$ac_dir" && ac_dir
=.
7045 if test -f $ac_dir/file; then
7046 lt_cv_path_MAGIC_CMD
="$ac_dir/file"
7047 if test -n "$file_magic_test_file"; then
7048 case $deplibs_check_method in
7050 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7051 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
7052 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
7053 $EGREP "$file_magic_regex" > /dev
/null
; then
7058 *** Warning: the command libtool uses to detect shared libraries,
7059 *** $file_magic_cmd, produces output that libtool cannot recognize.
7060 *** The result is that libtool may fail to recognize shared libraries
7061 *** as such. This will affect the creation of libtool libraries that
7062 *** depend on shared libraries, but programs linked with such libtool
7063 *** libraries will work regardless of this problem. Nevertheless, you
7064 *** may want to report the problem to your system manager and/or to
7065 *** bug-libtool@gnu.org
7075 MAGIC_CMD
="$lt_save_MAGIC_CMD"
7080 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
7081 if test -n "$MAGIC_CMD"; then
7082 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7083 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7085 { echo "$as_me:$LINENO: result: no" >&5
7086 echo "${ECHO_T}no" >&6; }
7101 # Check whether --enable-libtool-lock was given.
7102 if test "${enable_libtool_lock+set}" = set; then
7103 enableval
=$enable_libtool_lock;
7106 test "x$enable_libtool_lock" != xno
&& enable_libtool_lock
=yes
7109 # Check whether --with-pic was given.
7110 if test "${with_pic+set}" = set; then
7111 withval
=$with_pic; pic_mode
="$withval"
7116 test -z "$pic_mode" && pic_mode
=default
7118 # Use C for the default configuration in the libtool script
7122 ac_cpp
='$CPP $CPPFLAGS'
7123 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7124 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7125 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7128 # Source file extension for C test sources.
7131 # Object file extension for compiled C test sources.
7135 # Code to be used in simple compile tests
7136 lt_simple_compile_test_code
="int some_variable = 0;\n"
7138 # Code to be used in simple link tests
7139 lt_simple_link_test_code
='int main(){return(0);}\n'
7142 # If no C compiler was specified, use CC.
7145 # If no C compiler flags were specified, use CFLAGS.
7146 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
7148 # Allow CC to be a program name with arguments.
7152 # save warnings/boilerplate of simple test code
7153 ac_outfile
=conftest.
$ac_objext
7154 printf "$lt_simple_compile_test_code" >conftest.
$ac_ext
7155 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
7156 _lt_compiler_boilerplate
=`cat conftest.err`
7159 ac_outfile
=conftest.
$ac_objext
7160 printf "$lt_simple_link_test_code" >conftest.
$ac_ext
7161 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
7162 _lt_linker_boilerplate
=`cat conftest.err`
7167 lt_prog_compiler_no_builtin_flag
=
7169 if test "$GCC" = yes; then
7170 lt_prog_compiler_no_builtin_flag
=' -fno-builtin'
7173 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7174 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7175 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7176 echo $ECHO_N "(cached) $ECHO_C" >&6
7178 lt_cv_prog_compiler_rtti_exceptions
=no
7179 ac_outfile
=conftest.
$ac_objext
7180 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
7181 lt_compiler_flag
="-fno-rtti -fno-exceptions"
7182 # Insert the option either (1) after the last *FLAGS variable, or
7183 # (2) before a word containing "conftest.", or (3) at the end.
7184 # Note that $ac_compile itself does not contain backslashes and begins
7185 # with a dollar sign (not a hyphen), so the echo should work correctly.
7186 # The option is referenced via a variable to avoid confusing sed.
7187 lt_compile
=`echo "$ac_compile" | $SED \
7188 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7189 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7190 -e 's:$: $lt_compiler_flag:'`
7191 (eval echo "\"\$as_me:7191: $lt_compile\"" >&5)
7192 (eval "$lt_compile" 2>conftest.err
)
7194 cat conftest.err
>&5
7195 echo "$as_me:7195: \$? = $ac_status" >&5
7196 if (exit $ac_status) && test -s "$ac_outfile"; then
7197 # The compiler can only warn and ignore the option if not recognized
7198 # So say no if there are warnings other than the usual output.
7199 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
7200 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
7201 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
7202 lt_cv_prog_compiler_rtti_exceptions
=yes
7208 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7209 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7211 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
7212 lt_prog_compiler_no_builtin_flag
="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7219 lt_prog_compiler_wl
=
7220 lt_prog_compiler_pic
=
7221 lt_prog_compiler_static
=
7223 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7224 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7226 if test "$GCC" = yes; then
7227 lt_prog_compiler_wl
='-Wl,'
7228 lt_prog_compiler_static
='-static'
7232 # All AIX code is PIC.
7233 if test "$host_cpu" = ia64
; then
7234 # AIX 5 now supports IA64 processor
7235 lt_prog_compiler_static
='-Bstatic'
7240 # FIXME: we need at least 68020 code to build shared libraries, but
7241 # adding the `-m68020' flag to GCC prevents building anything better,
7243 lt_prog_compiler_pic
='-m68020 -resident32 -malways-restore-a4'
7246 beos
* | cygwin
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
7247 # PIC is the default for these OSes.
7250 mingw
* | pw32
* | os2
*)
7251 # This hack is so that the source file can tell whether it is being
7252 # built for inclusion in a dll (and should export symbols for example).
7253 lt_prog_compiler_pic
='-DDLL_EXPORT'
7256 darwin
* | rhapsody
*)
7257 # PIC is the default on this platform
7258 # Common symbols not allowed in MH_DYLIB files
7259 lt_prog_compiler_pic
='-fno-common'
7263 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7264 # Instead, we relocate shared libraries at runtime.
7268 # Just because we use GCC doesn't mean we suddenly get shared libraries
7269 # on systems that don't support them.
7270 lt_prog_compiler_can_build_shared
=no
7275 if test -d /usr
/nec
; then
7276 lt_prog_compiler_pic
=-Kconform_pic
7281 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7288 lt_prog_compiler_pic
='-fPIC'
7294 lt_prog_compiler_pic
='-fPIC'
7298 # PORTME Check for flag to pass linker flags through the system compiler.
7301 lt_prog_compiler_wl
='-Wl,'
7302 if test "$host_cpu" = ia64
; then
7303 # AIX 5 now supports IA64 processor
7304 lt_prog_compiler_static
='-Bstatic'
7306 lt_prog_compiler_static
='-bnso -bI:/lib/syscalls.exp'
7310 # PIC is the default on this platform
7311 # Common symbols not allowed in MH_DYLIB files
7312 case $cc_basename in
7314 lt_prog_compiler_pic
='-qnocommon'
7315 lt_prog_compiler_wl
='-Wl,'
7320 mingw
* | pw32
* | os2
*)
7321 # This hack is so that the source file can tell whether it is being
7322 # built for inclusion in a dll (and should export symbols for example).
7323 lt_prog_compiler_pic
='-DDLL_EXPORT'
7326 hpux9
* | hpux10
* | hpux11
*)
7327 lt_prog_compiler_wl
='-Wl,'
7328 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7335 lt_prog_compiler_pic
='+Z'
7338 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7339 lt_prog_compiler_static
='${wl}-a ${wl}archive'
7342 irix5
* | irix6
* | nonstopux
*)
7343 lt_prog_compiler_wl
='-Wl,'
7344 # PIC (with -KPIC) is the default.
7345 lt_prog_compiler_static
='-non_shared'
7349 lt_prog_compiler_pic
='-KPIC'
7350 lt_prog_compiler_static
='-Bstatic'
7353 linux
* | k
*bsd
*-gnu)
7354 case $cc_basename in
7356 lt_prog_compiler_wl
='-Wl,'
7357 lt_prog_compiler_pic
='-KPIC'
7358 lt_prog_compiler_static
='-static'
7360 pgcc
* | pgf77
* | pgf90
* | pgf95
*)
7361 # Portland Group compilers (*not* the Pentium gcc compiler,
7362 # which looks to be a dead project)
7363 lt_prog_compiler_wl
='-Wl,'
7364 lt_prog_compiler_pic
='-fpic'
7365 lt_prog_compiler_static
='-Bstatic'
7368 lt_prog_compiler_wl
='-Wl,'
7369 # All Alpha code is PIC.
7370 lt_prog_compiler_static
='-non_shared'
7375 osf3
* | osf4
* | osf5
*)
7376 lt_prog_compiler_wl
='-Wl,'
7377 # All OSF/1 code is PIC.
7378 lt_prog_compiler_static
='-non_shared'
7382 lt_prog_compiler_pic
='-KPIC'
7383 lt_prog_compiler_static
='-Bstatic'
7384 case $cc_basename in
7386 lt_prog_compiler_wl
='-Qoption ld ';;
7388 lt_prog_compiler_wl
='-Wl,';;
7393 lt_prog_compiler_wl
='-Qoption ld '
7394 lt_prog_compiler_pic
='-PIC'
7395 lt_prog_compiler_static
='-Bstatic'
7398 sysv4 | sysv4.2uw2
* | sysv4.3
*)
7399 lt_prog_compiler_wl
='-Wl,'
7400 lt_prog_compiler_pic
='-KPIC'
7401 lt_prog_compiler_static
='-Bstatic'
7405 if test -d /usr
/nec
;then
7406 lt_prog_compiler_pic
='-Kconform_pic'
7407 lt_prog_compiler_static
='-Bstatic'
7411 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
7412 lt_prog_compiler_wl
='-Wl,'
7413 lt_prog_compiler_pic
='-KPIC'
7414 lt_prog_compiler_static
='-Bstatic'
7418 lt_prog_compiler_wl
='-Wl,'
7419 lt_prog_compiler_can_build_shared
=no
7423 lt_prog_compiler_pic
='-pic'
7424 lt_prog_compiler_static
='-Bstatic'
7428 lt_prog_compiler_can_build_shared
=no
7433 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7434 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7437 # Check to make sure the PIC flag actually works.
7439 if test -n "$lt_prog_compiler_pic"; then
7441 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7442 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7443 if test "${lt_prog_compiler_pic_works+set}" = set; then
7444 echo $ECHO_N "(cached) $ECHO_C" >&6
7446 lt_prog_compiler_pic_works
=no
7447 ac_outfile
=conftest.
$ac_objext
7448 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
7449 lt_compiler_flag
="$lt_prog_compiler_pic -DPIC"
7450 # Insert the option either (1) after the last *FLAGS variable, or
7451 # (2) before a word containing "conftest.", or (3) at the end.
7452 # Note that $ac_compile itself does not contain backslashes and begins
7453 # with a dollar sign (not a hyphen), so the echo should work correctly.
7454 # The option is referenced via a variable to avoid confusing sed.
7455 lt_compile
=`echo "$ac_compile" | $SED \
7456 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7457 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7458 -e 's:$: $lt_compiler_flag:'`
7459 (eval echo "\"\$as_me:7459: $lt_compile\"" >&5)
7460 (eval "$lt_compile" 2>conftest.err
)
7462 cat conftest.err
>&5
7463 echo "$as_me:7463: \$? = $ac_status" >&5
7464 if (exit $ac_status) && test -s "$ac_outfile"; then
7465 # The compiler can only warn and ignore the option if not recognized
7466 # So say no if there are warnings other than the usual output.
7467 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
7468 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
7469 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
7470 lt_prog_compiler_pic_works
=yes
7476 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7477 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7479 if test x
"$lt_prog_compiler_pic_works" = xyes
; then
7480 case $lt_prog_compiler_pic in
7482 *) lt_prog_compiler_pic
=" $lt_prog_compiler_pic" ;;
7485 lt_prog_compiler_pic
=
7486 lt_prog_compiler_can_build_shared
=no
7491 # For platforms which do not support PIC, -DPIC is meaningless:
7493 lt_prog_compiler_pic
=
7496 lt_prog_compiler_pic
="$lt_prog_compiler_pic -DPIC"
7501 # Check to make sure the static flag actually works.
7503 wl
=$lt_prog_compiler_wl eval lt_tmp_static_flag
=\"$lt_prog_compiler_static\"
7504 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7505 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7506 if test "${lt_prog_compiler_static_works+set}" = set; then
7507 echo $ECHO_N "(cached) $ECHO_C" >&6
7509 lt_prog_compiler_static_works
=no
7510 save_LDFLAGS
="$LDFLAGS"
7511 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
7512 printf "$lt_simple_link_test_code" > conftest.
$ac_ext
7513 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
7514 # The linker can only warn and ignore the option if not recognized
7515 # So say no if there are warnings
7516 if test -s conftest.err
; then
7517 # Append any errors to the config.log.
7518 cat conftest.err
1>&5
7519 $echo "X$_lt_linker_boilerplate" |
$Xsed -e '/^$/d' > conftest.exp
7520 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
7521 if diff conftest.exp conftest.er2
>/dev
/null
; then
7522 lt_prog_compiler_static_works
=yes
7525 lt_prog_compiler_static_works
=yes
7529 LDFLAGS
="$save_LDFLAGS"
7532 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7533 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7535 if test x
"$lt_prog_compiler_static_works" = xyes
; then
7538 lt_prog_compiler_static
=
7542 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7543 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7544 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7545 echo $ECHO_N "(cached) $ECHO_C" >&6
7547 lt_cv_prog_compiler_c_o
=no
7548 $rm -r conftest
2>/dev
/null
7552 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
7554 lt_compiler_flag
="-o out/conftest2.$ac_objext"
7555 # Insert the option either (1) after the last *FLAGS variable, or
7556 # (2) before a word containing "conftest.", or (3) at the end.
7557 # Note that $ac_compile itself does not contain backslashes and begins
7558 # with a dollar sign (not a hyphen), so the echo should work correctly.
7559 lt_compile
=`echo "$ac_compile" | $SED \
7560 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7561 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7562 -e 's:$: $lt_compiler_flag:'`
7563 (eval echo "\"\$as_me:7563: $lt_compile\"" >&5)
7564 (eval "$lt_compile" 2>out
/conftest.err
)
7566 cat out
/conftest.err
>&5
7567 echo "$as_me:7567: \$? = $ac_status" >&5
7568 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
7570 # The compiler can only warn and ignore the option if not recognized
7571 # So say no if there are warnings
7572 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
7573 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
7574 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
7575 lt_cv_prog_compiler_c_o
=yes
7580 # SGI C++ compiler will create directory out/ii_files/ for
7581 # template instantiation
7582 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
7583 $rm out
/* && rmdir out
7589 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7590 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7593 hard_links
="nottested"
7594 if test "$lt_cv_prog_compiler_c_o" = no
&& test "$need_locks" != no
; then
7595 # do not overwrite the value of need_locks provided by the user
7596 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7597 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7600 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
7602 ln conftest.a conftest.b
2>&5 || hard_links
=no
7603 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
7604 { echo "$as_me:$LINENO: result: $hard_links" >&5
7605 echo "${ECHO_T}$hard_links" >&6; }
7606 if test "$hard_links" = no
; then
7607 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7608 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7615 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7616 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7619 allow_undefined_flag
=
7620 enable_shared_with_static_runtimes
=no
7622 archive_expsym_cmds
=
7623 old_archive_From_new_cmds
=
7624 old_archive_from_expsyms_cmds
=
7625 export_dynamic_flag_spec
=
7626 whole_archive_flag_spec
=
7627 thread_safe_flag_spec
=
7628 hardcode_libdir_flag_spec
=
7629 hardcode_libdir_flag_spec_ld
=
7630 hardcode_libdir_separator
=
7633 hardcode_shlibpath_var
=unsupported
7634 link_all_deplibs
=unknown
7635 hardcode_automatic
=no
7638 always_export_symbols
=no
7639 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7640 # include_expsyms should be a list of space-separated symbols to be *always*
7641 # included in the symbol list
7643 # exclude_expsyms can be an extended regexp of symbols to exclude
7644 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7645 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7646 # as well as any symbol that contains `d'.
7647 exclude_expsyms
="_GLOBAL_OFFSET_TABLE_"
7648 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7649 # platforms (ab)use it in PIC code, but their linkers get confused if
7650 # the symbol is explicitly referenced. Since portable code cannot
7651 # rely on this symbol name, it's probably fine to never include it in
7652 # preloaded symbol tables.
7653 extract_expsyms_cmds
=
7654 # Just being paranoid about ensuring that cc_basename is set.
7655 for cc_temp
in $compiler""; do
7657 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
7658 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
7663 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7666 cygwin
* | mingw
* | pw32
*)
7667 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7668 # When not using gcc, we currently assume that we are using
7669 # Microsoft Visual C++.
7670 if test "$GCC" != yes; then
7675 # we just hope/assume this is gcc and not c89 (= MSVC++)
7684 if test "$with_gnu_ld" = yes; then
7685 # If archive_cmds runs LD, not CC, wlarc should be empty
7688 # Set some defaults for GNU ld with shared library support. These
7689 # are reset later if shared libraries are not supported. Putting them
7690 # here allows them to be overridden if necessary.
7691 runpath_var
=LD_RUN_PATH
7692 hardcode_libdir_flag_spec
='${wl}--rpath ${wl}$libdir'
7693 export_dynamic_flag_spec
='${wl}--export-dynamic'
7694 # ancient GNU ld didn't support --whole-archive et. al.
7695 if $LD --help 2>&1 |
grep 'no-whole-archive' > /dev
/null
; then
7696 whole_archive_flag_spec
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7698 whole_archive_flag_spec
=
7700 supports_anon_versioning
=no
7701 case `$LD -v 2>/dev/null` in
7702 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
7703 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
7704 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
7705 *\
2.11.
*) ;; # other 2.11 versions
7706 *) supports_anon_versioning
=yes ;;
7709 # See if GNU ld supports shared libraries.
7711 aix3
* | aix4
* | aix5
*)
7712 # On AIX/PPC, the GNU linker is very broken
7713 if test "$host_cpu" != ia64
; then
7717 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7718 *** to be unable to reliably create shared libraries on AIX.
7719 *** Therefore, libtool is disabling shared libraries support. If you
7720 *** really care for shared libraries, you may want to modify your PATH
7721 *** so that a non-GNU linker is found, and then restart.
7728 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)'
7729 hardcode_libdir_flag_spec
='-L$libdir'
7730 hardcode_minus_L
=yes
7732 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7733 # that the semantics of dynamic libraries on AmigaOS, at least up
7734 # to version 4, is to share data among multiple programs linked
7735 # with the same dynamic library. Since this doesn't match the
7736 # behavior of shared libraries on other platforms, we can't use
7742 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
7743 allow_undefined_flag
=unsupported
7744 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7745 # support --undefined. This deserves some investigation. FIXME
7746 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7752 cygwin
* | mingw
* | pw32
*)
7753 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7754 # as there is no search path for DLLs.
7755 hardcode_libdir_flag_spec
='-L$libdir'
7756 allow_undefined_flag
=unsupported
7757 always_export_symbols
=no
7758 enable_shared_with_static_runtimes
=yes
7759 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7761 if $LD --help 2>&1 |
grep 'auto-import' > /dev
/null
; then
7762 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7763 # If the export-symbols file already is a .def file (1st line
7764 # is EXPORTS), use it as is; otherwise, prepend...
7765 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7766 cp $export_symbols $output_objdir/$soname.def;
7768 echo EXPORTS > $output_objdir/$soname.def;
7769 cat $export_symbols >> $output_objdir/$soname.def;
7771 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7779 hardcode_shlibpath_var
=no
7780 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
7781 export_dynamic_flag_spec
='${wl}-E'
7782 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7783 # Instead, shared libraries are loaded at an image base (0x10000000 by
7784 # default) and relocated if they conflict, which is a slow very memory
7785 # consuming and fragmenting process. To avoid this, we pick a random,
7786 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7787 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7788 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7789 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'
7792 linux
* | k
*bsd
*-gnu)
7793 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
7795 case $cc_basename,$host_cpu in
7796 pgcc
*) # Portland Group C compiler
7797 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'
7798 tmp_addflag
=' $pic_flag'
7800 pgf77
* | pgf90
* | pgf95
*) # Portland Group f77 and f90 compilers
7801 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'
7802 tmp_addflag
=' $pic_flag -Mnomain' ;;
7803 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
7804 tmp_addflag
=' -i_dynamic' ;;
7805 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
7806 tmp_addflag
=' -i_dynamic -nofor_main' ;;
7807 ifc
* | ifort
*) # Intel Fortran compiler
7808 tmp_addflag
=' -nofor_main' ;;
7810 archive_cmds
='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7812 if test $supports_anon_versioning = yes; then
7813 archive_expsym_cmds
='$echo "{ global:" > $output_objdir/$libname.ver~
7814 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7815 $echo "local: *; };" >> $output_objdir/$libname.ver~
7816 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7824 netbsd
* | netbsdelf
*-gnu)
7825 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
7826 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7829 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7830 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7835 if $LD -v 2>&1 |
grep 'BFD 2\.8' > /dev
/null
; then
7839 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7840 *** create shared libraries on Solaris systems. Therefore, libtool
7841 *** is disabling shared libraries support. We urge you to upgrade GNU
7842 *** binutils to release 2.9.1 or newer. Another option is to modify
7843 *** your PATH or compiler configuration so that the native linker is
7844 *** used, and then restart.
7847 elif $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
7848 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7849 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7855 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
7856 case `$LD -v 2>&1` in
7857 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
7861 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7862 *** reliably create shared libraries on SCO systems. Therefore, libtool
7863 *** is disabling shared libraries support. We urge you to upgrade GNU
7864 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7865 *** your PATH or compiler configuration so that the native linker is
7866 *** used, and then restart.
7871 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
7872 hardcode_libdir_flag_spec
='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7873 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7874 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7883 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7886 hardcode_shlibpath_var
=no
7890 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
7891 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7892 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7899 if test "$ld_shlibs" = no
; then
7901 hardcode_libdir_flag_spec
=
7902 export_dynamic_flag_spec
=
7903 whole_archive_flag_spec
=
7906 # PORTME fill in a description of your system's linker (not GNU ld)
7909 allow_undefined_flag
=unsupported
7910 always_export_symbols
=yes
7911 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'
7912 # Note: this linker hardcodes the directories in LIBPATH if there
7913 # are no directories specified by -L.
7914 hardcode_minus_L
=yes
7915 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7916 # Neither direct hardcoding nor static linking is supported with a
7918 hardcode_direct
=unsupported
7923 if test "$host_cpu" = ia64
; then
7924 # On IA64, the linker does run time linking by default, so we don't
7925 # have to do anything special.
7926 aix_use_runtimelinking
=no
7927 exp_sym_flag
='-Bexport'
7930 # If we're using GNU nm, then we don't want the "-C" option.
7931 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7932 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
7933 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'
7935 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'
7937 aix_use_runtimelinking
=no
7939 # Test if we are trying to use run time linking or normal
7940 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7941 # need to do runtime linking.
7942 case $host_os in aix4.
[23]|aix4.
[23].
*|aix5
*)
7943 for ld_flag
in $LDFLAGS; do
7944 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
7945 aix_use_runtimelinking
=yes
7952 exp_sym_flag
='-bexport'
7953 no_entry_flag
='-bnoentry'
7956 # When large executables or shared objects are built, AIX ld can
7957 # have problems creating the table of contents. If linking a library
7958 # or program results in "error TOC overflow" add -mminimal-toc to
7959 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7960 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7964 hardcode_libdir_separator
=':'
7965 link_all_deplibs
=yes
7967 if test "$GCC" = yes; then
7968 case $host_os in aix4.
[012]|aix4.
[012].
*)
7969 # We only want to do this on AIX 4.2 and lower, the check
7970 # below for broken collect2 doesn't work under 4.3+
7971 collect2name
=`${CC} -print-prog-name=collect2`
7972 if test -f "$collect2name" && \
7973 strings "$collect2name" |
grep resolve_lib_name
>/dev
/null
7975 # We have reworked collect2
7978 # We have old collect2
7979 hardcode_direct
=unsupported
7980 # It fails to find uninstalled libraries when the uninstalled
7981 # path is not listed in the libpath. Setting hardcode_minus_L
7982 # to unsupported forces relinking
7983 hardcode_minus_L
=yes
7984 hardcode_libdir_flag_spec
='-L$libdir'
7985 hardcode_libdir_separator
=
7989 shared_flag
='-shared'
7990 if test "$aix_use_runtimelinking" = yes; then
7991 shared_flag
="$shared_flag "'${wl}-G'
7995 if test "$host_cpu" = ia64
; then
7996 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7997 # chokes on -Wl,-G. The following line is correct:
8000 if test "$aix_use_runtimelinking" = yes; then
8001 shared_flag
='${wl}-G'
8003 shared_flag
='${wl}-bM:SRE'
8008 # It seems that -bexpall does not export symbols beginning with
8009 # underscore (_), so it is better to generate a list of symbols to export.
8010 always_export_symbols
=yes
8011 if test "$aix_use_runtimelinking" = yes; then
8012 # Warning - without using the other runtime loading flags (-brtl),
8013 # -berok will link without error, but may produce a broken library.
8014 allow_undefined_flag
='-berok'
8015 # Determine the default libpath from the value encoded in an empty executable.
8016 cat >conftest.
$ac_ext <<_ACEOF
8019 cat confdefs.h
>>conftest.
$ac_ext
8020 cat >>conftest.
$ac_ext <<_ACEOF
8021 /* end confdefs.h. */
8031 rm -f conftest.
$ac_objext conftest
$ac_exeext
8032 if { (ac_try
="$ac_link"
8034 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8035 *) ac_try_echo=$ac_try;;
8037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8038 (eval "$ac_link") 2>conftest.er1
8040 grep -v '^ *+' conftest.er1 >conftest.err
8042 cat conftest.err >&5
8043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8044 (exit $ac_status); } &&
8045 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8046 { (case "(($ac_try" in
8047 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8048 *) ac_try_echo
=$ac_try;;
8050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8051 (eval "$ac_try") 2>&5
8053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8054 (exit $ac_status); }; } &&
8055 { ac_try
='test -s conftest$ac_exeext'
8056 { (case "(($ac_try" in
8057 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8058 *) ac_try_echo=$ac_try;;
8060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8061 (eval "$ac_try") 2>&5
8063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8064 (exit $ac_status); }; }; then
8066 aix_libpath=`dump
-H conftest
$ac_exeext 2>/dev
/null |
$SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8068 # Check for a 64-bit object if we didn't find anything.
8069 if test -z "$aix_libpath"; then aix_libpath=`dump
-HX64 conftest
$ac_exeext 2>/dev
/null |
$SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8072 echo "$as_me: failed program was:" >&5
8073 sed 's/^/| /' conftest.$ac_ext >&5
8078 rm -f core conftest.err conftest.$ac_objext \
8079 conftest$ac_exeext conftest.$ac_ext
8080 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8082 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8083 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"
8085 if test "$host_cpu" = ia64; then
8086 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8087 allow_undefined_flag="-z nodefs"
8088 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"
8090 # Determine the default libpath from the value encoded in an empty executable.
8091 cat >conftest.$ac_ext <<_ACEOF
8094 cat confdefs.h >>conftest.$ac_ext
8095 cat >>conftest.$ac_ext <<_ACEOF
8096 /* end confdefs.h. */
8106 rm -f conftest.$ac_objext conftest$ac_exeext
8107 if { (ac_try="$ac_link"
8109 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8110 *) ac_try_echo
=$ac_try;;
8112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8113 (eval "$ac_link") 2>conftest.er1
8115 grep -v '^ *+' conftest.er1
>conftest.err
8117 cat conftest.err
>&5
8118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8119 (exit $ac_status); } &&
8120 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8121 { (case "(($ac_try" in
8122 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8123 *) ac_try_echo=$ac_try;;
8125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8126 (eval "$ac_try") 2>&5
8128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8129 (exit $ac_status); }; } &&
8130 { ac_try='test -s conftest$ac_exeext'
8131 { (case "(($ac_try" in
8132 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8133 *) ac_try_echo
=$ac_try;;
8135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8136 (eval "$ac_try") 2>&5
8138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8139 (exit $ac_status); }; }; then
8141 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8143 # Check for a 64-bit object if we didn't find anything.
8144 if test -z "$aix_libpath"; then aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8147 echo "$as_me: failed program was:" >&5
8148 sed 's/^/| /' conftest.
$ac_ext >&5
8153 rm -f core conftest.err conftest.
$ac_objext \
8154 conftest
$ac_exeext conftest.
$ac_ext
8155 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
8157 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
8158 # Warning - without using the other run time loading flags,
8159 # -berok will link without error, but may produce a broken library.
8160 no_undefined_flag
=' ${wl}-bernotok'
8161 allow_undefined_flag
=' ${wl}-berok'
8162 # Exported symbols can be pulled into shared objects from archives
8163 whole_archive_flag_spec
='$convenience'
8164 archive_cmds_need_lc
=yes
8165 # This is similar to how AIX traditionally builds its shared libraries.
8166 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'
8172 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)'
8173 hardcode_libdir_flag_spec
='-L$libdir'
8174 hardcode_minus_L
=yes
8175 # see comment about different semantics on the GNU ld section
8180 export_dynamic_flag_spec
=-rdynamic
8183 cygwin
* | mingw
* | pw32
*)
8184 # When not using gcc, we currently assume that we are using
8185 # Microsoft Visual C++.
8186 # hardcode_libdir_flag_spec is actually meaningless, as there is
8187 # no search path for DLLs.
8188 hardcode_libdir_flag_spec
=' '
8189 allow_undefined_flag
=unsupported
8190 # Tell ltmain to make .lib files, not .a files.
8192 # Tell ltmain to make .dll files, not .so files.
8194 # FIXME: Setting linknames here is a bad hack.
8195 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8196 # The linker will automatically build a .lib file if we build a DLL.
8197 old_archive_From_new_cmds
='true'
8198 # FIXME: Should let the user specify the lib program.
8199 old_archive_cmds
='lib /OUT:$oldlib$oldobjs$old_deplibs'
8200 fix_srcfile_path
='`cygpath -w "$srcfile"`'
8201 enable_shared_with_static_runtimes
=yes
8204 darwin
* | rhapsody
*)
8206 rhapsody
* | darwin1.
[012])
8207 allow_undefined_flag
='${wl}-undefined ${wl}suppress'
8210 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8211 allow_undefined_flag
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8213 case ${MACOSX_DEPLOYMENT_TARGET} in
8215 allow_undefined_flag
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8218 allow_undefined_flag
='${wl}-undefined ${wl}dynamic_lookup'
8224 archive_cmds_need_lc
=no
8226 hardcode_automatic
=yes
8227 hardcode_shlibpath_var
=unsupported
8228 whole_archive_flag_spec
=''
8229 link_all_deplibs
=yes
8230 if test "$GCC" = yes ; then
8231 output_verbose_link_cmd
='echo'
8232 archive_cmds
='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8233 module_cmds
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8234 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8235 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}'
8236 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}'
8238 case $cc_basename in
8240 output_verbose_link_cmd
='echo'
8241 archive_cmds
='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8242 module_cmds
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8243 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8244 archive_expsym_cmds
='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8245 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}'
8255 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8256 hardcode_libdir_flag_spec
='-L$libdir'
8257 hardcode_shlibpath_var
=no
8264 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8265 # support. Future versions do this automatically, but an explicit c++rt0.o
8266 # does not break anything, and helps significantly (at the cost of a little
8269 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8270 hardcode_libdir_flag_spec
='-R$libdir'
8272 hardcode_shlibpath_var
=no
8275 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8277 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8279 hardcode_minus_L
=yes
8280 hardcode_shlibpath_var
=no
8283 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8284 freebsd
* | dragonfly
*)
8285 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8286 hardcode_libdir_flag_spec
='-R$libdir'
8288 hardcode_shlibpath_var
=no
8292 if test "$GCC" = yes; then
8293 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'
8295 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'
8297 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
8298 hardcode_libdir_separator
=:
8301 # hardcode_minus_L: Not really in the search PATH,
8302 # but as the default location of the library.
8303 hardcode_minus_L
=yes
8304 export_dynamic_flag_spec
='${wl}-E'
8308 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
8309 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8311 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8313 if test "$with_gnu_ld" = no
; then
8314 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
8315 hardcode_libdir_separator
=:
8318 export_dynamic_flag_spec
='${wl}-E'
8320 # hardcode_minus_L: Not really in the search PATH,
8321 # but as the default location of the library.
8322 hardcode_minus_L
=yes
8327 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
8330 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8333 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8336 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8342 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8345 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8348 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8352 if test "$with_gnu_ld" = no
; then
8353 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
8354 hardcode_libdir_separator
=:
8358 hardcode_libdir_flag_spec_ld
='+b $libdir'
8360 hardcode_shlibpath_var
=no
8364 export_dynamic_flag_spec
='${wl}-E'
8366 # hardcode_minus_L: Not really in the search PATH,
8367 # but as the default location of the library.
8368 hardcode_minus_L
=yes
8374 irix5
* | irix6
* | nonstopux
*)
8375 if test "$GCC" = yes; then
8376 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'
8378 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'
8379 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
8381 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
8382 hardcode_libdir_separator
=:
8383 link_all_deplibs
=yes
8386 netbsd
* | netbsdelf
*-gnu)
8387 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
8388 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8390 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8392 hardcode_libdir_flag_spec
='-R$libdir'
8394 hardcode_shlibpath_var
=no
8398 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8400 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
8401 hardcode_libdir_separator
=:
8402 hardcode_shlibpath_var
=no
8407 hardcode_shlibpath_var
=no
8408 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8409 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8410 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8411 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
8412 export_dynamic_flag_spec
='${wl}-E'
8415 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
8416 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8417 hardcode_libdir_flag_spec
='-R$libdir'
8420 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8421 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
8428 hardcode_libdir_flag_spec
='-L$libdir'
8429 hardcode_minus_L
=yes
8430 allow_undefined_flag
=unsupported
8431 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'
8432 old_archive_From_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8436 if test "$GCC" = yes; then
8437 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
8438 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'
8440 allow_undefined_flag
=' -expect_unresolved \*'
8441 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'
8443 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
8444 hardcode_libdir_separator
=:
8447 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
8448 if test "$GCC" = yes; then
8449 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
8450 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'
8451 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
8453 allow_undefined_flag
=' -expect_unresolved \*'
8454 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'
8455 archive_expsym_cmds
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8456 $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'
8458 # Both c and cxx compiler support -rpath directly
8459 hardcode_libdir_flag_spec
='-rpath $libdir'
8461 hardcode_libdir_separator
=:
8465 no_undefined_flag
=' -z text'
8466 if test "$GCC" = yes; then
8468 archive_cmds
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8469 archive_expsym_cmds
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8470 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8473 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8474 archive_expsym_cmds
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8475 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8477 hardcode_libdir_flag_spec
='-R$libdir'
8478 hardcode_shlibpath_var
=no
8480 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
8482 # The compiler driver will combine linker options so we
8483 # cannot just pass the convience library names through
8484 # without $wl, iff we do not link with $LD.
8485 # Luckily, gcc supports the same syntax we need for Sun Studio.
8486 # Supported since Solaris 2.6 (maybe 2.5.1?)
8489 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract' ;;
8491 whole_archive_flag_spec
='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
8494 link_all_deplibs
=yes
8498 if test "x$host_vendor" = xsequent
; then
8499 # Use $CC to link under sequent, because it throws in some extra .o
8500 # files that make .init and .fini sections work.
8501 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8503 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8505 hardcode_libdir_flag_spec
='-L$libdir'
8507 hardcode_minus_L
=yes
8508 hardcode_shlibpath_var
=no
8512 case $host_vendor in
8514 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8515 hardcode_direct
=yes # is this really true???
8518 ## LD is ld it makes a PLAMLIB
8519 ## CC just makes a GrossModule.
8520 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8521 reload_cmds
='$CC -r -o $output$reload_objs'
8525 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8526 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
8529 runpath_var
='LD_RUN_PATH'
8530 hardcode_shlibpath_var
=no
8534 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8535 hardcode_shlibpath_var
=no
8536 export_dynamic_flag_spec
='-Bexport'
8540 if test -d /usr
/nec
; then
8541 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8542 hardcode_shlibpath_var
=no
8543 runpath_var
=LD_RUN_PATH
8544 hardcode_runpath_var
=yes
8549 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
*)
8550 no_undefined_flag
='${wl}-z,text'
8551 archive_cmds_need_lc
=no
8552 hardcode_shlibpath_var
=no
8553 runpath_var
='LD_RUN_PATH'
8555 if test "$GCC" = yes; then
8556 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8557 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8559 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8560 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8564 sysv5
* | sco3.2v5
* | sco5v6
*)
8565 # Note: We can NOT use -z defs as we might desire, because we do not
8566 # link with -lc, and that would cause any symbols used from libc to
8567 # always be unresolved, which means just about no library would
8568 # ever link correctly. If we're not using GNU ld we use -z text
8569 # though, which does catch some bad symbols but isn't as heavy-handed
8571 no_undefined_flag
='${wl}-z,text'
8572 allow_undefined_flag
='${wl}-z,nodefs'
8573 archive_cmds_need_lc
=no
8574 hardcode_shlibpath_var
=no
8575 hardcode_libdir_flag_spec
='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8576 hardcode_libdir_separator
=':'
8577 link_all_deplibs
=yes
8578 export_dynamic_flag_spec
='${wl}-Bexport'
8579 runpath_var
='LD_RUN_PATH'
8581 if test "$GCC" = yes; then
8582 archive_cmds
='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8583 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8585 archive_cmds
='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8586 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8591 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8592 hardcode_libdir_flag_spec
='-L$libdir'
8593 hardcode_shlibpath_var
=no
8602 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8603 echo "${ECHO_T}$ld_shlibs" >&6; }
8604 test "$ld_shlibs" = no
&& can_build_shared
=no
8607 # Do we need to explicitly link libc?
8609 case "x$archive_cmds_need_lc" in
8611 # Assume -lc should be added
8612 archive_cmds_need_lc
=yes
8614 if test "$enable_shared" = yes && test "$GCC" = yes; then
8615 case $archive_cmds in
8617 # FIXME: we may have to deal with multi-command sequences.
8620 # Test whether the compiler implicitly links with -lc since on some
8621 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8622 # to ld, don't add -lc before -lgcc.
8623 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8624 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8626 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
8628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8629 (eval $ac_compile) 2>&5
8631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8632 (exit $ac_status); } 2>conftest.err
; then
8635 libobjs
=conftest.
$ac_objext
8637 wl
=$lt_prog_compiler_wl
8638 pic_flag
=$lt_prog_compiler_pic
8644 lt_save_allow_undefined_flag
=$allow_undefined_flag
8645 allow_undefined_flag
=
8646 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8647 (eval $archive_cmds 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
8649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8650 (exit $ac_status); }
8652 archive_cmds_need_lc
=no
8654 archive_cmds_need_lc
=yes
8656 allow_undefined_flag
=$lt_save_allow_undefined_flag
8658 cat conftest.err
1>&5
8661 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8662 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8669 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8670 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8672 libname_spec
='lib$name'
8680 shlibpath_overrides_runpath
=unknown
8682 dynamic_linker
="$host_os ld.so"
8683 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
8684 if test "$GCC" = yes; then
8685 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8686 if echo "$sys_lib_search_path_spec" |
grep ';' >/dev
/null
; then
8687 # if the path contains ";" then we assume it to be the separator
8688 # otherwise default to the standard path separator (i.e. ":") - it is
8689 # assumed that no part of a normal pathname contains ";" but that should
8690 # okay in the real world where ";" in dirpaths is itself problematic.
8691 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8693 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8696 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
8698 need_lib_prefix
=unknown
8699 hardcode_into_libs
=no
8701 # when you set need_version to no, make sure it does not cause -set_version
8702 # flags to be left without arguments
8703 need_version
=unknown
8708 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
8709 shlibpath_var
=LIBPATH
8711 # AIX 3 has no versioning support, so we append a major version to the name.
8712 soname_spec
='${libname}${release}${shared_ext}$major'
8719 hardcode_into_libs
=yes
8720 if test "$host_cpu" = ia64
; then
8721 # AIX 5 supports IA64
8722 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8723 shlibpath_var
=LD_LIBRARY_PATH
8725 # With GCC up to 2.95.x, collect2 would create an import file
8726 # for dependence libraries. The import file would start with
8727 # the line `#! .'. This would cause the generated library to
8728 # depend on `.', always an invalid library. This was fixed in
8729 # development snapshots of GCC prior to 3.0.
8731 aix4 | aix4.
[01] | aix4.
[01].
*)
8732 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8734 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
8741 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8742 # soname into executable. Probably we can add versioning support to
8743 # collect2, so additional links can be useful in future.
8744 if test "$aix_use_runtimelinking" = yes; then
8745 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8746 # instead of lib<name>.a to let people know that these are not
8747 # typical AIX shared libraries.
8748 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8750 # We preserve .a as extension for shared libraries through AIX4.2
8751 # and later when we are not doing run time linking.
8752 library_names_spec
='${libname}${release}.a $libname.a'
8753 soname_spec
='${libname}${release}${shared_ext}$major'
8755 shlibpath_var
=LIBPATH
8760 library_names_spec
='$libname.ixlibrary $libname.a'
8761 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8762 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'
8766 library_names_spec
='${libname}${shared_ext}'
8767 dynamic_linker
="$host_os ld.so"
8768 shlibpath_var
=LIBRARY_PATH
8774 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8775 soname_spec
='${libname}${release}${shared_ext}$major'
8776 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
8777 shlibpath_var
=LD_LIBRARY_PATH
8778 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8779 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
8780 # the default ld.so.conf also contains /usr/contrib/lib and
8781 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8782 # libtool to hard-code these into programs
8785 cygwin
* | mingw
* | pw32
*)
8786 version_type
=windows
8791 case $GCC,$host_os in
8792 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
8793 library_names_spec
='$libname.dll.a'
8794 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8795 postinstall_cmds
='base_file=`basename \${file}`~
8796 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8797 dldir=$destdir/`dirname \$dlpath`~
8798 test -d \$dldir || mkdir -p \$dldir~
8799 $install_prog $dir/$dlname \$dldir/$dlname~
8800 chmod a+x \$dldir/$dlname'
8801 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8802 dlpath=$dir/\$dldll~
8804 shlibpath_overrides_runpath
=yes
8808 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8809 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8810 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
8813 # MinGW DLLs use traditional 'lib' prefix
8814 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8815 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8816 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
8817 # It is most probably a Windows format PATH printed by
8818 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8819 # path with ; separators, and with drive letters. We can handle the
8820 # drive letters (cygwin fileutils understands them), so leave them,
8821 # especially as we might pass files found there to a mingw objdump,
8822 # which wouldn't understand a cygwinified path. Ahh.
8823 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8825 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8829 # pw32 DLLs use 'pw' prefix rather than 'lib'
8830 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8836 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8839 dynamic_linker
='Win32 ld.exe'
8840 # FIXME: first we should search . and the directory the executable is in
8844 darwin
* | rhapsody
*)
8845 dynamic_linker
="$host_os dyld"
8849 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8850 soname_spec
='${libname}${release}${major}$shared_ext'
8851 shlibpath_overrides_runpath
=yes
8852 shlibpath_var
=DYLD_LIBRARY_PATH
8853 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
8854 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8855 if test "$GCC" = yes; then
8856 sys_lib_search_path_spec
=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
8858 sys_lib_search_path_spec
='/lib /usr/lib /usr/local/lib'
8860 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
8867 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8868 soname_spec
='${libname}${release}${shared_ext}$major'
8869 shlibpath_var
=LD_LIBRARY_PATH
8876 freebsd
* | dragonfly
*)
8877 # DragonFly does not have aout. When/if they implement a new
8878 # versioning mechanism, adjust this.
8879 if test -x /usr
/bin
/objformat
; then
8880 objformat
=`/usr/bin/objformat`
8883 freebsd
[123]*) objformat
=aout
;;
8887 version_type
=freebsd-
$objformat
8888 case $version_type in
8890 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8895 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8899 shlibpath_var
=LD_LIBRARY_PATH
8902 shlibpath_overrides_runpath
=yes
8904 freebsd3.
[01]* | freebsdelf3.
[01]*)
8905 shlibpath_overrides_runpath
=yes
8906 hardcode_into_libs
=yes
8908 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
8909 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
8910 shlibpath_overrides_runpath
=no
8911 hardcode_into_libs
=yes
8913 freebsd
*) # from 4.6 on
8914 shlibpath_overrides_runpath
=yes
8915 hardcode_into_libs
=yes
8924 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8925 soname_spec
='${libname}${release}${shared_ext}$major'
8926 shlibpath_var
=LD_LIBRARY_PATH
8927 hardcode_into_libs
=yes
8930 hpux9
* | hpux10
* | hpux11
*)
8931 # Give a soname corresponding to the major version so that dld.sl refuses to
8932 # link against other versions.
8939 hardcode_into_libs
=yes
8940 dynamic_linker
="$host_os dld.so"
8941 shlibpath_var
=LD_LIBRARY_PATH
8942 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
8943 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8944 soname_spec
='${libname}${release}${shared_ext}$major'
8945 if test "X$HPUX_IA64_MODE" = X32
; then
8946 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8948 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
8950 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
8954 hardcode_into_libs
=yes
8955 dynamic_linker
="$host_os dld.sl"
8956 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
8957 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
8958 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8959 soname_spec
='${libname}${release}${shared_ext}$major'
8960 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8961 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
8965 dynamic_linker
="$host_os dld.sl"
8966 shlibpath_var
=SHLIB_PATH
8967 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
8968 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8969 soname_spec
='${libname}${release}${shared_ext}$major'
8972 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8973 postinstall_cmds
='chmod 555 $lib'
8980 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8981 soname_spec
='${libname}${release}${shared_ext}$major'
8982 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
8983 shlibpath_var
=LD_LIBRARY_PATH
8984 shlibpath_overrides_runpath
=no
8985 hardcode_into_libs
=yes
8988 irix5
* | irix6
* | nonstopux
*)
8990 nonstopux
*) version_type
=nonstopux
;;
8992 if test "$lt_cv_prog_gnu_ld" = yes; then
9000 soname_spec
='${libname}${release}${shared_ext}$major'
9001 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9003 irix5
* | nonstopux
*)
9007 case $LD in # libtool.m4 will add one of these switches to LD
9008 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
9009 libsuff
= shlibsuff
= libmagic
=32-bit;;
9010 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
9011 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
9012 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
9013 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
9014 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
9018 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
9019 shlibpath_overrides_runpath
=no
9020 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9021 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
9022 hardcode_into_libs
=yes
9025 # No shared lib support for Linux oldld, aout, or coff.
9026 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
9030 # This must be Linux ELF.
9031 linux
* | k
*bsd
*-gnu)
9035 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9036 soname_spec
='${libname}${release}${shared_ext}$major'
9037 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9038 shlibpath_var
=LD_LIBRARY_PATH
9039 shlibpath_overrides_runpath
=no
9040 # This implies no fast_install, which is unacceptable.
9041 # Some rework will be needed to allow for fast_install
9042 # before this can be enabled.
9043 hardcode_into_libs
=yes
9045 # Append ld.so.conf contents to the search path
9046 if test -f /etc
/ld.so.conf
; then
9047 lt_ld_extra
=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9048 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
9051 # We used to test for /lib/ld.so.1 and disable shared libraries on
9052 # powerpc, because MkLinux only supported shared libraries with the
9053 # GNU dynamic linker. Since this was broken with cross compilers,
9054 # most powerpc-linux boxes support dynamic linking these days and
9055 # people can always --disable-shared, the test was removed, and we
9056 # assume the GNU/Linux dynamic linker is in use.
9057 dynamic_linker
='GNU/Linux ld.so'
9064 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9065 soname_spec
='${libname}${release}${shared_ext}$major'
9066 shlibpath_var
=LD_LIBRARY_PATH
9067 shlibpath_overrides_runpath
=no
9068 hardcode_into_libs
=yes
9069 dynamic_linker
='NetBSD ld.elf_so'
9076 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
9077 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9078 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9079 dynamic_linker
='NetBSD (a.out) ld.so'
9081 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9082 soname_spec
='${libname}${release}${shared_ext}$major'
9083 dynamic_linker
='NetBSD ld.elf_so'
9085 shlibpath_var
=LD_LIBRARY_PATH
9086 shlibpath_overrides_runpath
=yes
9087 hardcode_into_libs
=yes
9092 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9093 shlibpath_var
=LD_LIBRARY_PATH
9094 shlibpath_overrides_runpath
=yes
9101 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9102 soname_spec
='${libname}${release}${shared_ext}$major'
9103 shlibpath_var
=LD_LIBRARY_PATH
9104 shlibpath_overrides_runpath
=yes
9109 sys_lib_dlsearch_path_spec
="/usr/lib"
9111 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9113 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
9114 *) need_version
=no
;;
9116 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9117 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9118 shlibpath_var
=LD_LIBRARY_PATH
9119 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9121 openbsd2.
[89] | openbsd2.
[89].
*)
9122 shlibpath_overrides_runpath
=no
9125 shlibpath_overrides_runpath
=yes
9129 shlibpath_overrides_runpath
=yes
9134 libname_spec
='$name'
9137 library_names_spec
='$libname${shared_ext} $libname.a'
9138 dynamic_linker
='OS/2 ld.exe'
9139 shlibpath_var
=LIBPATH
9142 osf3
* | osf4
* | osf5
*)
9146 soname_spec
='${libname}${release}${shared_ext}$major'
9147 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9148 shlibpath_var
=LD_LIBRARY_PATH
9149 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9150 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
9157 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9158 soname_spec
='${libname}${release}${shared_ext}$major'
9159 shlibpath_var
=LD_LIBRARY_PATH
9160 shlibpath_overrides_runpath
=yes
9161 hardcode_into_libs
=yes
9162 # ldd complains unless libraries are executable
9163 postinstall_cmds
='chmod +x $lib'
9168 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9169 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9170 shlibpath_var
=LD_LIBRARY_PATH
9171 shlibpath_overrides_runpath
=yes
9172 if test "$with_gnu_ld" = yes; then
9180 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9181 soname_spec
='${libname}${release}${shared_ext}$major'
9182 shlibpath_var
=LD_LIBRARY_PATH
9183 case $host_vendor in
9185 shlibpath_overrides_runpath
=no
9187 export_dynamic_flag_spec
='${wl}-Blargedynsym'
9188 runpath_var
=LD_RUN_PATH
9196 shlibpath_overrides_runpath
=no
9197 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
9203 if test -d /usr
/nec
;then
9205 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9206 soname_spec
='$libname${shared_ext}.$major'
9207 shlibpath_var
=LD_LIBRARY_PATH
9211 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
9212 version_type
=freebsd-elf
9215 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9216 soname_spec
='${libname}${release}${shared_ext}$major'
9217 shlibpath_var
=LD_LIBRARY_PATH
9218 hardcode_into_libs
=yes
9219 if test "$with_gnu_ld" = yes; then
9220 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9221 shlibpath_overrides_runpath
=no
9223 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
9224 shlibpath_overrides_runpath
=yes
9227 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
9231 sys_lib_dlsearch_path_spec
='/usr/lib'
9236 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9237 soname_spec
='${libname}${release}${shared_ext}$major'
9238 shlibpath_var
=LD_LIBRARY_PATH
9245 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9246 echo "${ECHO_T}$dynamic_linker" >&6; }
9247 test "$dynamic_linker" = no
&& can_build_shared
=no
9249 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
9250 if test "$GCC" = yes; then
9251 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9254 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9255 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9257 if test -n "$hardcode_libdir_flag_spec" || \
9258 test -n "$runpath_var" || \
9259 test "X$hardcode_automatic" = "Xyes" ; then
9261 # We can hardcode non-existant directories.
9262 if test "$hardcode_direct" != no
&&
9263 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9264 # have to relink, otherwise we might link with an installed library
9265 # when we should be linking with a yet-to-be-installed one
9266 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9267 test "$hardcode_minus_L" != no
; then
9268 # Linking always hardcodes the temporary library directory.
9269 hardcode_action
=relink
9271 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9272 hardcode_action
=immediate
9275 # We cannot hardcode anything, or else we can only hardcode existing
9277 hardcode_action
=unsupported
9279 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9280 echo "${ECHO_T}$hardcode_action" >&6; }
9282 if test "$hardcode_action" = relink
; then
9283 # Fast installation is not supported
9284 enable_fast_install
=no
9285 elif test "$shlibpath_overrides_runpath" = yes ||
9286 test "$enable_shared" = no
; then
9287 # Fast installation is not necessary
9288 enable_fast_install
=needless
9293 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9294 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9295 if test -n "$STRIP" && $STRIP -V 2>&1 |
grep "GNU strip" >/dev
/null
; then
9296 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
9297 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
9298 { echo "$as_me:$LINENO: result: yes" >&5
9299 echo "${ECHO_T}yes" >&6; }
9301 # FIXME - insert some real tests, host_os isn't really good enough
9304 if test -n "$STRIP" ; then
9305 striplib
="$STRIP -x"
9306 { echo "$as_me:$LINENO: result: yes" >&5
9307 echo "${ECHO_T}yes" >&6; }
9309 { echo "$as_me:$LINENO: result: no" >&5
9310 echo "${ECHO_T}no" >&6; }
9314 { echo "$as_me:$LINENO: result: no" >&5
9315 echo "${ECHO_T}no" >&6; }
9320 if test "x$enable_dlopen" != xyes
; then
9321 enable_dlopen
=unknown
9322 enable_dlopen_self
=unknown
9323 enable_dlopen_self_static
=unknown
9330 lt_cv_dlopen
="load_add_on"
9332 lt_cv_dlopen_self
=yes
9336 lt_cv_dlopen
="LoadLibrary"
9341 lt_cv_dlopen
="dlopen"
9346 # if libdl is installed we need to link against it
9347 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9348 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9349 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9350 echo $ECHO_N "(cached) $ECHO_C" >&6
9352 ac_check_lib_save_LIBS
=$LIBS
9354 cat >conftest.
$ac_ext <<_ACEOF
9357 cat confdefs.h
>>conftest.
$ac_ext
9358 cat >>conftest.
$ac_ext <<_ACEOF
9359 /* end confdefs.h. */
9361 /* Override any GCC internal prototype to avoid an error.
9362 Use char because int might match the return type of a GCC
9363 builtin and then its argument prototype would still apply. */
9376 rm -f conftest.
$ac_objext conftest
$ac_exeext
9377 if { (ac_try
="$ac_link"
9379 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9380 *) ac_try_echo=$ac_try;;
9382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9383 (eval "$ac_link") 2>conftest.er1
9385 grep -v '^ *+' conftest.er1 >conftest.err
9387 cat conftest.err >&5
9388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9389 (exit $ac_status); } &&
9390 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9391 { (case "(($ac_try" in
9392 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9393 *) ac_try_echo
=$ac_try;;
9395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9396 (eval "$ac_try") 2>&5
9398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9399 (exit $ac_status); }; } &&
9400 { ac_try
='test -s conftest$ac_exeext'
9401 { (case "(($ac_try" in
9402 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9403 *) ac_try_echo=$ac_try;;
9405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9406 (eval "$ac_try") 2>&5
9408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9409 (exit $ac_status); }; }; then
9410 ac_cv_lib_dl_dlopen=yes
9412 echo "$as_me: failed program was:" >&5
9413 sed 's/^/| /' conftest.$ac_ext >&5
9415 ac_cv_lib_dl_dlopen=no
9418 rm -f core conftest.err conftest.$ac_objext \
9419 conftest$ac_exeext conftest.$ac_ext
9420 LIBS=$ac_check_lib_save_LIBS
9422 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9423 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9424 if test $ac_cv_lib_dl_dlopen = yes; then
9425 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9430 lt_cv_dlopen_self=yes
9437 { echo "$as_me:$LINENO: checking for shl_load" >&5
9438 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9439 if test "${ac_cv_func_shl_load+set}" = set; then
9440 echo $ECHO_N "(cached) $ECHO_C" >&6
9442 cat >conftest.$ac_ext <<_ACEOF
9445 cat confdefs.h >>conftest.$ac_ext
9446 cat >>conftest.$ac_ext <<_ACEOF
9447 /* end confdefs.h. */
9448 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9449 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9450 #define shl_load innocuous_shl_load
9452 /* System header to define __stub macros and hopefully few prototypes,
9453 which can conflict with char shl_load (); below.
9454 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9455 <limits.h> exists even on freestanding compilers. */
9458 # include <limits.h>
9460 # include <assert.h>
9465 /* Override any GCC internal prototype to avoid an error.
9466 Use char because int might match the return type of a GCC
9467 builtin and then its argument prototype would still apply. */
9472 /* The GNU C library defines this for functions which it implements
9473 to always fail with ENOSYS. Some functions are actually named
9474 something starting with __ and the normal name is an alias. */
9475 #if defined __stub_shl_load || defined __stub___shl_load
9487 rm -f conftest.$ac_objext conftest$ac_exeext
9488 if { (ac_try="$ac_link"
9490 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9491 *) ac_try_echo
=$ac_try;;
9493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9494 (eval "$ac_link") 2>conftest.er1
9496 grep -v '^ *+' conftest.er1
>conftest.err
9498 cat conftest.err
>&5
9499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9500 (exit $ac_status); } &&
9501 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9502 { (case "(($ac_try" in
9503 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9504 *) ac_try_echo=$ac_try;;
9506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9507 (eval "$ac_try") 2>&5
9509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9510 (exit $ac_status); }; } &&
9511 { ac_try='test -s conftest$ac_exeext'
9512 { (case "(($ac_try" in
9513 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9514 *) ac_try_echo
=$ac_try;;
9516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9517 (eval "$ac_try") 2>&5
9519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9520 (exit $ac_status); }; }; then
9521 ac_cv_func_shl_load
=yes
9523 echo "$as_me: failed program was:" >&5
9524 sed 's/^/| /' conftest.
$ac_ext >&5
9526 ac_cv_func_shl_load
=no
9529 rm -f core conftest.err conftest.
$ac_objext \
9530 conftest
$ac_exeext conftest.
$ac_ext
9532 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9533 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9534 if test $ac_cv_func_shl_load = yes; then
9535 lt_cv_dlopen
="shl_load"
9537 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9538 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9539 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9540 echo $ECHO_N "(cached) $ECHO_C" >&6
9542 ac_check_lib_save_LIBS
=$LIBS
9544 cat >conftest.
$ac_ext <<_ACEOF
9547 cat confdefs.h
>>conftest.
$ac_ext
9548 cat >>conftest.
$ac_ext <<_ACEOF
9549 /* end confdefs.h. */
9551 /* Override any GCC internal prototype to avoid an error.
9552 Use char because int might match the return type of a GCC
9553 builtin and then its argument prototype would still apply. */
9566 rm -f conftest.
$ac_objext conftest
$ac_exeext
9567 if { (ac_try
="$ac_link"
9569 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9570 *) ac_try_echo=$ac_try;;
9572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9573 (eval "$ac_link") 2>conftest.er1
9575 grep -v '^ *+' conftest.er1 >conftest.err
9577 cat conftest.err >&5
9578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9579 (exit $ac_status); } &&
9580 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9581 { (case "(($ac_try" in
9582 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9583 *) ac_try_echo
=$ac_try;;
9585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9586 (eval "$ac_try") 2>&5
9588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9589 (exit $ac_status); }; } &&
9590 { ac_try
='test -s conftest$ac_exeext'
9591 { (case "(($ac_try" in
9592 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9593 *) ac_try_echo=$ac_try;;
9595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9596 (eval "$ac_try") 2>&5
9598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9599 (exit $ac_status); }; }; then
9600 ac_cv_lib_dld_shl_load=yes
9602 echo "$as_me: failed program was:" >&5
9603 sed 's/^/| /' conftest.$ac_ext >&5
9605 ac_cv_lib_dld_shl_load=no
9608 rm -f core conftest.err conftest.$ac_objext \
9609 conftest$ac_exeext conftest.$ac_ext
9610 LIBS=$ac_check_lib_save_LIBS
9612 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9613 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9614 if test $ac_cv_lib_dld_shl_load = yes; then
9615 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9617 { echo "$as_me:$LINENO: checking for dlopen" >&5
9618 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9619 if test "${ac_cv_func_dlopen+set}" = set; then
9620 echo $ECHO_N "(cached) $ECHO_C" >&6
9622 cat >conftest.$ac_ext <<_ACEOF
9625 cat confdefs.h >>conftest.$ac_ext
9626 cat >>conftest.$ac_ext <<_ACEOF
9627 /* end confdefs.h. */
9628 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9629 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9630 #define dlopen innocuous_dlopen
9632 /* System header to define __stub macros and hopefully few prototypes,
9633 which can conflict with char dlopen (); below.
9634 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9635 <limits.h> exists even on freestanding compilers. */
9638 # include <limits.h>
9640 # include <assert.h>
9645 /* Override any GCC internal prototype to avoid an error.
9646 Use char because int might match the return type of a GCC
9647 builtin and then its argument prototype would still apply. */
9652 /* The GNU C library defines this for functions which it implements
9653 to always fail with ENOSYS. Some functions are actually named
9654 something starting with __ and the normal name is an alias. */
9655 #if defined __stub_dlopen || defined __stub___dlopen
9667 rm -f conftest.$ac_objext conftest$ac_exeext
9668 if { (ac_try="$ac_link"
9670 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9671 *) ac_try_echo
=$ac_try;;
9673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9674 (eval "$ac_link") 2>conftest.er1
9676 grep -v '^ *+' conftest.er1
>conftest.err
9678 cat conftest.err
>&5
9679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9680 (exit $ac_status); } &&
9681 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9682 { (case "(($ac_try" in
9683 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9684 *) ac_try_echo=$ac_try;;
9686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9687 (eval "$ac_try") 2>&5
9689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9690 (exit $ac_status); }; } &&
9691 { ac_try='test -s conftest$ac_exeext'
9692 { (case "(($ac_try" in
9693 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9694 *) ac_try_echo
=$ac_try;;
9696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9697 (eval "$ac_try") 2>&5
9699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9700 (exit $ac_status); }; }; then
9701 ac_cv_func_dlopen
=yes
9703 echo "$as_me: failed program was:" >&5
9704 sed 's/^/| /' conftest.
$ac_ext >&5
9706 ac_cv_func_dlopen
=no
9709 rm -f core conftest.err conftest.
$ac_objext \
9710 conftest
$ac_exeext conftest.
$ac_ext
9712 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9713 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9714 if test $ac_cv_func_dlopen = yes; then
9715 lt_cv_dlopen
="dlopen"
9717 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9718 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9719 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9720 echo $ECHO_N "(cached) $ECHO_C" >&6
9722 ac_check_lib_save_LIBS
=$LIBS
9724 cat >conftest.
$ac_ext <<_ACEOF
9727 cat confdefs.h
>>conftest.
$ac_ext
9728 cat >>conftest.
$ac_ext <<_ACEOF
9729 /* end confdefs.h. */
9731 /* Override any GCC internal prototype to avoid an error.
9732 Use char because int might match the return type of a GCC
9733 builtin and then its argument prototype would still apply. */
9746 rm -f conftest.
$ac_objext conftest
$ac_exeext
9747 if { (ac_try
="$ac_link"
9749 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9750 *) ac_try_echo=$ac_try;;
9752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9753 (eval "$ac_link") 2>conftest.er1
9755 grep -v '^ *+' conftest.er1 >conftest.err
9757 cat conftest.err >&5
9758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9759 (exit $ac_status); } &&
9760 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9761 { (case "(($ac_try" in
9762 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9763 *) ac_try_echo
=$ac_try;;
9765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9766 (eval "$ac_try") 2>&5
9768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9769 (exit $ac_status); }; } &&
9770 { ac_try
='test -s conftest$ac_exeext'
9771 { (case "(($ac_try" in
9772 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9773 *) ac_try_echo=$ac_try;;
9775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9776 (eval "$ac_try") 2>&5
9778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9779 (exit $ac_status); }; }; then
9780 ac_cv_lib_dl_dlopen=yes
9782 echo "$as_me: failed program was:" >&5
9783 sed 's/^/| /' conftest.$ac_ext >&5
9785 ac_cv_lib_dl_dlopen=no
9788 rm -f core conftest.err conftest.$ac_objext \
9789 conftest$ac_exeext conftest.$ac_ext
9790 LIBS=$ac_check_lib_save_LIBS
9792 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9793 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9794 if test $ac_cv_lib_dl_dlopen = yes; then
9795 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9797 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9798 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9799 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9800 echo $ECHO_N "(cached) $ECHO_C" >&6
9802 ac_check_lib_save_LIBS=$LIBS
9804 cat >conftest.$ac_ext <<_ACEOF
9807 cat confdefs.h >>conftest.$ac_ext
9808 cat >>conftest.$ac_ext <<_ACEOF
9809 /* end confdefs.h. */
9811 /* Override any GCC internal prototype to avoid an error.
9812 Use char because int might match the return type of a GCC
9813 builtin and then its argument prototype would still apply. */
9826 rm -f conftest.$ac_objext conftest$ac_exeext
9827 if { (ac_try="$ac_link"
9829 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9830 *) ac_try_echo
=$ac_try;;
9832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9833 (eval "$ac_link") 2>conftest.er1
9835 grep -v '^ *+' conftest.er1
>conftest.err
9837 cat conftest.err
>&5
9838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9839 (exit $ac_status); } &&
9840 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9841 { (case "(($ac_try" in
9842 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9843 *) ac_try_echo=$ac_try;;
9845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9846 (eval "$ac_try") 2>&5
9848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9849 (exit $ac_status); }; } &&
9850 { ac_try='test -s conftest$ac_exeext'
9851 { (case "(($ac_try" in
9852 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9853 *) ac_try_echo
=$ac_try;;
9855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9856 (eval "$ac_try") 2>&5
9858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9859 (exit $ac_status); }; }; then
9860 ac_cv_lib_svld_dlopen
=yes
9862 echo "$as_me: failed program was:" >&5
9863 sed 's/^/| /' conftest.
$ac_ext >&5
9865 ac_cv_lib_svld_dlopen
=no
9868 rm -f core conftest.err conftest.
$ac_objext \
9869 conftest
$ac_exeext conftest.
$ac_ext
9870 LIBS
=$ac_check_lib_save_LIBS
9872 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9873 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9874 if test $ac_cv_lib_svld_dlopen = yes; then
9875 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
9877 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9878 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9879 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9880 echo $ECHO_N "(cached) $ECHO_C" >&6
9882 ac_check_lib_save_LIBS
=$LIBS
9884 cat >conftest.
$ac_ext <<_ACEOF
9887 cat confdefs.h
>>conftest.
$ac_ext
9888 cat >>conftest.
$ac_ext <<_ACEOF
9889 /* end confdefs.h. */
9891 /* Override any GCC internal prototype to avoid an error.
9892 Use char because int might match the return type of a GCC
9893 builtin and then its argument prototype would still apply. */
9906 rm -f conftest.
$ac_objext conftest
$ac_exeext
9907 if { (ac_try
="$ac_link"
9909 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9910 *) ac_try_echo=$ac_try;;
9912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9913 (eval "$ac_link") 2>conftest.er1
9915 grep -v '^ *+' conftest.er1 >conftest.err
9917 cat conftest.err >&5
9918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9919 (exit $ac_status); } &&
9920 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9921 { (case "(($ac_try" in
9922 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9923 *) ac_try_echo
=$ac_try;;
9925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9926 (eval "$ac_try") 2>&5
9928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9929 (exit $ac_status); }; } &&
9930 { ac_try
='test -s conftest$ac_exeext'
9931 { (case "(($ac_try" in
9932 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9933 *) ac_try_echo=$ac_try;;
9935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9936 (eval "$ac_try") 2>&5
9938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9939 (exit $ac_status); }; }; then
9940 ac_cv_lib_dld_dld_link=yes
9942 echo "$as_me: failed program was:" >&5
9943 sed 's/^/| /' conftest.$ac_ext >&5
9945 ac_cv_lib_dld_dld_link=no
9948 rm -f core conftest.err conftest.$ac_objext \
9949 conftest$ac_exeext conftest.$ac_ext
9950 LIBS=$ac_check_lib_save_LIBS
9952 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9953 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9954 if test $ac_cv_lib_dld_dld_link = yes; then
9955 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9976 if test "x$lt_cv_dlopen" != xno; then
9982 case $lt_cv_dlopen in
9984 save_CPPFLAGS="$CPPFLAGS"
9985 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9987 save_LDFLAGS="$LDFLAGS"
9988 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9991 LIBS="$lt_cv_dlopen_libs $LIBS"
9993 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9994 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9995 if test "${lt_cv_dlopen_self+set}" = set; then
9996 echo $ECHO_N "(cached) $ECHO_C" >&6
9998 if test "$cross_compiling" = yes; then :
9999 lt_cv_dlopen_self=cross
10001 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10002 lt_status=$lt_dlunknown
10003 cat > conftest.$ac_ext <<EOF
10004 #line 10004 "configure"
10005 #include "confdefs.h"
10014 # define LT_DLGLOBAL RTLD_GLOBAL
10017 # define LT_DLGLOBAL DL_GLOBAL
10019 # define LT_DLGLOBAL 0
10023 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10024 find out it does not work in some platform. */
10025 #ifndef LT_DLLAZY_OR_NOW
10027 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10030 # define LT_DLLAZY_OR_NOW DL_LAZY
10033 # define LT_DLLAZY_OR_NOW RTLD_NOW
10036 # define LT_DLLAZY_OR_NOW DL_NOW
10038 # define LT_DLLAZY_OR_NOW 0
10046 extern "C" void exit (int);
10049 void fnord() { int i=42;}
10052 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10053 int status = $lt_dlunknown;
10057 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10058 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10059 /* dlclose (self); */
10067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10068 (eval $ac_link) 2>&5
10070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10071 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10072 (./conftest; exit; ) >&5 2>/dev/null
10074 case x$lt_status in
10075 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10076 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10077 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10080 # compilation failed
10081 lt_cv_dlopen_self=no
10088 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10089 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10091 if test "x$lt_cv_dlopen_self" = xyes; then
10092 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10093 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10094 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10095 if test "${lt_cv_dlopen_self_static+set}" = set; then
10096 echo $ECHO_N "(cached) $ECHO_C" >&6
10098 if test "$cross_compiling" = yes; then :
10099 lt_cv_dlopen_self_static=cross
10101 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10102 lt_status=$lt_dlunknown
10103 cat > conftest.$ac_ext <<EOF
10104 #line 10104 "configure"
10105 #include "confdefs.h"
10114 # define LT_DLGLOBAL RTLD_GLOBAL
10117 # define LT_DLGLOBAL DL_GLOBAL
10119 # define LT_DLGLOBAL 0
10123 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10124 find out it does not work in some platform. */
10125 #ifndef LT_DLLAZY_OR_NOW
10127 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10130 # define LT_DLLAZY_OR_NOW DL_LAZY
10133 # define LT_DLLAZY_OR_NOW RTLD_NOW
10136 # define LT_DLLAZY_OR_NOW DL_NOW
10138 # define LT_DLLAZY_OR_NOW 0
10146 extern "C" void exit (int);
10149 void fnord() { int i=42;}
10152 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10153 int status = $lt_dlunknown;
10157 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10158 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10159 /* dlclose (self); */
10167 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10168 (eval $ac_link) 2>&5
10170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10171 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10172 (./conftest; exit; ) >&5 2>/dev/null
10174 case x$lt_status in
10175 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10176 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10177 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10180 # compilation failed
10181 lt_cv_dlopen_self_static=no
10188 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10189 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10192 CPPFLAGS="$save_CPPFLAGS"
10193 LDFLAGS="$save_LDFLAGS"
10198 case $lt_cv_dlopen_self in
10199 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10200 *) enable_dlopen_self=unknown ;;
10203 case $lt_cv_dlopen_self_static in
10204 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10205 *) enable_dlopen_self_static=unknown ;;
10210 # Report which library types will actually be built
10211 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10212 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10213 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10214 echo "${ECHO_T}$can_build_shared" >&6; }
10216 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10217 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10218 test "$can_build_shared" = "no" && enable_shared=no
10220 # On AIX, shared libraries and static libraries use the same namespace, and
10221 # are all built from PIC.
10224 test "$enable_shared" = yes && enable_static=no
10225 if test -n "$RANLIB"; then
10226 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10227 postinstall_cmds='$RANLIB $lib'
10232 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10233 test "$enable_shared" = yes && enable_static=no
10237 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10238 echo "${ECHO_T}$enable_shared" >&6; }
10240 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10241 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10242 # Make sure either enable_shared or enable_static is yes.
10243 test "$enable_shared" = yes || enable_static=yes
10244 { echo "$as_me:$LINENO: result: $enable_static" >&5
10245 echo "${ECHO_T}$enable_static" >&6; }
10247 # The else clause should only fire when bootstrapping the
10248 # libtool distribution, otherwise you forgot to ship ltmain.sh
10249 # with your package, and you will get complaints that there are
10250 # no rules to generate ltmain.sh.
10251 if test -f "$ltmain"; then
10252 # See if we are running on zsh, and set the options which allow our commands through
10253 # without removal of \ escapes.
10254 if test -n "${ZSH_VERSION+set}" ; then
10255 setopt NO_GLOB_SUBST
10257 # Now quote all the things that may contain metacharacters while being
10258 # careful not to overquote the AC_SUBSTed values. We take copies of the
10259 # variables and quote the copies for generation of the libtool script.
10260 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10262 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10263 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10264 deplibs_check_method reload_flag reload_cmds need_locks \
10265 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10266 lt_cv_sys_global_symbol_to_c_name_address \
10267 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10268 old_postinstall_cmds old_postuninstall_cmds \
10272 lt_prog_compiler_wl \
10273 lt_prog_compiler_pic \
10274 lt_prog_compiler_static \
10275 lt_prog_compiler_no_builtin_flag \
10276 export_dynamic_flag_spec \
10277 thread_safe_flag_spec \
10278 whole_archive_flag_spec \
10279 enable_shared_with_static_runtimes \
10281 old_archive_from_new_cmds \
10286 compiler_lib_search_path \
10288 archive_expsym_cmds \
10290 postuninstall_cmds \
10291 old_archive_from_expsyms_cmds \
10292 allow_undefined_flag \
10293 no_undefined_flag \
10294 export_symbols_cmds \
10295 hardcode_libdir_flag_spec \
10296 hardcode_libdir_flag_spec_ld \
10297 hardcode_libdir_separator \
10298 hardcode_automatic \
10300 module_expsym_cmds \
10301 lt_cv_prog_compiler_c_o \
10303 include_expsyms; do
10306 old_archive_cmds | \
10307 old_archive_from_new_cmds | \
10309 archive_expsym_cmds | \
10311 module_expsym_cmds | \
10312 old_archive_from_expsyms_cmds | \
10313 export_symbols_cmds | \
10314 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10315 postinstall_cmds | postuninstall_cmds | \
10316 old_postinstall_cmds | old_postuninstall_cmds | \
10317 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10318 # Double-quote double-evaled strings.
10319 eval "lt_$var=\\\"\`\
$echo \"X\$
$var\" | \
$Xsed -e \"\
$double_quote_subst\" -e \"\
$sed_quote_subst\" -e \"\
$delay_variable_subst\"\
`\\\""
10322 eval "lt_$var=\\\"\`\
$echo \"X\$
$var\" | \
$Xsed -e \"\
$sed_quote_subst\"\
`\\\""
10328 *'\$0 --fallback-echo"')
10329 lt_echo=`$echo "X$lt_echo" |
$Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10333 cfgfile="${ofile}T"
10334 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10336 { echo "$as_me:$LINENO: creating $ofile" >&5
10337 echo "$as_me: creating $ofile" >&6;}
10339 cat <<__EOF__ >> "$cfgfile"
10342 # `$echo "$cfgfile" |
sed 's%^.*/%%'` - Provide generalized library-building support services.
10343 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10344 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10346 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10347 # Free Software Foundation, Inc.
10349 # This file is part of GNU Libtool:
10350 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10352 # This program is free software; you can redistribute it and/or modify
10353 # it under the terms of the GNU General Public License as published by
10354 # the Free Software Foundation; either version 2 of the License, or
10355 # (at your option) any later version.
10357 # This program is distributed in the hope that it will be useful, but
10358 # WITHOUT ANY WARRANTY; without even the implied warranty of
10359 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10360 # General Public License for more details.
10362 # You should have received a copy of the GNU General Public License
10363 # along with this program; if not, write to the Free Software
10364 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10366 # As a special exception to the GNU General Public License, if you
10367 # distribute this file as part of a program that contains a
10368 # configuration script generated by Autoconf, you may include it under
10369 # the same distribution terms that you use for the rest of that program.
10371 # A sed program that does not truncate output.
10374 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10375 Xsed="$SED -e 1s/^X//"
10377 # The HP-UX ksh and POSIX shell print the target directory to stdout
10378 # if CDPATH is set.
10379 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10381 # The names of the tagged configurations supported by this script.
10384 # ### BEGIN LIBTOOL CONFIG
10386 # Libtool was configured on host `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`:
10388 # Shell to use when invoking shell scripts.
10391 # Whether or not to build shared libraries.
10392 build_libtool_libs=$enable_shared
10394 # Whether or not to build static libraries.
10395 build_old_libs=$enable_static
10397 # Whether or not to add -lc for building shared libraries.
10398 build_libtool_need_lc=$archive_cmds_need_lc
10400 # Whether or not to disallow shared libs when runtime libs are static
10401 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10403 # Whether or not to optimize for fast installation.
10404 fast_install=$enable_fast_install
10407 host_alias=$host_alias
10411 # The build system.
10412 build_alias=$build_alias
10416 # An echo program that does not interpret backslashes.
10421 AR_FLAGS=$lt_AR_FLAGS
10426 # LTCC compiler flags.
10427 LTCFLAGS=$lt_LTCFLAGS
10429 # A language-specific compiler.
10432 # Is the compiler the GNU C compiler?
10438 # The linker used to build libraries.
10441 # Whether we need hard or soft links.
10444 # A BSD-compatible nm program.
10447 # A symbol stripping program
10450 # Used to examine libraries when file_magic_cmd begins "file"
10451 MAGIC_CMD=$MAGIC_CMD
10453 # Used on cygwin: DLL creation program.
10456 # Used on cygwin: object dumper.
10459 # Used on cygwin: assembler.
10462 # The name of the directory that contains temporary libtool files.
10465 # How to create reloadable object files.
10466 reload_flag=$lt_reload_flag
10467 reload_cmds=$lt_reload_cmds
10469 # How to pass a linker flag through the compiler.
10470 wl=$lt_lt_prog_compiler_wl
10472 # Object file suffix (normally "o").
10473 objext="$ac_objext"
10475 # Old archive suffix (normally "a").
10478 # Shared library suffix (normally ".so").
10479 shrext_cmds='$shrext_cmds'
10481 # Executable file suffix (normally "").
10484 # Additional compiler flags for building library objects.
10485 pic_flag=$lt_lt_prog_compiler_pic
10488 # What is the maximum length of a command?
10489 max_cmd_len=$lt_cv_sys_max_cmd_len
10491 # Does compiler simultaneously support -c and -o options?
10492 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10494 # Must we lock files when doing compilation?
10495 need_locks=$lt_need_locks
10497 # Do we need the lib prefix for modules?
10498 need_lib_prefix=$need_lib_prefix
10500 # Do we need a version for libraries?
10501 need_version=$need_version
10503 # Whether dlopen is supported.
10504 dlopen_support=$enable_dlopen
10506 # Whether dlopen of programs is supported.
10507 dlopen_self=$enable_dlopen_self
10509 # Whether dlopen of statically linked programs is supported.
10510 dlopen_self_static=$enable_dlopen_self_static
10512 # Compiler flag to prevent dynamic linking.
10513 link_static_flag=$lt_lt_prog_compiler_static
10515 # Compiler flag to turn off builtin functions.
10516 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10518 # Compiler flag to allow reflexive dlopens.
10519 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10521 # Compiler flag to generate shared objects directly from archives.
10522 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10524 # Compiler flag to generate thread-safe objects.
10525 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10527 # Library versioning type.
10528 version_type=$version_type
10530 # Format of library name prefix.
10531 libname_spec=$lt_libname_spec
10533 # List of archive names. First name is the real one, the rest are links.
10534 # The last name is the one that the linker finds with -lNAME.
10535 library_names_spec=$lt_library_names_spec
10537 # The coded name of the library, if different from the real name.
10538 soname_spec=$lt_soname_spec
10540 # Commands used to build and install an old-style archive.
10542 old_archive_cmds=$lt_old_archive_cmds
10543 old_postinstall_cmds=$lt_old_postinstall_cmds
10544 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10546 # Create an old-style archive from a shared archive.
10547 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10549 # Create a temporary old-style archive to link instead of a shared archive.
10550 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10552 # Commands used to build and install a shared archive.
10553 archive_cmds=$lt_archive_cmds
10554 archive_expsym_cmds=$lt_archive_expsym_cmds
10555 postinstall_cmds=$lt_postinstall_cmds
10556 postuninstall_cmds=$lt_postuninstall_cmds
10558 # Commands used to build a loadable module (assumed same as above if empty)
10559 module_cmds=$lt_module_cmds
10560 module_expsym_cmds=$lt_module_expsym_cmds
10562 # Commands to strip libraries.
10563 old_striplib=$lt_old_striplib
10564 striplib=$lt_striplib
10566 # Dependencies to place before the objects being linked to create a
10568 predep_objects=$lt_predep_objects
10570 # Dependencies to place after the objects being linked to create a
10572 postdep_objects=$lt_postdep_objects
10574 # Dependencies to place before the objects being linked to create a
10576 predeps=$lt_predeps
10578 # Dependencies to place after the objects being linked to create a
10580 postdeps=$lt_postdeps
10582 # The library search path used internally by the compiler when linking
10583 # a shared library.
10584 compiler_lib_search_path=$lt_compiler_lib_search_path
10586 # Method to check whether dependent libraries are shared objects.
10587 deplibs_check_method=$lt_deplibs_check_method
10589 # Command to use when deplibs_check_method == file_magic.
10590 file_magic_cmd=$lt_file_magic_cmd
10592 # Flag that allows shared libraries with undefined symbols to be built.
10593 allow_undefined_flag=$lt_allow_undefined_flag
10595 # Flag that forces no undefined symbols.
10596 no_undefined_flag=$lt_no_undefined_flag
10598 # Commands used to finish a libtool library installation in a directory.
10599 finish_cmds=$lt_finish_cmds
10601 # Same as above, but a single script fragment to be evaled but not shown.
10602 finish_eval=$lt_finish_eval
10604 # Take the output of nm and produce a listing of raw symbols and C names.
10605 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10607 # Transform the output of nm in a proper C declaration
10608 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10610 # Transform the output of nm in a C name address pair
10611 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10613 # This is the shared library runtime path variable.
10614 runpath_var=$runpath_var
10616 # This is the shared library path variable.
10617 shlibpath_var=$shlibpath_var
10619 # Is shlibpath searched before the hard-coded library search path?
10620 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10622 # How to hardcode a shared library path into an executable.
10623 hardcode_action=$hardcode_action
10625 # Whether we should hardcode library paths into libraries.
10626 hardcode_into_libs=$hardcode_into_libs
10628 # Flag to hardcode \$libdir into a binary during linking.
10629 # This must work even if \$libdir does not exist.
10630 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10632 # If ld is used when linking, flag to hardcode \$libdir into
10633 # a binary during linking. This must work even if \$libdir does
10635 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10637 # Whether we need a single -rpath flag with a separated argument.
10638 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10640 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10641 # resulting binary.
10642 hardcode_direct=$hardcode_direct
10644 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10645 # resulting binary.
10646 hardcode_minus_L=$hardcode_minus_L
10648 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10649 # the resulting binary.
10650 hardcode_shlibpath_var=$hardcode_shlibpath_var
10652 # Set to yes if building a shared library automatically hardcodes DIR into the library
10653 # and all subsequent libraries and executables linked against it.
10654 hardcode_automatic=$hardcode_automatic
10656 # Variables whose values should be saved in libtool wrapper scripts and
10657 # restored at relink time.
10658 variables_saved_for_relink="$variables_saved_for_relink"
10660 # Whether libtool must link a program against all its dependency libraries.
10661 link_all_deplibs=$link_all_deplibs
10663 # Compile-time system search path for libraries
10664 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10666 # Run-time system search path for libraries
10667 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10669 # Fix the shell variable \$srcfile for the compiler.
10670 fix_srcfile_path="$fix_srcfile_path"
10672 # Set to yes if exported symbols are required.
10673 always_export_symbols=$always_export_symbols
10675 # The commands to list exported symbols.
10676 export_symbols_cmds=$lt_export_symbols_cmds
10678 # The commands to extract the exported symbol list from a shared archive.
10679 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10681 # Symbols that should not be listed in the preloaded symbols.
10682 exclude_expsyms=$lt_exclude_expsyms
10684 # Symbols that must always be exported.
10685 include_expsyms=$lt_include_expsyms
10687 # ### END LIBTOOL CONFIG
10694 cat <<\EOF >> "$cfgfile"
10696 # AIX sometimes has problems with the GCC collect2 program. For some
10697 # reason, if we set the COLLECT_NAMES environment variable, the problems
10698 # vanish in a puff of smoke.
10699 if test "X${COLLECT_NAMES+set}" != Xset; then
10701 export COLLECT_NAMES
10707 # We use sed instead of cat because bash on DJGPP gets confused if
10708 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10709 # text mode, it properly converts lines to CR/LF. This bash problem
10710 # is reportedly fixed, but why not run on old versions too?
10711 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10713 mv -f "$cfgfile" "$ofile" || \
10714 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10718 # If there is no Makefile yet, we rely on a make rule to execute
10719 # `config.status
--recheck' to rerun these tests and create the
10720 # libtool script then.
10721 ltmain_in=`echo $ltmain | sed -e 's
/\.sh$
/.in
/'`
10722 if test -f "$ltmain_in"; then
10723 test -f Makefile && make "$ltmain"
10729 ac_cpp='$CPP $CPPFLAGS'
10730 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
10731 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
10732 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10737 # Check whether --with-tags was given.
10738 if test "${with_tags+set}" = set; then
10739 withval=$with_tags; tagnames="$withval"
10743 if test -f "$ltmain" && test -n "$tagnames"; then
10744 if test ! -f "${ofile}"; then
10745 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist
" >&5
10746 echo "$as_me: WARNING
: output
file \
`$ofile' does not exist" >&2;}
10749 if test -z "$LTCC"; then
10750 eval "`$SHELL ${ofile} --config |
grep '^LTCC='`"
10751 if test -z "$LTCC"; then
10752 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10753 echo "$as_me: WARNING: output file \`$ofile' does not
look like a libtool
script" >&2;}
10755 { echo "$as_me:$LINENO: WARNING
: using \
`LTCC=$LTCC', extracted from \`$ofile'" >&5
10756 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \
`$ofile'" >&2;}
10759 if test -z "$LTCFLAGS"; then
10760 eval "`$SHELL ${ofile} --config |
grep '^LTCFLAGS='`"
10763 # Extract list of available tagged configurations in $ofile.
10764 # Note that this assumes the entire list is on one line.
10765 available_tags=`grep "^available_tags=" "${ofile}" |
$SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10767 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10768 for tagname in $tagnames; do
10770 # Check whether tagname contains only valid characters
10771 case `$echo "X$tagname" |
$Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10773 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10774 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10775 { (exit 1); exit 1; }; }
10779 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10781 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10782 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10783 { (exit 1); exit 1; }; }
10786 # Update the list of available tags.
10787 if test -n "$tagname"; then
10788 echo appending configuration tag \"$tagname\" to $ofile
10792 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10793 ( (test "X$CXX" = "Xg++" && `g
++ -v >/dev
/null
2>&1` ) ||
10794 (test "X$CXX" != "Xg++"))) ; then
10796 ac_cpp='$CXXCPP $CPPFLAGS'
10797 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10798 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10799 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10804 archive_cmds_need_lc_CXX=no
10805 allow_undefined_flag_CXX=
10806 always_export_symbols_CXX=no
10807 archive_expsym_cmds_CXX=
10808 export_dynamic_flag_spec_CXX=
10809 hardcode_direct_CXX=no
10810 hardcode_libdir_flag_spec_CXX=
10811 hardcode_libdir_flag_spec_ld_CXX=
10812 hardcode_libdir_separator_CXX=
10813 hardcode_minus_L_CXX=no
10814 hardcode_shlibpath_var_CXX=unsupported
10815 hardcode_automatic_CXX=no
10817 module_expsym_cmds_CXX=
10818 link_all_deplibs_CXX=unknown
10819 old_archive_cmds_CXX=$old_archive_cmds
10820 no_undefined_flag_CXX=
10821 whole_archive_flag_spec_CXX=
10822 enable_shared_with_static_runtimes_CXX=no
10824 # Dependencies to place before and after the object being linked:
10825 predep_objects_CXX=
10826 postdep_objects_CXX=
10829 compiler_lib_search_path_CXX=
10831 # Source file extension for C++ test sources.
10834 # Object file extension for compiled C++ test sources.
10838 # Code to be used in simple compile tests
10839 lt_simple_compile_test_code="int some_variable = 0;\n"
10841 # Code to be used in simple link tests
10842 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10844 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10846 # If no C compiler was specified, use CC.
10849 # If no C compiler flags were specified, use CFLAGS.
10850 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10852 # Allow CC to be a program name with arguments.
10856 # save warnings/boilerplate of simple test code
10857 ac_outfile=conftest.$ac_objext
10858 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10859 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10860 _lt_compiler_boilerplate=`cat conftest.err
`
10863 ac_outfile=conftest.$ac_objext
10864 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10865 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10866 _lt_linker_boilerplate=`cat conftest.err
`
10870 # Allow CC to be a program name with arguments.
10875 lt_save_with_gnu_ld=$with_gnu_ld
10876 lt_save_path_LD=$lt_cv_path_LD
10877 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10878 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10880 $as_unset lt_cv_prog_gnu_ld
10882 if test -n "${lt_cv_path_LDCXX+set}"; then
10883 lt_cv_path_LD=$lt_cv_path_LDCXX
10885 $as_unset lt_cv_path_LD
10887 test -z "${LDCXX+set}" || LD=$LDCXX
10891 for cc_temp in $compiler""; do
10893 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10894 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10899 cc_basename=`$echo "X$cc_temp" |
$Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10902 # We don't want -fno-exception wen compiling C++ code, so set the
10903 # no_builtin_flag separately
10904 if test "$GXX" = yes; then
10905 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10907 lt_prog_compiler_no_builtin_flag_CXX=
10910 if test "$GXX" = yes; then
10911 # Set up default GNU C++ configuration
10914 # Check whether --with-gnu-ld was given.
10915 if test "${with_gnu_ld+set}" = set; then
10916 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10922 if test "$GCC" = yes; then
10923 # Check if gcc -print-prog-name=ld gives a path.
10924 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10925 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10928 # gcc leaves a trailing carriage return which upsets mingw
10929 ac_prog=`($CC -print-prog-name=ld
) 2>&5 |
tr -d '\015'` ;;
10931 ac_prog=`($CC -print-prog-name=ld
) 2>&5` ;;
10934 # Accept absolute paths.
10936 re_direlt='/[^/][^/]*/\.\./'
10937 # Canonicalize the pathname of ld
10938 ac_prog=`echo $ac_prog|
$SED 's%\\\\%/%g'`
10939 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10940 ac_prog=`echo $ac_prog|
$SED "s%$re_direlt%/%"`
10942 test -z "$LD" && LD="$ac_prog"
10945 # If it fails, then pretend we aren't using GCC.
10949 # If it is relative, then search for the first ld in PATH.
10950 with_gnu_ld=unknown
10953 elif test "$with_gnu_ld" = yes; then
10954 { echo "$as_me:$LINENO: checking for GNU ld" >&5
10955 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10957 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10958 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10960 if test "${lt_cv_path_LD+set}" = set; then
10961 echo $ECHO_N "(cached) $ECHO_C" >&6
10963 if test -z "$LD"; then
10964 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10965 for ac_dir in $PATH; do
10967 test -z "$ac_dir" && ac_dir=.
10968 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10969 lt_cv_path_LD="$ac_dir/$ac_prog"
10970 # Check to see if the program is GNU ld. I'd rather use --version,
10971 # but apparently some variants of GNU ld only accept -v.
10972 # Break only if it was the GNU/non-GNU ld that we prefer.
10973 case `"$lt_cv_path_LD" -v 2>&1 </dev
/null
` in
10974 *GNU* | *'with BFD'*)
10975 test "$with_gnu_ld" != no && break
10978 test "$with_gnu_ld" != yes && break
10985 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10989 LD="$lt_cv_path_LD"
10990 if test -n "$LD"; then
10991 { echo "$as_me:$LINENO: result: $LD" >&5
10992 echo "${ECHO_T}$LD" >&6; }
10994 { echo "$as_me:$LINENO: result: no" >&5
10995 echo "${ECHO_T}no" >&6; }
10997 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10998 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10999 { (exit 1); exit 1; }; }
11000 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11001 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11002 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11003 echo $ECHO_N "(cached) $ECHO_C" >&6
11005 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11006 case `$LD -v 2>&1 </dev
/null
` in
11007 *GNU* | *'with BFD'*)
11008 lt_cv_prog_gnu_ld=yes
11011 lt_cv_prog_gnu_ld=no
11015 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11016 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11017 with_gnu_ld=$lt_cv_prog_gnu_ld
11021 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11022 # archiving commands below assume that GNU ld is being used.
11023 if test "$with_gnu_ld" = yes; then
11024 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11025 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'
11027 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11028 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11030 # If archive_cmds runs LD, not CC, wlarc should be empty
11031 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11032 # investigate it a little bit more. (MM)
11035 # ancient GNU ld didn't support --whole-archive et. al.
11036 if eval "`$CC -print-prog-name=ld
` --help 2>&1" | \
11037 grep 'no-whole-archive' > /dev/null; then
11038 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11040 whole_archive_flag_spec_CXX=
11046 # A generic and very simple default shared library creation
11047 # command for GNU C++ for the case where it uses the native
11048 # linker, instead of GNU ld. If possible, this setting should
11049 # overridden to take advantage of the native linker features on
11050 # the platform it is being used on.
11051 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11054 # Commands to make compiler produce verbose output that lists
11055 # what "hidden" libraries, object files and flags are used when
11056 # linking a shared library.
11057 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11065 # PORTME: fill in a description of your system's C++ link characteristics
11066 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11067 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11071 # FIXME: insert proper C++ library support
11075 if test "$host_cpu" = ia64; then
11076 # On IA64, the linker does run time linking by default, so we don't
11077 # have to do anything special.
11078 aix_use_runtimelinking=no
11079 exp_sym_flag='-Bexport'
11082 aix_use_runtimelinking=no
11084 # Test if we are trying to use run time linking or normal
11085 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11086 # need to do runtime linking.
11087 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11088 for ld_flag in $LDFLAGS; do
11091 aix_use_runtimelinking=yes
11099 exp_sym_flag='-bexport'
11100 no_entry_flag='-bnoentry'
11103 # When large executables or shared objects are built, AIX ld can
11104 # have problems creating the table of contents. If linking a library
11105 # or program results in "error TOC overflow" add -mminimal-toc to
11106 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11107 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11109 archive_cmds_CXX=''
11110 hardcode_direct_CXX=yes
11111 hardcode_libdir_separator_CXX=':'
11112 link_all_deplibs_CXX=yes
11114 if test "$GXX" = yes; then
11115 case $host_os in aix4.[012]|aix4.[012].*)
11116 # We only want to do this on AIX 4.2 and lower, the check
11117 # below for broken collect2 doesn't work under 4.3+
11118 collect2name=`${CC} -print-prog-name=collect2
`
11119 if test -f "$collect2name" && \
11120 strings "$collect2name" | grep resolve_lib_name >/dev/null
11122 # We have reworked collect2
11123 hardcode_direct_CXX=yes
11125 # We have old collect2
11126 hardcode_direct_CXX=unsupported
11127 # It fails to find uninstalled libraries when the uninstalled
11128 # path is not listed in the libpath. Setting hardcode_minus_L
11129 # to unsupported forces relinking
11130 hardcode_minus_L_CXX=yes
11131 hardcode_libdir_flag_spec_CXX='-L$libdir'
11132 hardcode_libdir_separator_CXX=
11136 shared_flag='-shared'
11137 if test "$aix_use_runtimelinking" = yes; then
11138 shared_flag="$shared_flag "'${wl}-G'
11142 if test "$host_cpu" = ia64; then
11143 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11144 # chokes on -Wl,-G. The following line is correct:
11147 if test "$aix_use_runtimelinking" = yes; then
11148 shared_flag='${wl}-G'
11150 shared_flag='${wl}-bM:SRE'
11155 # It seems that -bexpall does not export symbols beginning with
11156 # underscore (_), so it is better to generate a list of symbols to export.
11157 always_export_symbols_CXX=yes
11158 if test "$aix_use_runtimelinking" = yes; then
11159 # Warning - without using the other runtime loading flags (-brtl),
11160 # -berok will link without error, but may produce a broken library.
11161 allow_undefined_flag_CXX='-berok'
11162 # Determine the default libpath from the value encoded in an empty executable.
11163 cat >conftest.$ac_ext <<_ACEOF
11166 cat confdefs.h >>conftest.$ac_ext
11167 cat >>conftest.$ac_ext <<_ACEOF
11168 /* end confdefs.h. */
11178 rm -f conftest.$ac_objext conftest$ac_exeext
11179 if { (ac_try="$ac_link"
11180 case "(($ac_try" in
11181 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11182 *) ac_try_echo
=$ac_try;;
11184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11185 (eval "$ac_link") 2>conftest.er1
11187 grep -v '^ *+' conftest.er1
>conftest.err
11189 cat conftest.err
>&5
11190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11191 (exit $ac_status); } &&
11192 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11193 { (case "(($ac_try" in
11194 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11195 *) ac_try_echo=$ac_try;;
11197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11198 (eval "$ac_try") 2>&5
11200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11201 (exit $ac_status); }; } &&
11202 { ac_try='test -s conftest$ac_exeext'
11203 { (case "(($ac_try" in
11204 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11205 *) ac_try_echo
=$ac_try;;
11207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11208 (eval "$ac_try") 2>&5
11210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11211 (exit $ac_status); }; }; then
11213 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11215 # Check for a 64-bit object if we didn't find anything.
11216 if test -z "$aix_libpath"; then aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11219 echo "$as_me: failed program was:" >&5
11220 sed 's/^/| /' conftest.
$ac_ext >&5
11225 rm -f core conftest.err conftest.
$ac_objext \
11226 conftest
$ac_exeext conftest.
$ac_ext
11227 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
11229 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
11231 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"
11233 if test "$host_cpu" = ia64
; then
11234 hardcode_libdir_flag_spec_CXX
='${wl}-R $libdir:/usr/lib:/lib'
11235 allow_undefined_flag_CXX
="-z nodefs"
11236 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"
11238 # Determine the default libpath from the value encoded in an empty executable.
11239 cat >conftest.
$ac_ext <<_ACEOF
11242 cat confdefs.h
>>conftest.
$ac_ext
11243 cat >>conftest.
$ac_ext <<_ACEOF
11244 /* end confdefs.h. */
11254 rm -f conftest.
$ac_objext conftest
$ac_exeext
11255 if { (ac_try
="$ac_link"
11256 case "(($ac_try" in
11257 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11258 *) ac_try_echo=$ac_try;;
11260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11261 (eval "$ac_link") 2>conftest.er1
11263 grep -v '^ *+' conftest.er1 >conftest.err
11265 cat conftest.err >&5
11266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11267 (exit $ac_status); } &&
11268 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11269 { (case "(($ac_try" in
11270 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11271 *) ac_try_echo
=$ac_try;;
11273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11274 (eval "$ac_try") 2>&5
11276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11277 (exit $ac_status); }; } &&
11278 { ac_try
='test -s conftest$ac_exeext'
11279 { (case "(($ac_try" in
11280 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11281 *) ac_try_echo=$ac_try;;
11283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11284 (eval "$ac_try") 2>&5
11286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11287 (exit $ac_status); }; }; then
11289 aix_libpath=`dump
-H conftest
$ac_exeext 2>/dev
/null |
$SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11291 # Check for a 64-bit object if we didn't find anything.
11292 if test -z "$aix_libpath"; then aix_libpath=`dump
-HX64 conftest
$ac_exeext 2>/dev
/null |
$SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11295 echo "$as_me: failed program was:" >&5
11296 sed 's/^/| /' conftest.$ac_ext >&5
11301 rm -f core conftest.err conftest.$ac_objext \
11302 conftest$ac_exeext conftest.$ac_ext
11303 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11305 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11306 # Warning - without using the other run time loading flags,
11307 # -berok will link without error, but may produce a broken library.
11308 no_undefined_flag_CXX=' ${wl}-bernotok'
11309 allow_undefined_flag_CXX=' ${wl}-berok'
11310 # Exported symbols can be pulled into shared objects from archives
11311 whole_archive_flag_spec_CXX='$convenience'
11312 archive_cmds_need_lc_CXX=yes
11313 # This is similar to how AIX traditionally builds its shared libraries.
11314 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'
11320 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11321 allow_undefined_flag_CXX=unsupported
11322 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11323 # support --undefined. This deserves some investigation. FIXME
11324 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11331 case $cc_basename in
11333 # FIXME: insert proper C++ library support
11339 cygwin* | mingw* | pw32*)
11340 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11341 # as there is no search path for DLLs.
11342 hardcode_libdir_flag_spec_CXX='-L$libdir'
11343 allow_undefined_flag_CXX=unsupported
11344 always_export_symbols_CXX=no
11345 enable_shared_with_static_runtimes_CXX=yes
11347 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11348 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'
11349 # If the export-symbols file already is a .def file (1st line
11350 # is EXPORTS), use it as is; otherwise, prepend...
11351 archive_expsym_cmds_CXX='if test "x`$SED 1q
$export_symbols`" = xEXPORTS; then
11352 cp $export_symbols $output_objdir/$soname.def;
11354 echo EXPORTS > $output_objdir/$soname.def;
11355 cat $export_symbols >> $output_objdir/$soname.def;
11357 $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'
11362 darwin* | rhapsody*)
11364 rhapsody* | darwin1.[012])
11365 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11368 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11369 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11371 case ${MACOSX_DEPLOYMENT_TARGET} in
11373 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11376 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11382 archive_cmds_need_lc_CXX=no
11383 hardcode_direct_CXX=no
11384 hardcode_automatic_CXX=yes
11385 hardcode_shlibpath_var_CXX=unsupported
11386 whole_archive_flag_spec_CXX=''
11387 link_all_deplibs_CXX=yes
11389 if test "$GXX" = yes ; then
11390 lt_int_apple_cc_single_mod=no
11391 output_verbose_link_cmd='echo'
11392 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11393 lt_int_apple_cc_single_mod=yes
11395 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11396 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11398 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'
11400 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11401 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11402 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11403 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}'
11405 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}'
11407 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}'
11409 case $cc_basename in
11411 output_verbose_link_cmd='echo'
11412 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
11413 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11414 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11415 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11416 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}'
11426 case $cc_basename in
11428 # FIXME: insert proper C++ library support
11432 # Green Hills C++ Compiler
11433 # FIXME: insert proper C++ library support
11437 # FIXME: insert proper C++ library support
11443 # C++ shared libraries reported to be fairly broken before switch to ELF
11447 archive_cmds_need_lc_CXX=no
11449 freebsd* | dragonfly*)
11450 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11457 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11458 hardcode_libdir_separator_CXX=:
11459 export_dynamic_flag_spec_CXX='${wl}-E'
11460 hardcode_direct_CXX=yes
11461 hardcode_minus_L_CXX=yes # Not in the search PATH,
11462 # but as the default
11463 # location of the library.
11465 case $cc_basename in
11467 # FIXME: insert proper C++ library support
11471 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'
11472 # Commands to make compiler produce verbose output that lists
11473 # what "hidden" libraries, object files and flags are used when
11474 # linking a shared library.
11476 # There doesn't appear to be a way to prevent this compiler from
11477 # explicitly linking system object files so we need to strip them
11478 # from the output so that they don't get included in the library
11480 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'
11483 if test "$GXX" = yes; then
11484 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'
11486 # FIXME: insert proper C++ library support
11493 if test $with_gnu_ld = no; then
11494 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11495 hardcode_libdir_separator_CXX=:
11499 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11502 export_dynamic_flag_spec_CXX='${wl}-E'
11508 hardcode_direct_CXX=no
11509 hardcode_shlibpath_var_CXX=no
11512 hardcode_direct_CXX=yes
11513 hardcode_minus_L_CXX=yes # Not in the search PATH,
11514 # but as the default
11515 # location of the library.
11519 case $cc_basename in
11521 # FIXME: insert proper C++ library support
11527 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11530 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11533 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11536 # Commands to make compiler produce verbose output that lists
11537 # what "hidden" libraries, object files and flags are used when
11538 # linking a shared library.
11540 # There doesn't appear to be a way to prevent this compiler from
11541 # explicitly linking system object files so we need to strip them
11542 # from the output so that they don't get included in the library
11544 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'
11547 if test "$GXX" = yes; then
11548 if test $with_gnu_ld = no; then
11551 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11554 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11557 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'
11562 # FIXME: insert proper C++ library support
11569 hardcode_direct_CXX=no
11570 hardcode_shlibpath_var_CXX=no
11571 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11572 export_dynamic_flag_spec_CXX='${wl}-E'
11573 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11574 # Instead, shared libraries are loaded at an image base (0x10000000 by
11575 # default) and relocated if they conflict, which is a slow very memory
11576 # consuming and fragmenting process. To avoid this, we pick a random,
11577 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11578 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11579 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'
11580 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'
11583 case $cc_basename in
11586 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'
11588 # Archives containing C++ object files must be created using
11589 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11590 # necessary to make sure instantiated templates are included
11592 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11595 if test "$GXX" = yes; then
11596 if test "$with_gnu_ld" = no; then
11597 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'
11599 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'
11602 link_all_deplibs_CXX=yes
11605 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11606 hardcode_libdir_separator_CXX=:
11608 linux* | k*bsd*-gnu)
11609 case $cc_basename in
11611 # Kuck and Associates, Inc. (KAI) C++ Compiler
11613 # KCC will only create a shared library if the output file
11614 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11615 # to its proper name (with version) after linking.
11616 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'
11617 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'
11618 # Commands to make compiler produce verbose output that lists
11619 # what "hidden" libraries, object files and flags are used when
11620 # linking a shared library.
11622 # There doesn't appear to be a way to prevent this compiler from
11623 # explicitly linking system object files so we need to strip them
11624 # from the output so that they don't get included in the library
11626 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'
11628 hardcode_libdir_flag_spec_CXX
='${wl}--rpath,$libdir'
11629 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
11631 # Archives containing C++ object files must be created using
11632 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11633 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
11638 # version 8.0 and above of icpc choke on multiply defined symbols
11639 # if we add $predep_objects and $postdep_objects, however 7.1 and
11640 # earlier do not add the objects themselves.
11641 case `$CC -V 2>&1` in
11643 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11644 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'
11646 *) # Version 8.0 or newer
11649 ia64
*) tmp_idyn
=' -i_dynamic';;
11651 archive_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11652 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'
11655 archive_cmds_need_lc_CXX
=no
11656 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
11657 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
11658 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11661 # Portland Group C++ compiler
11662 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11663 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'
11665 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
11666 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
11667 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'
11671 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11672 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'
11674 runpath_var
=LD_RUN_PATH
11675 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
11676 hardcode_libdir_separator_CXX
=:
11678 # Commands to make compiler produce verbose output that lists
11679 # what "hidden" libraries, object files and flags are used when
11680 # linking a shared library.
11682 # There doesn't appear to be a way to prevent this compiler from
11683 # explicitly linking system object files so we need to strip them
11684 # from the output so that they don't get included in the library
11686 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'
11691 # FIXME: insert proper C++ library support
11695 # FIXME: insert proper C++ library support
11699 case $cc_basename in
11701 # FIXME: insert proper C++ library support
11705 # FIXME: insert proper C++ library support
11710 netbsd
* | netbsdelf
*-gnu)
11711 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
11712 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11714 hardcode_libdir_flag_spec_CXX
='-R$libdir'
11715 hardcode_direct_CXX
=yes
11716 hardcode_shlibpath_var_CXX
=no
11718 # Workaround some broken pre-1.5 toolchains
11719 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11722 # C++ shared libraries are fairly broken
11726 hardcode_direct_CXX
=yes
11727 hardcode_shlibpath_var_CXX
=no
11728 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11729 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
11730 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11731 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11732 export_dynamic_flag_spec_CXX
='${wl}-E'
11733 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11735 output_verbose_link_cmd
='echo'
11738 case $cc_basename in
11740 # Kuck and Associates, Inc. (KAI) C++ Compiler
11742 # KCC will only create a shared library if the output file
11743 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11744 # to its proper name (with version) after linking.
11745 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'
11747 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
11748 hardcode_libdir_separator_CXX
=:
11750 # Archives containing C++ object files must be created using
11751 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11752 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
11756 # Rational C++ 2.4.1
11757 # FIXME: insert proper C++ library support
11761 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
11762 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'
11764 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
11765 hardcode_libdir_separator_CXX
=:
11767 # Commands to make compiler produce verbose output that lists
11768 # what "hidden" libraries, object files and flags are used when
11769 # linking a shared library.
11771 # There doesn't appear to be a way to prevent this compiler from
11772 # explicitly linking system object files so we need to strip them
11773 # from the output so that they don't get included in the library
11775 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'
11778 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
11779 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
11780 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'
11782 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
11783 hardcode_libdir_separator_CXX
=:
11785 # Commands to make compiler produce verbose output that lists
11786 # what "hidden" libraries, object files and flags are used when
11787 # linking a shared library.
11788 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11791 # FIXME: insert proper C++ library support
11798 case $cc_basename in
11800 # Kuck and Associates, Inc. (KAI) C++ Compiler
11802 # KCC will only create a shared library if the output file
11803 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11804 # to its proper name (with version) after linking.
11805 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'
11807 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
11808 hardcode_libdir_separator_CXX
=:
11810 # Archives containing C++ object files must be created using
11811 # the KAI C++ compiler.
11812 old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs'
11815 # Rational C++ 2.4.1
11816 # FIXME: insert proper C++ library support
11820 allow_undefined_flag_CXX
=' -expect_unresolved \*'
11821 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'
11822 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11823 echo "-hidden">> $lib.exp~
11824 $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~
11827 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
11828 hardcode_libdir_separator_CXX
=:
11830 # Commands to make compiler produce verbose output that lists
11831 # what "hidden" libraries, object files and flags are used when
11832 # linking a shared library.
11834 # There doesn't appear to be a way to prevent this compiler from
11835 # explicitly linking system object files so we need to strip them
11836 # from the output so that they don't get included in the library
11838 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'
11841 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
11842 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
11843 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'
11845 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
11846 hardcode_libdir_separator_CXX
=:
11848 # Commands to make compiler produce verbose output that lists
11849 # what "hidden" libraries, object files and flags are used when
11850 # linking a shared library.
11851 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11854 # FIXME: insert proper C++ library support
11861 # FIXME: insert proper C++ library support
11865 case $cc_basename in
11868 # FIXME: insert proper C++ library support
11873 # FIXME: insert proper C++ library support
11877 # FIXME: insert proper C++ library support
11883 case $cc_basename in
11885 # Sun C++ 4.2, 5.x and Centerline C++
11886 archive_cmds_need_lc_CXX
=yes
11887 no_undefined_flag_CXX
=' -zdefs'
11888 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11889 archive_expsym_cmds_CXX
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11890 $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'
11892 hardcode_libdir_flag_spec_CXX
='-R$libdir'
11893 hardcode_shlibpath_var_CXX
=no
11895 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
11897 # The C++ compiler is used as linker so we must use $wl
11898 # flag to pass the commands to the underlying system
11899 # linker. We must also pass each convience library through
11900 # to the system linker between allextract/defaultextract.
11901 # The C++ compiler will combine linker options so we
11902 # cannot just pass the convience library names through
11904 # Supported since Solaris 2.6 (maybe 2.5.1?)
11905 whole_archive_flag_spec_CXX
='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
11908 link_all_deplibs_CXX
=yes
11910 output_verbose_link_cmd
='echo'
11912 # Archives containing C++ object files must be created using
11913 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11914 # necessary to make sure instantiated templates are included
11916 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
11919 # Green Hills C++ Compiler
11920 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11922 # The C++ compiler must be used to create the archive.
11923 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11926 # GNU C++ compiler with Solaris linker
11927 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
11928 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
11929 if $CC --version |
grep -v '^2\.7' > /dev
/null
; then
11930 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11931 archive_expsym_cmds_CXX
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11932 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11934 # Commands to make compiler produce verbose output that lists
11935 # what "hidden" libraries, object files and flags are used when
11936 # linking a shared library.
11937 output_verbose_link_cmd
="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11939 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11941 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11942 archive_expsym_cmds_CXX
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11943 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11945 # Commands to make compiler produce verbose output that lists
11946 # what "hidden" libraries, object files and flags are used when
11947 # linking a shared library.
11948 output_verbose_link_cmd
="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11951 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
11956 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
11957 no_undefined_flag_CXX
='${wl}-z,text'
11958 archive_cmds_need_lc_CXX
=no
11959 hardcode_shlibpath_var_CXX
=no
11960 runpath_var
='LD_RUN_PATH'
11962 case $cc_basename in
11964 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11965 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11968 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11969 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11973 sysv5
* | sco3.2v5
* | sco5v6
*)
11974 # Note: We can NOT use -z defs as we might desire, because we do not
11975 # link with -lc, and that would cause any symbols used from libc to
11976 # always be unresolved, which means just about no library would
11977 # ever link correctly. If we're not using GNU ld we use -z text
11978 # though, which does catch some bad symbols but isn't as heavy-handed
11980 # For security reasons, it is highly recommended that you always
11981 # use absolute paths for naming shared libraries, and exclude the
11982 # DT_RUNPATH tag from executables and libraries. But doing so
11983 # requires that you compile everything twice, which is a pain.
11984 # So that behaviour is only enabled if SCOABSPATH is set to a
11985 # non-empty value in the environment. Most likely only useful for
11986 # creating official distributions of packages.
11987 # This is a hack until libtool officially supports absolute path
11988 # names for shared libraries.
11989 no_undefined_flag_CXX
='${wl}-z,text'
11990 allow_undefined_flag_CXX
='${wl}-z,nodefs'
11991 archive_cmds_need_lc_CXX
=no
11992 hardcode_shlibpath_var_CXX
=no
11993 hardcode_libdir_flag_spec_CXX
='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11994 hardcode_libdir_separator_CXX
=':'
11995 link_all_deplibs_CXX
=yes
11996 export_dynamic_flag_spec_CXX
='${wl}-Bexport'
11997 runpath_var
='LD_RUN_PATH'
11999 case $cc_basename in
12001 archive_cmds_CXX
='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12002 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12005 archive_cmds_CXX
='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12006 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12011 case $cc_basename in
12013 # NonStop-UX NCC 3.20
12014 # FIXME: insert proper C++ library support
12018 # FIXME: insert proper C++ library support
12024 # FIXME: insert proper C++ library support
12028 # FIXME: insert proper C++ library support
12032 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12033 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12034 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
12040 cat > conftest.
$ac_ext <<EOF
12044 Foo (void) { a = 0; }
12050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12051 (eval $ac_compile) 2>&5
12053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12054 (exit $ac_status); }; then
12055 # Parse the compiler output and extract the necessary
12056 # objects, libraries and library flags.
12058 # Sentinel used to keep track of whether or not we are before
12059 # the conftest object file.
12060 pre_test_object_deps_done
=no
12062 # The `*' in the case matches for architectures that use `case' in
12063 # $output_verbose_cmd can trigger glob expansion during the loop
12064 # eval without this substitution.
12065 output_verbose_link_cmd
=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12067 for p
in `eval $output_verbose_link_cmd`; do
12071 # Some compilers place space between "-{L,R}" and the path.
12072 # Remove the space.
12073 if test $p = "-L" \
12074 ||
test $p = "-R"; then
12081 if test "$pre_test_object_deps_done" = no
; then
12084 # Internal compiler library paths should come after those
12085 # provided the user. The postdeps already come after the
12086 # user supplied libs so there is no need to process them.
12087 if test -z "$compiler_lib_search_path_CXX"; then
12088 compiler_lib_search_path_CXX
="${prev}${p}"
12090 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
12093 # The "-l" case would never come before the object being
12094 # linked, so don't bother handling this case.
12097 if test -z "$postdeps_CXX"; then
12098 postdeps_CXX
="${prev}${p}"
12100 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
12106 # This assumes that the test object file only shows up
12107 # once in the compiler output.
12108 if test "$p" = "conftest.$objext"; then
12109 pre_test_object_deps_done
=yes
12113 if test "$pre_test_object_deps_done" = no
; then
12114 if test -z "$predep_objects_CXX"; then
12115 predep_objects_CXX
="$p"
12117 predep_objects_CXX
="$predep_objects_CXX $p"
12120 if test -z "$postdep_objects_CXX"; then
12121 postdep_objects_CXX
="$p"
12123 postdep_objects_CXX
="$postdep_objects_CXX $p"
12128 *) ;; # Ignore the rest.
12136 echo "libtool.m4: error: problem compiling CXX test program"
12139 $rm -f confest.
$objext
12141 # PORTME: override above test on systems where it is broken
12144 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12145 # hack all around it, let's just trust "g++" to DTRT.
12146 predep_objects_CXX
=
12147 postdep_objects_CXX
=
12152 case $cc_basename in
12154 # Adding this requires a known-good setup of shared libraries for
12155 # Sun compiler versions before 5.6, else PIC objects from an old
12156 # archive will be linked into the output, leading to subtle bugs.
12157 postdeps_CXX
='-lCstd -lCrun'
12164 case " $postdeps_CXX " in
12165 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
12168 lt_prog_compiler_wl_CXX
=
12169 lt_prog_compiler_pic_CXX
=
12170 lt_prog_compiler_static_CXX
=
12172 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12173 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12175 # C++ specific cases for pic, static, wl, etc.
12176 if test "$GXX" = yes; then
12177 lt_prog_compiler_wl_CXX
='-Wl,'
12178 lt_prog_compiler_static_CXX
='-static'
12182 # All AIX code is PIC.
12183 if test "$host_cpu" = ia64
; then
12184 # AIX 5 now supports IA64 processor
12185 lt_prog_compiler_static_CXX
='-Bstatic'
12189 # FIXME: we need at least 68020 code to build shared libraries, but
12190 # adding the `-m68020' flag to GCC prevents building anything better,
12192 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
12194 beos
* | cygwin
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
12195 # PIC is the default for these OSes.
12197 mingw
* | os2
* | pw32
*)
12198 # This hack is so that the source file can tell whether it is being
12199 # built for inclusion in a dll (and should export symbols for example).
12200 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
12202 darwin
* | rhapsody
*)
12203 # PIC is the default on this platform
12204 # Common symbols not allowed in MH_DYLIB files
12205 lt_prog_compiler_pic_CXX
='-fno-common'
12208 # DJGPP does not support shared libraries at all
12209 lt_prog_compiler_pic_CXX
=
12212 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12213 # Instead, we relocate shared libraries at runtime.
12216 if test -d /usr
/nec
; then
12217 lt_prog_compiler_pic_CXX
=-Kconform_pic
12221 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12222 # not for PA HP-UX.
12227 lt_prog_compiler_pic_CXX
='-fPIC'
12232 lt_prog_compiler_pic_CXX
='-fPIC'
12238 # All AIX code is PIC.
12239 if test "$host_cpu" = ia64
; then
12240 # AIX 5 now supports IA64 processor
12241 lt_prog_compiler_static_CXX
='-Bstatic'
12243 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
12247 case $cc_basename in
12249 # Green Hills C++ Compiler
12250 # _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"
12255 # PIC is the default on this platform
12256 # Common symbols not allowed in MH_DYLIB files
12257 case $cc_basename in
12259 lt_prog_compiler_pic_CXX
='-qnocommon'
12260 lt_prog_compiler_wl_CXX
='-Wl,'
12265 case $cc_basename in
12267 lt_prog_compiler_pic_CXX
='-KPIC'
12270 # Green Hills C++ Compiler
12271 lt_prog_compiler_pic_CXX
='-pic'
12277 freebsd
* | dragonfly
*)
12278 # FreeBSD uses GNU C++
12280 hpux9
* | hpux10
* | hpux11
*)
12281 case $cc_basename in
12283 lt_prog_compiler_wl_CXX
='-Wl,'
12284 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
12285 if test "$host_cpu" != ia64
; then
12286 lt_prog_compiler_pic_CXX
='+Z'
12290 lt_prog_compiler_wl_CXX
='-Wl,'
12291 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
12297 lt_prog_compiler_pic_CXX
='+Z'
12306 # This is c89, which is MS Visual C++ (no shared libs)
12307 # Anyone wants to do a port?
12309 irix5
* | irix6
* | nonstopux
*)
12310 case $cc_basename in
12312 lt_prog_compiler_wl_CXX
='-Wl,'
12313 lt_prog_compiler_static_CXX
='-non_shared'
12314 # CC pic flag -KPIC is the default.
12320 linux
* | k
*bsd
*-gnu)
12321 case $cc_basename in
12324 lt_prog_compiler_wl_CXX
='--backend -Wl,'
12325 lt_prog_compiler_pic_CXX
='-fPIC'
12329 lt_prog_compiler_wl_CXX
='-Wl,'
12330 lt_prog_compiler_pic_CXX
='-KPIC'
12331 lt_prog_compiler_static_CXX
='-static'
12334 # Portland Group C++ compiler.
12335 lt_prog_compiler_wl_CXX
='-Wl,'
12336 lt_prog_compiler_pic_CXX
='-fpic'
12337 lt_prog_compiler_static_CXX
='-Bstatic'
12341 # Make sure the PIC flag is empty. It appears that all Alpha
12342 # Linux and Compaq Tru64 Unix objects are PIC.
12343 lt_prog_compiler_pic_CXX
=
12344 lt_prog_compiler_static_CXX
='-non_shared'
12355 case $cc_basename in
12357 lt_prog_compiler_pic_CXX
='-W c,exportall'
12363 netbsd
* | netbsdelf
*-gnu)
12365 osf3
* | osf4
* | osf5
*)
12366 case $cc_basename in
12368 lt_prog_compiler_wl_CXX
='--backend -Wl,'
12371 # Rational C++ 2.4.1
12372 lt_prog_compiler_pic_CXX
='-pic'
12375 # Digital/Compaq C++
12376 lt_prog_compiler_wl_CXX
='-Wl,'
12377 # Make sure the PIC flag is empty. It appears that all Alpha
12378 # Linux and Compaq Tru64 Unix objects are PIC.
12379 lt_prog_compiler_pic_CXX
=
12380 lt_prog_compiler_static_CXX
='-non_shared'
12389 case $cc_basename in
12391 # Sun C++ 4.2, 5.x and Centerline C++
12392 lt_prog_compiler_pic_CXX
='-KPIC'
12393 lt_prog_compiler_static_CXX
='-Bstatic'
12394 lt_prog_compiler_wl_CXX
='-Qoption ld '
12397 # Green Hills C++ Compiler
12398 lt_prog_compiler_pic_CXX
='-PIC'
12405 case $cc_basename in
12408 lt_prog_compiler_pic_CXX
='-pic'
12409 lt_prog_compiler_static_CXX
='-Bstatic'
12413 lt_prog_compiler_pic_CXX
='-pic'
12420 case $cc_basename in
12422 # NonStop-UX NCC 3.20
12423 lt_prog_compiler_pic_CXX
='-KPIC'
12429 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
12430 case $cc_basename in
12432 lt_prog_compiler_wl_CXX
='-Wl,'
12433 lt_prog_compiler_pic_CXX
='-KPIC'
12434 lt_prog_compiler_static_CXX
='-Bstatic'
12441 lt_prog_compiler_can_build_shared_CXX
=no
12446 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12447 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12450 # Check to make sure the PIC flag actually works.
12452 if test -n "$lt_prog_compiler_pic_CXX"; then
12454 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12455 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12456 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12457 echo $ECHO_N "(cached) $ECHO_C" >&6
12459 lt_prog_compiler_pic_works_CXX
=no
12460 ac_outfile
=conftest.
$ac_objext
12461 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
12462 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
12463 # Insert the option either (1) after the last *FLAGS variable, or
12464 # (2) before a word containing "conftest.", or (3) at the end.
12465 # Note that $ac_compile itself does not contain backslashes and begins
12466 # with a dollar sign (not a hyphen), so the echo should work correctly.
12467 # The option is referenced via a variable to avoid confusing sed.
12468 lt_compile
=`echo "$ac_compile" | $SED \
12469 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12470 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12471 -e 's:$: $lt_compiler_flag:'`
12472 (eval echo "\"\$as_me:12472: $lt_compile\"" >&5)
12473 (eval "$lt_compile" 2>conftest.err
)
12475 cat conftest.err
>&5
12476 echo "$as_me:12476: \$? = $ac_status" >&5
12477 if (exit $ac_status) && test -s "$ac_outfile"; then
12478 # The compiler can only warn and ignore the option if not recognized
12479 # So say no if there are warnings other than the usual output.
12480 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
12481 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
12482 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
12483 lt_prog_compiler_pic_works_CXX
=yes
12489 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12490 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12492 if test x
"$lt_prog_compiler_pic_works_CXX" = xyes
; then
12493 case $lt_prog_compiler_pic_CXX in
12495 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
12498 lt_prog_compiler_pic_CXX
=
12499 lt_prog_compiler_can_build_shared_CXX
=no
12504 # For platforms which do not support PIC, -DPIC is meaningless:
12506 lt_prog_compiler_pic_CXX
=
12509 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
12514 # Check to make sure the static flag actually works.
12516 wl
=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_CXX\"
12517 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12518 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12519 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12520 echo $ECHO_N "(cached) $ECHO_C" >&6
12522 lt_prog_compiler_static_works_CXX
=no
12523 save_LDFLAGS
="$LDFLAGS"
12524 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
12525 printf "$lt_simple_link_test_code" > conftest.
$ac_ext
12526 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
12527 # The linker can only warn and ignore the option if not recognized
12528 # So say no if there are warnings
12529 if test -s conftest.err
; then
12530 # Append any errors to the config.log.
12531 cat conftest.err
1>&5
12532 $echo "X$_lt_linker_boilerplate" |
$Xsed -e '/^$/d' > conftest.exp
12533 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
12534 if diff conftest.exp conftest.er2
>/dev
/null
; then
12535 lt_prog_compiler_static_works_CXX
=yes
12538 lt_prog_compiler_static_works_CXX
=yes
12542 LDFLAGS
="$save_LDFLAGS"
12545 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12546 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12548 if test x
"$lt_prog_compiler_static_works_CXX" = xyes
; then
12551 lt_prog_compiler_static_CXX
=
12555 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12556 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12557 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12558 echo $ECHO_N "(cached) $ECHO_C" >&6
12560 lt_cv_prog_compiler_c_o_CXX
=no
12561 $rm -r conftest
2>/dev
/null
12565 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
12567 lt_compiler_flag
="-o out/conftest2.$ac_objext"
12568 # Insert the option either (1) after the last *FLAGS variable, or
12569 # (2) before a word containing "conftest.", or (3) at the end.
12570 # Note that $ac_compile itself does not contain backslashes and begins
12571 # with a dollar sign (not a hyphen), so the echo should work correctly.
12572 lt_compile
=`echo "$ac_compile" | $SED \
12573 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12574 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12575 -e 's:$: $lt_compiler_flag:'`
12576 (eval echo "\"\$as_me:12576: $lt_compile\"" >&5)
12577 (eval "$lt_compile" 2>out
/conftest.err
)
12579 cat out
/conftest.err
>&5
12580 echo "$as_me:12580: \$? = $ac_status" >&5
12581 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
12583 # The compiler can only warn and ignore the option if not recognized
12584 # So say no if there are warnings
12585 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
12586 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
12587 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
12588 lt_cv_prog_compiler_c_o_CXX
=yes
12593 # SGI C++ compiler will create directory out/ii_files/ for
12594 # template instantiation
12595 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
12596 $rm out
/* && rmdir out
12602 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12603 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12606 hard_links
="nottested"
12607 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
12608 # do not overwrite the value of need_locks provided by the user
12609 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12610 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12613 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
12615 ln conftest.a conftest.b
2>&5 || hard_links
=no
12616 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
12617 { echo "$as_me:$LINENO: result: $hard_links" >&5
12618 echo "${ECHO_T}$hard_links" >&6; }
12619 if test "$hard_links" = no
; then
12620 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12621 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12628 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12629 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12631 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12634 # If we're using GNU nm, then we don't want the "-C" option.
12635 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12636 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
12637 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'
12639 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'
12643 export_symbols_cmds_CXX
="$ltdll_cmds"
12646 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'
12648 linux
* | k
*bsd
*-gnu)
12649 link_all_deplibs_CXX
=no
12652 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12656 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12657 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12658 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
12661 # Do we need to explicitly link libc?
12663 case "x$archive_cmds_need_lc_CXX" in
12665 # Assume -lc should be added
12666 archive_cmds_need_lc_CXX
=yes
12668 if test "$enable_shared" = yes && test "$GCC" = yes; then
12669 case $archive_cmds_CXX in
12671 # FIXME: we may have to deal with multi-command sequences.
12674 # Test whether the compiler implicitly links with -lc since on some
12675 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12676 # to ld, don't add -lc before -lgcc.
12677 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12678 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12680 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
12682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12683 (eval $ac_compile) 2>&5
12685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12686 (exit $ac_status); } 2>conftest.err
; then
12689 libobjs
=conftest.
$ac_objext
12691 wl
=$lt_prog_compiler_wl_CXX
12692 pic_flag
=$lt_prog_compiler_pic_CXX
12698 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
12699 allow_undefined_flag_CXX
=
12700 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12701 (eval $archive_cmds_CXX 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
12703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12704 (exit $ac_status); }
12706 archive_cmds_need_lc_CXX
=no
12708 archive_cmds_need_lc_CXX
=yes
12710 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
12712 cat conftest.err
1>&5
12715 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12716 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12723 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12724 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12725 library_names_spec
=
12726 libname_spec
='lib$name'
12730 postuninstall_cmds
=
12734 shlibpath_overrides_runpath
=unknown
12736 dynamic_linker
="$host_os ld.so"
12737 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
12738 if test "$GCC" = yes; then
12739 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12740 if echo "$sys_lib_search_path_spec" |
grep ';' >/dev
/null
; then
12741 # if the path contains ";" then we assume it to be the separator
12742 # otherwise default to the standard path separator (i.e. ":") - it is
12743 # assumed that no part of a normal pathname contains ";" but that should
12744 # okay in the real world where ";" in dirpaths is itself problematic.
12745 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12747 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12750 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
12752 need_lib_prefix
=unknown
12753 hardcode_into_libs
=no
12755 # when you set need_version to no, make sure it does not cause -set_version
12756 # flags to be left without arguments
12757 need_version
=unknown
12762 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
12763 shlibpath_var
=LIBPATH
12765 # AIX 3 has no versioning support, so we append a major version to the name.
12766 soname_spec
='${libname}${release}${shared_ext}$major'
12773 hardcode_into_libs
=yes
12774 if test "$host_cpu" = ia64
; then
12775 # AIX 5 supports IA64
12776 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12777 shlibpath_var
=LD_LIBRARY_PATH
12779 # With GCC up to 2.95.x, collect2 would create an import file
12780 # for dependence libraries. The import file would start with
12781 # the line `#! .'. This would cause the generated library to
12782 # depend on `.', always an invalid library. This was fixed in
12783 # development snapshots of GCC prior to 3.0.
12785 aix4 | aix4.
[01] | aix4.
[01].
*)
12786 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12788 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
12791 can_build_shared
=no
12795 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12796 # soname into executable. Probably we can add versioning support to
12797 # collect2, so additional links can be useful in future.
12798 if test "$aix_use_runtimelinking" = yes; then
12799 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12800 # instead of lib<name>.a to let people know that these are not
12801 # typical AIX shared libraries.
12802 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12804 # We preserve .a as extension for shared libraries through AIX4.2
12805 # and later when we are not doing run time linking.
12806 library_names_spec
='${libname}${release}.a $libname.a'
12807 soname_spec
='${libname}${release}${shared_ext}$major'
12809 shlibpath_var
=LIBPATH
12814 library_names_spec
='$libname.ixlibrary $libname.a'
12815 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12816 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'
12820 library_names_spec
='${libname}${shared_ext}'
12821 dynamic_linker
="$host_os ld.so"
12822 shlibpath_var
=LIBRARY_PATH
12828 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12829 soname_spec
='${libname}${release}${shared_ext}$major'
12830 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
12831 shlibpath_var
=LD_LIBRARY_PATH
12832 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12833 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
12834 # the default ld.so.conf also contains /usr/contrib/lib and
12835 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12836 # libtool to hard-code these into programs
12839 cygwin
* | mingw
* | pw32
*)
12840 version_type
=windows
12845 case $GCC,$host_os in
12846 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
12847 library_names_spec
='$libname.dll.a'
12848 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12849 postinstall_cmds
='base_file=`basename \${file}`~
12850 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12851 dldir=$destdir/`dirname \$dlpath`~
12852 test -d \$dldir || mkdir -p \$dldir~
12853 $install_prog $dir/$dlname \$dldir/$dlname~
12854 chmod a+x \$dldir/$dlname'
12855 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12856 dlpath=$dir/\$dldll~
12858 shlibpath_overrides_runpath
=yes
12862 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12863 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12864 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
12867 # MinGW DLLs use traditional 'lib' prefix
12868 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12869 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12870 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
12871 # It is most probably a Windows format PATH printed by
12872 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12873 # path with ; separators, and with drive letters. We can handle the
12874 # drive letters (cygwin fileutils understands them), so leave them,
12875 # especially as we might pass files found there to a mingw objdump,
12876 # which wouldn't understand a cygwinified path. Ahh.
12877 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12879 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12883 # pw32 DLLs use 'pw' prefix rather than 'lib'
12884 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12890 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12893 dynamic_linker
='Win32 ld.exe'
12894 # FIXME: first we should search . and the directory the executable is in
12898 darwin
* | rhapsody
*)
12899 dynamic_linker
="$host_os dyld"
12900 version_type
=darwin
12903 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12904 soname_spec
='${libname}${release}${major}$shared_ext'
12905 shlibpath_overrides_runpath
=yes
12906 shlibpath_var
=DYLD_LIBRARY_PATH
12907 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
12908 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12909 if test "$GCC" = yes; then
12910 sys_lib_search_path_spec
=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
12912 sys_lib_search_path_spec
='/lib /usr/lib /usr/local/lib'
12914 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
12921 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12922 soname_spec
='${libname}${release}${shared_ext}$major'
12923 shlibpath_var
=LD_LIBRARY_PATH
12930 freebsd
* | dragonfly
*)
12931 # DragonFly does not have aout. When/if they implement a new
12932 # versioning mechanism, adjust this.
12933 if test -x /usr
/bin
/objformat
; then
12934 objformat
=`/usr/bin/objformat`
12937 freebsd
[123]*) objformat
=aout
;;
12938 *) objformat
=elf
;;
12941 version_type
=freebsd-
$objformat
12942 case $version_type in
12944 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12949 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12953 shlibpath_var
=LD_LIBRARY_PATH
12956 shlibpath_overrides_runpath
=yes
12958 freebsd3.
[01]* | freebsdelf3.
[01]*)
12959 shlibpath_overrides_runpath
=yes
12960 hardcode_into_libs
=yes
12962 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
12963 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
12964 shlibpath_overrides_runpath
=no
12965 hardcode_into_libs
=yes
12967 freebsd
*) # from 4.6 on
12968 shlibpath_overrides_runpath
=yes
12969 hardcode_into_libs
=yes
12978 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12979 soname_spec
='${libname}${release}${shared_ext}$major'
12980 shlibpath_var
=LD_LIBRARY_PATH
12981 hardcode_into_libs
=yes
12984 hpux9
* | hpux10
* | hpux11
*)
12985 # Give a soname corresponding to the major version so that dld.sl refuses to
12986 # link against other versions.
12993 hardcode_into_libs
=yes
12994 dynamic_linker
="$host_os dld.so"
12995 shlibpath_var
=LD_LIBRARY_PATH
12996 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
12997 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12998 soname_spec
='${libname}${release}${shared_ext}$major'
12999 if test "X$HPUX_IA64_MODE" = X32
; then
13000 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13002 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
13004 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
13008 hardcode_into_libs
=yes
13009 dynamic_linker
="$host_os dld.sl"
13010 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
13011 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
13012 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13013 soname_spec
='${libname}${release}${shared_ext}$major'
13014 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13015 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
13019 dynamic_linker
="$host_os dld.sl"
13020 shlibpath_var
=SHLIB_PATH
13021 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
13022 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13023 soname_spec
='${libname}${release}${shared_ext}$major'
13026 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13027 postinstall_cmds
='chmod 555 $lib'
13034 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13035 soname_spec
='${libname}${release}${shared_ext}$major'
13036 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
13037 shlibpath_var
=LD_LIBRARY_PATH
13038 shlibpath_overrides_runpath
=no
13039 hardcode_into_libs
=yes
13042 irix5
* | irix6
* | nonstopux
*)
13044 nonstopux
*) version_type
=nonstopux
;;
13046 if test "$lt_cv_prog_gnu_ld" = yes; then
13054 soname_spec
='${libname}${release}${shared_ext}$major'
13055 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13057 irix5
* | nonstopux
*)
13058 libsuff
= shlibsuff
=
13061 case $LD in # libtool.m4 will add one of these switches to LD
13062 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
13063 libsuff
= shlibsuff
= libmagic
=32-bit;;
13064 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
13065 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
13066 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
13067 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
13068 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
13072 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
13073 shlibpath_overrides_runpath
=no
13074 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13075 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
13076 hardcode_into_libs
=yes
13079 # No shared lib support for Linux oldld, aout, or coff.
13080 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
13084 # This must be Linux ELF.
13085 linux
* | k
*bsd
*-gnu)
13089 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13090 soname_spec
='${libname}${release}${shared_ext}$major'
13091 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13092 shlibpath_var
=LD_LIBRARY_PATH
13093 shlibpath_overrides_runpath
=no
13094 # This implies no fast_install, which is unacceptable.
13095 # Some rework will be needed to allow for fast_install
13096 # before this can be enabled.
13097 hardcode_into_libs
=yes
13099 # Append ld.so.conf contents to the search path
13100 if test -f /etc
/ld.so.conf
; then
13101 lt_ld_extra
=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13102 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
13105 # We used to test for /lib/ld.so.1 and disable shared libraries on
13106 # powerpc, because MkLinux only supported shared libraries with the
13107 # GNU dynamic linker. Since this was broken with cross compilers,
13108 # most powerpc-linux boxes support dynamic linking these days and
13109 # people can always --disable-shared, the test was removed, and we
13110 # assume the GNU/Linux dynamic linker is in use.
13111 dynamic_linker
='GNU/Linux ld.so'
13118 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13119 soname_spec
='${libname}${release}${shared_ext}$major'
13120 shlibpath_var
=LD_LIBRARY_PATH
13121 shlibpath_overrides_runpath
=no
13122 hardcode_into_libs
=yes
13123 dynamic_linker
='NetBSD ld.elf_so'
13130 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
13131 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13132 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13133 dynamic_linker
='NetBSD (a.out) ld.so'
13135 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13136 soname_spec
='${libname}${release}${shared_ext}$major'
13137 dynamic_linker
='NetBSD ld.elf_so'
13139 shlibpath_var
=LD_LIBRARY_PATH
13140 shlibpath_overrides_runpath
=yes
13141 hardcode_into_libs
=yes
13146 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13147 shlibpath_var
=LD_LIBRARY_PATH
13148 shlibpath_overrides_runpath
=yes
13155 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13156 soname_spec
='${libname}${release}${shared_ext}$major'
13157 shlibpath_var
=LD_LIBRARY_PATH
13158 shlibpath_overrides_runpath
=yes
13163 sys_lib_dlsearch_path_spec
="/usr/lib"
13165 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13167 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
13168 *) need_version
=no
;;
13170 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13171 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13172 shlibpath_var
=LD_LIBRARY_PATH
13173 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13175 openbsd2.
[89] | openbsd2.
[89].
*)
13176 shlibpath_overrides_runpath
=no
13179 shlibpath_overrides_runpath
=yes
13183 shlibpath_overrides_runpath
=yes
13188 libname_spec
='$name'
13191 library_names_spec
='$libname${shared_ext} $libname.a'
13192 dynamic_linker
='OS/2 ld.exe'
13193 shlibpath_var
=LIBPATH
13196 osf3
* | osf4
* | osf5
*)
13200 soname_spec
='${libname}${release}${shared_ext}$major'
13201 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13202 shlibpath_var
=LD_LIBRARY_PATH
13203 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13204 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
13211 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13212 soname_spec
='${libname}${release}${shared_ext}$major'
13213 shlibpath_var
=LD_LIBRARY_PATH
13214 shlibpath_overrides_runpath
=yes
13215 hardcode_into_libs
=yes
13216 # ldd complains unless libraries are executable
13217 postinstall_cmds
='chmod +x $lib'
13222 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13223 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13224 shlibpath_var
=LD_LIBRARY_PATH
13225 shlibpath_overrides_runpath
=yes
13226 if test "$with_gnu_ld" = yes; then
13234 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13235 soname_spec
='${libname}${release}${shared_ext}$major'
13236 shlibpath_var
=LD_LIBRARY_PATH
13237 case $host_vendor in
13239 shlibpath_overrides_runpath
=no
13241 export_dynamic_flag_spec
='${wl}-Blargedynsym'
13242 runpath_var
=LD_RUN_PATH
13250 shlibpath_overrides_runpath
=no
13251 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
13257 if test -d /usr
/nec
;then
13259 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13260 soname_spec
='$libname${shared_ext}.$major'
13261 shlibpath_var
=LD_LIBRARY_PATH
13265 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
13266 version_type
=freebsd-elf
13269 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13270 soname_spec
='${libname}${release}${shared_ext}$major'
13271 shlibpath_var
=LD_LIBRARY_PATH
13272 hardcode_into_libs
=yes
13273 if test "$with_gnu_ld" = yes; then
13274 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13275 shlibpath_overrides_runpath
=no
13277 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
13278 shlibpath_overrides_runpath
=yes
13281 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
13285 sys_lib_dlsearch_path_spec
='/usr/lib'
13290 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13291 soname_spec
='${libname}${release}${shared_ext}$major'
13292 shlibpath_var
=LD_LIBRARY_PATH
13299 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13300 echo "${ECHO_T}$dynamic_linker" >&6; }
13301 test "$dynamic_linker" = no
&& can_build_shared
=no
13303 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
13304 if test "$GCC" = yes; then
13305 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13308 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13309 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13310 hardcode_action_CXX
=
13311 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13312 test -n "$runpath_var_CXX" || \
13313 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13315 # We can hardcode non-existant directories.
13316 if test "$hardcode_direct_CXX" != no
&&
13317 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13318 # have to relink, otherwise we might link with an installed library
13319 # when we should be linking with a yet-to-be-installed one
13320 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13321 test "$hardcode_minus_L_CXX" != no
; then
13322 # Linking always hardcodes the temporary library directory.
13323 hardcode_action_CXX
=relink
13325 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13326 hardcode_action_CXX
=immediate
13329 # We cannot hardcode anything, or else we can only hardcode existing
13331 hardcode_action_CXX
=unsupported
13333 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13334 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13336 if test "$hardcode_action_CXX" = relink
; then
13337 # Fast installation is not supported
13338 enable_fast_install
=no
13339 elif test "$shlibpath_overrides_runpath" = yes ||
13340 test "$enable_shared" = no
; then
13341 # Fast installation is not necessary
13342 enable_fast_install
=needless
13346 # The else clause should only fire when bootstrapping the
13347 # libtool distribution, otherwise you forgot to ship ltmain.sh
13348 # with your package, and you will get complaints that there are
13349 # no rules to generate ltmain.sh.
13350 if test -f "$ltmain"; then
13351 # See if we are running on zsh, and set the options which allow our commands through
13352 # without removal of \ escapes.
13353 if test -n "${ZSH_VERSION+set}" ; then
13354 setopt NO_GLOB_SUBST
13356 # Now quote all the things that may contain metacharacters while being
13357 # careful not to overquote the AC_SUBSTed values. We take copies of the
13358 # variables and quote the copies for generation of the libtool script.
13359 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13361 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13362 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13363 deplibs_check_method reload_flag reload_cmds need_locks \
13364 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13365 lt_cv_sys_global_symbol_to_c_name_address \
13366 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13367 old_postinstall_cmds old_postuninstall_cmds \
13371 lt_prog_compiler_wl_CXX \
13372 lt_prog_compiler_pic_CXX \
13373 lt_prog_compiler_static_CXX \
13374 lt_prog_compiler_no_builtin_flag_CXX \
13375 export_dynamic_flag_spec_CXX \
13376 thread_safe_flag_spec_CXX \
13377 whole_archive_flag_spec_CXX \
13378 enable_shared_with_static_runtimes_CXX \
13379 old_archive_cmds_CXX \
13380 old_archive_from_new_cmds_CXX \
13381 predep_objects_CXX \
13382 postdep_objects_CXX \
13385 compiler_lib_search_path_CXX \
13387 archive_expsym_cmds_CXX \
13388 postinstall_cmds_CXX \
13389 postuninstall_cmds_CXX \
13390 old_archive_from_expsyms_cmds_CXX \
13391 allow_undefined_flag_CXX \
13392 no_undefined_flag_CXX \
13393 export_symbols_cmds_CXX \
13394 hardcode_libdir_flag_spec_CXX \
13395 hardcode_libdir_flag_spec_ld_CXX \
13396 hardcode_libdir_separator_CXX \
13397 hardcode_automatic_CXX \
13399 module_expsym_cmds_CXX \
13400 lt_cv_prog_compiler_c_o_CXX \
13401 exclude_expsyms_CXX \
13402 include_expsyms_CXX
; do
13405 old_archive_cmds_CXX | \
13406 old_archive_from_new_cmds_CXX | \
13407 archive_cmds_CXX | \
13408 archive_expsym_cmds_CXX | \
13409 module_cmds_CXX | \
13410 module_expsym_cmds_CXX | \
13411 old_archive_from_expsyms_cmds_CXX | \
13412 export_symbols_cmds_CXX | \
13413 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13414 postinstall_cmds | postuninstall_cmds | \
13415 old_postinstall_cmds | old_postuninstall_cmds | \
13416 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
13417 # Double-quote double-evaled strings.
13418 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13421 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13427 *'\$0 --fallback-echo"')
13428 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13434 cat <<__EOF__ >> "$cfgfile"
13435 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13437 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13439 # Shell to use when invoking shell scripts.
13442 # Whether or not to build shared libraries.
13443 build_libtool_libs=$enable_shared
13445 # Whether or not to build static libraries.
13446 build_old_libs=$enable_static
13448 # Whether or not to add -lc for building shared libraries.
13449 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13451 # Whether or not to disallow shared libs when runtime libs are static
13452 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13454 # Whether or not to optimize for fast installation.
13455 fast_install=$enable_fast_install
13458 host_alias=$host_alias
13462 # The build system.
13463 build_alias=$build_alias
13467 # An echo program that does not interpret backslashes.
13472 AR_FLAGS=$lt_AR_FLAGS
13477 # LTCC compiler flags.
13478 LTCFLAGS=$lt_LTCFLAGS
13480 # A language-specific compiler.
13481 CC=$lt_compiler_CXX
13483 # Is the compiler the GNU C compiler?
13489 # The linker used to build libraries.
13492 # Whether we need hard or soft links.
13495 # A BSD-compatible nm program.
13498 # A symbol stripping program
13501 # Used to examine libraries when file_magic_cmd begins "file"
13502 MAGIC_CMD=$MAGIC_CMD
13504 # Used on cygwin: DLL creation program.
13507 # Used on cygwin: object dumper.
13510 # Used on cygwin: assembler.
13513 # The name of the directory that contains temporary libtool files.
13516 # How to create reloadable object files.
13517 reload_flag=$lt_reload_flag
13518 reload_cmds=$lt_reload_cmds
13520 # How to pass a linker flag through the compiler.
13521 wl=$lt_lt_prog_compiler_wl_CXX
13523 # Object file suffix (normally "o").
13524 objext="$ac_objext"
13526 # Old archive suffix (normally "a").
13529 # Shared library suffix (normally ".so").
13530 shrext_cmds='$shrext_cmds'
13532 # Executable file suffix (normally "").
13535 # Additional compiler flags for building library objects.
13536 pic_flag=$lt_lt_prog_compiler_pic_CXX
13539 # What is the maximum length of a command?
13540 max_cmd_len=$lt_cv_sys_max_cmd_len
13542 # Does compiler simultaneously support -c and -o options?
13543 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13545 # Must we lock files when doing compilation?
13546 need_locks=$lt_need_locks
13548 # Do we need the lib prefix for modules?
13549 need_lib_prefix=$need_lib_prefix
13551 # Do we need a version for libraries?
13552 need_version=$need_version
13554 # Whether dlopen is supported.
13555 dlopen_support=$enable_dlopen
13557 # Whether dlopen of programs is supported.
13558 dlopen_self=$enable_dlopen_self
13560 # Whether dlopen of statically linked programs is supported.
13561 dlopen_self_static=$enable_dlopen_self_static
13563 # Compiler flag to prevent dynamic linking.
13564 link_static_flag=$lt_lt_prog_compiler_static_CXX
13566 # Compiler flag to turn off builtin functions.
13567 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13569 # Compiler flag to allow reflexive dlopens.
13570 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13572 # Compiler flag to generate shared objects directly from archives.
13573 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13575 # Compiler flag to generate thread-safe objects.
13576 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13578 # Library versioning type.
13579 version_type=$version_type
13581 # Format of library name prefix.
13582 libname_spec=$lt_libname_spec
13584 # List of archive names. First name is the real one, the rest are links.
13585 # The last name is the one that the linker finds with -lNAME.
13586 library_names_spec=$lt_library_names_spec
13588 # The coded name of the library, if different from the real name.
13589 soname_spec=$lt_soname_spec
13591 # Commands used to build and install an old-style archive.
13593 old_archive_cmds=$lt_old_archive_cmds_CXX
13594 old_postinstall_cmds=$lt_old_postinstall_cmds
13595 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13597 # Create an old-style archive from a shared archive.
13598 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13600 # Create a temporary old-style archive to link instead of a shared archive.
13601 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13603 # Commands used to build and install a shared archive.
13604 archive_cmds=$lt_archive_cmds_CXX
13605 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13606 postinstall_cmds=$lt_postinstall_cmds
13607 postuninstall_cmds=$lt_postuninstall_cmds
13609 # Commands used to build a loadable module (assumed same as above if empty)
13610 module_cmds=$lt_module_cmds_CXX
13611 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13613 # Commands to strip libraries.
13614 old_striplib=$lt_old_striplib
13615 striplib=$lt_striplib
13617 # Dependencies to place before the objects being linked to create a
13619 predep_objects=$lt_predep_objects_CXX
13621 # Dependencies to place after the objects being linked to create a
13623 postdep_objects=$lt_postdep_objects_CXX
13625 # Dependencies to place before the objects being linked to create a
13627 predeps=$lt_predeps_CXX
13629 # Dependencies to place after the objects being linked to create a
13631 postdeps=$lt_postdeps_CXX
13633 # The library search path used internally by the compiler when linking
13634 # a shared library.
13635 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13637 # Method to check whether dependent libraries are shared objects.
13638 deplibs_check_method=$lt_deplibs_check_method
13640 # Command to use when deplibs_check_method == file_magic.
13641 file_magic_cmd=$lt_file_magic_cmd
13643 # Flag that allows shared libraries with undefined symbols to be built.
13644 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13646 # Flag that forces no undefined symbols.
13647 no_undefined_flag=$lt_no_undefined_flag_CXX
13649 # Commands used to finish a libtool library installation in a directory.
13650 finish_cmds=$lt_finish_cmds
13652 # Same as above, but a single script fragment to be evaled but not shown.
13653 finish_eval=$lt_finish_eval
13655 # Take the output of nm and produce a listing of raw symbols and C names.
13656 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13658 # Transform the output of nm in a proper C declaration
13659 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13661 # Transform the output of nm in a C name address pair
13662 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13664 # This is the shared library runtime path variable.
13665 runpath_var=$runpath_var
13667 # This is the shared library path variable.
13668 shlibpath_var=$shlibpath_var
13670 # Is shlibpath searched before the hard-coded library search path?
13671 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13673 # How to hardcode a shared library path into an executable.
13674 hardcode_action=$hardcode_action_CXX
13676 # Whether we should hardcode library paths into libraries.
13677 hardcode_into_libs=$hardcode_into_libs
13679 # Flag to hardcode \$libdir into a binary during linking.
13680 # This must work even if \$libdir does not exist.
13681 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13683 # If ld is used when linking, flag to hardcode \$libdir into
13684 # a binary during linking. This must work even if \$libdir does
13686 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13688 # Whether we need a single -rpath flag with a separated argument.
13689 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13691 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13692 # resulting binary.
13693 hardcode_direct=$hardcode_direct_CXX
13695 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13696 # resulting binary.
13697 hardcode_minus_L=$hardcode_minus_L_CXX
13699 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13700 # the resulting binary.
13701 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13703 # Set to yes if building a shared library automatically hardcodes DIR into the library
13704 # and all subsequent libraries and executables linked against it.
13705 hardcode_automatic=$hardcode_automatic_CXX
13707 # Variables whose values should be saved in libtool wrapper scripts and
13708 # restored at relink time.
13709 variables_saved_for_relink="$variables_saved_for_relink"
13711 # Whether libtool must link a program against all its dependency libraries.
13712 link_all_deplibs=$link_all_deplibs_CXX
13714 # Compile-time system search path for libraries
13715 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13717 # Run-time system search path for libraries
13718 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13720 # Fix the shell variable \$srcfile for the compiler.
13721 fix_srcfile_path="$fix_srcfile_path_CXX"
13723 # Set to yes if exported symbols are required.
13724 always_export_symbols=$always_export_symbols_CXX
13726 # The commands to list exported symbols.
13727 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13729 # The commands to extract the exported symbol list from a shared archive.
13730 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13732 # Symbols that should not be listed in the preloaded symbols.
13733 exclude_expsyms=$lt_exclude_expsyms_CXX
13735 # Symbols that must always be exported.
13736 include_expsyms=$lt_include_expsyms_CXX
13738 # ### END LIBTOOL TAG CONFIG: $tagname
13744 # If there is no Makefile yet, we rely on a make rule to execute
13745 # `config.status --recheck' to rerun these tests and create the
13746 # libtool script then.
13747 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13748 if test -f "$ltmain_in"; then
13749 test -f Makefile
&& make "$ltmain"
13755 ac_cpp
='$CPP $CPPFLAGS'
13756 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13757 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13758 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
13764 with_gnu_ldcxx
=$with_gnu_ld
13765 with_gnu_ld
=$lt_save_with_gnu_ld
13766 lt_cv_path_LDCXX
=$lt_cv_path_LD
13767 lt_cv_path_LD
=$lt_save_path_LD
13768 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
13769 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
13777 if test -n "$F77" && test "X$F77" != "Xno"; then
13780 ac_compile
='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13781 ac_link
='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13782 ac_compiler_gnu
=$ac_cv_f77_compiler_gnu
13785 archive_cmds_need_lc_F77
=no
13786 allow_undefined_flag_F77
=
13787 always_export_symbols_F77
=no
13788 archive_expsym_cmds_F77
=
13789 export_dynamic_flag_spec_F77
=
13790 hardcode_direct_F77
=no
13791 hardcode_libdir_flag_spec_F77
=
13792 hardcode_libdir_flag_spec_ld_F77
=
13793 hardcode_libdir_separator_F77
=
13794 hardcode_minus_L_F77
=no
13795 hardcode_automatic_F77
=no
13797 module_expsym_cmds_F77
=
13798 link_all_deplibs_F77
=unknown
13799 old_archive_cmds_F77
=$old_archive_cmds
13800 no_undefined_flag_F77
=
13801 whole_archive_flag_spec_F77
=
13802 enable_shared_with_static_runtimes_F77
=no
13804 # Source file extension for f77 test sources.
13807 # Object file extension for compiled f77 test sources.
13811 # Code to be used in simple compile tests
13812 lt_simple_compile_test_code
=" subroutine t\n return\n end\n"
13814 # Code to be used in simple link tests
13815 lt_simple_link_test_code
=" program t\n end\n"
13817 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13819 # If no C compiler was specified, use CC.
13822 # If no C compiler flags were specified, use CFLAGS.
13823 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
13825 # Allow CC to be a program name with arguments.
13829 # save warnings/boilerplate of simple test code
13830 ac_outfile
=conftest.
$ac_objext
13831 printf "$lt_simple_compile_test_code" >conftest.
$ac_ext
13832 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
13833 _lt_compiler_boilerplate
=`cat conftest.err`
13836 ac_outfile
=conftest.
$ac_objext
13837 printf "$lt_simple_link_test_code" >conftest.
$ac_ext
13838 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
13839 _lt_linker_boilerplate
=`cat conftest.err`
13843 # Allow CC to be a program name with arguments.
13848 for cc_temp
in $compiler""; do
13850 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
13851 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
13856 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13859 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13860 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13861 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
13862 echo "${ECHO_T}$can_build_shared" >&6; }
13864 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13865 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13866 test "$can_build_shared" = "no" && enable_shared
=no
13868 # On AIX, shared libraries and static libraries use the same namespace, and
13869 # are all built from PIC.
13872 test "$enable_shared" = yes && enable_static
=no
13873 if test -n "$RANLIB"; then
13874 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
13875 postinstall_cmds
='$RANLIB $lib'
13879 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
13880 test "$enable_shared" = yes && enable_static
=no
13884 { echo "$as_me:$LINENO: result: $enable_shared" >&5
13885 echo "${ECHO_T}$enable_shared" >&6; }
13887 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13888 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13889 # Make sure either enable_shared or enable_static is yes.
13890 test "$enable_shared" = yes || enable_static
=yes
13891 { echo "$as_me:$LINENO: result: $enable_static" >&5
13892 echo "${ECHO_T}$enable_static" >&6; }
13897 lt_prog_compiler_wl_F77
=
13898 lt_prog_compiler_pic_F77
=
13899 lt_prog_compiler_static_F77
=
13901 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13902 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13904 if test "$GCC" = yes; then
13905 lt_prog_compiler_wl_F77
='-Wl,'
13906 lt_prog_compiler_static_F77
='-static'
13910 # All AIX code is PIC.
13911 if test "$host_cpu" = ia64
; then
13912 # AIX 5 now supports IA64 processor
13913 lt_prog_compiler_static_F77
='-Bstatic'
13918 # FIXME: we need at least 68020 code to build shared libraries, but
13919 # adding the `-m68020' flag to GCC prevents building anything better,
13921 lt_prog_compiler_pic_F77
='-m68020 -resident32 -malways-restore-a4'
13924 beos
* | cygwin
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
13925 # PIC is the default for these OSes.
13928 mingw
* | pw32
* | os2
*)
13929 # This hack is so that the source file can tell whether it is being
13930 # built for inclusion in a dll (and should export symbols for example).
13931 lt_prog_compiler_pic_F77
='-DDLL_EXPORT'
13934 darwin
* | rhapsody
*)
13935 # PIC is the default on this platform
13936 # Common symbols not allowed in MH_DYLIB files
13937 lt_prog_compiler_pic_F77
='-fno-common'
13941 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13942 # Instead, we relocate shared libraries at runtime.
13946 # Just because we use GCC doesn't mean we suddenly get shared libraries
13947 # on systems that don't support them.
13948 lt_prog_compiler_can_build_shared_F77
=no
13953 if test -d /usr
/nec
; then
13954 lt_prog_compiler_pic_F77
=-Kconform_pic
13959 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13960 # not for PA HP-UX.
13966 lt_prog_compiler_pic_F77
='-fPIC'
13972 lt_prog_compiler_pic_F77
='-fPIC'
13976 # PORTME Check for flag to pass linker flags through the system compiler.
13979 lt_prog_compiler_wl_F77
='-Wl,'
13980 if test "$host_cpu" = ia64
; then
13981 # AIX 5 now supports IA64 processor
13982 lt_prog_compiler_static_F77
='-Bstatic'
13984 lt_prog_compiler_static_F77
='-bnso -bI:/lib/syscalls.exp'
13988 # PIC is the default on this platform
13989 # Common symbols not allowed in MH_DYLIB files
13990 case $cc_basename in
13992 lt_prog_compiler_pic_F77
='-qnocommon'
13993 lt_prog_compiler_wl_F77
='-Wl,'
13998 mingw
* | pw32
* | os2
*)
13999 # This hack is so that the source file can tell whether it is being
14000 # built for inclusion in a dll (and should export symbols for example).
14001 lt_prog_compiler_pic_F77
='-DDLL_EXPORT'
14004 hpux9
* | hpux10
* | hpux11
*)
14005 lt_prog_compiler_wl_F77
='-Wl,'
14006 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14007 # not for PA HP-UX.
14013 lt_prog_compiler_pic_F77
='+Z'
14016 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14017 lt_prog_compiler_static_F77
='${wl}-a ${wl}archive'
14020 irix5
* | irix6
* | nonstopux
*)
14021 lt_prog_compiler_wl_F77
='-Wl,'
14022 # PIC (with -KPIC) is the default.
14023 lt_prog_compiler_static_F77
='-non_shared'
14027 lt_prog_compiler_pic_F77
='-KPIC'
14028 lt_prog_compiler_static_F77
='-Bstatic'
14031 linux
* | k
*bsd
*-gnu)
14032 case $cc_basename in
14034 lt_prog_compiler_wl_F77
='-Wl,'
14035 lt_prog_compiler_pic_F77
='-KPIC'
14036 lt_prog_compiler_static_F77
='-static'
14038 pgcc
* | pgf77
* | pgf90
* | pgf95
*)
14039 # Portland Group compilers (*not* the Pentium gcc compiler,
14040 # which looks to be a dead project)
14041 lt_prog_compiler_wl_F77
='-Wl,'
14042 lt_prog_compiler_pic_F77
='-fpic'
14043 lt_prog_compiler_static_F77
='-Bstatic'
14046 lt_prog_compiler_wl_F77
='-Wl,'
14047 # All Alpha code is PIC.
14048 lt_prog_compiler_static_F77
='-non_shared'
14053 osf3
* | osf4
* | osf5
*)
14054 lt_prog_compiler_wl_F77
='-Wl,'
14055 # All OSF/1 code is PIC.
14056 lt_prog_compiler_static_F77
='-non_shared'
14060 lt_prog_compiler_pic_F77
='-KPIC'
14061 lt_prog_compiler_static_F77
='-Bstatic'
14062 case $cc_basename in
14063 f77
* | f90
* | f95
*)
14064 lt_prog_compiler_wl_F77
='-Qoption ld ';;
14066 lt_prog_compiler_wl_F77
='-Wl,';;
14071 lt_prog_compiler_wl_F77
='-Qoption ld '
14072 lt_prog_compiler_pic_F77
='-PIC'
14073 lt_prog_compiler_static_F77
='-Bstatic'
14076 sysv4 | sysv4.2uw2
* | sysv4.3
*)
14077 lt_prog_compiler_wl_F77
='-Wl,'
14078 lt_prog_compiler_pic_F77
='-KPIC'
14079 lt_prog_compiler_static_F77
='-Bstatic'
14083 if test -d /usr
/nec
;then
14084 lt_prog_compiler_pic_F77
='-Kconform_pic'
14085 lt_prog_compiler_static_F77
='-Bstatic'
14089 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
14090 lt_prog_compiler_wl_F77
='-Wl,'
14091 lt_prog_compiler_pic_F77
='-KPIC'
14092 lt_prog_compiler_static_F77
='-Bstatic'
14096 lt_prog_compiler_wl_F77
='-Wl,'
14097 lt_prog_compiler_can_build_shared_F77
=no
14101 lt_prog_compiler_pic_F77
='-pic'
14102 lt_prog_compiler_static_F77
='-Bstatic'
14106 lt_prog_compiler_can_build_shared_F77
=no
14111 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14112 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14115 # Check to make sure the PIC flag actually works.
14117 if test -n "$lt_prog_compiler_pic_F77"; then
14119 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14120 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14121 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14122 echo $ECHO_N "(cached) $ECHO_C" >&6
14124 lt_prog_compiler_pic_works_F77
=no
14125 ac_outfile
=conftest.
$ac_objext
14126 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
14127 lt_compiler_flag
="$lt_prog_compiler_pic_F77"
14128 # Insert the option either (1) after the last *FLAGS variable, or
14129 # (2) before a word containing "conftest.", or (3) at the end.
14130 # Note that $ac_compile itself does not contain backslashes and begins
14131 # with a dollar sign (not a hyphen), so the echo should work correctly.
14132 # The option is referenced via a variable to avoid confusing sed.
14133 lt_compile
=`echo "$ac_compile" | $SED \
14134 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14135 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14136 -e 's:$: $lt_compiler_flag:'`
14137 (eval echo "\"\$as_me:14137: $lt_compile\"" >&5)
14138 (eval "$lt_compile" 2>conftest.err
)
14140 cat conftest.err
>&5
14141 echo "$as_me:14141: \$? = $ac_status" >&5
14142 if (exit $ac_status) && test -s "$ac_outfile"; then
14143 # The compiler can only warn and ignore the option if not recognized
14144 # So say no if there are warnings other than the usual output.
14145 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
14146 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
14147 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
14148 lt_prog_compiler_pic_works_F77
=yes
14154 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14155 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14157 if test x
"$lt_prog_compiler_pic_works_F77" = xyes
; then
14158 case $lt_prog_compiler_pic_F77 in
14160 *) lt_prog_compiler_pic_F77
=" $lt_prog_compiler_pic_F77" ;;
14163 lt_prog_compiler_pic_F77
=
14164 lt_prog_compiler_can_build_shared_F77
=no
14169 # For platforms which do not support PIC, -DPIC is meaningless:
14171 lt_prog_compiler_pic_F77
=
14174 lt_prog_compiler_pic_F77
="$lt_prog_compiler_pic_F77"
14179 # Check to make sure the static flag actually works.
14181 wl
=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_F77\"
14182 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14183 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14184 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14185 echo $ECHO_N "(cached) $ECHO_C" >&6
14187 lt_prog_compiler_static_works_F77
=no
14188 save_LDFLAGS
="$LDFLAGS"
14189 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
14190 printf "$lt_simple_link_test_code" > conftest.
$ac_ext
14191 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
14192 # The linker can only warn and ignore the option if not recognized
14193 # So say no if there are warnings
14194 if test -s conftest.err
; then
14195 # Append any errors to the config.log.
14196 cat conftest.err
1>&5
14197 $echo "X$_lt_linker_boilerplate" |
$Xsed -e '/^$/d' > conftest.exp
14198 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
14199 if diff conftest.exp conftest.er2
>/dev
/null
; then
14200 lt_prog_compiler_static_works_F77
=yes
14203 lt_prog_compiler_static_works_F77
=yes
14207 LDFLAGS
="$save_LDFLAGS"
14210 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14211 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14213 if test x
"$lt_prog_compiler_static_works_F77" = xyes
; then
14216 lt_prog_compiler_static_F77
=
14220 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14221 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14222 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14223 echo $ECHO_N "(cached) $ECHO_C" >&6
14225 lt_cv_prog_compiler_c_o_F77
=no
14226 $rm -r conftest
2>/dev
/null
14230 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
14232 lt_compiler_flag
="-o out/conftest2.$ac_objext"
14233 # Insert the option either (1) after the last *FLAGS variable, or
14234 # (2) before a word containing "conftest.", or (3) at the end.
14235 # Note that $ac_compile itself does not contain backslashes and begins
14236 # with a dollar sign (not a hyphen), so the echo should work correctly.
14237 lt_compile
=`echo "$ac_compile" | $SED \
14238 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14239 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14240 -e 's:$: $lt_compiler_flag:'`
14241 (eval echo "\"\$as_me:14241: $lt_compile\"" >&5)
14242 (eval "$lt_compile" 2>out
/conftest.err
)
14244 cat out
/conftest.err
>&5
14245 echo "$as_me:14245: \$? = $ac_status" >&5
14246 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
14248 # The compiler can only warn and ignore the option if not recognized
14249 # So say no if there are warnings
14250 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
14251 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
14252 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
14253 lt_cv_prog_compiler_c_o_F77
=yes
14258 # SGI C++ compiler will create directory out/ii_files/ for
14259 # template instantiation
14260 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
14261 $rm out
/* && rmdir out
14267 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14268 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14271 hard_links
="nottested"
14272 if test "$lt_cv_prog_compiler_c_o_F77" = no
&& test "$need_locks" != no
; then
14273 # do not overwrite the value of need_locks provided by the user
14274 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14275 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14278 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
14280 ln conftest.a conftest.b
2>&5 || hard_links
=no
14281 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
14282 { echo "$as_me:$LINENO: result: $hard_links" >&5
14283 echo "${ECHO_T}$hard_links" >&6; }
14284 if test "$hard_links" = no
; then
14285 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14286 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14293 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14294 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14297 allow_undefined_flag_F77
=
14298 enable_shared_with_static_runtimes_F77
=no
14300 archive_expsym_cmds_F77
=
14301 old_archive_From_new_cmds_F77
=
14302 old_archive_from_expsyms_cmds_F77
=
14303 export_dynamic_flag_spec_F77
=
14304 whole_archive_flag_spec_F77
=
14305 thread_safe_flag_spec_F77
=
14306 hardcode_libdir_flag_spec_F77
=
14307 hardcode_libdir_flag_spec_ld_F77
=
14308 hardcode_libdir_separator_F77
=
14309 hardcode_direct_F77
=no
14310 hardcode_minus_L_F77
=no
14311 hardcode_shlibpath_var_F77
=unsupported
14312 link_all_deplibs_F77
=unknown
14313 hardcode_automatic_F77
=no
14315 module_expsym_cmds_F77
=
14316 always_export_symbols_F77
=no
14317 export_symbols_cmds_F77
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14318 # include_expsyms should be a list of space-separated symbols to be *always*
14319 # included in the symbol list
14320 include_expsyms_F77
=
14321 # exclude_expsyms can be an extended regexp of symbols to exclude
14322 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14323 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14324 # as well as any symbol that contains `d'.
14325 exclude_expsyms_F77
="_GLOBAL_OFFSET_TABLE_"
14326 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14327 # platforms (ab)use it in PIC code, but their linkers get confused if
14328 # the symbol is explicitly referenced. Since portable code cannot
14329 # rely on this symbol name, it's probably fine to never include it in
14330 # preloaded symbol tables.
14331 extract_expsyms_cmds
=
14332 # Just being paranoid about ensuring that cc_basename is set.
14333 for cc_temp
in $compiler""; do
14335 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
14336 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
14341 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14344 cygwin
* | mingw
* | pw32
*)
14345 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14346 # When not using gcc, we currently assume that we are using
14347 # Microsoft Visual C++.
14348 if test "$GCC" != yes; then
14353 # we just hope/assume this is gcc and not c89 (= MSVC++)
14362 if test "$with_gnu_ld" = yes; then
14363 # If archive_cmds runs LD, not CC, wlarc should be empty
14366 # Set some defaults for GNU ld with shared library support. These
14367 # are reset later if shared libraries are not supported. Putting them
14368 # here allows them to be overridden if necessary.
14369 runpath_var
=LD_RUN_PATH
14370 hardcode_libdir_flag_spec_F77
='${wl}--rpath ${wl}$libdir'
14371 export_dynamic_flag_spec_F77
='${wl}--export-dynamic'
14372 # ancient GNU ld didn't support --whole-archive et. al.
14373 if $LD --help 2>&1 |
grep 'no-whole-archive' > /dev
/null
; then
14374 whole_archive_flag_spec_F77
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14376 whole_archive_flag_spec_F77
=
14378 supports_anon_versioning
=no
14379 case `$LD -v 2>/dev/null` in
14380 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
14381 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
14382 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
14383 *\
2.11.
*) ;; # other 2.11 versions
14384 *) supports_anon_versioning
=yes ;;
14387 # See if GNU ld supports shared libraries.
14389 aix3
* | aix4
* | aix5
*)
14390 # On AIX/PPC, the GNU linker is very broken
14391 if test "$host_cpu" != ia64
; then
14395 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14396 *** to be unable to reliably create shared libraries on AIX.
14397 *** Therefore, libtool is disabling shared libraries support. If you
14398 *** really care for shared libraries, you may want to modify your PATH
14399 *** so that a non-GNU linker is found, and then restart.
14406 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)'
14407 hardcode_libdir_flag_spec_F77
='-L$libdir'
14408 hardcode_minus_L_F77
=yes
14410 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14411 # that the semantics of dynamic libraries on AmigaOS, at least up
14412 # to version 4, is to share data among multiple programs linked
14413 # with the same dynamic library. Since this doesn't match the
14414 # behavior of shared libraries on other platforms, we can't use
14420 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
14421 allow_undefined_flag_F77
=unsupported
14422 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14423 # support --undefined. This deserves some investigation. FIXME
14424 archive_cmds_F77
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14430 cygwin
* | mingw
* | pw32
*)
14431 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14432 # as there is no search path for DLLs.
14433 hardcode_libdir_flag_spec_F77
='-L$libdir'
14434 allow_undefined_flag_F77
=unsupported
14435 always_export_symbols_F77
=no
14436 enable_shared_with_static_runtimes_F77
=yes
14437 export_symbols_cmds_F77
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14439 if $LD --help 2>&1 |
grep 'auto-import' > /dev
/null
; then
14440 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14441 # If the export-symbols file already is a .def file (1st line
14442 # is EXPORTS), use it as is; otherwise, prepend...
14443 archive_expsym_cmds_F77
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14444 cp $export_symbols $output_objdir/$soname.def;
14446 echo EXPORTS > $output_objdir/$soname.def;
14447 cat $export_symbols >> $output_objdir/$soname.def;
14449 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14456 hardcode_direct_F77
=no
14457 hardcode_shlibpath_var_F77
=no
14458 hardcode_libdir_flag_spec_F77
='${wl}-rpath,$libdir'
14459 export_dynamic_flag_spec_F77
='${wl}-E'
14460 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14461 # Instead, shared libraries are loaded at an image base (0x10000000 by
14462 # default) and relocated if they conflict, which is a slow very memory
14463 # consuming and fragmenting process. To avoid this, we pick a random,
14464 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14465 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14466 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'
14467 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'
14470 linux
* | k
*bsd
*-gnu)
14471 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
14473 case $cc_basename,$host_cpu in
14474 pgcc
*) # Portland Group C compiler
14475 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'
14476 tmp_addflag
=' $pic_flag'
14478 pgf77
* | pgf90
* | pgf95
*) # Portland Group f77 and f90 compilers
14479 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'
14480 tmp_addflag
=' $pic_flag -Mnomain' ;;
14481 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
14482 tmp_addflag
=' -i_dynamic' ;;
14483 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
14484 tmp_addflag
=' -i_dynamic -nofor_main' ;;
14485 ifc
* | ifort
*) # Intel Fortran compiler
14486 tmp_addflag
=' -nofor_main' ;;
14488 archive_cmds_F77
='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14490 if test $supports_anon_versioning = yes; then
14491 archive_expsym_cmds_F77
='$echo "{ global:" > $output_objdir/$libname.ver~
14492 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14493 $echo "local: *; };" >> $output_objdir/$libname.ver~
14494 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14496 link_all_deplibs_F77
=no
14502 netbsd
* | netbsdelf
*-gnu)
14503 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
14504 archive_cmds_F77
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14507 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14508 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14513 if $LD -v 2>&1 |
grep 'BFD 2\.8' > /dev
/null
; then
14517 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14518 *** create shared libraries on Solaris systems. Therefore, libtool
14519 *** is disabling shared libraries support. We urge you to upgrade GNU
14520 *** binutils to release 2.9.1 or newer. Another option is to modify
14521 *** your PATH or compiler configuration so that the native linker is
14522 *** used, and then restart.
14525 elif $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
14526 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14527 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14533 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
14534 case `$LD -v 2>&1` in
14535 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
14539 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14540 *** reliably create shared libraries on SCO systems. Therefore, libtool
14541 *** is disabling shared libraries support. We urge you to upgrade GNU
14542 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14543 *** your PATH or compiler configuration so that the native linker is
14544 *** used, and then restart.
14549 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
14550 hardcode_libdir_flag_spec_F77
='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14551 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14552 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14561 archive_cmds_F77
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14563 hardcode_direct_F77
=yes
14564 hardcode_shlibpath_var_F77
=no
14568 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
14569 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14570 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14577 if test "$ld_shlibs_F77" = no
; then
14579 hardcode_libdir_flag_spec_F77
=
14580 export_dynamic_flag_spec_F77
=
14581 whole_archive_flag_spec_F77
=
14584 # PORTME fill in a description of your system's linker (not GNU ld)
14587 allow_undefined_flag_F77
=unsupported
14588 always_export_symbols_F77
=yes
14589 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'
14590 # Note: this linker hardcodes the directories in LIBPATH if there
14591 # are no directories specified by -L.
14592 hardcode_minus_L_F77
=yes
14593 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14594 # Neither direct hardcoding nor static linking is supported with a
14596 hardcode_direct_F77
=unsupported
14601 if test "$host_cpu" = ia64
; then
14602 # On IA64, the linker does run time linking by default, so we don't
14603 # have to do anything special.
14604 aix_use_runtimelinking
=no
14605 exp_sym_flag
='-Bexport'
14608 # If we're using GNU nm, then we don't want the "-C" option.
14609 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14610 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
14611 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'
14613 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'
14615 aix_use_runtimelinking
=no
14617 # Test if we are trying to use run time linking or normal
14618 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14619 # need to do runtime linking.
14620 case $host_os in aix4.
[23]|aix4.
[23].
*|aix5
*)
14621 for ld_flag
in $LDFLAGS; do
14622 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
14623 aix_use_runtimelinking
=yes
14630 exp_sym_flag
='-bexport'
14631 no_entry_flag
='-bnoentry'
14634 # When large executables or shared objects are built, AIX ld can
14635 # have problems creating the table of contents. If linking a library
14636 # or program results in "error TOC overflow" add -mminimal-toc to
14637 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14638 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14640 archive_cmds_F77
=''
14641 hardcode_direct_F77
=yes
14642 hardcode_libdir_separator_F77
=':'
14643 link_all_deplibs_F77
=yes
14645 if test "$GCC" = yes; then
14646 case $host_os in aix4.
[012]|aix4.
[012].
*)
14647 # We only want to do this on AIX 4.2 and lower, the check
14648 # below for broken collect2 doesn't work under 4.3+
14649 collect2name
=`${CC} -print-prog-name=collect2`
14650 if test -f "$collect2name" && \
14651 strings "$collect2name" |
grep resolve_lib_name
>/dev
/null
14653 # We have reworked collect2
14654 hardcode_direct_F77
=yes
14656 # We have old collect2
14657 hardcode_direct_F77
=unsupported
14658 # It fails to find uninstalled libraries when the uninstalled
14659 # path is not listed in the libpath. Setting hardcode_minus_L
14660 # to unsupported forces relinking
14661 hardcode_minus_L_F77
=yes
14662 hardcode_libdir_flag_spec_F77
='-L$libdir'
14663 hardcode_libdir_separator_F77
=
14667 shared_flag
='-shared'
14668 if test "$aix_use_runtimelinking" = yes; then
14669 shared_flag
="$shared_flag "'${wl}-G'
14673 if test "$host_cpu" = ia64
; then
14674 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14675 # chokes on -Wl,-G. The following line is correct:
14678 if test "$aix_use_runtimelinking" = yes; then
14679 shared_flag
='${wl}-G'
14681 shared_flag
='${wl}-bM:SRE'
14686 # It seems that -bexpall does not export symbols beginning with
14687 # underscore (_), so it is better to generate a list of symbols to export.
14688 always_export_symbols_F77
=yes
14689 if test "$aix_use_runtimelinking" = yes; then
14690 # Warning - without using the other runtime loading flags (-brtl),
14691 # -berok will link without error, but may produce a broken library.
14692 allow_undefined_flag_F77
='-berok'
14693 # Determine the default libpath from the value encoded in an empty executable.
14694 cat >conftest.
$ac_ext <<_ACEOF
14699 rm -f conftest.
$ac_objext conftest
$ac_exeext
14700 if { (ac_try
="$ac_link"
14701 case "(($ac_try" in
14702 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14703 *) ac_try_echo=$ac_try;;
14705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14706 (eval "$ac_link") 2>conftest.er1
14708 grep -v '^ *+' conftest.er1 >conftest.err
14710 cat conftest.err >&5
14711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14712 (exit $ac_status); } &&
14713 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
14714 { (case "(($ac_try" in
14715 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14716 *) ac_try_echo
=$ac_try;;
14718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14719 (eval "$ac_try") 2>&5
14721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14722 (exit $ac_status); }; } &&
14723 { ac_try
='test -s conftest$ac_exeext'
14724 { (case "(($ac_try" in
14725 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14726 *) ac_try_echo=$ac_try;;
14728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14729 (eval "$ac_try") 2>&5
14731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14732 (exit $ac_status); }; }; then
14734 aix_libpath=`dump
-H conftest
$ac_exeext 2>/dev
/null |
$SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14736 # Check for a 64-bit object if we didn't find anything.
14737 if test -z "$aix_libpath"; then aix_libpath=`dump
-HX64 conftest
$ac_exeext 2>/dev
/null |
$SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14740 echo "$as_me: failed program was:" >&5
14741 sed 's/^/| /' conftest.$ac_ext >&5
14746 rm -f core conftest.err conftest.$ac_objext \
14747 conftest$ac_exeext conftest.$ac_ext
14748 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14750 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14751 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"
14753 if test "$host_cpu" = ia64; then
14754 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14755 allow_undefined_flag_F77="-z nodefs"
14756 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"
14758 # Determine the default libpath from the value encoded in an empty executable.
14759 cat >conftest.$ac_ext <<_ACEOF
14764 rm -f conftest.$ac_objext conftest$ac_exeext
14765 if { (ac_try="$ac_link"
14766 case "(($ac_try" in
14767 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14768 *) ac_try_echo
=$ac_try;;
14770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14771 (eval "$ac_link") 2>conftest.er1
14773 grep -v '^ *+' conftest.er1
>conftest.err
14775 cat conftest.err
>&5
14776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14777 (exit $ac_status); } &&
14778 { ac_try
='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
14779 { (case "(($ac_try" in
14780 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14781 *) ac_try_echo=$ac_try;;
14783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14784 (eval "$ac_try") 2>&5
14786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14787 (exit $ac_status); }; } &&
14788 { ac_try='test -s conftest$ac_exeext'
14789 { (case "(($ac_try" in
14790 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14791 *) ac_try_echo
=$ac_try;;
14793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14794 (eval "$ac_try") 2>&5
14796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14797 (exit $ac_status); }; }; then
14799 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14801 # Check for a 64-bit object if we didn't find anything.
14802 if test -z "$aix_libpath"; then aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14805 echo "$as_me: failed program was:" >&5
14806 sed 's/^/| /' conftest.
$ac_ext >&5
14811 rm -f core conftest.err conftest.
$ac_objext \
14812 conftest
$ac_exeext conftest.
$ac_ext
14813 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
14815 hardcode_libdir_flag_spec_F77
='${wl}-blibpath:$libdir:'"$aix_libpath"
14816 # Warning - without using the other run time loading flags,
14817 # -berok will link without error, but may produce a broken library.
14818 no_undefined_flag_F77
=' ${wl}-bernotok'
14819 allow_undefined_flag_F77
=' ${wl}-berok'
14820 # Exported symbols can be pulled into shared objects from archives
14821 whole_archive_flag_spec_F77
='$convenience'
14822 archive_cmds_need_lc_F77
=yes
14823 # This is similar to how AIX traditionally builds its shared libraries.
14824 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'
14830 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)'
14831 hardcode_libdir_flag_spec_F77
='-L$libdir'
14832 hardcode_minus_L_F77
=yes
14833 # see comment about different semantics on the GNU ld section
14838 export_dynamic_flag_spec_F77
=-rdynamic
14841 cygwin
* | mingw
* | pw32
*)
14842 # When not using gcc, we currently assume that we are using
14843 # Microsoft Visual C++.
14844 # hardcode_libdir_flag_spec is actually meaningless, as there is
14845 # no search path for DLLs.
14846 hardcode_libdir_flag_spec_F77
=' '
14847 allow_undefined_flag_F77
=unsupported
14848 # Tell ltmain to make .lib files, not .a files.
14850 # Tell ltmain to make .dll files, not .so files.
14852 # FIXME: Setting linknames here is a bad hack.
14853 archive_cmds_F77
='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14854 # The linker will automatically build a .lib file if we build a DLL.
14855 old_archive_From_new_cmds_F77
='true'
14856 # FIXME: Should let the user specify the lib program.
14857 old_archive_cmds_F77
='lib /OUT:$oldlib$oldobjs$old_deplibs'
14858 fix_srcfile_path_F77
='`cygpath -w "$srcfile"`'
14859 enable_shared_with_static_runtimes_F77
=yes
14862 darwin
* | rhapsody
*)
14864 rhapsody
* | darwin1.
[012])
14865 allow_undefined_flag_F77
='${wl}-undefined ${wl}suppress'
14868 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14869 allow_undefined_flag_F77
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14871 case ${MACOSX_DEPLOYMENT_TARGET} in
14873 allow_undefined_flag_F77
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14876 allow_undefined_flag_F77
='${wl}-undefined ${wl}dynamic_lookup'
14882 archive_cmds_need_lc_F77
=no
14883 hardcode_direct_F77
=no
14884 hardcode_automatic_F77
=yes
14885 hardcode_shlibpath_var_F77
=unsupported
14886 whole_archive_flag_spec_F77
=''
14887 link_all_deplibs_F77
=yes
14888 if test "$GCC" = yes ; then
14889 output_verbose_link_cmd
='echo'
14890 archive_cmds_F77
='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14891 module_cmds_F77
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14892 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14893 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}'
14894 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}'
14896 case $cc_basename in
14898 output_verbose_link_cmd
='echo'
14899 archive_cmds_F77
='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14900 module_cmds_F77
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14901 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14902 archive_expsym_cmds_F77
='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14903 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}'
14913 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14914 hardcode_libdir_flag_spec_F77
='-L$libdir'
14915 hardcode_shlibpath_var_F77
=no
14922 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14923 # support. Future versions do this automatically, but an explicit c++rt0.o
14924 # does not break anything, and helps significantly (at the cost of a little
14927 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14928 hardcode_libdir_flag_spec_F77
='-R$libdir'
14929 hardcode_direct_F77
=yes
14930 hardcode_shlibpath_var_F77
=no
14933 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14935 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14936 hardcode_direct_F77
=yes
14937 hardcode_minus_L_F77
=yes
14938 hardcode_shlibpath_var_F77
=no
14941 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14942 freebsd
* | dragonfly
*)
14943 archive_cmds_F77
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14944 hardcode_libdir_flag_spec_F77
='-R$libdir'
14945 hardcode_direct_F77
=yes
14946 hardcode_shlibpath_var_F77
=no
14950 if test "$GCC" = yes; then
14951 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'
14953 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'
14955 hardcode_libdir_flag_spec_F77
='${wl}+b ${wl}$libdir'
14956 hardcode_libdir_separator_F77
=:
14957 hardcode_direct_F77
=yes
14959 # hardcode_minus_L: Not really in the search PATH,
14960 # but as the default location of the library.
14961 hardcode_minus_L_F77
=yes
14962 export_dynamic_flag_spec_F77
='${wl}-E'
14966 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
14967 archive_cmds_F77
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14969 archive_cmds_F77
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14971 if test "$with_gnu_ld" = no
; then
14972 hardcode_libdir_flag_spec_F77
='${wl}+b ${wl}$libdir'
14973 hardcode_libdir_separator_F77
=:
14975 hardcode_direct_F77
=yes
14976 export_dynamic_flag_spec_F77
='${wl}-E'
14978 # hardcode_minus_L: Not really in the search PATH,
14979 # but as the default location of the library.
14980 hardcode_minus_L_F77
=yes
14985 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
14988 archive_cmds_F77
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14991 archive_cmds_F77
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14994 archive_cmds_F77
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15000 archive_cmds_F77
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15003 archive_cmds_F77
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15006 archive_cmds_F77
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15010 if test "$with_gnu_ld" = no
; then
15011 hardcode_libdir_flag_spec_F77
='${wl}+b ${wl}$libdir'
15012 hardcode_libdir_separator_F77
=:
15016 hardcode_libdir_flag_spec_ld_F77
='+b $libdir'
15017 hardcode_direct_F77
=no
15018 hardcode_shlibpath_var_F77
=no
15021 hardcode_direct_F77
=yes
15022 export_dynamic_flag_spec_F77
='${wl}-E'
15024 # hardcode_minus_L: Not really in the search PATH,
15025 # but as the default location of the library.
15026 hardcode_minus_L_F77
=yes
15032 irix5
* | irix6
* | nonstopux
*)
15033 if test "$GCC" = yes; then
15034 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'
15036 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'
15037 hardcode_libdir_flag_spec_ld_F77
='-rpath $libdir'
15039 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
15040 hardcode_libdir_separator_F77
=:
15041 link_all_deplibs_F77
=yes
15044 netbsd
* | netbsdelf
*-gnu)
15045 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
15046 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15048 archive_cmds_F77
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15050 hardcode_libdir_flag_spec_F77
='-R$libdir'
15051 hardcode_direct_F77
=yes
15052 hardcode_shlibpath_var_F77
=no
15056 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15057 hardcode_direct_F77
=yes
15058 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
15059 hardcode_libdir_separator_F77
=:
15060 hardcode_shlibpath_var_F77
=no
15064 hardcode_direct_F77
=yes
15065 hardcode_shlibpath_var_F77
=no
15066 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15067 archive_cmds_F77
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15068 archive_expsym_cmds_F77
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15069 hardcode_libdir_flag_spec_F77
='${wl}-rpath,$libdir'
15070 export_dynamic_flag_spec_F77
='${wl}-E'
15073 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
15074 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15075 hardcode_libdir_flag_spec_F77
='-R$libdir'
15078 archive_cmds_F77
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15079 hardcode_libdir_flag_spec_F77
='${wl}-rpath,$libdir'
15086 hardcode_libdir_flag_spec_F77
='-L$libdir'
15087 hardcode_minus_L_F77
=yes
15088 allow_undefined_flag_F77
=unsupported
15089 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'
15090 old_archive_From_new_cmds_F77
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15094 if test "$GCC" = yes; then
15095 allow_undefined_flag_F77
=' ${wl}-expect_unresolved ${wl}\*'
15096 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'
15098 allow_undefined_flag_F77
=' -expect_unresolved \*'
15099 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'
15101 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
15102 hardcode_libdir_separator_F77
=:
15105 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
15106 if test "$GCC" = yes; then
15107 allow_undefined_flag_F77
=' ${wl}-expect_unresolved ${wl}\*'
15108 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'
15109 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
15111 allow_undefined_flag_F77
=' -expect_unresolved \*'
15112 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'
15113 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~
15114 $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'
15116 # Both c and cxx compiler support -rpath directly
15117 hardcode_libdir_flag_spec_F77
='-rpath $libdir'
15119 hardcode_libdir_separator_F77
=:
15123 no_undefined_flag_F77
=' -z text'
15124 if test "$GCC" = yes; then
15126 archive_cmds_F77
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15127 archive_expsym_cmds_F77
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15128 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15131 archive_cmds_F77
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15132 archive_expsym_cmds_F77
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15133 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15135 hardcode_libdir_flag_spec_F77
='-R$libdir'
15136 hardcode_shlibpath_var_F77
=no
15138 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
15140 # The compiler driver will combine linker options so we
15141 # cannot just pass the convience library names through
15142 # without $wl, iff we do not link with $LD.
15143 # Luckily, gcc supports the same syntax we need for Sun Studio.
15144 # Supported since Solaris 2.6 (maybe 2.5.1?)
15147 whole_archive_flag_spec_F77
='-z allextract$convenience -z defaultextract' ;;
15149 whole_archive_flag_spec_F77
='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
15152 link_all_deplibs_F77
=yes
15156 if test "x$host_vendor" = xsequent
; then
15157 # Use $CC to link under sequent, because it throws in some extra .o
15158 # files that make .init and .fini sections work.
15159 archive_cmds_F77
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15161 archive_cmds_F77
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15163 hardcode_libdir_flag_spec_F77
='-L$libdir'
15164 hardcode_direct_F77
=yes
15165 hardcode_minus_L_F77
=yes
15166 hardcode_shlibpath_var_F77
=no
15170 case $host_vendor in
15172 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15173 hardcode_direct_F77
=yes # is this really true???
15176 ## LD is ld it makes a PLAMLIB
15177 ## CC just makes a GrossModule.
15178 archive_cmds_F77
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15179 reload_cmds_F77
='$CC -r -o $output$reload_objs'
15180 hardcode_direct_F77
=no
15183 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15184 hardcode_direct_F77
=no
#Motorola manual says yes, but my tests say they lie
15187 runpath_var
='LD_RUN_PATH'
15188 hardcode_shlibpath_var_F77
=no
15192 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15193 hardcode_shlibpath_var_F77
=no
15194 export_dynamic_flag_spec_F77
='-Bexport'
15198 if test -d /usr
/nec
; then
15199 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15200 hardcode_shlibpath_var_F77
=no
15201 runpath_var
=LD_RUN_PATH
15202 hardcode_runpath_var
=yes
15207 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
*)
15208 no_undefined_flag_F77
='${wl}-z,text'
15209 archive_cmds_need_lc_F77
=no
15210 hardcode_shlibpath_var_F77
=no
15211 runpath_var
='LD_RUN_PATH'
15213 if test "$GCC" = yes; then
15214 archive_cmds_F77
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15215 archive_expsym_cmds_F77
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15217 archive_cmds_F77
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15218 archive_expsym_cmds_F77
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15222 sysv5
* | sco3.2v5
* | sco5v6
*)
15223 # Note: We can NOT use -z defs as we might desire, because we do not
15224 # link with -lc, and that would cause any symbols used from libc to
15225 # always be unresolved, which means just about no library would
15226 # ever link correctly. If we're not using GNU ld we use -z text
15227 # though, which does catch some bad symbols but isn't as heavy-handed
15229 no_undefined_flag_F77
='${wl}-z,text'
15230 allow_undefined_flag_F77
='${wl}-z,nodefs'
15231 archive_cmds_need_lc_F77
=no
15232 hardcode_shlibpath_var_F77
=no
15233 hardcode_libdir_flag_spec_F77
='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15234 hardcode_libdir_separator_F77
=':'
15235 link_all_deplibs_F77
=yes
15236 export_dynamic_flag_spec_F77
='${wl}-Bexport'
15237 runpath_var
='LD_RUN_PATH'
15239 if test "$GCC" = yes; then
15240 archive_cmds_F77
='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15241 archive_expsym_cmds_F77
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15243 archive_cmds_F77
='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15244 archive_expsym_cmds_F77
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15249 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15250 hardcode_libdir_flag_spec_F77
='-L$libdir'
15251 hardcode_shlibpath_var_F77
=no
15260 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15261 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15262 test "$ld_shlibs_F77" = no
&& can_build_shared
=no
15265 # Do we need to explicitly link libc?
15267 case "x$archive_cmds_need_lc_F77" in
15269 # Assume -lc should be added
15270 archive_cmds_need_lc_F77
=yes
15272 if test "$enable_shared" = yes && test "$GCC" = yes; then
15273 case $archive_cmds_F77 in
15275 # FIXME: we may have to deal with multi-command sequences.
15278 # Test whether the compiler implicitly links with -lc since on some
15279 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15280 # to ld, don't add -lc before -lgcc.
15281 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15282 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15284 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
15286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15287 (eval $ac_compile) 2>&5
15289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15290 (exit $ac_status); } 2>conftest.err
; then
15293 libobjs
=conftest.
$ac_objext
15295 wl
=$lt_prog_compiler_wl_F77
15296 pic_flag
=$lt_prog_compiler_pic_F77
15302 lt_save_allow_undefined_flag
=$allow_undefined_flag_F77
15303 allow_undefined_flag_F77
=
15304 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15305 (eval $archive_cmds_F77 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
15307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15308 (exit $ac_status); }
15310 archive_cmds_need_lc_F77
=no
15312 archive_cmds_need_lc_F77
=yes
15314 allow_undefined_flag_F77
=$lt_save_allow_undefined_flag
15316 cat conftest.err
1>&5
15319 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15320 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15327 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15328 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15329 library_names_spec
=
15330 libname_spec
='lib$name'
15334 postuninstall_cmds
=
15338 shlibpath_overrides_runpath
=unknown
15340 dynamic_linker
="$host_os ld.so"
15341 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
15342 if test "$GCC" = yes; then
15343 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15344 if echo "$sys_lib_search_path_spec" |
grep ';' >/dev
/null
; then
15345 # if the path contains ";" then we assume it to be the separator
15346 # otherwise default to the standard path separator (i.e. ":") - it is
15347 # assumed that no part of a normal pathname contains ";" but that should
15348 # okay in the real world where ";" in dirpaths is itself problematic.
15349 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15351 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15354 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
15356 need_lib_prefix
=unknown
15357 hardcode_into_libs
=no
15359 # when you set need_version to no, make sure it does not cause -set_version
15360 # flags to be left without arguments
15361 need_version
=unknown
15366 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
15367 shlibpath_var
=LIBPATH
15369 # AIX 3 has no versioning support, so we append a major version to the name.
15370 soname_spec
='${libname}${release}${shared_ext}$major'
15377 hardcode_into_libs
=yes
15378 if test "$host_cpu" = ia64
; then
15379 # AIX 5 supports IA64
15380 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15381 shlibpath_var
=LD_LIBRARY_PATH
15383 # With GCC up to 2.95.x, collect2 would create an import file
15384 # for dependence libraries. The import file would start with
15385 # the line `#! .'. This would cause the generated library to
15386 # depend on `.', always an invalid library. This was fixed in
15387 # development snapshots of GCC prior to 3.0.
15389 aix4 | aix4.
[01] | aix4.
[01].
*)
15390 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15392 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
15395 can_build_shared
=no
15399 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15400 # soname into executable. Probably we can add versioning support to
15401 # collect2, so additional links can be useful in future.
15402 if test "$aix_use_runtimelinking" = yes; then
15403 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15404 # instead of lib<name>.a to let people know that these are not
15405 # typical AIX shared libraries.
15406 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15408 # We preserve .a as extension for shared libraries through AIX4.2
15409 # and later when we are not doing run time linking.
15410 library_names_spec
='${libname}${release}.a $libname.a'
15411 soname_spec
='${libname}${release}${shared_ext}$major'
15413 shlibpath_var
=LIBPATH
15418 library_names_spec
='$libname.ixlibrary $libname.a'
15419 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15420 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'
15424 library_names_spec
='${libname}${shared_ext}'
15425 dynamic_linker
="$host_os ld.so"
15426 shlibpath_var
=LIBRARY_PATH
15432 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15433 soname_spec
='${libname}${release}${shared_ext}$major'
15434 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
15435 shlibpath_var
=LD_LIBRARY_PATH
15436 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15437 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
15438 # the default ld.so.conf also contains /usr/contrib/lib and
15439 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15440 # libtool to hard-code these into programs
15443 cygwin
* | mingw
* | pw32
*)
15444 version_type
=windows
15449 case $GCC,$host_os in
15450 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
15451 library_names_spec
='$libname.dll.a'
15452 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15453 postinstall_cmds
='base_file=`basename \${file}`~
15454 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15455 dldir=$destdir/`dirname \$dlpath`~
15456 test -d \$dldir || mkdir -p \$dldir~
15457 $install_prog $dir/$dlname \$dldir/$dlname~
15458 chmod a+x \$dldir/$dlname'
15459 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15460 dlpath=$dir/\$dldll~
15462 shlibpath_overrides_runpath
=yes
15466 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15467 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15468 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
15471 # MinGW DLLs use traditional 'lib' prefix
15472 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15473 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15474 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
15475 # It is most probably a Windows format PATH printed by
15476 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15477 # path with ; separators, and with drive letters. We can handle the
15478 # drive letters (cygwin fileutils understands them), so leave them,
15479 # especially as we might pass files found there to a mingw objdump,
15480 # which wouldn't understand a cygwinified path. Ahh.
15481 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15483 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15487 # pw32 DLLs use 'pw' prefix rather than 'lib'
15488 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15494 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15497 dynamic_linker
='Win32 ld.exe'
15498 # FIXME: first we should search . and the directory the executable is in
15502 darwin
* | rhapsody
*)
15503 dynamic_linker
="$host_os dyld"
15504 version_type
=darwin
15507 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15508 soname_spec
='${libname}${release}${major}$shared_ext'
15509 shlibpath_overrides_runpath
=yes
15510 shlibpath_var
=DYLD_LIBRARY_PATH
15511 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
15512 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15513 if test "$GCC" = yes; then
15514 sys_lib_search_path_spec
=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
15516 sys_lib_search_path_spec
='/lib /usr/lib /usr/local/lib'
15518 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
15525 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15526 soname_spec
='${libname}${release}${shared_ext}$major'
15527 shlibpath_var
=LD_LIBRARY_PATH
15534 freebsd
* | dragonfly
*)
15535 # DragonFly does not have aout. When/if they implement a new
15536 # versioning mechanism, adjust this.
15537 if test -x /usr
/bin
/objformat
; then
15538 objformat
=`/usr/bin/objformat`
15541 freebsd
[123]*) objformat
=aout
;;
15542 *) objformat
=elf
;;
15545 version_type
=freebsd-
$objformat
15546 case $version_type in
15548 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15553 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15557 shlibpath_var
=LD_LIBRARY_PATH
15560 shlibpath_overrides_runpath
=yes
15562 freebsd3.
[01]* | freebsdelf3.
[01]*)
15563 shlibpath_overrides_runpath
=yes
15564 hardcode_into_libs
=yes
15566 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
15567 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
15568 shlibpath_overrides_runpath
=no
15569 hardcode_into_libs
=yes
15571 freebsd
*) # from 4.6 on
15572 shlibpath_overrides_runpath
=yes
15573 hardcode_into_libs
=yes
15582 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15583 soname_spec
='${libname}${release}${shared_ext}$major'
15584 shlibpath_var
=LD_LIBRARY_PATH
15585 hardcode_into_libs
=yes
15588 hpux9
* | hpux10
* | hpux11
*)
15589 # Give a soname corresponding to the major version so that dld.sl refuses to
15590 # link against other versions.
15597 hardcode_into_libs
=yes
15598 dynamic_linker
="$host_os dld.so"
15599 shlibpath_var
=LD_LIBRARY_PATH
15600 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
15601 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15602 soname_spec
='${libname}${release}${shared_ext}$major'
15603 if test "X$HPUX_IA64_MODE" = X32
; then
15604 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15606 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
15608 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
15612 hardcode_into_libs
=yes
15613 dynamic_linker
="$host_os dld.sl"
15614 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
15615 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
15616 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15617 soname_spec
='${libname}${release}${shared_ext}$major'
15618 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15619 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
15623 dynamic_linker
="$host_os dld.sl"
15624 shlibpath_var
=SHLIB_PATH
15625 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
15626 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15627 soname_spec
='${libname}${release}${shared_ext}$major'
15630 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15631 postinstall_cmds
='chmod 555 $lib'
15638 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15639 soname_spec
='${libname}${release}${shared_ext}$major'
15640 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
15641 shlibpath_var
=LD_LIBRARY_PATH
15642 shlibpath_overrides_runpath
=no
15643 hardcode_into_libs
=yes
15646 irix5
* | irix6
* | nonstopux
*)
15648 nonstopux
*) version_type
=nonstopux
;;
15650 if test "$lt_cv_prog_gnu_ld" = yes; then
15658 soname_spec
='${libname}${release}${shared_ext}$major'
15659 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15661 irix5
* | nonstopux
*)
15662 libsuff
= shlibsuff
=
15665 case $LD in # libtool.m4 will add one of these switches to LD
15666 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
15667 libsuff
= shlibsuff
= libmagic
=32-bit;;
15668 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
15669 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
15670 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
15671 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
15672 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
15676 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
15677 shlibpath_overrides_runpath
=no
15678 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15679 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
15680 hardcode_into_libs
=yes
15683 # No shared lib support for Linux oldld, aout, or coff.
15684 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
15688 # This must be Linux ELF.
15689 linux
* | k
*bsd
*-gnu)
15693 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15694 soname_spec
='${libname}${release}${shared_ext}$major'
15695 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15696 shlibpath_var
=LD_LIBRARY_PATH
15697 shlibpath_overrides_runpath
=no
15698 # This implies no fast_install, which is unacceptable.
15699 # Some rework will be needed to allow for fast_install
15700 # before this can be enabled.
15701 hardcode_into_libs
=yes
15703 # Append ld.so.conf contents to the search path
15704 if test -f /etc
/ld.so.conf
; then
15705 lt_ld_extra
=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15706 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
15709 # We used to test for /lib/ld.so.1 and disable shared libraries on
15710 # powerpc, because MkLinux only supported shared libraries with the
15711 # GNU dynamic linker. Since this was broken with cross compilers,
15712 # most powerpc-linux boxes support dynamic linking these days and
15713 # people can always --disable-shared, the test was removed, and we
15714 # assume the GNU/Linux dynamic linker is in use.
15715 dynamic_linker
='GNU/Linux ld.so'
15722 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15723 soname_spec
='${libname}${release}${shared_ext}$major'
15724 shlibpath_var
=LD_LIBRARY_PATH
15725 shlibpath_overrides_runpath
=no
15726 hardcode_into_libs
=yes
15727 dynamic_linker
='NetBSD ld.elf_so'
15734 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
15735 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15736 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15737 dynamic_linker
='NetBSD (a.out) ld.so'
15739 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15740 soname_spec
='${libname}${release}${shared_ext}$major'
15741 dynamic_linker
='NetBSD ld.elf_so'
15743 shlibpath_var
=LD_LIBRARY_PATH
15744 shlibpath_overrides_runpath
=yes
15745 hardcode_into_libs
=yes
15750 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15751 shlibpath_var
=LD_LIBRARY_PATH
15752 shlibpath_overrides_runpath
=yes
15759 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15760 soname_spec
='${libname}${release}${shared_ext}$major'
15761 shlibpath_var
=LD_LIBRARY_PATH
15762 shlibpath_overrides_runpath
=yes
15767 sys_lib_dlsearch_path_spec
="/usr/lib"
15769 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15771 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
15772 *) need_version
=no
;;
15774 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15775 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15776 shlibpath_var
=LD_LIBRARY_PATH
15777 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15779 openbsd2.
[89] | openbsd2.
[89].
*)
15780 shlibpath_overrides_runpath
=no
15783 shlibpath_overrides_runpath
=yes
15787 shlibpath_overrides_runpath
=yes
15792 libname_spec
='$name'
15795 library_names_spec
='$libname${shared_ext} $libname.a'
15796 dynamic_linker
='OS/2 ld.exe'
15797 shlibpath_var
=LIBPATH
15800 osf3
* | osf4
* | osf5
*)
15804 soname_spec
='${libname}${release}${shared_ext}$major'
15805 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15806 shlibpath_var
=LD_LIBRARY_PATH
15807 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15808 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
15815 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15816 soname_spec
='${libname}${release}${shared_ext}$major'
15817 shlibpath_var
=LD_LIBRARY_PATH
15818 shlibpath_overrides_runpath
=yes
15819 hardcode_into_libs
=yes
15820 # ldd complains unless libraries are executable
15821 postinstall_cmds
='chmod +x $lib'
15826 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15827 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15828 shlibpath_var
=LD_LIBRARY_PATH
15829 shlibpath_overrides_runpath
=yes
15830 if test "$with_gnu_ld" = yes; then
15838 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15839 soname_spec
='${libname}${release}${shared_ext}$major'
15840 shlibpath_var
=LD_LIBRARY_PATH
15841 case $host_vendor in
15843 shlibpath_overrides_runpath
=no
15845 export_dynamic_flag_spec
='${wl}-Blargedynsym'
15846 runpath_var
=LD_RUN_PATH
15854 shlibpath_overrides_runpath
=no
15855 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
15861 if test -d /usr
/nec
;then
15863 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15864 soname_spec
='$libname${shared_ext}.$major'
15865 shlibpath_var
=LD_LIBRARY_PATH
15869 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
15870 version_type
=freebsd-elf
15873 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15874 soname_spec
='${libname}${release}${shared_ext}$major'
15875 shlibpath_var
=LD_LIBRARY_PATH
15876 hardcode_into_libs
=yes
15877 if test "$with_gnu_ld" = yes; then
15878 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15879 shlibpath_overrides_runpath
=no
15881 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
15882 shlibpath_overrides_runpath
=yes
15885 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
15889 sys_lib_dlsearch_path_spec
='/usr/lib'
15894 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15895 soname_spec
='${libname}${release}${shared_ext}$major'
15896 shlibpath_var
=LD_LIBRARY_PATH
15903 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15904 echo "${ECHO_T}$dynamic_linker" >&6; }
15905 test "$dynamic_linker" = no
&& can_build_shared
=no
15907 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
15908 if test "$GCC" = yes; then
15909 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15912 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15913 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15914 hardcode_action_F77
=
15915 if test -n "$hardcode_libdir_flag_spec_F77" || \
15916 test -n "$runpath_var_F77" || \
15917 test "X$hardcode_automatic_F77" = "Xyes" ; then
15919 # We can hardcode non-existant directories.
15920 if test "$hardcode_direct_F77" != no
&&
15921 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15922 # have to relink, otherwise we might link with an installed library
15923 # when we should be linking with a yet-to-be-installed one
15924 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15925 test "$hardcode_minus_L_F77" != no
; then
15926 # Linking always hardcodes the temporary library directory.
15927 hardcode_action_F77
=relink
15929 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15930 hardcode_action_F77
=immediate
15933 # We cannot hardcode anything, or else we can only hardcode existing
15935 hardcode_action_F77
=unsupported
15937 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15938 echo "${ECHO_T}$hardcode_action_F77" >&6; }
15940 if test "$hardcode_action_F77" = relink
; then
15941 # Fast installation is not supported
15942 enable_fast_install
=no
15943 elif test "$shlibpath_overrides_runpath" = yes ||
15944 test "$enable_shared" = no
; then
15945 # Fast installation is not necessary
15946 enable_fast_install
=needless
15950 # The else clause should only fire when bootstrapping the
15951 # libtool distribution, otherwise you forgot to ship ltmain.sh
15952 # with your package, and you will get complaints that there are
15953 # no rules to generate ltmain.sh.
15954 if test -f "$ltmain"; then
15955 # See if we are running on zsh, and set the options which allow our commands through
15956 # without removal of \ escapes.
15957 if test -n "${ZSH_VERSION+set}" ; then
15958 setopt NO_GLOB_SUBST
15960 # Now quote all the things that may contain metacharacters while being
15961 # careful not to overquote the AC_SUBSTed values. We take copies of the
15962 # variables and quote the copies for generation of the libtool script.
15963 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15965 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15966 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15967 deplibs_check_method reload_flag reload_cmds need_locks \
15968 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15969 lt_cv_sys_global_symbol_to_c_name_address \
15970 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15971 old_postinstall_cmds old_postuninstall_cmds \
15975 lt_prog_compiler_wl_F77 \
15976 lt_prog_compiler_pic_F77 \
15977 lt_prog_compiler_static_F77 \
15978 lt_prog_compiler_no_builtin_flag_F77 \
15979 export_dynamic_flag_spec_F77 \
15980 thread_safe_flag_spec_F77 \
15981 whole_archive_flag_spec_F77 \
15982 enable_shared_with_static_runtimes_F77 \
15983 old_archive_cmds_F77 \
15984 old_archive_from_new_cmds_F77 \
15985 predep_objects_F77 \
15986 postdep_objects_F77 \
15989 compiler_lib_search_path_F77 \
15991 archive_expsym_cmds_F77 \
15992 postinstall_cmds_F77 \
15993 postuninstall_cmds_F77 \
15994 old_archive_from_expsyms_cmds_F77 \
15995 allow_undefined_flag_F77 \
15996 no_undefined_flag_F77 \
15997 export_symbols_cmds_F77 \
15998 hardcode_libdir_flag_spec_F77 \
15999 hardcode_libdir_flag_spec_ld_F77 \
16000 hardcode_libdir_separator_F77 \
16001 hardcode_automatic_F77 \
16003 module_expsym_cmds_F77 \
16004 lt_cv_prog_compiler_c_o_F77 \
16005 exclude_expsyms_F77 \
16006 include_expsyms_F77
; do
16009 old_archive_cmds_F77 | \
16010 old_archive_from_new_cmds_F77 | \
16011 archive_cmds_F77 | \
16012 archive_expsym_cmds_F77 | \
16013 module_cmds_F77 | \
16014 module_expsym_cmds_F77 | \
16015 old_archive_from_expsyms_cmds_F77 | \
16016 export_symbols_cmds_F77 | \
16017 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16018 postinstall_cmds | postuninstall_cmds | \
16019 old_postinstall_cmds | old_postuninstall_cmds | \
16020 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
16021 # Double-quote double-evaled strings.
16022 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16025 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16031 *'\$0 --fallback-echo"')
16032 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16038 cat <<__EOF__ >> "$cfgfile"
16039 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16041 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16043 # Shell to use when invoking shell scripts.
16046 # Whether or not to build shared libraries.
16047 build_libtool_libs=$enable_shared
16049 # Whether or not to build static libraries.
16050 build_old_libs=$enable_static
16052 # Whether or not to add -lc for building shared libraries.
16053 build_libtool_need_lc=$archive_cmds_need_lc_F77
16055 # Whether or not to disallow shared libs when runtime libs are static
16056 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16058 # Whether or not to optimize for fast installation.
16059 fast_install=$enable_fast_install
16062 host_alias=$host_alias
16066 # The build system.
16067 build_alias=$build_alias
16071 # An echo program that does not interpret backslashes.
16076 AR_FLAGS=$lt_AR_FLAGS
16081 # LTCC compiler flags.
16082 LTCFLAGS=$lt_LTCFLAGS
16084 # A language-specific compiler.
16085 CC=$lt_compiler_F77
16087 # Is the compiler the GNU C compiler?
16093 # The linker used to build libraries.
16096 # Whether we need hard or soft links.
16099 # A BSD-compatible nm program.
16102 # A symbol stripping program
16105 # Used to examine libraries when file_magic_cmd begins "file"
16106 MAGIC_CMD=$MAGIC_CMD
16108 # Used on cygwin: DLL creation program.
16111 # Used on cygwin: object dumper.
16114 # Used on cygwin: assembler.
16117 # The name of the directory that contains temporary libtool files.
16120 # How to create reloadable object files.
16121 reload_flag=$lt_reload_flag
16122 reload_cmds=$lt_reload_cmds
16124 # How to pass a linker flag through the compiler.
16125 wl=$lt_lt_prog_compiler_wl_F77
16127 # Object file suffix (normally "o").
16128 objext="$ac_objext"
16130 # Old archive suffix (normally "a").
16133 # Shared library suffix (normally ".so").
16134 shrext_cmds='$shrext_cmds'
16136 # Executable file suffix (normally "").
16139 # Additional compiler flags for building library objects.
16140 pic_flag=$lt_lt_prog_compiler_pic_F77
16143 # What is the maximum length of a command?
16144 max_cmd_len=$lt_cv_sys_max_cmd_len
16146 # Does compiler simultaneously support -c and -o options?
16147 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16149 # Must we lock files when doing compilation?
16150 need_locks=$lt_need_locks
16152 # Do we need the lib prefix for modules?
16153 need_lib_prefix=$need_lib_prefix
16155 # Do we need a version for libraries?
16156 need_version=$need_version
16158 # Whether dlopen is supported.
16159 dlopen_support=$enable_dlopen
16161 # Whether dlopen of programs is supported.
16162 dlopen_self=$enable_dlopen_self
16164 # Whether dlopen of statically linked programs is supported.
16165 dlopen_self_static=$enable_dlopen_self_static
16167 # Compiler flag to prevent dynamic linking.
16168 link_static_flag=$lt_lt_prog_compiler_static_F77
16170 # Compiler flag to turn off builtin functions.
16171 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16173 # Compiler flag to allow reflexive dlopens.
16174 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16176 # Compiler flag to generate shared objects directly from archives.
16177 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16179 # Compiler flag to generate thread-safe objects.
16180 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16182 # Library versioning type.
16183 version_type=$version_type
16185 # Format of library name prefix.
16186 libname_spec=$lt_libname_spec
16188 # List of archive names. First name is the real one, the rest are links.
16189 # The last name is the one that the linker finds with -lNAME.
16190 library_names_spec=$lt_library_names_spec
16192 # The coded name of the library, if different from the real name.
16193 soname_spec=$lt_soname_spec
16195 # Commands used to build and install an old-style archive.
16197 old_archive_cmds=$lt_old_archive_cmds_F77
16198 old_postinstall_cmds=$lt_old_postinstall_cmds
16199 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16201 # Create an old-style archive from a shared archive.
16202 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16204 # Create a temporary old-style archive to link instead of a shared archive.
16205 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16207 # Commands used to build and install a shared archive.
16208 archive_cmds=$lt_archive_cmds_F77
16209 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16210 postinstall_cmds=$lt_postinstall_cmds
16211 postuninstall_cmds=$lt_postuninstall_cmds
16213 # Commands used to build a loadable module (assumed same as above if empty)
16214 module_cmds=$lt_module_cmds_F77
16215 module_expsym_cmds=$lt_module_expsym_cmds_F77
16217 # Commands to strip libraries.
16218 old_striplib=$lt_old_striplib
16219 striplib=$lt_striplib
16221 # Dependencies to place before the objects being linked to create a
16223 predep_objects=$lt_predep_objects_F77
16225 # Dependencies to place after the objects being linked to create a
16227 postdep_objects=$lt_postdep_objects_F77
16229 # Dependencies to place before the objects being linked to create a
16231 predeps=$lt_predeps_F77
16233 # Dependencies to place after the objects being linked to create a
16235 postdeps=$lt_postdeps_F77
16237 # The library search path used internally by the compiler when linking
16238 # a shared library.
16239 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16241 # Method to check whether dependent libraries are shared objects.
16242 deplibs_check_method=$lt_deplibs_check_method
16244 # Command to use when deplibs_check_method == file_magic.
16245 file_magic_cmd=$lt_file_magic_cmd
16247 # Flag that allows shared libraries with undefined symbols to be built.
16248 allow_undefined_flag=$lt_allow_undefined_flag_F77
16250 # Flag that forces no undefined symbols.
16251 no_undefined_flag=$lt_no_undefined_flag_F77
16253 # Commands used to finish a libtool library installation in a directory.
16254 finish_cmds=$lt_finish_cmds
16256 # Same as above, but a single script fragment to be evaled but not shown.
16257 finish_eval=$lt_finish_eval
16259 # Take the output of nm and produce a listing of raw symbols and C names.
16260 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16262 # Transform the output of nm in a proper C declaration
16263 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16265 # Transform the output of nm in a C name address pair
16266 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16268 # This is the shared library runtime path variable.
16269 runpath_var=$runpath_var
16271 # This is the shared library path variable.
16272 shlibpath_var=$shlibpath_var
16274 # Is shlibpath searched before the hard-coded library search path?
16275 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16277 # How to hardcode a shared library path into an executable.
16278 hardcode_action=$hardcode_action_F77
16280 # Whether we should hardcode library paths into libraries.
16281 hardcode_into_libs=$hardcode_into_libs
16283 # Flag to hardcode \$libdir into a binary during linking.
16284 # This must work even if \$libdir does not exist.
16285 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16287 # If ld is used when linking, flag to hardcode \$libdir into
16288 # a binary during linking. This must work even if \$libdir does
16290 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16292 # Whether we need a single -rpath flag with a separated argument.
16293 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16295 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16296 # resulting binary.
16297 hardcode_direct=$hardcode_direct_F77
16299 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16300 # resulting binary.
16301 hardcode_minus_L=$hardcode_minus_L_F77
16303 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16304 # the resulting binary.
16305 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16307 # Set to yes if building a shared library automatically hardcodes DIR into the library
16308 # and all subsequent libraries and executables linked against it.
16309 hardcode_automatic=$hardcode_automatic_F77
16311 # Variables whose values should be saved in libtool wrapper scripts and
16312 # restored at relink time.
16313 variables_saved_for_relink="$variables_saved_for_relink"
16315 # Whether libtool must link a program against all its dependency libraries.
16316 link_all_deplibs=$link_all_deplibs_F77
16318 # Compile-time system search path for libraries
16319 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16321 # Run-time system search path for libraries
16322 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16324 # Fix the shell variable \$srcfile for the compiler.
16325 fix_srcfile_path="$fix_srcfile_path_F77"
16327 # Set to yes if exported symbols are required.
16328 always_export_symbols=$always_export_symbols_F77
16330 # The commands to list exported symbols.
16331 export_symbols_cmds=$lt_export_symbols_cmds_F77
16333 # The commands to extract the exported symbol list from a shared archive.
16334 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16336 # Symbols that should not be listed in the preloaded symbols.
16337 exclude_expsyms=$lt_exclude_expsyms_F77
16339 # Symbols that must always be exported.
16340 include_expsyms=$lt_include_expsyms_F77
16342 # ### END LIBTOOL TAG CONFIG: $tagname
16348 # If there is no Makefile yet, we rely on a make rule to execute
16349 # `config.status --recheck' to rerun these tests and create the
16350 # libtool script then.
16351 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16352 if test -f "$ltmain_in"; then
16353 test -f Makefile
&& make "$ltmain"
16359 ac_cpp
='$CPP $CPPFLAGS'
16360 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16361 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16362 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
16372 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16375 # Source file extension for Java test sources.
16378 # Object file extension for compiled Java test sources.
16382 # Code to be used in simple compile tests
16383 lt_simple_compile_test_code
="class foo {}\n"
16385 # Code to be used in simple link tests
16386 lt_simple_link_test_code
='public class conftest { public static void main(String[] argv) {}; }\n'
16388 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16390 # If no C compiler was specified, use CC.
16393 # If no C compiler flags were specified, use CFLAGS.
16394 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
16396 # Allow CC to be a program name with arguments.
16400 # save warnings/boilerplate of simple test code
16401 ac_outfile
=conftest.
$ac_objext
16402 printf "$lt_simple_compile_test_code" >conftest.
$ac_ext
16403 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
16404 _lt_compiler_boilerplate
=`cat conftest.err`
16407 ac_outfile
=conftest.
$ac_objext
16408 printf "$lt_simple_link_test_code" >conftest.
$ac_ext
16409 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
16410 _lt_linker_boilerplate
=`cat conftest.err`
16414 # Allow CC to be a program name with arguments.
16419 for cc_temp
in $compiler""; do
16421 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
16422 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
16427 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16430 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16431 archive_cmds_need_lc_GCJ
=no
16433 old_archive_cmds_GCJ
=$old_archive_cmds
16436 lt_prog_compiler_no_builtin_flag_GCJ
=
16438 if test "$GCC" = yes; then
16439 lt_prog_compiler_no_builtin_flag_GCJ
=' -fno-builtin'
16442 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16443 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16444 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16445 echo $ECHO_N "(cached) $ECHO_C" >&6
16447 lt_cv_prog_compiler_rtti_exceptions
=no
16448 ac_outfile
=conftest.
$ac_objext
16449 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
16450 lt_compiler_flag
="-fno-rtti -fno-exceptions"
16451 # Insert the option either (1) after the last *FLAGS variable, or
16452 # (2) before a word containing "conftest.", or (3) at the end.
16453 # Note that $ac_compile itself does not contain backslashes and begins
16454 # with a dollar sign (not a hyphen), so the echo should work correctly.
16455 # The option is referenced via a variable to avoid confusing sed.
16456 lt_compile
=`echo "$ac_compile" | $SED \
16457 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16458 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16459 -e 's:$: $lt_compiler_flag:'`
16460 (eval echo "\"\$as_me:16460: $lt_compile\"" >&5)
16461 (eval "$lt_compile" 2>conftest.err
)
16463 cat conftest.err
>&5
16464 echo "$as_me:16464: \$? = $ac_status" >&5
16465 if (exit $ac_status) && test -s "$ac_outfile"; then
16466 # The compiler can only warn and ignore the option if not recognized
16467 # So say no if there are warnings other than the usual output.
16468 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
16469 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
16470 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
16471 lt_cv_prog_compiler_rtti_exceptions
=yes
16477 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16478 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16480 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
16481 lt_prog_compiler_no_builtin_flag_GCJ
="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16488 lt_prog_compiler_wl_GCJ
=
16489 lt_prog_compiler_pic_GCJ
=
16490 lt_prog_compiler_static_GCJ
=
16492 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16493 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16495 if test "$GCC" = yes; then
16496 lt_prog_compiler_wl_GCJ
='-Wl,'
16497 lt_prog_compiler_static_GCJ
='-static'
16501 # All AIX code is PIC.
16502 if test "$host_cpu" = ia64
; then
16503 # AIX 5 now supports IA64 processor
16504 lt_prog_compiler_static_GCJ
='-Bstatic'
16509 # FIXME: we need at least 68020 code to build shared libraries, but
16510 # adding the `-m68020' flag to GCC prevents building anything better,
16512 lt_prog_compiler_pic_GCJ
='-m68020 -resident32 -malways-restore-a4'
16515 beos
* | cygwin
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
16516 # PIC is the default for these OSes.
16519 mingw
* | pw32
* | os2
*)
16520 # This hack is so that the source file can tell whether it is being
16521 # built for inclusion in a dll (and should export symbols for example).
16522 lt_prog_compiler_pic_GCJ
='-DDLL_EXPORT'
16525 darwin
* | rhapsody
*)
16526 # PIC is the default on this platform
16527 # Common symbols not allowed in MH_DYLIB files
16528 lt_prog_compiler_pic_GCJ
='-fno-common'
16532 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16533 # Instead, we relocate shared libraries at runtime.
16537 # Just because we use GCC doesn't mean we suddenly get shared libraries
16538 # on systems that don't support them.
16539 lt_prog_compiler_can_build_shared_GCJ
=no
16544 if test -d /usr
/nec
; then
16545 lt_prog_compiler_pic_GCJ
=-Kconform_pic
16550 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16551 # not for PA HP-UX.
16557 lt_prog_compiler_pic_GCJ
='-fPIC'
16563 lt_prog_compiler_pic_GCJ
='-fPIC'
16567 # PORTME Check for flag to pass linker flags through the system compiler.
16570 lt_prog_compiler_wl_GCJ
='-Wl,'
16571 if test "$host_cpu" = ia64
; then
16572 # AIX 5 now supports IA64 processor
16573 lt_prog_compiler_static_GCJ
='-Bstatic'
16575 lt_prog_compiler_static_GCJ
='-bnso -bI:/lib/syscalls.exp'
16579 # PIC is the default on this platform
16580 # Common symbols not allowed in MH_DYLIB files
16581 case $cc_basename in
16583 lt_prog_compiler_pic_GCJ
='-qnocommon'
16584 lt_prog_compiler_wl_GCJ
='-Wl,'
16589 mingw
* | pw32
* | os2
*)
16590 # This hack is so that the source file can tell whether it is being
16591 # built for inclusion in a dll (and should export symbols for example).
16592 lt_prog_compiler_pic_GCJ
='-DDLL_EXPORT'
16595 hpux9
* | hpux10
* | hpux11
*)
16596 lt_prog_compiler_wl_GCJ
='-Wl,'
16597 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16598 # not for PA HP-UX.
16604 lt_prog_compiler_pic_GCJ
='+Z'
16607 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16608 lt_prog_compiler_static_GCJ
='${wl}-a ${wl}archive'
16611 irix5
* | irix6
* | nonstopux
*)
16612 lt_prog_compiler_wl_GCJ
='-Wl,'
16613 # PIC (with -KPIC) is the default.
16614 lt_prog_compiler_static_GCJ
='-non_shared'
16618 lt_prog_compiler_pic_GCJ
='-KPIC'
16619 lt_prog_compiler_static_GCJ
='-Bstatic'
16622 linux
* | k
*bsd
*-gnu)
16623 case $cc_basename in
16625 lt_prog_compiler_wl_GCJ
='-Wl,'
16626 lt_prog_compiler_pic_GCJ
='-KPIC'
16627 lt_prog_compiler_static_GCJ
='-static'
16629 pgcc
* | pgf77
* | pgf90
* | pgf95
*)
16630 # Portland Group compilers (*not* the Pentium gcc compiler,
16631 # which looks to be a dead project)
16632 lt_prog_compiler_wl_GCJ
='-Wl,'
16633 lt_prog_compiler_pic_GCJ
='-fpic'
16634 lt_prog_compiler_static_GCJ
='-Bstatic'
16637 lt_prog_compiler_wl_GCJ
='-Wl,'
16638 # All Alpha code is PIC.
16639 lt_prog_compiler_static_GCJ
='-non_shared'
16644 osf3
* | osf4
* | osf5
*)
16645 lt_prog_compiler_wl_GCJ
='-Wl,'
16646 # All OSF/1 code is PIC.
16647 lt_prog_compiler_static_GCJ
='-non_shared'
16651 lt_prog_compiler_pic_GCJ
='-KPIC'
16652 lt_prog_compiler_static_GCJ
='-Bstatic'
16653 case $cc_basename in
16654 f77
* | f90
* | f95
*)
16655 lt_prog_compiler_wl_GCJ
='-Qoption ld ';;
16657 lt_prog_compiler_wl_GCJ
='-Wl,';;
16662 lt_prog_compiler_wl_GCJ
='-Qoption ld '
16663 lt_prog_compiler_pic_GCJ
='-PIC'
16664 lt_prog_compiler_static_GCJ
='-Bstatic'
16667 sysv4 | sysv4.2uw2
* | sysv4.3
*)
16668 lt_prog_compiler_wl_GCJ
='-Wl,'
16669 lt_prog_compiler_pic_GCJ
='-KPIC'
16670 lt_prog_compiler_static_GCJ
='-Bstatic'
16674 if test -d /usr
/nec
;then
16675 lt_prog_compiler_pic_GCJ
='-Kconform_pic'
16676 lt_prog_compiler_static_GCJ
='-Bstatic'
16680 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
16681 lt_prog_compiler_wl_GCJ
='-Wl,'
16682 lt_prog_compiler_pic_GCJ
='-KPIC'
16683 lt_prog_compiler_static_GCJ
='-Bstatic'
16687 lt_prog_compiler_wl_GCJ
='-Wl,'
16688 lt_prog_compiler_can_build_shared_GCJ
=no
16692 lt_prog_compiler_pic_GCJ
='-pic'
16693 lt_prog_compiler_static_GCJ
='-Bstatic'
16697 lt_prog_compiler_can_build_shared_GCJ
=no
16702 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16703 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16706 # Check to make sure the PIC flag actually works.
16708 if test -n "$lt_prog_compiler_pic_GCJ"; then
16710 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16711 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16712 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16713 echo $ECHO_N "(cached) $ECHO_C" >&6
16715 lt_prog_compiler_pic_works_GCJ
=no
16716 ac_outfile
=conftest.
$ac_objext
16717 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
16718 lt_compiler_flag
="$lt_prog_compiler_pic_GCJ"
16719 # Insert the option either (1) after the last *FLAGS variable, or
16720 # (2) before a word containing "conftest.", or (3) at the end.
16721 # Note that $ac_compile itself does not contain backslashes and begins
16722 # with a dollar sign (not a hyphen), so the echo should work correctly.
16723 # The option is referenced via a variable to avoid confusing sed.
16724 lt_compile
=`echo "$ac_compile" | $SED \
16725 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16726 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16727 -e 's:$: $lt_compiler_flag:'`
16728 (eval echo "\"\$as_me:16728: $lt_compile\"" >&5)
16729 (eval "$lt_compile" 2>conftest.err
)
16731 cat conftest.err
>&5
16732 echo "$as_me:16732: \$? = $ac_status" >&5
16733 if (exit $ac_status) && test -s "$ac_outfile"; then
16734 # The compiler can only warn and ignore the option if not recognized
16735 # So say no if there are warnings other than the usual output.
16736 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
16737 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
16738 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
16739 lt_prog_compiler_pic_works_GCJ
=yes
16745 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16746 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16748 if test x
"$lt_prog_compiler_pic_works_GCJ" = xyes
; then
16749 case $lt_prog_compiler_pic_GCJ in
16751 *) lt_prog_compiler_pic_GCJ
=" $lt_prog_compiler_pic_GCJ" ;;
16754 lt_prog_compiler_pic_GCJ
=
16755 lt_prog_compiler_can_build_shared_GCJ
=no
16760 # For platforms which do not support PIC, -DPIC is meaningless:
16762 lt_prog_compiler_pic_GCJ
=
16765 lt_prog_compiler_pic_GCJ
="$lt_prog_compiler_pic_GCJ"
16770 # Check to make sure the static flag actually works.
16772 wl
=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_GCJ\"
16773 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16774 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16775 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16776 echo $ECHO_N "(cached) $ECHO_C" >&6
16778 lt_prog_compiler_static_works_GCJ
=no
16779 save_LDFLAGS
="$LDFLAGS"
16780 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
16781 printf "$lt_simple_link_test_code" > conftest.
$ac_ext
16782 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
16783 # The linker can only warn and ignore the option if not recognized
16784 # So say no if there are warnings
16785 if test -s conftest.err
; then
16786 # Append any errors to the config.log.
16787 cat conftest.err
1>&5
16788 $echo "X$_lt_linker_boilerplate" |
$Xsed -e '/^$/d' > conftest.exp
16789 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
16790 if diff conftest.exp conftest.er2
>/dev
/null
; then
16791 lt_prog_compiler_static_works_GCJ
=yes
16794 lt_prog_compiler_static_works_GCJ
=yes
16798 LDFLAGS
="$save_LDFLAGS"
16801 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16802 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16804 if test x
"$lt_prog_compiler_static_works_GCJ" = xyes
; then
16807 lt_prog_compiler_static_GCJ
=
16811 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16812 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16813 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16814 echo $ECHO_N "(cached) $ECHO_C" >&6
16816 lt_cv_prog_compiler_c_o_GCJ
=no
16817 $rm -r conftest
2>/dev
/null
16821 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
16823 lt_compiler_flag
="-o out/conftest2.$ac_objext"
16824 # Insert the option either (1) after the last *FLAGS variable, or
16825 # (2) before a word containing "conftest.", or (3) at the end.
16826 # Note that $ac_compile itself does not contain backslashes and begins
16827 # with a dollar sign (not a hyphen), so the echo should work correctly.
16828 lt_compile
=`echo "$ac_compile" | $SED \
16829 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16830 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16831 -e 's:$: $lt_compiler_flag:'`
16832 (eval echo "\"\$as_me:16832: $lt_compile\"" >&5)
16833 (eval "$lt_compile" 2>out
/conftest.err
)
16835 cat out
/conftest.err
>&5
16836 echo "$as_me:16836: \$? = $ac_status" >&5
16837 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
16839 # The compiler can only warn and ignore the option if not recognized
16840 # So say no if there are warnings
16841 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
16842 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
16843 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
16844 lt_cv_prog_compiler_c_o_GCJ
=yes
16849 # SGI C++ compiler will create directory out/ii_files/ for
16850 # template instantiation
16851 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
16852 $rm out
/* && rmdir out
16858 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16859 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16862 hard_links
="nottested"
16863 if test "$lt_cv_prog_compiler_c_o_GCJ" = no
&& test "$need_locks" != no
; then
16864 # do not overwrite the value of need_locks provided by the user
16865 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16866 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16869 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
16871 ln conftest.a conftest.b
2>&5 || hard_links
=no
16872 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
16873 { echo "$as_me:$LINENO: result: $hard_links" >&5
16874 echo "${ECHO_T}$hard_links" >&6; }
16875 if test "$hard_links" = no
; then
16876 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16877 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16884 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16885 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16888 allow_undefined_flag_GCJ
=
16889 enable_shared_with_static_runtimes_GCJ
=no
16891 archive_expsym_cmds_GCJ
=
16892 old_archive_From_new_cmds_GCJ
=
16893 old_archive_from_expsyms_cmds_GCJ
=
16894 export_dynamic_flag_spec_GCJ
=
16895 whole_archive_flag_spec_GCJ
=
16896 thread_safe_flag_spec_GCJ
=
16897 hardcode_libdir_flag_spec_GCJ
=
16898 hardcode_libdir_flag_spec_ld_GCJ
=
16899 hardcode_libdir_separator_GCJ
=
16900 hardcode_direct_GCJ
=no
16901 hardcode_minus_L_GCJ
=no
16902 hardcode_shlibpath_var_GCJ
=unsupported
16903 link_all_deplibs_GCJ
=unknown
16904 hardcode_automatic_GCJ
=no
16906 module_expsym_cmds_GCJ
=
16907 always_export_symbols_GCJ
=no
16908 export_symbols_cmds_GCJ
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16909 # include_expsyms should be a list of space-separated symbols to be *always*
16910 # included in the symbol list
16911 include_expsyms_GCJ
=
16912 # exclude_expsyms can be an extended regexp of symbols to exclude
16913 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16914 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16915 # as well as any symbol that contains `d'.
16916 exclude_expsyms_GCJ
="_GLOBAL_OFFSET_TABLE_"
16917 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16918 # platforms (ab)use it in PIC code, but their linkers get confused if
16919 # the symbol is explicitly referenced. Since portable code cannot
16920 # rely on this symbol name, it's probably fine to never include it in
16921 # preloaded symbol tables.
16922 extract_expsyms_cmds
=
16923 # Just being paranoid about ensuring that cc_basename is set.
16924 for cc_temp
in $compiler""; do
16926 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
16927 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
16932 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16935 cygwin
* | mingw
* | pw32
*)
16936 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16937 # When not using gcc, we currently assume that we are using
16938 # Microsoft Visual C++.
16939 if test "$GCC" != yes; then
16944 # we just hope/assume this is gcc and not c89 (= MSVC++)
16953 if test "$with_gnu_ld" = yes; then
16954 # If archive_cmds runs LD, not CC, wlarc should be empty
16957 # Set some defaults for GNU ld with shared library support. These
16958 # are reset later if shared libraries are not supported. Putting them
16959 # here allows them to be overridden if necessary.
16960 runpath_var
=LD_RUN_PATH
16961 hardcode_libdir_flag_spec_GCJ
='${wl}--rpath ${wl}$libdir'
16962 export_dynamic_flag_spec_GCJ
='${wl}--export-dynamic'
16963 # ancient GNU ld didn't support --whole-archive et. al.
16964 if $LD --help 2>&1 |
grep 'no-whole-archive' > /dev
/null
; then
16965 whole_archive_flag_spec_GCJ
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16967 whole_archive_flag_spec_GCJ
=
16969 supports_anon_versioning
=no
16970 case `$LD -v 2>/dev/null` in
16971 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
16972 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
16973 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
16974 *\
2.11.
*) ;; # other 2.11 versions
16975 *) supports_anon_versioning
=yes ;;
16978 # See if GNU ld supports shared libraries.
16980 aix3
* | aix4
* | aix5
*)
16981 # On AIX/PPC, the GNU linker is very broken
16982 if test "$host_cpu" != ia64
; then
16986 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16987 *** to be unable to reliably create shared libraries on AIX.
16988 *** Therefore, libtool is disabling shared libraries support. If you
16989 *** really care for shared libraries, you may want to modify your PATH
16990 *** so that a non-GNU linker is found, and then restart.
16997 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)'
16998 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
16999 hardcode_minus_L_GCJ
=yes
17001 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17002 # that the semantics of dynamic libraries on AmigaOS, at least up
17003 # to version 4, is to share data among multiple programs linked
17004 # with the same dynamic library. Since this doesn't match the
17005 # behavior of shared libraries on other platforms, we can't use
17011 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
17012 allow_undefined_flag_GCJ
=unsupported
17013 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17014 # support --undefined. This deserves some investigation. FIXME
17015 archive_cmds_GCJ
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17021 cygwin
* | mingw
* | pw32
*)
17022 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17023 # as there is no search path for DLLs.
17024 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
17025 allow_undefined_flag_GCJ
=unsupported
17026 always_export_symbols_GCJ
=no
17027 enable_shared_with_static_runtimes_GCJ
=yes
17028 export_symbols_cmds_GCJ
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17030 if $LD --help 2>&1 |
grep 'auto-import' > /dev
/null
; then
17031 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17032 # If the export-symbols file already is a .def file (1st line
17033 # is EXPORTS), use it as is; otherwise, prepend...
17034 archive_expsym_cmds_GCJ
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17035 cp $export_symbols $output_objdir/$soname.def;
17037 echo EXPORTS > $output_objdir/$soname.def;
17038 cat $export_symbols >> $output_objdir/$soname.def;
17040 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17047 hardcode_direct_GCJ
=no
17048 hardcode_shlibpath_var_GCJ
=no
17049 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath,$libdir'
17050 export_dynamic_flag_spec_GCJ
='${wl}-E'
17051 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17052 # Instead, shared libraries are loaded at an image base (0x10000000 by
17053 # default) and relocated if they conflict, which is a slow very memory
17054 # consuming and fragmenting process. To avoid this, we pick a random,
17055 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17056 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17057 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'
17058 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'
17061 linux
* | k
*bsd
*-gnu)
17062 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
17064 case $cc_basename,$host_cpu in
17065 pgcc
*) # Portland Group C compiler
17066 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'
17067 tmp_addflag
=' $pic_flag'
17069 pgf77
* | pgf90
* | pgf95
*) # Portland Group f77 and f90 compilers
17070 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'
17071 tmp_addflag
=' $pic_flag -Mnomain' ;;
17072 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
17073 tmp_addflag
=' -i_dynamic' ;;
17074 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
17075 tmp_addflag
=' -i_dynamic -nofor_main' ;;
17076 ifc
* | ifort
*) # Intel Fortran compiler
17077 tmp_addflag
=' -nofor_main' ;;
17079 archive_cmds_GCJ
='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17081 if test $supports_anon_versioning = yes; then
17082 archive_expsym_cmds_GCJ
='$echo "{ global:" > $output_objdir/$libname.ver~
17083 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17084 $echo "local: *; };" >> $output_objdir/$libname.ver~
17085 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17087 link_all_deplibs_GCJ
=no
17093 netbsd
* | netbsdelf
*-gnu)
17094 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
17095 archive_cmds_GCJ
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17098 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17099 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17104 if $LD -v 2>&1 |
grep 'BFD 2\.8' > /dev
/null
; then
17108 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17109 *** create shared libraries on Solaris systems. Therefore, libtool
17110 *** is disabling shared libraries support. We urge you to upgrade GNU
17111 *** binutils to release 2.9.1 or newer. Another option is to modify
17112 *** your PATH or compiler configuration so that the native linker is
17113 *** used, and then restart.
17116 elif $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
17117 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17118 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17124 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
17125 case `$LD -v 2>&1` in
17126 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
17130 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17131 *** reliably create shared libraries on SCO systems. Therefore, libtool
17132 *** is disabling shared libraries support. We urge you to upgrade GNU
17133 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17134 *** your PATH or compiler configuration so that the native linker is
17135 *** used, and then restart.
17140 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
17141 hardcode_libdir_flag_spec_GCJ
='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17142 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17143 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17152 archive_cmds_GCJ
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17154 hardcode_direct_GCJ
=yes
17155 hardcode_shlibpath_var_GCJ
=no
17159 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
17160 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17161 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17168 if test "$ld_shlibs_GCJ" = no
; then
17170 hardcode_libdir_flag_spec_GCJ
=
17171 export_dynamic_flag_spec_GCJ
=
17172 whole_archive_flag_spec_GCJ
=
17175 # PORTME fill in a description of your system's linker (not GNU ld)
17178 allow_undefined_flag_GCJ
=unsupported
17179 always_export_symbols_GCJ
=yes
17180 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'
17181 # Note: this linker hardcodes the directories in LIBPATH if there
17182 # are no directories specified by -L.
17183 hardcode_minus_L_GCJ
=yes
17184 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17185 # Neither direct hardcoding nor static linking is supported with a
17187 hardcode_direct_GCJ
=unsupported
17192 if test "$host_cpu" = ia64
; then
17193 # On IA64, the linker does run time linking by default, so we don't
17194 # have to do anything special.
17195 aix_use_runtimelinking
=no
17196 exp_sym_flag
='-Bexport'
17199 # If we're using GNU nm, then we don't want the "-C" option.
17200 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17201 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
17202 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'
17204 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'
17206 aix_use_runtimelinking
=no
17208 # Test if we are trying to use run time linking or normal
17209 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17210 # need to do runtime linking.
17211 case $host_os in aix4.
[23]|aix4.
[23].
*|aix5
*)
17212 for ld_flag
in $LDFLAGS; do
17213 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
17214 aix_use_runtimelinking
=yes
17221 exp_sym_flag
='-bexport'
17222 no_entry_flag
='-bnoentry'
17225 # When large executables or shared objects are built, AIX ld can
17226 # have problems creating the table of contents. If linking a library
17227 # or program results in "error TOC overflow" add -mminimal-toc to
17228 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17229 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17231 archive_cmds_GCJ
=''
17232 hardcode_direct_GCJ
=yes
17233 hardcode_libdir_separator_GCJ
=':'
17234 link_all_deplibs_GCJ
=yes
17236 if test "$GCC" = yes; then
17237 case $host_os in aix4.
[012]|aix4.
[012].
*)
17238 # We only want to do this on AIX 4.2 and lower, the check
17239 # below for broken collect2 doesn't work under 4.3+
17240 collect2name
=`${CC} -print-prog-name=collect2`
17241 if test -f "$collect2name" && \
17242 strings "$collect2name" |
grep resolve_lib_name
>/dev
/null
17244 # We have reworked collect2
17245 hardcode_direct_GCJ
=yes
17247 # We have old collect2
17248 hardcode_direct_GCJ
=unsupported
17249 # It fails to find uninstalled libraries when the uninstalled
17250 # path is not listed in the libpath. Setting hardcode_minus_L
17251 # to unsupported forces relinking
17252 hardcode_minus_L_GCJ
=yes
17253 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
17254 hardcode_libdir_separator_GCJ
=
17258 shared_flag
='-shared'
17259 if test "$aix_use_runtimelinking" = yes; then
17260 shared_flag
="$shared_flag "'${wl}-G'
17264 if test "$host_cpu" = ia64
; then
17265 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17266 # chokes on -Wl,-G. The following line is correct:
17269 if test "$aix_use_runtimelinking" = yes; then
17270 shared_flag
='${wl}-G'
17272 shared_flag
='${wl}-bM:SRE'
17277 # It seems that -bexpall does not export symbols beginning with
17278 # underscore (_), so it is better to generate a list of symbols to export.
17279 always_export_symbols_GCJ
=yes
17280 if test "$aix_use_runtimelinking" = yes; then
17281 # Warning - without using the other runtime loading flags (-brtl),
17282 # -berok will link without error, but may produce a broken library.
17283 allow_undefined_flag_GCJ
='-berok'
17284 # Determine the default libpath from the value encoded in an empty executable.
17285 cat >conftest.
$ac_ext <<_ACEOF
17288 cat confdefs.h
>>conftest.
$ac_ext
17289 cat >>conftest.
$ac_ext <<_ACEOF
17290 /* end confdefs.h. */
17300 rm -f conftest.
$ac_objext conftest
$ac_exeext
17301 if { (ac_try
="$ac_link"
17302 case "(($ac_try" in
17303 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17304 *) ac_try_echo=$ac_try;;
17306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17307 (eval "$ac_link") 2>conftest.er1
17309 grep -v '^ *+' conftest.er1 >conftest.err
17311 cat conftest.err >&5
17312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17313 (exit $ac_status); } &&
17314 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17315 { (case "(($ac_try" in
17316 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17317 *) ac_try_echo
=$ac_try;;
17319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17320 (eval "$ac_try") 2>&5
17322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17323 (exit $ac_status); }; } &&
17324 { ac_try
='test -s conftest$ac_exeext'
17325 { (case "(($ac_try" in
17326 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17327 *) ac_try_echo=$ac_try;;
17329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17330 (eval "$ac_try") 2>&5
17332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17333 (exit $ac_status); }; }; then
17335 aix_libpath=`dump
-H conftest
$ac_exeext 2>/dev
/null |
$SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17337 # Check for a 64-bit object if we didn't find anything.
17338 if test -z "$aix_libpath"; then aix_libpath=`dump
-HX64 conftest
$ac_exeext 2>/dev
/null |
$SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17341 echo "$as_me: failed program was:" >&5
17342 sed 's/^/| /' conftest.$ac_ext >&5
17347 rm -f core conftest.err conftest.$ac_objext \
17348 conftest$ac_exeext conftest.$ac_ext
17349 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17351 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17352 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"
17354 if test "$host_cpu" = ia64; then
17355 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17356 allow_undefined_flag_GCJ="-z nodefs"
17357 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"
17359 # Determine the default libpath from the value encoded in an empty executable.
17360 cat >conftest.$ac_ext <<_ACEOF
17363 cat confdefs.h >>conftest.$ac_ext
17364 cat >>conftest.$ac_ext <<_ACEOF
17365 /* end confdefs.h. */
17375 rm -f conftest.$ac_objext conftest$ac_exeext
17376 if { (ac_try="$ac_link"
17377 case "(($ac_try" in
17378 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17379 *) ac_try_echo
=$ac_try;;
17381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17382 (eval "$ac_link") 2>conftest.er1
17384 grep -v '^ *+' conftest.er1
>conftest.err
17386 cat conftest.err
>&5
17387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17388 (exit $ac_status); } &&
17389 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17390 { (case "(($ac_try" in
17391 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17392 *) ac_try_echo=$ac_try;;
17394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17395 (eval "$ac_try") 2>&5
17397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17398 (exit $ac_status); }; } &&
17399 { ac_try='test -s conftest$ac_exeext'
17400 { (case "(($ac_try" in
17401 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17402 *) ac_try_echo
=$ac_try;;
17404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17405 (eval "$ac_try") 2>&5
17407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17408 (exit $ac_status); }; }; then
17410 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17412 # Check for a 64-bit object if we didn't find anything.
17413 if test -z "$aix_libpath"; then aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17416 echo "$as_me: failed program was:" >&5
17417 sed 's/^/| /' conftest.
$ac_ext >&5
17422 rm -f core conftest.err conftest.
$ac_objext \
17423 conftest
$ac_exeext conftest.
$ac_ext
17424 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
17426 hardcode_libdir_flag_spec_GCJ
='${wl}-blibpath:$libdir:'"$aix_libpath"
17427 # Warning - without using the other run time loading flags,
17428 # -berok will link without error, but may produce a broken library.
17429 no_undefined_flag_GCJ
=' ${wl}-bernotok'
17430 allow_undefined_flag_GCJ
=' ${wl}-berok'
17431 # Exported symbols can be pulled into shared objects from archives
17432 whole_archive_flag_spec_GCJ
='$convenience'
17433 archive_cmds_need_lc_GCJ
=yes
17434 # This is similar to how AIX traditionally builds its shared libraries.
17435 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'
17441 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)'
17442 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
17443 hardcode_minus_L_GCJ
=yes
17444 # see comment about different semantics on the GNU ld section
17449 export_dynamic_flag_spec_GCJ
=-rdynamic
17452 cygwin
* | mingw
* | pw32
*)
17453 # When not using gcc, we currently assume that we are using
17454 # Microsoft Visual C++.
17455 # hardcode_libdir_flag_spec is actually meaningless, as there is
17456 # no search path for DLLs.
17457 hardcode_libdir_flag_spec_GCJ
=' '
17458 allow_undefined_flag_GCJ
=unsupported
17459 # Tell ltmain to make .lib files, not .a files.
17461 # Tell ltmain to make .dll files, not .so files.
17463 # FIXME: Setting linknames here is a bad hack.
17464 archive_cmds_GCJ
='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17465 # The linker will automatically build a .lib file if we build a DLL.
17466 old_archive_From_new_cmds_GCJ
='true'
17467 # FIXME: Should let the user specify the lib program.
17468 old_archive_cmds_GCJ
='lib /OUT:$oldlib$oldobjs$old_deplibs'
17469 fix_srcfile_path_GCJ
='`cygpath -w "$srcfile"`'
17470 enable_shared_with_static_runtimes_GCJ
=yes
17473 darwin
* | rhapsody
*)
17475 rhapsody
* | darwin1.
[012])
17476 allow_undefined_flag_GCJ
='${wl}-undefined ${wl}suppress'
17479 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17480 allow_undefined_flag_GCJ
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17482 case ${MACOSX_DEPLOYMENT_TARGET} in
17484 allow_undefined_flag_GCJ
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17487 allow_undefined_flag_GCJ
='${wl}-undefined ${wl}dynamic_lookup'
17493 archive_cmds_need_lc_GCJ
=no
17494 hardcode_direct_GCJ
=no
17495 hardcode_automatic_GCJ
=yes
17496 hardcode_shlibpath_var_GCJ
=unsupported
17497 whole_archive_flag_spec_GCJ
=''
17498 link_all_deplibs_GCJ
=yes
17499 if test "$GCC" = yes ; then
17500 output_verbose_link_cmd
='echo'
17501 archive_cmds_GCJ
='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17502 module_cmds_GCJ
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17503 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17504 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}'
17505 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}'
17507 case $cc_basename in
17509 output_verbose_link_cmd
='echo'
17510 archive_cmds_GCJ
='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17511 module_cmds_GCJ
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17512 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17513 archive_expsym_cmds_GCJ
='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17514 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}'
17524 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17525 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
17526 hardcode_shlibpath_var_GCJ
=no
17533 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17534 # support. Future versions do this automatically, but an explicit c++rt0.o
17535 # does not break anything, and helps significantly (at the cost of a little
17538 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17539 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
17540 hardcode_direct_GCJ
=yes
17541 hardcode_shlibpath_var_GCJ
=no
17544 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17546 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17547 hardcode_direct_GCJ
=yes
17548 hardcode_minus_L_GCJ
=yes
17549 hardcode_shlibpath_var_GCJ
=no
17552 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17553 freebsd
* | dragonfly
*)
17554 archive_cmds_GCJ
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17555 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
17556 hardcode_direct_GCJ
=yes
17557 hardcode_shlibpath_var_GCJ
=no
17561 if test "$GCC" = yes; then
17562 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'
17564 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'
17566 hardcode_libdir_flag_spec_GCJ
='${wl}+b ${wl}$libdir'
17567 hardcode_libdir_separator_GCJ
=:
17568 hardcode_direct_GCJ
=yes
17570 # hardcode_minus_L: Not really in the search PATH,
17571 # but as the default location of the library.
17572 hardcode_minus_L_GCJ
=yes
17573 export_dynamic_flag_spec_GCJ
='${wl}-E'
17577 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
17578 archive_cmds_GCJ
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17580 archive_cmds_GCJ
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17582 if test "$with_gnu_ld" = no
; then
17583 hardcode_libdir_flag_spec_GCJ
='${wl}+b ${wl}$libdir'
17584 hardcode_libdir_separator_GCJ
=:
17586 hardcode_direct_GCJ
=yes
17587 export_dynamic_flag_spec_GCJ
='${wl}-E'
17589 # hardcode_minus_L: Not really in the search PATH,
17590 # but as the default location of the library.
17591 hardcode_minus_L_GCJ
=yes
17596 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
17599 archive_cmds_GCJ
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17602 archive_cmds_GCJ
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17605 archive_cmds_GCJ
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17611 archive_cmds_GCJ
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17614 archive_cmds_GCJ
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17617 archive_cmds_GCJ
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17621 if test "$with_gnu_ld" = no
; then
17622 hardcode_libdir_flag_spec_GCJ
='${wl}+b ${wl}$libdir'
17623 hardcode_libdir_separator_GCJ
=:
17627 hardcode_libdir_flag_spec_ld_GCJ
='+b $libdir'
17628 hardcode_direct_GCJ
=no
17629 hardcode_shlibpath_var_GCJ
=no
17632 hardcode_direct_GCJ
=yes
17633 export_dynamic_flag_spec_GCJ
='${wl}-E'
17635 # hardcode_minus_L: Not really in the search PATH,
17636 # but as the default location of the library.
17637 hardcode_minus_L_GCJ
=yes
17643 irix5
* | irix6
* | nonstopux
*)
17644 if test "$GCC" = yes; then
17645 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'
17647 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'
17648 hardcode_libdir_flag_spec_ld_GCJ
='-rpath $libdir'
17650 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
17651 hardcode_libdir_separator_GCJ
=:
17652 link_all_deplibs_GCJ
=yes
17655 netbsd
* | netbsdelf
*-gnu)
17656 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
17657 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17659 archive_cmds_GCJ
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17661 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
17662 hardcode_direct_GCJ
=yes
17663 hardcode_shlibpath_var_GCJ
=no
17667 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17668 hardcode_direct_GCJ
=yes
17669 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
17670 hardcode_libdir_separator_GCJ
=:
17671 hardcode_shlibpath_var_GCJ
=no
17675 hardcode_direct_GCJ
=yes
17676 hardcode_shlibpath_var_GCJ
=no
17677 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17678 archive_cmds_GCJ
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17679 archive_expsym_cmds_GCJ
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17680 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath,$libdir'
17681 export_dynamic_flag_spec_GCJ
='${wl}-E'
17684 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
17685 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17686 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
17689 archive_cmds_GCJ
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17690 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath,$libdir'
17697 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
17698 hardcode_minus_L_GCJ
=yes
17699 allow_undefined_flag_GCJ
=unsupported
17700 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'
17701 old_archive_From_new_cmds_GCJ
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17705 if test "$GCC" = yes; then
17706 allow_undefined_flag_GCJ
=' ${wl}-expect_unresolved ${wl}\*'
17707 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'
17709 allow_undefined_flag_GCJ
=' -expect_unresolved \*'
17710 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'
17712 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
17713 hardcode_libdir_separator_GCJ
=:
17716 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
17717 if test "$GCC" = yes; then
17718 allow_undefined_flag_GCJ
=' ${wl}-expect_unresolved ${wl}\*'
17719 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'
17720 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
17722 allow_undefined_flag_GCJ
=' -expect_unresolved \*'
17723 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'
17724 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~
17725 $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'
17727 # Both c and cxx compiler support -rpath directly
17728 hardcode_libdir_flag_spec_GCJ
='-rpath $libdir'
17730 hardcode_libdir_separator_GCJ
=:
17734 no_undefined_flag_GCJ
=' -z text'
17735 if test "$GCC" = yes; then
17737 archive_cmds_GCJ
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17738 archive_expsym_cmds_GCJ
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17739 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17742 archive_cmds_GCJ
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17743 archive_expsym_cmds_GCJ
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17744 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17746 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
17747 hardcode_shlibpath_var_GCJ
=no
17749 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
17751 # The compiler driver will combine linker options so we
17752 # cannot just pass the convience library names through
17753 # without $wl, iff we do not link with $LD.
17754 # Luckily, gcc supports the same syntax we need for Sun Studio.
17755 # Supported since Solaris 2.6 (maybe 2.5.1?)
17758 whole_archive_flag_spec_GCJ
='-z allextract$convenience -z defaultextract' ;;
17760 whole_archive_flag_spec_GCJ
='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
17763 link_all_deplibs_GCJ
=yes
17767 if test "x$host_vendor" = xsequent
; then
17768 # Use $CC to link under sequent, because it throws in some extra .o
17769 # files that make .init and .fini sections work.
17770 archive_cmds_GCJ
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17772 archive_cmds_GCJ
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17774 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
17775 hardcode_direct_GCJ
=yes
17776 hardcode_minus_L_GCJ
=yes
17777 hardcode_shlibpath_var_GCJ
=no
17781 case $host_vendor in
17783 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17784 hardcode_direct_GCJ
=yes # is this really true???
17787 ## LD is ld it makes a PLAMLIB
17788 ## CC just makes a GrossModule.
17789 archive_cmds_GCJ
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17790 reload_cmds_GCJ
='$CC -r -o $output$reload_objs'
17791 hardcode_direct_GCJ
=no
17794 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17795 hardcode_direct_GCJ
=no
#Motorola manual says yes, but my tests say they lie
17798 runpath_var
='LD_RUN_PATH'
17799 hardcode_shlibpath_var_GCJ
=no
17803 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17804 hardcode_shlibpath_var_GCJ
=no
17805 export_dynamic_flag_spec_GCJ
='-Bexport'
17809 if test -d /usr
/nec
; then
17810 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17811 hardcode_shlibpath_var_GCJ
=no
17812 runpath_var
=LD_RUN_PATH
17813 hardcode_runpath_var
=yes
17818 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
*)
17819 no_undefined_flag_GCJ
='${wl}-z,text'
17820 archive_cmds_need_lc_GCJ
=no
17821 hardcode_shlibpath_var_GCJ
=no
17822 runpath_var
='LD_RUN_PATH'
17824 if test "$GCC" = yes; then
17825 archive_cmds_GCJ
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17826 archive_expsym_cmds_GCJ
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17828 archive_cmds_GCJ
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17829 archive_expsym_cmds_GCJ
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17833 sysv5
* | sco3.2v5
* | sco5v6
*)
17834 # Note: We can NOT use -z defs as we might desire, because we do not
17835 # link with -lc, and that would cause any symbols used from libc to
17836 # always be unresolved, which means just about no library would
17837 # ever link correctly. If we're not using GNU ld we use -z text
17838 # though, which does catch some bad symbols but isn't as heavy-handed
17840 no_undefined_flag_GCJ
='${wl}-z,text'
17841 allow_undefined_flag_GCJ
='${wl}-z,nodefs'
17842 archive_cmds_need_lc_GCJ
=no
17843 hardcode_shlibpath_var_GCJ
=no
17844 hardcode_libdir_flag_spec_GCJ
='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17845 hardcode_libdir_separator_GCJ
=':'
17846 link_all_deplibs_GCJ
=yes
17847 export_dynamic_flag_spec_GCJ
='${wl}-Bexport'
17848 runpath_var
='LD_RUN_PATH'
17850 if test "$GCC" = yes; then
17851 archive_cmds_GCJ
='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17852 archive_expsym_cmds_GCJ
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17854 archive_cmds_GCJ
='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17855 archive_expsym_cmds_GCJ
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17860 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17861 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
17862 hardcode_shlibpath_var_GCJ
=no
17871 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17872 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17873 test "$ld_shlibs_GCJ" = no
&& can_build_shared
=no
17876 # Do we need to explicitly link libc?
17878 case "x$archive_cmds_need_lc_GCJ" in
17880 # Assume -lc should be added
17881 archive_cmds_need_lc_GCJ
=yes
17883 if test "$enable_shared" = yes && test "$GCC" = yes; then
17884 case $archive_cmds_GCJ in
17886 # FIXME: we may have to deal with multi-command sequences.
17889 # Test whether the compiler implicitly links with -lc since on some
17890 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17891 # to ld, don't add -lc before -lgcc.
17892 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17893 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17895 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
17897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17898 (eval $ac_compile) 2>&5
17900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17901 (exit $ac_status); } 2>conftest.err
; then
17904 libobjs
=conftest.
$ac_objext
17906 wl
=$lt_prog_compiler_wl_GCJ
17907 pic_flag
=$lt_prog_compiler_pic_GCJ
17913 lt_save_allow_undefined_flag
=$allow_undefined_flag_GCJ
17914 allow_undefined_flag_GCJ
=
17915 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17916 (eval $archive_cmds_GCJ 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
17918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17919 (exit $ac_status); }
17921 archive_cmds_need_lc_GCJ
=no
17923 archive_cmds_need_lc_GCJ
=yes
17925 allow_undefined_flag_GCJ
=$lt_save_allow_undefined_flag
17927 cat conftest.err
1>&5
17930 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17931 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17938 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17939 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17940 library_names_spec
=
17941 libname_spec
='lib$name'
17945 postuninstall_cmds
=
17949 shlibpath_overrides_runpath
=unknown
17951 dynamic_linker
="$host_os ld.so"
17952 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
17953 if test "$GCC" = yes; then
17954 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17955 if echo "$sys_lib_search_path_spec" |
grep ';' >/dev
/null
; then
17956 # if the path contains ";" then we assume it to be the separator
17957 # otherwise default to the standard path separator (i.e. ":") - it is
17958 # assumed that no part of a normal pathname contains ";" but that should
17959 # okay in the real world where ";" in dirpaths is itself problematic.
17960 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17962 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17965 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
17967 need_lib_prefix
=unknown
17968 hardcode_into_libs
=no
17970 # when you set need_version to no, make sure it does not cause -set_version
17971 # flags to be left without arguments
17972 need_version
=unknown
17977 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
17978 shlibpath_var
=LIBPATH
17980 # AIX 3 has no versioning support, so we append a major version to the name.
17981 soname_spec
='${libname}${release}${shared_ext}$major'
17988 hardcode_into_libs
=yes
17989 if test "$host_cpu" = ia64
; then
17990 # AIX 5 supports IA64
17991 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17992 shlibpath_var
=LD_LIBRARY_PATH
17994 # With GCC up to 2.95.x, collect2 would create an import file
17995 # for dependence libraries. The import file would start with
17996 # the line `#! .'. This would cause the generated library to
17997 # depend on `.', always an invalid library. This was fixed in
17998 # development snapshots of GCC prior to 3.0.
18000 aix4 | aix4.
[01] | aix4.
[01].
*)
18001 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18003 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
18006 can_build_shared
=no
18010 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18011 # soname into executable. Probably we can add versioning support to
18012 # collect2, so additional links can be useful in future.
18013 if test "$aix_use_runtimelinking" = yes; then
18014 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18015 # instead of lib<name>.a to let people know that these are not
18016 # typical AIX shared libraries.
18017 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18019 # We preserve .a as extension for shared libraries through AIX4.2
18020 # and later when we are not doing run time linking.
18021 library_names_spec
='${libname}${release}.a $libname.a'
18022 soname_spec
='${libname}${release}${shared_ext}$major'
18024 shlibpath_var
=LIBPATH
18029 library_names_spec
='$libname.ixlibrary $libname.a'
18030 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18031 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'
18035 library_names_spec
='${libname}${shared_ext}'
18036 dynamic_linker
="$host_os ld.so"
18037 shlibpath_var
=LIBRARY_PATH
18043 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18044 soname_spec
='${libname}${release}${shared_ext}$major'
18045 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
18046 shlibpath_var
=LD_LIBRARY_PATH
18047 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18048 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
18049 # the default ld.so.conf also contains /usr/contrib/lib and
18050 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18051 # libtool to hard-code these into programs
18054 cygwin
* | mingw
* | pw32
*)
18055 version_type
=windows
18060 case $GCC,$host_os in
18061 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
18062 library_names_spec
='$libname.dll.a'
18063 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18064 postinstall_cmds
='base_file=`basename \${file}`~
18065 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18066 dldir=$destdir/`dirname \$dlpath`~
18067 test -d \$dldir || mkdir -p \$dldir~
18068 $install_prog $dir/$dlname \$dldir/$dlname~
18069 chmod a+x \$dldir/$dlname'
18070 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18071 dlpath=$dir/\$dldll~
18073 shlibpath_overrides_runpath
=yes
18077 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18078 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18079 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
18082 # MinGW DLLs use traditional 'lib' prefix
18083 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18084 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18085 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
18086 # It is most probably a Windows format PATH printed by
18087 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18088 # path with ; separators, and with drive letters. We can handle the
18089 # drive letters (cygwin fileutils understands them), so leave them,
18090 # especially as we might pass files found there to a mingw objdump,
18091 # which wouldn't understand a cygwinified path. Ahh.
18092 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18094 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18098 # pw32 DLLs use 'pw' prefix rather than 'lib'
18099 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18105 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18108 dynamic_linker
='Win32 ld.exe'
18109 # FIXME: first we should search . and the directory the executable is in
18113 darwin
* | rhapsody
*)
18114 dynamic_linker
="$host_os dyld"
18115 version_type
=darwin
18118 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18119 soname_spec
='${libname}${release}${major}$shared_ext'
18120 shlibpath_overrides_runpath
=yes
18121 shlibpath_var
=DYLD_LIBRARY_PATH
18122 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
18123 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18124 if test "$GCC" = yes; then
18125 sys_lib_search_path_spec
=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
18127 sys_lib_search_path_spec
='/lib /usr/lib /usr/local/lib'
18129 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
18136 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18137 soname_spec
='${libname}${release}${shared_ext}$major'
18138 shlibpath_var
=LD_LIBRARY_PATH
18145 freebsd
* | dragonfly
*)
18146 # DragonFly does not have aout. When/if they implement a new
18147 # versioning mechanism, adjust this.
18148 if test -x /usr
/bin
/objformat
; then
18149 objformat
=`/usr/bin/objformat`
18152 freebsd
[123]*) objformat
=aout
;;
18153 *) objformat
=elf
;;
18156 version_type
=freebsd-
$objformat
18157 case $version_type in
18159 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18164 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18168 shlibpath_var
=LD_LIBRARY_PATH
18171 shlibpath_overrides_runpath
=yes
18173 freebsd3.
[01]* | freebsdelf3.
[01]*)
18174 shlibpath_overrides_runpath
=yes
18175 hardcode_into_libs
=yes
18177 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
18178 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
18179 shlibpath_overrides_runpath
=no
18180 hardcode_into_libs
=yes
18182 freebsd
*) # from 4.6 on
18183 shlibpath_overrides_runpath
=yes
18184 hardcode_into_libs
=yes
18193 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18194 soname_spec
='${libname}${release}${shared_ext}$major'
18195 shlibpath_var
=LD_LIBRARY_PATH
18196 hardcode_into_libs
=yes
18199 hpux9
* | hpux10
* | hpux11
*)
18200 # Give a soname corresponding to the major version so that dld.sl refuses to
18201 # link against other versions.
18208 hardcode_into_libs
=yes
18209 dynamic_linker
="$host_os dld.so"
18210 shlibpath_var
=LD_LIBRARY_PATH
18211 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
18212 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18213 soname_spec
='${libname}${release}${shared_ext}$major'
18214 if test "X$HPUX_IA64_MODE" = X32
; then
18215 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18217 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
18219 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
18223 hardcode_into_libs
=yes
18224 dynamic_linker
="$host_os dld.sl"
18225 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
18226 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
18227 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18228 soname_spec
='${libname}${release}${shared_ext}$major'
18229 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18230 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
18234 dynamic_linker
="$host_os dld.sl"
18235 shlibpath_var
=SHLIB_PATH
18236 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
18237 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18238 soname_spec
='${libname}${release}${shared_ext}$major'
18241 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18242 postinstall_cmds
='chmod 555 $lib'
18249 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18250 soname_spec
='${libname}${release}${shared_ext}$major'
18251 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
18252 shlibpath_var
=LD_LIBRARY_PATH
18253 shlibpath_overrides_runpath
=no
18254 hardcode_into_libs
=yes
18257 irix5
* | irix6
* | nonstopux
*)
18259 nonstopux
*) version_type
=nonstopux
;;
18261 if test "$lt_cv_prog_gnu_ld" = yes; then
18269 soname_spec
='${libname}${release}${shared_ext}$major'
18270 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18272 irix5
* | nonstopux
*)
18273 libsuff
= shlibsuff
=
18276 case $LD in # libtool.m4 will add one of these switches to LD
18277 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
18278 libsuff
= shlibsuff
= libmagic
=32-bit;;
18279 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
18280 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
18281 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
18282 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
18283 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
18287 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
18288 shlibpath_overrides_runpath
=no
18289 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18290 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
18291 hardcode_into_libs
=yes
18294 # No shared lib support for Linux oldld, aout, or coff.
18295 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
18299 # This must be Linux ELF.
18300 linux
* | k
*bsd
*-gnu)
18304 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18305 soname_spec
='${libname}${release}${shared_ext}$major'
18306 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18307 shlibpath_var
=LD_LIBRARY_PATH
18308 shlibpath_overrides_runpath
=no
18309 # This implies no fast_install, which is unacceptable.
18310 # Some rework will be needed to allow for fast_install
18311 # before this can be enabled.
18312 hardcode_into_libs
=yes
18314 # Append ld.so.conf contents to the search path
18315 if test -f /etc
/ld.so.conf
; then
18316 lt_ld_extra
=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18317 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
18320 # We used to test for /lib/ld.so.1 and disable shared libraries on
18321 # powerpc, because MkLinux only supported shared libraries with the
18322 # GNU dynamic linker. Since this was broken with cross compilers,
18323 # most powerpc-linux boxes support dynamic linking these days and
18324 # people can always --disable-shared, the test was removed, and we
18325 # assume the GNU/Linux dynamic linker is in use.
18326 dynamic_linker
='GNU/Linux ld.so'
18333 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18334 soname_spec
='${libname}${release}${shared_ext}$major'
18335 shlibpath_var
=LD_LIBRARY_PATH
18336 shlibpath_overrides_runpath
=no
18337 hardcode_into_libs
=yes
18338 dynamic_linker
='NetBSD ld.elf_so'
18345 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
18346 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18347 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18348 dynamic_linker
='NetBSD (a.out) ld.so'
18350 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18351 soname_spec
='${libname}${release}${shared_ext}$major'
18352 dynamic_linker
='NetBSD ld.elf_so'
18354 shlibpath_var
=LD_LIBRARY_PATH
18355 shlibpath_overrides_runpath
=yes
18356 hardcode_into_libs
=yes
18361 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18362 shlibpath_var
=LD_LIBRARY_PATH
18363 shlibpath_overrides_runpath
=yes
18370 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18371 soname_spec
='${libname}${release}${shared_ext}$major'
18372 shlibpath_var
=LD_LIBRARY_PATH
18373 shlibpath_overrides_runpath
=yes
18378 sys_lib_dlsearch_path_spec
="/usr/lib"
18380 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18382 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
18383 *) need_version
=no
;;
18385 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18386 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18387 shlibpath_var
=LD_LIBRARY_PATH
18388 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18390 openbsd2.
[89] | openbsd2.
[89].
*)
18391 shlibpath_overrides_runpath
=no
18394 shlibpath_overrides_runpath
=yes
18398 shlibpath_overrides_runpath
=yes
18403 libname_spec
='$name'
18406 library_names_spec
='$libname${shared_ext} $libname.a'
18407 dynamic_linker
='OS/2 ld.exe'
18408 shlibpath_var
=LIBPATH
18411 osf3
* | osf4
* | osf5
*)
18415 soname_spec
='${libname}${release}${shared_ext}$major'
18416 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18417 shlibpath_var
=LD_LIBRARY_PATH
18418 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18419 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
18426 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18427 soname_spec
='${libname}${release}${shared_ext}$major'
18428 shlibpath_var
=LD_LIBRARY_PATH
18429 shlibpath_overrides_runpath
=yes
18430 hardcode_into_libs
=yes
18431 # ldd complains unless libraries are executable
18432 postinstall_cmds
='chmod +x $lib'
18437 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18438 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18439 shlibpath_var
=LD_LIBRARY_PATH
18440 shlibpath_overrides_runpath
=yes
18441 if test "$with_gnu_ld" = yes; then
18449 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18450 soname_spec
='${libname}${release}${shared_ext}$major'
18451 shlibpath_var
=LD_LIBRARY_PATH
18452 case $host_vendor in
18454 shlibpath_overrides_runpath
=no
18456 export_dynamic_flag_spec
='${wl}-Blargedynsym'
18457 runpath_var
=LD_RUN_PATH
18465 shlibpath_overrides_runpath
=no
18466 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
18472 if test -d /usr
/nec
;then
18474 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18475 soname_spec
='$libname${shared_ext}.$major'
18476 shlibpath_var
=LD_LIBRARY_PATH
18480 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
18481 version_type
=freebsd-elf
18484 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18485 soname_spec
='${libname}${release}${shared_ext}$major'
18486 shlibpath_var
=LD_LIBRARY_PATH
18487 hardcode_into_libs
=yes
18488 if test "$with_gnu_ld" = yes; then
18489 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18490 shlibpath_overrides_runpath
=no
18492 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
18493 shlibpath_overrides_runpath
=yes
18496 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
18500 sys_lib_dlsearch_path_spec
='/usr/lib'
18505 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18506 soname_spec
='${libname}${release}${shared_ext}$major'
18507 shlibpath_var
=LD_LIBRARY_PATH
18514 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18515 echo "${ECHO_T}$dynamic_linker" >&6; }
18516 test "$dynamic_linker" = no
&& can_build_shared
=no
18518 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
18519 if test "$GCC" = yes; then
18520 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18523 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18524 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18525 hardcode_action_GCJ
=
18526 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18527 test -n "$runpath_var_GCJ" || \
18528 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18530 # We can hardcode non-existant directories.
18531 if test "$hardcode_direct_GCJ" != no
&&
18532 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18533 # have to relink, otherwise we might link with an installed library
18534 # when we should be linking with a yet-to-be-installed one
18535 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18536 test "$hardcode_minus_L_GCJ" != no
; then
18537 # Linking always hardcodes the temporary library directory.
18538 hardcode_action_GCJ
=relink
18540 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18541 hardcode_action_GCJ
=immediate
18544 # We cannot hardcode anything, or else we can only hardcode existing
18546 hardcode_action_GCJ
=unsupported
18548 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18549 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18551 if test "$hardcode_action_GCJ" = relink
; then
18552 # Fast installation is not supported
18553 enable_fast_install
=no
18554 elif test "$shlibpath_overrides_runpath" = yes ||
18555 test "$enable_shared" = no
; then
18556 # Fast installation is not necessary
18557 enable_fast_install
=needless
18561 # The else clause should only fire when bootstrapping the
18562 # libtool distribution, otherwise you forgot to ship ltmain.sh
18563 # with your package, and you will get complaints that there are
18564 # no rules to generate ltmain.sh.
18565 if test -f "$ltmain"; then
18566 # See if we are running on zsh, and set the options which allow our commands through
18567 # without removal of \ escapes.
18568 if test -n "${ZSH_VERSION+set}" ; then
18569 setopt NO_GLOB_SUBST
18571 # Now quote all the things that may contain metacharacters while being
18572 # careful not to overquote the AC_SUBSTed values. We take copies of the
18573 # variables and quote the copies for generation of the libtool script.
18574 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18576 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18577 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18578 deplibs_check_method reload_flag reload_cmds need_locks \
18579 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18580 lt_cv_sys_global_symbol_to_c_name_address \
18581 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18582 old_postinstall_cmds old_postuninstall_cmds \
18586 lt_prog_compiler_wl_GCJ \
18587 lt_prog_compiler_pic_GCJ \
18588 lt_prog_compiler_static_GCJ \
18589 lt_prog_compiler_no_builtin_flag_GCJ \
18590 export_dynamic_flag_spec_GCJ \
18591 thread_safe_flag_spec_GCJ \
18592 whole_archive_flag_spec_GCJ \
18593 enable_shared_with_static_runtimes_GCJ \
18594 old_archive_cmds_GCJ \
18595 old_archive_from_new_cmds_GCJ \
18596 predep_objects_GCJ \
18597 postdep_objects_GCJ \
18600 compiler_lib_search_path_GCJ \
18602 archive_expsym_cmds_GCJ \
18603 postinstall_cmds_GCJ \
18604 postuninstall_cmds_GCJ \
18605 old_archive_from_expsyms_cmds_GCJ \
18606 allow_undefined_flag_GCJ \
18607 no_undefined_flag_GCJ \
18608 export_symbols_cmds_GCJ \
18609 hardcode_libdir_flag_spec_GCJ \
18610 hardcode_libdir_flag_spec_ld_GCJ \
18611 hardcode_libdir_separator_GCJ \
18612 hardcode_automatic_GCJ \
18614 module_expsym_cmds_GCJ \
18615 lt_cv_prog_compiler_c_o_GCJ \
18616 exclude_expsyms_GCJ \
18617 include_expsyms_GCJ
; do
18620 old_archive_cmds_GCJ | \
18621 old_archive_from_new_cmds_GCJ | \
18622 archive_cmds_GCJ | \
18623 archive_expsym_cmds_GCJ | \
18624 module_cmds_GCJ | \
18625 module_expsym_cmds_GCJ | \
18626 old_archive_from_expsyms_cmds_GCJ | \
18627 export_symbols_cmds_GCJ | \
18628 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18629 postinstall_cmds | postuninstall_cmds | \
18630 old_postinstall_cmds | old_postuninstall_cmds | \
18631 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
18632 # Double-quote double-evaled strings.
18633 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18636 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18642 *'\$0 --fallback-echo"')
18643 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18649 cat <<__EOF__ >> "$cfgfile"
18650 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18652 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18654 # Shell to use when invoking shell scripts.
18657 # Whether or not to build shared libraries.
18658 build_libtool_libs=$enable_shared
18660 # Whether or not to build static libraries.
18661 build_old_libs=$enable_static
18663 # Whether or not to add -lc for building shared libraries.
18664 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18666 # Whether or not to disallow shared libs when runtime libs are static
18667 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18669 # Whether or not to optimize for fast installation.
18670 fast_install=$enable_fast_install
18673 host_alias=$host_alias
18677 # The build system.
18678 build_alias=$build_alias
18682 # An echo program that does not interpret backslashes.
18687 AR_FLAGS=$lt_AR_FLAGS
18692 # LTCC compiler flags.
18693 LTCFLAGS=$lt_LTCFLAGS
18695 # A language-specific compiler.
18696 CC=$lt_compiler_GCJ
18698 # Is the compiler the GNU C compiler?
18704 # The linker used to build libraries.
18707 # Whether we need hard or soft links.
18710 # A BSD-compatible nm program.
18713 # A symbol stripping program
18716 # Used to examine libraries when file_magic_cmd begins "file"
18717 MAGIC_CMD=$MAGIC_CMD
18719 # Used on cygwin: DLL creation program.
18722 # Used on cygwin: object dumper.
18725 # Used on cygwin: assembler.
18728 # The name of the directory that contains temporary libtool files.
18731 # How to create reloadable object files.
18732 reload_flag=$lt_reload_flag
18733 reload_cmds=$lt_reload_cmds
18735 # How to pass a linker flag through the compiler.
18736 wl=$lt_lt_prog_compiler_wl_GCJ
18738 # Object file suffix (normally "o").
18739 objext="$ac_objext"
18741 # Old archive suffix (normally "a").
18744 # Shared library suffix (normally ".so").
18745 shrext_cmds='$shrext_cmds'
18747 # Executable file suffix (normally "").
18750 # Additional compiler flags for building library objects.
18751 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18754 # What is the maximum length of a command?
18755 max_cmd_len=$lt_cv_sys_max_cmd_len
18757 # Does compiler simultaneously support -c and -o options?
18758 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18760 # Must we lock files when doing compilation?
18761 need_locks=$lt_need_locks
18763 # Do we need the lib prefix for modules?
18764 need_lib_prefix=$need_lib_prefix
18766 # Do we need a version for libraries?
18767 need_version=$need_version
18769 # Whether dlopen is supported.
18770 dlopen_support=$enable_dlopen
18772 # Whether dlopen of programs is supported.
18773 dlopen_self=$enable_dlopen_self
18775 # Whether dlopen of statically linked programs is supported.
18776 dlopen_self_static=$enable_dlopen_self_static
18778 # Compiler flag to prevent dynamic linking.
18779 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18781 # Compiler flag to turn off builtin functions.
18782 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18784 # Compiler flag to allow reflexive dlopens.
18785 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18787 # Compiler flag to generate shared objects directly from archives.
18788 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18790 # Compiler flag to generate thread-safe objects.
18791 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18793 # Library versioning type.
18794 version_type=$version_type
18796 # Format of library name prefix.
18797 libname_spec=$lt_libname_spec
18799 # List of archive names. First name is the real one, the rest are links.
18800 # The last name is the one that the linker finds with -lNAME.
18801 library_names_spec=$lt_library_names_spec
18803 # The coded name of the library, if different from the real name.
18804 soname_spec=$lt_soname_spec
18806 # Commands used to build and install an old-style archive.
18808 old_archive_cmds=$lt_old_archive_cmds_GCJ
18809 old_postinstall_cmds=$lt_old_postinstall_cmds
18810 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18812 # Create an old-style archive from a shared archive.
18813 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18815 # Create a temporary old-style archive to link instead of a shared archive.
18816 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18818 # Commands used to build and install a shared archive.
18819 archive_cmds=$lt_archive_cmds_GCJ
18820 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18821 postinstall_cmds=$lt_postinstall_cmds
18822 postuninstall_cmds=$lt_postuninstall_cmds
18824 # Commands used to build a loadable module (assumed same as above if empty)
18825 module_cmds=$lt_module_cmds_GCJ
18826 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18828 # Commands to strip libraries.
18829 old_striplib=$lt_old_striplib
18830 striplib=$lt_striplib
18832 # Dependencies to place before the objects being linked to create a
18834 predep_objects=$lt_predep_objects_GCJ
18836 # Dependencies to place after the objects being linked to create a
18838 postdep_objects=$lt_postdep_objects_GCJ
18840 # Dependencies to place before the objects being linked to create a
18842 predeps=$lt_predeps_GCJ
18844 # Dependencies to place after the objects being linked to create a
18846 postdeps=$lt_postdeps_GCJ
18848 # The library search path used internally by the compiler when linking
18849 # a shared library.
18850 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18852 # Method to check whether dependent libraries are shared objects.
18853 deplibs_check_method=$lt_deplibs_check_method
18855 # Command to use when deplibs_check_method == file_magic.
18856 file_magic_cmd=$lt_file_magic_cmd
18858 # Flag that allows shared libraries with undefined symbols to be built.
18859 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18861 # Flag that forces no undefined symbols.
18862 no_undefined_flag=$lt_no_undefined_flag_GCJ
18864 # Commands used to finish a libtool library installation in a directory.
18865 finish_cmds=$lt_finish_cmds
18867 # Same as above, but a single script fragment to be evaled but not shown.
18868 finish_eval=$lt_finish_eval
18870 # Take the output of nm and produce a listing of raw symbols and C names.
18871 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18873 # Transform the output of nm in a proper C declaration
18874 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18876 # Transform the output of nm in a C name address pair
18877 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18879 # This is the shared library runtime path variable.
18880 runpath_var=$runpath_var
18882 # This is the shared library path variable.
18883 shlibpath_var=$shlibpath_var
18885 # Is shlibpath searched before the hard-coded library search path?
18886 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18888 # How to hardcode a shared library path into an executable.
18889 hardcode_action=$hardcode_action_GCJ
18891 # Whether we should hardcode library paths into libraries.
18892 hardcode_into_libs=$hardcode_into_libs
18894 # Flag to hardcode \$libdir into a binary during linking.
18895 # This must work even if \$libdir does not exist.
18896 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18898 # If ld is used when linking, flag to hardcode \$libdir into
18899 # a binary during linking. This must work even if \$libdir does
18901 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18903 # Whether we need a single -rpath flag with a separated argument.
18904 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18906 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18907 # resulting binary.
18908 hardcode_direct=$hardcode_direct_GCJ
18910 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18911 # resulting binary.
18912 hardcode_minus_L=$hardcode_minus_L_GCJ
18914 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18915 # the resulting binary.
18916 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18918 # Set to yes if building a shared library automatically hardcodes DIR into the library
18919 # and all subsequent libraries and executables linked against it.
18920 hardcode_automatic=$hardcode_automatic_GCJ
18922 # Variables whose values should be saved in libtool wrapper scripts and
18923 # restored at relink time.
18924 variables_saved_for_relink="$variables_saved_for_relink"
18926 # Whether libtool must link a program against all its dependency libraries.
18927 link_all_deplibs=$link_all_deplibs_GCJ
18929 # Compile-time system search path for libraries
18930 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18932 # Run-time system search path for libraries
18933 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18935 # Fix the shell variable \$srcfile for the compiler.
18936 fix_srcfile_path="$fix_srcfile_path_GCJ"
18938 # Set to yes if exported symbols are required.
18939 always_export_symbols=$always_export_symbols_GCJ
18941 # The commands to list exported symbols.
18942 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18944 # The commands to extract the exported symbol list from a shared archive.
18945 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18947 # Symbols that should not be listed in the preloaded symbols.
18948 exclude_expsyms=$lt_exclude_expsyms_GCJ
18950 # Symbols that must always be exported.
18951 include_expsyms=$lt_include_expsyms_GCJ
18953 # ### END LIBTOOL TAG CONFIG: $tagname
18959 # If there is no Makefile yet, we rely on a make rule to execute
18960 # `config.status --recheck' to rerun these tests and create the
18961 # libtool script then.
18962 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18963 if test -f "$ltmain_in"; then
18964 test -f Makefile
&& make "$ltmain"
18970 ac_cpp
='$CPP $CPPFLAGS'
18971 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18972 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18973 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
18985 # Source file extension for RC test sources.
18988 # Object file extension for compiled RC test sources.
18992 # Code to be used in simple compile tests
18993 lt_simple_compile_test_code
='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18995 # Code to be used in simple link tests
18996 lt_simple_link_test_code
="$lt_simple_compile_test_code"
18998 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19000 # If no C compiler was specified, use CC.
19003 # If no C compiler flags were specified, use CFLAGS.
19004 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
19006 # Allow CC to be a program name with arguments.
19010 # save warnings/boilerplate of simple test code
19011 ac_outfile
=conftest.
$ac_objext
19012 printf "$lt_simple_compile_test_code" >conftest.
$ac_ext
19013 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
19014 _lt_compiler_boilerplate
=`cat conftest.err`
19017 ac_outfile
=conftest.
$ac_objext
19018 printf "$lt_simple_link_test_code" >conftest.
$ac_ext
19019 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
19020 _lt_linker_boilerplate
=`cat conftest.err`
19024 # Allow CC to be a program name with arguments.
19029 for cc_temp
in $compiler""; do
19031 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
19032 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
19037 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19039 lt_cv_prog_compiler_c_o_RC
=yes
19041 # The else clause should only fire when bootstrapping the
19042 # libtool distribution, otherwise you forgot to ship ltmain.sh
19043 # with your package, and you will get complaints that there are
19044 # no rules to generate ltmain.sh.
19045 if test -f "$ltmain"; then
19046 # See if we are running on zsh, and set the options which allow our commands through
19047 # without removal of \ escapes.
19048 if test -n "${ZSH_VERSION+set}" ; then
19049 setopt NO_GLOB_SUBST
19051 # Now quote all the things that may contain metacharacters while being
19052 # careful not to overquote the AC_SUBSTed values. We take copies of the
19053 # variables and quote the copies for generation of the libtool script.
19054 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19056 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19057 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19058 deplibs_check_method reload_flag reload_cmds need_locks \
19059 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19060 lt_cv_sys_global_symbol_to_c_name_address \
19061 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19062 old_postinstall_cmds old_postuninstall_cmds \
19066 lt_prog_compiler_wl_RC \
19067 lt_prog_compiler_pic_RC \
19068 lt_prog_compiler_static_RC \
19069 lt_prog_compiler_no_builtin_flag_RC \
19070 export_dynamic_flag_spec_RC \
19071 thread_safe_flag_spec_RC \
19072 whole_archive_flag_spec_RC \
19073 enable_shared_with_static_runtimes_RC \
19074 old_archive_cmds_RC \
19075 old_archive_from_new_cmds_RC \
19076 predep_objects_RC \
19077 postdep_objects_RC \
19080 compiler_lib_search_path_RC \
19082 archive_expsym_cmds_RC \
19083 postinstall_cmds_RC \
19084 postuninstall_cmds_RC \
19085 old_archive_from_expsyms_cmds_RC \
19086 allow_undefined_flag_RC \
19087 no_undefined_flag_RC \
19088 export_symbols_cmds_RC \
19089 hardcode_libdir_flag_spec_RC \
19090 hardcode_libdir_flag_spec_ld_RC \
19091 hardcode_libdir_separator_RC \
19092 hardcode_automatic_RC \
19094 module_expsym_cmds_RC \
19095 lt_cv_prog_compiler_c_o_RC \
19096 exclude_expsyms_RC \
19097 include_expsyms_RC
; do
19100 old_archive_cmds_RC | \
19101 old_archive_from_new_cmds_RC | \
19102 archive_cmds_RC | \
19103 archive_expsym_cmds_RC | \
19105 module_expsym_cmds_RC | \
19106 old_archive_from_expsyms_cmds_RC | \
19107 export_symbols_cmds_RC | \
19108 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19109 postinstall_cmds | postuninstall_cmds | \
19110 old_postinstall_cmds | old_postuninstall_cmds | \
19111 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
19112 # Double-quote double-evaled strings.
19113 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19116 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19122 *'\$0 --fallback-echo"')
19123 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19129 cat <<__EOF__ >> "$cfgfile"
19130 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19132 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19134 # Shell to use when invoking shell scripts.
19137 # Whether or not to build shared libraries.
19138 build_libtool_libs=$enable_shared
19140 # Whether or not to build static libraries.
19141 build_old_libs=$enable_static
19143 # Whether or not to add -lc for building shared libraries.
19144 build_libtool_need_lc=$archive_cmds_need_lc_RC
19146 # Whether or not to disallow shared libs when runtime libs are static
19147 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19149 # Whether or not to optimize for fast installation.
19150 fast_install=$enable_fast_install
19153 host_alias=$host_alias
19157 # The build system.
19158 build_alias=$build_alias
19162 # An echo program that does not interpret backslashes.
19167 AR_FLAGS=$lt_AR_FLAGS
19172 # LTCC compiler flags.
19173 LTCFLAGS=$lt_LTCFLAGS
19175 # A language-specific compiler.
19178 # Is the compiler the GNU C compiler?
19184 # The linker used to build libraries.
19187 # Whether we need hard or soft links.
19190 # A BSD-compatible nm program.
19193 # A symbol stripping program
19196 # Used to examine libraries when file_magic_cmd begins "file"
19197 MAGIC_CMD=$MAGIC_CMD
19199 # Used on cygwin: DLL creation program.
19202 # Used on cygwin: object dumper.
19205 # Used on cygwin: assembler.
19208 # The name of the directory that contains temporary libtool files.
19211 # How to create reloadable object files.
19212 reload_flag=$lt_reload_flag
19213 reload_cmds=$lt_reload_cmds
19215 # How to pass a linker flag through the compiler.
19216 wl=$lt_lt_prog_compiler_wl_RC
19218 # Object file suffix (normally "o").
19219 objext="$ac_objext"
19221 # Old archive suffix (normally "a").
19224 # Shared library suffix (normally ".so").
19225 shrext_cmds='$shrext_cmds'
19227 # Executable file suffix (normally "").
19230 # Additional compiler flags for building library objects.
19231 pic_flag=$lt_lt_prog_compiler_pic_RC
19234 # What is the maximum length of a command?
19235 max_cmd_len=$lt_cv_sys_max_cmd_len
19237 # Does compiler simultaneously support -c and -o options?
19238 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19240 # Must we lock files when doing compilation?
19241 need_locks=$lt_need_locks
19243 # Do we need the lib prefix for modules?
19244 need_lib_prefix=$need_lib_prefix
19246 # Do we need a version for libraries?
19247 need_version=$need_version
19249 # Whether dlopen is supported.
19250 dlopen_support=$enable_dlopen
19252 # Whether dlopen of programs is supported.
19253 dlopen_self=$enable_dlopen_self
19255 # Whether dlopen of statically linked programs is supported.
19256 dlopen_self_static=$enable_dlopen_self_static
19258 # Compiler flag to prevent dynamic linking.
19259 link_static_flag=$lt_lt_prog_compiler_static_RC
19261 # Compiler flag to turn off builtin functions.
19262 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19264 # Compiler flag to allow reflexive dlopens.
19265 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19267 # Compiler flag to generate shared objects directly from archives.
19268 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19270 # Compiler flag to generate thread-safe objects.
19271 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19273 # Library versioning type.
19274 version_type=$version_type
19276 # Format of library name prefix.
19277 libname_spec=$lt_libname_spec
19279 # List of archive names. First name is the real one, the rest are links.
19280 # The last name is the one that the linker finds with -lNAME.
19281 library_names_spec=$lt_library_names_spec
19283 # The coded name of the library, if different from the real name.
19284 soname_spec=$lt_soname_spec
19286 # Commands used to build and install an old-style archive.
19288 old_archive_cmds=$lt_old_archive_cmds_RC
19289 old_postinstall_cmds=$lt_old_postinstall_cmds
19290 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19292 # Create an old-style archive from a shared archive.
19293 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19295 # Create a temporary old-style archive to link instead of a shared archive.
19296 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19298 # Commands used to build and install a shared archive.
19299 archive_cmds=$lt_archive_cmds_RC
19300 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19301 postinstall_cmds=$lt_postinstall_cmds
19302 postuninstall_cmds=$lt_postuninstall_cmds
19304 # Commands used to build a loadable module (assumed same as above if empty)
19305 module_cmds=$lt_module_cmds_RC
19306 module_expsym_cmds=$lt_module_expsym_cmds_RC
19308 # Commands to strip libraries.
19309 old_striplib=$lt_old_striplib
19310 striplib=$lt_striplib
19312 # Dependencies to place before the objects being linked to create a
19314 predep_objects=$lt_predep_objects_RC
19316 # Dependencies to place after the objects being linked to create a
19318 postdep_objects=$lt_postdep_objects_RC
19320 # Dependencies to place before the objects being linked to create a
19322 predeps=$lt_predeps_RC
19324 # Dependencies to place after the objects being linked to create a
19326 postdeps=$lt_postdeps_RC
19328 # The library search path used internally by the compiler when linking
19329 # a shared library.
19330 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19332 # Method to check whether dependent libraries are shared objects.
19333 deplibs_check_method=$lt_deplibs_check_method
19335 # Command to use when deplibs_check_method == file_magic.
19336 file_magic_cmd=$lt_file_magic_cmd
19338 # Flag that allows shared libraries with undefined symbols to be built.
19339 allow_undefined_flag=$lt_allow_undefined_flag_RC
19341 # Flag that forces no undefined symbols.
19342 no_undefined_flag=$lt_no_undefined_flag_RC
19344 # Commands used to finish a libtool library installation in a directory.
19345 finish_cmds=$lt_finish_cmds
19347 # Same as above, but a single script fragment to be evaled but not shown.
19348 finish_eval=$lt_finish_eval
19350 # Take the output of nm and produce a listing of raw symbols and C names.
19351 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19353 # Transform the output of nm in a proper C declaration
19354 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19356 # Transform the output of nm in a C name address pair
19357 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19359 # This is the shared library runtime path variable.
19360 runpath_var=$runpath_var
19362 # This is the shared library path variable.
19363 shlibpath_var=$shlibpath_var
19365 # Is shlibpath searched before the hard-coded library search path?
19366 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19368 # How to hardcode a shared library path into an executable.
19369 hardcode_action=$hardcode_action_RC
19371 # Whether we should hardcode library paths into libraries.
19372 hardcode_into_libs=$hardcode_into_libs
19374 # Flag to hardcode \$libdir into a binary during linking.
19375 # This must work even if \$libdir does not exist.
19376 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19378 # If ld is used when linking, flag to hardcode \$libdir into
19379 # a binary during linking. This must work even if \$libdir does
19381 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19383 # Whether we need a single -rpath flag with a separated argument.
19384 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19386 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19387 # resulting binary.
19388 hardcode_direct=$hardcode_direct_RC
19390 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19391 # resulting binary.
19392 hardcode_minus_L=$hardcode_minus_L_RC
19394 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19395 # the resulting binary.
19396 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19398 # Set to yes if building a shared library automatically hardcodes DIR into the library
19399 # and all subsequent libraries and executables linked against it.
19400 hardcode_automatic=$hardcode_automatic_RC
19402 # Variables whose values should be saved in libtool wrapper scripts and
19403 # restored at relink time.
19404 variables_saved_for_relink="$variables_saved_for_relink"
19406 # Whether libtool must link a program against all its dependency libraries.
19407 link_all_deplibs=$link_all_deplibs_RC
19409 # Compile-time system search path for libraries
19410 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19412 # Run-time system search path for libraries
19413 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19415 # Fix the shell variable \$srcfile for the compiler.
19416 fix_srcfile_path="$fix_srcfile_path_RC"
19418 # Set to yes if exported symbols are required.
19419 always_export_symbols=$always_export_symbols_RC
19421 # The commands to list exported symbols.
19422 export_symbols_cmds=$lt_export_symbols_cmds_RC
19424 # The commands to extract the exported symbol list from a shared archive.
19425 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19427 # Symbols that should not be listed in the preloaded symbols.
19428 exclude_expsyms=$lt_exclude_expsyms_RC
19430 # Symbols that must always be exported.
19431 include_expsyms=$lt_include_expsyms_RC
19433 # ### END LIBTOOL TAG CONFIG: $tagname
19439 # If there is no Makefile yet, we rely on a make rule to execute
19440 # `config.status --recheck' to rerun these tests and create the
19441 # libtool script then.
19442 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19443 if test -f "$ltmain_in"; then
19444 test -f Makefile
&& make "$ltmain"
19450 ac_cpp
='$CPP $CPPFLAGS'
19451 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19452 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19453 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
19460 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19461 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19462 { (exit 1); exit 1; }; }
19466 # Append the new tag name to the list of available tags.
19467 if test -n "$tagname" ; then
19468 available_tags
="$available_tags $tagname"
19474 # Now substitute the updated list of available tags.
19475 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19476 mv "${ofile}T" "$ofile"
19480 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19481 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19482 { (exit 1); exit 1; }; }
19488 # This can be used to rebuild libtool when needed
19489 LIBTOOL_DEPS
="$ac_aux_dir/ltmain.sh"
19491 # Always use our own libtool.
19492 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
19494 # Prevent multiple expansion
19515 # Find a good install program. We prefer a C program (faster),
19516 # so one script is as good as another. But avoid the broken or
19517 # incompatible versions:
19518 # SysV /etc/install, /usr/sbin/install
19519 # SunOS /usr/etc/install
19520 # IRIX /sbin/install
19522 # AmigaOS /C/install, which installs bootblocks on floppy discs
19523 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
19524 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
19525 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
19526 # OS/2's system install, which has a completely different semantic
19527 # ./install, which can be erroneously created by make from ./install.sh.
19528 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
19529 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
19530 if test -z "$INSTALL"; then
19531 if test "${ac_cv_path_install+set}" = set; then
19532 echo $ECHO_N "(cached) $ECHO_C" >&6
19534 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19535 for as_dir
in $PATH
19538 test -z "$as_dir" && as_dir
=.
19539 # Account for people who put trailing slashes in PATH elements.
19541 .
/ | .
// |
/cC
/* | \
19542 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
19543 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
19546 # OSF1 and SCO ODT 3.0 have their own names for install.
19547 # Don't use installbsd from OSF since it installs stuff as root
19549 for ac_prog
in ginstall scoinst
install; do
19550 for ac_exec_ext
in '' $ac_executable_extensions; do
19551 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
19552 if test $ac_prog = install &&
19553 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
19554 # AIX install. It has an incompatible calling convention.
19556 elif test $ac_prog = install &&
19557 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
19558 # program-specific install script used by HP pwplus--don't use.
19561 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
19574 if test "${ac_cv_path_install+set}" = set; then
19575 INSTALL
=$ac_cv_path_install
19577 # As a last resort, use the slow shell script. Don't cache a
19578 # value for INSTALL within a source directory, because that will
19579 # break other packages using the cache if that directory is
19580 # removed, or if the value is a relative name.
19581 INSTALL
=$ac_install_sh
19584 { echo "$as_me:$LINENO: result: $INSTALL" >&5
19585 echo "${ECHO_T}$INSTALL" >&6; }
19587 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
19588 # It thinks the first close brace ends the variable substitution.
19589 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
19591 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
19593 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
19596 ac_cpp
='$CXXCPP $CPPFLAGS'
19597 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19598 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19599 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
19606 if test "$cross_compiling" = "yes"; then
19609 # MYPATH="/bin:/usr/bin:/usr/local/bin:$PATH:/sbin:/usr/sbin:/usr/local/sbin:/opt/gnu/bin"
19613 # Extract the first word of "python", so it can be a program name with args.
19614 set dummy python
; ac_word
=$2
19615 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19616 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19617 if test "${ac_cv_path___PYTHON+set}" = set; then
19618 echo $ECHO_N "(cached) $ECHO_C" >&6
19622 ac_cv_path___PYTHON
="$__PYTHON" # Let the user override the test with a path.
19625 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19626 for as_dir
in $MYPATH
19629 test -z "$as_dir" && as_dir
=.
19630 for ac_exec_ext
in '' $ac_executable_extensions; do
19631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
19632 ac_cv_path___PYTHON
="$as_dir/$ac_word$ac_exec_ext"
19633 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19640 test -z "$ac_cv_path___PYTHON" && ac_cv_path___PYTHON
="/usr/bin/python"
19644 __PYTHON
=$ac_cv_path___PYTHON
19645 if test -n "$__PYTHON"; then
19646 { echo "$as_me:$LINENO: result: $__PYTHON" >&5
19647 echo "${ECHO_T}$__PYTHON" >&6; }
19649 { echo "$as_me:$LINENO: result: no" >&5
19650 echo "${ECHO_T}no" >&6; }
19655 LIBZTHREAD_MAJOR_VERSION
=2
19656 LIBZTHREAD_MINOR_VERSION
=3
19657 LIBZTHREAD_MICRO_VERSION
=2
19658 LT_RELEASE
=$LIBZTHREAD_MAJOR_VERSION.
$LIBZTHREAD_MINOR_VERSION.
$LIBZTHREAD_MICRO_VERSION
19659 LT_CURRENT
=$LIBZTHREAD_MAJOR_VERSION
19660 LT_REVISION
=$LIBZTHREAD_MINOR_VERSION
19661 LT_AGE
=$LIBZTHREAD_MICRO_VERSION
19663 LIBMANGOSSCRIPT_MAJOR_VERSION
=0
19664 LIBMANGOSSCRIPT_MINOR_VERSION
=2
19665 LIBMANGOSSCRIPT_MICRO_VERSION
=0
19666 LTMS_RELEASE
=$LIBMANGOSSCRIPT_MAJOR_VERSION.
$LIBMANGOSSCRIPT_MINOR_VERSION.
$LIBMANGOSSCRIPT_MICRO_VERSION
19667 LTMS_CURRENT
=$LIBMANGOSSCRIPT_MAJOR_VERSION
19668 LTMS_REVISION
=$LIBMANGOSSCRIPT_MINOR_VERSION
19669 LTMS_AGE
=$LIBMANGOSSCRIPT_MICRO_VERSION
19671 COMPILER_OPTIONS
=""
19674 # check for openssl path given
19676 # Check whether --with-openssl was given.
19677 if test "${with_openssl+set}" = set; then
19678 withval
=$with_openssl;
19679 as_ac_File
=`echo "ac_cv_file_$withval/include/openssl/ssl.h" | $as_tr_sh`
19680 { echo "$as_me:$LINENO: checking for $withval/include/openssl/ssl.h" >&5
19681 echo $ECHO_N "checking for $withval/include/openssl/ssl.h... $ECHO_C" >&6; }
19682 if { as_var
=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
19683 echo $ECHO_N "(cached) $ECHO_C" >&6
19685 test "$cross_compiling" = yes &&
19686 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
19687 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
19688 { (exit 1); exit 1; }; }
19689 if test -r "$withval/include/openssl/ssl.h"; then
19690 eval "$as_ac_File=yes"
19692 eval "$as_ac_File=no"
19695 ac_res
=`eval echo '${'$as_ac_File'}'`
19696 { echo "$as_me:$LINENO: result: $ac_res" >&5
19697 echo "${ECHO_T}$ac_res" >&6; }
19698 if test `eval echo '${'$as_ac_File'}'` = yes; then
19700 OPENSSL_INCLUDES
="-I$withval/include"
19701 OPENSSL_LDFLAGS
="-L$withval/lib"
19703 { { echo "$as_me:$LINENO: error: Directory '$withval' does not exist, or does not contain OpenSSL" >&5
19704 echo "$as_me: error: Directory '$withval' does not exist, or does not contain OpenSSL" >&2;}
19705 { (exit 1); exit 1; }; }
19710 OPENSSL_INCLUDES
=""
19718 # check for mysql path given
19720 # Check whether --with-mysql was given.
19721 if test "${with_mysql+set}" = set; then
19722 withval
=$with_mysql;
19723 as_ac_File
=`echo "ac_cv_file_$withval/include/mysql.h" | $as_tr_sh`
19724 { echo "$as_me:$LINENO: checking for $withval/include/mysql.h" >&5
19725 echo $ECHO_N "checking for $withval/include/mysql.h... $ECHO_C" >&6; }
19726 if { as_var
=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
19727 echo $ECHO_N "(cached) $ECHO_C" >&6
19729 test "$cross_compiling" = yes &&
19730 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
19731 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
19732 { (exit 1); exit 1; }; }
19733 if test -r "$withval/include/mysql.h"; then
19734 eval "$as_ac_File=yes"
19736 eval "$as_ac_File=no"
19739 ac_res
=`eval echo '${'$as_ac_File'}'`
19740 { echo "$as_me:$LINENO: result: $ac_res" >&5
19741 echo "${ECHO_T}$ac_res" >&6; }
19742 if test `eval echo '${'$as_ac_File'}'` = yes; then
19743 MYSQL_INCLUDES
="-I$withval/include"
19744 MYSQL_LDFLAGS
="-L$withval/lib"
19746 { { echo "$as_me:$LINENO: error: Directory '$withval' does not exist, or does not contain MySQL" >&5
19747 echo "$as_me: error: Directory '$withval' does not exist, or does not contain MySQL" >&2;}
19748 { (exit 1); exit 1; }; }
19753 MYSQL_INCLUDES
="-I/usr/include/mysql -I/usr/local/include/mysql"
19754 MYSQL_LDFLAGS
="-L/usr/lib/mysql -L/usr/local/lib/mysql"
19761 INCLUDES
="$MYSQL_INCLUDES $OPENSSL_INCLUDES"
19762 LDFLAGS
="$MYSQL_LDFLAGS $OPENSSL_LDFLAGS"
19769 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
19770 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
19771 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
19772 echo $ECHO_N "(cached) $ECHO_C" >&6
19774 ac_check_lib_save_LIBS
=$LIBS
19775 LIBS
="-lpthread $LIBS"
19776 cat >conftest.
$ac_ext <<_ACEOF
19779 cat confdefs.h
>>conftest.
$ac_ext
19780 cat >>conftest.
$ac_ext <<_ACEOF
19781 /* end confdefs.h. */
19783 /* Override any GCC internal prototype to avoid an error.
19784 Use char because int might match the return type of a GCC
19785 builtin and then its argument prototype would still apply. */
19789 char pthread_create ();
19793 return pthread_create ();
19798 rm -f conftest.
$ac_objext conftest
$ac_exeext
19799 if { (ac_try
="$ac_link"
19800 case "(($ac_try" in
19801 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19802 *) ac_try_echo=$ac_try;;
19804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19805 (eval "$ac_link") 2>conftest.er1
19807 grep -v '^ *+' conftest.er1 >conftest.err
19809 cat conftest.err >&5
19810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19811 (exit $ac_status); } &&
19812 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19813 { (case "(($ac_try" in
19814 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19815 *) ac_try_echo
=$ac_try;;
19817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19818 (eval "$ac_try") 2>&5
19820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19821 (exit $ac_status); }; } &&
19822 { ac_try
='test -s conftest$ac_exeext'
19823 { (case "(($ac_try" in
19824 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19825 *) ac_try_echo=$ac_try;;
19827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19828 (eval "$ac_try") 2>&5
19830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19831 (exit $ac_status); }; }; then
19832 ac_cv_lib_pthread_pthread_create=yes
19834 echo "$as_me: failed program was:" >&5
19835 sed 's/^/| /' conftest.$ac_ext >&5
19837 ac_cv_lib_pthread_pthread_create=no
19840 rm -f core conftest.err conftest.$ac_objext \
19841 conftest$ac_exeext conftest.$ac_ext
19842 LIBS=$ac_check_lib_save_LIBS
19844 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
19845 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
19846 if test $ac_cv_lib_pthread_pthread_create = yes; then
19847 cat >>confdefs.h <<_ACEOF
19848 #define HAVE_LIBPTHREAD 1
19851 LIBS="-lpthread $LIBS"
19854 LDFLAGS="-pthread $LDFLAGS"
19855 cat >conftest.$ac_ext <<_ACEOF
19858 cat confdefs.h >>conftest.$ac_ext
19859 cat >>conftest.$ac_ext <<_ACEOF
19860 /* end confdefs.h. */
19861 char pthread_create();
19870 rm -f conftest.$ac_objext conftest$ac_exeext
19871 if { (ac_try="$ac_link"
19872 case "(($ac_try" in
19873 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19874 *) ac_try_echo
=$ac_try;;
19876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19877 (eval "$ac_link") 2>conftest.er1
19879 grep -v '^ *+' conftest.er1
>conftest.err
19881 cat conftest.err
>&5
19882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19883 (exit $ac_status); } &&
19884 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19885 { (case "(($ac_try" in
19886 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19887 *) ac_try_echo=$ac_try;;
19889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19890 (eval "$ac_try") 2>&5
19892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19893 (exit $ac_status); }; } &&
19894 { ac_try='test -s conftest$ac_exeext'
19895 { (case "(($ac_try" in
19896 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19897 *) ac_try_echo
=$ac_try;;
19899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19900 (eval "$ac_try") 2>&5
19902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19903 (exit $ac_status); }; }; then
19906 echo "$as_me: failed program was:" >&5
19907 sed 's/^/| /' conftest.
$ac_ext >&5
19909 { { echo "$as_me:$LINENO: error: Missing pthread" >&5
19910 echo "$as_me: error: Missing pthread" >&2;}
19911 { (exit 1); exit 1; }; }
19914 rm -f core conftest.err conftest.
$ac_objext \
19915 conftest
$ac_exeext conftest.
$ac_ext
19920 { echo "$as_me:$LINENO: checking for compress in -lz" >&5
19921 echo $ECHO_N "checking for compress in -lz... $ECHO_C" >&6; }
19922 if test "${ac_cv_lib_z_compress+set}" = set; then
19923 echo $ECHO_N "(cached) $ECHO_C" >&6
19925 ac_check_lib_save_LIBS
=$LIBS
19927 cat >conftest.
$ac_ext <<_ACEOF
19930 cat confdefs.h
>>conftest.
$ac_ext
19931 cat >>conftest.
$ac_ext <<_ACEOF
19932 /* end confdefs.h. */
19934 /* Override any GCC internal prototype to avoid an error.
19935 Use char because int might match the return type of a GCC
19936 builtin and then its argument prototype would still apply. */
19944 return compress ();
19949 rm -f conftest.
$ac_objext conftest
$ac_exeext
19950 if { (ac_try
="$ac_link"
19951 case "(($ac_try" in
19952 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19953 *) ac_try_echo=$ac_try;;
19955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19956 (eval "$ac_link") 2>conftest.er1
19958 grep -v '^ *+' conftest.er1 >conftest.err
19960 cat conftest.err >&5
19961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19962 (exit $ac_status); } &&
19963 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19964 { (case "(($ac_try" in
19965 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19966 *) ac_try_echo
=$ac_try;;
19968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19969 (eval "$ac_try") 2>&5
19971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19972 (exit $ac_status); }; } &&
19973 { ac_try
='test -s conftest$ac_exeext'
19974 { (case "(($ac_try" in
19975 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19976 *) ac_try_echo=$ac_try;;
19978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19979 (eval "$ac_try") 2>&5
19981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19982 (exit $ac_status); }; }; then
19983 ac_cv_lib_z_compress=yes
19985 echo "$as_me: failed program was:" >&5
19986 sed 's/^/| /' conftest.$ac_ext >&5
19988 ac_cv_lib_z_compress=no
19991 rm -f core conftest.err conftest.$ac_objext \
19992 conftest$ac_exeext conftest.$ac_ext
19993 LIBS=$ac_check_lib_save_LIBS
19995 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress" >&5
19996 echo "${ECHO_T}$ac_cv_lib_z_compress" >&6; }
19997 if test $ac_cv_lib_z_compress = yes; then
19998 cat >>confdefs.h <<_ACEOF
19999 #define HAVE_LIBZ 1
20005 { { echo "$as_me:$LINENO: error: Missing zlib" >&5
20006 echo "$as_me: error: Missing zlib" >&2;}
20007 { (exit 1); exit 1; }; }
20011 { echo "$as_me:$LINENO: checking for ftime in -lcompat" >&5
20012 echo $ECHO_N "checking for ftime in -lcompat... $ECHO_C" >&6; }
20013 if test "${ac_cv_lib_compat_ftime_+set}" = set; then
20014 echo $ECHO_N "(cached) $ECHO_C" >&6
20016 ac_check_lib_save_LIBS=$LIBS
20017 LIBS="-lcompat $LIBS"
20018 cat >conftest.$ac_ext <<_ACEOF
20021 cat confdefs.h >>conftest.$ac_ext
20022 cat >>conftest.$ac_ext <<_ACEOF
20023 /* end confdefs.h. */
20025 /* Override any GCC internal prototype to avoid an error.
20026 Use char because int might match the return type of a GCC
20027 builtin and then its argument prototype would still apply. */
20040 rm -f conftest.$ac_objext conftest$ac_exeext
20041 if { (ac_try="$ac_link"
20042 case "(($ac_try" in
20043 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20044 *) ac_try_echo
=$ac_try;;
20046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20047 (eval "$ac_link") 2>conftest.er1
20049 grep -v '^ *+' conftest.er1
>conftest.err
20051 cat conftest.err
>&5
20052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20053 (exit $ac_status); } &&
20054 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20055 { (case "(($ac_try" in
20056 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20057 *) ac_try_echo=$ac_try;;
20059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20060 (eval "$ac_try") 2>&5
20062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20063 (exit $ac_status); }; } &&
20064 { ac_try='test -s conftest$ac_exeext'
20065 { (case "(($ac_try" in
20066 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20067 *) ac_try_echo
=$ac_try;;
20069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20070 (eval "$ac_try") 2>&5
20072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20073 (exit $ac_status); }; }; then
20074 ac_cv_lib_compat_ftime_
=yes
20076 echo "$as_me: failed program was:" >&5
20077 sed 's/^/| /' conftest.
$ac_ext >&5
20079 ac_cv_lib_compat_ftime_
=no
20082 rm -f core conftest.err conftest.
$ac_objext \
20083 conftest
$ac_exeext conftest.
$ac_ext
20084 LIBS
=$ac_check_lib_save_LIBS
20086 { echo "$as_me:$LINENO: result: $ac_cv_lib_compat_ftime_" >&5
20087 echo "${ECHO_T}$ac_cv_lib_compat_ftime_" >&6; }
20088 if test $ac_cv_lib_compat_ftime_ = yes; then
20089 cat >>confdefs.h
<<_ACEOF
20090 #define HAVE_LIBCOMPAT 1
20093 LIBS
="-lcompat $LIBS"
20098 { echo "$as_me:$LINENO: checking for mysql_init in -lmysqlclient_r" >&5
20099 echo $ECHO_N "checking for mysql_init in -lmysqlclient_r... $ECHO_C" >&6; }
20100 if test "${ac_cv_lib_mysqlclient_r_mysql_init+set}" = set; then
20101 echo $ECHO_N "(cached) $ECHO_C" >&6
20103 ac_check_lib_save_LIBS
=$LIBS
20104 LIBS
="-lmysqlclient_r $LIBS"
20105 cat >conftest.
$ac_ext <<_ACEOF
20108 cat confdefs.h
>>conftest.
$ac_ext
20109 cat >>conftest.
$ac_ext <<_ACEOF
20110 /* end confdefs.h. */
20112 /* Override any GCC internal prototype to avoid an error.
20113 Use char because int might match the return type of a GCC
20114 builtin and then its argument prototype would still apply. */
20118 char mysql_init ();
20122 return mysql_init ();
20127 rm -f conftest.
$ac_objext conftest
$ac_exeext
20128 if { (ac_try
="$ac_link"
20129 case "(($ac_try" in
20130 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20131 *) ac_try_echo=$ac_try;;
20133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20134 (eval "$ac_link") 2>conftest.er1
20136 grep -v '^ *+' conftest.er1 >conftest.err
20138 cat conftest.err >&5
20139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20140 (exit $ac_status); } &&
20141 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20142 { (case "(($ac_try" in
20143 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20144 *) ac_try_echo
=$ac_try;;
20146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20147 (eval "$ac_try") 2>&5
20149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20150 (exit $ac_status); }; } &&
20151 { ac_try
='test -s conftest$ac_exeext'
20152 { (case "(($ac_try" in
20153 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20154 *) ac_try_echo=$ac_try;;
20156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20157 (eval "$ac_try") 2>&5
20159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20160 (exit $ac_status); }; }; then
20161 ac_cv_lib_mysqlclient_r_mysql_init=yes
20163 echo "$as_me: failed program was:" >&5
20164 sed 's/^/| /' conftest.$ac_ext >&5
20166 ac_cv_lib_mysqlclient_r_mysql_init=no
20169 rm -f core conftest.err conftest.$ac_objext \
20170 conftest$ac_exeext conftest.$ac_ext
20171 LIBS=$ac_check_lib_save_LIBS
20173 { echo "$as_me:$LINENO: result: $ac_cv_lib_mysqlclient_r_mysql_init" >&5
20174 echo "${ECHO_T}$ac_cv_lib_mysqlclient_r_mysql_init" >&6; }
20175 if test $ac_cv_lib_mysqlclient_r_mysql_init = yes; then
20176 cat >>confdefs.h <<_ACEOF
20177 #define HAVE_LIBMYSQLCLIENT_R 1
20180 LIBS="-lmysqlclient_r $LIBS"
20184 { echo "$as_me:$LINENO: checking for mysql_init in -lmysql" >&5
20185 echo $ECHO_N "checking for mysql_init in -lmysql... $ECHO_C" >&6; }
20186 if test "${ac_cv_lib_mysql_mysql_init+set}" = set; then
20187 echo $ECHO_N "(cached) $ECHO_C" >&6
20189 ac_check_lib_save_LIBS=$LIBS
20190 LIBS="-lmysql $LIBS"
20191 cat >conftest.$ac_ext <<_ACEOF
20194 cat confdefs.h >>conftest.$ac_ext
20195 cat >>conftest.$ac_ext <<_ACEOF
20196 /* end confdefs.h. */
20198 /* Override any GCC internal prototype to avoid an error.
20199 Use char because int might match the return type of a GCC
20200 builtin and then its argument prototype would still apply. */
20204 char mysql_init ();
20208 return mysql_init ();
20213 rm -f conftest.$ac_objext conftest$ac_exeext
20214 if { (ac_try="$ac_link"
20215 case "(($ac_try" in
20216 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20217 *) ac_try_echo
=$ac_try;;
20219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20220 (eval "$ac_link") 2>conftest.er1
20222 grep -v '^ *+' conftest.er1
>conftest.err
20224 cat conftest.err
>&5
20225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20226 (exit $ac_status); } &&
20227 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20228 { (case "(($ac_try" in
20229 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20230 *) ac_try_echo=$ac_try;;
20232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20233 (eval "$ac_try") 2>&5
20235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20236 (exit $ac_status); }; } &&
20237 { ac_try='test -s conftest$ac_exeext'
20238 { (case "(($ac_try" in
20239 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20240 *) ac_try_echo
=$ac_try;;
20242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20243 (eval "$ac_try") 2>&5
20245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20246 (exit $ac_status); }; }; then
20247 ac_cv_lib_mysql_mysql_init
=yes
20249 echo "$as_me: failed program was:" >&5
20250 sed 's/^/| /' conftest.
$ac_ext >&5
20252 ac_cv_lib_mysql_mysql_init
=no
20255 rm -f core conftest.err conftest.
$ac_objext \
20256 conftest
$ac_exeext conftest.
$ac_ext
20257 LIBS
=$ac_check_lib_save_LIBS
20259 { echo "$as_me:$LINENO: result: $ac_cv_lib_mysql_mysql_init" >&5
20260 echo "${ECHO_T}$ac_cv_lib_mysql_mysql_init" >&6; }
20261 if test $ac_cv_lib_mysql_mysql_init = yes; then
20262 cat >>confdefs.h
<<_ACEOF
20263 #define HAVE_LIBMYSQL 1
20266 LIBS
="-lmysql $LIBS"
20269 { { echo "$as_me:$LINENO: error: Missing mysql" >&5
20270 echo "$as_me: error: Missing mysql" >&2;}
20271 { (exit 1); exit 1; }; }
20277 { echo "$as_me:$LINENO: checking for SHA1_Init in -lssl" >&5
20278 echo $ECHO_N "checking for SHA1_Init in -lssl... $ECHO_C" >&6; }
20279 if test "${ac_cv_lib_ssl_SHA1_Init+set}" = set; then
20280 echo $ECHO_N "(cached) $ECHO_C" >&6
20282 ac_check_lib_save_LIBS
=$LIBS
20284 cat >conftest.
$ac_ext <<_ACEOF
20287 cat confdefs.h
>>conftest.
$ac_ext
20288 cat >>conftest.
$ac_ext <<_ACEOF
20289 /* end confdefs.h. */
20291 /* Override any GCC internal prototype to avoid an error.
20292 Use char because int might match the return type of a GCC
20293 builtin and then its argument prototype would still apply. */
20301 return SHA1_Init ();
20306 rm -f conftest.
$ac_objext conftest
$ac_exeext
20307 if { (ac_try
="$ac_link"
20308 case "(($ac_try" in
20309 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20310 *) ac_try_echo=$ac_try;;
20312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20313 (eval "$ac_link") 2>conftest.er1
20315 grep -v '^ *+' conftest.er1 >conftest.err
20317 cat conftest.err >&5
20318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20319 (exit $ac_status); } &&
20320 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20321 { (case "(($ac_try" in
20322 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20323 *) ac_try_echo
=$ac_try;;
20325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20326 (eval "$ac_try") 2>&5
20328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20329 (exit $ac_status); }; } &&
20330 { ac_try
='test -s conftest$ac_exeext'
20331 { (case "(($ac_try" in
20332 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20333 *) ac_try_echo=$ac_try;;
20335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20336 (eval "$ac_try") 2>&5
20338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20339 (exit $ac_status); }; }; then
20340 ac_cv_lib_ssl_SHA1_Init=yes
20342 echo "$as_me: failed program was:" >&5
20343 sed 's/^/| /' conftest.$ac_ext >&5
20345 ac_cv_lib_ssl_SHA1_Init=no
20348 rm -f core conftest.err conftest.$ac_objext \
20349 conftest$ac_exeext conftest.$ac_ext
20350 LIBS=$ac_check_lib_save_LIBS
20352 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SHA1_Init" >&5
20353 echo "${ECHO_T}$ac_cv_lib_ssl_SHA1_Init" >&6; }
20354 if test $ac_cv_lib_ssl_SHA1_Init = yes; then
20355 cat >>confdefs.h <<_ACEOF
20356 #define HAVE_LIBSSL 1
20363 { echo "$as_me:$LINENO: checking for SHA1_Init in -lssl" >&5
20364 echo $ECHO_N "checking for SHA1_Init in -lssl... $ECHO_C" >&6; }
20365 if test "${ac_cv_lib_ssl_SHA1_Init+set}" = set; then
20366 echo $ECHO_N "(cached) $ECHO_C" >&6
20368 ac_check_lib_save_LIBS=$LIBS
20370 cat >conftest.$ac_ext <<_ACEOF
20373 cat confdefs.h >>conftest.$ac_ext
20374 cat >>conftest.$ac_ext <<_ACEOF
20375 /* end confdefs.h. */
20377 /* Override any GCC internal prototype to avoid an error.
20378 Use char because int might match the return type of a GCC
20379 builtin and then its argument prototype would still apply. */
20387 return SHA1_Init ();
20392 rm -f conftest.$ac_objext conftest$ac_exeext
20393 if { (ac_try="$ac_link"
20394 case "(($ac_try" in
20395 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20396 *) ac_try_echo
=$ac_try;;
20398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20399 (eval "$ac_link") 2>conftest.er1
20401 grep -v '^ *+' conftest.er1
>conftest.err
20403 cat conftest.err
>&5
20404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20405 (exit $ac_status); } &&
20406 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20407 { (case "(($ac_try" in
20408 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20409 *) ac_try_echo=$ac_try;;
20411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20412 (eval "$ac_try") 2>&5
20414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20415 (exit $ac_status); }; } &&
20416 { ac_try='test -s conftest$ac_exeext'
20417 { (case "(($ac_try" in
20418 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20419 *) ac_try_echo
=$ac_try;;
20421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20422 (eval "$ac_try") 2>&5
20424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20425 (exit $ac_status); }; }; then
20426 ac_cv_lib_ssl_SHA1_Init
=yes
20428 echo "$as_me: failed program was:" >&5
20429 sed 's/^/| /' conftest.
$ac_ext >&5
20431 ac_cv_lib_ssl_SHA1_Init
=no
20434 rm -f core conftest.err conftest.
$ac_objext \
20435 conftest
$ac_exeext conftest.
$ac_ext
20436 LIBS
=$ac_check_lib_save_LIBS
20438 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SHA1_Init" >&5
20439 echo "${ECHO_T}$ac_cv_lib_ssl_SHA1_Init" >&6; }
20440 if test $ac_cv_lib_ssl_SHA1_Init = yes; then
20441 cat >>confdefs.h
<<_ACEOF
20442 #define HAVE_LIBSSL 1
20448 { { echo "$as_me:$LINENO: error: Missing openssl" >&5
20449 echo "$as_me: error: Missing openssl" >&2;}
20450 { (exit 1); exit 1; }; }
20456 CPPFLAGS_SAVE
=$CPPFLAGS
20457 CPPFLAGS
=$INCLUDES $CPPFLAGS
20460 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20461 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
20462 if test "${ac_cv_header_stdc+set}" = set; then
20463 echo $ECHO_N "(cached) $ECHO_C" >&6
20465 cat >conftest.
$ac_ext <<_ACEOF
20468 cat confdefs.h
>>conftest.
$ac_ext
20469 cat >>conftest.
$ac_ext <<_ACEOF
20470 /* end confdefs.h. */
20471 #include <stdlib.h>
20472 #include <stdarg.h>
20473 #include <string.h>
20484 rm -f conftest.
$ac_objext
20485 if { (ac_try
="$ac_compile"
20486 case "(($ac_try" in
20487 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20488 *) ac_try_echo=$ac_try;;
20490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20491 (eval "$ac_compile") 2>conftest.er1
20493 grep -v '^ *+' conftest.er1 >conftest.err
20495 cat conftest.err >&5
20496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20497 (exit $ac_status); } &&
20498 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20499 { (case "(($ac_try" in
20500 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20501 *) ac_try_echo
=$ac_try;;
20503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20504 (eval "$ac_try") 2>&5
20506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20507 (exit $ac_status); }; } &&
20508 { ac_try
='test -s conftest.$ac_objext'
20509 { (case "(($ac_try" in
20510 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20511 *) ac_try_echo=$ac_try;;
20513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20514 (eval "$ac_try") 2>&5
20516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20517 (exit $ac_status); }; }; then
20518 ac_cv_header_stdc=yes
20520 echo "$as_me: failed program was:" >&5
20521 sed 's/^/| /' conftest.$ac_ext >&5
20523 ac_cv_header_stdc=no
20526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20528 if test $ac_cv_header_stdc = yes; then
20529 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20530 cat >conftest.$ac_ext <<_ACEOF
20533 cat confdefs.h >>conftest.$ac_ext
20534 cat >>conftest.$ac_ext <<_ACEOF
20535 /* end confdefs.h. */
20536 #include <string.h>
20539 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20540 $EGREP "memchr" >/dev/null 2>&1; then
20543 ac_cv_header_stdc=no
20549 if test $ac_cv_header_stdc = yes; then
20550 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20551 cat >conftest.$ac_ext <<_ACEOF
20554 cat confdefs.h >>conftest.$ac_ext
20555 cat >>conftest.$ac_ext <<_ACEOF
20556 /* end confdefs.h. */
20557 #include <stdlib.h>
20560 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20561 $EGREP "free" >/dev/null 2>&1; then
20564 ac_cv_header_stdc=no
20570 if test $ac_cv_header_stdc = yes; then
20571 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20572 if test "$cross_compiling" = yes; then
20575 cat >conftest.$ac_ext <<_ACEOF
20578 cat confdefs.h >>conftest.$ac_ext
20579 cat >>conftest.$ac_ext <<_ACEOF
20580 /* end confdefs.h. */
20582 #include <stdlib.h>
20583 #if ((' ' & 0x0FF) == 0x020)
20584 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20585 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20587 # define ISLOWER(c) \
20588 (('a' <= (c) && (c) <= 'i') \
20589 || ('j' <= (c) && (c) <= 'r') \
20590 || ('s' <= (c) && (c) <= 'z'))
20591 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20594 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20599 for (i = 0; i < 256; i++)
20600 if (XOR (islower (i), ISLOWER (i))
20601 || toupper (i) != TOUPPER (i))
20606 rm -f conftest$ac_exeext
20607 if { (ac_try="$ac_link"
20608 case "(($ac_try" in
20609 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20610 *) ac_try_echo
=$ac_try;;
20612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20613 (eval "$ac_link") 2>&5
20615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20616 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20617 { (case "(($ac_try" in
20618 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20619 *) ac_try_echo=$ac_try;;
20621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20622 (eval "$ac_try") 2>&5
20624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20625 (exit $ac_status); }; }; then
20628 echo "$as_me: program exited with status $ac_status" >&5
20629 echo "$as_me: failed program was:" >&5
20630 sed 's/^/| /' conftest.$ac_ext >&5
20632 ( exit $ac_status )
20633 ac_cv_header_stdc=no
20635 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20641 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20642 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
20643 if test $ac_cv_header_stdc = yes; then
20645 cat >>confdefs.h <<\_ACEOF
20646 #define STDC_HEADERS 1
20651 { echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
20652 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; }
20653 if test "${ac_cv_header_stdbool_h+set}" = set; then
20654 echo $ECHO_N "(cached) $ECHO_C" >&6
20656 cat >conftest.$ac_ext <<_ACEOF
20659 cat confdefs.h >>conftest.$ac_ext
20660 cat >>conftest.$ac_ext <<_ACEOF
20661 /* end confdefs.h. */
20663 #include <stdbool.h>
20665 "error: bool is not defined"
20668 "error: false is not defined"
20671 "error: false is not 0"
20674 "error: true is not defined"
20677 "error: true is not 1"
20679 #ifndef __bool_true_false_are_defined
20680 "error: __bool_true_false_are_defined is not defined"
20683 struct s { _Bool s: 1; _Bool t; } s;
20685 char a[true == 1 ? 1 : -1];
20686 char b[false == 0 ? 1 : -1];
20687 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
20688 char d[(bool) 0.5 == true ? 1 : -1];
20690 char f[(_Bool) 0.0 == false ? 1 : -1];
20692 char h[sizeof (_Bool)];
20693 char i[sizeof s.t];
20694 enum { j = false, k = true, l = false * true, m = true * 256 };
20696 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
20697 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
20698 # if defined __xlc__ || defined __GNUC__
20699 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
20700 reported by James Lemley on 2005-10-05; see
20701 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
20702 This test is not quite right, since xlc is allowed to
20703 reject this program, as the initializer for xlcbug is
20704 not one of the forms that C requires support for.
20705 However, doing the test right would require a runtime
20706 test, and that would make cross-compilation harder.
20707 Let us hope that IBM fixes the xlc bug, and also adds
20708 support for this kind of constant expression. In the
20709 meantime, this test will reject xlc, which is OK, since
20710 our stdbool.h substitute should suffice. We also test
20711 this with GCC, where it should work, to detect more
20712 quickly whether someone messes up the test in the
20714 char digs[] = "0123456789";
20715 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
20717 /* Catch a bug in an HP-UX C compiler. See
20718 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
20719 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
20730 /* Refer to every declared value, to avoid compiler optimizations. */
20731 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
20732 + !m + !n + !o + !p + !q + !pq);
20738 rm -f conftest.$ac_objext
20739 if { (ac_try="$ac_compile"
20740 case "(($ac_try" in
20741 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20742 *) ac_try_echo
=$ac_try;;
20744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20745 (eval "$ac_compile") 2>conftest.er1
20747 grep -v '^ *+' conftest.er1
>conftest.err
20749 cat conftest.err
>&5
20750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20751 (exit $ac_status); } &&
20752 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20753 { (case "(($ac_try" in
20754 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20755 *) ac_try_echo=$ac_try;;
20757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20758 (eval "$ac_try") 2>&5
20760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20761 (exit $ac_status); }; } &&
20762 { ac_try='test -s conftest.$ac_objext'
20763 { (case "(($ac_try" in
20764 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20765 *) ac_try_echo
=$ac_try;;
20767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20768 (eval "$ac_try") 2>&5
20770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20771 (exit $ac_status); }; }; then
20772 ac_cv_header_stdbool_h
=yes
20774 echo "$as_me: failed program was:" >&5
20775 sed 's/^/| /' conftest.
$ac_ext >&5
20777 ac_cv_header_stdbool_h
=no
20780 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20782 { echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
20783 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
20784 { echo "$as_me:$LINENO: checking for _Bool" >&5
20785 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
20786 if test "${ac_cv_type__Bool+set}" = set; then
20787 echo $ECHO_N "(cached) $ECHO_C" >&6
20789 cat >conftest.
$ac_ext <<_ACEOF
20792 cat confdefs.h
>>conftest.
$ac_ext
20793 cat >>conftest.
$ac_ext <<_ACEOF
20794 /* end confdefs.h. */
20795 $ac_includes_default
20796 typedef _Bool ac__type_new_;
20800 if ((ac__type_new_ *) 0)
20802 if (sizeof (ac__type_new_))
20808 rm -f conftest.
$ac_objext
20809 if { (ac_try
="$ac_compile"
20810 case "(($ac_try" in
20811 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20812 *) ac_try_echo=$ac_try;;
20814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20815 (eval "$ac_compile") 2>conftest.er1
20817 grep -v '^ *+' conftest.er1 >conftest.err
20819 cat conftest.err >&5
20820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20821 (exit $ac_status); } &&
20822 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20823 { (case "(($ac_try" in
20824 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20825 *) ac_try_echo
=$ac_try;;
20827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20828 (eval "$ac_try") 2>&5
20830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20831 (exit $ac_status); }; } &&
20832 { ac_try
='test -s conftest.$ac_objext'
20833 { (case "(($ac_try" in
20834 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20835 *) ac_try_echo=$ac_try;;
20837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20838 (eval "$ac_try") 2>&5
20840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20841 (exit $ac_status); }; }; then
20842 ac_cv_type__Bool=yes
20844 echo "$as_me: failed program was:" >&5
20845 sed 's/^/| /' conftest.$ac_ext >&5
20847 ac_cv_type__Bool=no
20850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20852 { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
20853 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
20854 if test $ac_cv_type__Bool = yes; then
20856 cat >>confdefs.h <<_ACEOF
20857 #define HAVE__BOOL 1
20863 if test $ac_cv_header_stdbool_h = yes; then
20865 cat >>confdefs.h <<\_ACEOF
20866 #define HAVE_STDBOOL_H 1
20871 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20872 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
20873 if test "${ac_cv_header_time+set}" = set; then
20874 echo $ECHO_N "(cached) $ECHO_C" >&6
20876 cat >conftest.$ac_ext <<_ACEOF
20879 cat confdefs.h >>conftest.$ac_ext
20880 cat >>conftest.$ac_ext <<_ACEOF
20881 /* end confdefs.h. */
20882 #include <sys/types.h>
20883 #include <sys/time.h>
20889 if ((struct tm *) 0)
20895 rm -f conftest.$ac_objext
20896 if { (ac_try="$ac_compile"
20897 case "(($ac_try" in
20898 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20899 *) ac_try_echo
=$ac_try;;
20901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20902 (eval "$ac_compile") 2>conftest.er1
20904 grep -v '^ *+' conftest.er1
>conftest.err
20906 cat conftest.err
>&5
20907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20908 (exit $ac_status); } &&
20909 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20910 { (case "(($ac_try" in
20911 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20912 *) ac_try_echo=$ac_try;;
20914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20915 (eval "$ac_try") 2>&5
20917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20918 (exit $ac_status); }; } &&
20919 { ac_try='test -s conftest.$ac_objext'
20920 { (case "(($ac_try" in
20921 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20922 *) ac_try_echo
=$ac_try;;
20924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20925 (eval "$ac_try") 2>&5
20927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20928 (exit $ac_status); }; }; then
20929 ac_cv_header_time
=yes
20931 echo "$as_me: failed program was:" >&5
20932 sed 's/^/| /' conftest.
$ac_ext >&5
20934 ac_cv_header_time
=no
20937 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20939 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20940 echo "${ECHO_T}$ac_cv_header_time" >&6; }
20941 if test $ac_cv_header_time = yes; then
20943 cat >>confdefs.h
<<\_ACEOF
20944 #define TIME_WITH_SYS_TIME 1
20963 limits.h sys
/ioctl.h unistd.h fcntl.h float.h mysql.h \
20964 netdb.h netinet
/in.h stddef.h sys
/socket.h \
20965 sys
/time.h sys
/timeb.h openssl
/opensslv.h \
20968 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20969 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20970 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20971 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20972 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20973 echo $ECHO_N "(cached) $ECHO_C" >&6
20975 ac_res
=`eval echo '${'$as_ac_Header'}'`
20976 { echo "$as_me:$LINENO: result: $ac_res" >&5
20977 echo "${ECHO_T}$ac_res" >&6; }
20979 # Is the header compilable?
20980 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20981 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20982 cat >conftest.
$ac_ext <<_ACEOF
20985 cat confdefs.h
>>conftest.
$ac_ext
20986 cat >>conftest.
$ac_ext <<_ACEOF
20987 /* end confdefs.h. */
20988 $ac_includes_default
20989 #include <$ac_header>
20991 rm -f conftest.
$ac_objext
20992 if { (ac_try
="$ac_compile"
20993 case "(($ac_try" in
20994 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20995 *) ac_try_echo=$ac_try;;
20997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20998 (eval "$ac_compile") 2>conftest.er1
21000 grep -v '^ *+' conftest.er1 >conftest.err
21002 cat conftest.err >&5
21003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21004 (exit $ac_status); } &&
21005 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21006 { (case "(($ac_try" in
21007 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21008 *) ac_try_echo
=$ac_try;;
21010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21011 (eval "$ac_try") 2>&5
21013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21014 (exit $ac_status); }; } &&
21015 { ac_try
='test -s conftest.$ac_objext'
21016 { (case "(($ac_try" in
21017 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21018 *) ac_try_echo=$ac_try;;
21020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21021 (eval "$ac_try") 2>&5
21023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21024 (exit $ac_status); }; }; then
21025 ac_header_compiler=yes
21027 echo "$as_me: failed program was:" >&5
21028 sed 's/^/| /' conftest.$ac_ext >&5
21030 ac_header_compiler=no
21033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21034 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21035 echo "${ECHO_T}$ac_header_compiler" >&6; }
21037 # Is the header present?
21038 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21039 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21040 cat >conftest.$ac_ext <<_ACEOF
21043 cat confdefs.h >>conftest.$ac_ext
21044 cat >>conftest.$ac_ext <<_ACEOF
21045 /* end confdefs.h. */
21046 #include <$ac_header>
21048 if { (ac_try="$ac_cpp conftest.$ac_ext"
21049 case "(($ac_try" in
21050 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21051 *) ac_try_echo
=$ac_try;;
21053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21054 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21056 grep -v '^ *+' conftest.er1
>conftest.err
21058 cat conftest.err
>&5
21059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21060 (exit $ac_status); } >/dev
/null
; then
21061 if test -s conftest.err
; then
21062 ac_cpp_err
=$ac_cxx_preproc_warn_flag
21063 ac_cpp_err
=$ac_cpp_err$ac_cxx_werror_flag
21070 if test -z "$ac_cpp_err"; then
21071 ac_header_preproc
=yes
21073 echo "$as_me: failed program was:" >&5
21074 sed 's/^/| /' conftest.
$ac_ext >&5
21076 ac_header_preproc
=no
21079 rm -f conftest.err conftest.
$ac_ext
21080 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21081 echo "${ECHO_T}$ac_header_preproc" >&6; }
21083 # So? What about this header?
21084 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
21086 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21087 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21088 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21089 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21090 ac_header_preproc
=yes
21093 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21094 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21095 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21096 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21097 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21098 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21099 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21100 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21101 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21102 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21103 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21104 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21106 ## -------------------------------------------- ##
21107 ## Report this to http://www.mangosproject.org/ ##
21108 ## -------------------------------------------- ##
21110 ) |
sed "s/^/$as_me: WARNING: /" >&2
21113 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21114 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21115 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21116 echo $ECHO_N "(cached) $ECHO_C" >&6
21118 eval "$as_ac_Header=\$ac_header_preproc"
21120 ac_res
=`eval echo '${'$as_ac_Header'}'`
21121 { echo "$as_me:$LINENO: result: $ac_res" >&5
21122 echo "${ECHO_T}$ac_res" >&6; }
21125 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21126 cat >>confdefs.h
<<_ACEOF
21127 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21131 { { echo "$as_me:$LINENO: error: Missing required header" >&5
21132 echo "$as_me: error: Missing required header" >&2;}
21133 { (exit 1); exit 1; }; }
21139 CPPFLAGS
=$CPPFLAGS_SAVE
21141 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21142 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
21143 if test "${ac_cv_c_const+set}" = set; then
21144 echo $ECHO_N "(cached) $ECHO_C" >&6
21146 cat >conftest.
$ac_ext <<_ACEOF
21149 cat confdefs.h
>>conftest.
$ac_ext
21150 cat >>conftest.
$ac_ext <<_ACEOF
21151 /* end confdefs.h. */
21156 /* FIXME: Include the comments suggested by Paul. */
21157 #ifndef __cplusplus
21158 /* Ultrix mips cc rejects this. */
21159 typedef int charset[2];
21161 /* SunOS 4.1.1 cc rejects this. */
21162 char const *const *ccp;
21164 /* NEC SVR4.0.2 mips cc rejects this. */
21165 struct point {int x, y;};
21166 static struct point const zero = {0,0};
21167 /* AIX XL C 1.02.0.0 rejects this.
21168 It does not let you subtract one const X* pointer from another in
21169 an arm of an if-expression whose if-part is not a constant
21171 const char *g = "string";
21172 ccp = &g + (g ? g-g : 0);
21173 /* HPUX 7.0 cc rejects these. */
21176 ccp = (char const *const *) p;
21177 { /* SCO 3.2v4 cc rejects this. */
21179 char const *s = 0 ? (char *) 0 : (char const *) 0;
21184 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
21185 int x[] = {25, 17};
21186 const int *foo = &x[0];
21189 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21190 typedef const int *iptr;
21194 { /* AIX XL C 1.02.0.0 rejects this saying
21195 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21196 struct s { int j; const int *ap[3]; };
21197 struct s *b; b->j = 5;
21199 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21200 const int foo = 10;
21201 if (!foo) return 0;
21203 return !x[0] && !zero.x;
21210 rm -f conftest.
$ac_objext
21211 if { (ac_try
="$ac_compile"
21212 case "(($ac_try" in
21213 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21214 *) ac_try_echo=$ac_try;;
21216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21217 (eval "$ac_compile") 2>conftest.er1
21219 grep -v '^ *+' conftest.er1 >conftest.err
21221 cat conftest.err >&5
21222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21223 (exit $ac_status); } &&
21224 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21225 { (case "(($ac_try" in
21226 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21227 *) ac_try_echo
=$ac_try;;
21229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21230 (eval "$ac_try") 2>&5
21232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21233 (exit $ac_status); }; } &&
21234 { ac_try
='test -s conftest.$ac_objext'
21235 { (case "(($ac_try" in
21236 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21237 *) ac_try_echo=$ac_try;;
21239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21240 (eval "$ac_try") 2>&5
21242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21243 (exit $ac_status); }; }; then
21246 echo "$as_me: failed program was:" >&5
21247 sed 's/^/| /' conftest.$ac_ext >&5
21252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21254 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21255 echo "${ECHO_T}$ac_cv_c_const" >&6; }
21256 if test $ac_cv_c_const = no; then
21258 cat >>confdefs.h <<\_ACEOF
21264 { echo "$as_me:$LINENO: checking for inline" >&5
21265 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
21266 if test "${ac_cv_c_inline+set}" = set; then
21267 echo $ECHO_N "(cached) $ECHO_C" >&6
21270 for ac_kw in inline __inline__ __inline; do
21271 cat >conftest.$ac_ext <<_ACEOF
21274 cat confdefs.h >>conftest.$ac_ext
21275 cat >>conftest.$ac_ext <<_ACEOF
21276 /* end confdefs.h. */
21277 #ifndef __cplusplus
21279 static $ac_kw foo_t static_foo () {return 0; }
21280 $ac_kw foo_t foo () {return 0; }
21284 rm -f conftest.$ac_objext
21285 if { (ac_try="$ac_compile"
21286 case "(($ac_try" in
21287 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21288 *) ac_try_echo
=$ac_try;;
21290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21291 (eval "$ac_compile") 2>conftest.er1
21293 grep -v '^ *+' conftest.er1
>conftest.err
21295 cat conftest.err
>&5
21296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21297 (exit $ac_status); } &&
21298 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21299 { (case "(($ac_try" in
21300 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21301 *) ac_try_echo=$ac_try;;
21303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21304 (eval "$ac_try") 2>&5
21306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21307 (exit $ac_status); }; } &&
21308 { ac_try='test -s conftest.$ac_objext'
21309 { (case "(($ac_try" in
21310 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21311 *) ac_try_echo
=$ac_try;;
21313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21314 (eval "$ac_try") 2>&5
21316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21317 (exit $ac_status); }; }; then
21318 ac_cv_c_inline
=$ac_kw
21320 echo "$as_me: failed program was:" >&5
21321 sed 's/^/| /' conftest.
$ac_ext >&5
21326 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21327 test "$ac_cv_c_inline" != no
&& break
21331 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
21332 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
21335 case $ac_cv_c_inline in
21338 case $ac_cv_c_inline in
21340 *) ac_val
=$ac_cv_c_inline;;
21342 cat >>confdefs.h
<<_ACEOF
21343 #ifndef __cplusplus
21344 #define inline $ac_val
21350 { echo "$as_me:$LINENO: checking for working volatile" >&5
21351 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
21352 if test "${ac_cv_c_volatile+set}" = set; then
21353 echo $ECHO_N "(cached) $ECHO_C" >&6
21355 cat >conftest.
$ac_ext <<_ACEOF
21358 cat confdefs.h
>>conftest.
$ac_ext
21359 cat >>conftest.
$ac_ext <<_ACEOF
21360 /* end confdefs.h. */
21367 int * volatile y = (int *) 0;
21373 rm -f conftest.
$ac_objext
21374 if { (ac_try
="$ac_compile"
21375 case "(($ac_try" in
21376 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21377 *) ac_try_echo=$ac_try;;
21379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21380 (eval "$ac_compile") 2>conftest.er1
21382 grep -v '^ *+' conftest.er1 >conftest.err
21384 cat conftest.err >&5
21385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21386 (exit $ac_status); } &&
21387 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21388 { (case "(($ac_try" in
21389 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21390 *) ac_try_echo
=$ac_try;;
21392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21393 (eval "$ac_try") 2>&5
21395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21396 (exit $ac_status); }; } &&
21397 { ac_try
='test -s conftest.$ac_objext'
21398 { (case "(($ac_try" in
21399 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21400 *) ac_try_echo=$ac_try;;
21402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21403 (eval "$ac_try") 2>&5
21405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21406 (exit $ac_status); }; }; then
21407 ac_cv_c_volatile=yes
21409 echo "$as_me: failed program was:" >&5
21410 sed 's/^/| /' conftest.$ac_ext >&5
21412 ac_cv_c_volatile=no
21415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21417 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
21418 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
21419 if test $ac_cv_c_volatile = no; then
21421 cat >>confdefs.h <<\_ACEOF
21427 { echo "$as_me:$LINENO: checking for size_t" >&5
21428 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
21429 if test "${ac_cv_type_size_t+set}" = set; then
21430 echo $ECHO_N "(cached) $ECHO_C" >&6
21432 cat >conftest.$ac_ext <<_ACEOF
21435 cat confdefs.h >>conftest.$ac_ext
21436 cat >>conftest.$ac_ext <<_ACEOF
21437 /* end confdefs.h. */
21438 $ac_includes_default
21439 typedef size_t ac__type_new_;
21443 if ((ac__type_new_ *) 0)
21445 if (sizeof (ac__type_new_))
21451 rm -f conftest.$ac_objext
21452 if { (ac_try="$ac_compile"
21453 case "(($ac_try" in
21454 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21455 *) ac_try_echo
=$ac_try;;
21457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21458 (eval "$ac_compile") 2>conftest.er1
21460 grep -v '^ *+' conftest.er1
>conftest.err
21462 cat conftest.err
>&5
21463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21464 (exit $ac_status); } &&
21465 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21466 { (case "(($ac_try" in
21467 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21468 *) ac_try_echo=$ac_try;;
21470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21471 (eval "$ac_try") 2>&5
21473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21474 (exit $ac_status); }; } &&
21475 { ac_try='test -s conftest.$ac_objext'
21476 { (case "(($ac_try" in
21477 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21478 *) ac_try_echo
=$ac_try;;
21480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21481 (eval "$ac_try") 2>&5
21483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21484 (exit $ac_status); }; }; then
21485 ac_cv_type_size_t
=yes
21487 echo "$as_me: failed program was:" >&5
21488 sed 's/^/| /' conftest.
$ac_ext >&5
21490 ac_cv_type_size_t
=no
21493 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21495 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21496 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
21497 if test $ac_cv_type_size_t = yes; then
21501 cat >>confdefs.h
<<_ACEOF
21502 #define size_t unsigned int
21507 { echo "$as_me:$LINENO: checking for off_t" >&5
21508 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
21509 if test "${ac_cv_type_off_t+set}" = set; then
21510 echo $ECHO_N "(cached) $ECHO_C" >&6
21512 cat >conftest.
$ac_ext <<_ACEOF
21515 cat confdefs.h
>>conftest.
$ac_ext
21516 cat >>conftest.
$ac_ext <<_ACEOF
21517 /* end confdefs.h. */
21518 $ac_includes_default
21519 typedef off_t ac__type_new_;
21523 if ((ac__type_new_ *) 0)
21525 if (sizeof (ac__type_new_))
21531 rm -f conftest.
$ac_objext
21532 if { (ac_try
="$ac_compile"
21533 case "(($ac_try" in
21534 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21535 *) ac_try_echo=$ac_try;;
21537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21538 (eval "$ac_compile") 2>conftest.er1
21540 grep -v '^ *+' conftest.er1 >conftest.err
21542 cat conftest.err >&5
21543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21544 (exit $ac_status); } &&
21545 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21546 { (case "(($ac_try" in
21547 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21548 *) ac_try_echo
=$ac_try;;
21550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21551 (eval "$ac_try") 2>&5
21553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21554 (exit $ac_status); }; } &&
21555 { ac_try
='test -s conftest.$ac_objext'
21556 { (case "(($ac_try" in
21557 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21558 *) ac_try_echo=$ac_try;;
21560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21561 (eval "$ac_try") 2>&5
21563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21564 (exit $ac_status); }; }; then
21565 ac_cv_type_off_t=yes
21567 echo "$as_me: failed program was:" >&5
21568 sed 's/^/| /' conftest.$ac_ext >&5
21570 ac_cv_type_off_t=no
21573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21575 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
21576 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
21577 if test $ac_cv_type_off_t = yes; then
21581 cat >>confdefs.h <<_ACEOF
21582 #define off_t long int
21587 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
21588 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
21589 if test "${ac_cv_type_signal+set}" = set; then
21590 echo $ECHO_N "(cached) $ECHO_C" >&6
21592 cat >conftest.$ac_ext <<_ACEOF
21595 cat confdefs.h >>conftest.$ac_ext
21596 cat >>conftest.$ac_ext <<_ACEOF
21597 /* end confdefs.h. */
21598 #include <sys/types.h>
21599 #include <signal.h>
21604 return *(signal (0, 0)) (0) == 1;
21609 rm -f conftest.$ac_objext
21610 if { (ac_try="$ac_compile"
21611 case "(($ac_try" in
21612 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21613 *) ac_try_echo
=$ac_try;;
21615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21616 (eval "$ac_compile") 2>conftest.er1
21618 grep -v '^ *+' conftest.er1
>conftest.err
21620 cat conftest.err
>&5
21621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21622 (exit $ac_status); } &&
21623 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21624 { (case "(($ac_try" in
21625 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21626 *) ac_try_echo=$ac_try;;
21628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21629 (eval "$ac_try") 2>&5
21631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21632 (exit $ac_status); }; } &&
21633 { ac_try='test -s conftest.$ac_objext'
21634 { (case "(($ac_try" in
21635 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21636 *) ac_try_echo
=$ac_try;;
21638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21639 (eval "$ac_try") 2>&5
21641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21642 (exit $ac_status); }; }; then
21643 ac_cv_type_signal
=int
21645 echo "$as_me: failed program was:" >&5
21646 sed 's/^/| /' conftest.
$ac_ext >&5
21648 ac_cv_type_signal
=void
21651 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21653 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
21654 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
21656 cat >>confdefs.h
<<_ACEOF
21657 #define RETSIGTYPE $ac_cv_type_signal
21661 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
21662 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
21663 if test "${ac_cv_struct_tm+set}" = set; then
21664 echo $ECHO_N "(cached) $ECHO_C" >&6
21666 cat >conftest.
$ac_ext <<_ACEOF
21669 cat confdefs.h
>>conftest.
$ac_ext
21670 cat >>conftest.
$ac_ext <<_ACEOF
21671 /* end confdefs.h. */
21672 #include <sys/types.h>
21678 struct tm *tp; tp->tm_sec;
21683 rm -f conftest.
$ac_objext
21684 if { (ac_try
="$ac_compile"
21685 case "(($ac_try" in
21686 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21687 *) ac_try_echo=$ac_try;;
21689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21690 (eval "$ac_compile") 2>conftest.er1
21692 grep -v '^ *+' conftest.er1 >conftest.err
21694 cat conftest.err >&5
21695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21696 (exit $ac_status); } &&
21697 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21698 { (case "(($ac_try" in
21699 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21700 *) ac_try_echo
=$ac_try;;
21702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21703 (eval "$ac_try") 2>&5
21705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21706 (exit $ac_status); }; } &&
21707 { ac_try
='test -s conftest.$ac_objext'
21708 { (case "(($ac_try" in
21709 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21710 *) ac_try_echo=$ac_try;;
21712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21713 (eval "$ac_try") 2>&5
21715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21716 (exit $ac_status); }; }; then
21717 ac_cv_struct_tm=time.h
21719 echo "$as_me: failed program was:" >&5
21720 sed 's/^/| /' conftest.$ac_ext >&5
21722 ac_cv_struct_tm=sys/time.h
21725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21727 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
21728 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
21729 if test $ac_cv_struct_tm = sys/time.h; then
21731 cat >>confdefs.h <<\_ACEOF
21732 #define TM_IN_SYS_TIME 1
21737 { echo "$as_me:$LINENO: checking for ptrdiff_t " >&5
21738 echo $ECHO_N "checking for ptrdiff_t ... $ECHO_C" >&6; }
21739 if test "${ac_cv_type_ptrdiff_t_+set}" = set; then
21740 echo $ECHO_N "(cached) $ECHO_C" >&6
21742 cat >conftest.$ac_ext <<_ACEOF
21745 cat confdefs.h >>conftest.$ac_ext
21746 cat >>conftest.$ac_ext <<_ACEOF
21747 /* end confdefs.h. */
21748 $ac_includes_default
21749 typedef ptrdiff_t ac__type_new_;
21753 if ((ac__type_new_ *) 0)
21755 if (sizeof (ac__type_new_))
21761 rm -f conftest.$ac_objext
21762 if { (ac_try="$ac_compile"
21763 case "(($ac_try" in
21764 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21765 *) ac_try_echo
=$ac_try;;
21767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21768 (eval "$ac_compile") 2>conftest.er1
21770 grep -v '^ *+' conftest.er1
>conftest.err
21772 cat conftest.err
>&5
21773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21774 (exit $ac_status); } &&
21775 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21776 { (case "(($ac_try" in
21777 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21778 *) ac_try_echo=$ac_try;;
21780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21781 (eval "$ac_try") 2>&5
21783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21784 (exit $ac_status); }; } &&
21785 { ac_try='test -s conftest.$ac_objext'
21786 { (case "(($ac_try" in
21787 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21788 *) ac_try_echo
=$ac_try;;
21790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21791 (eval "$ac_try") 2>&5
21793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21794 (exit $ac_status); }; }; then
21795 ac_cv_type_ptrdiff_t_
=yes
21797 echo "$as_me: failed program was:" >&5
21798 sed 's/^/| /' conftest.
$ac_ext >&5
21800 ac_cv_type_ptrdiff_t_
=no
21803 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21805 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t_" >&5
21806 echo "${ECHO_T}$ac_cv_type_ptrdiff_t_" >&6; }
21807 if test $ac_cv_type_ptrdiff_t_ = yes; then
21809 cat >>confdefs.h
<<_ACEOF
21810 #define HAVE_PTRDIFF_T_ 1
21817 { echo "$as_me:$LINENO: checking for working memcmp" >&5
21818 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
21819 if test "${ac_cv_func_memcmp_working+set}" = set; then
21820 echo $ECHO_N "(cached) $ECHO_C" >&6
21822 if test "$cross_compiling" = yes; then
21823 ac_cv_func_memcmp_working
=no
21825 cat >conftest.
$ac_ext <<_ACEOF
21828 cat confdefs.h
>>conftest.
$ac_ext
21829 cat >>conftest.
$ac_ext <<_ACEOF
21830 /* end confdefs.h. */
21831 $ac_includes_default
21836 /* Some versions of memcmp are not 8-bit clean. */
21837 char c0 = '\100', c1 = '\200', c2 = '\201';
21838 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
21841 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
21842 or more and with at least one buffer not starting on a 4-byte boundary.
21843 William Lewis provided this test program. */
21848 for (i = 0; i < 4; i++)
21852 strcpy (a, "--------01111111");
21853 strcpy (b, "--------10000000");
21854 if (memcmp (a, b, 16) >= 0)
21864 rm -f conftest
$ac_exeext
21865 if { (ac_try
="$ac_link"
21866 case "(($ac_try" in
21867 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21868 *) ac_try_echo=$ac_try;;
21870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21871 (eval "$ac_link") 2>&5
21873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21874 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21875 { (case "(($ac_try" in
21876 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21877 *) ac_try_echo
=$ac_try;;
21879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21880 (eval "$ac_try") 2>&5
21882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21883 (exit $ac_status); }; }; then
21884 ac_cv_func_memcmp_working
=yes
21886 echo "$as_me: program exited with status $ac_status" >&5
21887 echo "$as_me: failed program was:" >&5
21888 sed 's/^/| /' conftest.
$ac_ext >&5
21890 ( exit $ac_status )
21891 ac_cv_func_memcmp_working
=no
21893 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
21898 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
21899 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
21900 test $ac_cv_func_memcmp_working = no
&& case " $LIBOBJS " in
21901 *" memcmp.$ac_objext "* ) ;;
21902 *) LIBOBJS
="$LIBOBJS memcmp.$ac_objext"
21907 { echo "$as_me:$LINENO: checking for working strcoll" >&5
21908 echo $ECHO_N "checking for working strcoll... $ECHO_C" >&6; }
21909 if test "${ac_cv_func_strcoll_works+set}" = set; then
21910 echo $ECHO_N "(cached) $ECHO_C" >&6
21912 if test "$cross_compiling" = yes; then
21913 ac_cv_func_strcoll_works
=no
21915 cat >conftest.
$ac_ext <<_ACEOF
21918 cat confdefs.h
>>conftest.
$ac_ext
21919 cat >>conftest.
$ac_ext <<_ACEOF
21920 /* end confdefs.h. */
21921 $ac_includes_default
21925 return (strcoll ("abc", "def") >= 0 ||
21926 strcoll ("ABC", "DEF") >= 0 ||
21927 strcoll ("123", "456") >= 0)
21932 rm -f conftest
$ac_exeext
21933 if { (ac_try
="$ac_link"
21934 case "(($ac_try" in
21935 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21936 *) ac_try_echo=$ac_try;;
21938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21939 (eval "$ac_link") 2>&5
21941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21942 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21943 { (case "(($ac_try" in
21944 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21945 *) ac_try_echo
=$ac_try;;
21947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21948 (eval "$ac_try") 2>&5
21950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21951 (exit $ac_status); }; }; then
21952 ac_cv_func_strcoll_works
=yes
21954 echo "$as_me: program exited with status $ac_status" >&5
21955 echo "$as_me: failed program was:" >&5
21956 sed 's/^/| /' conftest.
$ac_ext >&5
21958 ( exit $ac_status )
21959 ac_cv_func_strcoll_works
=no
21961 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
21966 { echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5
21967 echo "${ECHO_T}$ac_cv_func_strcoll_works" >&6; }
21968 if test $ac_cv_func_strcoll_works = yes; then
21970 cat >>confdefs.h
<<\_ACEOF
21971 #define HAVE_STRCOLL 1
21976 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
21977 # for constant arguments. Useless!
21978 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
21979 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
21980 if test "${ac_cv_working_alloca_h+set}" = set; then
21981 echo $ECHO_N "(cached) $ECHO_C" >&6
21983 cat >conftest.
$ac_ext <<_ACEOF
21986 cat confdefs.h
>>conftest.
$ac_ext
21987 cat >>conftest.
$ac_ext <<_ACEOF
21988 /* end confdefs.h. */
21989 #include <alloca.h>
21993 char *p = (char *) alloca (2 * sizeof (int));
21999 rm -f conftest.
$ac_objext conftest
$ac_exeext
22000 if { (ac_try
="$ac_link"
22001 case "(($ac_try" in
22002 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22003 *) ac_try_echo=$ac_try;;
22005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22006 (eval "$ac_link") 2>conftest.er1
22008 grep -v '^ *+' conftest.er1 >conftest.err
22010 cat conftest.err >&5
22011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22012 (exit $ac_status); } &&
22013 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
22014 { (case "(($ac_try" in
22015 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22016 *) ac_try_echo
=$ac_try;;
22018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22019 (eval "$ac_try") 2>&5
22021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22022 (exit $ac_status); }; } &&
22023 { ac_try
='test -s conftest$ac_exeext'
22024 { (case "(($ac_try" in
22025 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22026 *) ac_try_echo=$ac_try;;
22028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22029 (eval "$ac_try") 2>&5
22031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22032 (exit $ac_status); }; }; then
22033 ac_cv_working_alloca_h=yes
22035 echo "$as_me: failed program was:" >&5
22036 sed 's/^/| /' conftest.$ac_ext >&5
22038 ac_cv_working_alloca_h=no
22041 rm -f core conftest.err conftest.$ac_objext \
22042 conftest$ac_exeext conftest.$ac_ext
22044 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
22045 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
22046 if test $ac_cv_working_alloca_h = yes; then
22048 cat >>confdefs.h <<\_ACEOF
22049 #define HAVE_ALLOCA_H 1
22054 { echo "$as_me:$LINENO: checking for alloca" >&5
22055 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
22056 if test "${ac_cv_func_alloca_works+set}" = set; then
22057 echo $ECHO_N "(cached) $ECHO_C" >&6
22059 cat >conftest.$ac_ext <<_ACEOF
22062 cat confdefs.h >>conftest.$ac_ext
22063 cat >>conftest.$ac_ext <<_ACEOF
22064 /* end confdefs.h. */
22066 # define alloca __builtin_alloca
22069 # include <malloc.h>
22070 # define alloca _alloca
22073 # include <alloca.h>
22078 # ifndef alloca /* predefined by HP cc +Olibcalls */
22089 char *p = (char *) alloca (1);
22095 rm -f conftest.$ac_objext conftest$ac_exeext
22096 if { (ac_try="$ac_link"
22097 case "(($ac_try" in
22098 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22099 *) ac_try_echo
=$ac_try;;
22101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22102 (eval "$ac_link") 2>conftest.er1
22104 grep -v '^ *+' conftest.er1
>conftest.err
22106 cat conftest.err
>&5
22107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22108 (exit $ac_status); } &&
22109 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
22110 { (case "(($ac_try" in
22111 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22112 *) ac_try_echo=$ac_try;;
22114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22115 (eval "$ac_try") 2>&5
22117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22118 (exit $ac_status); }; } &&
22119 { ac_try='test -s conftest$ac_exeext'
22120 { (case "(($ac_try" in
22121 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22122 *) ac_try_echo
=$ac_try;;
22124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22125 (eval "$ac_try") 2>&5
22127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22128 (exit $ac_status); }; }; then
22129 ac_cv_func_alloca_works
=yes
22131 echo "$as_me: failed program was:" >&5
22132 sed 's/^/| /' conftest.
$ac_ext >&5
22134 ac_cv_func_alloca_works
=no
22137 rm -f core conftest.err conftest.
$ac_objext \
22138 conftest
$ac_exeext conftest.
$ac_ext
22140 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
22141 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
22143 if test $ac_cv_func_alloca_works = yes; then
22145 cat >>confdefs.h
<<\_ACEOF
22146 #define HAVE_ALLOCA 1
22150 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
22151 # that cause trouble. Some versions do not even contain alloca or
22152 # contain a buggy version. If you still want to use their alloca,
22153 # use ar to extract alloca.o from them instead of compiling alloca.c.
22155 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
22157 cat >>confdefs.h
<<\_ACEOF
22162 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
22163 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
22164 if test "${ac_cv_os_cray+set}" = set; then
22165 echo $ECHO_N "(cached) $ECHO_C" >&6
22167 cat >conftest.
$ac_ext <<_ACEOF
22170 cat confdefs.h
>>conftest.
$ac_ext
22171 cat >>conftest.
$ac_ext <<_ACEOF
22172 /* end confdefs.h. */
22173 #if defined CRAY && ! defined CRAY2
22180 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22181 $EGREP "webecray" >/dev
/null
2>&1; then
22189 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
22190 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
22191 if test $ac_cv_os_cray = yes; then
22192 for ac_func
in _getb67 GETB67 getb67
; do
22193 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22194 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22195 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22196 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22197 echo $ECHO_N "(cached) $ECHO_C" >&6
22199 cat >conftest.
$ac_ext <<_ACEOF
22202 cat confdefs.h
>>conftest.
$ac_ext
22203 cat >>conftest.
$ac_ext <<_ACEOF
22204 /* end confdefs.h. */
22205 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22206 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22207 #define $ac_func innocuous_$ac_func
22209 /* System header to define __stub macros and hopefully few prototypes,
22210 which can conflict with char $ac_func (); below.
22211 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22212 <limits.h> exists even on freestanding compilers. */
22215 # include <limits.h>
22217 # include <assert.h>
22222 /* Override any GCC internal prototype to avoid an error.
22223 Use char because int might match the return type of a GCC
22224 builtin and then its argument prototype would still apply. */
22229 /* The GNU C library defines this for functions which it implements
22230 to always fail with ENOSYS. Some functions are actually named
22231 something starting with __ and the normal name is an alias. */
22232 #if defined __stub_$ac_func || defined __stub___$ac_func
22239 return $ac_func ();
22244 rm -f conftest.
$ac_objext conftest
$ac_exeext
22245 if { (ac_try
="$ac_link"
22246 case "(($ac_try" in
22247 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22248 *) ac_try_echo=$ac_try;;
22250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22251 (eval "$ac_link") 2>conftest.er1
22253 grep -v '^ *+' conftest.er1 >conftest.err
22255 cat conftest.err >&5
22256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22257 (exit $ac_status); } &&
22258 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
22259 { (case "(($ac_try" in
22260 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22261 *) ac_try_echo
=$ac_try;;
22263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22264 (eval "$ac_try") 2>&5
22266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22267 (exit $ac_status); }; } &&
22268 { ac_try
='test -s conftest$ac_exeext'
22269 { (case "(($ac_try" in
22270 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22271 *) ac_try_echo=$ac_try;;
22273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22274 (eval "$ac_try") 2>&5
22276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22277 (exit $ac_status); }; }; then
22278 eval "$as_ac_var=yes"
22280 echo "$as_me: failed program was:" >&5
22281 sed 's/^/| /' conftest.$ac_ext >&5
22283 eval "$as_ac_var=no"
22286 rm -f core conftest.err conftest.$ac_objext \
22287 conftest$ac_exeext conftest.$ac_ext
22289 ac_res=`eval echo '${'$as_ac_var'}'`
22290 { echo "$as_me:$LINENO: result: $ac_res" >&5
22291 echo "${ECHO_T}$ac_res" >&6; }
22292 if test `eval echo '${'$as_ac_var'}'` = yes; then
22294 cat >>confdefs.h <<_ACEOF
22295 #define CRAY_STACKSEG_END $ac_func
22304 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
22305 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
22306 if test "${ac_cv_c_stack_direction+set}" = set; then
22307 echo $ECHO_N "(cached) $ECHO_C" >&6
22309 if test "$cross_compiling" = yes; then
22310 ac_cv_c_stack_direction=0
22312 cat >conftest.$ac_ext <<_ACEOF
22315 cat confdefs.h >>conftest.$ac_ext
22316 cat >>conftest.$ac_ext <<_ACEOF
22317 /* end confdefs.h. */
22318 $ac_includes_default
22320 find_stack_direction ()
22322 static char *addr = 0;
22327 return find_stack_direction ();
22330 return (&dummy > addr) ? 1 : -1;
22336 return find_stack_direction () < 0;
22339 rm -f conftest$ac_exeext
22340 if { (ac_try="$ac_link"
22341 case "(($ac_try" in
22342 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22343 *) ac_try_echo
=$ac_try;;
22345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22346 (eval "$ac_link") 2>&5
22348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22349 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
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_try") 2>&5
22357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22358 (exit $ac_status); }; }; then
22359 ac_cv_c_stack_direction=1
22361 echo "$as_me: program exited with status $ac_status" >&5
22362 echo "$as_me: failed program was:" >&5
22363 sed 's/^/| /' conftest.$ac_ext >&5
22365 ( exit $ac_status )
22366 ac_cv_c_stack_direction=-1
22368 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22373 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
22374 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
22376 cat >>confdefs.h <<_ACEOF
22377 #define STACK_DIRECTION $ac_cv_c_stack_direction
22384 for ac_header in stdlib.h
22386 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
22387 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22388 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22389 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22390 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22391 echo $ECHO_N "(cached) $ECHO_C" >&6
22393 ac_res=`eval echo '${'$as_ac_Header'}'`
22394 { echo "$as_me:$LINENO: result: $ac_res" >&5
22395 echo "${ECHO_T}$ac_res" >&6; }
22397 # Is the header compilable?
22398 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22399 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22400 cat >conftest.$ac_ext <<_ACEOF
22403 cat confdefs.h >>conftest.$ac_ext
22404 cat >>conftest.$ac_ext <<_ACEOF
22405 /* end confdefs.h. */
22406 $ac_includes_default
22407 #include <$ac_header>
22409 rm -f conftest.$ac_objext
22410 if { (ac_try="$ac_compile"
22411 case "(($ac_try" in
22412 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22413 *) ac_try_echo
=$ac_try;;
22415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22416 (eval "$ac_compile") 2>conftest.er1
22418 grep -v '^ *+' conftest.er1
>conftest.err
22420 cat conftest.err
>&5
22421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22422 (exit $ac_status); } &&
22423 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
22424 { (case "(($ac_try" in
22425 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22426 *) ac_try_echo=$ac_try;;
22428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22429 (eval "$ac_try") 2>&5
22431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22432 (exit $ac_status); }; } &&
22433 { ac_try='test -s conftest.$ac_objext'
22434 { (case "(($ac_try" in
22435 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22436 *) ac_try_echo
=$ac_try;;
22438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22439 (eval "$ac_try") 2>&5
22441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22442 (exit $ac_status); }; }; then
22443 ac_header_compiler
=yes
22445 echo "$as_me: failed program was:" >&5
22446 sed 's/^/| /' conftest.
$ac_ext >&5
22448 ac_header_compiler
=no
22451 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22452 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22453 echo "${ECHO_T}$ac_header_compiler" >&6; }
22455 # Is the header present?
22456 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22457 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22458 cat >conftest.
$ac_ext <<_ACEOF
22461 cat confdefs.h
>>conftest.
$ac_ext
22462 cat >>conftest.
$ac_ext <<_ACEOF
22463 /* end confdefs.h. */
22464 #include <$ac_header>
22466 if { (ac_try
="$ac_cpp conftest.$ac_ext"
22467 case "(($ac_try" in
22468 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22469 *) ac_try_echo=$ac_try;;
22471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22472 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22474 grep -v '^ *+' conftest.er1 >conftest.err
22476 cat conftest.err >&5
22477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22478 (exit $ac_status); } >/dev/null; then
22479 if test -s conftest.err; then
22480 ac_cpp_err=$ac_cxx_preproc_warn_flag
22481 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
22488 if test -z "$ac_cpp_err"; then
22489 ac_header_preproc=yes
22491 echo "$as_me: failed program was:" >&5
22492 sed 's/^/| /' conftest.$ac_ext >&5
22494 ac_header_preproc=no
22497 rm -f conftest.err conftest.$ac_ext
22498 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22499 echo "${ECHO_T}$ac_header_preproc" >&6; }
22501 # So? What about this header?
22502 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
22504 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22505 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22506 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22507 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22508 ac_header_preproc=yes
22511 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22512 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22513 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22514 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22515 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22516 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22517 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22518 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22519 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22520 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22521 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22522 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22524 ## -------------------------------------------- ##
22525 ## Report this to http://www.mangosproject.org/ ##
22526 ## -------------------------------------------- ##
22528 ) | sed "s/^/$as_me: WARNING: /" >&2
22531 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22532 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22533 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22534 echo $ECHO_N "(cached) $ECHO_C" >&6
22536 eval "$as_ac_Header=\$ac_header_preproc"
22538 ac_res=`eval echo '${'$as_ac_Header'}'`
22539 { echo "$as_me:$LINENO: result: $ac_res" >&5
22540 echo "${ECHO_T}$ac_res" >&6; }
22543 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22544 cat >>confdefs.h <<_ACEOF
22545 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
22552 { echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
22553 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
22554 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
22555 echo $ECHO_N "(cached) $ECHO_C" >&6
22557 if test "$cross_compiling" = yes; then
22558 ac_cv_func_malloc_0_nonnull=no
22560 cat >conftest.$ac_ext <<_ACEOF
22563 cat confdefs.h >>conftest.$ac_ext
22564 cat >>conftest.$ac_ext <<_ACEOF
22565 /* end confdefs.h. */
22566 #if STDC_HEADERS || HAVE_STDLIB_H
22567 # include <stdlib.h>
22575 return ! malloc (0);
22580 rm -f conftest$ac_exeext
22581 if { (ac_try="$ac_link"
22582 case "(($ac_try" in
22583 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22584 *) ac_try_echo
=$ac_try;;
22586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22587 (eval "$ac_link") 2>&5
22589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22590 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
22591 { (case "(($ac_try" in
22592 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22593 *) ac_try_echo=$ac_try;;
22595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22596 (eval "$ac_try") 2>&5
22598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22599 (exit $ac_status); }; }; then
22600 ac_cv_func_malloc_0_nonnull=yes
22602 echo "$as_me: program exited with status $ac_status" >&5
22603 echo "$as_me: failed program was:" >&5
22604 sed 's/^/| /' conftest.$ac_ext >&5
22606 ( exit $ac_status )
22607 ac_cv_func_malloc_0_nonnull=no
22609 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22614 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
22615 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
22616 if test $ac_cv_func_malloc_0_nonnull = yes; then
22618 cat >>confdefs.h <<\_ACEOF
22619 #define HAVE_MALLOC 1
22623 cat >>confdefs.h <<\_ACEOF
22624 #define HAVE_MALLOC 0
22627 case " $LIBOBJS " in
22628 *" malloc.$ac_objext "* ) ;;
22629 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
22634 cat >>confdefs.h <<\_ACEOF
22635 #define malloc rpl_malloc
22643 for ac_header in stdlib.h
22645 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
22646 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22647 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22648 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22649 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22650 echo $ECHO_N "(cached) $ECHO_C" >&6
22652 ac_res=`eval echo '${'$as_ac_Header'}'`
22653 { echo "$as_me:$LINENO: result: $ac_res" >&5
22654 echo "${ECHO_T}$ac_res" >&6; }
22656 # Is the header compilable?
22657 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22658 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22659 cat >conftest.$ac_ext <<_ACEOF
22662 cat confdefs.h >>conftest.$ac_ext
22663 cat >>conftest.$ac_ext <<_ACEOF
22664 /* end confdefs.h. */
22665 $ac_includes_default
22666 #include <$ac_header>
22668 rm -f conftest.$ac_objext
22669 if { (ac_try="$ac_compile"
22670 case "(($ac_try" in
22671 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22672 *) ac_try_echo
=$ac_try;;
22674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22675 (eval "$ac_compile") 2>conftest.er1
22677 grep -v '^ *+' conftest.er1
>conftest.err
22679 cat conftest.err
>&5
22680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22681 (exit $ac_status); } &&
22682 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
22683 { (case "(($ac_try" in
22684 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22685 *) ac_try_echo=$ac_try;;
22687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22688 (eval "$ac_try") 2>&5
22690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22691 (exit $ac_status); }; } &&
22692 { ac_try='test -s conftest.$ac_objext'
22693 { (case "(($ac_try" in
22694 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22695 *) ac_try_echo
=$ac_try;;
22697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22698 (eval "$ac_try") 2>&5
22700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22701 (exit $ac_status); }; }; then
22702 ac_header_compiler
=yes
22704 echo "$as_me: failed program was:" >&5
22705 sed 's/^/| /' conftest.
$ac_ext >&5
22707 ac_header_compiler
=no
22710 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22711 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22712 echo "${ECHO_T}$ac_header_compiler" >&6; }
22714 # Is the header present?
22715 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22716 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22717 cat >conftest.
$ac_ext <<_ACEOF
22720 cat confdefs.h
>>conftest.
$ac_ext
22721 cat >>conftest.
$ac_ext <<_ACEOF
22722 /* end confdefs.h. */
22723 #include <$ac_header>
22725 if { (ac_try
="$ac_cpp conftest.$ac_ext"
22726 case "(($ac_try" in
22727 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22728 *) ac_try_echo=$ac_try;;
22730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22731 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22733 grep -v '^ *+' conftest.er1 >conftest.err
22735 cat conftest.err >&5
22736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22737 (exit $ac_status); } >/dev/null; then
22738 if test -s conftest.err; then
22739 ac_cpp_err=$ac_cxx_preproc_warn_flag
22740 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
22747 if test -z "$ac_cpp_err"; then
22748 ac_header_preproc=yes
22750 echo "$as_me: failed program was:" >&5
22751 sed 's/^/| /' conftest.$ac_ext >&5
22753 ac_header_preproc=no
22756 rm -f conftest.err conftest.$ac_ext
22757 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22758 echo "${ECHO_T}$ac_header_preproc" >&6; }
22760 # So? What about this header?
22761 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
22763 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22764 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22765 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22766 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22767 ac_header_preproc=yes
22770 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22771 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22772 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22773 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22774 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22775 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22776 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22777 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22778 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22779 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22780 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22781 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22783 ## -------------------------------------------- ##
22784 ## Report this to http://www.mangosproject.org/ ##
22785 ## -------------------------------------------- ##
22787 ) | sed "s/^/$as_me: WARNING: /" >&2
22790 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22791 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22792 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22793 echo $ECHO_N "(cached) $ECHO_C" >&6
22795 eval "$as_ac_Header=\$ac_header_preproc"
22797 ac_res=`eval echo '${'$as_ac_Header'}'`
22798 { echo "$as_me:$LINENO: result: $ac_res" >&5
22799 echo "${ECHO_T}$ac_res" >&6; }
22802 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22803 cat >>confdefs.h <<_ACEOF
22804 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
22811 { echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
22812 echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6; }
22813 if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
22814 echo $ECHO_N "(cached) $ECHO_C" >&6
22816 if test "$cross_compiling" = yes; then
22817 ac_cv_func_realloc_0_nonnull=no
22819 cat >conftest.$ac_ext <<_ACEOF
22822 cat confdefs.h >>conftest.$ac_ext
22823 cat >>conftest.$ac_ext <<_ACEOF
22824 /* end confdefs.h. */
22825 #if STDC_HEADERS || HAVE_STDLIB_H
22826 # include <stdlib.h>
22834 return ! realloc (0, 0);
22839 rm -f conftest$ac_exeext
22840 if { (ac_try="$ac_link"
22841 case "(($ac_try" in
22842 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22843 *) ac_try_echo
=$ac_try;;
22845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22846 (eval "$ac_link") 2>&5
22848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22849 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
22850 { (case "(($ac_try" in
22851 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22852 *) ac_try_echo=$ac_try;;
22854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22855 (eval "$ac_try") 2>&5
22857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22858 (exit $ac_status); }; }; then
22859 ac_cv_func_realloc_0_nonnull=yes
22861 echo "$as_me: program exited with status $ac_status" >&5
22862 echo "$as_me: failed program was:" >&5
22863 sed 's/^/| /' conftest.$ac_ext >&5
22865 ( exit $ac_status )
22866 ac_cv_func_realloc_0_nonnull=no
22868 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22873 { echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
22874 echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6; }
22875 if test $ac_cv_func_realloc_0_nonnull = yes; then
22877 cat >>confdefs.h <<\_ACEOF
22878 #define HAVE_REALLOC 1
22882 cat >>confdefs.h <<\_ACEOF
22883 #define HAVE_REALLOC 0
22886 case " $LIBOBJS " in
22887 *" realloc.$ac_objext "* ) ;;
22888 *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
22893 cat >>confdefs.h <<\_ACEOF
22894 #define realloc rpl_realloc
22903 for ac_header in sys/select.h sys/socket.h
22905 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
22906 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22907 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22908 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22909 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22910 echo $ECHO_N "(cached) $ECHO_C" >&6
22912 ac_res=`eval echo '${'$as_ac_Header'}'`
22913 { echo "$as_me:$LINENO: result: $ac_res" >&5
22914 echo "${ECHO_T}$ac_res" >&6; }
22916 # Is the header compilable?
22917 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22918 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22919 cat >conftest.$ac_ext <<_ACEOF
22922 cat confdefs.h >>conftest.$ac_ext
22923 cat >>conftest.$ac_ext <<_ACEOF
22924 /* end confdefs.h. */
22925 $ac_includes_default
22926 #include <$ac_header>
22928 rm -f conftest.$ac_objext
22929 if { (ac_try="$ac_compile"
22930 case "(($ac_try" in
22931 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22932 *) ac_try_echo
=$ac_try;;
22934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22935 (eval "$ac_compile") 2>conftest.er1
22937 grep -v '^ *+' conftest.er1
>conftest.err
22939 cat conftest.err
>&5
22940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22941 (exit $ac_status); } &&
22942 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
22943 { (case "(($ac_try" in
22944 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22945 *) ac_try_echo=$ac_try;;
22947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22948 (eval "$ac_try") 2>&5
22950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22951 (exit $ac_status); }; } &&
22952 { ac_try='test -s conftest.$ac_objext'
22953 { (case "(($ac_try" in
22954 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22955 *) ac_try_echo
=$ac_try;;
22957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22958 (eval "$ac_try") 2>&5
22960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22961 (exit $ac_status); }; }; then
22962 ac_header_compiler
=yes
22964 echo "$as_me: failed program was:" >&5
22965 sed 's/^/| /' conftest.
$ac_ext >&5
22967 ac_header_compiler
=no
22970 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22971 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22972 echo "${ECHO_T}$ac_header_compiler" >&6; }
22974 # Is the header present?
22975 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22976 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22977 cat >conftest.
$ac_ext <<_ACEOF
22980 cat confdefs.h
>>conftest.
$ac_ext
22981 cat >>conftest.
$ac_ext <<_ACEOF
22982 /* end confdefs.h. */
22983 #include <$ac_header>
22985 if { (ac_try
="$ac_cpp conftest.$ac_ext"
22986 case "(($ac_try" in
22987 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22988 *) ac_try_echo=$ac_try;;
22990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22991 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22993 grep -v '^ *+' conftest.er1 >conftest.err
22995 cat conftest.err >&5
22996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22997 (exit $ac_status); } >/dev/null; then
22998 if test -s conftest.err; then
22999 ac_cpp_err=$ac_cxx_preproc_warn_flag
23000 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
23007 if test -z "$ac_cpp_err"; then
23008 ac_header_preproc=yes
23010 echo "$as_me: failed program was:" >&5
23011 sed 's/^/| /' conftest.$ac_ext >&5
23013 ac_header_preproc=no
23016 rm -f conftest.err conftest.$ac_ext
23017 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23018 echo "${ECHO_T}$ac_header_preproc" >&6; }
23020 # So? What about this header?
23021 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
23023 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23024 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23025 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23026 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23027 ac_header_preproc=yes
23030 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23031 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23032 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23033 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23034 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23035 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23036 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23037 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23038 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23039 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23040 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23041 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23043 ## -------------------------------------------- ##
23044 ## Report this to http://www.mangosproject.org/ ##
23045 ## -------------------------------------------- ##
23047 ) | sed "s/^/$as_me: WARNING: /" >&2
23050 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23051 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23052 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23053 echo $ECHO_N "(cached) $ECHO_C" >&6
23055 eval "$as_ac_Header=\$ac_header_preproc"
23057 ac_res=`eval echo '${'$as_ac_Header'}'`
23058 { echo "$as_me:$LINENO: result: $ac_res" >&5
23059 echo "${ECHO_T}$ac_res" >&6; }
23062 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23063 cat >>confdefs.h <<_ACEOF
23064 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
23071 { echo "$as_me:$LINENO: checking types of arguments for select" >&5
23072 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
23073 if test "${ac_cv_func_select_args+set}" = set; then
23074 echo $ECHO_N "(cached) $ECHO_C" >&6
23076 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
23077 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
23078 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
23079 cat >conftest.$ac_ext <<_ACEOF
23082 cat confdefs.h >>conftest.$ac_ext
23083 cat >>conftest.$ac_ext <<_ACEOF
23084 /* end confdefs.h. */
23085 $ac_includes_default
23086 #if HAVE_SYS_SELECT_H
23087 # include <sys/select.h>
23089 #if HAVE_SYS_SOCKET_H
23090 # include <sys/socket.h>
23096 extern int select ($ac_arg1,
23097 $ac_arg234, $ac_arg234, $ac_arg234,
23103 rm -f conftest.$ac_objext
23104 if { (ac_try="$ac_compile"
23105 case "(($ac_try" in
23106 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23107 *) ac_try_echo
=$ac_try;;
23109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23110 (eval "$ac_compile") 2>conftest.er1
23112 grep -v '^ *+' conftest.er1
>conftest.err
23114 cat conftest.err
>&5
23115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23116 (exit $ac_status); } &&
23117 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
23118 { (case "(($ac_try" in
23119 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23120 *) ac_try_echo=$ac_try;;
23122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23123 (eval "$ac_try") 2>&5
23125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23126 (exit $ac_status); }; } &&
23127 { ac_try='test -s conftest.$ac_objext'
23128 { (case "(($ac_try" in
23129 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23130 *) ac_try_echo
=$ac_try;;
23132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23133 (eval "$ac_try") 2>&5
23135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23136 (exit $ac_status); }; }; then
23137 ac_cv_func_select_args
="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
23139 echo "$as_me: failed program was:" >&5
23140 sed 's/^/| /' conftest.
$ac_ext >&5
23145 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23149 # Provide a safe default value.
23150 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
23153 { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
23154 echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
23155 ac_save_IFS
=$IFS; IFS
=','
23156 set dummy
`echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
23160 cat >>confdefs.h
<<_ACEOF
23161 #define SELECT_TYPE_ARG1 $1
23165 cat >>confdefs.h
<<_ACEOF
23166 #define SELECT_TYPE_ARG234 ($2)
23170 cat >>confdefs.h
<<_ACEOF
23171 #define SELECT_TYPE_ARG5 ($3)
23177 for ac_func
in strftime
23179 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23180 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23181 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23182 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23183 echo $ECHO_N "(cached) $ECHO_C" >&6
23185 cat >conftest.
$ac_ext <<_ACEOF
23188 cat confdefs.h
>>conftest.
$ac_ext
23189 cat >>conftest.
$ac_ext <<_ACEOF
23190 /* end confdefs.h. */
23191 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23192 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23193 #define $ac_func innocuous_$ac_func
23195 /* System header to define __stub macros and hopefully few prototypes,
23196 which can conflict with char $ac_func (); below.
23197 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23198 <limits.h> exists even on freestanding compilers. */
23201 # include <limits.h>
23203 # include <assert.h>
23208 /* Override any GCC internal prototype to avoid an error.
23209 Use char because int might match the return type of a GCC
23210 builtin and then its argument prototype would still apply. */
23215 /* The GNU C library defines this for functions which it implements
23216 to always fail with ENOSYS. Some functions are actually named
23217 something starting with __ and the normal name is an alias. */
23218 #if defined __stub_$ac_func || defined __stub___$ac_func
23225 return $ac_func ();
23230 rm -f conftest.
$ac_objext conftest
$ac_exeext
23231 if { (ac_try
="$ac_link"
23232 case "(($ac_try" in
23233 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23234 *) ac_try_echo=$ac_try;;
23236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23237 (eval "$ac_link") 2>conftest.er1
23239 grep -v '^ *+' conftest.er1 >conftest.err
23241 cat conftest.err >&5
23242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23243 (exit $ac_status); } &&
23244 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
23245 { (case "(($ac_try" in
23246 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23247 *) ac_try_echo
=$ac_try;;
23249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23250 (eval "$ac_try") 2>&5
23252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23253 (exit $ac_status); }; } &&
23254 { ac_try
='test -s conftest$ac_exeext'
23255 { (case "(($ac_try" in
23256 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23257 *) ac_try_echo=$ac_try;;
23259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23260 (eval "$ac_try") 2>&5
23262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23263 (exit $ac_status); }; }; then
23264 eval "$as_ac_var=yes"
23266 echo "$as_me: failed program was:" >&5
23267 sed 's/^/| /' conftest.$ac_ext >&5
23269 eval "$as_ac_var=no"
23272 rm -f core conftest.err conftest.$ac_objext \
23273 conftest$ac_exeext conftest.$ac_ext
23275 ac_res=`eval echo '${'$as_ac_var'}'`
23276 { echo "$as_me:$LINENO: result: $ac_res" >&5
23277 echo "${ECHO_T}$ac_res" >&6; }
23278 if test `eval echo '${'$as_ac_var'}'` = yes; then
23279 cat >>confdefs.h <<_ACEOF
23280 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
23284 # strftime is in -lintl on SCO UNIX.
23285 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
23286 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
23287 if test "${ac_cv_lib_intl_strftime+set}" = set; then
23288 echo $ECHO_N "(cached) $ECHO_C" >&6
23290 ac_check_lib_save_LIBS=$LIBS
23291 LIBS="-lintl $LIBS"
23292 cat >conftest.$ac_ext <<_ACEOF
23295 cat confdefs.h >>conftest.$ac_ext
23296 cat >>conftest.$ac_ext <<_ACEOF
23297 /* end confdefs.h. */
23299 /* Override any GCC internal prototype to avoid an error.
23300 Use char because int might match the return type of a GCC
23301 builtin and then its argument prototype would still apply. */
23309 return strftime ();
23314 rm -f conftest.$ac_objext conftest$ac_exeext
23315 if { (ac_try="$ac_link"
23316 case "(($ac_try" in
23317 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23318 *) ac_try_echo
=$ac_try;;
23320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23321 (eval "$ac_link") 2>conftest.er1
23323 grep -v '^ *+' conftest.er1
>conftest.err
23325 cat conftest.err
>&5
23326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23327 (exit $ac_status); } &&
23328 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
23329 { (case "(($ac_try" in
23330 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23331 *) ac_try_echo=$ac_try;;
23333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23334 (eval "$ac_try") 2>&5
23336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23337 (exit $ac_status); }; } &&
23338 { ac_try='test -s conftest$ac_exeext'
23339 { (case "(($ac_try" in
23340 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23341 *) ac_try_echo
=$ac_try;;
23343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23344 (eval "$ac_try") 2>&5
23346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23347 (exit $ac_status); }; }; then
23348 ac_cv_lib_intl_strftime
=yes
23350 echo "$as_me: failed program was:" >&5
23351 sed 's/^/| /' conftest.
$ac_ext >&5
23353 ac_cv_lib_intl_strftime
=no
23356 rm -f core conftest.err conftest.
$ac_objext \
23357 conftest
$ac_exeext conftest.
$ac_ext
23358 LIBS
=$ac_check_lib_save_LIBS
23360 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
23361 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
23362 if test $ac_cv_lib_intl_strftime = yes; then
23363 cat >>confdefs.h
<<\_ACEOF
23364 #define HAVE_STRFTIME 1
23367 LIBS
="-lintl $LIBS"
23373 { echo "$as_me:$LINENO: checking for working strnlen" >&5
23374 echo $ECHO_N "checking for working strnlen... $ECHO_C" >&6; }
23375 if test "${ac_cv_func_strnlen_working+set}" = set; then
23376 echo $ECHO_N "(cached) $ECHO_C" >&6
23378 if test "$cross_compiling" = yes; then
23379 ac_cv_func_strnlen_working
=no
23381 cat >conftest.
$ac_ext <<_ACEOF
23384 cat confdefs.h
>>conftest.
$ac_ext
23385 cat >>conftest.
$ac_ext <<_ACEOF
23386 /* end confdefs.h. */
23387 $ac_includes_default
23393 #define S_LEN (sizeof S - 1)
23395 /* At least one implementation is buggy: that of AIX 4.3 would
23396 give strnlen (S, 1) == 3. */
23399 for (i = 0; i < S_LEN + 1; ++i)
23401 int expected = i <= S_LEN ? i : S_LEN;
23402 if (strnlen (S, i) != expected)
23411 rm -f conftest
$ac_exeext
23412 if { (ac_try
="$ac_link"
23413 case "(($ac_try" in
23414 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23415 *) ac_try_echo=$ac_try;;
23417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23418 (eval "$ac_link") 2>&5
23420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23421 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23422 { (case "(($ac_try" in
23423 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23424 *) ac_try_echo
=$ac_try;;
23426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23427 (eval "$ac_try") 2>&5
23429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23430 (exit $ac_status); }; }; then
23431 ac_cv_func_strnlen_working
=yes
23433 echo "$as_me: program exited with status $ac_status" >&5
23434 echo "$as_me: failed program was:" >&5
23435 sed 's/^/| /' conftest.
$ac_ext >&5
23437 ( exit $ac_status )
23438 ac_cv_func_strnlen_working
=no
23440 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
23445 { echo "$as_me:$LINENO: result: $ac_cv_func_strnlen_working" >&5
23446 echo "${ECHO_T}$ac_cv_func_strnlen_working" >&6; }
23447 test $ac_cv_func_strnlen_working = no
&& case " $LIBOBJS " in
23448 *" strnlen.$ac_objext "* ) ;;
23449 *) LIBOBJS
="$LIBOBJS strnlen.$ac_objext"
23455 for ac_func
in vprintf
23457 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23458 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23459 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23460 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23461 echo $ECHO_N "(cached) $ECHO_C" >&6
23463 cat >conftest.
$ac_ext <<_ACEOF
23466 cat confdefs.h
>>conftest.
$ac_ext
23467 cat >>conftest.
$ac_ext <<_ACEOF
23468 /* end confdefs.h. */
23469 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23470 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23471 #define $ac_func innocuous_$ac_func
23473 /* System header to define __stub macros and hopefully few prototypes,
23474 which can conflict with char $ac_func (); below.
23475 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23476 <limits.h> exists even on freestanding compilers. */
23479 # include <limits.h>
23481 # include <assert.h>
23486 /* Override any GCC internal prototype to avoid an error.
23487 Use char because int might match the return type of a GCC
23488 builtin and then its argument prototype would still apply. */
23493 /* The GNU C library defines this for functions which it implements
23494 to always fail with ENOSYS. Some functions are actually named
23495 something starting with __ and the normal name is an alias. */
23496 #if defined __stub_$ac_func || defined __stub___$ac_func
23503 return $ac_func ();
23508 rm -f conftest.
$ac_objext conftest
$ac_exeext
23509 if { (ac_try
="$ac_link"
23510 case "(($ac_try" in
23511 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23512 *) ac_try_echo=$ac_try;;
23514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23515 (eval "$ac_link") 2>conftest.er1
23517 grep -v '^ *+' conftest.er1 >conftest.err
23519 cat conftest.err >&5
23520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23521 (exit $ac_status); } &&
23522 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
23523 { (case "(($ac_try" in
23524 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23525 *) ac_try_echo
=$ac_try;;
23527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23528 (eval "$ac_try") 2>&5
23530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23531 (exit $ac_status); }; } &&
23532 { ac_try
='test -s conftest$ac_exeext'
23533 { (case "(($ac_try" in
23534 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23535 *) ac_try_echo=$ac_try;;
23537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23538 (eval "$ac_try") 2>&5
23540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23541 (exit $ac_status); }; }; then
23542 eval "$as_ac_var=yes"
23544 echo "$as_me: failed program was:" >&5
23545 sed 's/^/| /' conftest.$ac_ext >&5
23547 eval "$as_ac_var=no"
23550 rm -f core conftest.err conftest.$ac_objext \
23551 conftest$ac_exeext conftest.$ac_ext
23553 ac_res=`eval echo '${'$as_ac_var'}'`
23554 { echo "$as_me:$LINENO: result: $ac_res" >&5
23555 echo "${ECHO_T}$ac_res" >&6; }
23556 if test `eval echo '${'$as_ac_var'}'` = yes; then
23557 cat >>confdefs.h <<_ACEOF
23558 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
23561 { echo "$as_me:$LINENO: checking for _doprnt" >&5
23562 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
23563 if test "${ac_cv_func__doprnt+set}" = set; then
23564 echo $ECHO_N "(cached) $ECHO_C" >&6
23566 cat >conftest.$ac_ext <<_ACEOF
23569 cat confdefs.h >>conftest.$ac_ext
23570 cat >>conftest.$ac_ext <<_ACEOF
23571 /* end confdefs.h. */
23572 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
23573 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23574 #define _doprnt innocuous__doprnt
23576 /* System header to define __stub macros and hopefully few prototypes,
23577 which can conflict with char _doprnt (); below.
23578 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23579 <limits.h> exists even on freestanding compilers. */
23582 # include <limits.h>
23584 # include <assert.h>
23589 /* Override any GCC internal prototype to avoid an error.
23590 Use char because int might match the return type of a GCC
23591 builtin and then its argument prototype would still apply. */
23596 /* The GNU C library defines this for functions which it implements
23597 to always fail with ENOSYS. Some functions are actually named
23598 something starting with __ and the normal name is an alias. */
23599 #if defined __stub__doprnt || defined __stub____doprnt
23611 rm -f conftest.$ac_objext conftest$ac_exeext
23612 if { (ac_try="$ac_link"
23613 case "(($ac_try" in
23614 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23615 *) ac_try_echo
=$ac_try;;
23617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23618 (eval "$ac_link") 2>conftest.er1
23620 grep -v '^ *+' conftest.er1
>conftest.err
23622 cat conftest.err
>&5
23623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23624 (exit $ac_status); } &&
23625 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
23626 { (case "(($ac_try" in
23627 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23628 *) ac_try_echo=$ac_try;;
23630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23631 (eval "$ac_try") 2>&5
23633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23634 (exit $ac_status); }; } &&
23635 { ac_try='test -s conftest$ac_exeext'
23636 { (case "(($ac_try" in
23637 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23638 *) ac_try_echo
=$ac_try;;
23640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23641 (eval "$ac_try") 2>&5
23643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23644 (exit $ac_status); }; }; then
23645 ac_cv_func__doprnt
=yes
23647 echo "$as_me: failed program was:" >&5
23648 sed 's/^/| /' conftest.
$ac_ext >&5
23650 ac_cv_func__doprnt
=no
23653 rm -f core conftest.err conftest.
$ac_objext \
23654 conftest
$ac_exeext conftest.
$ac_ext
23656 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
23657 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
23658 if test $ac_cv_func__doprnt = yes; then
23660 cat >>confdefs.h
<<\_ACEOF
23661 #define HAVE_DOPRNT 1
23692 ftime strcspn strtoul atexit bzero floor gethostbyname \
23693 gettimeofday localtime_r memset rint
select socket \
23694 sqrt stpcpy strchr strpbrk strrchr strstr strtol strtoul \
23697 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23698 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23699 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23700 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23701 echo $ECHO_N "(cached) $ECHO_C" >&6
23703 cat >conftest.
$ac_ext <<_ACEOF
23706 cat confdefs.h
>>conftest.
$ac_ext
23707 cat >>conftest.
$ac_ext <<_ACEOF
23708 /* end confdefs.h. */
23709 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23710 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23711 #define $ac_func innocuous_$ac_func
23713 /* System header to define __stub macros and hopefully few prototypes,
23714 which can conflict with char $ac_func (); below.
23715 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23716 <limits.h> exists even on freestanding compilers. */
23719 # include <limits.h>
23721 # include <assert.h>
23726 /* Override any GCC internal prototype to avoid an error.
23727 Use char because int might match the return type of a GCC
23728 builtin and then its argument prototype would still apply. */
23733 /* The GNU C library defines this for functions which it implements
23734 to always fail with ENOSYS. Some functions are actually named
23735 something starting with __ and the normal name is an alias. */
23736 #if defined __stub_$ac_func || defined __stub___$ac_func
23743 return $ac_func ();
23748 rm -f conftest.
$ac_objext conftest
$ac_exeext
23749 if { (ac_try
="$ac_link"
23750 case "(($ac_try" in
23751 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23752 *) ac_try_echo=$ac_try;;
23754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23755 (eval "$ac_link") 2>conftest.er1
23757 grep -v '^ *+' conftest.er1 >conftest.err
23759 cat conftest.err >&5
23760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23761 (exit $ac_status); } &&
23762 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
23763 { (case "(($ac_try" in
23764 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23765 *) ac_try_echo
=$ac_try;;
23767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23768 (eval "$ac_try") 2>&5
23770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23771 (exit $ac_status); }; } &&
23772 { ac_try
='test -s conftest$ac_exeext'
23773 { (case "(($ac_try" in
23774 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23775 *) ac_try_echo=$ac_try;;
23777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23778 (eval "$ac_try") 2>&5
23780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23781 (exit $ac_status); }; }; then
23782 eval "$as_ac_var=yes"
23784 echo "$as_me: failed program was:" >&5
23785 sed 's/^/| /' conftest.$ac_ext >&5
23787 eval "$as_ac_var=no"
23790 rm -f core conftest.err conftest.$ac_objext \
23791 conftest$ac_exeext conftest.$ac_ext
23793 ac_res=`eval echo '${'$as_ac_var'}'`
23794 { echo "$as_me:$LINENO: result: $ac_res" >&5
23795 echo "${ECHO_T}$ac_res" >&6; }
23796 if test `eval echo '${'$as_ac_var'}'` = yes; then
23797 cat >>confdefs.h <<_ACEOF
23798 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
23807 # Check whether --with-python was given.
23808 if test "${with_python+set}" = set; then
23809 withval=$with_python;
23813 WITH_PYTHON_VERSION=$withval
23814 if test $withval = auto ; then
23816 { echo "$as_me:$LINENO: checking for python 2.4" >&5
23817 echo $ECHO_N "checking for python 2.4... $ECHO_C" >&6; }
23818 if test "$cross_compiling" = yes; then
23821 cat >conftest.$ac_ext <<_ACEOF
23824 cat confdefs.h >>conftest.$ac_ext
23825 cat >>conftest.$ac_ext <<_ACEOF
23826 /* end confdefs.h. */
23828 #include <python2.4/Python.h>
23830 exit(strncmp("2.4", PY_VERSION, 3));
23833 rm -f conftest$ac_exeext
23834 if { (ac_try="$ac_link"
23835 case "(($ac_try" in
23836 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23837 *) ac_try_echo
=$ac_try;;
23839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23840 (eval "$ac_link") 2>&5
23842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23843 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
23844 { (case "(($ac_try" in
23845 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23846 *) ac_try_echo=$ac_try;;
23848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23849 (eval "$ac_try") 2>&5
23851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23852 (exit $ac_status); }; }; then
23855 echo "$as_me: program exited with status $ac_status" >&5
23856 echo "$as_me: failed program was:" >&5
23857 sed 's/^/| /' conftest.$ac_ext >&5
23859 ( exit $ac_status )
23862 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23866 { echo "$as_me:$LINENO: result: $withval" >&5
23867 echo "${ECHO_T}$withval" >&6; }
23868 if test $withval = yes ; then
23869 WITH_PYTHON_VERSION="2.4"
23872 { echo "$as_me:$LINENO: checking for python 2.3" >&5
23873 echo $ECHO_N "checking for python 2.3... $ECHO_C" >&6; }
23874 if test "$cross_compiling" = yes; then
23877 cat >conftest.$ac_ext <<_ACEOF
23880 cat confdefs.h >>conftest.$ac_ext
23881 cat >>conftest.$ac_ext <<_ACEOF
23882 /* end confdefs.h. */
23884 #include <python2.3/Python.h>
23886 exit(strncmp("2.3", PY_VERSION, 3));
23889 rm -f conftest$ac_exeext
23890 if { (ac_try="$ac_link"
23891 case "(($ac_try" in
23892 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23893 *) ac_try_echo
=$ac_try;;
23895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23896 (eval "$ac_link") 2>&5
23898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23899 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
23900 { (case "(($ac_try" in
23901 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23902 *) ac_try_echo=$ac_try;;
23904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23905 (eval "$ac_try") 2>&5
23907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23908 (exit $ac_status); }; }; then
23911 echo "$as_me: program exited with status $ac_status" >&5
23912 echo "$as_me: failed program was:" >&5
23913 sed 's/^/| /' conftest.$ac_ext >&5
23915 ( exit $ac_status )
23918 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23922 { echo "$as_me:$LINENO: result: $withval" >&5
23923 echo "${ECHO_T}$withval" >&6; }
23924 if test $withval = yes ; then
23925 WITH_PYTHON_VERSION="2.3"
23928 { echo "$as_me:$LINENO: checking for python 2.2" >&5
23929 echo $ECHO_N "checking for python 2.2... $ECHO_C" >&6; }
23930 if test "$cross_compiling" = yes; then
23933 cat >conftest.$ac_ext <<_ACEOF
23936 cat confdefs.h >>conftest.$ac_ext
23937 cat >>conftest.$ac_ext <<_ACEOF
23938 /* end confdefs.h. */
23940 #include <python2.2/Python.h>
23942 exit(strncmp("2.2", PY_VERSION, 3));
23945 rm -f conftest$ac_exeext
23946 if { (ac_try="$ac_link"
23947 case "(($ac_try" in
23948 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23949 *) ac_try_echo
=$ac_try;;
23951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23952 (eval "$ac_link") 2>&5
23954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23955 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
23956 { (case "(($ac_try" in
23957 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23958 *) ac_try_echo=$ac_try;;
23960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23961 (eval "$ac_try") 2>&5
23963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23964 (exit $ac_status); }; }; then
23967 echo "$as_me: program exited with status $ac_status" >&5
23968 echo "$as_me: failed program was:" >&5
23969 sed 's/^/| /' conftest.$ac_ext >&5
23971 ( exit $ac_status )
23974 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23978 { echo "$as_me:$LINENO: result: $withval" >&5
23979 echo "${ECHO_T}$withval" >&6; }
23980 if test $withval = yes ; then
23981 WITH_PYTHON_VERSION="2.2"
23984 { echo "$as_me:$LINENO: checking for python 1.5.2" >&5
23985 echo $ECHO_N "checking for python 1.5.2... $ECHO_C" >&6; }
23986 if test "$cross_compiling" = yes; then
23989 cat >conftest.$ac_ext <<_ACEOF
23992 cat confdefs.h >>conftest.$ac_ext
23993 cat >>conftest.$ac_ext <<_ACEOF
23994 /* end confdefs.h. */
23996 #include <python1.5/Python.h>
23998 exit(strcmp("1.5.2", PY_VERSION));
24001 rm -f conftest$ac_exeext
24002 if { (ac_try="$ac_link"
24003 case "(($ac_try" in
24004 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24005 *) ac_try_echo
=$ac_try;;
24007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24008 (eval "$ac_link") 2>&5
24010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24011 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
24012 { (case "(($ac_try" in
24013 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24014 *) ac_try_echo=$ac_try;;
24016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24017 (eval "$ac_try") 2>&5
24019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24020 (exit $ac_status); }; }; then
24023 echo "$as_me: program exited with status $ac_status" >&5
24024 echo "$as_me: failed program was:" >&5
24025 sed 's/^/| /' conftest.$ac_ext >&5
24027 ( exit $ac_status )
24030 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24034 { echo "$as_me:$LINENO: result: $withval" >&5
24035 echo "${ECHO_T}$withval" >&6; }
24036 if test $withval = yes ; then
24037 WITH_PYTHON_VERSION="1.5"
24044 if test "$WITH_PYTHON_VERSION" != no ; then
24045 WITH_PYTHON_SUBDIR=python
24046 WITH_PYTHON_SUBPACKAGE=1
24048 WITH_PYTHON_SUBDIR=
24049 WITH_PYTHON_SUBPACKAGE=0
24056 # Extract the first word of "doxygen", so it can be a program name with args.
24057 set dummy doxygen; ac_word=$2
24058 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24059 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24060 if test "${ac_cv_path___DOXYGEN+set}" = set; then
24061 echo $ECHO_N "(cached) $ECHO_C" >&6
24065 ac_cv_path___DOXYGEN="$__DOXYGEN" # Let the user override the test with a path.
24068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24069 for as_dir in $PATH
24072 test -z "$as_dir" && as_dir=.
24073 for ac_exec_ext in '' $ac_executable_extensions; do
24074 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
24075 ac_cv_path___DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
24076 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24083 test -z "$ac_cv_path___DOXYGEN" && ac_cv_path___DOXYGEN="no"
24087 __DOXYGEN=$ac_cv_path___DOXYGEN
24088 if test -n "$__DOXYGEN"; then
24089 { echo "$as_me:$LINENO: result: $__DOXYGEN" >&5
24090 echo "${ECHO_T}$__DOXYGEN" >&6; }
24092 { echo "$as_me:$LINENO: result: no" >&5
24093 echo "${ECHO_T}no" >&6; }
24099 # Check whether --with-apidocs was given.
24100 if test "${with_apidocs+set}" = set; then
24101 withval=$with_apidocs;
24105 if test $withval = auto -a $__DOXYGEN != no ; then
24107 elif test $withval = yes -a $__DOXYGEN = no ; then
24108 { { echo "$as_me:$LINENO: error: --> MaNGOS API docs needs doxygen in PATH" >&5
24109 echo "$as_me: error: --> MaNGOS API docs needs doxygen in PATH" >&2;}
24110 { (exit 1); exit 1; }; }
24113 if test $withval = yes; then
24114 WITH_APIDOCS_TARGET=apidocs
24122 { echo "$as_me:$LINENO: checking whether to include debug info in library" >&5
24123 echo $ECHO_N "checking whether to include debug info in library... $ECHO_C" >&6; }
24124 MANGOSD_DEBUG_INFO=no
24126 # Check whether --with-debug-info was given.
24127 if test "${with_debug_info+set}" = set; then
24128 withval=$with_debug_info;
24129 if test "$withval" = "yes" ; then
24130 CFLAGS="-g -DMANGOS_DEBUG $CFLAGS"
24131 CXXFLAGS="-g -DMANGOS_DEBUG $CXXFLAGS"
24132 MANGOSD_DEBUG_INFO=yes
24133 elif test "$withval" != "no" ; then
24134 { { echo "$as_me:$LINENO: error: Please choose yes or no" >&5
24135 echo "$as_me: error: Please choose yes or no" >&2;}
24136 { (exit 1); exit 1; }; }
24141 { echo "$as_me:$LINENO: result: $MANGOSD_DEBUG_INFO" >&5
24142 echo "${ECHO_T}$MANGOSD_DEBUG_INFO" >&6; }
24145 # check for cli console enable
24146 { echo "$as_me:$LINENO: checking whether cli console is enabled" >&5
24147 echo $ECHO_N "checking whether cli console is enabled... $ECHO_C" >&6; }
24148 MANGOSD_ENABLE_CLI=no
24149 # Check whether --enable-cli was given.
24150 if test "${enable_cli+set}" = set; then
24151 enableval=$enable_cli;
24152 if test "$enableval" = "yes" ; then
24153 CFLAGS="-DENABLE_CLI $CFLAGS"
24154 CXXFLAGS="-DENABLE_CLI $CXXFLAGS"
24155 MANGOSD_ENABLE_CLI=yes
24156 elif test "$withval" != "no" ; then
24157 { { echo "$as_me:$LINENO: error: Please choose yes or no" >&5
24158 echo "$as_me: error: Please choose yes or no" >&2;}
24159 { (exit 1); exit 1; }; }
24164 { echo "$as_me:$LINENO: result: $MANGOSD_ENABLE_CLI" >&5
24165 echo "${ECHO_T}$MANGOSD_ENABLE_CLI" >&6; }
24167 # check for remote console enable
24168 { echo "$as_me:$LINENO: checking whether remote console is enabled" >&5
24169 echo $ECHO_N "checking whether remote console is enabled... $ECHO_C" >&6; }
24170 MANGOSD_ENABLE_RA=no
24171 # Check whether --enable-ra was given.
24172 if test "${enable_ra+set}" = set; then
24173 enableval=$enable_ra;
24174 if test "$enableval" = "yes" ; then
24175 CFLAGS="-DENABLE_RA $CFLAGS"
24176 CXXFLAGS="-DENABLE_RA $CXXFLAGS"
24177 MANGOSD_ENABLE_RA=yes
24178 elif test "$withval" != "no" ; then
24179 { { echo "$as_me:$LINENO: error: Please choose yes or no" >&5
24180 echo "$as_me: error: Please choose yes or no" >&2;}
24181 { (exit 1); exit 1; }; }
24186 { echo "$as_me:$LINENO: result: $MANGOSD_ENABLE_RA" >&5
24187 echo "${ECHO_T}$MANGOSD_ENABLE_RA" >&6; }
24190 MANGOSD_CONFIG_TEMP="$sysconfdir/mangosd.conf"
24191 MANGOSD_CONFIGDIR_TEMP="$sysconfdir"
24192 REALMD_CONFIG_TEMP="$sysconfdir/realmd.conf"
24193 REALMD_CONFIGDIR_TEMP="$sysconfdir"
24194 if test $sysconfdir = '${prefix}/etc'; then
24195 MANGOSD_CONFIG_TEMP="${prefix}/mangos/mangosd.conf"
24196 MANGOSD_CONFIGDIR_TEMP="${prefix}/mangos"
24197 REALMD_CONFIG_TEMP="${prefix}/mangos/realmd.conf"
24198 REALMD_CONFIGDIR_TEMP="${prefix}/mangos"
24200 if test $sysconfdir = '/'; then
24201 MANGOSD_CONFIG_TEMP="/mangosd.conf"
24202 MANGOSD_CONFIGDIR_TEMP="/"
24203 REALMD_CONFIG_TEMP="/realmd.conf"
24204 REALMD_CONFIGDIR_TEMP="/"
24206 MANGOSD_CONFIG_TEMP="$sysconfdir/mangosd.conf"
24207 MANGOSD_CONFIGDIR_TEMP="$sysconfdir"
24208 REALMD_CONFIG_TEMP="$sysconfdir/realmd.conf"
24209 REALMD_CONFIGDIR_TEMP="$sysconfdir"
24213 if test $datadir = '${prefix}/share'; then
24214 MANGOSD_DATA_TEMP="${prefix}/share/mangos"
24216 if test $datadir = '/'; then
24217 MANGOSD_DATA_TEMP="/mangos"
24219 MANGOSD_DATA_TEMP="$datadir/mangos"
24223 eval "MANGOSD_CONFIG=$MANGOSD_CONFIG_TEMP"
24224 eval "MANGOSD_CONFIGDIR=$MANGOSD_CONFIGDIR_TEMP"
24225 eval "REALMD_CONFIG=$REALMD_CONFIG_TEMP"
24226 eval "REALMD_CONFIGDIR=$REALMD_CONFIGDIR_TEMP"
24227 eval "MANGOSD_DATA=$MANGOSD_DATA_TEMP"
24229 COMPILER_OPTIONS="$COMPILER_OPTIONS $CXXFLAGS"
24230 LINKER_OPTIONS="$LINKER_OPTIONS $LDFLAGS"
24255 ac_config_files="$ac_config_files ./Makefile doc/Doxyfile doc/Makefile sql/Makefile src/Makefile src/shared/Makefile src/shared/SystemConfig.h src/realmd/Makefile src/realmd/realmd.conf src/framework/Makefile src/game/Makefile src/bindings/Makefile src/bindings/python/Makefile src/bindings/universal/Makefile src/mangosd/Makefile src/mangosd/mangosd.conf dep/Makefile dep/src/Makefile dep/src/zlib/Makefile dep/src/zthread/Makefile"
24258 cat >confcache <<\_ACEOF
24259 # This file is a shell script that caches the results of configure
24260 # tests run on this system so they can be shared between configure
24261 # scripts and configure runs, see configure's option --config-cache.
24262 # It is not useful on other systems. If it contains results you don't
24263 # want to keep, you may remove or edit it.
24265 # config.status only pays attention to the cache file if you give it
24266 # the --recheck option to rerun configure.
24268 # `ac_cv_env_foo
' variables (set or unset) will be overridden when
24269 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24270 # following values.
24274 # The following way of writing the cache mishandles newlines in values,
24275 # but we know of no workaround that is simple, portable, and efficient.
24276 # So, we kill variables containing newlines.
24277 # Ultrix sh set writes to stderr and can't be redirected directly,
24278 # and sets the high bit in the cache file unless we assign to the vars.
24280 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24281 eval ac_val
=\$
$ac_var
24285 *_cv_
*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
24286 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
24289 _ | IFS | as_nl
) ;; #(
24290 *) $as_unset $ac_var ;;
24296 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24297 *${as_nl}ac_space
=\
*)
24298 # `set' does not quote correctly, so add quotes (double-quote
24299 # substitution turns \\\\ into \\, and sed turns \\ into \).
24302 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24305 # `set' quotes correctly as required by POSIX, so do not add quotes.
24306 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24315 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24317 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24319 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
24320 if test -w "$cache_file"; then
24321 test "x$cache_file" != "x/dev/null" &&
24322 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
24323 echo "$as_me: updating cache $cache_file" >&6;}
24324 cat confcache
>$cache_file
24326 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
24327 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24332 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
24333 # Let make expand exec_prefix.
24334 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
24336 DEFS
=-DHAVE_CONFIG_H
24340 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
24341 # 1. Remove the extension, and $U if already installed.
24342 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
24343 ac_i
=`echo "$ac_i" | sed "$ac_script"`
24344 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24345 # will be set to the directory where LIBOBJS objects are built.
24346 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24347 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
24349 LIBOBJS
=$ac_libobjs
24351 LTLIBOBJS
=$ac_ltlibobjs
24354 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
24355 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
24356 Usually this means the macro was only invoked conditionally." >&5
24357 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
24358 Usually this means the macro was only invoked conditionally." >&2;}
24359 { (exit 1); exit 1; }; }
24361 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
24362 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
24363 Usually this means the macro was only invoked conditionally." >&5
24364 echo "$as_me: error: conditional \"AMDEP\" was never defined.
24365 Usually this means the macro was only invoked conditionally." >&2;}
24366 { (exit 1); exit 1; }; }
24368 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24369 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
24370 Usually this means the macro was only invoked conditionally." >&5
24371 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
24372 Usually this means the macro was only invoked conditionally." >&2;}
24373 { (exit 1); exit 1; }; }
24375 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
24376 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
24377 Usually this means the macro was only invoked conditionally." >&5
24378 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
24379 Usually this means the macro was only invoked conditionally." >&2;}
24380 { (exit 1); exit 1; }; }
24383 : ${CONFIG_STATUS=./config.status}
24384 ac_clean_files_save
=$ac_clean_files
24385 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
24386 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24387 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24388 cat >$CONFIG_STATUS <<_ACEOF
24390 # Generated by $as_me.
24391 # Run this file to recreate the current configuration.
24392 # Compiler output produced by configure, useful for debugging
24393 # configure, is in config.log if it exists.
24396 ac_cs_recheck=false
24398 SHELL=\${CONFIG_SHELL-$SHELL}
24401 cat >>$CONFIG_STATUS <<\_ACEOF
24402 ## --------------------- ##
24403 ## M4sh Initialization. ##
24404 ## --------------------- ##
24406 # Be Bourne compatible
24407 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
24410 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24411 # is contrary to our usage. Disable this feature.
24412 alias -g '${1+"$@"}'='"$@"'
24413 setopt NO_GLOB_SUBST
24415 case `(set -o) 2>/dev/null` in *posix
*) set -o posix
;; esac
24417 BIN_SH
=xpg4
; export BIN_SH
# for Tru64
24418 DUALCASE
=1; export DUALCASE
# for MKS sh
24422 # Avoid depending upon Character Ranges.
24423 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
24424 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24425 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
24426 as_cr_digits
='0123456789'
24427 as_cr_alnum
=$as_cr_Letters$as_cr_digits
24429 # The user is always right.
24430 if test "${PATH_SEPARATOR+set}" != set; then
24431 echo "#! /bin/sh" >conf$$.sh
24432 echo "exit 0" >>conf$$.sh
24434 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
24442 # Support unset when possible.
24443 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
24451 # We need space, tab and new line, in precisely that order. Quoting is
24452 # there to prevent editors from complaining about space-tab.
24453 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24454 # splitting by setting IFS to empty value.)
24459 # Find who we are. Look in the path if we contain no directory separator.
24461 *[\\/]* ) as_myself
=$0 ;;
24462 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
24463 for as_dir
in $PATH
24466 test -z "$as_dir" && as_dir
=.
24467 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
24473 # We did not find ourselves, most probably we were run as `sh COMMAND'
24474 # in which case we are not to be found in the path.
24475 if test "x$as_myself" = x
; then
24478 if test ! -f "$as_myself"; then
24479 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24480 { (exit 1); exit 1; }
24483 # Work around bugs in pre-3.0 UWIN ksh.
24484 for as_var
in ENV MAIL MAILPATH
24485 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
24493 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24494 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24495 LC_TELEPHONE LC_TIME
24497 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24498 eval $as_var=C
; export $as_var
24500 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
24504 # Required to use basename.
24505 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
24506 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
24512 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24513 as_basename
=basename
24519 # Name of the executable.
24520 as_me
=`$as_basename -- "$0" ||
24521 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24522 X"$0" : 'X\(//\)$' \| \
24523 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24525 sed '/^.*\/\([^/][^/]*\)\/*$/{
24544 as_lineno_1
=$LINENO
24545 as_lineno_2
=$LINENO
24546 test "x$as_lineno_1" != "x$as_lineno_2" &&
24547 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
24549 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24550 # uniformly replaced by the line number. The first 'sed' inserts a
24551 # line-number line after each line using $LINENO; the second 'sed'
24552 # does the real work. The second script uses 'N' to pair each
24553 # line-number line with the line containing $LINENO, and appends
24554 # trailing '-' during substitution so that $LINENO is not a special
24555 # case at line end.
24556 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24557 # scripts with optimization help from Paolo Bonzini. Blame Lee
24558 # E. McMahon (1931-1989) for sed's syntax. :-)
24570 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24573 ' >$as_me.lineno
&&
24574 chmod +x
"$as_me.lineno" ||
24575 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24576 { (exit 1); exit 1; }; }
24578 # Don't try to exec as it changes $[0], causing all sort of problems
24579 # (the dirname of $[0] is not the place where we might find the
24580 # original and so on. Autoconf is especially sensitive to this).
24581 .
"./$as_me.lineno"
24582 # Exit status is that of the last command.
24587 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
24593 ECHO_C
= ECHO_N
= ECHO_T
=
24594 case `echo -n x` in
24596 case `echo 'x\c'` in
24597 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
24604 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
24605 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
24611 rm -f conf$$ conf$$.exe conf$$.
file
24612 if test -d conf$$.dir
; then
24613 rm -f conf$$.dir
/conf$$.
file
24619 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
24621 # ... but there are two gotchas:
24622 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24623 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24624 # In both cases, we have to default to `cp -p'.
24625 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
24627 elif ln conf$$.
file conf$$
2>/dev
/null
; then
24632 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
24633 rmdir conf$$.dir
2>/dev
/null
24635 if mkdir
-p .
2>/dev
/null
; then
24638 test -d .
/-p && rmdir .
/-p
24642 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
24643 # systems may use methods other than mode bits to determine executability.
24644 cat >conf$$.
file <<_ASEOF
24648 chmod +x conf$$.
file
24649 if test -x conf$$.
file >/dev
/null
2>&1; then
24650 as_executable_p
="test -x"
24656 # Sed expression to map a string onto a valid CPP name.
24657 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24659 # Sed expression to map a string onto a valid variable name.
24660 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24665 # Save the log message, to keep $[0] and so on meaningful, and to
24666 # report actual input values of CONFIG_FILES etc. instead of their
24667 # values after options handling.
24669 This file was extended by MaNGOS $as_me 0.7-SVN, which was
24670 generated by GNU Autoconf 2.60. Invocation command line was
24672 CONFIG_FILES = $CONFIG_FILES
24673 CONFIG_HEADERS = $CONFIG_HEADERS
24674 CONFIG_LINKS = $CONFIG_LINKS
24675 CONFIG_COMMANDS = $CONFIG_COMMANDS
24678 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24683 cat >>$CONFIG_STATUS <<_ACEOF
24684 # Files that config.status was made for.
24685 config_files="$ac_config_files"
24686 config_headers="$ac_config_headers"
24687 config_commands="$ac_config_commands"
24691 cat >>$CONFIG_STATUS <<\_ACEOF
24693 \`$as_me' instantiates files from templates according to the
24694 current configuration.
24696 Usage: $0 [OPTIONS] [FILE]...
24698 -h, --help print this help, then exit
24699 -V, --version print version number, then exit
24700 -q, --quiet do not print progress messages
24701 -d, --debug don't remove temporary files
24702 --recheck update $as_me by reconfiguring in the same conditions
24703 --file=FILE[:TEMPLATE]
24704 instantiate the configuration file FILE
24705 --header=FILE[:TEMPLATE]
24706 instantiate the configuration header FILE
24708 Configuration files:
24711 Configuration headers:
24714 Configuration commands:
24717 Report bugs to <bug-autoconf@gnu.org>."
24720 cat >>$CONFIG_STATUS <<_ACEOF
24722 MaNGOS config.status 0.7-SVN
24723 configured by $0, generated by GNU Autoconf 2.60,
24724 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24726 Copyright (C) 2006 Free Software Foundation, Inc.
24727 This config.status script is free software; the Free Software Foundation
24728 gives unlimited permission to copy, distribute and modify it."
24735 cat >>$CONFIG_STATUS <<\_ACEOF
24736 # If no file are specified by the user, then we need to provide default
24737 # value. By we need to know if files were specified by the user.
24743 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
24744 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
24755 # Handling of the options.
24756 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
24758 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
24759 echo "$ac_cs_version"; exit ;;
24760 --debug |
--debu |
--deb |
--de |
--d |
-d )
24762 --file |
--fil |
--fi |
--f )
24764 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
24765 ac_need_defaults
=false
;;
24766 --header |
--heade |
--head |
--hea )
24768 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
24769 ac_need_defaults
=false
;;
24771 # Conflict between --help and --header
24772 { echo "$as_me: error: ambiguous option: $1
24773 Try \`$0 --help' for more information." >&2
24774 { (exit 1); exit 1; }; };;
24775 --help |
--hel |
-h )
24776 echo "$ac_cs_usage"; exit ;;
24777 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
24778 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
24781 # This is an error.
24782 -*) { echo "$as_me: error: unrecognized option: $1
24783 Try \`$0 --help' for more information." >&2
24784 { (exit 1); exit 1; }; } ;;
24786 *) ac_config_targets
="$ac_config_targets $1"
24787 ac_need_defaults
=false
;;
24793 ac_configure_extra_args
=
24795 if $ac_cs_silent; then
24797 ac_configure_extra_args
="$ac_configure_extra_args --silent"
24801 cat >>$CONFIG_STATUS <<_ACEOF
24802 if \$ac_cs_recheck; then
24803 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24804 CONFIG_SHELL=$SHELL
24805 export CONFIG_SHELL
24806 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24810 cat >>$CONFIG_STATUS <<\_ACEOF
24814 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24815 ## Running $as_me. ##
24821 cat >>$CONFIG_STATUS <<_ACEOF
24825 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
24829 cat >>$CONFIG_STATUS <<\_ACEOF
24831 # Handling of arguments.
24832 for ac_config_target
in $ac_config_targets
24834 case $ac_config_target in
24835 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
24836 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
24837 "./Makefile") CONFIG_FILES
="$CONFIG_FILES ./Makefile" ;;
24838 "doc/Doxyfile") CONFIG_FILES
="$CONFIG_FILES doc/Doxyfile" ;;
24839 "doc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/Makefile" ;;
24840 "sql/Makefile") CONFIG_FILES
="$CONFIG_FILES sql/Makefile" ;;
24841 "src/Makefile") CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
24842 "src/shared/Makefile") CONFIG_FILES
="$CONFIG_FILES src/shared/Makefile" ;;
24843 "src/shared/SystemConfig.h") CONFIG_FILES
="$CONFIG_FILES src/shared/SystemConfig.h" ;;
24844 "src/realmd/Makefile") CONFIG_FILES
="$CONFIG_FILES src/realmd/Makefile" ;;
24845 "src/realmd/realmd.conf") CONFIG_FILES
="$CONFIG_FILES src/realmd/realmd.conf" ;;
24846 "src/framework/Makefile") CONFIG_FILES
="$CONFIG_FILES src/framework/Makefile" ;;
24847 "src/game/Makefile") CONFIG_FILES
="$CONFIG_FILES src/game/Makefile" ;;
24848 "src/bindings/Makefile") CONFIG_FILES
="$CONFIG_FILES src/bindings/Makefile" ;;
24849 "src/bindings/python/Makefile") CONFIG_FILES
="$CONFIG_FILES src/bindings/python/Makefile" ;;
24850 "src/bindings/universal/Makefile") CONFIG_FILES
="$CONFIG_FILES src/bindings/universal/Makefile" ;;
24851 "src/mangosd/Makefile") CONFIG_FILES
="$CONFIG_FILES src/mangosd/Makefile" ;;
24852 "src/mangosd/mangosd.conf") CONFIG_FILES
="$CONFIG_FILES src/mangosd/mangosd.conf" ;;
24853 "dep/Makefile") CONFIG_FILES
="$CONFIG_FILES dep/Makefile" ;;
24854 "dep/src/Makefile") CONFIG_FILES
="$CONFIG_FILES dep/src/Makefile" ;;
24855 "dep/src/zlib/Makefile") CONFIG_FILES
="$CONFIG_FILES dep/src/zlib/Makefile" ;;
24856 "dep/src/zthread/Makefile") CONFIG_FILES
="$CONFIG_FILES dep/src/zthread/Makefile" ;;
24858 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24859 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24860 { (exit 1); exit 1; }; };;
24865 # If the user did not use the arguments to specify the items to instantiate,
24866 # then the envvar interface is used. Set only those that are not.
24867 # We use the long form for the default assignment because of an extremely
24868 # bizarre bug on SunOS 4.1.3.
24869 if $ac_need_defaults; then
24870 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
24871 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
24872 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
24875 # Have a temporary directory for convenience. Make it in the build tree
24876 # simply because there is no reason against having it here, and in addition,
24877 # creating and moving files from /tmp can sometimes cause problems.
24878 # Hook for its removal unless debugging.
24879 # Note that there is a small window in which the directory will not be cleaned:
24880 # after its creation but before its name has been assigned to `$tmp'.
24884 trap 'exit_status=$?
24885 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24887 trap '{ (exit 1); exit 1; }' 1 2 13 15
24889 # Create a (secure) tmp directory for tmp files.
24892 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24893 test -n "$tmp" && test -d "$tmp"
24896 tmp
=.
/conf$$
-$RANDOM
24897 (umask 077 && mkdir
"$tmp")
24900 echo "$me: cannot create a temporary directory in ." >&2
24901 { (exit 1); exit 1; }
24905 # Set up the sed scripts for CONFIG_FILES section.
24908 # No need to generate the scripts if there are no CONFIG_FILES.
24909 # This happens for instance when ./config.status config.h
24910 if test -n "$CONFIG_FILES"; then
24917 for ac_last_try
in false false false false false
:; do
24918 cat >conf$
$subs.
sed <<_ACEOF
24919 SHELL!$SHELL$ac_delim
24920 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24921 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24922 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24923 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24924 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24925 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24926 exec_prefix!$exec_prefix$ac_delim
24927 prefix!$prefix$ac_delim
24928 program_transform_name!$program_transform_name$ac_delim
24929 bindir!$bindir$ac_delim
24930 sbindir!$sbindir$ac_delim
24931 libexecdir!$libexecdir$ac_delim
24932 datarootdir!$datarootdir$ac_delim
24933 datadir!$datadir$ac_delim
24934 sysconfdir!$sysconfdir$ac_delim
24935 sharedstatedir!$sharedstatedir$ac_delim
24936 localstatedir!$localstatedir$ac_delim
24937 includedir!$includedir$ac_delim
24938 oldincludedir!$oldincludedir$ac_delim
24939 docdir!$docdir$ac_delim
24940 infodir!$infodir$ac_delim
24941 htmldir!$htmldir$ac_delim
24942 dvidir!$dvidir$ac_delim
24943 pdfdir!$pdfdir$ac_delim
24944 psdir!$psdir$ac_delim
24945 libdir!$libdir$ac_delim
24946 localedir!$localedir$ac_delim
24947 mandir!$mandir$ac_delim
24948 DEFS!$DEFS$ac_delim
24949 ECHO_C!$ECHO_C$ac_delim
24950 ECHO_N!$ECHO_N$ac_delim
24951 ECHO_T!$ECHO_T$ac_delim
24952 LIBS!$LIBS$ac_delim
24953 build_alias!$build_alias$ac_delim
24954 host_alias!$host_alias$ac_delim
24955 target_alias!$target_alias$ac_delim
24956 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
24957 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
24958 INSTALL_DATA!$INSTALL_DATA$ac_delim
24959 CYGPATH_W!$CYGPATH_W$ac_delim
24960 PACKAGE!$PACKAGE$ac_delim
24961 VERSION!$VERSION$ac_delim
24962 ACLOCAL!$ACLOCAL$ac_delim
24963 AUTOCONF!$AUTOCONF$ac_delim
24964 AUTOMAKE!$AUTOMAKE$ac_delim
24965 AUTOHEADER!$AUTOHEADER$ac_delim
24966 MAKEINFO!$MAKEINFO$ac_delim
24967 install_sh!$install_sh$ac_delim
24968 STRIP!$STRIP$ac_delim
24969 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
24970 mkdir_p!$mkdir_p$ac_delim
24972 SET_MAKE!$SET_MAKE$ac_delim
24973 am__leading_dot!$am__leading_dot$ac_delim
24974 AMTAR!$AMTAR$ac_delim
24975 am__tar!$am__tar$ac_delim
24976 am__untar!$am__untar$ac_delim
24977 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
24978 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
24979 MAINT!$MAINT$ac_delim
24981 CFLAGS!$CFLAGS$ac_delim
24982 LDFLAGS!$LDFLAGS$ac_delim
24983 CPPFLAGS!$CPPFLAGS$ac_delim
24984 ac_ct_CC!$ac_ct_CC$ac_delim
24985 EXEEXT!$EXEEXT$ac_delim
24986 OBJEXT!$OBJEXT$ac_delim
24987 DEPDIR!$DEPDIR$ac_delim
24988 am__include!$am__include$ac_delim
24989 am__quote!$am__quote$ac_delim
24990 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
24991 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
24992 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
24993 CCDEPMODE!$CCDEPMODE$ac_delim
24994 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
24995 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
24997 CXXFLAGS!$CXXFLAGS$ac_delim
24998 ac_ct_CXX!$ac_ct_CXX$ac_delim
24999 CXXDEPMODE!$CXXDEPMODE$ac_delim
25000 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
25001 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
25002 build!$build$ac_delim
25003 build_cpu!$build_cpu$ac_delim
25004 build_vendor!$build_vendor$ac_delim
25005 build_os!$build_os$ac_delim
25006 host!$host$ac_delim
25007 host_cpu!$host_cpu$ac_delim
25008 host_vendor!$host_vendor$ac_delim
25009 host_os!$host_os$ac_delim
25010 GREP!$GREP$ac_delim
25011 EGREP!$EGREP$ac_delim
25012 LN_S!$LN_S$ac_delim
25013 ECHO!$ECHO$ac_delim
25015 RANLIB!$RANLIB$ac_delim
25018 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
25020 elif $ac_last_try; then
25021 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25022 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25023 { (exit 1); exit 1; }; }
25025 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
25029 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25030 if test -n "$ac_eof"; then
25031 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
25032 ac_eof
=`expr $ac_eof + 1`
25035 cat >>$CONFIG_STATUS <<_ACEOF
25036 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
25037 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25040 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25041 s/^/s,@/; s/!/@,|#_!!_#|/
25044 s/'"$ac_delim"'$/,g/; t
25046 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25047 ' >>$CONFIG_STATUS <conf$
$subs.
sed
25048 rm -f conf$
$subs.
sed
25049 cat >>$CONFIG_STATUS <<_ACEOF
25055 for ac_last_try
in false false false false false
:; do
25056 cat >conf$
$subs.
sed <<_ACEOF
25058 CXXCPP!$CXXCPP$ac_delim
25060 FFLAGS!$FFLAGS$ac_delim
25061 ac_ct_F77!$ac_ct_F77$ac_delim
25062 LIBTOOL!$LIBTOOL$ac_delim
25063 __PYTHON!$__PYTHON$ac_delim
25064 OPENSSL_INCLUDES!$OPENSSL_INCLUDES$ac_delim
25065 OPENSSL_LDFLAGS!$OPENSSL_LDFLAGS$ac_delim
25066 MYSQL_INCLUDES!$MYSQL_INCLUDES$ac_delim
25067 MYSQL_LDFLAGS!$MYSQL_LDFLAGS$ac_delim
25068 INCLUDES!$INCLUDES$ac_delim
25069 LIBOBJS!$LIBOBJS$ac_delim
25070 ALLOCA!$ALLOCA$ac_delim
25071 WITH_PYTHON_SUBDIR!$WITH_PYTHON_SUBDIR$ac_delim
25072 WITH_PYTHON_SUBPACKAGE!$WITH_PYTHON_SUBPACKAGE$ac_delim
25073 WITH_PYTHON_VERSION!$WITH_PYTHON_VERSION$ac_delim
25074 __DOXYGEN!$__DOXYGEN$ac_delim
25075 WITH_APIDOCS_TARGET!$WITH_APIDOCS_TARGET$ac_delim
25076 WITH_APIDOCS!$WITH_APIDOCS$ac_delim
25077 LINKER_OPTIONS!$LINKER_OPTIONS$ac_delim
25078 COMPILER_OPTIONS!$COMPILER_OPTIONS$ac_delim
25079 EXTRA_LINKER_OPTIONS!$EXTRA_LINKER_OPTIONS$ac_delim
25080 EXTRA_COMPILER_OPTIONS!$EXTRA_COMPILER_OPTIONS$ac_delim
25081 MANGOSD_CONFIG!$MANGOSD_CONFIG$ac_delim
25082 MANGOSD_CONFIGDIR!$MANGOSD_CONFIGDIR$ac_delim
25083 REALMD_CONFIG!$REALMD_CONFIG$ac_delim
25084 REALMD_CONFIGDIR!$REALMD_CONFIGDIR$ac_delim
25085 MANGOSD_DATA!$MANGOSD_DATA$ac_delim
25086 MANGOSD_ENABLE_CLI!$MANGOSD_ENABLE_CLI$ac_delim
25087 MANGOSD_ENABLE_RA!$MANGOSD_ENABLE_RA$ac_delim
25088 LT_RELEASE!$LT_RELEASE$ac_delim
25089 LT_CURRENT!$LT_CURRENT$ac_delim
25090 LT_AGE!$LT_AGE$ac_delim
25091 LT_REVISION!$LT_REVISION$ac_delim
25092 LTMS_RELEASE!$LTMS_RELEASE$ac_delim
25093 LTMS_CURRENT!$LTMS_CURRENT$ac_delim
25094 LTMS_AGE!$LTMS_AGE$ac_delim
25095 LTMS_REVISION!$LTMS_REVISION$ac_delim
25096 LTLIBOBJS!$LTLIBOBJS$ac_delim
25099 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 40; then
25101 elif $ac_last_try; then
25102 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25103 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25104 { (exit 1); exit 1; }; }
25106 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
25110 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25111 if test -n "$ac_eof"; then
25112 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
25113 ac_eof
=`expr $ac_eof + 1`
25116 cat >>$CONFIG_STATUS <<_ACEOF
25117 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
25118 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
25121 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25122 s/^/s,@/; s/!/@,|#_!!_#|/
25125 s/'"$ac_delim"'$/,g/; t
25127 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25128 ' >>$CONFIG_STATUS <conf$
$subs.
sed
25129 rm -f conf$
$subs.
sed
25130 cat >>$CONFIG_STATUS <<_ACEOF
25137 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25138 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25139 # trailing colons and then remove the whole line if VPATH becomes empty
25140 # (actually we leave an empty line to preserve line numbers).
25141 if test "x$srcdir" = x.
; then
25142 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
25143 s/:*\$(srcdir):*/:/
25144 s/:*\${srcdir}:*/:/
25146 s/^\([^=]*=[ ]*\):*/\1/
25152 cat >>$CONFIG_STATUS <<\_ACEOF
25153 fi # test -n "$CONFIG_FILES"
25156 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS :C
$CONFIG_COMMANDS
25159 :[FHLC
]) ac_mode
=$ac_tag; continue;;
25161 case $ac_mode$ac_tag in
25163 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
25164 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
25165 { (exit 1); exit 1; }; };;
25166 :[FH
]-) ac_tag
=-:-;;
25167 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
25184 -) ac_f
="$tmp/stdin";;
25185 *) # Look for the file first in the build tree, then in the source tree
25186 # (if the path is not absolute). The absolute path cannot be DOS-style,
25187 # because $ac_f cannot contain `:'.
25191 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
25193 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
25194 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
25195 { (exit 1); exit 1; }; };;
25197 ac_file_inputs
="$ac_file_inputs $ac_f"
25200 # Let's still pretend it is `configure' which instantiates (i.e., don't
25201 # use $as_me), people would be surprised to read:
25202 # /* config.h. Generated by config.status. */
25203 configure_input
="Generated from "`IFS=:
25204 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
25205 if test x
"$ac_file" != x-
; then
25206 configure_input
="$ac_file. $configure_input"
25207 { echo "$as_me:$LINENO: creating $ac_file" >&5
25208 echo "$as_me: creating $ac_file" >&6;}
25212 *:-:* |
*:-) cat >"$tmp/stdin";;
25217 ac_dir
=`$as_dirname -- "$ac_file" ||
25218 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25219 X"$ac_file" : 'X\(//\)[^/]' \| \
25220 X"$ac_file" : 'X\(//\)$' \| \
25221 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25223 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25227 /^X\(\/\/\)[^/].*/{
25242 -*) as_dir
=.
/$as_dir;;
25244 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
25248 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25249 *) as_qdir
=$as_dir;;
25251 as_dirs
="'$as_qdir' $as_dirs"
25252 as_dir
=`$as_dirname -- "$as_dir" ||
25253 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25254 X"$as_dir" : 'X\(//\)[^/]' \| \
25255 X"$as_dir" : 'X\(//\)$' \| \
25256 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25258 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25262 /^X\(\/\/\)[^/].*/{
25275 test -d "$as_dir" && break
25277 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
25278 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25279 echo "$as_me: error: cannot create directory $as_dir" >&2;}
25280 { (exit 1); exit 1; }; }; }
25284 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
25286 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25287 # A ".." for each directory in $ac_dir_suffix.
25288 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
25289 case $ac_top_builddir_sub in
25290 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
25291 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
25294 ac_abs_top_builddir
=$ac_pwd
25295 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
25296 # for backward compatibility:
25297 ac_top_builddir
=$ac_top_build_prefix
25300 .
) # We are building in place.
25302 ac_top_srcdir
=$ac_top_builddir_sub
25303 ac_abs_top_srcdir
=$ac_pwd ;;
25304 [\\/]* | ?
:[\\/]* ) # Absolute name.
25305 ac_srcdir
=$srcdir$ac_dir_suffix;
25306 ac_top_srcdir
=$srcdir
25307 ac_abs_top_srcdir
=$srcdir ;;
25308 *) # Relative name.
25309 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
25310 ac_top_srcdir
=$ac_top_build_prefix$srcdir
25311 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
25313 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
25323 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
25324 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
25328 cat >>$CONFIG_STATUS <<\_ACEOF
25329 # If the template does not know about datarootdir, expand it.
25330 # FIXME: This hack should be removed a few years after 2.60.
25331 ac_datarootdir_hack
=; ac_datarootdir_seen
=
25333 case `sed -n '/datarootdir/ {
25342 ' $ac_file_inputs` in
25343 *datarootdir
*) ac_datarootdir_seen
=yes;;
25344 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
25345 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25346 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25348 cat >>$CONFIG_STATUS <<_ACEOF
25349 ac_datarootdir_hack='
25350 s&@datadir@&$datadir&g
25351 s&@docdir@&$docdir&g
25352 s&@infodir@&$infodir&g
25353 s&@localedir@&$localedir&g
25354 s&@mandir@&$mandir&g
25355 s&\\\${datarootdir}&$datarootdir&g' ;;
25359 # Neutralize VPATH when `$srcdir' = `.'.
25360 # Shell code in configure.ac might set extrasub.
25361 # FIXME: do we really want to maintain this feature?
25362 cat >>$CONFIG_STATUS <<_ACEOF
25366 cat >>$CONFIG_STATUS <<\_ACEOF
25368 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
25369 s
&@configure_input@
&$configure_input&;t t
25370 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
25371 s
&@srcdir@
&$ac_srcdir&;t t
25372 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
25373 s
&@top_srcdir@
&$ac_top_srcdir&;t t
25374 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
25375 s
&@builddir@
&$ac_builddir&;t t
25376 s
&@abs_builddir@
&$ac_abs_builddir&;t t
25377 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
25378 s
&@INSTALL@
&$ac_INSTALL&;t t
25379 $ac_datarootdir_hack
25380 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
25382 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25383 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
25384 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
25385 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
25386 which seems to be undefined. Please make sure it is defined." >&5
25387 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
25388 which seems to be undefined. Please make sure it is defined." >&2;}
25392 -) cat "$tmp/out"; rm -f "$tmp/out";;
25393 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
25402 # Transform confdefs.h into a sed script `conftest.defines', that
25403 # substitutes the proper values into config.h.in to produce config.h.
25404 rm -f conftest.defines conftest.
tail
25405 # First, append a space to every undef/define line, to ease matching.
25406 echo 's/$/ /' >conftest.defines
25407 # Then, protect against being on the right side of a sed subst, or in
25408 # an unquoted here document, in config.status. If some macros were
25409 # called several times there might be several #defines for the same
25410 # symbol, which is useless. But do not sort them, since the last
25411 # AC_DEFINE must be honored.
25412 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
25413 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
25414 # NAME is the cpp macro being defined, VALUE is the value it is being given.
25415 # PARAMS is the parameter list in the macro definition--in most cases, it's
25416 # just an empty string.
25417 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
25418 ac_dB
='\\)[ (].*,\\1define\\2'
25426 s/^[ ]*#[ ]*define[ ][ ]*//
25431 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25432 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
25433 ' >>conftest.defines
25435 # Remove the space that was appended to ease matching.
25436 # Then replace #undef with comments. This is necessary, for
25437 # example, in the case of _POSIX_SOURCE, which is predefined and required
25438 # on some systems where configure will not decide to define it.
25439 # (The regexp can be short, since the line contains either #define or #undef.)
25441 s,^[ #]*u.*,/* & */,' >>conftest.defines
25443 # Break up conftest.defines:
25444 ac_max_sed_lines
=50
25446 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
25447 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
25448 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
25450 ac_in
='$ac_file_inputs'
25451 ac_out
='"$tmp/out1"'
25452 ac_nxt
='"$tmp/out2"'
25456 # Write a here document:
25457 cat >>$CONFIG_STATUS <<_ACEOF
25458 # First, check the format of the line:
25459 cat >"\$tmp/defines.sed" <<\\CEOF
25460 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
25461 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
25465 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
25467 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25468 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
25469 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
25470 grep . conftest.
tail >/dev
/null ||
break
25471 rm -f conftest.defines
25472 mv conftest.
tail conftest.defines
25474 rm -f conftest.defines conftest.
tail
25476 echo "ac_result=$ac_in" >>$CONFIG_STATUS
25477 cat >>$CONFIG_STATUS <<\_ACEOF
25478 if test x
"$ac_file" != x-
; then
25479 echo "/* $configure_input */" >"$tmp/config.h"
25480 cat "$ac_result" >>"$tmp/config.h"
25481 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
25482 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25483 echo "$as_me: $ac_file is unchanged" >&6;}
25486 mv "$tmp/config.h" $ac_file
25489 echo "/* $configure_input */"
25493 # Compute $ac_file's index in $config_headers.
25495 for _am_header
in $config_headers :; do
25496 case $_am_header in
25497 $ac_file |
$ac_file:* )
25500 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
25503 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
25504 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25505 X$ac_file : 'X\(//\)[^/]' \| \
25506 X$ac_file : 'X\(//\)$' \| \
25507 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
25509 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25513 /^X\(\/\/\)[^/].*/{
25525 s/.*/./; q'`/stamp-h
$_am_stamp_count
25528 :C
) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
25529 echo "$as_me: executing $ac_file commands" >&6;}
25534 case $ac_file$ac_mode in
25535 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
for mf
in $CONFIG_FILES; do
25536 # Strip MF so we end up with the name of the file.
25537 mf
=`echo "$mf" | sed -e 's/:.*$//'`
25538 # Check whether this is an Automake generated Makefile or not.
25539 # We used to match only the files named `Makefile.in', but
25540 # some people rename them; so instead we look at the file content.
25541 # Grep'ing the first line is not enough: some people post-process
25542 # each Makefile.in and add a new line on top of each file to say so.
25543 # So let's grep whole file.
25544 if grep '^#.*generated by automake' $mf > /dev
/null
2>&1; then
25545 dirpart
=`$as_dirname -- "$mf" ||
25546 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25547 X"$mf" : 'X\(//\)[^/]' \| \
25548 X"$mf" : 'X\(//\)$' \| \
25549 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
25551 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25555 /^X\(\/\/\)[^/].*/{
25571 # Extract the definition of DEPDIR, am__include, and am__quote
25572 # from the Makefile without running `make'.
25573 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
25574 test -z "$DEPDIR" && continue
25575 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
25576 test -z "am__include" && continue
25577 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
25578 # When using ansi2knr, U may be empty or an underscore; expand it
25579 U
=`sed -n 's/^U = //p' < "$mf"`
25580 # Find all dependency output files, they are included files with
25581 # $(DEPDIR) in their names. We invoke sed twice because it is the
25582 # simplest approach to changing $(DEPDIR) to its actual value in the
25584 for file in `sed -n "
25585 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
25586 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
25587 # Make sure the directory exists.
25588 test -f "$dirpart/$file" && continue
25589 fdir
=`$as_dirname -- "$file" ||
25590 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25591 X"$file" : 'X\(//\)[^/]' \| \
25592 X"$file" : 'X\(//\)$' \| \
25593 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
25595 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25599 /^X\(\/\/\)[^/].*/{
25612 { as_dir
=$dirpart/$fdir
25614 -*) as_dir
=.
/$as_dir;;
25616 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
25620 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25621 *) as_qdir
=$as_dir;;
25623 as_dirs
="'$as_qdir' $as_dirs"
25624 as_dir
=`$as_dirname -- "$as_dir" ||
25625 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25626 X"$as_dir" : 'X\(//\)[^/]' \| \
25627 X"$as_dir" : 'X\(//\)$' \| \
25628 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25630 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25634 /^X\(\/\/\)[^/].*/{
25647 test -d "$as_dir" && break
25649 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
25650 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25651 echo "$as_me: error: cannot create directory $as_dir" >&2;}
25652 { (exit 1); exit 1; }; }; }
25653 # echo "creating $dirpart/$file"
25654 echo '# dummy' > "$dirpart/$file"
25663 { (exit 0); exit 0; }
25665 chmod +x
$CONFIG_STATUS
25666 ac_clean_files
=$ac_clean_files_save
25669 # configure is writing to config.log, and then calls config.status.
25670 # config.status does its own redirection, appending to config.log.
25671 # Unfortunately, on DOS this fails, as config.log is still kept open
25672 # by configure, so config.status won't be able to write to it; its
25673 # output is simply discarded. So we exec the FD to /dev/null,
25674 # effectively closing config.log, so it can be properly (re)opened and
25675 # appended to by config.status. When coming back to configure, we
25676 # need to make the FD available again.
25677 if test "$no_create" != yes; then
25679 ac_config_status_args
=
25680 test "$silent" = yes &&
25681 ac_config_status_args
="$ac_config_status_args --quiet"
25683 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
25685 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25686 # would make configure fail if this is the last instruction.
25687 $ac_cs_success ||
{ (exit 1); exit 1; }