2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE
=1; export DUALCASE
# for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
23 case `(set -o) 2>/dev/null` in
24 *posix
*) set -o posix
;;
33 # Avoid depending upon Character Ranges.
34 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits
='0123456789'
38 as_cr_alnum
=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
53 # Support unset when possible.
54 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself
=$0 ;;
73 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir
=.
78 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x
; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var
in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C
; export $as_var
111 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
123 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me
=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x
; then
155 if (eval ":") 2>/dev
/null
; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev
/null
; then
221 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
222 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir
=.
228 for as_base
in sh bash ksh sh5
; do
229 as_candidate_shells
="$as_candidate_shells $as_dir/$as_base"
236 for as_shell
in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev
/null
<<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
248 case `(set -o) 2>/dev/null` in
249 *posix
*) set -o posix
;;
258 CONFIG_SHELL
=$as_shell
260 if { "$as_shell" 2> /dev
/null
<<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in
270 *posix
*) set -o posix
;;
286 as_func_ret_success
() {
289 as_func_ret_failure
() {
294 if as_func_success
; then
298 echo as_func_success failed.
301 if as_func_failure
; then
303 echo as_func_failure succeeded.
306 if as_func_ret_success
; then
310 echo as_func_ret_success failed.
313 if as_func_ret_failure
; then
315 echo as_func_ret_failure succeeded.
318 if ( set x
; as_func_ret_success y
&& test x
= "$1" ); then
322 echo positional parameters were not saved.
325 test $exitcode = 0) ||
{ (exit 1); exit 1; }
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") ||
{ (exit 1); exit 1; }
342 if test "x$CONFIG_SHELL" != x
; then
343 for as_var
in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no
; then
352 echo This
script requires a shell
more modern than all the
353 echo shells that I found on your system. Please
install a
354 echo modern shell
, or manually run the
script under such a
355 echo shell
if you
do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
375 as_func_ret_success () {
378 as_func_ret_failure () {
383 if as_func_success; then
387 echo as_func_success failed.
390 if as_func_failure; then
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411 echo positional parameters were not saved.
414 test \$exitcode = 0") ||
{
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system
,
417 echo including any error possibly output before this
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453 chmod +x
"$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
461 # Exit status is that of the last command.
466 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
472 ECHO_C
= ECHO_N
= ECHO_T
=
476 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
483 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
490 rm -f conf$$ conf$$.exe conf$$.
file
491 if test -d conf$$.dir
; then
492 rm -f conf$$.dir
/conf$$.
file
498 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
506 elif ln conf$$.
file conf$$
2>/dev
/null
; then
511 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
512 rmdir conf$$.dir
2>/dev
/null
514 if mkdir
-p .
2>/dev
/null
; then
517 test -d .
/-p && rmdir .
/-p
521 if test -x / >/dev
/null
2>&1; then
524 if ls -dL / >/dev
/null
2>&1; then
531 if test -d "$1"; then
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
542 as_executable_p
=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
553 # Check that we are running under the correct shell.
554 SHELL
=${CONFIG_SHELL-/bin/sh}
558 # Remove one level of quotation (which was required for Make).
559 ECHO
=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
564 if test "X$1" = X--no-reexec
; then
565 # Discard the --no-reexec flag, and continue.
567 elif test "X$1" = X--fallback-echo
; then
568 # Avoid inline document here, it may be left over
570 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
571 # Yippee, $echo works!
574 # Restart under the correct shell.
575 exec $SHELL "$0" --no-reexec ${1+"$@"}
578 if test "X$1" = X--fallback-echo
; then
579 # used as fallback echo
587 # The HP-UX ksh and POSIX shell print the target directory to stdout
589 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
591 if test -z "$ECHO"; then
592 if test "X${echo_test_string+set}" != Xset
; then
593 # find a string as large as possible, as long as the shell can cope with it
594 for cmd
in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
595 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
596 if (echo_test_string
=`eval $cmd`) 2>/dev
/null
&&
597 echo_test_string
=`eval $cmd` &&
598 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev
/null
605 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
606 echo_testing_string
=`($echo "$echo_test_string") 2>/dev/null` &&
607 test "X$echo_testing_string" = "X$echo_test_string"; then
610 # The Solaris, AIX, and Digital Unix default echo programs unquote
611 # backslashes. This makes it impossible to quote backslashes using
612 # echo "$something" | sed 's/\\/\\\\/g'
614 # So, first we look for a working echo in the user's PATH.
616 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
617 for dir
in $PATH /usr
/ucb
; do
619 if (test -f $dir/echo ||
test -f $dir/echo$ac_exeext) &&
620 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
621 echo_testing_string
=`($dir/echo "$echo_test_string") 2>/dev/null` &&
622 test "X$echo_testing_string" = "X$echo_test_string"; then
629 if test "X$echo" = Xecho
; then
630 # We didn't find a better echo, so look for alternatives.
631 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
632 echo_testing_string
=`(print -r "$echo_test_string") 2>/dev/null` &&
633 test "X$echo_testing_string" = "X$echo_test_string"; then
634 # This shell has a builtin print -r that does the trick.
636 elif (test -f /bin
/ksh ||
test -f /bin
/ksh
$ac_exeext) &&
637 test "X$CONFIG_SHELL" != X
/bin
/ksh
; then
638 # If we have ksh, try running configure again with it.
639 ORIGINAL_CONFIG_SHELL
=${CONFIG_SHELL-/bin/sh}
640 export ORIGINAL_CONFIG_SHELL
641 CONFIG_SHELL
=/bin
/ksh
643 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
647 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
648 echo_testing_string
=`($echo "$echo_test_string") 2>/dev/null` &&
649 test "X$echo_testing_string" = "X$echo_test_string"; then
652 elif echo_testing_string
=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
653 test "X$echo_testing_string" = 'X\t' &&
654 echo_testing_string
=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
655 test "X$echo_testing_string" = "X$echo_test_string"; then
656 CONFIG_SHELL
=$ORIGINAL_CONFIG_SHELL
658 SHELL
="$CONFIG_SHELL"
660 echo="$CONFIG_SHELL $0 --fallback-echo"
661 elif echo_testing_string
=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
662 test "X$echo_testing_string" = 'X\t' &&
663 echo_testing_string
=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
664 test "X$echo_testing_string" = "X$echo_test_string"; then
665 echo="$CONFIG_SHELL $0 --fallback-echo"
667 # maybe with a smaller string...
670 for cmd
in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
671 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev
/null
678 if test "$prev" != 'sed 50q "$0"'; then
679 echo_test_string
=`eval $prev`
680 export echo_test_string
681 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
683 # Oops. We lost completely, so just stick with echo.
692 # Copy echo and quote the copy suitably for passing to libtool from
693 # the Makefile, instead of quoting the original, which is used later.
695 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
696 ECHO
="$CONFIG_SHELL \\\$\$0 --fallback-echo"
702 tagnames
=${tagnames+${tagnames},}CXX
704 tagnames
=${tagnames+${tagnames},}F77
706 exec 7<&0 </dev
/null
6>&1
709 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
710 # so uname gets run too.
711 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
716 ac_default_prefix
=/usr
/local
718 ac_config_libobj_dir
=.
724 SHELL
=${CONFIG_SHELL-/bin/sh}
726 # Identity of this package.
733 ac_unique_file
="oggenc/encode.c"
734 # Factoring default headers for most tests.
735 ac_includes_default
="\
737 #ifdef HAVE_SYS_TYPES_H
738 # include <sys/types.h>
740 #ifdef HAVE_SYS_STAT_H
741 # include <sys/stat.h>
747 # ifdef HAVE_STDLIB_H
752 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
757 #ifdef HAVE_STRINGS_H
758 # include <strings.h>
760 #ifdef HAVE_INTTYPES_H
761 # include <inttypes.h>
780 program_transform_name
834 INSTALL_STRIP_PROGRAM
843 MAINTAINER_MODE_FALSE
907 BUILD_INCLUDED_LIBINTL
914 INTL_LIBTOOL_SUFFIX_PREFIX
952 ac_precious_vars
='build_alias
976 # Initialize some variables set by options.
978 ac_init_version
=false
979 # The variables have the same names as the options, with
980 # dashes changed to underlines.
988 program_transform_name
=s
,x
,x
,
996 # Installation directory options.
997 # These are left unexpanded so users can "make install exec_prefix=/foo"
998 # and all the variables that are supposed to be based on exec_prefix
999 # by default will actually change.
1000 # Use braces instead of parens because sh, perl, etc. also accept them.
1001 # (The list follows the same order as the GNU Coding Standards.)
1002 bindir
='${exec_prefix}/bin'
1003 sbindir
='${exec_prefix}/sbin'
1004 libexecdir
='${exec_prefix}/libexec'
1005 datarootdir
='${prefix}/share'
1006 datadir
='${datarootdir}'
1007 sysconfdir
='${prefix}/etc'
1008 sharedstatedir
='${prefix}/com'
1009 localstatedir
='${prefix}/var'
1010 includedir
='${prefix}/include'
1011 oldincludedir
='/usr/include'
1012 docdir
='${datarootdir}/doc/${PACKAGE}'
1013 infodir
='${datarootdir}/info'
1018 libdir
='${exec_prefix}/lib'
1019 localedir
='${datarootdir}/locale'
1020 mandir
='${datarootdir}/man'
1026 # If the previous option needs an argument, assign it.
1027 if test -n "$ac_prev"; then
1028 eval $ac_prev=\
$ac_option
1034 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1038 # Accept the important Cygnus configure options, so we can diagnose typos.
1040 case $ac_dashdash$ac_option in
1044 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1046 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1047 bindir
=$ac_optarg ;;
1049 -build |
--build |
--buil |
--bui |
--bu)
1050 ac_prev
=build_alias
;;
1051 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1052 build_alias
=$ac_optarg ;;
1054 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1055 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1056 ac_prev
=cache_file
;;
1057 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1058 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1059 cache_file
=$ac_optarg ;;
1061 --config-cache |
-C)
1062 cache_file
=config.cache
;;
1064 -datadir |
--datadir |
--datadi |
--datad)
1066 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1067 datadir
=$ac_optarg ;;
1069 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1070 |
--dataroo |
--dataro |
--datar)
1071 ac_prev
=datarootdir
;;
1072 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1073 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1074 datarootdir
=$ac_optarg ;;
1076 -disable-* |
--disable-*)
1077 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1078 # Reject names that are not valid shell variable names.
1079 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1080 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1081 { (exit 1); exit 1; }; }
1082 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
1083 eval enable_
$ac_feature=no
;;
1085 -docdir |
--docdir |
--docdi |
--doc |
--do)
1087 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1088 docdir
=$ac_optarg ;;
1090 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1092 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1093 dvidir
=$ac_optarg ;;
1095 -enable-* |
--enable-*)
1096 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1097 # Reject names that are not valid shell variable names.
1098 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1099 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1100 { (exit 1); exit 1; }; }
1101 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
1102 eval enable_
$ac_feature=\
$ac_optarg ;;
1104 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1105 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1106 |
--exec |
--exe |
--ex)
1107 ac_prev
=exec_prefix
;;
1108 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1109 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1110 |
--exec=* |
--exe=* |
--ex=*)
1111 exec_prefix
=$ac_optarg ;;
1113 -gas |
--gas |
--ga |
--g)
1114 # Obsolete; use --with-gas.
1117 -help |
--help |
--hel |
--he |
-h)
1118 ac_init_help
=long
;;
1119 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1120 ac_init_help
=recursive
;;
1121 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1122 ac_init_help
=short
;;
1124 -host |
--host |
--hos |
--ho)
1125 ac_prev
=host_alias
;;
1126 -host=* |
--host=* |
--hos=* |
--ho=*)
1127 host_alias
=$ac_optarg ;;
1129 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1131 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1133 htmldir
=$ac_optarg ;;
1135 -includedir |
--includedir |
--includedi |
--included |
--include \
1136 |
--includ |
--inclu |
--incl |
--inc)
1137 ac_prev
=includedir
;;
1138 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1139 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1140 includedir
=$ac_optarg ;;
1142 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1144 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1145 infodir
=$ac_optarg ;;
1147 -libdir |
--libdir |
--libdi |
--libd)
1149 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1150 libdir
=$ac_optarg ;;
1152 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1153 |
--libexe |
--libex |
--libe)
1154 ac_prev
=libexecdir
;;
1155 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1156 |
--libexe=* |
--libex=* |
--libe=*)
1157 libexecdir
=$ac_optarg ;;
1159 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1160 ac_prev
=localedir
;;
1161 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1162 localedir
=$ac_optarg ;;
1164 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1165 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1166 ac_prev
=localstatedir
;;
1167 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1168 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1169 localstatedir
=$ac_optarg ;;
1171 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1173 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1174 mandir
=$ac_optarg ;;
1176 -nfp |
--nfp |
--nf)
1177 # Obsolete; use --without-fp.
1180 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1181 |
--no-cr |
--no-c |
-n)
1184 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1185 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1188 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1189 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1190 |
--oldin |
--oldi |
--old |
--ol |
--o)
1191 ac_prev
=oldincludedir
;;
1192 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1193 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1194 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1195 oldincludedir
=$ac_optarg ;;
1197 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1199 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1200 prefix
=$ac_optarg ;;
1202 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1203 |
--program-pre |
--program-pr |
--program-p)
1204 ac_prev
=program_prefix
;;
1205 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1206 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1207 program_prefix
=$ac_optarg ;;
1209 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1210 |
--program-suf |
--program-su |
--program-s)
1211 ac_prev
=program_suffix
;;
1212 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1213 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1214 program_suffix
=$ac_optarg ;;
1216 -program-transform-name |
--program-transform-name \
1217 |
--program-transform-nam |
--program-transform-na \
1218 |
--program-transform-n |
--program-transform- \
1219 |
--program-transform |
--program-transfor \
1220 |
--program-transfo |
--program-transf \
1221 |
--program-trans |
--program-tran \
1222 |
--progr-tra |
--program-tr |
--program-t)
1223 ac_prev
=program_transform_name
;;
1224 -program-transform-name=* |
--program-transform-name=* \
1225 |
--program-transform-nam=* |
--program-transform-na=* \
1226 |
--program-transform-n=* |
--program-transform-=* \
1227 |
--program-transform=* |
--program-transfor=* \
1228 |
--program-transfo=* |
--program-transf=* \
1229 |
--program-trans=* |
--program-tran=* \
1230 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1231 program_transform_name
=$ac_optarg ;;
1233 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1235 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1236 pdfdir
=$ac_optarg ;;
1238 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1240 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1243 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1244 |
-silent |
--silent |
--silen |
--sile |
--sil)
1247 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1249 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1251 sbindir
=$ac_optarg ;;
1253 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1254 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1255 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1257 ac_prev
=sharedstatedir
;;
1258 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1259 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1260 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1262 sharedstatedir
=$ac_optarg ;;
1264 -site |
--site |
--sit)
1266 -site=* |
--site=* |
--sit=*)
1269 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1271 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1272 srcdir
=$ac_optarg ;;
1274 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1275 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1276 ac_prev
=sysconfdir
;;
1277 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1278 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1279 sysconfdir
=$ac_optarg ;;
1281 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1282 ac_prev
=target_alias
;;
1283 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1284 target_alias
=$ac_optarg ;;
1286 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1289 -version |
--version |
--versio |
--versi |
--vers |
-V)
1290 ac_init_version
=: ;;
1293 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1294 # Reject names that are not valid shell variable names.
1295 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1296 { echo "$as_me: error: invalid package name: $ac_package" >&2
1297 { (exit 1); exit 1; }; }
1298 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1299 eval with_
$ac_package=\
$ac_optarg ;;
1301 -without-* |
--without-*)
1302 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1303 # Reject names that are not valid shell variable names.
1304 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1305 { echo "$as_me: error: invalid package name: $ac_package" >&2
1306 { (exit 1); exit 1; }; }
1307 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1308 eval with_
$ac_package=no
;;
1311 # Obsolete; use --with-x.
1314 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1315 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1316 ac_prev
=x_includes
;;
1317 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1318 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1319 x_includes
=$ac_optarg ;;
1321 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1322 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1323 ac_prev
=x_libraries
;;
1324 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1325 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1326 x_libraries
=$ac_optarg ;;
1328 -*) { echo "$as_me: error: unrecognized option: $ac_option
1329 Try \`$0 --help' for more information." >&2
1330 { (exit 1); exit 1; }; }
1334 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1335 # Reject names that are not valid shell variable names.
1336 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1337 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1338 { (exit 1); exit 1; }; }
1339 eval $ac_envvar=\
$ac_optarg
1340 export $ac_envvar ;;
1343 # FIXME: should be removed in autoconf 3.0.
1344 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1345 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1346 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1347 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1353 if test -n "$ac_prev"; then
1354 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1355 { echo "$as_me: error: missing argument to $ac_option" >&2
1356 { (exit 1); exit 1; }; }
1359 # Be sure to have absolute directory names.
1360 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1361 datadir sysconfdir sharedstatedir localstatedir includedir \
1362 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1363 libdir localedir mandir
1365 eval ac_val
=\$
$ac_var
1367 [\\/$
]* | ?
:[\\/]* ) continue;;
1368 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1370 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1371 { (exit 1); exit 1; }; }
1374 # There might be people who depend on the old broken behavior: `$host'
1375 # used to hold the argument of --host etc.
1376 # FIXME: To remove some day.
1379 target
=$target_alias
1381 # FIXME: To remove some day.
1382 if test "x$host_alias" != x
; then
1383 if test "x$build_alias" = x
; then
1384 cross_compiling
=maybe
1385 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1386 If a cross compiler is detected then cross compile mode will be used." >&2
1387 elif test "x$build_alias" != "x$host_alias"; then
1393 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1395 test "$silent" = yes && exec 6>/dev
/null
1398 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1399 ac_ls_di
=`ls -di .` &&
1400 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1401 { echo "$as_me: error: Working directory cannot be determined" >&2
1402 { (exit 1); exit 1; }; }
1403 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1404 { echo "$as_me: error: pwd does not report name of working directory" >&2
1405 { (exit 1); exit 1; }; }
1408 # Find the source files, if location was not specified.
1409 if test -z "$srcdir"; then
1410 ac_srcdir_defaulted
=yes
1411 # Try the directory containing this script, then the parent directory.
1412 ac_confdir
=`$as_dirname -- "$0" ||
1413 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1414 X"$0" : 'X\(//\)[^/]' \| \
1415 X"$0" : 'X\(//\)$' \| \
1416 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1418 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1436 if test ! -r "$srcdir/$ac_unique_file"; then
1440 ac_srcdir_defaulted
=no
1442 if test ! -r "$srcdir/$ac_unique_file"; then
1443 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1444 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1445 { (exit 1); exit 1; }; }
1447 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1449 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1450 { (exit 1); exit 1; }; }
1452 # When building in place, set srcdir=.
1453 if test "$ac_abs_confdir" = "$ac_pwd"; then
1456 # Remove unnecessary trailing slashes from srcdir.
1457 # Double slashes in file names in object file debugging info
1458 # mess up M-x gdb in Emacs.
1460 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1462 for ac_var
in $ac_precious_vars; do
1463 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1464 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1465 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1466 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1470 # Report the --help message.
1472 if test "$ac_init_help" = "long"; then
1473 # Omit some internal or obsolete options to make the list less imposing.
1474 # This message is too long to be a string in the A/UX 3.1 sh.
1476 \`configure' configures this package to adapt to many kinds of systems.
1478 Usage: $0 [OPTION]... [VAR=VALUE]...
1480 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1481 VAR=VALUE. See below for descriptions of some of the useful variables.
1483 Defaults for the options are specified in brackets.
1486 -h, --help display this help and exit
1487 --help=short display options specific to this package
1488 --help=recursive display the short help of all the included packages
1489 -V, --version display version information and exit
1490 -q, --quiet, --silent do not print \`checking...' messages
1491 --cache-file=FILE cache test results in FILE [disabled]
1492 -C, --config-cache alias for \`--cache-file=config.cache'
1493 -n, --no-create do not create output files
1494 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1496 Installation directories:
1497 --prefix=PREFIX install architecture-independent files in PREFIX
1498 [$ac_default_prefix]
1499 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1502 By default, \`make install' will install all the files in
1503 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1504 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1505 for instance \`--prefix=\$HOME'.
1507 For better control, use the options below.
1509 Fine tuning of the installation directories:
1510 --bindir=DIR user executables [EPREFIX/bin]
1511 --sbindir=DIR system admin executables [EPREFIX/sbin]
1512 --libexecdir=DIR program executables [EPREFIX/libexec]
1513 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1514 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1515 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1516 --libdir=DIR object code libraries [EPREFIX/lib]
1517 --includedir=DIR C header files [PREFIX/include]
1518 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1519 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1520 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1521 --infodir=DIR info documentation [DATAROOTDIR/info]
1522 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1523 --mandir=DIR man documentation [DATAROOTDIR/man]
1524 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1525 --htmldir=DIR html documentation [DOCDIR]
1526 --dvidir=DIR dvi documentation [DOCDIR]
1527 --pdfdir=DIR pdf documentation [DOCDIR]
1528 --psdir=DIR ps documentation [DOCDIR]
1534 --program-prefix=PREFIX prepend PREFIX to installed program names
1535 --program-suffix=SUFFIX append SUFFIX to installed program names
1536 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1539 --build=BUILD configure
for building on BUILD
[guessed
]
1540 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1541 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1545 if test -n "$ac_init_help"; then
1550 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1551 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1552 --enable-maintainer-mode enable make rules and dependencies not useful
1553 (and sometimes confusing
) to the casual installer
1554 --disable-dependency-tracking speeds up one-time build
1555 --enable-dependency-tracking do not reject slow dependency extractors
1556 --enable-shared[=PKGS
] build shared libraries
[default
=yes]
1557 --enable-static[=PKGS
] build static libraries
[default
=yes]
1558 --enable-fast-install[=PKGS
]
1559 optimize
for fast installation
[default
=yes]
1560 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1561 --disable-nls do not use Native Language Support
1562 --enable-threads={posix|solaris|pth|win32
}
1563 specify multithreading API
1564 --disable-threads build without multithread safety
1565 --disable-rpath do not hardcode runtime library paths
1566 --disable-largefile omit support
for large files
1567 --disable-ogg123 Skip building ogg123
1568 --disable-oggdec Skip building oggdec
1569 --disable-oggenc Skip building oggenc
1570 --disable-ogginfo Skip building ogginfo
1571 --disable-vcut Skip building vcut
1572 --disable-vorbiscomment Skip building vorbiscomment
1573 --disable-oggtest Do not try to compile and run a
test Ogg program
1574 --disable-vorbistest Do not try to compile and run a
test Vorbis program
1575 --disable-curltest Do not try to compile and run a
test libcurl program
1576 --disable-aotest Do not try to compile and run a
test ao program
1579 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1580 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1581 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1582 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1584 --with-tags[=TAGS
] include additional configurations
[automatic
]
1585 --with-gnu-ld assume the C compiler uses GNU ld default
=no
1586 --with-libpth-prefix[=DIR
] search
for libpth
in DIR
/include and DIR
/lib
1587 --without-libpth-prefix don
't search for libpth in includedir and libdir
1588 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1589 --with-included-gettext use the GNU gettext library included here
1590 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1591 --without-libintl-prefix don't search
for libintl
in includedir and libdir
1592 --without-flac Do not compile FLAC support
1593 --without-speex Do not compile Speex support
1594 --with-ogg=PFX Prefix where libogg is installed
(optional
)
1595 --with-ogg-libraries=DIR
1596 Directory where libogg library is installed
1598 --with-ogg-includes=DIR Directory where libogg header files are installed
1600 --with-vorbis=PFX Prefix where libvorbis is installed
(optional
)
1601 --with-vorbis-libraries=DIR
1602 Directory where libvorbis library is installed
1604 --with-vorbis-includes=DIR
1605 Directory where libvorbis header files are installed
1607 --with-curl=PFX Prefix where libcurl is installed
(optional
)
1608 --with-curl-libraries=DIR Directory where libcurl library is installed
(optional
)
1609 --with-curl-includes=DIR Directory where libcurl header files are installed
(optional
)
1610 --with-ao=PFX Prefix where libao is installed
(optional
)
1611 --with-ao-libraries=DIR Directory where libao library is installed
1613 --with-ao-includes=DIR Directory where libao header files are installed
1616 Some influential environment variables
:
1617 CC C compiler
command
1618 CFLAGS C compiler flags
1619 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1620 nonstandard directory
<lib dir
>
1621 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1622 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1623 you have headers
in a nonstandard directory
<include dir
>
1625 CXX C
++ compiler
command
1626 CXXFLAGS C
++ compiler flags
1627 CXXCPP C
++ preprocessor
1628 F77 Fortran
77 compiler
command
1629 FFLAGS Fortran
77 compiler flags
1630 PKG_CONFIG path to pkg-config utility
1631 OGG_CFLAGS C compiler flags
for OGG
, overriding pkg-config
1632 OGG_LIBS linker flags
for OGG
, overriding pkg-config
1634 C compiler flags
for VORBIS
, overriding pkg-config
1635 VORBIS_LIBS linker flags
for VORBIS
, overriding pkg-config
1636 CURL_CFLAGS C compiler flags
for CURL
, overriding pkg-config
1637 CURL_LIBS linker flags
for CURL
, overriding pkg-config
1639 Use these variables to override the choices made by
`configure' or to help
1640 it to find libraries and programs with nonstandard names/locations.
1646 if test "$ac_init_help" = "recursive"; then
1647 # If there are subdirs, report their specific --help.
1648 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1649 test -d "$ac_dir" || continue
1653 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1655 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
1656 # A ".." for each directory in $ac_dir_suffix.
1657 ac_top_builddir_sub=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,/..,g;s,/,,'`
1658 case $ac_top_builddir_sub in
1659 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1660 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1663 ac_abs_top_builddir=$ac_pwd
1664 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1665 # for backward compatibility:
1666 ac_top_builddir=$ac_top_build_prefix
1669 .) # We are building in place.
1671 ac_top_srcdir=$ac_top_builddir_sub
1672 ac_abs_top_srcdir=$ac_pwd ;;
1673 [\\/]* | ?:[\\/]* ) # Absolute name.
1674 ac_srcdir=$srcdir$ac_dir_suffix;
1675 ac_top_srcdir=$srcdir
1676 ac_abs_top_srcdir=$srcdir ;;
1678 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1679 ac_top_srcdir=$ac_top_build_prefix$srcdir
1680 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1682 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1684 cd "$ac_dir" || { ac_status=$?; continue; }
1685 # Check for guested configure.
1686 if test -f "$ac_srcdir/configure.gnu"; then
1688 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1689 elif test -f "$ac_srcdir/configure"; then
1691 $SHELL "$ac_srcdir/configure" --help=recursive
1693 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1695 cd "$ac_pwd" || { ac_status=$?; break; }
1699 test -n "$ac_init_help" && exit $ac_status
1700 if $ac_init_version; then
1703 generated by GNU Autoconf 2.61
1705 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1706 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1707 This configure script is free software; the Free Software Foundation
1708 gives unlimited permission to copy, distribute and modify it.
1712 cat >config.log <<_ACEOF
1713 This file contains any messages produced by compilers while
1714 running configure, to aid debugging if configure makes a mistake.
1716 It was created by $as_me, which was
1717 generated by GNU Autoconf 2.61. Invocation command line was
1729 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1730 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1731 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1732 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1733 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1735 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1736 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1738 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1739 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1740 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1741 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1742 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1743 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1744 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1752 test -z "$as_dir" && as_dir=.
1753 echo "PATH: $as_dir"
1769 # Keep a trace of the command line.
1770 # Strip out --no-create and --no-recursion so they do not pile up.
1771 # Strip out --silent because we don't want to record it for future runs.
1772 # Also quote any args containing shell meta-characters.
1773 # Make two passes to allow for proper duplicate-argument suppression.
1777 ac_must_keep_next=false
1783 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1784 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1785 | -silent | --silent | --silen | --sile | --sil)
1788 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1791 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1793 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1794 if test $ac_must_keep_next = true; then
1795 ac_must_keep_next=false # Got value, back to normal.
1798 *=* | --config-cache | -C | -disable-* | --disable-* \
1799 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1800 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1801 | -with-* | --with-* | -without-* | --without-* | --x)
1802 case "$ac_configure_args0 " in
1803 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1806 -* ) ac_must_keep_next=true ;;
1809 ac_configure_args="$ac_configure_args '$ac_arg'"
1814 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1815 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1817 # When interrupted or exit'd, cleanup temporary files, and complete
1818 # config.log. We remove comments because anyway the quotes in there
1819 # would cause problems or look ugly.
1820 # WARNING: Use '\'' to represent an apostrophe within the trap.
1821 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1822 trap 'exit_status=$?
1823 # Save into config.log some information that might help in debugging.
1828 ## ---------------- ##
1829 ## Cache variables. ##
1830 ## ---------------- ##
1833 # The following way of writing the cache mishandles newlines in values,
1835 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1836 eval ac_val=\$$ac_var
1840 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1841 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1844 _ | IFS | as_nl) ;; #(
1845 *) $as_unset $ac_var ;;
1850 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1851 *${as_nl}ac_space=\ *)
1853 "s/'\''/'\''\\\\'\'''\''/g;
1854 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1857 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1865 ## ----------------- ##
1866 ## Output variables. ##
1867 ## ----------------- ##
1870 for ac_var in $ac_subst_vars
1872 eval ac_val=\$$ac_var
1874 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1876 echo "$ac_var='\''$ac_val'\''"
1880 if test -n "$ac_subst_files"; then
1882 ## ------------------- ##
1883 ## File substitutions. ##
1884 ## ------------------- ##
1887 for ac_var in $ac_subst_files
1889 eval ac_val=\$$ac_var
1891 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1893 echo "$ac_var='\''$ac_val'\''"
1898 if test -s confdefs.h; then
1908 test "$ac_signal" != 0 &&
1909 echo "$as_me: caught signal $ac_signal"
1910 echo "$as_me: exit $exit_status"
1912 rm -f core *.core core.conftest.* &&
1913 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1916 for ac_signal in 1 2 13 15; do
1917 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1921 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1922 rm -f -r conftest* confdefs.h
1924 # Predefined preprocessor variables.
1926 cat >>confdefs.h <<_ACEOF
1927 #define PACKAGE_NAME "$PACKAGE_NAME"
1931 cat >>confdefs.h <<_ACEOF
1932 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1936 cat >>confdefs.h <<_ACEOF
1937 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1941 cat >>confdefs.h <<_ACEOF
1942 #define PACKAGE_STRING "$PACKAGE_STRING"
1946 cat >>confdefs.h <<_ACEOF
1947 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1951 # Let the site file select an alternate cache file if it wants to.
1952 # Prefer explicitly selected file to automatically selected ones.
1953 if test -n "$CONFIG_SITE"; then
1954 set x "$CONFIG_SITE"
1955 elif test "x$prefix" != xNONE; then
1956 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1958 set x "$ac_default_prefix/share/config.site" \
1959 "$ac_default_prefix/etc/config.site"
1964 if test -r "$ac_site_file"; then
1965 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1966 echo "$as_me: loading site script $ac_site_file" >&6;}
1967 sed 's/^/| /' "$ac_site_file" >&5
1972 if test -r "$cache_file"; then
1973 # Some versions of bash will fail to source /dev/null (special
1974 # files actually), so we avoid doing that.
1975 if test -f "$cache_file"; then
1976 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1977 echo "$as_me: loading cache $cache_file" >&6;}
1979 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1980 *) . "./$cache_file";;
1984 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1985 echo "$as_me: creating cache $cache_file" >&6;}
1989 gt_needs="$gt_needs "
1990 # Check that the precious variables saved in the cache have kept the same
1992 ac_cache_corrupted=false
1993 for ac_var in $ac_precious_vars; do
1994 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1995 eval ac_new_set=\$ac_env_${ac_var}_set
1996 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1997 eval ac_new_val=\$ac_env_${ac_var}_value
1998 case $ac_old_set,$ac_new_set in
2000 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2001 echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2002 ac_cache_corrupted=: ;;
2004 { echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
2005 echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2006 ac_cache_corrupted=: ;;
2009 if test "x$ac_old_val" != "x$ac_new_val"; then
2010 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2011 echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2012 { echo "$as_me:$LINENO: former value
: $ac_old_val" >&5
2013 echo "$as_me: former value
: $ac_old_val" >&2;}
2014 { echo "$as_me:$LINENO: current value
: $ac_new_val" >&5
2015 echo "$as_me: current value
: $ac_new_val" >&2;}
2016 ac_cache_corrupted=:
2019 # Pass precious variables to config.status.
2020 if test "$ac_new_set" = set; then
2022 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2023 *) ac_arg=$ac_var=$ac_new_val ;;
2025 case " $ac_configure_args " in
2026 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2027 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2031 if $ac_cache_corrupted; then
2032 { echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
2033 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
2034 { { echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
2035 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
2036 { (exit 1); exit 1; }; }
2056 ac_cpp='$CPP $CPPFLAGS'
2057 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2058 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2059 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2064 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2065 if test -f "$ac_dir/install-sh"; then
2067 ac_install_sh="$ac_aux_dir/install-sh -c"
2069 elif test -f "$ac_dir/install.sh"; then
2071 ac_install_sh="$ac_aux_dir/install.sh -c"
2073 elif test -f "$ac_dir/shtool"; then
2075 ac_install_sh="$ac_aux_dir/shtool install -c"
2079 if test -z "$ac_aux_dir"; then
2080 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2081 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2082 { (exit 1); exit 1; }; }
2085 # These three variables are undocumented and unsupported,
2086 # and are intended to be withdrawn in a future Autoconf release.
2087 # They can cause serious problems if a builder's source tree is in a directory
2088 # whose full name contains unusual characters.
2089 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2090 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2091 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2094 # Make sure we can run config.sub.
2095 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2096 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2097 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2098 { (exit 1); exit 1; }; }
2100 { echo "$as_me:$LINENO: checking build system type" >&5
2101 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2102 if test "${ac_cv_build+set}" = set; then
2103 echo $ECHO_N "(cached) $ECHO_C" >&6
2105 ac_build_alias=$build_alias
2106 test "x$ac_build_alias" = x &&
2107 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2108 test "x$ac_build_alias" = x &&
2109 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2110 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2111 { (exit 1); exit 1; }; }
2112 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2113 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2114 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2115 { (exit 1); exit 1; }; }
2118 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2119 echo "${ECHO_T}$ac_cv_build" >&6; }
2120 case $ac_cv_build in
2122 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2123 echo "$as_me: error: invalid value of canonical build" >&2;}
2124 { (exit 1); exit 1; }; };;
2127 ac_save_IFS=$IFS; IFS='-'
2133 # Remember, the first character of IFS is used to create $*,
2134 # except with old shells:
2137 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
2140 { echo "$as_me:$LINENO: checking host system type" >&5
2141 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2142 if test "${ac_cv_host+set}" = set; then
2143 echo $ECHO_N "(cached) $ECHO_C" >&6
2145 if test "x$host_alias" = x; then
2146 ac_cv_host=$ac_cv_build
2148 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2149 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2150 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2151 { (exit 1); exit 1; }; }
2155 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2156 echo "${ECHO_T}$ac_cv_host" >&6; }
2159 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2160 echo "$as_me: error: invalid value of canonical host" >&2;}
2161 { (exit 1); exit 1; }; };;
2164 ac_save_IFS=$IFS; IFS='-'
2170 # Remember, the first character of IFS is used to create $*,
2171 # except with old shells:
2174 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
2177 { echo "$as_me:$LINENO: checking target system type" >&5
2178 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2179 if test "${ac_cv_target+set}" = set; then
2180 echo $ECHO_N "(cached) $ECHO_C" >&6
2182 if test "x$target_alias" = x; then
2183 ac_cv_target=$ac_cv_host
2185 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2186 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2187 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2188 { (exit 1); exit 1; }; }
2192 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2193 echo "${ECHO_T}$ac_cv_target" >&6; }
2194 case $ac_cv_target in
2196 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2197 echo "$as_me: error: invalid value of canonical target" >&2;}
2198 { (exit 1); exit 1; }; };;
2200 target=$ac_cv_target
2201 ac_save_IFS=$IFS; IFS='-'
2207 # Remember, the first character of IFS is used to create $*,
2208 # except with old shells:
2211 case $target_os in *\ *) target_os=`echo "$target_os" |
sed 's/ /-/g'`;; esac
2214 # The aliases save the names the user supplied, while $host etc.
2215 # will get canonicalized.
2216 test -n "$target_alias" &&
2217 test "$program_prefix$program_suffix$program_transform_name" = \
2219 program_prefix=${target_alias}-
2223 am__api_version='1.10'
2225 # Find a good install program. We prefer a C program (faster),
2226 # so one script is as good as another. But avoid the broken or
2227 # incompatible versions:
2228 # SysV /etc/install, /usr/sbin/install
2229 # SunOS /usr/etc/install
2230 # IRIX /sbin/install
2232 # AmigaOS /C/install, which installs bootblocks on floppy discs
2233 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2234 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2235 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2236 # OS/2's system install, which has a completely different semantic
2237 # ./install, which can be erroneously created by make from ./install.sh.
2238 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2239 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2240 if test -z "$INSTALL"; then
2241 if test "${ac_cv_path_install+set}" = set; then
2242 echo $ECHO_N "(cached) $ECHO_C" >&6
2244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2248 test -z "$as_dir" && as_dir=.
2249 # Account for people who put trailing slashes in PATH elements.
2251 ./ | .// | /cC/* | \
2252 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2253 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2256 # OSF1 and SCO ODT 3.0 have their own names for install.
2257 # Don't use installbsd from OSF since it installs stuff as root
2259 for ac_prog in ginstall scoinst install; do
2260 for ac_exec_ext in '' $ac_executable_extensions; do
2261 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2262 if test $ac_prog = install &&
2263 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2264 # AIX install. It has an incompatible calling convention.
2266 elif test $ac_prog = install &&
2267 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2268 # program-specific install script used by HP pwplus--don't use.
2271 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2284 if test "${ac_cv_path_install+set}" = set; then
2285 INSTALL=$ac_cv_path_install
2287 # As a last resort, use the slow shell script. Don't cache a
2288 # value for INSTALL within a source directory, because that will
2289 # break other packages using the cache if that directory is
2290 # removed, or if the value is a relative name.
2291 INSTALL=$ac_install_sh
2294 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2295 echo "${ECHO_T}$INSTALL" >&6; }
2297 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2298 # It thinks the first close brace ends the variable substitution.
2299 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2301 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2303 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2305 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2306 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2309 echo timestamp > conftest.file
2310 # Do `set' in a subshell so we don't clobber the current shell
's
2311 # arguments. Must try -L first in case configure is actually a
2312 # symlink; some systems play weird games with the mod time of symlinks
2313 # (eg FreeBSD returns the mod time of the symlink's containing
2316 set X
`ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2317 if test "$*" = "X"; then
2319 set X
`ls -t $srcdir/configure conftest.file`
2322 if test "$*" != "X $srcdir/configure conftest.file" \
2323 && test "$*" != "X conftest.file $srcdir/configure"; then
2325 # If neither matched, then we have a broken ls. This can happen
2326 # if, for instance, CONFIG_SHELL is bash and it inherits a
2327 # broken ls alias from the environment. This has actually
2328 # happened. Such a system could not be considered "sane".
2329 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2330 alias in your environment" >&5
2331 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2332 alias in your environment" >&2;}
2333 { (exit 1); exit 1; }; }
2336 test "$2" = conftest.
file
2342 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2343 Check your system clock" >&5
2344 echo "$as_me: error: newly created file is older than distributed files!
2345 Check your system clock" >&2;}
2346 { (exit 1); exit 1; }; }
2348 { echo "$as_me:$LINENO: result: yes" >&5
2349 echo "${ECHO_T}yes" >&6; }
2350 test "$program_prefix" != NONE
&&
2351 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2352 # Use a double $ so make ignores it.
2353 test "$program_suffix" != NONE
&&
2354 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2355 # Double any \ or $. echo might interpret backslashes.
2356 # By default was `s,x,x', remove it if useless.
2357 cat <<\_ACEOF
>conftest.
sed
2358 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
2360 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
2363 # expand $ac_aux_dir to an absolute path
2364 am_aux_dir
=`cd $ac_aux_dir && pwd`
2366 test x
"${MISSING+set}" = xset || MISSING
="\${SHELL} $am_aux_dir/missing"
2367 # Use eval to expand $SHELL
2368 if eval "$MISSING --run true"; then
2369 am_missing_run
="$MISSING --run "
2372 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2373 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2376 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2377 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2378 if test -z "$MKDIR_P"; then
2379 if test "${ac_cv_path_mkdir+set}" = set; then
2380 echo $ECHO_N "(cached) $ECHO_C" >&6
2382 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2383 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
2386 test -z "$as_dir" && as_dir
=.
2387 for ac_prog
in mkdir gmkdir
; do
2388 for ac_exec_ext
in '' $ac_executable_extensions; do
2389 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } ||
continue
2390 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2391 'mkdir (GNU coreutils) '* | \
2392 'mkdir (coreutils) '* | \
2393 'mkdir (fileutils) '4.1*)
2394 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
2404 if test "${ac_cv_path_mkdir+set}" = set; then
2405 MKDIR_P
="$ac_cv_path_mkdir -p"
2407 # As a last resort, use the slow shell script. Don't cache a
2408 # value for MKDIR_P within a source directory, because that will
2409 # break other packages using the cache if that directory is
2410 # removed, or if the value is a relative name.
2411 test -d .
/--version && rmdir .
/--version
2412 MKDIR_P
="$ac_install_sh -d"
2415 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2416 echo "${ECHO_T}$MKDIR_P" >&6; }
2420 [\\/$
]* | ?
:[\\/]*) ;;
2421 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
2424 for ac_prog
in gawk mawk nawk
awk
2426 # Extract the first word of "$ac_prog", so it can be a program name with args.
2427 set dummy
$ac_prog; ac_word
=$2
2428 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2429 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2430 if test "${ac_cv_prog_AWK+set}" = set; then
2431 echo $ECHO_N "(cached) $ECHO_C" >&6
2433 if test -n "$AWK"; then
2434 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2436 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2440 test -z "$as_dir" && as_dir
=.
2441 for ac_exec_ext
in '' $ac_executable_extensions; do
2442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2443 ac_cv_prog_AWK
="$ac_prog"
2444 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2454 if test -n "$AWK"; then
2455 { echo "$as_me:$LINENO: result: $AWK" >&5
2456 echo "${ECHO_T}$AWK" >&6; }
2458 { echo "$as_me:$LINENO: result: no" >&5
2459 echo "${ECHO_T}no" >&6; }
2463 test -n "$AWK" && break
2466 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2467 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2468 set x
${MAKE-make}; ac_make
=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2469 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2470 echo $ECHO_N "(cached) $ECHO_C" >&6
2472 cat >conftest.
make <<\_ACEOF
2475 @
echo '@@@%%%=$(MAKE)=@@@%%%'
2477 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2478 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2480 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
2482 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
2486 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
2487 { echo "$as_me:$LINENO: result: yes" >&5
2488 echo "${ECHO_T}yes" >&6; }
2491 { echo "$as_me:$LINENO: result: no" >&5
2492 echo "${ECHO_T}no" >&6; }
2493 SET_MAKE
="MAKE=${MAKE-make}"
2496 rm -rf .tst
2>/dev
/null
2497 mkdir .tst
2>/dev
/null
2498 if test -d .tst
; then
2503 rmdir .tst
2>/dev
/null
2505 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2506 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2507 # is not polluted with repeated "-I."
2508 am__isrc
=' -I$(srcdir)'
2509 # test to see if srcdir already configured
2510 if test -f $srcdir/config.status
; then
2511 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2512 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2513 { (exit 1); exit 1; }; }
2517 # test whether we have cygpath
2518 if test -z "$CYGPATH_W"; then
2519 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
2520 CYGPATH_W
='cygpath -w'
2527 # Define the identity of the package.
2528 PACKAGE
=vorbis-tools
2532 cat >>confdefs.h
<<_ACEOF
2533 #define PACKAGE "$PACKAGE"
2537 cat >>confdefs.h
<<_ACEOF
2538 #define VERSION "$VERSION"
2541 # Some tools Automake needs.
2543 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2546 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
2549 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2552 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
2555 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
2557 install_sh
=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2559 # Installed binaries are usually stripped using `strip' when the user
2560 # run `make install-strip'. However `strip' might not be the right
2561 # tool to use in cross-compilation environments, therefore Automake
2562 # will honor the `STRIP' environment variable to overrule this program.
2563 if test "$cross_compiling" != no
; then
2564 if test -n "$ac_tool_prefix"; then
2565 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2566 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
2567 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2568 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2569 if test "${ac_cv_prog_STRIP+set}" = set; then
2570 echo $ECHO_N "(cached) $ECHO_C" >&6
2572 if test -n "$STRIP"; then
2573 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
2575 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2579 test -z "$as_dir" && as_dir
=.
2580 for ac_exec_ext
in '' $ac_executable_extensions; do
2581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2582 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
2583 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2592 STRIP
=$ac_cv_prog_STRIP
2593 if test -n "$STRIP"; then
2594 { echo "$as_me:$LINENO: result: $STRIP" >&5
2595 echo "${ECHO_T}$STRIP" >&6; }
2597 { echo "$as_me:$LINENO: result: no" >&5
2598 echo "${ECHO_T}no" >&6; }
2603 if test -z "$ac_cv_prog_STRIP"; then
2605 # Extract the first word of "strip", so it can be a program name with args.
2606 set dummy strip
; ac_word
=$2
2607 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2608 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2609 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2610 echo $ECHO_N "(cached) $ECHO_C" >&6
2612 if test -n "$ac_ct_STRIP"; then
2613 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
2615 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2619 test -z "$as_dir" && as_dir
=.
2620 for ac_exec_ext
in '' $ac_executable_extensions; do
2621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2622 ac_cv_prog_ac_ct_STRIP
="strip"
2623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2632 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
2633 if test -n "$ac_ct_STRIP"; then
2634 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2635 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2637 { echo "$as_me:$LINENO: result: no" >&5
2638 echo "${ECHO_T}no" >&6; }
2641 if test "x$ac_ct_STRIP" = x
; then
2644 case $cross_compiling:$ac_tool_warned in
2646 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2647 whose name does not start with the host triplet. If you think this
2648 configuration is useful to you, please write to autoconf@gnu.org." >&5
2649 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2650 whose name does not start with the host triplet. If you think this
2651 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2652 ac_tool_warned
=yes ;;
2657 STRIP
="$ac_cv_prog_STRIP"
2661 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
2663 # We need awk for the "check" target. The system "awk" is bad on
2665 # Always define AMTAR for backward compatibility.
2667 AMTAR
=${AMTAR-"${am_missing_run}tar"}
2669 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
2675 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2676 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2677 # Check whether --enable-maintainer-mode was given.
2678 if test "${enable_maintainer_mode+set}" = set; then
2679 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
2681 USE_MAINTAINER_MODE
=no
2684 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2685 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2686 if test $USE_MAINTAINER_MODE = yes; then
2687 MAINTAINER_MODE_TRUE
=
2688 MAINTAINER_MODE_FALSE
='#'
2690 MAINTAINER_MODE_TRUE
='#'
2691 MAINTAINER_MODE_FALSE
=
2694 MAINT
=$MAINTAINER_MODE_TRUE
2698 ac_config_headers
="$ac_config_headers config.h"
2702 cflags_save
="$CFLAGS"
2704 ac_cpp
='$CPP $CPPFLAGS'
2705 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2706 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2707 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2708 if test -n "$ac_tool_prefix"; then
2709 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2710 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2711 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2712 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2713 if test "${ac_cv_prog_CC+set}" = set; then
2714 echo $ECHO_N "(cached) $ECHO_C" >&6
2716 if test -n "$CC"; then
2717 ac_cv_prog_CC
="$CC" # Let the user override the test.
2719 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2723 test -z "$as_dir" && as_dir
=.
2724 for ac_exec_ext
in '' $ac_executable_extensions; do
2725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2726 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2727 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2737 if test -n "$CC"; then
2738 { echo "$as_me:$LINENO: result: $CC" >&5
2739 echo "${ECHO_T}$CC" >&6; }
2741 { echo "$as_me:$LINENO: result: no" >&5
2742 echo "${ECHO_T}no" >&6; }
2747 if test -z "$ac_cv_prog_CC"; then
2749 # Extract the first word of "gcc", so it can be a program name with args.
2750 set dummy gcc
; ac_word
=$2
2751 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2752 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2753 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2754 echo $ECHO_N "(cached) $ECHO_C" >&6
2756 if test -n "$ac_ct_CC"; then
2757 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2759 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2763 test -z "$as_dir" && as_dir
=.
2764 for ac_exec_ext
in '' $ac_executable_extensions; do
2765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2766 ac_cv_prog_ac_ct_CC
="gcc"
2767 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2776 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2777 if test -n "$ac_ct_CC"; then
2778 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2779 echo "${ECHO_T}$ac_ct_CC" >&6; }
2781 { echo "$as_me:$LINENO: result: no" >&5
2782 echo "${ECHO_T}no" >&6; }
2785 if test "x$ac_ct_CC" = x
; then
2788 case $cross_compiling:$ac_tool_warned in
2790 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2791 whose name does not start with the host triplet. If you think this
2792 configuration is useful to you, please write to autoconf@gnu.org." >&5
2793 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2794 whose name does not start with the host triplet. If you think this
2795 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2796 ac_tool_warned
=yes ;;
2804 if test -z "$CC"; then
2805 if test -n "$ac_tool_prefix"; then
2806 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2807 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2808 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2809 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2810 if test "${ac_cv_prog_CC+set}" = set; then
2811 echo $ECHO_N "(cached) $ECHO_C" >&6
2813 if test -n "$CC"; then
2814 ac_cv_prog_CC
="$CC" # Let the user override the test.
2816 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2820 test -z "$as_dir" && as_dir
=.
2821 for ac_exec_ext
in '' $ac_executable_extensions; do
2822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2823 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2824 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2834 if test -n "$CC"; then
2835 { echo "$as_me:$LINENO: result: $CC" >&5
2836 echo "${ECHO_T}$CC" >&6; }
2838 { echo "$as_me:$LINENO: result: no" >&5
2839 echo "${ECHO_T}no" >&6; }
2845 if test -z "$CC"; then
2846 # Extract the first word of "cc", so it can be a program name with args.
2847 set dummy cc
; ac_word
=$2
2848 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2849 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2850 if test "${ac_cv_prog_CC+set}" = set; then
2851 echo $ECHO_N "(cached) $ECHO_C" >&6
2853 if test -n "$CC"; then
2854 ac_cv_prog_CC
="$CC" # Let the user override the test.
2857 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2861 test -z "$as_dir" && as_dir
=.
2862 for ac_exec_ext
in '' $ac_executable_extensions; do
2863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2864 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2865 ac_prog_rejected
=yes
2869 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2876 if test $ac_prog_rejected = yes; then
2877 # We found a bogon in the path, so make sure we never use it.
2878 set dummy
$ac_cv_prog_CC
2880 if test $# != 0; then
2881 # We chose a different compiler from the bogus one.
2882 # However, it has the same basename, so the bogon will be chosen
2883 # first if we set CC to just the basename; use the full file name.
2885 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2891 if test -n "$CC"; then
2892 { echo "$as_me:$LINENO: result: $CC" >&5
2893 echo "${ECHO_T}$CC" >&6; }
2895 { echo "$as_me:$LINENO: result: no" >&5
2896 echo "${ECHO_T}no" >&6; }
2901 if test -z "$CC"; then
2902 if test -n "$ac_tool_prefix"; then
2903 for ac_prog
in cl.exe
2905 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2906 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2907 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2908 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2909 if test "${ac_cv_prog_CC+set}" = set; then
2910 echo $ECHO_N "(cached) $ECHO_C" >&6
2912 if test -n "$CC"; then
2913 ac_cv_prog_CC
="$CC" # Let the user override the test.
2915 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2919 test -z "$as_dir" && as_dir
=.
2920 for ac_exec_ext
in '' $ac_executable_extensions; do
2921 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2922 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2923 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2933 if test -n "$CC"; then
2934 { echo "$as_me:$LINENO: result: $CC" >&5
2935 echo "${ECHO_T}$CC" >&6; }
2937 { echo "$as_me:$LINENO: result: no" >&5
2938 echo "${ECHO_T}no" >&6; }
2942 test -n "$CC" && break
2945 if test -z "$CC"; then
2947 for ac_prog
in cl.exe
2949 # Extract the first word of "$ac_prog", so it can be a program name with args.
2950 set dummy
$ac_prog; ac_word
=$2
2951 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2952 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2953 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2954 echo $ECHO_N "(cached) $ECHO_C" >&6
2956 if test -n "$ac_ct_CC"; then
2957 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2959 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2963 test -z "$as_dir" && as_dir
=.
2964 for ac_exec_ext
in '' $ac_executable_extensions; do
2965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2966 ac_cv_prog_ac_ct_CC
="$ac_prog"
2967 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2976 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2977 if test -n "$ac_ct_CC"; then
2978 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2979 echo "${ECHO_T}$ac_ct_CC" >&6; }
2981 { echo "$as_me:$LINENO: result: no" >&5
2982 echo "${ECHO_T}no" >&6; }
2986 test -n "$ac_ct_CC" && break
2989 if test "x$ac_ct_CC" = x
; then
2992 case $cross_compiling:$ac_tool_warned in
2994 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2995 whose name does not start with the host triplet. If you think this
2996 configuration is useful to you, please write to autoconf@gnu.org." >&5
2997 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2998 whose name does not start with the host triplet. If you think this
2999 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3000 ac_tool_warned
=yes ;;
3009 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3010 See \`config.log' for more details." >&5
3011 echo "$as_me: error: no acceptable C compiler found in \$PATH
3012 See \`config.log' for more details." >&2;}
3013 { (exit 1); exit 1; }; }
3015 # Provide some information about the compiler.
3016 echo "$as_me:$LINENO: checking for C compiler version" >&5
3017 ac_compiler
=`set X $ac_compile; echo $2`
3018 { (ac_try
="$ac_compiler --version >&5"
3020 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3021 *) ac_try_echo=$ac_try;;
3023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3024 (eval "$ac_compiler --version >&5") 2>&5
3026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3027 (exit $ac_status); }
3028 { (ac_try="$ac_compiler -v >&5"
3030 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3031 *) ac_try_echo
=$ac_try;;
3033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3034 (eval "$ac_compiler -v >&5") 2>&5
3036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3037 (exit $ac_status); }
3038 { (ac_try
="$ac_compiler -V >&5"
3040 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3041 *) ac_try_echo=$ac_try;;
3043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3044 (eval "$ac_compiler -V >&5") 2>&5
3046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3047 (exit $ac_status); }
3049 cat >conftest.$ac_ext <<_ACEOF
3052 cat confdefs.h >>conftest.$ac_ext
3053 cat >>conftest.$ac_ext <<_ACEOF
3054 /* end confdefs.h. */
3064 ac_clean_files_save=$ac_clean_files
3065 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3066 # Try to create an executable without -o first, disregard a.out.
3067 # It will help us diagnose broken compilers, and finding out an intuition
3069 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3070 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3071 ac_link_default=`echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3073 # List of possible output files, starting from the most likely.
3074 # The algorithm is not robust to junk in `.
', hence go to wildcards (a.*)
3075 # only as a last resort. b.out is created by i960 compilers.
3076 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
'
3078 # The IRIX 6 linker writes into existing files which may not be
3079 # executable, retaining their permissions. Remove them first so a
3080 # subsequent execution test works.
3082 for ac_file in $ac_files
3085 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3086 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3091 if { (ac_try="$ac_link_default"
3093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3094 *) ac_try_echo=$ac_try;;
3096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3097 (eval "$ac_link_default") 2>&5
3099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3100 (exit $ac_status); }; then
3101 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3102 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3103 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3104 # so that the user can short-circuit this test for compilers unknown to
3106 for ac_file
in $ac_files ''
3108 test -f "$ac_file" ||
continue
3110 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
)
3113 # We found the default executable, but exeext='' is most
3117 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3119 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3121 # We set ac_cv_exeext here because the later test for it is not
3122 # safe: cross compilers may not add the suffix if given an `-o'
3123 # argument, so we may need to know it at that point already.
3124 # Even if this section looks crufty: it has the advantage of
3131 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3137 { echo "$as_me:$LINENO: result: $ac_file" >&5
3138 echo "${ECHO_T}$ac_file" >&6; }
3139 if test -z "$ac_file"; then
3140 echo "$as_me: failed program was:" >&5
3141 sed 's/^/| /' conftest.
$ac_ext >&5
3143 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3144 See \`config.log' for more details." >&5
3145 echo "$as_me: error: C compiler cannot create executables
3146 See \`config.log' for more details." >&2;}
3147 { (exit 77); exit 77; }; }
3150 ac_exeext
=$ac_cv_exeext
3152 # Check that the compiler produces executables we can run. If not, either
3153 # the compiler is broken, or we cross compile.
3154 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3155 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3156 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3157 # If not cross compiling, check that we can run a simple program.
3158 if test "$cross_compiling" != yes; then
3159 if { ac_try
='./$ac_file'
3160 { (case "(($ac_try" in
3161 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3162 *) ac_try_echo=$ac_try;;
3164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3165 (eval "$ac_try") 2>&5
3167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3168 (exit $ac_status); }; }; then
3171 if test "$cross_compiling" = maybe; then
3174 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3175 If you meant to cross compile, use \`--host'.
3176 See \`config.log' for more details.
" >&5
3177 echo "$as_me: error
: cannot run C compiled programs.
3178 If you meant to cross compile
, use \
`--host'.
3179 See \`config.log
' for more details." >&2;}
3180 { (exit 1); exit 1; }; }
3184 { echo "$as_me:$LINENO: result: yes" >&5
3185 echo "${ECHO_T}yes" >&6; }
3187 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3188 ac_clean_files=$ac_clean_files_save
3189 # Check that the compiler produces executables we can run. If not, either
3190 # the compiler is broken, or we cross compile.
3191 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3192 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3193 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3194 echo "${ECHO_T}$cross_compiling" >&6; }
3196 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3197 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3198 if { (ac_try="$ac_link"
3200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3201 *) ac_try_echo=$ac_try;;
3203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3204 (eval "$ac_link") 2>&5
3206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3207 (exit $ac_status); }; then
3208 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3209 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3210 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3212 for ac_file
in conftest.exe conftest conftest.
*; do
3213 test -f "$ac_file" ||
continue
3215 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
) ;;
3216 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3222 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3223 See \`config.log' for more details." >&5
3224 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3225 See \`config.log' for more details." >&2;}
3226 { (exit 1); exit 1; }; }
3229 rm -f conftest
$ac_cv_exeext
3230 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3231 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3233 rm -f conftest.
$ac_ext
3234 EXEEXT
=$ac_cv_exeext
3236 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3237 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3238 if test "${ac_cv_objext+set}" = set; then
3239 echo $ECHO_N "(cached) $ECHO_C" >&6
3241 cat >conftest.
$ac_ext <<_ACEOF
3244 cat confdefs.h
>>conftest.
$ac_ext
3245 cat >>conftest.
$ac_ext <<_ACEOF
3246 /* end confdefs.h. */
3256 rm -f conftest.o conftest.obj
3257 if { (ac_try
="$ac_compile"
3259 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3260 *) ac_try_echo=$ac_try;;
3262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3263 (eval "$ac_compile") 2>&5
3265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3266 (exit $ac_status); }; then
3267 for ac_file in conftest.o conftest.obj conftest.*; do
3268 test -f "$ac_file" || continue;
3270 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3271 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3276 echo "$as_me: failed program was:" >&5
3277 sed 's/^/| /' conftest.$ac_ext >&5
3279 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3280 See \`config.log
' for more details." >&5
3281 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3282 See \`config.log' for more details.
" >&2;}
3283 { (exit 1); exit 1; }; }
3286 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3288 { echo "$as_me:$LINENO: result
: $ac_cv_objext" >&5
3289 echo "${ECHO_T}$ac_cv_objext" >&6; }
3290 OBJEXT=$ac_cv_objext
3292 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
3293 echo $ECHO_N "checking whether we are using the GNU C compiler...
$ECHO_C" >&6; }
3294 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3295 echo $ECHO_N "(cached
) $ECHO_C" >&6
3297 cat >conftest.$ac_ext <<_ACEOF
3300 cat confdefs.h >>conftest.$ac_ext
3301 cat >>conftest.$ac_ext <<_ACEOF
3302 /* end confdefs.h. */
3315 rm -f conftest.$ac_objext
3316 if { (ac_try="$ac_compile"
3318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3319 *) ac_try_echo=$ac_try;;
3321 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3322 (eval "$ac_compile") 2>conftest.er1
3324 grep -v '^ *+' conftest.er1 >conftest.err
3326 cat conftest.err >&5
3327 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3328 (exit $ac_status); } && {
3329 test -z "$ac_c_werror_flag" ||
3330 test ! -s conftest.err
3331 } && test -s conftest.$ac_objext; then
3334 echo "$as_me: failed program was
:" >&5
3335 sed 's/^/| /' conftest.$ac_ext >&5
3340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3341 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3344 { echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
3345 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3346 GCC=`test $ac_compiler_gnu = yes && echo yes`
3347 ac_test_CFLAGS=${CFLAGS+set}
3348 ac_save_CFLAGS=$CFLAGS
3349 { echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
3350 echo $ECHO_N "checking whether
$CC accepts
-g...
$ECHO_C" >&6; }
3351 if test "${ac_cv_prog_cc_g+set}" = set; then
3352 echo $ECHO_N "(cached
) $ECHO_C" >&6
3354 ac_save_c_werror_flag=$ac_c_werror_flag
3355 ac_c_werror_flag=yes
3358 cat >conftest.$ac_ext <<_ACEOF
3361 cat confdefs.h >>conftest.$ac_ext
3362 cat >>conftest.$ac_ext <<_ACEOF
3363 /* end confdefs.h. */
3373 rm -f conftest.$ac_objext
3374 if { (ac_try="$ac_compile"
3376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3377 *) ac_try_echo=$ac_try;;
3379 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3380 (eval "$ac_compile") 2>conftest.er1
3382 grep -v '^ *+' conftest.er1 >conftest.err
3384 cat conftest.err >&5
3385 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3386 (exit $ac_status); } && {
3387 test -z "$ac_c_werror_flag" ||
3388 test ! -s conftest.err
3389 } && test -s conftest.$ac_objext; then
3392 echo "$as_me: failed program was
:" >&5
3393 sed 's/^/| /' conftest.$ac_ext >&5
3396 cat >conftest.$ac_ext <<_ACEOF
3399 cat confdefs.h >>conftest.$ac_ext
3400 cat >>conftest.$ac_ext <<_ACEOF
3401 /* end confdefs.h. */
3411 rm -f conftest.$ac_objext
3412 if { (ac_try="$ac_compile"
3414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3415 *) ac_try_echo=$ac_try;;
3417 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3418 (eval "$ac_compile") 2>conftest.er1
3420 grep -v '^ *+' conftest.er1 >conftest.err
3422 cat conftest.err >&5
3423 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3424 (exit $ac_status); } && {
3425 test -z "$ac_c_werror_flag" ||
3426 test ! -s conftest.err
3427 } && test -s conftest.$ac_objext; then
3430 echo "$as_me: failed program was
:" >&5
3431 sed 's/^/| /' conftest.$ac_ext >&5
3433 ac_c_werror_flag=$ac_save_c_werror_flag
3435 cat >conftest.$ac_ext <<_ACEOF
3438 cat confdefs.h >>conftest.$ac_ext
3439 cat >>conftest.$ac_ext <<_ACEOF
3440 /* end confdefs.h. */
3450 rm -f conftest.$ac_objext
3451 if { (ac_try="$ac_compile"
3453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3454 *) ac_try_echo=$ac_try;;
3456 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3457 (eval "$ac_compile") 2>conftest.er1
3459 grep -v '^ *+' conftest.er1 >conftest.err
3461 cat conftest.err >&5
3462 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3463 (exit $ac_status); } && {
3464 test -z "$ac_c_werror_flag" ||
3465 test ! -s conftest.err
3466 } && test -s conftest.$ac_objext; then
3469 echo "$as_me: failed program was
:" >&5
3470 sed 's/^/| /' conftest.$ac_ext >&5
3475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3482 ac_c_werror_flag=$ac_save_c_werror_flag
3484 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
3485 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3486 if test "$ac_test_CFLAGS" = set; then
3487 CFLAGS=$ac_save_CFLAGS
3488 elif test $ac_cv_prog_cc_g = yes; then
3489 if test "$GCC" = yes; then
3495 if test "$GCC" = yes; then
3501 { echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
3502 echo $ECHO_N "checking
for $CC option to accept ISO C89...
$ECHO_C" >&6; }
3503 if test "${ac_cv_prog_cc_c89+set}" = set; then
3504 echo $ECHO_N "(cached
) $ECHO_C" >&6
3506 ac_cv_prog_cc_c89=no
3508 cat >conftest.$ac_ext <<_ACEOF
3511 cat confdefs.h >>conftest.$ac_ext
3512 cat >>conftest.$ac_ext <<_ACEOF
3513 /* end confdefs.h. */
3516 #include <sys/types.h>
3517 #include <sys/stat.h>
3518 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3519 struct buf { int x; };
3520 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3521 static char *e (p, i)
3527 static char *f (char * (*g) (char **, int), char **p, ...)
3532 s = g (p, va_arg (v,int));
3537 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3538 function prototypes and stuff, but not '\xHH' hex character constants.
3539 These don't provoke an error unfortunately, instead are silently treated
3540 as 'x'. The following induces an error, until -std is added to get
3541 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3542 array size at least. It's necessary to write '\x00'==0 to get something
3543 that's true only with -std. */
3544 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3546 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3547 inside strings and character constants. */
3549 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3551 int test (int i, double x);
3552 struct s1 {int (*f) (int a);};
3553 struct s2 {int (*f) (double a);};
3554 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3560 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3565 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3566 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3568 CC="$ac_save_CC $ac_arg"
3569 rm -f conftest.$ac_objext
3570 if { (ac_try="$ac_compile"
3572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3573 *) ac_try_echo=$ac_try;;
3575 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3576 (eval "$ac_compile") 2>conftest.er1
3578 grep -v '^ *+' conftest.er1 >conftest.err
3580 cat conftest.err >&5
3581 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3582 (exit $ac_status); } && {
3583 test -z "$ac_c_werror_flag" ||
3584 test ! -s conftest.err
3585 } && test -s conftest.$ac_objext; then
3586 ac_cv_prog_cc_c89=$ac_arg
3588 echo "$as_me: failed program was
:" >&5
3589 sed 's/^/| /' conftest.$ac_ext >&5
3594 rm -f core conftest.err conftest.$ac_objext
3595 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
3597 rm -f conftest.$ac_ext
3602 case "x
$ac_cv_prog_cc_c89" in
3604 { echo "$as_me:$LINENO: result
: none needed
" >&5
3605 echo "${ECHO_T}none needed
" >&6; } ;;
3607 { echo "$as_me:$LINENO: result
: unsupported
" >&5
3608 echo "${ECHO_T}unsupported
" >&6; } ;;
3610 CC="$CC $ac_cv_prog_cc_c89"
3611 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
3612 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3617 ac_cpp='$CPP $CPPFLAGS'
3618 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3619 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3620 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3621 DEPDIR="${am__leading_dot}deps
"
3623 ac_config_commands="$ac_config_commands depfiles
"
3626 am_make=${MAKE-make}
3627 cat > confinc << 'END'
3632 # If we don't find an include directive, just comment out the code.
3633 { echo "$as_me:$LINENO: checking
for style of include used by
$am_make" >&5
3634 echo $ECHO_N "checking
for style of include used by
$am_make...
$ECHO_C" >&6; }
3638 # First try GNU make style include.
3639 echo "include confinc" > confmf
3640 # We grep out `Entering directory' and `Leaving directory'
3641 # messages which can occur if `w' ends up in MAKEFLAGS.
3642 # In particular we don't look at `^make:' because GNU make might
3643 # be invoked under some other name (usually "gmake"), in which
3644 # case it prints its new name instead of `make'.
3645 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3650 # Now try BSD make style include.
3651 if test "$am__include" = "#"; then
3652 echo '.include "confinc"' > confmf
3653 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3654 am__include
=.include
3661 { echo "$as_me:$LINENO: result: $_am_result" >&5
3662 echo "${ECHO_T}$_am_result" >&6; }
3663 rm -f confinc confmf
3665 # Check whether --enable-dependency-tracking was given.
3666 if test "${enable_dependency_tracking+set}" = set; then
3667 enableval
=$enable_dependency_tracking;
3670 if test "x$enable_dependency_tracking" != xno
; then
3671 am_depcomp
="$ac_aux_dir/depcomp"
3674 if test "x$enable_dependency_tracking" != xno; then
3684 depcc
="$CC" am_compiler_list
=
3686 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3687 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3688 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3689 echo $ECHO_N "(cached) $ECHO_C" >&6
3691 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3692 # We make a subdir and do the tests there. Otherwise we can end up
3693 # making bogus files that we don't know about and never remove. For
3694 # instance it was reported that on HP-UX the gcc test will end up
3695 # making a dummy file named `D' -- because `-MD' means `put the output
3698 # Copy depcomp to subdir because otherwise we won't find it if we're
3699 # using a relative directory.
3700 cp "$am_depcomp" conftest.dir
3702 # We will build objects and dependencies in a subdirectory because
3703 # it helps to detect inapplicable dependency modes. For instance
3704 # both Tru64's cc and ICC support -MD to output dependencies as a
3705 # side effect of compilation, but ICC will put the dependencies in
3706 # the current directory while Tru64 will put them in the object
3710 am_cv_CC_dependencies_compiler_type
=none
3711 if test "$am_compiler_list" = ""; then
3712 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3714 for depmode
in $am_compiler_list; do
3715 # Setup a source with many dependencies, because some compilers
3716 # like to wrap large dependency lists on column 80 (with \), and
3717 # we should not choose a depcomp mode which is confused by this.
3719 # We need to recreate these files for each test, as the compiler may
3720 # overwrite some of them when testing with obscure command lines.
3721 # This happens at least with the AIX C compiler.
3723 for i
in 1 2 3 4 5 6; do
3724 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
3725 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3726 # Solaris 8's {/usr,}/bin/sh.
3727 touch sub
/conftst
$i.h
3729 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3733 # after this tag, mechanisms are not by side-effect, so they'll
3734 # only be used when explicitly requested
3735 if test "x$enable_dependency_tracking" = xyes
; then
3743 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3744 # mode. It turns out that the SunPro C++ compiler does not properly
3745 # handle `-M -o', and we need to detect this.
3746 if depmode
=$depmode \
3747 source=sub
/conftest.c object
=sub
/conftest.
${OBJEXT-o} \
3748 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
3749 $SHELL .
/depcomp
$depcc -c -o sub
/conftest.
${OBJEXT-o} sub
/conftest.c \
3750 >/dev
/null
2>conftest.err
&&
3751 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
3752 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
3753 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
> /dev
/null
2>&1 &&
3754 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
3755 # icc doesn't choke on unknown options, it will just issue warnings
3756 # or remarks (even with -Werror). So we grep stderr for any message
3757 # that says an option was ignored or not supported.
3758 # When given -MP, icc 7.0 and 7.1 complain thusly:
3759 # icc: Command line warning: ignoring option '-M'; no argument required
3760 # The diagnosis changed in icc 8.0:
3761 # icc: Command line remark: option '-MP' not supported
3762 if (grep 'ignoring option' conftest.err ||
3763 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
3764 am_cv_CC_dependencies_compiler_type
=$depmode
3773 am_cv_CC_dependencies_compiler_type
=none
3777 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3778 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3779 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
3782 test "x$enable_dependency_tracking" != xno \
3783 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
3785 am__fastdepCC_FALSE
='#'
3787 am__fastdepCC_TRUE
='#'
3788 am__fastdepCC_FALSE
=
3792 CFLAGS
="$cflags_save"
3794 # Check whether --enable-shared was given.
3795 if test "${enable_shared+set}" = set; then
3796 enableval
=$enable_shared; p
=${PACKAGE-default}
3798 yes) enable_shared
=yes ;;
3799 no
) enable_shared
=no
;;
3802 # Look at the argument we got. We use all the common list separators.
3803 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
3804 for pkg
in $enableval; do
3806 if test "X$pkg" = "X$p"; then
3818 # Check whether --enable-static was given.
3819 if test "${enable_static+set}" = set; then
3820 enableval
=$enable_static; p
=${PACKAGE-default}
3822 yes) enable_static
=yes ;;
3823 no
) enable_static
=no
;;
3826 # Look at the argument we got. We use all the common list separators.
3827 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
3828 for pkg
in $enableval; do
3830 if test "X$pkg" = "X$p"; then
3842 # Check whether --enable-fast-install was given.
3843 if test "${enable_fast_install+set}" = set; then
3844 enableval
=$enable_fast_install; p
=${PACKAGE-default}
3846 yes) enable_fast_install
=yes ;;
3847 no
) enable_fast_install
=no
;;
3849 enable_fast_install
=no
3850 # Look at the argument we got. We use all the common list separators.
3851 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
3852 for pkg
in $enableval; do
3854 if test "X$pkg" = "X$p"; then
3855 enable_fast_install
=yes
3862 enable_fast_install
=yes
3866 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3867 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3868 if test "${lt_cv_path_SED+set}" = set; then
3869 echo $ECHO_N "(cached) $ECHO_C" >&6
3871 # Loop through the user's path and test for sed and gsed.
3872 # Then use that list of sed's as ones to test for truncation.
3873 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3877 test -z "$as_dir" && as_dir
=.
3878 for lt_ac_prog
in sed gsed
; do
3879 for ac_exec_ext
in '' $ac_executable_extensions; do
3880 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3881 lt_ac_sed_list
="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3888 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3889 # along with /bin/sed that truncates output.
3890 for lt_ac_sed
in $lt_ac_sed_list /usr
/xpg
4/bin
/sed; do
3891 test ! -f $lt_ac_sed && continue
3892 cat /dev
/null
> conftest.
in
3894 echo $ECHO_N "0123456789$ECHO_C" >conftest.
in
3895 # Check for GNU sed and select it if it is found.
3896 if "$lt_ac_sed" --version 2>&1 < /dev
/null |
grep 'GNU' > /dev
/null
; then
3897 lt_cv_path_SED
=$lt_ac_sed
3901 cat conftest.
in conftest.
in >conftest.tmp
3902 mv conftest.tmp conftest.
in
3903 cp conftest.
in conftest.
nl
3905 $lt_ac_sed -e 's/a$//' < conftest.
nl >conftest.out ||
break
3906 cmp -s conftest.out conftest.
nl ||
break
3907 # 10000 chars as input seems more than enough
3908 test $lt_ac_count -gt 10 && break
3909 lt_ac_count
=`expr $lt_ac_count + 1`
3910 if test $lt_ac_count -gt $lt_ac_max; then
3911 lt_ac_max
=$lt_ac_count
3912 lt_cv_path_SED
=$lt_ac_sed
3920 { echo "$as_me:$LINENO: result: $SED" >&5
3921 echo "${ECHO_T}$SED" >&6; }
3923 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3924 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3925 if test "${ac_cv_path_GREP+set}" = set; then
3926 echo $ECHO_N "(cached) $ECHO_C" >&6
3928 # Extract the first word of "grep ggrep" to use in msg output
3929 if test -z "$GREP"; then
3930 set dummy
grep ggrep
; ac_prog_name
=$2
3931 if test "${ac_cv_path_GREP+set}" = set; then
3932 echo $ECHO_N "(cached) $ECHO_C" >&6
3934 ac_path_GREP_found
=false
3935 # Loop through the user's path and test for each of PROGNAME-LIST
3936 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3937 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3940 test -z "$as_dir" && as_dir
=.
3941 for ac_prog
in grep ggrep
; do
3942 for ac_exec_ext
in '' $ac_executable_extensions; do
3943 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3944 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
3945 # Check for GNU ac_path_GREP and select it if it is found.
3946 # Check for GNU $ac_path_GREP
3947 case `"$ac_path_GREP" --version 2>&1` in
3949 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3952 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3955 cat "conftest.in" "conftest.in" >"conftest.tmp"
3956 mv "conftest.tmp" "conftest.in"
3957 cp "conftest.in" "conftest.nl"
3958 echo 'GREP' >> "conftest.nl"
3959 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3960 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3961 ac_count
=`expr $ac_count + 1`
3962 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3963 # Best one so far, save it but keep looking for a better one
3964 ac_cv_path_GREP
="$ac_path_GREP"
3965 ac_path_GREP_max
=$ac_count
3967 # 10*(2^10) chars as input seems more than enough
3968 test $ac_count -gt 10 && break
3970 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3974 $ac_path_GREP_found && break 3
3984 GREP
="$ac_cv_path_GREP"
3985 if test -z "$GREP"; then
3986 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3987 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3988 { (exit 1); exit 1; }; }
3992 ac_cv_path_GREP
=$GREP
3997 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3998 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3999 GREP
="$ac_cv_path_GREP"
4002 { echo "$as_me:$LINENO: checking for egrep" >&5
4003 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4004 if test "${ac_cv_path_EGREP+set}" = set; then
4005 echo $ECHO_N "(cached) $ECHO_C" >&6
4007 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4008 then ac_cv_path_EGREP
="$GREP -E"
4010 # Extract the first word of "egrep" to use in msg output
4011 if test -z "$EGREP"; then
4012 set dummy
egrep; ac_prog_name
=$2
4013 if test "${ac_cv_path_EGREP+set}" = set; then
4014 echo $ECHO_N "(cached) $ECHO_C" >&6
4016 ac_path_EGREP_found
=false
4017 # Loop through the user's path and test for each of PROGNAME-LIST
4018 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4019 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4022 test -z "$as_dir" && as_dir
=.
4023 for ac_prog
in egrep; do
4024 for ac_exec_ext
in '' $ac_executable_extensions; do
4025 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4026 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4027 # Check for GNU ac_path_EGREP and select it if it is found.
4028 # Check for GNU $ac_path_EGREP
4029 case `"$ac_path_EGREP" --version 2>&1` in
4031 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4034 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4037 cat "conftest.in" "conftest.in" >"conftest.tmp"
4038 mv "conftest.tmp" "conftest.in"
4039 cp "conftest.in" "conftest.nl"
4040 echo 'EGREP' >> "conftest.nl"
4041 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4042 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4043 ac_count
=`expr $ac_count + 1`
4044 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4045 # Best one so far, save it but keep looking for a better one
4046 ac_cv_path_EGREP
="$ac_path_EGREP"
4047 ac_path_EGREP_max
=$ac_count
4049 # 10*(2^10) chars as input seems more than enough
4050 test $ac_count -gt 10 && break
4052 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4056 $ac_path_EGREP_found && break 3
4066 EGREP
="$ac_cv_path_EGREP"
4067 if test -z "$EGREP"; then
4068 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4069 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4070 { (exit 1); exit 1; }; }
4074 ac_cv_path_EGREP
=$EGREP
4080 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4081 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4082 EGREP
="$ac_cv_path_EGREP"
4086 # Check whether --with-gnu-ld was given.
4087 if test "${with_gnu_ld+set}" = set; then
4088 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
4094 if test "$GCC" = yes; then
4095 # Check if gcc -print-prog-name=ld gives a path.
4096 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4097 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4100 # gcc leaves a trailing carriage return which upsets mingw
4101 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4103 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
4106 # Accept absolute paths.
4108 re_direlt
='/[^/][^/]*/\.\./'
4109 # Canonicalize the pathname of ld
4110 ac_prog
=`echo $ac_prog| $SED 's%\\\\%/%g'`
4111 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
4112 ac_prog
=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4114 test -z "$LD" && LD
="$ac_prog"
4117 # If it fails, then pretend we aren't using GCC.
4121 # If it is relative, then search for the first ld in PATH.
4125 elif test "$with_gnu_ld" = yes; then
4126 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4127 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4129 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4130 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4132 if test "${lt_cv_path_LD+set}" = set; then
4133 echo $ECHO_N "(cached) $ECHO_C" >&6
4135 if test -z "$LD"; then
4136 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
4137 for ac_dir
in $PATH; do
4139 test -z "$ac_dir" && ac_dir
=.
4140 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
4141 lt_cv_path_LD
="$ac_dir/$ac_prog"
4142 # Check to see if the program is GNU ld. I'd rather use --version,
4143 # but apparently some variants of GNU ld only accept -v.
4144 # Break only if it was the GNU/non-GNU ld that we prefer.
4145 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4146 *GNU
* |
*'with BFD'*)
4147 test "$with_gnu_ld" != no
&& break
4150 test "$with_gnu_ld" != yes && break
4157 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
4162 if test -n "$LD"; then
4163 { echo "$as_me:$LINENO: result: $LD" >&5
4164 echo "${ECHO_T}$LD" >&6; }
4166 { echo "$as_me:$LINENO: result: no" >&5
4167 echo "${ECHO_T}no" >&6; }
4169 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4170 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4171 { (exit 1); exit 1; }; }
4172 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4173 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4174 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4175 echo $ECHO_N "(cached) $ECHO_C" >&6
4177 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4178 case `$LD -v 2>&1 </dev/null` in
4179 *GNU
* |
*'with BFD'*)
4180 lt_cv_prog_gnu_ld
=yes
4183 lt_cv_prog_gnu_ld
=no
4187 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4188 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4189 with_gnu_ld
=$lt_cv_prog_gnu_ld
4192 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4193 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4194 if test "${lt_cv_ld_reload_flag+set}" = set; then
4195 echo $ECHO_N "(cached) $ECHO_C" >&6
4197 lt_cv_ld_reload_flag
='-r'
4199 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4200 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4201 reload_flag
=$lt_cv_ld_reload_flag
4202 case $reload_flag in
4204 *) reload_flag
=" $reload_flag" ;;
4206 reload_cmds
='$LD$reload_flag -o $output$reload_objs'
4209 if test "$GCC" = yes; then
4210 reload_cmds
='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4212 reload_cmds
='$LD$reload_flag -o $output$reload_objs'
4217 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4218 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4219 if test "${lt_cv_path_NM+set}" = set; then
4220 echo $ECHO_N "(cached) $ECHO_C" >&6
4222 if test -n "$NM"; then
4223 # Let the user override the test.
4226 lt_nm_to_check
="${ac_tool_prefix}nm"
4227 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4228 lt_nm_to_check
="$lt_nm_to_check nm"
4230 for lt_tmp_nm
in $lt_nm_to_check; do
4231 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
4232 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
4234 test -z "$ac_dir" && ac_dir
=.
4235 tmp_nm
="$ac_dir/$lt_tmp_nm"
4236 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
4237 # Check to see if the nm accepts a BSD-compat flag.
4238 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4239 # nm: unknown option "B" ignored
4240 # Tru64's nm complains that /dev/null is an invalid object file
4241 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4242 */dev
/null
* |
*'Invalid file or object type'*)
4243 lt_cv_path_NM
="$tmp_nm -B"
4247 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4249 lt_cv_path_NM
="$tmp_nm -p"
4253 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4254 continue # so that we can try to find one that supports BSD flags
4263 test -z "$lt_cv_path_NM" && lt_cv_path_NM
=nm
4266 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4267 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4270 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4271 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4273 if test "$LN_S" = "ln -s"; then
4274 { echo "$as_me:$LINENO: result: yes" >&5
4275 echo "${ECHO_T}yes" >&6; }
4277 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4278 echo "${ECHO_T}no, using $LN_S" >&6; }
4281 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4282 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
4283 if test "${lt_cv_deplibs_check_method+set}" = set; then
4284 echo $ECHO_N "(cached) $ECHO_C" >&6
4286 lt_cv_file_magic_cmd
='$MAGIC_CMD'
4287 lt_cv_file_magic_test_file
=
4288 lt_cv_deplibs_check_method
='unknown'
4289 # Need to set the preceding variable on all platforms that support
4290 # interlibrary dependencies.
4291 # 'none' -- dependencies not supported.
4292 # `unknown' -- same as none, but documents that we really don't know.
4293 # 'pass_all' -- all dependencies passed with no checks.
4294 # 'test_compile' -- check by making test program.
4295 # 'file_magic [[regex]]' -- check by looking for files in library path
4296 # which responds to the $file_magic_cmd with a given extended regex.
4297 # If you have `file' or equivalent on your system and you're not sure
4298 # whether `pass_all' will *always* work, you probably want this one.
4302 lt_cv_deplibs_check_method
=pass_all
4306 lt_cv_deplibs_check_method
=pass_all
4310 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4311 lt_cv_file_magic_cmd
='/usr/bin/file -L'
4312 lt_cv_file_magic_test_file
=/shlib
/libc.so
4316 # func_win32_libid is a shell function defined in ltmain.sh
4317 lt_cv_deplibs_check_method
='file_magic ^x86 archive import|^x86 DLL'
4318 lt_cv_file_magic_cmd
='func_win32_libid'
4322 # Base MSYS/MinGW do not provide the 'file' command needed by
4323 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4324 lt_cv_deplibs_check_method
='file_magic file format pei*-i386(.*architecture: i386)?'
4325 lt_cv_file_magic_cmd
='$OBJDUMP -f'
4328 darwin
* | rhapsody
*)
4329 lt_cv_deplibs_check_method
=pass_all
4332 freebsd
* | dragonfly
*)
4333 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then
4336 # Not sure whether the presence of OpenBSD here was a mistake.
4337 # Let's accept both of them until this is cleared up.
4338 lt_cv_deplibs_check_method
='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4339 lt_cv_file_magic_cmd
=/usr
/bin
/file
4340 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so.*`
4344 lt_cv_deplibs_check_method
=pass_all
4349 lt_cv_deplibs_check_method
=pass_all
4352 hpux10.20
* | hpux11
*)
4353 lt_cv_file_magic_cmd
=/usr
/bin
/file
4356 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4357 lt_cv_file_magic_test_file
=/usr
/lib
/hpux32
/libc.so
4360 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]'
4361 lt_cv_file_magic_test_file
=/usr
/lib
/pa20_64
/libc.sl
4364 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4365 lt_cv_file_magic_test_file
=/usr
/lib
/libc.sl
4371 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4372 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so|\.a)$'
4375 irix5
* | irix6
* | nonstopux
*)
4377 *-32|
*"-32 ") libmagic
=32-bit;;
4378 *-n32|
*"-n32 ") libmagic
=N32
;;
4379 *-64|
*"-64 ") libmagic
=64-bit;;
4380 *) libmagic
=never-match
;;
4382 lt_cv_deplibs_check_method
=pass_all
4385 # This must be Linux ELF.
4386 linux
* | k
*bsd
*-gnu)
4387 lt_cv_deplibs_check_method
=pass_all
4390 netbsd
* | netbsdelf
*-gnu)
4391 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then
4392 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4394 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4399 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4400 lt_cv_file_magic_cmd
=/usr
/bin
/file
4401 lt_cv_file_magic_test_file
=/usr
/lib
/libnls.so
4405 lt_cv_deplibs_check_method
=unknown
4409 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4410 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4412 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4416 osf3
* | osf4
* | osf5
*)
4417 lt_cv_deplibs_check_method
=pass_all
4421 lt_cv_deplibs_check_method
=pass_all
4425 case $host_vendor in
4427 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]'
4428 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so*`
4431 lt_cv_deplibs_check_method
=pass_all
4434 lt_cv_file_magic_cmd
='/bin/file'
4435 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4438 lt_cv_file_magic_cmd
='/bin/file'
4439 lt_cv_deplibs_check_method
="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4440 lt_cv_file_magic_test_file
=/lib
/libc.so
4443 lt_cv_deplibs_check_method
=pass_all
4446 lt_cv_deplibs_check_method
=pass_all
4451 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
4452 lt_cv_deplibs_check_method
=pass_all
4457 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4458 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4459 file_magic_cmd
=$lt_cv_file_magic_cmd
4460 deplibs_check_method
=$lt_cv_deplibs_check_method
4461 test -z "$deplibs_check_method" && deplibs_check_method
=unknown
4466 # If no C compiler was specified, use CC.
4469 # If no C compiler flags were specified, use CFLAGS.
4470 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
4472 # Allow CC to be a program name with arguments.
4476 # Check whether --enable-libtool-lock was given.
4477 if test "${enable_libtool_lock+set}" = set; then
4478 enableval
=$enable_libtool_lock;
4481 test "x$enable_libtool_lock" != xno
&& enable_libtool_lock
=yes
4483 # Some flags need to be propagated to the compiler or linker for good
4487 # Find out which ABI we are using.
4488 echo 'int i;' > conftest.
$ac_ext
4489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4490 (eval $ac_compile) 2>&5
4492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4493 (exit $ac_status); }; then
4494 case `/usr/bin/file conftest.$ac_objext` in
4506 # Find out which ABI we are using.
4507 echo '#line 4507 "configure"' > conftest.
$ac_ext
4508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4509 (eval $ac_compile) 2>&5
4511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4512 (exit $ac_status); }; then
4513 if test "$lt_cv_prog_gnu_ld" = yes; then
4514 case `/usr/bin/file conftest.$ac_objext` in
4516 LD
="${LD-ld} -melf32bsmip"
4519 LD
="${LD-ld} -melf32bmipn32"
4522 LD
="${LD-ld} -melf64bmip"
4526 case `/usr/bin/file conftest.$ac_objext` in
4542 x86_64-
*linux
*|ppc
*-*linux
*|powerpc
*-*linux
*|s390
*-*linux
*|sparc
*-*linux
*)
4543 # Find out which ABI we are using.
4544 echo 'int i;' > conftest.
$ac_ext
4545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4546 (eval $ac_compile) 2>&5
4548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4549 (exit $ac_status); }; then
4550 case `/usr/bin/file conftest.o` in
4554 LD
="${LD-ld} -m elf_i386"
4556 ppc64-
*linux
*|powerpc64-
*linux
*)
4557 LD
="${LD-ld} -m elf32ppclinux"
4560 LD
="${LD-ld} -m elf_s390"
4563 LD
="${LD-ld} -m elf32_sparc"
4570 LD
="${LD-ld} -m elf_x86_64"
4572 ppc
*-*linux
*|powerpc
*-*linux
*)
4573 LD
="${LD-ld} -m elf64ppc"
4576 LD
="${LD-ld} -m elf64_s390"
4579 LD
="${LD-ld} -m elf64_sparc"
4589 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4590 SAVE_CFLAGS
="$CFLAGS"
4591 CFLAGS
="$CFLAGS -belf"
4592 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4593 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4594 if test "${lt_cv_cc_needs_belf+set}" = set; then
4595 echo $ECHO_N "(cached) $ECHO_C" >&6
4598 ac_cpp
='$CPP $CPPFLAGS'
4599 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4600 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4601 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4603 cat >conftest.
$ac_ext <<_ACEOF
4606 cat confdefs.h
>>conftest.
$ac_ext
4607 cat >>conftest.
$ac_ext <<_ACEOF
4608 /* end confdefs.h. */
4618 rm -f conftest.
$ac_objext conftest
$ac_exeext
4619 if { (ac_try
="$ac_link"
4621 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4622 *) ac_try_echo=$ac_try;;
4624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4625 (eval "$ac_link") 2>conftest.er1
4627 grep -v '^ *+' conftest.er1 >conftest.err
4629 cat conftest.err >&5
4630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4631 (exit $ac_status); } && {
4632 test -z "$ac_c_werror_flag" ||
4633 test ! -s conftest.err
4634 } && test -s conftest$ac_exeext &&
4635 $as_test_x conftest$ac_exeext; then
4636 lt_cv_cc_needs_belf=yes
4638 echo "$as_me: failed program was:" >&5
4639 sed 's/^/| /' conftest.$ac_ext >&5
4641 lt_cv_cc_needs_belf=no
4644 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4645 conftest$ac_exeext conftest.$ac_ext
4647 ac_cpp='$CPP $CPPFLAGS'
4648 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4649 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4650 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4653 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4654 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4655 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4656 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4657 CFLAGS="$SAVE_CFLAGS"
4661 # Find out which ABI we are using.
4662 echo 'int i;' > conftest.$ac_ext
4663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4664 (eval $ac_compile) 2>&5
4666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4667 (exit $ac_status); }; then
4668 case `/usr
/bin
/file conftest.o
` in
4670 case $lt_cv_prog_gnu_ld in
4671 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4672 *) LD="${LD-ld} -64" ;;
4683 need_locks="$enable_libtool_lock"
4687 ac_cpp='$CPP $CPPFLAGS'
4688 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4689 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4690 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4691 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4692 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4693 # On Suns, sometimes $CPP names a directory.
4694 if test -n "$CPP" && test -d "$CPP"; then
4697 if test -z "$CPP"; then
4698 if test "${ac_cv_prog_CPP+set}" = set; then
4699 echo $ECHO_N "(cached) $ECHO_C" >&6
4701 # Double quotes because CPP needs to be expanded
4702 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4705 for ac_c_preproc_warn_flag in '' yes
4707 # Use a header file that comes with gcc, so configuring glibc
4708 # with a fresh cross-compiler works.
4709 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4710 # <limits.h> exists even on freestanding compilers.
4711 # On the NeXT, cc -E runs the code through the compiler's parser,
4712 # not just through cpp. "Syntax error" is here to catch this case.
4713 cat >conftest.$ac_ext <<_ACEOF
4716 cat confdefs.h >>conftest.$ac_ext
4717 cat >>conftest.$ac_ext <<_ACEOF
4718 /* end confdefs.h. */
4720 # include <limits.h>
4722 # include <assert.h>
4726 if { (ac_try="$ac_cpp conftest.$ac_ext"
4728 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4729 *) ac_try_echo
=$ac_try;;
4731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4732 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4734 grep -v '^ *+' conftest.er1
>conftest.err
4736 cat conftest.err
>&5
4737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4738 (exit $ac_status); } >/dev
/null
&& {
4739 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4740 test ! -s conftest.err
4744 echo "$as_me: failed program was:" >&5
4745 sed 's/^/| /' conftest.
$ac_ext >&5
4747 # Broken: fails on valid input.
4751 rm -f conftest.err conftest.
$ac_ext
4753 # OK, works on sane cases. Now check whether nonexistent headers
4754 # can be detected and how.
4755 cat >conftest.
$ac_ext <<_ACEOF
4758 cat confdefs.h
>>conftest.
$ac_ext
4759 cat >>conftest.
$ac_ext <<_ACEOF
4760 /* end confdefs.h. */
4761 #include <ac_nonexistent.h>
4763 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4765 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4766 *) ac_try_echo=$ac_try;;
4768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4769 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4771 grep -v '^ *+' conftest.er1 >conftest.err
4773 cat conftest.err >&5
4774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4775 (exit $ac_status); } >/dev/null && {
4776 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4777 test ! -s conftest.err
4779 # Broken: success on invalid input.
4782 echo "$as_me: failed program was:" >&5
4783 sed 's/^/| /' conftest.$ac_ext >&5
4785 # Passes both tests.
4790 rm -f conftest.err conftest.$ac_ext
4793 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4794 rm -f conftest.err conftest.
$ac_ext
4795 if $ac_preproc_ok; then
4807 { echo "$as_me:$LINENO: result: $CPP" >&5
4808 echo "${ECHO_T}$CPP" >&6; }
4810 for ac_c_preproc_warn_flag
in '' yes
4812 # Use a header file that comes with gcc, so configuring glibc
4813 # with a fresh cross-compiler works.
4814 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4815 # <limits.h> exists even on freestanding compilers.
4816 # On the NeXT, cc -E runs the code through the compiler's parser,
4817 # not just through cpp. "Syntax error" is here to catch this case.
4818 cat >conftest.
$ac_ext <<_ACEOF
4821 cat confdefs.h
>>conftest.
$ac_ext
4822 cat >>conftest.
$ac_ext <<_ACEOF
4823 /* end confdefs.h. */
4825 # include <limits.h>
4827 # include <assert.h>
4831 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4833 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4834 *) ac_try_echo=$ac_try;;
4836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4837 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4839 grep -v '^ *+' conftest.er1 >conftest.err
4841 cat conftest.err >&5
4842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4843 (exit $ac_status); } >/dev/null && {
4844 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4845 test ! -s conftest.err
4849 echo "$as_me: failed program was:" >&5
4850 sed 's/^/| /' conftest.$ac_ext >&5
4852 # Broken: fails on valid input.
4856 rm -f conftest.err conftest.$ac_ext
4858 # OK, works on sane cases. Now check whether nonexistent headers
4859 # can be detected and how.
4860 cat >conftest.$ac_ext <<_ACEOF
4863 cat confdefs.h >>conftest.$ac_ext
4864 cat >>conftest.$ac_ext <<_ACEOF
4865 /* end confdefs.h. */
4866 #include <ac_nonexistent.h>
4868 if { (ac_try="$ac_cpp conftest.$ac_ext"
4870 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4871 *) ac_try_echo
=$ac_try;;
4873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4874 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4876 grep -v '^ *+' conftest.er1
>conftest.err
4878 cat conftest.err
>&5
4879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4880 (exit $ac_status); } >/dev
/null
&& {
4881 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4882 test ! -s conftest.err
4884 # Broken: success on invalid input.
4887 echo "$as_me: failed program was:" >&5
4888 sed 's/^/| /' conftest.
$ac_ext >&5
4890 # Passes both tests.
4895 rm -f conftest.err conftest.
$ac_ext
4898 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4899 rm -f conftest.err conftest.
$ac_ext
4900 if $ac_preproc_ok; then
4903 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4904 See \`config.log' for more details." >&5
4905 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4906 See \`config.log' for more details." >&2;}
4907 { (exit 1); exit 1; }; }
4911 ac_cpp
='$CPP $CPPFLAGS'
4912 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4913 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4914 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4917 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4918 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4919 if test "${ac_cv_header_stdc+set}" = set; then
4920 echo $ECHO_N "(cached) $ECHO_C" >&6
4922 cat >conftest.
$ac_ext <<_ACEOF
4925 cat confdefs.h
>>conftest.
$ac_ext
4926 cat >>conftest.
$ac_ext <<_ACEOF
4927 /* end confdefs.h. */
4941 rm -f conftest.
$ac_objext
4942 if { (ac_try
="$ac_compile"
4944 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4945 *) ac_try_echo=$ac_try;;
4947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4948 (eval "$ac_compile") 2>conftest.er1
4950 grep -v '^ *+' conftest.er1 >conftest.err
4952 cat conftest.err >&5
4953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4954 (exit $ac_status); } && {
4955 test -z "$ac_c_werror_flag" ||
4956 test ! -s conftest.err
4957 } && test -s conftest.$ac_objext; then
4958 ac_cv_header_stdc=yes
4960 echo "$as_me: failed program was:" >&5
4961 sed 's/^/| /' conftest.$ac_ext >&5
4963 ac_cv_header_stdc=no
4966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4968 if test $ac_cv_header_stdc = yes; then
4969 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4970 cat >conftest.$ac_ext <<_ACEOF
4973 cat confdefs.h >>conftest.$ac_ext
4974 cat >>conftest.$ac_ext <<_ACEOF
4975 /* end confdefs.h. */
4979 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4980 $EGREP "memchr" >/dev/null 2>&1; then
4983 ac_cv_header_stdc=no
4989 if test $ac_cv_header_stdc = yes; then
4990 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4991 cat >conftest.$ac_ext <<_ACEOF
4994 cat confdefs.h >>conftest.$ac_ext
4995 cat >>conftest.$ac_ext <<_ACEOF
4996 /* end confdefs.h. */
5000 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5001 $EGREP "free" >/dev/null 2>&1; then
5004 ac_cv_header_stdc=no
5010 if test $ac_cv_header_stdc = yes; then
5011 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5012 if test "$cross_compiling" = yes; then
5015 cat >conftest.$ac_ext <<_ACEOF
5018 cat confdefs.h >>conftest.$ac_ext
5019 cat >>conftest.$ac_ext <<_ACEOF
5020 /* end confdefs.h. */
5023 #if ((' ' & 0x0FF) == 0x020)
5024 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5025 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5027 # define ISLOWER(c) \
5028 (('a' <= (c) && (c) <= 'i') \
5029 || ('j' <= (c) && (c) <= 'r') \
5030 || ('s' <= (c) && (c) <= 'z'))
5031 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5034 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5039 for (i = 0; i < 256; i++)
5040 if (XOR (islower (i), ISLOWER (i))
5041 || toupper (i) != TOUPPER (i))
5046 rm -f conftest$ac_exeext
5047 if { (ac_try="$ac_link"
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_link") 2>&5
5055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5056 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5057 { (case "(($ac_try" in
5058 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5059 *) ac_try_echo=$ac_try;;
5061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5062 (eval "$ac_try") 2>&5
5064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5065 (exit $ac_status); }; }; then
5068 echo "$as_me: program exited with status $ac_status" >&5
5069 echo "$as_me: failed program was:" >&5
5070 sed 's/^/| /' conftest.$ac_ext >&5
5073 ac_cv_header_stdc=no
5075 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5081 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5082 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5083 if test $ac_cv_header_stdc = yes; then
5085 cat >>confdefs.h <<\_ACEOF
5086 #define STDC_HEADERS 1
5091 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5101 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5102 inttypes.h stdint.h unistd.h
5104 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
5105 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5106 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5107 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5108 echo $ECHO_N "(cached) $ECHO_C" >&6
5110 cat >conftest.$ac_ext <<_ACEOF
5113 cat confdefs.h >>conftest.$ac_ext
5114 cat >>conftest.$ac_ext <<_ACEOF
5115 /* end confdefs.h. */
5116 $ac_includes_default
5118 #include <$ac_header>
5120 rm -f conftest.$ac_objext
5121 if { (ac_try="$ac_compile"
5123 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5124 *) ac_try_echo
=$ac_try;;
5126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5127 (eval "$ac_compile") 2>conftest.er1
5129 grep -v '^ *+' conftest.er1
>conftest.err
5131 cat conftest.err
>&5
5132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5133 (exit $ac_status); } && {
5134 test -z "$ac_c_werror_flag" ||
5135 test ! -s conftest.err
5136 } && test -s conftest.
$ac_objext; then
5137 eval "$as_ac_Header=yes"
5139 echo "$as_me: failed program was:" >&5
5140 sed 's/^/| /' conftest.
$ac_ext >&5
5142 eval "$as_ac_Header=no"
5145 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5147 ac_res
=`eval echo '${'$as_ac_Header'}'`
5148 { echo "$as_me:$LINENO: result: $ac_res" >&5
5149 echo "${ECHO_T}$ac_res" >&6; }
5150 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5151 cat >>confdefs.h
<<_ACEOF
5152 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5161 for ac_header
in dlfcn.h
5163 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5164 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5165 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5166 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5167 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5168 echo $ECHO_N "(cached) $ECHO_C" >&6
5170 ac_res
=`eval echo '${'$as_ac_Header'}'`
5171 { echo "$as_me:$LINENO: result: $ac_res" >&5
5172 echo "${ECHO_T}$ac_res" >&6; }
5174 # Is the header compilable?
5175 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5176 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5177 cat >conftest.
$ac_ext <<_ACEOF
5180 cat confdefs.h
>>conftest.
$ac_ext
5181 cat >>conftest.
$ac_ext <<_ACEOF
5182 /* end confdefs.h. */
5183 $ac_includes_default
5184 #include <$ac_header>
5186 rm -f conftest.
$ac_objext
5187 if { (ac_try
="$ac_compile"
5189 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5190 *) ac_try_echo=$ac_try;;
5192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5193 (eval "$ac_compile") 2>conftest.er1
5195 grep -v '^ *+' conftest.er1 >conftest.err
5197 cat conftest.err >&5
5198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5199 (exit $ac_status); } && {
5200 test -z "$ac_c_werror_flag" ||
5201 test ! -s conftest.err
5202 } && test -s conftest.$ac_objext; then
5203 ac_header_compiler=yes
5205 echo "$as_me: failed program was:" >&5
5206 sed 's/^/| /' conftest.$ac_ext >&5
5208 ac_header_compiler=no
5211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5212 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5213 echo "${ECHO_T}$ac_header_compiler" >&6; }
5215 # Is the header present?
5216 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5217 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5218 cat >conftest.$ac_ext <<_ACEOF
5221 cat confdefs.h >>conftest.$ac_ext
5222 cat >>conftest.$ac_ext <<_ACEOF
5223 /* end confdefs.h. */
5224 #include <$ac_header>
5226 if { (ac_try="$ac_cpp conftest.$ac_ext"
5228 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5229 *) ac_try_echo
=$ac_try;;
5231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5232 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5234 grep -v '^ *+' conftest.er1
>conftest.err
5236 cat conftest.err
>&5
5237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5238 (exit $ac_status); } >/dev
/null
&& {
5239 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5240 test ! -s conftest.err
5242 ac_header_preproc
=yes
5244 echo "$as_me: failed program was:" >&5
5245 sed 's/^/| /' conftest.
$ac_ext >&5
5247 ac_header_preproc
=no
5250 rm -f conftest.err conftest.
$ac_ext
5251 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5252 echo "${ECHO_T}$ac_header_preproc" >&6; }
5254 # So? What about this header?
5255 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5257 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5258 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5259 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5260 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5261 ac_header_preproc
=yes
5264 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5265 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5266 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5267 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5268 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5269 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5270 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5271 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5272 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5273 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5274 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5275 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5279 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5280 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5281 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5282 echo $ECHO_N "(cached) $ECHO_C" >&6
5284 eval "$as_ac_Header=\$ac_header_preproc"
5286 ac_res
=`eval echo '${'$as_ac_Header'}'`
5287 { echo "$as_me:$LINENO: result: $ac_res" >&5
5288 echo "${ECHO_T}$ac_res" >&6; }
5291 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5292 cat >>confdefs.h
<<_ACEOF
5293 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5301 ac_cpp
='$CXXCPP $CPPFLAGS'
5302 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5303 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5304 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5305 if test -z "$CXX"; then
5306 if test -n "$CCC"; then
5309 if test -n "$ac_tool_prefix"; then
5310 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
5312 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5313 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
5314 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5315 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5316 if test "${ac_cv_prog_CXX+set}" = set; then
5317 echo $ECHO_N "(cached) $ECHO_C" >&6
5319 if test -n "$CXX"; then
5320 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
5322 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5326 test -z "$as_dir" && as_dir
=.
5327 for ac_exec_ext
in '' $ac_executable_extensions; do
5328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5329 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
5330 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5340 if test -n "$CXX"; then
5341 { echo "$as_me:$LINENO: result: $CXX" >&5
5342 echo "${ECHO_T}$CXX" >&6; }
5344 { echo "$as_me:$LINENO: result: no" >&5
5345 echo "${ECHO_T}no" >&6; }
5349 test -n "$CXX" && break
5352 if test -z "$CXX"; then
5354 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
5356 # Extract the first word of "$ac_prog", so it can be a program name with args.
5357 set dummy
$ac_prog; ac_word
=$2
5358 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5359 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5360 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5361 echo $ECHO_N "(cached) $ECHO_C" >&6
5363 if test -n "$ac_ct_CXX"; then
5364 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
5366 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5370 test -z "$as_dir" && as_dir
=.
5371 for ac_exec_ext
in '' $ac_executable_extensions; do
5372 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5373 ac_cv_prog_ac_ct_CXX
="$ac_prog"
5374 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5383 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
5384 if test -n "$ac_ct_CXX"; then
5385 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5386 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5388 { echo "$as_me:$LINENO: result: no" >&5
5389 echo "${ECHO_T}no" >&6; }
5393 test -n "$ac_ct_CXX" && break
5396 if test "x$ac_ct_CXX" = x
; then
5399 case $cross_compiling:$ac_tool_warned in
5401 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5402 whose name does not start with the host triplet. If you think this
5403 configuration is useful to you, please write to autoconf@gnu.org." >&5
5404 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5405 whose name does not start with the host triplet. If you think this
5406 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5407 ac_tool_warned
=yes ;;
5415 # Provide some information about the compiler.
5416 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5417 ac_compiler
=`set X $ac_compile; echo $2`
5418 { (ac_try
="$ac_compiler --version >&5"
5420 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5421 *) ac_try_echo=$ac_try;;
5423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5424 (eval "$ac_compiler --version >&5") 2>&5
5426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5427 (exit $ac_status); }
5428 { (ac_try="$ac_compiler -v >&5"
5430 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5431 *) ac_try_echo
=$ac_try;;
5433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5434 (eval "$ac_compiler -v >&5") 2>&5
5436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5437 (exit $ac_status); }
5438 { (ac_try
="$ac_compiler -V >&5"
5440 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5441 *) ac_try_echo=$ac_try;;
5443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5444 (eval "$ac_compiler -V >&5") 2>&5
5446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5447 (exit $ac_status); }
5449 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5450 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5451 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5452 echo $ECHO_N "(cached) $ECHO_C" >&6
5454 cat >conftest.$ac_ext <<_ACEOF
5457 cat confdefs.h >>conftest.$ac_ext
5458 cat >>conftest.$ac_ext <<_ACEOF
5459 /* end confdefs.h. */
5472 rm -f conftest.$ac_objext
5473 if { (ac_try="$ac_compile"
5475 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5476 *) ac_try_echo
=$ac_try;;
5478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5479 (eval "$ac_compile") 2>conftest.er1
5481 grep -v '^ *+' conftest.er1
>conftest.err
5483 cat conftest.err
>&5
5484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5485 (exit $ac_status); } && {
5486 test -z "$ac_cxx_werror_flag" ||
5487 test ! -s conftest.err
5488 } && test -s conftest.
$ac_objext; then
5491 echo "$as_me: failed program was:" >&5
5492 sed 's/^/| /' conftest.
$ac_ext >&5
5497 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5498 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
5501 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5502 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5503 GXX
=`test $ac_compiler_gnu = yes && echo yes`
5504 ac_test_CXXFLAGS
=${CXXFLAGS+set}
5505 ac_save_CXXFLAGS
=$CXXFLAGS
5506 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5507 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5508 if test "${ac_cv_prog_cxx_g+set}" = set; then
5509 echo $ECHO_N "(cached) $ECHO_C" >&6
5511 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
5512 ac_cxx_werror_flag
=yes
5515 cat >conftest.
$ac_ext <<_ACEOF
5518 cat confdefs.h
>>conftest.
$ac_ext
5519 cat >>conftest.
$ac_ext <<_ACEOF
5520 /* end confdefs.h. */
5530 rm -f conftest.
$ac_objext
5531 if { (ac_try
="$ac_compile"
5533 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5534 *) ac_try_echo=$ac_try;;
5536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5537 (eval "$ac_compile") 2>conftest.er1
5539 grep -v '^ *+' conftest.er1 >conftest.err
5541 cat conftest.err >&5
5542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5543 (exit $ac_status); } && {
5544 test -z "$ac_cxx_werror_flag" ||
5545 test ! -s conftest.err
5546 } && test -s conftest.$ac_objext; then
5547 ac_cv_prog_cxx_g=yes
5549 echo "$as_me: failed program was:" >&5
5550 sed 's/^/| /' conftest.$ac_ext >&5
5553 cat >conftest.$ac_ext <<_ACEOF
5556 cat confdefs.h >>conftest.$ac_ext
5557 cat >>conftest.$ac_ext <<_ACEOF
5558 /* end confdefs.h. */
5568 rm -f conftest.$ac_objext
5569 if { (ac_try="$ac_compile"
5571 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5572 *) ac_try_echo
=$ac_try;;
5574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5575 (eval "$ac_compile") 2>conftest.er1
5577 grep -v '^ *+' conftest.er1
>conftest.err
5579 cat conftest.err
>&5
5580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5581 (exit $ac_status); } && {
5582 test -z "$ac_cxx_werror_flag" ||
5583 test ! -s conftest.err
5584 } && test -s conftest.
$ac_objext; then
5587 echo "$as_me: failed program was:" >&5
5588 sed 's/^/| /' conftest.
$ac_ext >&5
5590 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5592 cat >conftest.
$ac_ext <<_ACEOF
5595 cat confdefs.h
>>conftest.
$ac_ext
5596 cat >>conftest.
$ac_ext <<_ACEOF
5597 /* end confdefs.h. */
5607 rm -f conftest.
$ac_objext
5608 if { (ac_try
="$ac_compile"
5610 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5611 *) ac_try_echo=$ac_try;;
5613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5614 (eval "$ac_compile") 2>conftest.er1
5616 grep -v '^ *+' conftest.er1 >conftest.err
5618 cat conftest.err >&5
5619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5620 (exit $ac_status); } && {
5621 test -z "$ac_cxx_werror_flag" ||
5622 test ! -s conftest.err
5623 } && test -s conftest.$ac_objext; then
5624 ac_cv_prog_cxx_g=yes
5626 echo "$as_me: failed program was:" >&5
5627 sed 's/^/| /' conftest.$ac_ext >&5
5632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5639 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5641 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5642 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5643 if test "$ac_test_CXXFLAGS" = set; then
5644 CXXFLAGS=$ac_save_CXXFLAGS
5645 elif test $ac_cv_prog_cxx_g = yes; then
5646 if test "$GXX" = yes; then
5652 if test "$GXX" = yes; then
5659 ac_cpp='$CXXCPP $CPPFLAGS'
5660 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5661 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5662 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5664 depcc="$CXX" am_compiler_list=
5666 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5667 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5668 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5669 echo $ECHO_N "(cached) $ECHO_C" >&6
5671 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5672 # We make a subdir and do the tests there. Otherwise we can end up
5673 # making bogus files that we don't know about and never remove. For
5674 # instance it was reported that on HP-UX the gcc test will end up
5675 # making a dummy file named `D
' -- because `-MD' means
`put the output
5678 # Copy depcomp to subdir because otherwise we won't find it if we're
5679 # using a relative directory.
5680 cp "$am_depcomp" conftest.dir
5682 # We will build objects and dependencies in a subdirectory because
5683 # it helps to detect inapplicable dependency modes. For instance
5684 # both Tru64's cc and ICC support -MD to output dependencies as a
5685 # side effect of compilation, but ICC will put the dependencies in
5686 # the current directory while Tru64 will put them in the object
5690 am_cv_CXX_dependencies_compiler_type=none
5691 if test "$am_compiler_list" = ""; then
5692 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < .
/depcomp
`
5694 for depmode in $am_compiler_list; do
5695 # Setup a source with many dependencies, because some compilers
5696 # like to wrap large dependency lists on column 80 (with \), and
5697 # we should not choose a depcomp mode which is confused by this.
5699 # We need to recreate these files for each test, as the compiler may
5700 # overwrite some of them when testing with obscure command lines.
5701 # This happens at least with the AIX C compiler.
5703 for i in 1 2 3 4 5 6; do
5704 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5705 # Using `: > sub
/conftst
$i.h
' creates only sub/conftst1.h with
5706 # Solaris 8's
{/usr
,}/bin
/sh.
5707 touch sub
/conftst
$i.h
5709 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5713 # after this tag, mechanisms are not by side-effect, so they'll
5714 # only be used when explicitly requested
5715 if test "x$enable_dependency_tracking" = xyes
; then
5723 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5724 # mode. It turns out that the SunPro C++ compiler does not properly
5725 # handle `-M -o', and we need to detect this.
5726 if depmode
=$depmode \
5727 source=sub
/conftest.c object
=sub
/conftest.
${OBJEXT-o} \
5728 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
5729 $SHELL .
/depcomp
$depcc -c -o sub
/conftest.
${OBJEXT-o} sub
/conftest.c \
5730 >/dev
/null
2>conftest.err
&&
5731 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5732 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5733 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
> /dev
/null
2>&1 &&
5734 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
5735 # icc doesn't choke on unknown options, it will just issue warnings
5736 # or remarks (even with -Werror). So we grep stderr for any message
5737 # that says an option was ignored or not supported.
5738 # When given -MP, icc 7.0 and 7.1 complain thusly:
5739 # icc: Command line warning: ignoring option '-M'; no argument required
5740 # The diagnosis changed in icc 8.0:
5741 # icc: Command line remark: option '-MP' not supported
5742 if (grep 'ignoring option' conftest.err ||
5743 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
5744 am_cv_CXX_dependencies_compiler_type
=$depmode
5753 am_cv_CXX_dependencies_compiler_type
=none
5757 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5758 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5759 CXXDEPMODE
=depmode
=$am_cv_CXX_dependencies_compiler_type
5762 test "x$enable_dependency_tracking" != xno \
5763 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3
; then
5764 am__fastdepCXX_TRUE
=
5765 am__fastdepCXX_FALSE
='#'
5767 am__fastdepCXX_TRUE
='#'
5768 am__fastdepCXX_FALSE
=
5774 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5775 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5776 (test "X$CXX" != "Xg++"))) ; then
5778 ac_cpp
='$CXXCPP $CPPFLAGS'
5779 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5780 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5781 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5782 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5783 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5784 if test -z "$CXXCPP"; then
5785 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5786 echo $ECHO_N "(cached) $ECHO_C" >&6
5788 # Double quotes because CXXCPP needs to be expanded
5789 for CXXCPP
in "$CXX -E" "/lib/cpp"
5792 for ac_cxx_preproc_warn_flag
in '' yes
5794 # Use a header file that comes with gcc, so configuring glibc
5795 # with a fresh cross-compiler works.
5796 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5797 # <limits.h> exists even on freestanding compilers.
5798 # On the NeXT, cc -E runs the code through the compiler's parser,
5799 # not just through cpp. "Syntax error" is here to catch this case.
5800 cat >conftest.
$ac_ext <<_ACEOF
5803 cat confdefs.h
>>conftest.
$ac_ext
5804 cat >>conftest.
$ac_ext <<_ACEOF
5805 /* end confdefs.h. */
5807 # include <limits.h>
5809 # include <assert.h>
5813 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5815 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5816 *) ac_try_echo=$ac_try;;
5818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5819 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5821 grep -v '^ *+' conftest.er1 >conftest.err
5823 cat conftest.err >&5
5824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5825 (exit $ac_status); } >/dev/null && {
5826 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5827 test ! -s conftest.err
5831 echo "$as_me: failed program was:" >&5
5832 sed 's/^/| /' conftest.$ac_ext >&5
5834 # Broken: fails on valid input.
5838 rm -f conftest.err conftest.$ac_ext
5840 # OK, works on sane cases. Now check whether nonexistent headers
5841 # can be detected and how.
5842 cat >conftest.$ac_ext <<_ACEOF
5845 cat confdefs.h >>conftest.$ac_ext
5846 cat >>conftest.$ac_ext <<_ACEOF
5847 /* end confdefs.h. */
5848 #include <ac_nonexistent.h>
5850 if { (ac_try="$ac_cpp conftest.$ac_ext"
5852 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5853 *) ac_try_echo
=$ac_try;;
5855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5856 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5858 grep -v '^ *+' conftest.er1
>conftest.err
5860 cat conftest.err
>&5
5861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5862 (exit $ac_status); } >/dev
/null
&& {
5863 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5864 test ! -s conftest.err
5866 # Broken: success on invalid input.
5869 echo "$as_me: failed program was:" >&5
5870 sed 's/^/| /' conftest.
$ac_ext >&5
5872 # Passes both tests.
5877 rm -f conftest.err conftest.
$ac_ext
5880 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5881 rm -f conftest.err conftest.
$ac_ext
5882 if $ac_preproc_ok; then
5887 ac_cv_prog_CXXCPP
=$CXXCPP
5890 CXXCPP
=$ac_cv_prog_CXXCPP
5892 ac_cv_prog_CXXCPP
=$CXXCPP
5894 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5895 echo "${ECHO_T}$CXXCPP" >&6; }
5897 for ac_cxx_preproc_warn_flag
in '' yes
5899 # Use a header file that comes with gcc, so configuring glibc
5900 # with a fresh cross-compiler works.
5901 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5902 # <limits.h> exists even on freestanding compilers.
5903 # On the NeXT, cc -E runs the code through the compiler's parser,
5904 # not just through cpp. "Syntax error" is here to catch this case.
5905 cat >conftest.
$ac_ext <<_ACEOF
5908 cat confdefs.h
>>conftest.
$ac_ext
5909 cat >>conftest.
$ac_ext <<_ACEOF
5910 /* end confdefs.h. */
5912 # include <limits.h>
5914 # include <assert.h>
5918 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5920 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5921 *) ac_try_echo=$ac_try;;
5923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5924 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5926 grep -v '^ *+' conftest.er1 >conftest.err
5928 cat conftest.err >&5
5929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5930 (exit $ac_status); } >/dev/null && {
5931 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5932 test ! -s conftest.err
5936 echo "$as_me: failed program was:" >&5
5937 sed 's/^/| /' conftest.$ac_ext >&5
5939 # Broken: fails on valid input.
5943 rm -f conftest.err conftest.$ac_ext
5945 # OK, works on sane cases. Now check whether nonexistent headers
5946 # can be detected and how.
5947 cat >conftest.$ac_ext <<_ACEOF
5950 cat confdefs.h >>conftest.$ac_ext
5951 cat >>conftest.$ac_ext <<_ACEOF
5952 /* end confdefs.h. */
5953 #include <ac_nonexistent.h>
5955 if { (ac_try="$ac_cpp conftest.$ac_ext"
5957 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5958 *) ac_try_echo
=$ac_try;;
5960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5961 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5963 grep -v '^ *+' conftest.er1
>conftest.err
5965 cat conftest.err
>&5
5966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5967 (exit $ac_status); } >/dev
/null
&& {
5968 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5969 test ! -s conftest.err
5971 # Broken: success on invalid input.
5974 echo "$as_me: failed program was:" >&5
5975 sed 's/^/| /' conftest.
$ac_ext >&5
5977 # Passes both tests.
5982 rm -f conftest.err conftest.
$ac_ext
5985 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5986 rm -f conftest.err conftest.
$ac_ext
5987 if $ac_preproc_ok; then
5990 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5991 See \`config.log' for more details." >&5
5992 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5993 See \`config.log' for more details." >&2;}
5994 { (exit 1); exit 1; }; }
5998 ac_cpp
='$CXXCPP $CPPFLAGS'
5999 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6000 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6001 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6007 ac_compile
='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6008 ac_link
='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6009 ac_compiler_gnu
=$ac_cv_f77_compiler_gnu
6010 if test -n "$ac_tool_prefix"; then
6011 for ac_prog
in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
6013 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6014 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
6015 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6016 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6017 if test "${ac_cv_prog_F77+set}" = set; then
6018 echo $ECHO_N "(cached) $ECHO_C" >&6
6020 if test -n "$F77"; then
6021 ac_cv_prog_F77
="$F77" # Let the user override the test.
6023 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6027 test -z "$as_dir" && as_dir
=.
6028 for ac_exec_ext
in '' $ac_executable_extensions; do
6029 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6030 ac_cv_prog_F77
="$ac_tool_prefix$ac_prog"
6031 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6041 if test -n "$F77"; then
6042 { echo "$as_me:$LINENO: result: $F77" >&5
6043 echo "${ECHO_T}$F77" >&6; }
6045 { echo "$as_me:$LINENO: result: no" >&5
6046 echo "${ECHO_T}no" >&6; }
6050 test -n "$F77" && break
6053 if test -z "$F77"; then
6055 for ac_prog
in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
6057 # Extract the first word of "$ac_prog", so it can be a program name with args.
6058 set dummy
$ac_prog; ac_word
=$2
6059 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6060 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6061 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6062 echo $ECHO_N "(cached) $ECHO_C" >&6
6064 if test -n "$ac_ct_F77"; then
6065 ac_cv_prog_ac_ct_F77
="$ac_ct_F77" # Let the user override the test.
6067 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6071 test -z "$as_dir" && as_dir
=.
6072 for ac_exec_ext
in '' $ac_executable_extensions; do
6073 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6074 ac_cv_prog_ac_ct_F77
="$ac_prog"
6075 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6084 ac_ct_F77
=$ac_cv_prog_ac_ct_F77
6085 if test -n "$ac_ct_F77"; then
6086 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6087 echo "${ECHO_T}$ac_ct_F77" >&6; }
6089 { echo "$as_me:$LINENO: result: no" >&5
6090 echo "${ECHO_T}no" >&6; }
6094 test -n "$ac_ct_F77" && break
6097 if test "x$ac_ct_F77" = x
; then
6100 case $cross_compiling:$ac_tool_warned in
6102 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6103 whose name does not start with the host triplet. If you think this
6104 configuration is useful to you, please write to autoconf@gnu.org." >&5
6105 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6106 whose name does not start with the host triplet. If you think this
6107 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6108 ac_tool_warned
=yes ;;
6115 # Provide some information about the compiler.
6116 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6117 ac_compiler
=`set X $ac_compile; echo $2`
6118 { (ac_try
="$ac_compiler --version >&5"
6120 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6121 *) ac_try_echo=$ac_try;;
6123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6124 (eval "$ac_compiler --version >&5") 2>&5
6126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6127 (exit $ac_status); }
6128 { (ac_try="$ac_compiler -v >&5"
6130 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6131 *) ac_try_echo
=$ac_try;;
6133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6134 (eval "$ac_compiler -v >&5") 2>&5
6136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6137 (exit $ac_status); }
6138 { (ac_try
="$ac_compiler -V >&5"
6140 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6141 *) ac_try_echo=$ac_try;;
6143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6144 (eval "$ac_compiler -V >&5") 2>&5
6146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6147 (exit $ac_status); }
6150 # If we don't use `.F
' as extension, the preprocessor is not run on the
6151 # input file. (Note that this only needs to work for GNU compilers.)
6154 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6155 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6156 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6157 echo $ECHO_N "(cached) $ECHO_C" >&6
6159 cat >conftest.$ac_ext <<_ACEOF
6167 rm -f conftest.$ac_objext
6168 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
6176 grep -v '^
*+' conftest.er1 >conftest.err
6178 cat conftest.err >&5
6179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6180 (exit $ac_status); } && {
6181 test -z "$ac_f77_werror_flag" ||
6182 test ! -s conftest.err
6183 } && test -s conftest.$ac_objext; then
6186 echo "$as_me: failed program was:" >&5
6187 sed 's
/^
/|
/' conftest.$ac_ext >&5
6192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6193 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6196 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6197 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6199 ac_test_FFLAGS=${FFLAGS+set}
6200 ac_save_FFLAGS=$FFLAGS
6202 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6203 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6204 if test "${ac_cv_prog_f77_g+set}" = set; then
6205 echo $ECHO_N "(cached) $ECHO_C" >&6
6208 cat >conftest.$ac_ext <<_ACEOF
6213 rm -f conftest.$ac_objext
6214 if { (ac_try="$ac_compile"
6216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6217 *) ac_try_echo=$ac_try;;
6219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6220 (eval "$ac_compile") 2>conftest.er1
6222 grep -v '^
*+' conftest.er1 >conftest.err
6224 cat conftest.err >&5
6225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6226 (exit $ac_status); } && {
6227 test -z "$ac_f77_werror_flag" ||
6228 test ! -s conftest.err
6229 } && test -s conftest.$ac_objext; then
6230 ac_cv_prog_f77_g=yes
6232 echo "$as_me: failed program was:" >&5
6233 sed 's
/^
/|
/' conftest.$ac_ext >&5
6238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6241 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6242 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6243 if test "$ac_test_FFLAGS" = set; then
6244 FFLAGS=$ac_save_FFLAGS
6245 elif test $ac_cv_prog_f77_g = yes; then
6246 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6252 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6259 G77=`test $ac_compiler_gnu = yes && echo yes`
6261 ac_cpp='$CPP $CPPFLAGS'
6262 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
6263 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
6264 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6268 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works
for C compilers
!
6270 # find the maximum length of command line arguments
6271 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6272 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6273 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6274 echo $ECHO_N "(cached) $ECHO_C" >&6
6281 # On DJGPP, this test can blow up pretty badly due to problems in libc
6282 # (any single argument exceeding 2000 bytes causes a buffer overrun
6283 # during glob expansion). Even if it were fixed, the result of this
6284 # check would be larger than it should be.
6285 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
6289 # Under GNU Hurd, this test is not required because there is
6290 # no limit to the length of command line arguments.
6291 # Libtool will interpret -1 as no limit whatsoever
6292 lt_cv_sys_max_cmd_len
=-1;
6296 # On Win9x/ME, this test blows up -- it succeeds, but takes
6297 # about 5 minutes as the teststring grows exponentially.
6298 # Worse, since 9x/ME are not pre-emptively multitasking,
6299 # you end up with a "frozen" computer, even though with patience
6300 # the test eventually succeeds (with a max line length of 256k).
6301 # Instead, let's just punt: use the minimum linelength reported by
6302 # all of the supported platforms: 8192 (on NT/2K/XP).
6303 lt_cv_sys_max_cmd_len
=8192;
6307 # On AmigaOS with pdksh, this test takes hours, literally.
6308 # So we just punt and use a minimum line length of 8192.
6309 lt_cv_sys_max_cmd_len
=8192;
6312 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
6313 # This has been around since 386BSD, at least. Likely further.
6314 if test -x /sbin
/sysctl
; then
6315 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
6316 elif test -x /usr
/sbin
/sysctl
; then
6317 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
6319 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
6321 # And add a safety zone
6322 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
6323 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
6327 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6328 lt_cv_sys_max_cmd_len
=196608
6332 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6333 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6334 # nice to cause kernel panics so lets avoid the loop below.
6335 # First set a reasonable default.
6336 lt_cv_sys_max_cmd_len
=16384
6338 if test -x /sbin
/sysconfig
; then
6339 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6340 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
6345 lt_cv_sys_max_cmd_len
=102400
6347 sysv5
* | sco5v6
* | sysv4.2uw2
*)
6348 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6349 if test -n "$kargmax"; then
6350 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
6352 lt_cv_sys_max_cmd_len
=32768
6356 # If test is not a shell built-in, we'll probably end up computing a
6357 # maximum length that is only half of the actual maximum length, but
6359 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
6360 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6361 = "XX$teststring") >/dev
/null
2>&1 &&
6362 new_result
=`expr "X$teststring" : ".*" 2>&1` &&
6363 lt_cv_sys_max_cmd_len
=$new_result &&
6364 test $i != 17 # 1/2 MB should be enough
6367 teststring
=$teststring$teststring
6370 # Add a significant safety factor because C++ compilers can tack on massive
6371 # amounts of additional arguments before passing them to the linker.
6372 # It appears as though 1/2 is a usable value.
6373 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
6379 if test -n $lt_cv_sys_max_cmd_len ; then
6380 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6381 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6383 { echo "$as_me:$LINENO: result: none" >&5
6384 echo "${ECHO_T}none" >&6; }
6390 # Check for command to grab the raw symbol name followed by C symbol from nm.
6391 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6392 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6393 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6394 echo $ECHO_N "(cached) $ECHO_C" >&6
6397 # These are sane defaults that work on at least a few old systems.
6398 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6400 # Character class describing NM global symbol codes.
6401 symcode
='[BCDEGRST]'
6403 # Regexp to match symbols that can be accessed directly from C.
6404 sympat
='\([_A-Za-z][_A-Za-z0-9]*\)'
6406 # Transform an extracted symbol line into a proper C declaration
6407 lt_cv_sys_global_symbol_to_cdecl
="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6409 # Transform an extracted symbol line into symbol name and symbol address
6410 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'"
6412 # Define system-specific variables.
6417 cygwin
* | mingw
* | pw32
*)
6418 symcode
='[ABCDGISTW]'
6420 hpux
*) # Its linker distinguishes data from code symbols
6421 if test "$host_cpu" = ia64
; then
6422 symcode
='[ABCDEGRST]'
6424 lt_cv_sys_global_symbol_to_cdecl
="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6425 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'"
6427 linux
* | k
*bsd
*-gnu)
6428 if test "$host_cpu" = ia64
; then
6429 symcode
='[ABCDGIRSTW]'
6430 lt_cv_sys_global_symbol_to_cdecl
="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6431 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'"
6435 symcode
='[BCDEGRST]'
6438 symcode
='[BCDEGQRST]'
6449 sysv5
* | sco5v6
* | unixware
* | OpenUNIX
*)
6457 # Handle CRLF in mingw tool chain
6461 opt_cr
=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6465 # If we're using GNU nm, then use its standard symbol codes.
6466 case `$NM -V 2>&1` in
6467 *GNU
* |
*'with BFD'*)
6468 symcode
='[ABCDGIRSTW]' ;;
6471 # Try without a prefix undercore, then with it.
6472 for ac_symprfx
in "" "_"; do
6474 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6475 symxfrm
="\\1 $ac_symprfx\\2 \\2"
6477 # Write the raw and C identifiers.
6478 lt_cv_sys_global_symbol_pipe
="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6480 # Check to see that the pipe works correctly.
6484 cat > conftest.
$ac_ext <<EOF
6489 void nm_test_func(){}
6493 int main(){nm_test_var='a';nm_test_func();return(0);}
6496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6497 (eval $ac_compile) 2>&5
6499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6500 (exit $ac_status); }; then
6501 # Now try to grab the symbols.
6503 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6504 (eval $NM conftest.
$ac_objext \|
$lt_cv_sys_global_symbol_pipe \
> $nlist) 2>&5
6506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6507 (exit $ac_status); } && test -s "$nlist"; then
6508 # Try sorting and uniquifying the output.
6509 if sort "$nlist" |
uniq > "$nlist"T
; then
6510 mv -f "$nlist"T
"$nlist"
6515 # Make sure that we snagged all the symbols we need.
6516 if grep ' nm_test_var$' "$nlist" >/dev
/null
; then
6517 if grep ' nm_test_func$' "$nlist" >/dev
/null
; then
6518 cat <<EOF > conftest.$ac_ext
6524 # Now generate the symbol file.
6525 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6527 cat <<EOF >> conftest.$ac_ext
6528 #if defined (__STDC__) && __STDC__
6529 # define lt_ptr_t void *
6531 # define lt_ptr_t char *
6535 /* The mapping between symbol names and symbols. */
6540 lt_preloaded_symbols[] =
6543 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" |
grep -v main
>> conftest.
$ac_ext
6544 cat <<\EOF
>> conftest.
$ac_ext
6552 # Now try linking the two files.
6553 mv conftest.
$ac_objext conftstm.
$ac_objext
6554 lt_save_LIBS
="$LIBS"
6555 lt_save_CFLAGS
="$CFLAGS"
6556 LIBS
="conftstm.$ac_objext"
6557 CFLAGS
="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6559 (eval $ac_link) 2>&5
6561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6562 (exit $ac_status); } && test -s conftest
${ac_exeext}; then
6565 LIBS
="$lt_save_LIBS"
6566 CFLAGS
="$lt_save_CFLAGS"
6568 echo "cannot find nm_test_func in $nlist" >&5
6571 echo "cannot find nm_test_var in $nlist" >&5
6574 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6577 echo "$progname: failed program was:" >&5
6578 cat conftest.
$ac_ext >&5
6580 rm -f conftest
* conftst
*
6582 # Do not use the global_symbol_pipe unless it works.
6583 if test "$pipe_works" = yes; then
6586 lt_cv_sys_global_symbol_pipe
=
6592 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6593 lt_cv_sys_global_symbol_to_cdecl
=
6595 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6596 { echo "$as_me:$LINENO: result: failed" >&5
6597 echo "${ECHO_T}failed" >&6; }
6599 { echo "$as_me:$LINENO: result: ok" >&5
6600 echo "${ECHO_T}ok" >&6; }
6603 { echo "$as_me:$LINENO: checking for objdir" >&5
6604 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6605 if test "${lt_cv_objdir+set}" = set; then
6606 echo $ECHO_N "(cached) $ECHO_C" >&6
6608 rm -f .libs
2>/dev
/null
6609 mkdir .libs
2>/dev
/null
6610 if test -d .libs
; then
6613 # MS-DOS does not allow filenames that begin with a dot.
6616 rmdir .libs
2>/dev
/null
6618 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6619 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6620 objdir
=$lt_cv_objdir
6628 # AIX sometimes has problems with the GCC collect2 program. For some
6629 # reason, if we set the COLLECT_NAMES environment variable, the problems
6630 # vanish in a puff of smoke.
6631 if test "X${COLLECT_NAMES+set}" != Xset
; then
6633 export COLLECT_NAMES
6638 # Sed substitution that helps us do robust quoting. It backslashifies
6639 # metacharacters that are still active within double-quoted strings.
6640 Xsed
='sed -e 1s/^X//'
6641 sed_quote_subst
='s/\([\\"\\`$\\\\]\)/\\\1/g'
6643 # Same as above, but do not quote variable references.
6644 double_quote_subst
='s/\([\\"\\`\\\\]\)/\\\1/g'
6646 # Sed substitution to delay expansion of an escaped shell variable in a
6647 # double_quote_subst'ed string.
6648 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
6650 # Sed substitution to avoid accidental globbing in evaled expressions
6651 no_glob_subst
='s/\*/\\\*/g'
6657 default_ofile
=libtool
6658 can_build_shared
=yes
6660 # All known linkers require a `.a' archive for static linking (except MSVC,
6661 # which needs '.lib').
6663 ltmain
="$ac_aux_dir/ltmain.sh"
6664 ofile
="$default_ofile"
6665 with_gnu_ld
="$lt_cv_prog_gnu_ld"
6667 if test -n "$ac_tool_prefix"; then
6668 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6669 set dummy
${ac_tool_prefix}ar; ac_word
=$2
6670 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6671 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6672 if test "${ac_cv_prog_AR+set}" = set; then
6673 echo $ECHO_N "(cached) $ECHO_C" >&6
6675 if test -n "$AR"; then
6676 ac_cv_prog_AR
="$AR" # Let the user override the test.
6678 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6682 test -z "$as_dir" && as_dir
=.
6683 for ac_exec_ext
in '' $ac_executable_extensions; do
6684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6685 ac_cv_prog_AR
="${ac_tool_prefix}ar"
6686 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6696 if test -n "$AR"; then
6697 { echo "$as_me:$LINENO: result: $AR" >&5
6698 echo "${ECHO_T}$AR" >&6; }
6700 { echo "$as_me:$LINENO: result: no" >&5
6701 echo "${ECHO_T}no" >&6; }
6706 if test -z "$ac_cv_prog_AR"; then
6708 # Extract the first word of "ar", so it can be a program name with args.
6709 set dummy
ar; ac_word
=$2
6710 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6711 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6712 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6713 echo $ECHO_N "(cached) $ECHO_C" >&6
6715 if test -n "$ac_ct_AR"; then
6716 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
6718 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6722 test -z "$as_dir" && as_dir
=.
6723 for ac_exec_ext
in '' $ac_executable_extensions; do
6724 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6725 ac_cv_prog_ac_ct_AR
="ar"
6726 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6735 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
6736 if test -n "$ac_ct_AR"; then
6737 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6738 echo "${ECHO_T}$ac_ct_AR" >&6; }
6740 { echo "$as_me:$LINENO: result: no" >&5
6741 echo "${ECHO_T}no" >&6; }
6744 if test "x$ac_ct_AR" = x
; then
6747 case $cross_compiling:$ac_tool_warned in
6749 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6750 whose name does not start with the host triplet. If you think this
6751 configuration is useful to you, please write to autoconf@gnu.org." >&5
6752 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6753 whose name does not start with the host triplet. If you think this
6754 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6755 ac_tool_warned
=yes ;;
6763 if test -n "$ac_tool_prefix"; then
6764 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6765 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
6766 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6767 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6768 if test "${ac_cv_prog_RANLIB+set}" = set; then
6769 echo $ECHO_N "(cached) $ECHO_C" >&6
6771 if test -n "$RANLIB"; then
6772 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
6774 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6778 test -z "$as_dir" && as_dir
=.
6779 for ac_exec_ext
in '' $ac_executable_extensions; do
6780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6781 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
6782 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6791 RANLIB
=$ac_cv_prog_RANLIB
6792 if test -n "$RANLIB"; then
6793 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6794 echo "${ECHO_T}$RANLIB" >&6; }
6796 { echo "$as_me:$LINENO: result: no" >&5
6797 echo "${ECHO_T}no" >&6; }
6802 if test -z "$ac_cv_prog_RANLIB"; then
6803 ac_ct_RANLIB
=$RANLIB
6804 # Extract the first word of "ranlib", so it can be a program name with args.
6805 set dummy ranlib
; ac_word
=$2
6806 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6807 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6808 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6809 echo $ECHO_N "(cached) $ECHO_C" >&6
6811 if test -n "$ac_ct_RANLIB"; then
6812 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
6814 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6818 test -z "$as_dir" && as_dir
=.
6819 for ac_exec_ext
in '' $ac_executable_extensions; do
6820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6821 ac_cv_prog_ac_ct_RANLIB
="ranlib"
6822 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6831 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
6832 if test -n "$ac_ct_RANLIB"; then
6833 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6834 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6836 { echo "$as_me:$LINENO: result: no" >&5
6837 echo "${ECHO_T}no" >&6; }
6840 if test "x$ac_ct_RANLIB" = x
; then
6843 case $cross_compiling:$ac_tool_warned in
6845 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6846 whose name does not start with the host triplet. If you think this
6847 configuration is useful to you, please write to autoconf@gnu.org." >&5
6848 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6849 whose name does not start with the host triplet. If you think this
6850 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6851 ac_tool_warned
=yes ;;
6853 RANLIB
=$ac_ct_RANLIB
6856 RANLIB
="$ac_cv_prog_RANLIB"
6859 if test -n "$ac_tool_prefix"; then
6860 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6861 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
6862 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6864 if test "${ac_cv_prog_STRIP+set}" = set; then
6865 echo $ECHO_N "(cached) $ECHO_C" >&6
6867 if test -n "$STRIP"; then
6868 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
6870 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6874 test -z "$as_dir" && as_dir
=.
6875 for ac_exec_ext
in '' $ac_executable_extensions; do
6876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6877 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
6878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6887 STRIP
=$ac_cv_prog_STRIP
6888 if test -n "$STRIP"; then
6889 { echo "$as_me:$LINENO: result: $STRIP" >&5
6890 echo "${ECHO_T}$STRIP" >&6; }
6892 { echo "$as_me:$LINENO: result: no" >&5
6893 echo "${ECHO_T}no" >&6; }
6898 if test -z "$ac_cv_prog_STRIP"; then
6900 # Extract the first word of "strip", so it can be a program name with args.
6901 set dummy strip
; ac_word
=$2
6902 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6904 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6905 echo $ECHO_N "(cached) $ECHO_C" >&6
6907 if test -n "$ac_ct_STRIP"; then
6908 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
6910 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6914 test -z "$as_dir" && as_dir
=.
6915 for ac_exec_ext
in '' $ac_executable_extensions; do
6916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6917 ac_cv_prog_ac_ct_STRIP
="strip"
6918 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6927 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
6928 if test -n "$ac_ct_STRIP"; then
6929 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6930 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6932 { echo "$as_me:$LINENO: result: no" >&5
6933 echo "${ECHO_T}no" >&6; }
6936 if test "x$ac_ct_STRIP" = x
; then
6939 case $cross_compiling:$ac_tool_warned in
6941 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6942 whose name does not start with the host triplet. If you think this
6943 configuration is useful to you, please write to autoconf@gnu.org." >&5
6944 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6945 whose name does not start with the host triplet. If you think this
6946 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6947 ac_tool_warned
=yes ;;
6952 STRIP
="$ac_cv_prog_STRIP"
6957 old_CFLAGS
="$CFLAGS"
6959 # Set sane defaults for various variables
6960 test -z "$AR" && AR
=ar
6961 test -z "$AR_FLAGS" && AR_FLAGS
=cru
6962 test -z "$AS" && AS
=as
6963 test -z "$CC" && CC
=cc
6964 test -z "$LTCC" && LTCC
=$CC
6965 test -z "$LTCFLAGS" && LTCFLAGS
=$CFLAGS
6966 test -z "$DLLTOOL" && DLLTOOL
=dlltool
6967 test -z "$LD" && LD
=ld
6968 test -z "$LN_S" && LN_S
="ln -s"
6969 test -z "$MAGIC_CMD" && MAGIC_CMD
=file
6970 test -z "$NM" && NM
=nm
6971 test -z "$SED" && SED
=sed
6972 test -z "$OBJDUMP" && OBJDUMP
=objdump
6973 test -z "$RANLIB" && RANLIB
=:
6974 test -z "$STRIP" && STRIP
=:
6975 test -z "$ac_objext" && ac_objext
=o
6977 # Determine commands to create old-style static archives.
6978 old_archive_cmds
='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6979 old_postinstall_cmds
='chmod 644 $oldlib'
6980 old_postuninstall_cmds
=
6982 if test -n "$RANLIB"; then
6985 old_postinstall_cmds
="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6988 old_postinstall_cmds
="$old_postinstall_cmds~\$RANLIB \$oldlib"
6991 old_archive_cmds
="$old_archive_cmds~\$RANLIB \$oldlib"
6994 for cc_temp
in $compiler""; do
6996 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
6997 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
7002 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7005 # Only perform the check for file, if the check method requires it
7006 case $deplibs_check_method in
7008 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7009 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7010 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7011 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7012 echo $ECHO_N "(cached) $ECHO_C" >&6
7016 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
7019 lt_save_MAGIC_CMD
="$MAGIC_CMD"
7020 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
7021 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
7022 for ac_dir
in $ac_dummy; do
7024 test -z "$ac_dir" && ac_dir
=.
7025 if test -f $ac_dir/${ac_tool_prefix}file; then
7026 lt_cv_path_MAGIC_CMD
="$ac_dir/${ac_tool_prefix}file"
7027 if test -n "$file_magic_test_file"; then
7028 case $deplibs_check_method in
7030 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7031 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
7032 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
7033 $EGREP "$file_magic_regex" > /dev
/null
; then
7038 *** Warning: the command libtool uses to detect shared libraries,
7039 *** $file_magic_cmd, produces output that libtool cannot recognize.
7040 *** The result is that libtool may fail to recognize shared libraries
7041 *** as such. This will affect the creation of libtool libraries that
7042 *** depend on shared libraries, but programs linked with such libtool
7043 *** libraries will work regardless of this problem. Nevertheless, you
7044 *** may want to report the problem to your system manager and/or to
7045 *** bug-libtool@gnu.org
7055 MAGIC_CMD
="$lt_save_MAGIC_CMD"
7060 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
7061 if test -n "$MAGIC_CMD"; then
7062 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7063 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7065 { echo "$as_me:$LINENO: result: no" >&5
7066 echo "${ECHO_T}no" >&6; }
7069 if test -z "$lt_cv_path_MAGIC_CMD"; then
7070 if test -n "$ac_tool_prefix"; then
7071 { echo "$as_me:$LINENO: checking for file" >&5
7072 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7073 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7074 echo $ECHO_N "(cached) $ECHO_C" >&6
7078 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
7081 lt_save_MAGIC_CMD
="$MAGIC_CMD"
7082 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
7083 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
7084 for ac_dir
in $ac_dummy; do
7086 test -z "$ac_dir" && ac_dir
=.
7087 if test -f $ac_dir/file; then
7088 lt_cv_path_MAGIC_CMD
="$ac_dir/file"
7089 if test -n "$file_magic_test_file"; then
7090 case $deplibs_check_method in
7092 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7093 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
7094 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
7095 $EGREP "$file_magic_regex" > /dev
/null
; then
7100 *** Warning: the command libtool uses to detect shared libraries,
7101 *** $file_magic_cmd, produces output that libtool cannot recognize.
7102 *** The result is that libtool may fail to recognize shared libraries
7103 *** as such. This will affect the creation of libtool libraries that
7104 *** depend on shared libraries, but programs linked with such libtool
7105 *** libraries will work regardless of this problem. Nevertheless, you
7106 *** may want to report the problem to your system manager and/or to
7107 *** bug-libtool@gnu.org
7117 MAGIC_CMD
="$lt_save_MAGIC_CMD"
7122 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
7123 if test -n "$MAGIC_CMD"; then
7124 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7125 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7127 { echo "$as_me:$LINENO: result: no" >&5
7128 echo "${ECHO_T}no" >&6; }
7143 # Check whether --enable-libtool-lock was given.
7144 if test "${enable_libtool_lock+set}" = set; then
7145 enableval
=$enable_libtool_lock;
7148 test "x$enable_libtool_lock" != xno
&& enable_libtool_lock
=yes
7151 # Check whether --with-pic was given.
7152 if test "${with_pic+set}" = set; then
7153 withval
=$with_pic; pic_mode
="$withval"
7158 test -z "$pic_mode" && pic_mode
=default
7160 # Use C for the default configuration in the libtool script
7164 ac_cpp
='$CPP $CPPFLAGS'
7165 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7166 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7167 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7170 # Source file extension for C test sources.
7173 # Object file extension for compiled C test sources.
7177 # Code to be used in simple compile tests
7178 lt_simple_compile_test_code
="int some_variable = 0;\n"
7180 # Code to be used in simple link tests
7181 lt_simple_link_test_code
='int main(){return(0);}\n'
7184 # If no C compiler was specified, use CC.
7187 # If no C compiler flags were specified, use CFLAGS.
7188 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
7190 # Allow CC to be a program name with arguments.
7194 # save warnings/boilerplate of simple test code
7195 ac_outfile
=conftest.
$ac_objext
7196 printf "$lt_simple_compile_test_code" >conftest.
$ac_ext
7197 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
7198 _lt_compiler_boilerplate
=`cat conftest.err`
7201 ac_outfile
=conftest.
$ac_objext
7202 printf "$lt_simple_link_test_code" >conftest.
$ac_ext
7203 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
7204 _lt_linker_boilerplate
=`cat conftest.err`
7209 lt_prog_compiler_no_builtin_flag
=
7211 if test "$GCC" = yes; then
7212 lt_prog_compiler_no_builtin_flag
=' -fno-builtin'
7215 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7216 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7217 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7218 echo $ECHO_N "(cached) $ECHO_C" >&6
7220 lt_cv_prog_compiler_rtti_exceptions
=no
7221 ac_outfile
=conftest.
$ac_objext
7222 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
7223 lt_compiler_flag
="-fno-rtti -fno-exceptions"
7224 # Insert the option either (1) after the last *FLAGS variable, or
7225 # (2) before a word containing "conftest.", or (3) at the end.
7226 # Note that $ac_compile itself does not contain backslashes and begins
7227 # with a dollar sign (not a hyphen), so the echo should work correctly.
7228 # The option is referenced via a variable to avoid confusing sed.
7229 lt_compile
=`echo "$ac_compile" | $SED \
7230 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7231 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7232 -e 's:$: $lt_compiler_flag:'`
7233 (eval echo "\"\$as_me:7233: $lt_compile\"" >&5)
7234 (eval "$lt_compile" 2>conftest.err
)
7236 cat conftest.err
>&5
7237 echo "$as_me:7237: \$? = $ac_status" >&5
7238 if (exit $ac_status) && test -s "$ac_outfile"; then
7239 # The compiler can only warn and ignore the option if not recognized
7240 # So say no if there are warnings other than the usual output.
7241 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
7242 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
7243 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
7244 lt_cv_prog_compiler_rtti_exceptions
=yes
7250 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7251 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7253 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
7254 lt_prog_compiler_no_builtin_flag
="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7261 lt_prog_compiler_wl
=
7262 lt_prog_compiler_pic
=
7263 lt_prog_compiler_static
=
7265 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7266 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7268 if test "$GCC" = yes; then
7269 lt_prog_compiler_wl
='-Wl,'
7270 lt_prog_compiler_static
='-static'
7274 # All AIX code is PIC.
7275 if test "$host_cpu" = ia64
; then
7276 # AIX 5 now supports IA64 processor
7277 lt_prog_compiler_static
='-Bstatic'
7282 # FIXME: we need at least 68020 code to build shared libraries, but
7283 # adding the `-m68020' flag to GCC prevents building anything better,
7285 lt_prog_compiler_pic
='-m68020 -resident32 -malways-restore-a4'
7288 beos
* | cygwin
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
7289 # PIC is the default for these OSes.
7292 mingw
* | pw32
* | os2
*)
7293 # This hack is so that the source file can tell whether it is being
7294 # built for inclusion in a dll (and should export symbols for example).
7295 lt_prog_compiler_pic
='-DDLL_EXPORT'
7298 darwin
* | rhapsody
*)
7299 # PIC is the default on this platform
7300 # Common symbols not allowed in MH_DYLIB files
7301 lt_prog_compiler_pic
='-fno-common'
7305 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7306 # Instead, we relocate shared libraries at runtime.
7310 # Just because we use GCC doesn't mean we suddenly get shared libraries
7311 # on systems that don't support them.
7312 lt_prog_compiler_can_build_shared
=no
7317 if test -d /usr
/nec
; then
7318 lt_prog_compiler_pic
=-Kconform_pic
7323 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7330 lt_prog_compiler_pic
='-fPIC'
7336 lt_prog_compiler_pic
='-fPIC'
7340 # PORTME Check for flag to pass linker flags through the system compiler.
7343 lt_prog_compiler_wl
='-Wl,'
7344 if test "$host_cpu" = ia64
; then
7345 # AIX 5 now supports IA64 processor
7346 lt_prog_compiler_static
='-Bstatic'
7348 lt_prog_compiler_static
='-bnso -bI:/lib/syscalls.exp'
7352 # PIC is the default on this platform
7353 # Common symbols not allowed in MH_DYLIB files
7354 case $cc_basename in
7356 lt_prog_compiler_pic
='-qnocommon'
7357 lt_prog_compiler_wl
='-Wl,'
7362 mingw
* | pw32
* | os2
*)
7363 # This hack is so that the source file can tell whether it is being
7364 # built for inclusion in a dll (and should export symbols for example).
7365 lt_prog_compiler_pic
='-DDLL_EXPORT'
7368 hpux9
* | hpux10
* | hpux11
*)
7369 lt_prog_compiler_wl
='-Wl,'
7370 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7377 lt_prog_compiler_pic
='+Z'
7380 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7381 lt_prog_compiler_static
='${wl}-a ${wl}archive'
7384 irix5
* | irix6
* | nonstopux
*)
7385 lt_prog_compiler_wl
='-Wl,'
7386 # PIC (with -KPIC) is the default.
7387 lt_prog_compiler_static
='-non_shared'
7391 lt_prog_compiler_pic
='-KPIC'
7392 lt_prog_compiler_static
='-Bstatic'
7395 linux
* | k
*bsd
*-gnu)
7396 case $cc_basename in
7398 lt_prog_compiler_wl
='-Wl,'
7399 lt_prog_compiler_pic
='-KPIC'
7400 lt_prog_compiler_static
='-static'
7402 pgcc
* | pgf77
* | pgf90
* | pgf95
*)
7403 # Portland Group compilers (*not* the Pentium gcc compiler,
7404 # which looks to be a dead project)
7405 lt_prog_compiler_wl
='-Wl,'
7406 lt_prog_compiler_pic
='-fpic'
7407 lt_prog_compiler_static
='-Bstatic'
7410 lt_prog_compiler_wl
='-Wl,'
7411 # All Alpha code is PIC.
7412 lt_prog_compiler_static
='-non_shared'
7417 osf3
* | osf4
* | osf5
*)
7418 lt_prog_compiler_wl
='-Wl,'
7419 # All OSF/1 code is PIC.
7420 lt_prog_compiler_static
='-non_shared'
7424 lt_prog_compiler_pic
='-KPIC'
7425 lt_prog_compiler_static
='-Bstatic'
7426 case $cc_basename in
7428 lt_prog_compiler_wl
='-Qoption ld ';;
7430 lt_prog_compiler_wl
='-Wl,';;
7435 lt_prog_compiler_wl
='-Qoption ld '
7436 lt_prog_compiler_pic
='-PIC'
7437 lt_prog_compiler_static
='-Bstatic'
7440 sysv4 | sysv4.2uw2
* | sysv4.3
*)
7441 lt_prog_compiler_wl
='-Wl,'
7442 lt_prog_compiler_pic
='-KPIC'
7443 lt_prog_compiler_static
='-Bstatic'
7447 if test -d /usr
/nec
;then
7448 lt_prog_compiler_pic
='-Kconform_pic'
7449 lt_prog_compiler_static
='-Bstatic'
7453 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
7454 lt_prog_compiler_wl
='-Wl,'
7455 lt_prog_compiler_pic
='-KPIC'
7456 lt_prog_compiler_static
='-Bstatic'
7460 lt_prog_compiler_wl
='-Wl,'
7461 lt_prog_compiler_can_build_shared
=no
7465 lt_prog_compiler_pic
='-pic'
7466 lt_prog_compiler_static
='-Bstatic'
7470 lt_prog_compiler_can_build_shared
=no
7475 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7476 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7479 # Check to make sure the PIC flag actually works.
7481 if test -n "$lt_prog_compiler_pic"; then
7483 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7484 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7485 if test "${lt_prog_compiler_pic_works+set}" = set; then
7486 echo $ECHO_N "(cached) $ECHO_C" >&6
7488 lt_prog_compiler_pic_works
=no
7489 ac_outfile
=conftest.
$ac_objext
7490 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
7491 lt_compiler_flag
="$lt_prog_compiler_pic -DPIC"
7492 # Insert the option either (1) after the last *FLAGS variable, or
7493 # (2) before a word containing "conftest.", or (3) at the end.
7494 # Note that $ac_compile itself does not contain backslashes and begins
7495 # with a dollar sign (not a hyphen), so the echo should work correctly.
7496 # The option is referenced via a variable to avoid confusing sed.
7497 lt_compile
=`echo "$ac_compile" | $SED \
7498 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7499 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7500 -e 's:$: $lt_compiler_flag:'`
7501 (eval echo "\"\$as_me:7501: $lt_compile\"" >&5)
7502 (eval "$lt_compile" 2>conftest.err
)
7504 cat conftest.err
>&5
7505 echo "$as_me:7505: \$? = $ac_status" >&5
7506 if (exit $ac_status) && test -s "$ac_outfile"; then
7507 # The compiler can only warn and ignore the option if not recognized
7508 # So say no if there are warnings other than the usual output.
7509 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
7510 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
7511 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
7512 lt_prog_compiler_pic_works
=yes
7518 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7519 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7521 if test x
"$lt_prog_compiler_pic_works" = xyes
; then
7522 case $lt_prog_compiler_pic in
7524 *) lt_prog_compiler_pic
=" $lt_prog_compiler_pic" ;;
7527 lt_prog_compiler_pic
=
7528 lt_prog_compiler_can_build_shared
=no
7533 # For platforms which do not support PIC, -DPIC is meaningless:
7535 lt_prog_compiler_pic
=
7538 lt_prog_compiler_pic
="$lt_prog_compiler_pic -DPIC"
7543 # Check to make sure the static flag actually works.
7545 wl
=$lt_prog_compiler_wl eval lt_tmp_static_flag
=\"$lt_prog_compiler_static\"
7546 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7547 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7548 if test "${lt_prog_compiler_static_works+set}" = set; then
7549 echo $ECHO_N "(cached) $ECHO_C" >&6
7551 lt_prog_compiler_static_works
=no
7552 save_LDFLAGS
="$LDFLAGS"
7553 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
7554 printf "$lt_simple_link_test_code" > conftest.
$ac_ext
7555 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
7556 # The linker can only warn and ignore the option if not recognized
7557 # So say no if there are warnings
7558 if test -s conftest.err
; then
7559 # Append any errors to the config.log.
7560 cat conftest.err
1>&5
7561 $echo "X$_lt_linker_boilerplate" |
$Xsed -e '/^$/d' > conftest.exp
7562 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
7563 if diff conftest.exp conftest.er2
>/dev
/null
; then
7564 lt_prog_compiler_static_works
=yes
7567 lt_prog_compiler_static_works
=yes
7571 LDFLAGS
="$save_LDFLAGS"
7574 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7575 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7577 if test x
"$lt_prog_compiler_static_works" = xyes
; then
7580 lt_prog_compiler_static
=
7584 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7585 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7586 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7587 echo $ECHO_N "(cached) $ECHO_C" >&6
7589 lt_cv_prog_compiler_c_o
=no
7590 $rm -r conftest
2>/dev
/null
7594 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
7596 lt_compiler_flag
="-o out/conftest2.$ac_objext"
7597 # Insert the option either (1) after the last *FLAGS variable, or
7598 # (2) before a word containing "conftest.", or (3) at the end.
7599 # Note that $ac_compile itself does not contain backslashes and begins
7600 # with a dollar sign (not a hyphen), so the echo should work correctly.
7601 lt_compile
=`echo "$ac_compile" | $SED \
7602 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7603 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7604 -e 's:$: $lt_compiler_flag:'`
7605 (eval echo "\"\$as_me:7605: $lt_compile\"" >&5)
7606 (eval "$lt_compile" 2>out
/conftest.err
)
7608 cat out
/conftest.err
>&5
7609 echo "$as_me:7609: \$? = $ac_status" >&5
7610 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
7612 # The compiler can only warn and ignore the option if not recognized
7613 # So say no if there are warnings
7614 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
7615 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
7616 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
7617 lt_cv_prog_compiler_c_o
=yes
7622 # SGI C++ compiler will create directory out/ii_files/ for
7623 # template instantiation
7624 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
7625 $rm out
/* && rmdir out
7631 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7632 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7635 hard_links
="nottested"
7636 if test "$lt_cv_prog_compiler_c_o" = no
&& test "$need_locks" != no
; then
7637 # do not overwrite the value of need_locks provided by the user
7638 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7639 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7642 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
7644 ln conftest.a conftest.b
2>&5 || hard_links
=no
7645 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
7646 { echo "$as_me:$LINENO: result: $hard_links" >&5
7647 echo "${ECHO_T}$hard_links" >&6; }
7648 if test "$hard_links" = no
; then
7649 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7650 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7657 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7658 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7661 allow_undefined_flag
=
7662 enable_shared_with_static_runtimes
=no
7664 archive_expsym_cmds
=
7665 old_archive_From_new_cmds
=
7666 old_archive_from_expsyms_cmds
=
7667 export_dynamic_flag_spec
=
7668 whole_archive_flag_spec
=
7669 thread_safe_flag_spec
=
7670 hardcode_libdir_flag_spec
=
7671 hardcode_libdir_flag_spec_ld
=
7672 hardcode_libdir_separator
=
7675 hardcode_shlibpath_var
=unsupported
7676 link_all_deplibs
=unknown
7677 hardcode_automatic
=no
7680 always_export_symbols
=no
7681 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7682 # include_expsyms should be a list of space-separated symbols to be *always*
7683 # included in the symbol list
7685 # exclude_expsyms can be an extended regexp of symbols to exclude
7686 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7687 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7688 # as well as any symbol that contains `d'.
7689 exclude_expsyms
="_GLOBAL_OFFSET_TABLE_"
7690 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7691 # platforms (ab)use it in PIC code, but their linkers get confused if
7692 # the symbol is explicitly referenced. Since portable code cannot
7693 # rely on this symbol name, it's probably fine to never include it in
7694 # preloaded symbol tables.
7695 extract_expsyms_cmds
=
7696 # Just being paranoid about ensuring that cc_basename is set.
7697 for cc_temp
in $compiler""; do
7699 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
7700 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
7705 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7708 cygwin
* | mingw
* | pw32
*)
7709 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7710 # When not using gcc, we currently assume that we are using
7711 # Microsoft Visual C++.
7712 if test "$GCC" != yes; then
7717 # we just hope/assume this is gcc and not c89 (= MSVC++)
7726 if test "$with_gnu_ld" = yes; then
7727 # If archive_cmds runs LD, not CC, wlarc should be empty
7730 # Set some defaults for GNU ld with shared library support. These
7731 # are reset later if shared libraries are not supported. Putting them
7732 # here allows them to be overridden if necessary.
7733 runpath_var
=LD_RUN_PATH
7734 hardcode_libdir_flag_spec
='${wl}--rpath ${wl}$libdir'
7735 export_dynamic_flag_spec
='${wl}--export-dynamic'
7736 # ancient GNU ld didn't support --whole-archive et. al.
7737 if $LD --help 2>&1 |
grep 'no-whole-archive' > /dev
/null
; then
7738 whole_archive_flag_spec
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7740 whole_archive_flag_spec
=
7742 supports_anon_versioning
=no
7743 case `$LD -v 2>/dev/null` in
7744 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
7745 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
7746 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
7747 *\
2.11.
*) ;; # other 2.11 versions
7748 *) supports_anon_versioning
=yes ;;
7751 # See if GNU ld supports shared libraries.
7753 aix3
* | aix4
* | aix5
*)
7754 # On AIX/PPC, the GNU linker is very broken
7755 if test "$host_cpu" != ia64
; then
7759 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7760 *** to be unable to reliably create shared libraries on AIX.
7761 *** Therefore, libtool is disabling shared libraries support. If you
7762 *** really care for shared libraries, you may want to modify your PATH
7763 *** so that a non-GNU linker is found, and then restart.
7770 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)'
7771 hardcode_libdir_flag_spec
='-L$libdir'
7772 hardcode_minus_L
=yes
7774 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7775 # that the semantics of dynamic libraries on AmigaOS, at least up
7776 # to version 4, is to share data among multiple programs linked
7777 # with the same dynamic library. Since this doesn't match the
7778 # behavior of shared libraries on other platforms, we can't use
7784 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
7785 allow_undefined_flag
=unsupported
7786 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7787 # support --undefined. This deserves some investigation. FIXME
7788 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7794 cygwin
* | mingw
* | pw32
*)
7795 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7796 # as there is no search path for DLLs.
7797 hardcode_libdir_flag_spec
='-L$libdir'
7798 allow_undefined_flag
=unsupported
7799 always_export_symbols
=no
7800 enable_shared_with_static_runtimes
=yes
7801 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7803 if $LD --help 2>&1 |
grep 'auto-import' > /dev
/null
; then
7804 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7805 # If the export-symbols file already is a .def file (1st line
7806 # is EXPORTS), use it as is; otherwise, prepend...
7807 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7808 cp $export_symbols $output_objdir/$soname.def;
7810 echo EXPORTS > $output_objdir/$soname.def;
7811 cat $export_symbols >> $output_objdir/$soname.def;
7813 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7821 hardcode_shlibpath_var
=no
7822 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
7823 export_dynamic_flag_spec
='${wl}-E'
7824 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7825 # Instead, shared libraries are loaded at an image base (0x10000000 by
7826 # default) and relocated if they conflict, which is a slow very memory
7827 # consuming and fragmenting process. To avoid this, we pick a random,
7828 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7829 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7830 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7831 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'
7834 linux
* | k
*bsd
*-gnu)
7835 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
7837 case $cc_basename,$host_cpu in
7838 pgcc
*) # Portland Group C compiler
7839 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'
7840 tmp_addflag
=' $pic_flag'
7842 pgf77
* | pgf90
* | pgf95
*) # Portland Group f77 and f90 compilers
7843 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'
7844 tmp_addflag
=' $pic_flag -Mnomain' ;;
7845 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
7846 tmp_addflag
=' -i_dynamic' ;;
7847 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
7848 tmp_addflag
=' -i_dynamic -nofor_main' ;;
7849 ifc
* | ifort
*) # Intel Fortran compiler
7850 tmp_addflag
=' -nofor_main' ;;
7852 archive_cmds
='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7854 if test $supports_anon_versioning = yes; then
7855 archive_expsym_cmds
='$echo "{ global:" > $output_objdir/$libname.ver~
7856 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7857 $echo "local: *; };" >> $output_objdir/$libname.ver~
7858 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7866 netbsd
* | netbsdelf
*-gnu)
7867 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
7868 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7871 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7872 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7877 if $LD -v 2>&1 |
grep 'BFD 2\.8' > /dev
/null
; then
7881 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7882 *** create shared libraries on Solaris systems. Therefore, libtool
7883 *** is disabling shared libraries support. We urge you to upgrade GNU
7884 *** binutils to release 2.9.1 or newer. Another option is to modify
7885 *** your PATH or compiler configuration so that the native linker is
7886 *** used, and then restart.
7889 elif $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
7890 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7891 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7897 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
7898 case `$LD -v 2>&1` in
7899 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
7903 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7904 *** reliably create shared libraries on SCO systems. Therefore, libtool
7905 *** is disabling shared libraries support. We urge you to upgrade GNU
7906 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7907 *** your PATH or compiler configuration so that the native linker is
7908 *** used, and then restart.
7913 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
7914 hardcode_libdir_flag_spec
='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7915 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7916 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7925 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7928 hardcode_shlibpath_var
=no
7932 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
7933 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7934 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7941 if test "$ld_shlibs" = no
; then
7943 hardcode_libdir_flag_spec
=
7944 export_dynamic_flag_spec
=
7945 whole_archive_flag_spec
=
7948 # PORTME fill in a description of your system's linker (not GNU ld)
7951 allow_undefined_flag
=unsupported
7952 always_export_symbols
=yes
7953 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'
7954 # Note: this linker hardcodes the directories in LIBPATH if there
7955 # are no directories specified by -L.
7956 hardcode_minus_L
=yes
7957 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7958 # Neither direct hardcoding nor static linking is supported with a
7960 hardcode_direct
=unsupported
7965 if test "$host_cpu" = ia64
; then
7966 # On IA64, the linker does run time linking by default, so we don't
7967 # have to do anything special.
7968 aix_use_runtimelinking
=no
7969 exp_sym_flag
='-Bexport'
7972 # If we're using GNU nm, then we don't want the "-C" option.
7973 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7974 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
7975 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'
7977 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'
7979 aix_use_runtimelinking
=no
7981 # Test if we are trying to use run time linking or normal
7982 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7983 # need to do runtime linking.
7984 case $host_os in aix4.
[23]|aix4.
[23].
*|aix5
*)
7985 for ld_flag
in $LDFLAGS; do
7986 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
7987 aix_use_runtimelinking
=yes
7994 exp_sym_flag
='-bexport'
7995 no_entry_flag
='-bnoentry'
7998 # When large executables or shared objects are built, AIX ld can
7999 # have problems creating the table of contents. If linking a library
8000 # or program results in "error TOC overflow" add -mminimal-toc to
8001 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8002 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8006 hardcode_libdir_separator
=':'
8007 link_all_deplibs
=yes
8009 if test "$GCC" = yes; then
8010 case $host_os in aix4.
[012]|aix4.
[012].
*)
8011 # We only want to do this on AIX 4.2 and lower, the check
8012 # below for broken collect2 doesn't work under 4.3+
8013 collect2name
=`${CC} -print-prog-name=collect2`
8014 if test -f "$collect2name" && \
8015 strings "$collect2name" |
grep resolve_lib_name
>/dev
/null
8017 # We have reworked collect2
8020 # We have old collect2
8021 hardcode_direct
=unsupported
8022 # It fails to find uninstalled libraries when the uninstalled
8023 # path is not listed in the libpath. Setting hardcode_minus_L
8024 # to unsupported forces relinking
8025 hardcode_minus_L
=yes
8026 hardcode_libdir_flag_spec
='-L$libdir'
8027 hardcode_libdir_separator
=
8031 shared_flag
='-shared'
8032 if test "$aix_use_runtimelinking" = yes; then
8033 shared_flag
="$shared_flag "'${wl}-G'
8037 if test "$host_cpu" = ia64
; then
8038 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8039 # chokes on -Wl,-G. The following line is correct:
8042 if test "$aix_use_runtimelinking" = yes; then
8043 shared_flag
='${wl}-G'
8045 shared_flag
='${wl}-bM:SRE'
8050 # It seems that -bexpall does not export symbols beginning with
8051 # underscore (_), so it is better to generate a list of symbols to export.
8052 always_export_symbols
=yes
8053 if test "$aix_use_runtimelinking" = yes; then
8054 # Warning - without using the other runtime loading flags (-brtl),
8055 # -berok will link without error, but may produce a broken library.
8056 allow_undefined_flag
='-berok'
8057 # Determine the default libpath from the value encoded in an empty executable.
8058 cat >conftest.
$ac_ext <<_ACEOF
8061 cat confdefs.h
>>conftest.
$ac_ext
8062 cat >>conftest.
$ac_ext <<_ACEOF
8063 /* end confdefs.h. */
8073 rm -f conftest.
$ac_objext conftest
$ac_exeext
8074 if { (ac_try
="$ac_link"
8076 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8077 *) ac_try_echo=$ac_try;;
8079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8080 (eval "$ac_link") 2>conftest.er1
8082 grep -v '^ *+' conftest.er1 >conftest.err
8084 cat conftest.err >&5
8085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8086 (exit $ac_status); } && {
8087 test -z "$ac_c_werror_flag" ||
8088 test ! -s conftest.err
8089 } && test -s conftest$ac_exeext &&
8090 $as_test_x conftest$ac_exeext; then
8092 aix_libpath=`dump
-H conftest
$ac_exeext 2>/dev
/null |
$SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8094 # Check for a 64-bit object if we didn't find anything.
8095 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; }
8098 echo "$as_me: failed program was:" >&5
8099 sed 's/^/| /' conftest.$ac_ext >&5
8104 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8105 conftest$ac_exeext conftest.$ac_ext
8106 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8108 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8109 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"
8111 if test "$host_cpu" = ia64; then
8112 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8113 allow_undefined_flag="-z nodefs"
8114 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"
8116 # Determine the default libpath from the value encoded in an empty executable.
8117 cat >conftest.$ac_ext <<_ACEOF
8120 cat confdefs.h >>conftest.$ac_ext
8121 cat >>conftest.$ac_ext <<_ACEOF
8122 /* end confdefs.h. */
8132 rm -f conftest.$ac_objext conftest$ac_exeext
8133 if { (ac_try="$ac_link"
8135 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8136 *) ac_try_echo
=$ac_try;;
8138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8139 (eval "$ac_link") 2>conftest.er1
8141 grep -v '^ *+' conftest.er1
>conftest.err
8143 cat conftest.err
>&5
8144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8145 (exit $ac_status); } && {
8146 test -z "$ac_c_werror_flag" ||
8147 test ! -s conftest.err
8148 } && test -s conftest
$ac_exeext &&
8149 $as_test_x conftest
$ac_exeext; then
8151 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8153 # Check for a 64-bit object if we didn't find anything.
8154 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; }
8157 echo "$as_me: failed program was:" >&5
8158 sed 's/^/| /' conftest.
$ac_ext >&5
8163 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8164 conftest
$ac_exeext conftest.
$ac_ext
8165 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
8167 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
8168 # Warning - without using the other run time loading flags,
8169 # -berok will link without error, but may produce a broken library.
8170 no_undefined_flag
=' ${wl}-bernotok'
8171 allow_undefined_flag
=' ${wl}-berok'
8172 # Exported symbols can be pulled into shared objects from archives
8173 whole_archive_flag_spec
='$convenience'
8174 archive_cmds_need_lc
=yes
8175 # This is similar to how AIX traditionally builds its shared libraries.
8176 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'
8182 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)'
8183 hardcode_libdir_flag_spec
='-L$libdir'
8184 hardcode_minus_L
=yes
8185 # see comment about different semantics on the GNU ld section
8190 export_dynamic_flag_spec
=-rdynamic
8193 cygwin
* | mingw
* | pw32
*)
8194 # When not using gcc, we currently assume that we are using
8195 # Microsoft Visual C++.
8196 # hardcode_libdir_flag_spec is actually meaningless, as there is
8197 # no search path for DLLs.
8198 hardcode_libdir_flag_spec
=' '
8199 allow_undefined_flag
=unsupported
8200 # Tell ltmain to make .lib files, not .a files.
8202 # Tell ltmain to make .dll files, not .so files.
8204 # FIXME: Setting linknames here is a bad hack.
8205 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8206 # The linker will automatically build a .lib file if we build a DLL.
8207 old_archive_From_new_cmds
='true'
8208 # FIXME: Should let the user specify the lib program.
8209 old_archive_cmds
='lib /OUT:$oldlib$oldobjs$old_deplibs'
8210 fix_srcfile_path
='`cygpath -w "$srcfile"`'
8211 enable_shared_with_static_runtimes
=yes
8214 darwin
* | rhapsody
*)
8216 rhapsody
* | darwin1.
[012])
8217 allow_undefined_flag
='${wl}-undefined ${wl}suppress'
8220 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8221 allow_undefined_flag
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8223 case ${MACOSX_DEPLOYMENT_TARGET} in
8225 allow_undefined_flag
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8228 allow_undefined_flag
='${wl}-undefined ${wl}dynamic_lookup'
8234 archive_cmds_need_lc
=no
8236 hardcode_automatic
=yes
8237 hardcode_shlibpath_var
=unsupported
8238 whole_archive_flag_spec
=''
8239 link_all_deplibs
=yes
8240 if test "$GCC" = yes ; then
8241 output_verbose_link_cmd
='echo'
8242 archive_cmds
='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8243 module_cmds
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8244 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8245 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}'
8246 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}'
8248 case $cc_basename in
8250 output_verbose_link_cmd
='echo'
8251 archive_cmds
='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8252 module_cmds
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8253 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8254 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}'
8255 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}'
8265 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8266 hardcode_libdir_flag_spec
='-L$libdir'
8267 hardcode_shlibpath_var
=no
8274 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8275 # support. Future versions do this automatically, but an explicit c++rt0.o
8276 # does not break anything, and helps significantly (at the cost of a little
8279 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8280 hardcode_libdir_flag_spec
='-R$libdir'
8282 hardcode_shlibpath_var
=no
8285 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8287 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8289 hardcode_minus_L
=yes
8290 hardcode_shlibpath_var
=no
8293 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8294 freebsd
* | dragonfly
*)
8295 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8296 hardcode_libdir_flag_spec
='-R$libdir'
8298 hardcode_shlibpath_var
=no
8302 if test "$GCC" = yes; then
8303 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'
8305 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'
8307 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
8308 hardcode_libdir_separator
=:
8311 # hardcode_minus_L: Not really in the search PATH,
8312 # but as the default location of the library.
8313 hardcode_minus_L
=yes
8314 export_dynamic_flag_spec
='${wl}-E'
8318 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
8319 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8321 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8323 if test "$with_gnu_ld" = no
; then
8324 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
8325 hardcode_libdir_separator
=:
8328 export_dynamic_flag_spec
='${wl}-E'
8330 # hardcode_minus_L: Not really in the search PATH,
8331 # but as the default location of the library.
8332 hardcode_minus_L
=yes
8337 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
8340 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8343 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8346 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8352 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8355 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8358 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8362 if test "$with_gnu_ld" = no
; then
8363 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
8364 hardcode_libdir_separator
=:
8368 hardcode_libdir_flag_spec_ld
='+b $libdir'
8370 hardcode_shlibpath_var
=no
8374 export_dynamic_flag_spec
='${wl}-E'
8376 # hardcode_minus_L: Not really in the search PATH,
8377 # but as the default location of the library.
8378 hardcode_minus_L
=yes
8384 irix5
* | irix6
* | nonstopux
*)
8385 if test "$GCC" = yes; then
8386 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'
8388 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'
8389 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
8391 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
8392 hardcode_libdir_separator
=:
8393 link_all_deplibs
=yes
8396 netbsd
* | netbsdelf
*-gnu)
8397 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
8398 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8400 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8402 hardcode_libdir_flag_spec
='-R$libdir'
8404 hardcode_shlibpath_var
=no
8408 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8410 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
8411 hardcode_libdir_separator
=:
8412 hardcode_shlibpath_var
=no
8417 hardcode_shlibpath_var
=no
8418 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8419 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8420 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8421 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
8422 export_dynamic_flag_spec
='${wl}-E'
8425 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
8426 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8427 hardcode_libdir_flag_spec
='-R$libdir'
8430 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8431 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
8438 hardcode_libdir_flag_spec
='-L$libdir'
8439 hardcode_minus_L
=yes
8440 allow_undefined_flag
=unsupported
8441 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'
8442 old_archive_From_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8446 if test "$GCC" = yes; then
8447 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
8448 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'
8450 allow_undefined_flag
=' -expect_unresolved \*'
8451 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'
8453 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
8454 hardcode_libdir_separator
=:
8457 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
8458 if test "$GCC" = yes; then
8459 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
8460 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'
8461 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
8463 allow_undefined_flag
=' -expect_unresolved \*'
8464 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'
8465 archive_expsym_cmds
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8466 $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'
8468 # Both c and cxx compiler support -rpath directly
8469 hardcode_libdir_flag_spec
='-rpath $libdir'
8471 hardcode_libdir_separator
=:
8475 no_undefined_flag
=' -z text'
8476 if test "$GCC" = yes; then
8478 archive_cmds
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8479 archive_expsym_cmds
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8480 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8483 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8484 archive_expsym_cmds
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8485 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8487 hardcode_libdir_flag_spec
='-R$libdir'
8488 hardcode_shlibpath_var
=no
8490 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
8492 # The compiler driver will combine linker options so we
8493 # cannot just pass the convience library names through
8494 # without $wl, iff we do not link with $LD.
8495 # Luckily, gcc supports the same syntax we need for Sun Studio.
8496 # Supported since Solaris 2.6 (maybe 2.5.1?)
8499 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract' ;;
8501 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' ;;
8504 link_all_deplibs
=yes
8508 if test "x$host_vendor" = xsequent
; then
8509 # Use $CC to link under sequent, because it throws in some extra .o
8510 # files that make .init and .fini sections work.
8511 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8513 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8515 hardcode_libdir_flag_spec
='-L$libdir'
8517 hardcode_minus_L
=yes
8518 hardcode_shlibpath_var
=no
8522 case $host_vendor in
8524 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8525 hardcode_direct
=yes # is this really true???
8528 ## LD is ld it makes a PLAMLIB
8529 ## CC just makes a GrossModule.
8530 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8531 reload_cmds
='$CC -r -o $output$reload_objs'
8535 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8536 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
8539 runpath_var
='LD_RUN_PATH'
8540 hardcode_shlibpath_var
=no
8544 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8545 hardcode_shlibpath_var
=no
8546 export_dynamic_flag_spec
='-Bexport'
8550 if test -d /usr
/nec
; then
8551 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8552 hardcode_shlibpath_var
=no
8553 runpath_var
=LD_RUN_PATH
8554 hardcode_runpath_var
=yes
8559 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
*)
8560 no_undefined_flag
='${wl}-z,text'
8561 archive_cmds_need_lc
=no
8562 hardcode_shlibpath_var
=no
8563 runpath_var
='LD_RUN_PATH'
8565 if test "$GCC" = yes; then
8566 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8567 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8569 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8570 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8574 sysv5
* | sco3.2v5
* | sco5v6
*)
8575 # Note: We can NOT use -z defs as we might desire, because we do not
8576 # link with -lc, and that would cause any symbols used from libc to
8577 # always be unresolved, which means just about no library would
8578 # ever link correctly. If we're not using GNU ld we use -z text
8579 # though, which does catch some bad symbols but isn't as heavy-handed
8581 no_undefined_flag
='${wl}-z,text'
8582 allow_undefined_flag
='${wl}-z,nodefs'
8583 archive_cmds_need_lc
=no
8584 hardcode_shlibpath_var
=no
8585 hardcode_libdir_flag_spec
='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8586 hardcode_libdir_separator
=':'
8587 link_all_deplibs
=yes
8588 export_dynamic_flag_spec
='${wl}-Bexport'
8589 runpath_var
='LD_RUN_PATH'
8591 if test "$GCC" = yes; then
8592 archive_cmds
='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8593 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8595 archive_cmds
='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8596 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8601 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8602 hardcode_libdir_flag_spec
='-L$libdir'
8603 hardcode_shlibpath_var
=no
8612 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8613 echo "${ECHO_T}$ld_shlibs" >&6; }
8614 test "$ld_shlibs" = no
&& can_build_shared
=no
8617 # Do we need to explicitly link libc?
8619 case "x$archive_cmds_need_lc" in
8621 # Assume -lc should be added
8622 archive_cmds_need_lc
=yes
8624 if test "$enable_shared" = yes && test "$GCC" = yes; then
8625 case $archive_cmds in
8627 # FIXME: we may have to deal with multi-command sequences.
8630 # Test whether the compiler implicitly links with -lc since on some
8631 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8632 # to ld, don't add -lc before -lgcc.
8633 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8634 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8636 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
8638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8639 (eval $ac_compile) 2>&5
8641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8642 (exit $ac_status); } 2>conftest.err
; then
8645 libobjs
=conftest.
$ac_objext
8647 wl
=$lt_prog_compiler_wl
8648 pic_flag
=$lt_prog_compiler_pic
8654 lt_save_allow_undefined_flag
=$allow_undefined_flag
8655 allow_undefined_flag
=
8656 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8657 (eval $archive_cmds 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
8659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8660 (exit $ac_status); }
8662 archive_cmds_need_lc
=no
8664 archive_cmds_need_lc
=yes
8666 allow_undefined_flag
=$lt_save_allow_undefined_flag
8668 cat conftest.err
1>&5
8671 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8672 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8679 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8680 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8682 libname_spec
='lib$name'
8690 shlibpath_overrides_runpath
=unknown
8692 dynamic_linker
="$host_os ld.so"
8693 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
8694 if test "$GCC" = yes; then
8695 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8696 if echo "$sys_lib_search_path_spec" |
grep ';' >/dev
/null
; then
8697 # if the path contains ";" then we assume it to be the separator
8698 # otherwise default to the standard path separator (i.e. ":") - it is
8699 # assumed that no part of a normal pathname contains ";" but that should
8700 # okay in the real world where ";" in dirpaths is itself problematic.
8701 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8703 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8706 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
8708 need_lib_prefix
=unknown
8709 hardcode_into_libs
=no
8711 # when you set need_version to no, make sure it does not cause -set_version
8712 # flags to be left without arguments
8713 need_version
=unknown
8718 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
8719 shlibpath_var
=LIBPATH
8721 # AIX 3 has no versioning support, so we append a major version to the name.
8722 soname_spec
='${libname}${release}${shared_ext}$major'
8729 hardcode_into_libs
=yes
8730 if test "$host_cpu" = ia64
; then
8731 # AIX 5 supports IA64
8732 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8733 shlibpath_var
=LD_LIBRARY_PATH
8735 # With GCC up to 2.95.x, collect2 would create an import file
8736 # for dependence libraries. The import file would start with
8737 # the line `#! .'. This would cause the generated library to
8738 # depend on `.', always an invalid library. This was fixed in
8739 # development snapshots of GCC prior to 3.0.
8741 aix4 | aix4.
[01] | aix4.
[01].
*)
8742 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8744 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
8751 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8752 # soname into executable. Probably we can add versioning support to
8753 # collect2, so additional links can be useful in future.
8754 if test "$aix_use_runtimelinking" = yes; then
8755 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8756 # instead of lib<name>.a to let people know that these are not
8757 # typical AIX shared libraries.
8758 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8760 # We preserve .a as extension for shared libraries through AIX4.2
8761 # and later when we are not doing run time linking.
8762 library_names_spec
='${libname}${release}.a $libname.a'
8763 soname_spec
='${libname}${release}${shared_ext}$major'
8765 shlibpath_var
=LIBPATH
8770 library_names_spec
='$libname.ixlibrary $libname.a'
8771 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8772 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'
8776 library_names_spec
='${libname}${shared_ext}'
8777 dynamic_linker
="$host_os ld.so"
8778 shlibpath_var
=LIBRARY_PATH
8784 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8785 soname_spec
='${libname}${release}${shared_ext}$major'
8786 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
8787 shlibpath_var
=LD_LIBRARY_PATH
8788 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8789 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
8790 # the default ld.so.conf also contains /usr/contrib/lib and
8791 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8792 # libtool to hard-code these into programs
8795 cygwin
* | mingw
* | pw32
*)
8796 version_type
=windows
8801 case $GCC,$host_os in
8802 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
8803 library_names_spec
='$libname.dll.a'
8804 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8805 postinstall_cmds
='base_file=`basename \${file}`~
8806 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8807 dldir=$destdir/`dirname \$dlpath`~
8808 test -d \$dldir || mkdir -p \$dldir~
8809 $install_prog $dir/$dlname \$dldir/$dlname~
8810 chmod a+x \$dldir/$dlname'
8811 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8812 dlpath=$dir/\$dldll~
8814 shlibpath_overrides_runpath
=yes
8818 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8819 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8820 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
8823 # MinGW DLLs use traditional 'lib' prefix
8824 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8825 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8826 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
8827 # It is most probably a Windows format PATH printed by
8828 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8829 # path with ; separators, and with drive letters. We can handle the
8830 # drive letters (cygwin fileutils understands them), so leave them,
8831 # especially as we might pass files found there to a mingw objdump,
8832 # which wouldn't understand a cygwinified path. Ahh.
8833 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8835 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8839 # pw32 DLLs use 'pw' prefix rather than 'lib'
8840 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8846 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8849 dynamic_linker
='Win32 ld.exe'
8850 # FIXME: first we should search . and the directory the executable is in
8854 darwin
* | rhapsody
*)
8855 dynamic_linker
="$host_os dyld"
8859 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8860 soname_spec
='${libname}${release}${major}$shared_ext'
8861 shlibpath_overrides_runpath
=yes
8862 shlibpath_var
=DYLD_LIBRARY_PATH
8863 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
8864 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8865 if test "$GCC" = yes; then
8866 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"`
8868 sys_lib_search_path_spec
='/lib /usr/lib /usr/local/lib'
8870 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
8877 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8878 soname_spec
='${libname}${release}${shared_ext}$major'
8879 shlibpath_var
=LD_LIBRARY_PATH
8886 freebsd
* | dragonfly
*)
8887 # DragonFly does not have aout. When/if they implement a new
8888 # versioning mechanism, adjust this.
8889 if test -x /usr
/bin
/objformat
; then
8890 objformat
=`/usr/bin/objformat`
8893 freebsd
[123]*) objformat
=aout
;;
8897 version_type
=freebsd-
$objformat
8898 case $version_type in
8900 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8905 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8909 shlibpath_var
=LD_LIBRARY_PATH
8912 shlibpath_overrides_runpath
=yes
8914 freebsd3.
[01]* | freebsdelf3.
[01]*)
8915 shlibpath_overrides_runpath
=yes
8916 hardcode_into_libs
=yes
8918 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
8919 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
8920 shlibpath_overrides_runpath
=no
8921 hardcode_into_libs
=yes
8923 freebsd
*) # from 4.6 on
8924 shlibpath_overrides_runpath
=yes
8925 hardcode_into_libs
=yes
8934 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8935 soname_spec
='${libname}${release}${shared_ext}$major'
8936 shlibpath_var
=LD_LIBRARY_PATH
8937 hardcode_into_libs
=yes
8940 hpux9
* | hpux10
* | hpux11
*)
8941 # Give a soname corresponding to the major version so that dld.sl refuses to
8942 # link against other versions.
8949 hardcode_into_libs
=yes
8950 dynamic_linker
="$host_os dld.so"
8951 shlibpath_var
=LD_LIBRARY_PATH
8952 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
8953 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8954 soname_spec
='${libname}${release}${shared_ext}$major'
8955 if test "X$HPUX_IA64_MODE" = X32
; then
8956 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8958 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
8960 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
8964 hardcode_into_libs
=yes
8965 dynamic_linker
="$host_os dld.sl"
8966 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
8967 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
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'
8970 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8971 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
8975 dynamic_linker
="$host_os dld.sl"
8976 shlibpath_var
=SHLIB_PATH
8977 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
8978 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8979 soname_spec
='${libname}${release}${shared_ext}$major'
8982 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8983 postinstall_cmds
='chmod 555 $lib'
8990 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8991 soname_spec
='${libname}${release}${shared_ext}$major'
8992 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
8993 shlibpath_var
=LD_LIBRARY_PATH
8994 shlibpath_overrides_runpath
=no
8995 hardcode_into_libs
=yes
8998 irix5
* | irix6
* | nonstopux
*)
9000 nonstopux
*) version_type
=nonstopux
;;
9002 if test "$lt_cv_prog_gnu_ld" = yes; then
9010 soname_spec
='${libname}${release}${shared_ext}$major'
9011 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9013 irix5
* | nonstopux
*)
9017 case $LD in # libtool.m4 will add one of these switches to LD
9018 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
9019 libsuff
= shlibsuff
= libmagic
=32-bit;;
9020 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
9021 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
9022 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
9023 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
9024 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
9028 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
9029 shlibpath_overrides_runpath
=no
9030 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9031 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
9032 hardcode_into_libs
=yes
9035 # No shared lib support for Linux oldld, aout, or coff.
9036 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
9040 # This must be Linux ELF.
9041 linux
* | k
*bsd
*-gnu)
9045 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9046 soname_spec
='${libname}${release}${shared_ext}$major'
9047 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9048 shlibpath_var
=LD_LIBRARY_PATH
9049 shlibpath_overrides_runpath
=no
9050 # This implies no fast_install, which is unacceptable.
9051 # Some rework will be needed to allow for fast_install
9052 # before this can be enabled.
9053 hardcode_into_libs
=yes
9055 # Append ld.so.conf contents to the search path
9056 if test -f /etc
/ld.so.conf
; then
9057 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' ' '`
9058 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
9061 # We used to test for /lib/ld.so.1 and disable shared libraries on
9062 # powerpc, because MkLinux only supported shared libraries with the
9063 # GNU dynamic linker. Since this was broken with cross compilers,
9064 # most powerpc-linux boxes support dynamic linking these days and
9065 # people can always --disable-shared, the test was removed, and we
9066 # assume the GNU/Linux dynamic linker is in use.
9067 dynamic_linker
='GNU/Linux ld.so'
9074 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9075 soname_spec
='${libname}${release}${shared_ext}$major'
9076 shlibpath_var
=LD_LIBRARY_PATH
9077 shlibpath_overrides_runpath
=no
9078 hardcode_into_libs
=yes
9079 dynamic_linker
='NetBSD ld.elf_so'
9086 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
9087 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9088 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9089 dynamic_linker
='NetBSD (a.out) ld.so'
9091 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9092 soname_spec
='${libname}${release}${shared_ext}$major'
9093 dynamic_linker
='NetBSD ld.elf_so'
9095 shlibpath_var
=LD_LIBRARY_PATH
9096 shlibpath_overrides_runpath
=yes
9097 hardcode_into_libs
=yes
9102 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9103 shlibpath_var
=LD_LIBRARY_PATH
9104 shlibpath_overrides_runpath
=yes
9111 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9112 soname_spec
='${libname}${release}${shared_ext}$major'
9113 shlibpath_var
=LD_LIBRARY_PATH
9114 shlibpath_overrides_runpath
=yes
9119 sys_lib_dlsearch_path_spec
="/usr/lib"
9121 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9123 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
9124 *) need_version
=no
;;
9126 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9127 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9128 shlibpath_var
=LD_LIBRARY_PATH
9129 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9131 openbsd2.
[89] | openbsd2.
[89].
*)
9132 shlibpath_overrides_runpath
=no
9135 shlibpath_overrides_runpath
=yes
9139 shlibpath_overrides_runpath
=yes
9144 libname_spec
='$name'
9147 library_names_spec
='$libname${shared_ext} $libname.a'
9148 dynamic_linker
='OS/2 ld.exe'
9149 shlibpath_var
=LIBPATH
9152 osf3
* | osf4
* | osf5
*)
9156 soname_spec
='${libname}${release}${shared_ext}$major'
9157 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9158 shlibpath_var
=LD_LIBRARY_PATH
9159 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9160 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
9167 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9168 soname_spec
='${libname}${release}${shared_ext}$major'
9169 shlibpath_var
=LD_LIBRARY_PATH
9170 shlibpath_overrides_runpath
=yes
9171 hardcode_into_libs
=yes
9172 # ldd complains unless libraries are executable
9173 postinstall_cmds
='chmod +x $lib'
9178 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9179 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9180 shlibpath_var
=LD_LIBRARY_PATH
9181 shlibpath_overrides_runpath
=yes
9182 if test "$with_gnu_ld" = yes; then
9190 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9191 soname_spec
='${libname}${release}${shared_ext}$major'
9192 shlibpath_var
=LD_LIBRARY_PATH
9193 case $host_vendor in
9195 shlibpath_overrides_runpath
=no
9197 export_dynamic_flag_spec
='${wl}-Blargedynsym'
9198 runpath_var
=LD_RUN_PATH
9206 shlibpath_overrides_runpath
=no
9207 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
9213 if test -d /usr
/nec
;then
9215 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9216 soname_spec
='$libname${shared_ext}.$major'
9217 shlibpath_var
=LD_LIBRARY_PATH
9221 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
9222 version_type
=freebsd-elf
9225 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9226 soname_spec
='${libname}${release}${shared_ext}$major'
9227 shlibpath_var
=LD_LIBRARY_PATH
9228 hardcode_into_libs
=yes
9229 if test "$with_gnu_ld" = yes; then
9230 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9231 shlibpath_overrides_runpath
=no
9233 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
9234 shlibpath_overrides_runpath
=yes
9237 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
9241 sys_lib_dlsearch_path_spec
='/usr/lib'
9246 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9247 soname_spec
='${libname}${release}${shared_ext}$major'
9248 shlibpath_var
=LD_LIBRARY_PATH
9255 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9256 echo "${ECHO_T}$dynamic_linker" >&6; }
9257 test "$dynamic_linker" = no
&& can_build_shared
=no
9259 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
9260 if test "$GCC" = yes; then
9261 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9264 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9265 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9267 if test -n "$hardcode_libdir_flag_spec" || \
9268 test -n "$runpath_var" || \
9269 test "X$hardcode_automatic" = "Xyes" ; then
9271 # We can hardcode non-existant directories.
9272 if test "$hardcode_direct" != no
&&
9273 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9274 # have to relink, otherwise we might link with an installed library
9275 # when we should be linking with a yet-to-be-installed one
9276 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9277 test "$hardcode_minus_L" != no
; then
9278 # Linking always hardcodes the temporary library directory.
9279 hardcode_action
=relink
9281 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9282 hardcode_action
=immediate
9285 # We cannot hardcode anything, or else we can only hardcode existing
9287 hardcode_action
=unsupported
9289 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9290 echo "${ECHO_T}$hardcode_action" >&6; }
9292 if test "$hardcode_action" = relink
; then
9293 # Fast installation is not supported
9294 enable_fast_install
=no
9295 elif test "$shlibpath_overrides_runpath" = yes ||
9296 test "$enable_shared" = no
; then
9297 # Fast installation is not necessary
9298 enable_fast_install
=needless
9303 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9304 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9305 if test -n "$STRIP" && $STRIP -V 2>&1 |
grep "GNU strip" >/dev
/null
; then
9306 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
9307 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
9308 { echo "$as_me:$LINENO: result: yes" >&5
9309 echo "${ECHO_T}yes" >&6; }
9311 # FIXME - insert some real tests, host_os isn't really good enough
9314 if test -n "$STRIP" ; then
9315 striplib
="$STRIP -x"
9316 { echo "$as_me:$LINENO: result: yes" >&5
9317 echo "${ECHO_T}yes" >&6; }
9319 { echo "$as_me:$LINENO: result: no" >&5
9320 echo "${ECHO_T}no" >&6; }
9324 { echo "$as_me:$LINENO: result: no" >&5
9325 echo "${ECHO_T}no" >&6; }
9330 if test "x$enable_dlopen" != xyes
; then
9331 enable_dlopen
=unknown
9332 enable_dlopen_self
=unknown
9333 enable_dlopen_self_static
=unknown
9340 lt_cv_dlopen
="load_add_on"
9342 lt_cv_dlopen_self
=yes
9346 lt_cv_dlopen
="LoadLibrary"
9351 lt_cv_dlopen
="dlopen"
9356 # if libdl is installed we need to link against it
9357 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9358 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9359 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9360 echo $ECHO_N "(cached) $ECHO_C" >&6
9362 ac_check_lib_save_LIBS
=$LIBS
9364 cat >conftest.
$ac_ext <<_ACEOF
9367 cat confdefs.h
>>conftest.
$ac_ext
9368 cat >>conftest.
$ac_ext <<_ACEOF
9369 /* end confdefs.h. */
9371 /* Override any GCC internal prototype to avoid an error.
9372 Use char because int might match the return type of a GCC
9373 builtin and then its argument prototype would still apply. */
9386 rm -f conftest.
$ac_objext conftest
$ac_exeext
9387 if { (ac_try
="$ac_link"
9389 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9390 *) ac_try_echo=$ac_try;;
9392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9393 (eval "$ac_link") 2>conftest.er1
9395 grep -v '^ *+' conftest.er1 >conftest.err
9397 cat conftest.err >&5
9398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9399 (exit $ac_status); } && {
9400 test -z "$ac_c_werror_flag" ||
9401 test ! -s conftest.err
9402 } && test -s conftest$ac_exeext &&
9403 $as_test_x conftest$ac_exeext; then
9404 ac_cv_lib_dl_dlopen=yes
9406 echo "$as_me: failed program was:" >&5
9407 sed 's/^/| /' conftest.$ac_ext >&5
9409 ac_cv_lib_dl_dlopen=no
9412 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9413 conftest$ac_exeext conftest.$ac_ext
9414 LIBS=$ac_check_lib_save_LIBS
9416 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9417 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9418 if test $ac_cv_lib_dl_dlopen = yes; then
9419 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9424 lt_cv_dlopen_self=yes
9431 { echo "$as_me:$LINENO: checking for shl_load" >&5
9432 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9433 if test "${ac_cv_func_shl_load+set}" = set; then
9434 echo $ECHO_N "(cached) $ECHO_C" >&6
9436 cat >conftest.$ac_ext <<_ACEOF
9439 cat confdefs.h >>conftest.$ac_ext
9440 cat >>conftest.$ac_ext <<_ACEOF
9441 /* end confdefs.h. */
9442 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9443 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9444 #define shl_load innocuous_shl_load
9446 /* System header to define __stub macros and hopefully few prototypes,
9447 which can conflict with char shl_load (); below.
9448 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9449 <limits.h> exists even on freestanding compilers. */
9452 # include <limits.h>
9454 # include <assert.h>
9459 /* Override any GCC internal prototype to avoid an error.
9460 Use char because int might match the return type of a GCC
9461 builtin and then its argument prototype would still apply. */
9466 /* The GNU C library defines this for functions which it implements
9467 to always fail with ENOSYS. Some functions are actually named
9468 something starting with __ and the normal name is an alias. */
9469 #if defined __stub_shl_load || defined __stub___shl_load
9481 rm -f conftest.$ac_objext conftest$ac_exeext
9482 if { (ac_try="$ac_link"
9484 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9485 *) ac_try_echo
=$ac_try;;
9487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9488 (eval "$ac_link") 2>conftest.er1
9490 grep -v '^ *+' conftest.er1
>conftest.err
9492 cat conftest.err
>&5
9493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9494 (exit $ac_status); } && {
9495 test -z "$ac_c_werror_flag" ||
9496 test ! -s conftest.err
9497 } && test -s conftest
$ac_exeext &&
9498 $as_test_x conftest
$ac_exeext; then
9499 ac_cv_func_shl_load
=yes
9501 echo "$as_me: failed program was:" >&5
9502 sed 's/^/| /' conftest.
$ac_ext >&5
9504 ac_cv_func_shl_load
=no
9507 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9508 conftest
$ac_exeext conftest.
$ac_ext
9510 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9511 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9512 if test $ac_cv_func_shl_load = yes; then
9513 lt_cv_dlopen
="shl_load"
9515 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9516 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9517 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9518 echo $ECHO_N "(cached) $ECHO_C" >&6
9520 ac_check_lib_save_LIBS
=$LIBS
9522 cat >conftest.
$ac_ext <<_ACEOF
9525 cat confdefs.h
>>conftest.
$ac_ext
9526 cat >>conftest.
$ac_ext <<_ACEOF
9527 /* end confdefs.h. */
9529 /* Override any GCC internal prototype to avoid an error.
9530 Use char because int might match the return type of a GCC
9531 builtin and then its argument prototype would still apply. */
9544 rm -f conftest.
$ac_objext conftest
$ac_exeext
9545 if { (ac_try
="$ac_link"
9547 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9548 *) ac_try_echo=$ac_try;;
9550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9551 (eval "$ac_link") 2>conftest.er1
9553 grep -v '^ *+' conftest.er1 >conftest.err
9555 cat conftest.err >&5
9556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9557 (exit $ac_status); } && {
9558 test -z "$ac_c_werror_flag" ||
9559 test ! -s conftest.err
9560 } && test -s conftest$ac_exeext &&
9561 $as_test_x conftest$ac_exeext; then
9562 ac_cv_lib_dld_shl_load=yes
9564 echo "$as_me: failed program was:" >&5
9565 sed 's/^/| /' conftest.$ac_ext >&5
9567 ac_cv_lib_dld_shl_load=no
9570 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9571 conftest$ac_exeext conftest.$ac_ext
9572 LIBS=$ac_check_lib_save_LIBS
9574 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9575 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9576 if test $ac_cv_lib_dld_shl_load = yes; then
9577 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9579 { echo "$as_me:$LINENO: checking for dlopen" >&5
9580 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9581 if test "${ac_cv_func_dlopen+set}" = set; then
9582 echo $ECHO_N "(cached) $ECHO_C" >&6
9584 cat >conftest.$ac_ext <<_ACEOF
9587 cat confdefs.h >>conftest.$ac_ext
9588 cat >>conftest.$ac_ext <<_ACEOF
9589 /* end confdefs.h. */
9590 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9591 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9592 #define dlopen innocuous_dlopen
9594 /* System header to define __stub macros and hopefully few prototypes,
9595 which can conflict with char dlopen (); below.
9596 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9597 <limits.h> exists even on freestanding compilers. */
9600 # include <limits.h>
9602 # include <assert.h>
9607 /* Override any GCC internal prototype to avoid an error.
9608 Use char because int might match the return type of a GCC
9609 builtin and then its argument prototype would still apply. */
9614 /* The GNU C library defines this for functions which it implements
9615 to always fail with ENOSYS. Some functions are actually named
9616 something starting with __ and the normal name is an alias. */
9617 #if defined __stub_dlopen || defined __stub___dlopen
9629 rm -f conftest.$ac_objext conftest$ac_exeext
9630 if { (ac_try="$ac_link"
9632 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9633 *) ac_try_echo
=$ac_try;;
9635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9636 (eval "$ac_link") 2>conftest.er1
9638 grep -v '^ *+' conftest.er1
>conftest.err
9640 cat conftest.err
>&5
9641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9642 (exit $ac_status); } && {
9643 test -z "$ac_c_werror_flag" ||
9644 test ! -s conftest.err
9645 } && test -s conftest
$ac_exeext &&
9646 $as_test_x conftest
$ac_exeext; then
9647 ac_cv_func_dlopen
=yes
9649 echo "$as_me: failed program was:" >&5
9650 sed 's/^/| /' conftest.
$ac_ext >&5
9652 ac_cv_func_dlopen
=no
9655 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9656 conftest
$ac_exeext conftest.
$ac_ext
9658 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9659 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9660 if test $ac_cv_func_dlopen = yes; then
9661 lt_cv_dlopen
="dlopen"
9663 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9664 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9665 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9666 echo $ECHO_N "(cached) $ECHO_C" >&6
9668 ac_check_lib_save_LIBS
=$LIBS
9670 cat >conftest.
$ac_ext <<_ACEOF
9673 cat confdefs.h
>>conftest.
$ac_ext
9674 cat >>conftest.
$ac_ext <<_ACEOF
9675 /* end confdefs.h. */
9677 /* Override any GCC internal prototype to avoid an error.
9678 Use char because int might match the return type of a GCC
9679 builtin and then its argument prototype would still apply. */
9692 rm -f conftest.
$ac_objext conftest
$ac_exeext
9693 if { (ac_try
="$ac_link"
9695 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9696 *) ac_try_echo=$ac_try;;
9698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9699 (eval "$ac_link") 2>conftest.er1
9701 grep -v '^ *+' conftest.er1 >conftest.err
9703 cat conftest.err >&5
9704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9705 (exit $ac_status); } && {
9706 test -z "$ac_c_werror_flag" ||
9707 test ! -s conftest.err
9708 } && test -s conftest$ac_exeext &&
9709 $as_test_x conftest$ac_exeext; then
9710 ac_cv_lib_dl_dlopen=yes
9712 echo "$as_me: failed program was:" >&5
9713 sed 's/^/| /' conftest.$ac_ext >&5
9715 ac_cv_lib_dl_dlopen=no
9718 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9719 conftest$ac_exeext conftest.$ac_ext
9720 LIBS=$ac_check_lib_save_LIBS
9722 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9723 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9724 if test $ac_cv_lib_dl_dlopen = yes; then
9725 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9727 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9728 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9729 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9730 echo $ECHO_N "(cached) $ECHO_C" >&6
9732 ac_check_lib_save_LIBS=$LIBS
9734 cat >conftest.$ac_ext <<_ACEOF
9737 cat confdefs.h >>conftest.$ac_ext
9738 cat >>conftest.$ac_ext <<_ACEOF
9739 /* end confdefs.h. */
9741 /* Override any GCC internal prototype to avoid an error.
9742 Use char because int might match the return type of a GCC
9743 builtin and then its argument prototype would still apply. */
9756 rm -f conftest.$ac_objext conftest$ac_exeext
9757 if { (ac_try="$ac_link"
9759 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9760 *) ac_try_echo
=$ac_try;;
9762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9763 (eval "$ac_link") 2>conftest.er1
9765 grep -v '^ *+' conftest.er1
>conftest.err
9767 cat conftest.err
>&5
9768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9769 (exit $ac_status); } && {
9770 test -z "$ac_c_werror_flag" ||
9771 test ! -s conftest.err
9772 } && test -s conftest
$ac_exeext &&
9773 $as_test_x conftest
$ac_exeext; then
9774 ac_cv_lib_svld_dlopen
=yes
9776 echo "$as_me: failed program was:" >&5
9777 sed 's/^/| /' conftest.
$ac_ext >&5
9779 ac_cv_lib_svld_dlopen
=no
9782 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9783 conftest
$ac_exeext conftest.
$ac_ext
9784 LIBS
=$ac_check_lib_save_LIBS
9786 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9787 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9788 if test $ac_cv_lib_svld_dlopen = yes; then
9789 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
9791 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9792 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9793 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9794 echo $ECHO_N "(cached) $ECHO_C" >&6
9796 ac_check_lib_save_LIBS
=$LIBS
9798 cat >conftest.
$ac_ext <<_ACEOF
9801 cat confdefs.h
>>conftest.
$ac_ext
9802 cat >>conftest.
$ac_ext <<_ACEOF
9803 /* end confdefs.h. */
9805 /* Override any GCC internal prototype to avoid an error.
9806 Use char because int might match the return type of a GCC
9807 builtin and then its argument prototype would still apply. */
9820 rm -f conftest.
$ac_objext conftest
$ac_exeext
9821 if { (ac_try
="$ac_link"
9823 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9824 *) ac_try_echo=$ac_try;;
9826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9827 (eval "$ac_link") 2>conftest.er1
9829 grep -v '^ *+' conftest.er1 >conftest.err
9831 cat conftest.err >&5
9832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9833 (exit $ac_status); } && {
9834 test -z "$ac_c_werror_flag" ||
9835 test ! -s conftest.err
9836 } && test -s conftest$ac_exeext &&
9837 $as_test_x conftest$ac_exeext; then
9838 ac_cv_lib_dld_dld_link=yes
9840 echo "$as_me: failed program was:" >&5
9841 sed 's/^/| /' conftest.$ac_ext >&5
9843 ac_cv_lib_dld_dld_link=no
9846 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9847 conftest$ac_exeext conftest.$ac_ext
9848 LIBS=$ac_check_lib_save_LIBS
9850 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9851 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9852 if test $ac_cv_lib_dld_dld_link = yes; then
9853 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9874 if test "x$lt_cv_dlopen" != xno; then
9880 case $lt_cv_dlopen in
9882 save_CPPFLAGS="$CPPFLAGS"
9883 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9885 save_LDFLAGS="$LDFLAGS"
9886 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9889 LIBS="$lt_cv_dlopen_libs $LIBS"
9891 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9892 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9893 if test "${lt_cv_dlopen_self+set}" = set; then
9894 echo $ECHO_N "(cached) $ECHO_C" >&6
9896 if test "$cross_compiling" = yes; then :
9897 lt_cv_dlopen_self=cross
9899 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9900 lt_status=$lt_dlunknown
9901 cat > conftest.$ac_ext <<EOF
9902 #line 9902 "configure"
9903 #include "confdefs.h"
9912 # define LT_DLGLOBAL RTLD_GLOBAL
9915 # define LT_DLGLOBAL DL_GLOBAL
9917 # define LT_DLGLOBAL 0
9921 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9922 find out it does not work in some platform. */
9923 #ifndef LT_DLLAZY_OR_NOW
9925 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9928 # define LT_DLLAZY_OR_NOW DL_LAZY
9931 # define LT_DLLAZY_OR_NOW RTLD_NOW
9934 # define LT_DLLAZY_OR_NOW DL_NOW
9936 # define LT_DLLAZY_OR_NOW 0
9944 extern "C" void exit (int);
9947 void fnord() { int i=42;}
9950 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9951 int status = $lt_dlunknown;
9955 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9956 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9957 /* dlclose (self); */
9965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9966 (eval $ac_link) 2>&5
9968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9969 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9970 (./conftest; exit; ) >&5 2>/dev/null
9973 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9974 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9975 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9978 # compilation failed
9979 lt_cv_dlopen_self=no
9986 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9987 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
9989 if test "x$lt_cv_dlopen_self" = xyes; then
9990 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9991 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9992 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
9993 if test "${lt_cv_dlopen_self_static+set}" = set; then
9994 echo $ECHO_N "(cached) $ECHO_C" >&6
9996 if test "$cross_compiling" = yes; then :
9997 lt_cv_dlopen_self_static=cross
9999 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10000 lt_status=$lt_dlunknown
10001 cat > conftest.$ac_ext <<EOF
10002 #line 10002 "configure"
10003 #include "confdefs.h"
10012 # define LT_DLGLOBAL RTLD_GLOBAL
10015 # define LT_DLGLOBAL DL_GLOBAL
10017 # define LT_DLGLOBAL 0
10021 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10022 find out it does not work in some platform. */
10023 #ifndef LT_DLLAZY_OR_NOW
10025 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10028 # define LT_DLLAZY_OR_NOW DL_LAZY
10031 # define LT_DLLAZY_OR_NOW RTLD_NOW
10034 # define LT_DLLAZY_OR_NOW DL_NOW
10036 # define LT_DLLAZY_OR_NOW 0
10044 extern "C" void exit (int);
10047 void fnord() { int i=42;}
10050 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10051 int status = $lt_dlunknown;
10055 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10056 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10057 /* dlclose (self); */
10065 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10066 (eval $ac_link) 2>&5
10068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10069 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10070 (./conftest; exit; ) >&5 2>/dev/null
10072 case x$lt_status in
10073 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10074 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10075 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10078 # compilation failed
10079 lt_cv_dlopen_self_static=no
10086 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10087 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10090 CPPFLAGS="$save_CPPFLAGS"
10091 LDFLAGS="$save_LDFLAGS"
10096 case $lt_cv_dlopen_self in
10097 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10098 *) enable_dlopen_self=unknown ;;
10101 case $lt_cv_dlopen_self_static in
10102 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10103 *) enable_dlopen_self_static=unknown ;;
10108 # Report which library types will actually be built
10109 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10110 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10111 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10112 echo "${ECHO_T}$can_build_shared" >&6; }
10114 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10115 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10116 test "$can_build_shared" = "no" && enable_shared=no
10118 # On AIX, shared libraries and static libraries use the same namespace, and
10119 # are all built from PIC.
10122 test "$enable_shared" = yes && enable_static=no
10123 if test -n "$RANLIB"; then
10124 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10125 postinstall_cmds='$RANLIB $lib'
10130 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10131 test "$enable_shared" = yes && enable_static=no
10135 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10136 echo "${ECHO_T}$enable_shared" >&6; }
10138 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10139 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10140 # Make sure either enable_shared or enable_static is yes.
10141 test "$enable_shared" = yes || enable_static=yes
10142 { echo "$as_me:$LINENO: result: $enable_static" >&5
10143 echo "${ECHO_T}$enable_static" >&6; }
10145 # The else clause should only fire when bootstrapping the
10146 # libtool distribution, otherwise you forgot to ship ltmain.sh
10147 # with your package, and you will get complaints that there are
10148 # no rules to generate ltmain.sh.
10149 if test -f "$ltmain"; then
10150 # See if we are running on zsh, and set the options which allow our commands through
10151 # without removal of \ escapes.
10152 if test -n "${ZSH_VERSION+set}" ; then
10153 setopt NO_GLOB_SUBST
10155 # Now quote all the things that may contain metacharacters while being
10156 # careful not to overquote the AC_SUBSTed values. We take copies of the
10157 # variables and quote the copies for generation of the libtool script.
10158 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10160 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10161 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10162 deplibs_check_method reload_flag reload_cmds need_locks \
10163 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10164 lt_cv_sys_global_symbol_to_c_name_address \
10165 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10166 old_postinstall_cmds old_postuninstall_cmds \
10170 lt_prog_compiler_wl \
10171 lt_prog_compiler_pic \
10172 lt_prog_compiler_static \
10173 lt_prog_compiler_no_builtin_flag \
10174 export_dynamic_flag_spec \
10175 thread_safe_flag_spec \
10176 whole_archive_flag_spec \
10177 enable_shared_with_static_runtimes \
10179 old_archive_from_new_cmds \
10184 compiler_lib_search_path \
10186 archive_expsym_cmds \
10188 postuninstall_cmds \
10189 old_archive_from_expsyms_cmds \
10190 allow_undefined_flag \
10191 no_undefined_flag \
10192 export_symbols_cmds \
10193 hardcode_libdir_flag_spec \
10194 hardcode_libdir_flag_spec_ld \
10195 hardcode_libdir_separator \
10196 hardcode_automatic \
10198 module_expsym_cmds \
10199 lt_cv_prog_compiler_c_o \
10201 include_expsyms; do
10204 old_archive_cmds | \
10205 old_archive_from_new_cmds | \
10207 archive_expsym_cmds | \
10209 module_expsym_cmds | \
10210 old_archive_from_expsyms_cmds | \
10211 export_symbols_cmds | \
10212 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10213 postinstall_cmds | postuninstall_cmds | \
10214 old_postinstall_cmds | old_postuninstall_cmds | \
10215 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10216 # Double-quote double-evaled strings.
10217 eval "lt_$var=\\\"\`\
$echo \"X\$
$var\" | \
$Xsed -e \"\
$double_quote_subst\" -e \"\
$sed_quote_subst\" -e \"\
$delay_variable_subst\"\
`\\\""
10220 eval "lt_$var=\\\"\`\
$echo \"X\$
$var\" | \
$Xsed -e \"\
$sed_quote_subst\"\
`\\\""
10226 *'\$0 --fallback-echo"')
10227 lt_echo=`$echo "X$lt_echo" |
$Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10231 cfgfile="${ofile}T"
10232 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10234 { echo "$as_me:$LINENO: creating $ofile" >&5
10235 echo "$as_me: creating $ofile" >&6;}
10237 cat <<__EOF__ >> "$cfgfile"
10240 # `$echo "$cfgfile" |
sed 's%^.*/%%'` - Provide generalized library-building support services.
10241 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10242 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10244 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10245 # Free Software Foundation, Inc.
10247 # This file is part of GNU Libtool:
10248 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10250 # This program is free software; you can redistribute it and/or modify
10251 # it under the terms of the GNU General Public License as published by
10252 # the Free Software Foundation; either version 2 of the License, or
10253 # (at your option) any later version.
10255 # This program is distributed in the hope that it will be useful, but
10256 # WITHOUT ANY WARRANTY; without even the implied warranty of
10257 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10258 # General Public License for more details.
10260 # You should have received a copy of the GNU General Public License
10261 # along with this program; if not, write to the Free Software
10262 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10264 # As a special exception to the GNU General Public License, if you
10265 # distribute this file as part of a program that contains a
10266 # configuration script generated by Autoconf, you may include it under
10267 # the same distribution terms that you use for the rest of that program.
10269 # A sed program that does not truncate output.
10272 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10273 Xsed="$SED -e 1s/^X//"
10275 # The HP-UX ksh and POSIX shell print the target directory to stdout
10276 # if CDPATH is set.
10277 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10279 # The names of the tagged configurations supported by this script.
10282 # ### BEGIN LIBTOOL CONFIG
10284 # Libtool was configured on host `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`:
10286 # Shell to use when invoking shell scripts.
10289 # Whether or not to build shared libraries.
10290 build_libtool_libs=$enable_shared
10292 # Whether or not to build static libraries.
10293 build_old_libs=$enable_static
10295 # Whether or not to add -lc for building shared libraries.
10296 build_libtool_need_lc=$archive_cmds_need_lc
10298 # Whether or not to disallow shared libs when runtime libs are static
10299 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10301 # Whether or not to optimize for fast installation.
10302 fast_install=$enable_fast_install
10305 host_alias=$host_alias
10309 # The build system.
10310 build_alias=$build_alias
10314 # An echo program that does not interpret backslashes.
10319 AR_FLAGS=$lt_AR_FLAGS
10324 # LTCC compiler flags.
10325 LTCFLAGS=$lt_LTCFLAGS
10327 # A language-specific compiler.
10330 # Is the compiler the GNU C compiler?
10336 # The linker used to build libraries.
10339 # Whether we need hard or soft links.
10342 # A BSD-compatible nm program.
10345 # A symbol stripping program
10348 # Used to examine libraries when file_magic_cmd begins "file"
10349 MAGIC_CMD=$MAGIC_CMD
10351 # Used on cygwin: DLL creation program.
10354 # Used on cygwin: object dumper.
10357 # Used on cygwin: assembler.
10360 # The name of the directory that contains temporary libtool files.
10363 # How to create reloadable object files.
10364 reload_flag=$lt_reload_flag
10365 reload_cmds=$lt_reload_cmds
10367 # How to pass a linker flag through the compiler.
10368 wl=$lt_lt_prog_compiler_wl
10370 # Object file suffix (normally "o").
10371 objext="$ac_objext"
10373 # Old archive suffix (normally "a").
10376 # Shared library suffix (normally ".so").
10377 shrext_cmds='$shrext_cmds'
10379 # Executable file suffix (normally "").
10382 # Additional compiler flags for building library objects.
10383 pic_flag=$lt_lt_prog_compiler_pic
10386 # What is the maximum length of a command?
10387 max_cmd_len=$lt_cv_sys_max_cmd_len
10389 # Does compiler simultaneously support -c and -o options?
10390 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10392 # Must we lock files when doing compilation?
10393 need_locks=$lt_need_locks
10395 # Do we need the lib prefix for modules?
10396 need_lib_prefix=$need_lib_prefix
10398 # Do we need a version for libraries?
10399 need_version=$need_version
10401 # Whether dlopen is supported.
10402 dlopen_support=$enable_dlopen
10404 # Whether dlopen of programs is supported.
10405 dlopen_self=$enable_dlopen_self
10407 # Whether dlopen of statically linked programs is supported.
10408 dlopen_self_static=$enable_dlopen_self_static
10410 # Compiler flag to prevent dynamic linking.
10411 link_static_flag=$lt_lt_prog_compiler_static
10413 # Compiler flag to turn off builtin functions.
10414 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10416 # Compiler flag to allow reflexive dlopens.
10417 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10419 # Compiler flag to generate shared objects directly from archives.
10420 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10422 # Compiler flag to generate thread-safe objects.
10423 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10425 # Library versioning type.
10426 version_type=$version_type
10428 # Format of library name prefix.
10429 libname_spec=$lt_libname_spec
10431 # List of archive names. First name is the real one, the rest are links.
10432 # The last name is the one that the linker finds with -lNAME.
10433 library_names_spec=$lt_library_names_spec
10435 # The coded name of the library, if different from the real name.
10436 soname_spec=$lt_soname_spec
10438 # Commands used to build and install an old-style archive.
10440 old_archive_cmds=$lt_old_archive_cmds
10441 old_postinstall_cmds=$lt_old_postinstall_cmds
10442 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10444 # Create an old-style archive from a shared archive.
10445 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10447 # Create a temporary old-style archive to link instead of a shared archive.
10448 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10450 # Commands used to build and install a shared archive.
10451 archive_cmds=$lt_archive_cmds
10452 archive_expsym_cmds=$lt_archive_expsym_cmds
10453 postinstall_cmds=$lt_postinstall_cmds
10454 postuninstall_cmds=$lt_postuninstall_cmds
10456 # Commands used to build a loadable module (assumed same as above if empty)
10457 module_cmds=$lt_module_cmds
10458 module_expsym_cmds=$lt_module_expsym_cmds
10460 # Commands to strip libraries.
10461 old_striplib=$lt_old_striplib
10462 striplib=$lt_striplib
10464 # Dependencies to place before the objects being linked to create a
10466 predep_objects=$lt_predep_objects
10468 # Dependencies to place after the objects being linked to create a
10470 postdep_objects=$lt_postdep_objects
10472 # Dependencies to place before the objects being linked to create a
10474 predeps=$lt_predeps
10476 # Dependencies to place after the objects being linked to create a
10478 postdeps=$lt_postdeps
10480 # The library search path used internally by the compiler when linking
10481 # a shared library.
10482 compiler_lib_search_path=$lt_compiler_lib_search_path
10484 # Method to check whether dependent libraries are shared objects.
10485 deplibs_check_method=$lt_deplibs_check_method
10487 # Command to use when deplibs_check_method == file_magic.
10488 file_magic_cmd=$lt_file_magic_cmd
10490 # Flag that allows shared libraries with undefined symbols to be built.
10491 allow_undefined_flag=$lt_allow_undefined_flag
10493 # Flag that forces no undefined symbols.
10494 no_undefined_flag=$lt_no_undefined_flag
10496 # Commands used to finish a libtool library installation in a directory.
10497 finish_cmds=$lt_finish_cmds
10499 # Same as above, but a single script fragment to be evaled but not shown.
10500 finish_eval=$lt_finish_eval
10502 # Take the output of nm and produce a listing of raw symbols and C names.
10503 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10505 # Transform the output of nm in a proper C declaration
10506 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10508 # Transform the output of nm in a C name address pair
10509 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10511 # This is the shared library runtime path variable.
10512 runpath_var=$runpath_var
10514 # This is the shared library path variable.
10515 shlibpath_var=$shlibpath_var
10517 # Is shlibpath searched before the hard-coded library search path?
10518 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10520 # How to hardcode a shared library path into an executable.
10521 hardcode_action=$hardcode_action
10523 # Whether we should hardcode library paths into libraries.
10524 hardcode_into_libs=$hardcode_into_libs
10526 # Flag to hardcode \$libdir into a binary during linking.
10527 # This must work even if \$libdir does not exist.
10528 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10530 # If ld is used when linking, flag to hardcode \$libdir into
10531 # a binary during linking. This must work even if \$libdir does
10533 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10535 # Whether we need a single -rpath flag with a separated argument.
10536 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10538 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10539 # resulting binary.
10540 hardcode_direct=$hardcode_direct
10542 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10543 # resulting binary.
10544 hardcode_minus_L=$hardcode_minus_L
10546 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10547 # the resulting binary.
10548 hardcode_shlibpath_var=$hardcode_shlibpath_var
10550 # Set to yes if building a shared library automatically hardcodes DIR into the library
10551 # and all subsequent libraries and executables linked against it.
10552 hardcode_automatic=$hardcode_automatic
10554 # Variables whose values should be saved in libtool wrapper scripts and
10555 # restored at relink time.
10556 variables_saved_for_relink="$variables_saved_for_relink"
10558 # Whether libtool must link a program against all its dependency libraries.
10559 link_all_deplibs=$link_all_deplibs
10561 # Compile-time system search path for libraries
10562 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10564 # Run-time system search path for libraries
10565 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10567 # Fix the shell variable \$srcfile for the compiler.
10568 fix_srcfile_path="$fix_srcfile_path"
10570 # Set to yes if exported symbols are required.
10571 always_export_symbols=$always_export_symbols
10573 # The commands to list exported symbols.
10574 export_symbols_cmds=$lt_export_symbols_cmds
10576 # The commands to extract the exported symbol list from a shared archive.
10577 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10579 # Symbols that should not be listed in the preloaded symbols.
10580 exclude_expsyms=$lt_exclude_expsyms
10582 # Symbols that must always be exported.
10583 include_expsyms=$lt_include_expsyms
10585 # ### END LIBTOOL CONFIG
10592 cat <<\EOF >> "$cfgfile"
10594 # AIX sometimes has problems with the GCC collect2 program. For some
10595 # reason, if we set the COLLECT_NAMES environment variable, the problems
10596 # vanish in a puff of smoke.
10597 if test "X${COLLECT_NAMES+set}" != Xset; then
10599 export COLLECT_NAMES
10605 # We use sed instead of cat because bash on DJGPP gets confused if
10606 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10607 # text mode, it properly converts lines to CR/LF. This bash problem
10608 # is reportedly fixed, but why not run on old versions too?
10609 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10611 mv -f "$cfgfile" "$ofile" || \
10612 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10616 # If there is no Makefile yet, we rely on a make rule to execute
10617 # `config.status
--recheck' to rerun these tests and create the
10618 # libtool script then.
10619 ltmain_in=`echo $ltmain | sed -e 's
/\.sh$
/.in
/'`
10620 if test -f "$ltmain_in"; then
10621 test -f Makefile && make "$ltmain"
10627 ac_cpp='$CPP $CPPFLAGS'
10628 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
10629 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
10630 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10635 # Check whether --with-tags was given.
10636 if test "${with_tags+set}" = set; then
10637 withval=$with_tags; tagnames="$withval"
10641 if test -f "$ltmain" && test -n "$tagnames"; then
10642 if test ! -f "${ofile}"; then
10643 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist
" >&5
10644 echo "$as_me: WARNING
: output
file \
`$ofile' does not exist" >&2;}
10647 if test -z "$LTCC"; then
10648 eval "`$SHELL ${ofile} --config |
grep '^LTCC='`"
10649 if test -z "$LTCC"; then
10650 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10651 echo "$as_me: WARNING: output file \`$ofile' does not
look like a libtool
script" >&2;}
10653 { echo "$as_me:$LINENO: WARNING
: using \
`LTCC=$LTCC', extracted from \`$ofile'" >&5
10654 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \
`$ofile'" >&2;}
10657 if test -z "$LTCFLAGS"; then
10658 eval "`$SHELL ${ofile} --config |
grep '^LTCFLAGS='`"
10661 # Extract list of available tagged configurations in $ofile.
10662 # Note that this assumes the entire list is on one line.
10663 available_tags=`grep "^available_tags=" "${ofile}" |
$SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10665 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10666 for tagname in $tagnames; do
10668 # Check whether tagname contains only valid characters
10669 case `$echo "X$tagname" |
$Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10671 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10672 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10673 { (exit 1); exit 1; }; }
10677 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10679 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10680 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10681 { (exit 1); exit 1; }; }
10684 # Update the list of available tags.
10685 if test -n "$tagname"; then
10686 echo appending configuration tag \"$tagname\" to $ofile
10690 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10691 ( (test "X$CXX" = "Xg++" && `g
++ -v >/dev
/null
2>&1` ) ||
10692 (test "X$CXX" != "Xg++"))) ; then
10694 ac_cpp='$CXXCPP $CPPFLAGS'
10695 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10696 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10697 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10702 archive_cmds_need_lc_CXX=no
10703 allow_undefined_flag_CXX=
10704 always_export_symbols_CXX=no
10705 archive_expsym_cmds_CXX=
10706 export_dynamic_flag_spec_CXX=
10707 hardcode_direct_CXX=no
10708 hardcode_libdir_flag_spec_CXX=
10709 hardcode_libdir_flag_spec_ld_CXX=
10710 hardcode_libdir_separator_CXX=
10711 hardcode_minus_L_CXX=no
10712 hardcode_shlibpath_var_CXX=unsupported
10713 hardcode_automatic_CXX=no
10715 module_expsym_cmds_CXX=
10716 link_all_deplibs_CXX=unknown
10717 old_archive_cmds_CXX=$old_archive_cmds
10718 no_undefined_flag_CXX=
10719 whole_archive_flag_spec_CXX=
10720 enable_shared_with_static_runtimes_CXX=no
10722 # Dependencies to place before and after the object being linked:
10723 predep_objects_CXX=
10724 postdep_objects_CXX=
10727 compiler_lib_search_path_CXX=
10729 # Source file extension for C++ test sources.
10732 # Object file extension for compiled C++ test sources.
10736 # Code to be used in simple compile tests
10737 lt_simple_compile_test_code="int some_variable = 0;\n"
10739 # Code to be used in simple link tests
10740 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10742 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10744 # If no C compiler was specified, use CC.
10747 # If no C compiler flags were specified, use CFLAGS.
10748 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10750 # Allow CC to be a program name with arguments.
10754 # save warnings/boilerplate of simple test code
10755 ac_outfile=conftest.$ac_objext
10756 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10757 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10758 _lt_compiler_boilerplate=`cat conftest.err
`
10761 ac_outfile=conftest.$ac_objext
10762 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10763 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10764 _lt_linker_boilerplate=`cat conftest.err
`
10768 # Allow CC to be a program name with arguments.
10773 lt_save_with_gnu_ld=$with_gnu_ld
10774 lt_save_path_LD=$lt_cv_path_LD
10775 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10776 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10778 $as_unset lt_cv_prog_gnu_ld
10780 if test -n "${lt_cv_path_LDCXX+set}"; then
10781 lt_cv_path_LD=$lt_cv_path_LDCXX
10783 $as_unset lt_cv_path_LD
10785 test -z "${LDCXX+set}" || LD=$LDCXX
10789 for cc_temp in $compiler""; do
10791 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10792 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10797 cc_basename=`$echo "X$cc_temp" |
$Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10800 # We don't want -fno-exception wen compiling C++ code, so set the
10801 # no_builtin_flag separately
10802 if test "$GXX" = yes; then
10803 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10805 lt_prog_compiler_no_builtin_flag_CXX=
10808 if test "$GXX" = yes; then
10809 # Set up default GNU C++ configuration
10812 # Check whether --with-gnu-ld was given.
10813 if test "${with_gnu_ld+set}" = set; then
10814 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10820 if test "$GCC" = yes; then
10821 # Check if gcc -print-prog-name=ld gives a path.
10822 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10823 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10826 # gcc leaves a trailing carriage return which upsets mingw
10827 ac_prog=`($CC -print-prog-name=ld
) 2>&5 |
tr -d '\015'` ;;
10829 ac_prog=`($CC -print-prog-name=ld
) 2>&5` ;;
10832 # Accept absolute paths.
10834 re_direlt='/[^/][^/]*/\.\./'
10835 # Canonicalize the pathname of ld
10836 ac_prog=`echo $ac_prog|
$SED 's%\\\\%/%g'`
10837 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10838 ac_prog=`echo $ac_prog|
$SED "s%$re_direlt%/%"`
10840 test -z "$LD" && LD="$ac_prog"
10843 # If it fails, then pretend we aren't using GCC.
10847 # If it is relative, then search for the first ld in PATH.
10848 with_gnu_ld=unknown
10851 elif test "$with_gnu_ld" = yes; then
10852 { echo "$as_me:$LINENO: checking for GNU ld" >&5
10853 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10855 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10856 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10858 if test "${lt_cv_path_LD+set}" = set; then
10859 echo $ECHO_N "(cached) $ECHO_C" >&6
10861 if test -z "$LD"; then
10862 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10863 for ac_dir in $PATH; do
10865 test -z "$ac_dir" && ac_dir=.
10866 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10867 lt_cv_path_LD="$ac_dir/$ac_prog"
10868 # Check to see if the program is GNU ld. I'd rather use --version,
10869 # but apparently some variants of GNU ld only accept -v.
10870 # Break only if it was the GNU/non-GNU ld that we prefer.
10871 case `"$lt_cv_path_LD" -v 2>&1 </dev
/null
` in
10872 *GNU* | *'with BFD'*)
10873 test "$with_gnu_ld" != no && break
10876 test "$with_gnu_ld" != yes && break
10883 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10887 LD="$lt_cv_path_LD"
10888 if test -n "$LD"; then
10889 { echo "$as_me:$LINENO: result: $LD" >&5
10890 echo "${ECHO_T}$LD" >&6; }
10892 { echo "$as_me:$LINENO: result: no" >&5
10893 echo "${ECHO_T}no" >&6; }
10895 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10896 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10897 { (exit 1); exit 1; }; }
10898 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10899 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10900 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10901 echo $ECHO_N "(cached) $ECHO_C" >&6
10903 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10904 case `$LD -v 2>&1 </dev
/null
` in
10905 *GNU* | *'with BFD'*)
10906 lt_cv_prog_gnu_ld=yes
10909 lt_cv_prog_gnu_ld=no
10913 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10914 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10915 with_gnu_ld=$lt_cv_prog_gnu_ld
10919 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10920 # archiving commands below assume that GNU ld is being used.
10921 if test "$with_gnu_ld" = yes; then
10922 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10923 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'
10925 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10926 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10928 # If archive_cmds runs LD, not CC, wlarc should be empty
10929 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10930 # investigate it a little bit more. (MM)
10933 # ancient GNU ld didn't support --whole-archive et. al.
10934 if eval "`$CC -print-prog-name=ld
` --help 2>&1" | \
10935 grep 'no-whole-archive' > /dev/null; then
10936 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10938 whole_archive_flag_spec_CXX=
10944 # A generic and very simple default shared library creation
10945 # command for GNU C++ for the case where it uses the native
10946 # linker, instead of GNU ld. If possible, this setting should
10947 # overridden to take advantage of the native linker features on
10948 # the platform it is being used on.
10949 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10952 # Commands to make compiler produce verbose output that lists
10953 # what "hidden" libraries, object files and flags are used when
10954 # linking a shared library.
10955 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10963 # PORTME: fill in a description of your system's C++ link characteristics
10964 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10965 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10969 # FIXME: insert proper C++ library support
10973 if test "$host_cpu" = ia64; then
10974 # On IA64, the linker does run time linking by default, so we don't
10975 # have to do anything special.
10976 aix_use_runtimelinking=no
10977 exp_sym_flag='-Bexport'
10980 aix_use_runtimelinking=no
10982 # Test if we are trying to use run time linking or normal
10983 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10984 # need to do runtime linking.
10985 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10986 for ld_flag in $LDFLAGS; do
10989 aix_use_runtimelinking=yes
10997 exp_sym_flag='-bexport'
10998 no_entry_flag='-bnoentry'
11001 # When large executables or shared objects are built, AIX ld can
11002 # have problems creating the table of contents. If linking a library
11003 # or program results in "error TOC overflow" add -mminimal-toc to
11004 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11005 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11007 archive_cmds_CXX=''
11008 hardcode_direct_CXX=yes
11009 hardcode_libdir_separator_CXX=':'
11010 link_all_deplibs_CXX=yes
11012 if test "$GXX" = yes; then
11013 case $host_os in aix4.[012]|aix4.[012].*)
11014 # We only want to do this on AIX 4.2 and lower, the check
11015 # below for broken collect2 doesn't work under 4.3+
11016 collect2name=`${CC} -print-prog-name=collect2
`
11017 if test -f "$collect2name" && \
11018 strings "$collect2name" | grep resolve_lib_name >/dev/null
11020 # We have reworked collect2
11021 hardcode_direct_CXX=yes
11023 # We have old collect2
11024 hardcode_direct_CXX=unsupported
11025 # It fails to find uninstalled libraries when the uninstalled
11026 # path is not listed in the libpath. Setting hardcode_minus_L
11027 # to unsupported forces relinking
11028 hardcode_minus_L_CXX=yes
11029 hardcode_libdir_flag_spec_CXX='-L$libdir'
11030 hardcode_libdir_separator_CXX=
11034 shared_flag='-shared'
11035 if test "$aix_use_runtimelinking" = yes; then
11036 shared_flag="$shared_flag "'${wl}-G'
11040 if test "$host_cpu" = ia64; then
11041 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11042 # chokes on -Wl,-G. The following line is correct:
11045 if test "$aix_use_runtimelinking" = yes; then
11046 shared_flag='${wl}-G'
11048 shared_flag='${wl}-bM:SRE'
11053 # It seems that -bexpall does not export symbols beginning with
11054 # underscore (_), so it is better to generate a list of symbols to export.
11055 always_export_symbols_CXX=yes
11056 if test "$aix_use_runtimelinking" = yes; then
11057 # Warning - without using the other runtime loading flags (-brtl),
11058 # -berok will link without error, but may produce a broken library.
11059 allow_undefined_flag_CXX='-berok'
11060 # Determine the default libpath from the value encoded in an empty executable.
11061 cat >conftest.$ac_ext <<_ACEOF
11064 cat confdefs.h >>conftest.$ac_ext
11065 cat >>conftest.$ac_ext <<_ACEOF
11066 /* end confdefs.h. */
11076 rm -f conftest.$ac_objext conftest$ac_exeext
11077 if { (ac_try="$ac_link"
11078 case "(($ac_try" in
11079 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11080 *) ac_try_echo
=$ac_try;;
11082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11083 (eval "$ac_link") 2>conftest.er1
11085 grep -v '^ *+' conftest.er1
>conftest.err
11087 cat conftest.err
>&5
11088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11089 (exit $ac_status); } && {
11090 test -z "$ac_cxx_werror_flag" ||
11091 test ! -s conftest.err
11092 } && test -s conftest
$ac_exeext &&
11093 $as_test_x conftest
$ac_exeext; then
11095 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11097 # Check for a 64-bit object if we didn't find anything.
11098 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; }
11101 echo "$as_me: failed program was:" >&5
11102 sed 's/^/| /' conftest.
$ac_ext >&5
11107 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11108 conftest
$ac_exeext conftest.
$ac_ext
11109 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
11111 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
11113 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"
11115 if test "$host_cpu" = ia64
; then
11116 hardcode_libdir_flag_spec_CXX
='${wl}-R $libdir:/usr/lib:/lib'
11117 allow_undefined_flag_CXX
="-z nodefs"
11118 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"
11120 # Determine the default libpath from the value encoded in an empty executable.
11121 cat >conftest.
$ac_ext <<_ACEOF
11124 cat confdefs.h
>>conftest.
$ac_ext
11125 cat >>conftest.
$ac_ext <<_ACEOF
11126 /* end confdefs.h. */
11136 rm -f conftest.
$ac_objext conftest
$ac_exeext
11137 if { (ac_try
="$ac_link"
11138 case "(($ac_try" in
11139 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11140 *) ac_try_echo=$ac_try;;
11142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11143 (eval "$ac_link") 2>conftest.er1
11145 grep -v '^ *+' conftest.er1 >conftest.err
11147 cat conftest.err >&5
11148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11149 (exit $ac_status); } && {
11150 test -z "$ac_cxx_werror_flag" ||
11151 test ! -s conftest.err
11152 } && test -s conftest$ac_exeext &&
11153 $as_test_x conftest$ac_exeext; then
11155 aix_libpath=`dump
-H conftest
$ac_exeext 2>/dev
/null |
$SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11157 # Check for a 64-bit object if we didn't find anything.
11158 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; }
11161 echo "$as_me: failed program was:" >&5
11162 sed 's/^/| /' conftest.$ac_ext >&5
11167 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11168 conftest$ac_exeext conftest.$ac_ext
11169 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11171 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11172 # Warning - without using the other run time loading flags,
11173 # -berok will link without error, but may produce a broken library.
11174 no_undefined_flag_CXX=' ${wl}-bernotok'
11175 allow_undefined_flag_CXX=' ${wl}-berok'
11176 # Exported symbols can be pulled into shared objects from archives
11177 whole_archive_flag_spec_CXX='$convenience'
11178 archive_cmds_need_lc_CXX=yes
11179 # This is similar to how AIX traditionally builds its shared libraries.
11180 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'
11186 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11187 allow_undefined_flag_CXX=unsupported
11188 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11189 # support --undefined. This deserves some investigation. FIXME
11190 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11197 case $cc_basename in
11199 # FIXME: insert proper C++ library support
11205 cygwin* | mingw* | pw32*)
11206 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11207 # as there is no search path for DLLs.
11208 hardcode_libdir_flag_spec_CXX='-L$libdir'
11209 allow_undefined_flag_CXX=unsupported
11210 always_export_symbols_CXX=no
11211 enable_shared_with_static_runtimes_CXX=yes
11213 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11214 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'
11215 # If the export-symbols file already is a .def file (1st line
11216 # is EXPORTS), use it as is; otherwise, prepend...
11217 archive_expsym_cmds_CXX='if test "x`$SED 1q
$export_symbols`" = xEXPORTS; then
11218 cp $export_symbols $output_objdir/$soname.def;
11220 echo EXPORTS > $output_objdir/$soname.def;
11221 cat $export_symbols >> $output_objdir/$soname.def;
11223 $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'
11228 darwin* | rhapsody*)
11230 rhapsody* | darwin1.[012])
11231 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11234 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11235 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11237 case ${MACOSX_DEPLOYMENT_TARGET} in
11239 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11242 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11248 archive_cmds_need_lc_CXX=no
11249 hardcode_direct_CXX=no
11250 hardcode_automatic_CXX=yes
11251 hardcode_shlibpath_var_CXX=unsupported
11252 whole_archive_flag_spec_CXX=''
11253 link_all_deplibs_CXX=yes
11255 if test "$GXX" = yes ; then
11256 lt_int_apple_cc_single_mod=no
11257 output_verbose_link_cmd='echo'
11258 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11259 lt_int_apple_cc_single_mod=yes
11261 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11262 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11264 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'
11266 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11267 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11268 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11269 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}'
11271 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}'
11273 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}'
11275 case $cc_basename in
11277 output_verbose_link_cmd='echo'
11278 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'
11279 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11280 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11281 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}'
11282 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}'
11292 case $cc_basename in
11294 # FIXME: insert proper C++ library support
11298 # Green Hills C++ Compiler
11299 # FIXME: insert proper C++ library support
11303 # FIXME: insert proper C++ library support
11309 # C++ shared libraries reported to be fairly broken before switch to ELF
11313 archive_cmds_need_lc_CXX=no
11315 freebsd* | dragonfly*)
11316 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11323 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11324 hardcode_libdir_separator_CXX=:
11325 export_dynamic_flag_spec_CXX='${wl}-E'
11326 hardcode_direct_CXX=yes
11327 hardcode_minus_L_CXX=yes # Not in the search PATH,
11328 # but as the default
11329 # location of the library.
11331 case $cc_basename in
11333 # FIXME: insert proper C++ library support
11337 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'
11338 # Commands to make compiler produce verbose output that lists
11339 # what "hidden" libraries, object files and flags are used when
11340 # linking a shared library.
11342 # There doesn't appear to be a way to prevent this compiler from
11343 # explicitly linking system object files so we need to strip them
11344 # from the output so that they don't get included in the library
11346 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'
11349 if test "$GXX" = yes; then
11350 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'
11352 # FIXME: insert proper C++ library support
11359 if test $with_gnu_ld = no; then
11360 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11361 hardcode_libdir_separator_CXX=:
11365 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11368 export_dynamic_flag_spec_CXX='${wl}-E'
11374 hardcode_direct_CXX=no
11375 hardcode_shlibpath_var_CXX=no
11378 hardcode_direct_CXX=yes
11379 hardcode_minus_L_CXX=yes # Not in the search PATH,
11380 # but as the default
11381 # location of the library.
11385 case $cc_basename in
11387 # FIXME: insert proper C++ library support
11393 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11396 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11399 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11402 # Commands to make compiler produce verbose output that lists
11403 # what "hidden" libraries, object files and flags are used when
11404 # linking a shared library.
11406 # There doesn't appear to be a way to prevent this compiler from
11407 # explicitly linking system object files so we need to strip them
11408 # from the output so that they don't get included in the library
11410 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'
11413 if test "$GXX" = yes; then
11414 if test $with_gnu_ld = no; then
11417 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11420 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11423 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'
11428 # FIXME: insert proper C++ library support
11435 hardcode_direct_CXX=no
11436 hardcode_shlibpath_var_CXX=no
11437 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11438 export_dynamic_flag_spec_CXX='${wl}-E'
11439 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11440 # Instead, shared libraries are loaded at an image base (0x10000000 by
11441 # default) and relocated if they conflict, which is a slow very memory
11442 # consuming and fragmenting process. To avoid this, we pick a random,
11443 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11444 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11445 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'
11446 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'
11449 case $cc_basename in
11452 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'
11454 # Archives containing C++ object files must be created using
11455 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11456 # necessary to make sure instantiated templates are included
11458 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11461 if test "$GXX" = yes; then
11462 if test "$with_gnu_ld" = no; then
11463 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'
11465 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'
11468 link_all_deplibs_CXX=yes
11471 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11472 hardcode_libdir_separator_CXX=:
11474 linux* | k*bsd*-gnu)
11475 case $cc_basename in
11477 # Kuck and Associates, Inc. (KAI) C++ Compiler
11479 # KCC will only create a shared library if the output file
11480 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11481 # to its proper name (with version) after linking.
11482 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'
11483 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'
11484 # Commands to make compiler produce verbose output that lists
11485 # what "hidden" libraries, object files and flags are used when
11486 # linking a shared library.
11488 # There doesn't appear to be a way to prevent this compiler from
11489 # explicitly linking system object files so we need to strip them
11490 # from the output so that they don't get included in the library
11492 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'
11494 hardcode_libdir_flag_spec_CXX
='${wl}--rpath,$libdir'
11495 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
11497 # Archives containing C++ object files must be created using
11498 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11499 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
11504 # version 8.0 and above of icpc choke on multiply defined symbols
11505 # if we add $predep_objects and $postdep_objects, however 7.1 and
11506 # earlier do not add the objects themselves.
11507 case `$CC -V 2>&1` in
11509 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11510 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'
11512 *) # Version 8.0 or newer
11515 ia64
*) tmp_idyn
=' -i_dynamic';;
11517 archive_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11518 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'
11521 archive_cmds_need_lc_CXX
=no
11522 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
11523 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
11524 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11527 # Portland Group C++ compiler
11528 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11529 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'
11531 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
11532 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
11533 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'
11537 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11538 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'
11540 runpath_var
=LD_RUN_PATH
11541 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
11542 hardcode_libdir_separator_CXX
=:
11544 # Commands to make compiler produce verbose output that lists
11545 # what "hidden" libraries, object files and flags are used when
11546 # linking a shared library.
11548 # There doesn't appear to be a way to prevent this compiler from
11549 # explicitly linking system object files so we need to strip them
11550 # from the output so that they don't get included in the library
11552 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'
11557 # FIXME: insert proper C++ library support
11561 # FIXME: insert proper C++ library support
11565 case $cc_basename in
11567 # FIXME: insert proper C++ library support
11571 # FIXME: insert proper C++ library support
11576 netbsd
* | netbsdelf
*-gnu)
11577 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
11578 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11580 hardcode_libdir_flag_spec_CXX
='-R$libdir'
11581 hardcode_direct_CXX
=yes
11582 hardcode_shlibpath_var_CXX
=no
11584 # Workaround some broken pre-1.5 toolchains
11585 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11588 # C++ shared libraries are fairly broken
11592 hardcode_direct_CXX
=yes
11593 hardcode_shlibpath_var_CXX
=no
11594 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11595 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
11596 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11597 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11598 export_dynamic_flag_spec_CXX
='${wl}-E'
11599 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11601 output_verbose_link_cmd
='echo'
11604 case $cc_basename in
11606 # Kuck and Associates, Inc. (KAI) C++ Compiler
11608 # KCC will only create a shared library if the output file
11609 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11610 # to its proper name (with version) after linking.
11611 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'
11613 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
11614 hardcode_libdir_separator_CXX
=:
11616 # Archives containing C++ object files must be created using
11617 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11618 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
11622 # Rational C++ 2.4.1
11623 # FIXME: insert proper C++ library support
11627 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
11628 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'
11630 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
11631 hardcode_libdir_separator_CXX
=:
11633 # Commands to make compiler produce verbose output that lists
11634 # what "hidden" libraries, object files and flags are used when
11635 # linking a shared library.
11637 # There doesn't appear to be a way to prevent this compiler from
11638 # explicitly linking system object files so we need to strip them
11639 # from the output so that they don't get included in the library
11641 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'
11644 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
11645 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
11646 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'
11648 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
11649 hardcode_libdir_separator_CXX
=:
11651 # Commands to make compiler produce verbose output that lists
11652 # what "hidden" libraries, object files and flags are used when
11653 # linking a shared library.
11654 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11657 # FIXME: insert proper C++ library support
11664 case $cc_basename in
11666 # Kuck and Associates, Inc. (KAI) C++ Compiler
11668 # KCC will only create a shared library if the output file
11669 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11670 # to its proper name (with version) after linking.
11671 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'
11673 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
11674 hardcode_libdir_separator_CXX
=:
11676 # Archives containing C++ object files must be created using
11677 # the KAI C++ compiler.
11678 old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs'
11681 # Rational C++ 2.4.1
11682 # FIXME: insert proper C++ library support
11686 allow_undefined_flag_CXX
=' -expect_unresolved \*'
11687 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'
11688 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11689 echo "-hidden">> $lib.exp~
11690 $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~
11693 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
11694 hardcode_libdir_separator_CXX
=:
11696 # Commands to make compiler produce verbose output that lists
11697 # what "hidden" libraries, object files and flags are used when
11698 # linking a shared library.
11700 # There doesn't appear to be a way to prevent this compiler from
11701 # explicitly linking system object files so we need to strip them
11702 # from the output so that they don't get included in the library
11704 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'
11707 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
11708 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
11709 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'
11711 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
11712 hardcode_libdir_separator_CXX
=:
11714 # Commands to make compiler produce verbose output that lists
11715 # what "hidden" libraries, object files and flags are used when
11716 # linking a shared library.
11717 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11720 # FIXME: insert proper C++ library support
11727 # FIXME: insert proper C++ library support
11731 case $cc_basename in
11734 # FIXME: insert proper C++ library support
11739 # FIXME: insert proper C++ library support
11743 # FIXME: insert proper C++ library support
11749 case $cc_basename in
11751 # Sun C++ 4.2, 5.x and Centerline C++
11752 archive_cmds_need_lc_CXX
=yes
11753 no_undefined_flag_CXX
=' -zdefs'
11754 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11755 archive_expsym_cmds_CXX
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11756 $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'
11758 hardcode_libdir_flag_spec_CXX
='-R$libdir'
11759 hardcode_shlibpath_var_CXX
=no
11761 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
11763 # The C++ compiler is used as linker so we must use $wl
11764 # flag to pass the commands to the underlying system
11765 # linker. We must also pass each convience library through
11766 # to the system linker between allextract/defaultextract.
11767 # The C++ compiler will combine linker options so we
11768 # cannot just pass the convience library names through
11770 # Supported since Solaris 2.6 (maybe 2.5.1?)
11771 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'
11774 link_all_deplibs_CXX
=yes
11776 output_verbose_link_cmd
='echo'
11778 # Archives containing C++ object files must be created using
11779 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11780 # necessary to make sure instantiated templates are included
11782 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
11785 # Green Hills C++ Compiler
11786 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11788 # The C++ compiler must be used to create the archive.
11789 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11792 # GNU C++ compiler with Solaris linker
11793 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
11794 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
11795 if $CC --version |
grep -v '^2\.7' > /dev
/null
; then
11796 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11797 archive_expsym_cmds_CXX
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11798 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11800 # Commands to make compiler produce verbose output that lists
11801 # what "hidden" libraries, object files and flags are used when
11802 # linking a shared library.
11803 output_verbose_link_cmd
="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11805 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11807 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11808 archive_expsym_cmds_CXX
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11809 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11811 # Commands to make compiler produce verbose output that lists
11812 # what "hidden" libraries, object files and flags are used when
11813 # linking a shared library.
11814 output_verbose_link_cmd
="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11817 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
11822 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
11823 no_undefined_flag_CXX
='${wl}-z,text'
11824 archive_cmds_need_lc_CXX
=no
11825 hardcode_shlibpath_var_CXX
=no
11826 runpath_var
='LD_RUN_PATH'
11828 case $cc_basename in
11830 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11831 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11834 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11835 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11839 sysv5
* | sco3.2v5
* | sco5v6
*)
11840 # Note: We can NOT use -z defs as we might desire, because we do not
11841 # link with -lc, and that would cause any symbols used from libc to
11842 # always be unresolved, which means just about no library would
11843 # ever link correctly. If we're not using GNU ld we use -z text
11844 # though, which does catch some bad symbols but isn't as heavy-handed
11846 # For security reasons, it is highly recommended that you always
11847 # use absolute paths for naming shared libraries, and exclude the
11848 # DT_RUNPATH tag from executables and libraries. But doing so
11849 # requires that you compile everything twice, which is a pain.
11850 # So that behaviour is only enabled if SCOABSPATH is set to a
11851 # non-empty value in the environment. Most likely only useful for
11852 # creating official distributions of packages.
11853 # This is a hack until libtool officially supports absolute path
11854 # names for shared libraries.
11855 no_undefined_flag_CXX
='${wl}-z,text'
11856 allow_undefined_flag_CXX
='${wl}-z,nodefs'
11857 archive_cmds_need_lc_CXX
=no
11858 hardcode_shlibpath_var_CXX
=no
11859 hardcode_libdir_flag_spec_CXX
='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11860 hardcode_libdir_separator_CXX
=':'
11861 link_all_deplibs_CXX
=yes
11862 export_dynamic_flag_spec_CXX
='${wl}-Bexport'
11863 runpath_var
='LD_RUN_PATH'
11865 case $cc_basename in
11867 archive_cmds_CXX
='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11868 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11871 archive_cmds_CXX
='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11872 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11877 case $cc_basename in
11879 # NonStop-UX NCC 3.20
11880 # FIXME: insert proper C++ library support
11884 # FIXME: insert proper C++ library support
11890 # FIXME: insert proper C++ library support
11894 # FIXME: insert proper C++ library support
11898 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11899 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11900 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
11906 cat > conftest.
$ac_ext <<EOF
11910 Foo (void) { a = 0; }
11916 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11917 (eval $ac_compile) 2>&5
11919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11920 (exit $ac_status); }; then
11921 # Parse the compiler output and extract the necessary
11922 # objects, libraries and library flags.
11924 # Sentinel used to keep track of whether or not we are before
11925 # the conftest object file.
11926 pre_test_object_deps_done
=no
11928 # The `*' in the case matches for architectures that use `case' in
11929 # $output_verbose_cmd can trigger glob expansion during the loop
11930 # eval without this substitution.
11931 output_verbose_link_cmd
=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11933 for p
in `eval $output_verbose_link_cmd`; do
11937 # Some compilers place space between "-{L,R}" and the path.
11938 # Remove the space.
11939 if test $p = "-L" \
11940 ||
test $p = "-R"; then
11947 if test "$pre_test_object_deps_done" = no
; then
11950 # Internal compiler library paths should come after those
11951 # provided the user. The postdeps already come after the
11952 # user supplied libs so there is no need to process them.
11953 if test -z "$compiler_lib_search_path_CXX"; then
11954 compiler_lib_search_path_CXX
="${prev}${p}"
11956 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
11959 # The "-l" case would never come before the object being
11960 # linked, so don't bother handling this case.
11963 if test -z "$postdeps_CXX"; then
11964 postdeps_CXX
="${prev}${p}"
11966 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
11972 # This assumes that the test object file only shows up
11973 # once in the compiler output.
11974 if test "$p" = "conftest.$objext"; then
11975 pre_test_object_deps_done
=yes
11979 if test "$pre_test_object_deps_done" = no
; then
11980 if test -z "$predep_objects_CXX"; then
11981 predep_objects_CXX
="$p"
11983 predep_objects_CXX
="$predep_objects_CXX $p"
11986 if test -z "$postdep_objects_CXX"; then
11987 postdep_objects_CXX
="$p"
11989 postdep_objects_CXX
="$postdep_objects_CXX $p"
11994 *) ;; # Ignore the rest.
12002 echo "libtool.m4: error: problem compiling CXX test program"
12005 $rm -f confest.
$objext
12007 # PORTME: override above test on systems where it is broken
12010 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12011 # hack all around it, let's just trust "g++" to DTRT.
12012 predep_objects_CXX
=
12013 postdep_objects_CXX
=
12018 case $cc_basename in
12020 # Adding this requires a known-good setup of shared libraries for
12021 # Sun compiler versions before 5.6, else PIC objects from an old
12022 # archive will be linked into the output, leading to subtle bugs.
12023 postdeps_CXX
='-lCstd -lCrun'
12030 case " $postdeps_CXX " in
12031 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
12034 lt_prog_compiler_wl_CXX
=
12035 lt_prog_compiler_pic_CXX
=
12036 lt_prog_compiler_static_CXX
=
12038 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12039 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12041 # C++ specific cases for pic, static, wl, etc.
12042 if test "$GXX" = yes; then
12043 lt_prog_compiler_wl_CXX
='-Wl,'
12044 lt_prog_compiler_static_CXX
='-static'
12048 # All AIX code is PIC.
12049 if test "$host_cpu" = ia64
; then
12050 # AIX 5 now supports IA64 processor
12051 lt_prog_compiler_static_CXX
='-Bstatic'
12055 # FIXME: we need at least 68020 code to build shared libraries, but
12056 # adding the `-m68020' flag to GCC prevents building anything better,
12058 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
12060 beos
* | cygwin
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
12061 # PIC is the default for these OSes.
12063 mingw
* | os2
* | pw32
*)
12064 # This hack is so that the source file can tell whether it is being
12065 # built for inclusion in a dll (and should export symbols for example).
12066 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
12068 darwin
* | rhapsody
*)
12069 # PIC is the default on this platform
12070 # Common symbols not allowed in MH_DYLIB files
12071 lt_prog_compiler_pic_CXX
='-fno-common'
12074 # DJGPP does not support shared libraries at all
12075 lt_prog_compiler_pic_CXX
=
12078 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12079 # Instead, we relocate shared libraries at runtime.
12082 if test -d /usr
/nec
; then
12083 lt_prog_compiler_pic_CXX
=-Kconform_pic
12087 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12088 # not for PA HP-UX.
12093 lt_prog_compiler_pic_CXX
='-fPIC'
12098 lt_prog_compiler_pic_CXX
='-fPIC'
12104 # All AIX code is PIC.
12105 if test "$host_cpu" = ia64
; then
12106 # AIX 5 now supports IA64 processor
12107 lt_prog_compiler_static_CXX
='-Bstatic'
12109 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
12113 case $cc_basename in
12115 # Green Hills C++ Compiler
12116 # _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"
12121 # PIC is the default on this platform
12122 # Common symbols not allowed in MH_DYLIB files
12123 case $cc_basename in
12125 lt_prog_compiler_pic_CXX
='-qnocommon'
12126 lt_prog_compiler_wl_CXX
='-Wl,'
12131 case $cc_basename in
12133 lt_prog_compiler_pic_CXX
='-KPIC'
12136 # Green Hills C++ Compiler
12137 lt_prog_compiler_pic_CXX
='-pic'
12143 freebsd
* | dragonfly
*)
12144 # FreeBSD uses GNU C++
12146 hpux9
* | hpux10
* | hpux11
*)
12147 case $cc_basename in
12149 lt_prog_compiler_wl_CXX
='-Wl,'
12150 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
12151 if test "$host_cpu" != ia64
; then
12152 lt_prog_compiler_pic_CXX
='+Z'
12156 lt_prog_compiler_wl_CXX
='-Wl,'
12157 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
12163 lt_prog_compiler_pic_CXX
='+Z'
12172 # This is c89, which is MS Visual C++ (no shared libs)
12173 # Anyone wants to do a port?
12175 irix5
* | irix6
* | nonstopux
*)
12176 case $cc_basename in
12178 lt_prog_compiler_wl_CXX
='-Wl,'
12179 lt_prog_compiler_static_CXX
='-non_shared'
12180 # CC pic flag -KPIC is the default.
12186 linux
* | k
*bsd
*-gnu)
12187 case $cc_basename in
12190 lt_prog_compiler_wl_CXX
='--backend -Wl,'
12191 lt_prog_compiler_pic_CXX
='-fPIC'
12195 lt_prog_compiler_wl_CXX
='-Wl,'
12196 lt_prog_compiler_pic_CXX
='-KPIC'
12197 lt_prog_compiler_static_CXX
='-static'
12200 # Portland Group C++ compiler.
12201 lt_prog_compiler_wl_CXX
='-Wl,'
12202 lt_prog_compiler_pic_CXX
='-fpic'
12203 lt_prog_compiler_static_CXX
='-Bstatic'
12207 # Make sure the PIC flag is empty. It appears that all Alpha
12208 # Linux and Compaq Tru64 Unix objects are PIC.
12209 lt_prog_compiler_pic_CXX
=
12210 lt_prog_compiler_static_CXX
='-non_shared'
12221 case $cc_basename in
12223 lt_prog_compiler_pic_CXX
='-W c,exportall'
12229 netbsd
* | netbsdelf
*-gnu)
12231 osf3
* | osf4
* | osf5
*)
12232 case $cc_basename in
12234 lt_prog_compiler_wl_CXX
='--backend -Wl,'
12237 # Rational C++ 2.4.1
12238 lt_prog_compiler_pic_CXX
='-pic'
12241 # Digital/Compaq C++
12242 lt_prog_compiler_wl_CXX
='-Wl,'
12243 # Make sure the PIC flag is empty. It appears that all Alpha
12244 # Linux and Compaq Tru64 Unix objects are PIC.
12245 lt_prog_compiler_pic_CXX
=
12246 lt_prog_compiler_static_CXX
='-non_shared'
12255 case $cc_basename in
12257 # Sun C++ 4.2, 5.x and Centerline C++
12258 lt_prog_compiler_pic_CXX
='-KPIC'
12259 lt_prog_compiler_static_CXX
='-Bstatic'
12260 lt_prog_compiler_wl_CXX
='-Qoption ld '
12263 # Green Hills C++ Compiler
12264 lt_prog_compiler_pic_CXX
='-PIC'
12271 case $cc_basename in
12274 lt_prog_compiler_pic_CXX
='-pic'
12275 lt_prog_compiler_static_CXX
='-Bstatic'
12279 lt_prog_compiler_pic_CXX
='-pic'
12286 case $cc_basename in
12288 # NonStop-UX NCC 3.20
12289 lt_prog_compiler_pic_CXX
='-KPIC'
12295 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
12296 case $cc_basename in
12298 lt_prog_compiler_wl_CXX
='-Wl,'
12299 lt_prog_compiler_pic_CXX
='-KPIC'
12300 lt_prog_compiler_static_CXX
='-Bstatic'
12307 lt_prog_compiler_can_build_shared_CXX
=no
12312 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12313 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12316 # Check to make sure the PIC flag actually works.
12318 if test -n "$lt_prog_compiler_pic_CXX"; then
12320 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12321 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12322 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12323 echo $ECHO_N "(cached) $ECHO_C" >&6
12325 lt_prog_compiler_pic_works_CXX
=no
12326 ac_outfile
=conftest.
$ac_objext
12327 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
12328 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
12329 # Insert the option either (1) after the last *FLAGS variable, or
12330 # (2) before a word containing "conftest.", or (3) at the end.
12331 # Note that $ac_compile itself does not contain backslashes and begins
12332 # with a dollar sign (not a hyphen), so the echo should work correctly.
12333 # The option is referenced via a variable to avoid confusing sed.
12334 lt_compile
=`echo "$ac_compile" | $SED \
12335 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12336 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12337 -e 's:$: $lt_compiler_flag:'`
12338 (eval echo "\"\$as_me:12338: $lt_compile\"" >&5)
12339 (eval "$lt_compile" 2>conftest.err
)
12341 cat conftest.err
>&5
12342 echo "$as_me:12342: \$? = $ac_status" >&5
12343 if (exit $ac_status) && test -s "$ac_outfile"; then
12344 # The compiler can only warn and ignore the option if not recognized
12345 # So say no if there are warnings other than the usual output.
12346 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
12347 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
12348 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
12349 lt_prog_compiler_pic_works_CXX
=yes
12355 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12356 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12358 if test x
"$lt_prog_compiler_pic_works_CXX" = xyes
; then
12359 case $lt_prog_compiler_pic_CXX in
12361 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
12364 lt_prog_compiler_pic_CXX
=
12365 lt_prog_compiler_can_build_shared_CXX
=no
12370 # For platforms which do not support PIC, -DPIC is meaningless:
12372 lt_prog_compiler_pic_CXX
=
12375 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
12380 # Check to make sure the static flag actually works.
12382 wl
=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_CXX\"
12383 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12384 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12385 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12386 echo $ECHO_N "(cached) $ECHO_C" >&6
12388 lt_prog_compiler_static_works_CXX
=no
12389 save_LDFLAGS
="$LDFLAGS"
12390 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
12391 printf "$lt_simple_link_test_code" > conftest.
$ac_ext
12392 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
12393 # The linker can only warn and ignore the option if not recognized
12394 # So say no if there are warnings
12395 if test -s conftest.err
; then
12396 # Append any errors to the config.log.
12397 cat conftest.err
1>&5
12398 $echo "X$_lt_linker_boilerplate" |
$Xsed -e '/^$/d' > conftest.exp
12399 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
12400 if diff conftest.exp conftest.er2
>/dev
/null
; then
12401 lt_prog_compiler_static_works_CXX
=yes
12404 lt_prog_compiler_static_works_CXX
=yes
12408 LDFLAGS
="$save_LDFLAGS"
12411 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12412 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12414 if test x
"$lt_prog_compiler_static_works_CXX" = xyes
; then
12417 lt_prog_compiler_static_CXX
=
12421 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12422 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12423 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12424 echo $ECHO_N "(cached) $ECHO_C" >&6
12426 lt_cv_prog_compiler_c_o_CXX
=no
12427 $rm -r conftest
2>/dev
/null
12431 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
12433 lt_compiler_flag
="-o out/conftest2.$ac_objext"
12434 # Insert the option either (1) after the last *FLAGS variable, or
12435 # (2) before a word containing "conftest.", or (3) at the end.
12436 # Note that $ac_compile itself does not contain backslashes and begins
12437 # with a dollar sign (not a hyphen), so the echo should work correctly.
12438 lt_compile
=`echo "$ac_compile" | $SED \
12439 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12440 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12441 -e 's:$: $lt_compiler_flag:'`
12442 (eval echo "\"\$as_me:12442: $lt_compile\"" >&5)
12443 (eval "$lt_compile" 2>out
/conftest.err
)
12445 cat out
/conftest.err
>&5
12446 echo "$as_me:12446: \$? = $ac_status" >&5
12447 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
12449 # The compiler can only warn and ignore the option if not recognized
12450 # So say no if there are warnings
12451 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
12452 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
12453 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
12454 lt_cv_prog_compiler_c_o_CXX
=yes
12459 # SGI C++ compiler will create directory out/ii_files/ for
12460 # template instantiation
12461 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
12462 $rm out
/* && rmdir out
12468 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12469 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12472 hard_links
="nottested"
12473 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
12474 # do not overwrite the value of need_locks provided by the user
12475 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12476 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12479 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
12481 ln conftest.a conftest.b
2>&5 || hard_links
=no
12482 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
12483 { echo "$as_me:$LINENO: result: $hard_links" >&5
12484 echo "${ECHO_T}$hard_links" >&6; }
12485 if test "$hard_links" = no
; then
12486 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12487 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12494 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12495 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12497 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12500 # If we're using GNU nm, then we don't want the "-C" option.
12501 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12502 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
12503 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'
12505 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'
12509 export_symbols_cmds_CXX
="$ltdll_cmds"
12512 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'
12514 linux
* | k
*bsd
*-gnu)
12515 link_all_deplibs_CXX
=no
12518 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12522 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12523 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12524 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
12527 # Do we need to explicitly link libc?
12529 case "x$archive_cmds_need_lc_CXX" in
12531 # Assume -lc should be added
12532 archive_cmds_need_lc_CXX
=yes
12534 if test "$enable_shared" = yes && test "$GCC" = yes; then
12535 case $archive_cmds_CXX in
12537 # FIXME: we may have to deal with multi-command sequences.
12540 # Test whether the compiler implicitly links with -lc since on some
12541 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12542 # to ld, don't add -lc before -lgcc.
12543 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12544 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12546 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
12548 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12549 (eval $ac_compile) 2>&5
12551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12552 (exit $ac_status); } 2>conftest.err
; then
12555 libobjs
=conftest.
$ac_objext
12557 wl
=$lt_prog_compiler_wl_CXX
12558 pic_flag
=$lt_prog_compiler_pic_CXX
12564 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
12565 allow_undefined_flag_CXX
=
12566 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12567 (eval $archive_cmds_CXX 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
12569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12570 (exit $ac_status); }
12572 archive_cmds_need_lc_CXX
=no
12574 archive_cmds_need_lc_CXX
=yes
12576 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
12578 cat conftest.err
1>&5
12581 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12582 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12589 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12590 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12591 library_names_spec
=
12592 libname_spec
='lib$name'
12596 postuninstall_cmds
=
12600 shlibpath_overrides_runpath
=unknown
12602 dynamic_linker
="$host_os ld.so"
12603 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
12604 if test "$GCC" = yes; then
12605 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12606 if echo "$sys_lib_search_path_spec" |
grep ';' >/dev
/null
; then
12607 # if the path contains ";" then we assume it to be the separator
12608 # otherwise default to the standard path separator (i.e. ":") - it is
12609 # assumed that no part of a normal pathname contains ";" but that should
12610 # okay in the real world where ";" in dirpaths is itself problematic.
12611 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12613 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12616 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
12618 need_lib_prefix
=unknown
12619 hardcode_into_libs
=no
12621 # when you set need_version to no, make sure it does not cause -set_version
12622 # flags to be left without arguments
12623 need_version
=unknown
12628 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
12629 shlibpath_var
=LIBPATH
12631 # AIX 3 has no versioning support, so we append a major version to the name.
12632 soname_spec
='${libname}${release}${shared_ext}$major'
12639 hardcode_into_libs
=yes
12640 if test "$host_cpu" = ia64
; then
12641 # AIX 5 supports IA64
12642 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12643 shlibpath_var
=LD_LIBRARY_PATH
12645 # With GCC up to 2.95.x, collect2 would create an import file
12646 # for dependence libraries. The import file would start with
12647 # the line `#! .'. This would cause the generated library to
12648 # depend on `.', always an invalid library. This was fixed in
12649 # development snapshots of GCC prior to 3.0.
12651 aix4 | aix4.
[01] | aix4.
[01].
*)
12652 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12654 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
12657 can_build_shared
=no
12661 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12662 # soname into executable. Probably we can add versioning support to
12663 # collect2, so additional links can be useful in future.
12664 if test "$aix_use_runtimelinking" = yes; then
12665 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12666 # instead of lib<name>.a to let people know that these are not
12667 # typical AIX shared libraries.
12668 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12670 # We preserve .a as extension for shared libraries through AIX4.2
12671 # and later when we are not doing run time linking.
12672 library_names_spec
='${libname}${release}.a $libname.a'
12673 soname_spec
='${libname}${release}${shared_ext}$major'
12675 shlibpath_var
=LIBPATH
12680 library_names_spec
='$libname.ixlibrary $libname.a'
12681 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12682 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'
12686 library_names_spec
='${libname}${shared_ext}'
12687 dynamic_linker
="$host_os ld.so"
12688 shlibpath_var
=LIBRARY_PATH
12694 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12695 soname_spec
='${libname}${release}${shared_ext}$major'
12696 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
12697 shlibpath_var
=LD_LIBRARY_PATH
12698 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12699 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
12700 # the default ld.so.conf also contains /usr/contrib/lib and
12701 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12702 # libtool to hard-code these into programs
12705 cygwin
* | mingw
* | pw32
*)
12706 version_type
=windows
12711 case $GCC,$host_os in
12712 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
12713 library_names_spec
='$libname.dll.a'
12714 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12715 postinstall_cmds
='base_file=`basename \${file}`~
12716 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12717 dldir=$destdir/`dirname \$dlpath`~
12718 test -d \$dldir || mkdir -p \$dldir~
12719 $install_prog $dir/$dlname \$dldir/$dlname~
12720 chmod a+x \$dldir/$dlname'
12721 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12722 dlpath=$dir/\$dldll~
12724 shlibpath_overrides_runpath
=yes
12728 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12729 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12730 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
12733 # MinGW DLLs use traditional 'lib' prefix
12734 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12735 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12736 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
12737 # It is most probably a Windows format PATH printed by
12738 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12739 # path with ; separators, and with drive letters. We can handle the
12740 # drive letters (cygwin fileutils understands them), so leave them,
12741 # especially as we might pass files found there to a mingw objdump,
12742 # which wouldn't understand a cygwinified path. Ahh.
12743 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12745 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12749 # pw32 DLLs use 'pw' prefix rather than 'lib'
12750 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12756 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12759 dynamic_linker
='Win32 ld.exe'
12760 # FIXME: first we should search . and the directory the executable is in
12764 darwin
* | rhapsody
*)
12765 dynamic_linker
="$host_os dyld"
12766 version_type
=darwin
12769 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12770 soname_spec
='${libname}${release}${major}$shared_ext'
12771 shlibpath_overrides_runpath
=yes
12772 shlibpath_var
=DYLD_LIBRARY_PATH
12773 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
12774 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12775 if test "$GCC" = yes; then
12776 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"`
12778 sys_lib_search_path_spec
='/lib /usr/lib /usr/local/lib'
12780 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
12787 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12788 soname_spec
='${libname}${release}${shared_ext}$major'
12789 shlibpath_var
=LD_LIBRARY_PATH
12796 freebsd
* | dragonfly
*)
12797 # DragonFly does not have aout. When/if they implement a new
12798 # versioning mechanism, adjust this.
12799 if test -x /usr
/bin
/objformat
; then
12800 objformat
=`/usr/bin/objformat`
12803 freebsd
[123]*) objformat
=aout
;;
12804 *) objformat
=elf
;;
12807 version_type
=freebsd-
$objformat
12808 case $version_type in
12810 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12815 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12819 shlibpath_var
=LD_LIBRARY_PATH
12822 shlibpath_overrides_runpath
=yes
12824 freebsd3.
[01]* | freebsdelf3.
[01]*)
12825 shlibpath_overrides_runpath
=yes
12826 hardcode_into_libs
=yes
12828 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
12829 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
12830 shlibpath_overrides_runpath
=no
12831 hardcode_into_libs
=yes
12833 freebsd
*) # from 4.6 on
12834 shlibpath_overrides_runpath
=yes
12835 hardcode_into_libs
=yes
12844 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12845 soname_spec
='${libname}${release}${shared_ext}$major'
12846 shlibpath_var
=LD_LIBRARY_PATH
12847 hardcode_into_libs
=yes
12850 hpux9
* | hpux10
* | hpux11
*)
12851 # Give a soname corresponding to the major version so that dld.sl refuses to
12852 # link against other versions.
12859 hardcode_into_libs
=yes
12860 dynamic_linker
="$host_os dld.so"
12861 shlibpath_var
=LD_LIBRARY_PATH
12862 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
12863 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12864 soname_spec
='${libname}${release}${shared_ext}$major'
12865 if test "X$HPUX_IA64_MODE" = X32
; then
12866 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12868 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
12870 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
12874 hardcode_into_libs
=yes
12875 dynamic_linker
="$host_os dld.sl"
12876 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
12877 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
12878 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12879 soname_spec
='${libname}${release}${shared_ext}$major'
12880 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12881 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
12885 dynamic_linker
="$host_os dld.sl"
12886 shlibpath_var
=SHLIB_PATH
12887 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
12888 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12889 soname_spec
='${libname}${release}${shared_ext}$major'
12892 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12893 postinstall_cmds
='chmod 555 $lib'
12900 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12901 soname_spec
='${libname}${release}${shared_ext}$major'
12902 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
12903 shlibpath_var
=LD_LIBRARY_PATH
12904 shlibpath_overrides_runpath
=no
12905 hardcode_into_libs
=yes
12908 irix5
* | irix6
* | nonstopux
*)
12910 nonstopux
*) version_type
=nonstopux
;;
12912 if test "$lt_cv_prog_gnu_ld" = yes; then
12920 soname_spec
='${libname}${release}${shared_ext}$major'
12921 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12923 irix5
* | nonstopux
*)
12924 libsuff
= shlibsuff
=
12927 case $LD in # libtool.m4 will add one of these switches to LD
12928 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
12929 libsuff
= shlibsuff
= libmagic
=32-bit;;
12930 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
12931 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
12932 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
12933 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
12934 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
12938 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
12939 shlibpath_overrides_runpath
=no
12940 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12941 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
12942 hardcode_into_libs
=yes
12945 # No shared lib support for Linux oldld, aout, or coff.
12946 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
12950 # This must be Linux ELF.
12951 linux
* | k
*bsd
*-gnu)
12955 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12956 soname_spec
='${libname}${release}${shared_ext}$major'
12957 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12958 shlibpath_var
=LD_LIBRARY_PATH
12959 shlibpath_overrides_runpath
=no
12960 # This implies no fast_install, which is unacceptable.
12961 # Some rework will be needed to allow for fast_install
12962 # before this can be enabled.
12963 hardcode_into_libs
=yes
12965 # Append ld.so.conf contents to the search path
12966 if test -f /etc
/ld.so.conf
; then
12967 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' ' '`
12968 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
12971 # We used to test for /lib/ld.so.1 and disable shared libraries on
12972 # powerpc, because MkLinux only supported shared libraries with the
12973 # GNU dynamic linker. Since this was broken with cross compilers,
12974 # most powerpc-linux boxes support dynamic linking these days and
12975 # people can always --disable-shared, the test was removed, and we
12976 # assume the GNU/Linux dynamic linker is in use.
12977 dynamic_linker
='GNU/Linux ld.so'
12984 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12985 soname_spec
='${libname}${release}${shared_ext}$major'
12986 shlibpath_var
=LD_LIBRARY_PATH
12987 shlibpath_overrides_runpath
=no
12988 hardcode_into_libs
=yes
12989 dynamic_linker
='NetBSD ld.elf_so'
12996 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
12997 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12998 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12999 dynamic_linker
='NetBSD (a.out) ld.so'
13001 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13002 soname_spec
='${libname}${release}${shared_ext}$major'
13003 dynamic_linker
='NetBSD ld.elf_so'
13005 shlibpath_var
=LD_LIBRARY_PATH
13006 shlibpath_overrides_runpath
=yes
13007 hardcode_into_libs
=yes
13012 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13013 shlibpath_var
=LD_LIBRARY_PATH
13014 shlibpath_overrides_runpath
=yes
13021 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13022 soname_spec
='${libname}${release}${shared_ext}$major'
13023 shlibpath_var
=LD_LIBRARY_PATH
13024 shlibpath_overrides_runpath
=yes
13029 sys_lib_dlsearch_path_spec
="/usr/lib"
13031 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13033 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
13034 *) need_version
=no
;;
13036 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13037 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13038 shlibpath_var
=LD_LIBRARY_PATH
13039 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13041 openbsd2.
[89] | openbsd2.
[89].
*)
13042 shlibpath_overrides_runpath
=no
13045 shlibpath_overrides_runpath
=yes
13049 shlibpath_overrides_runpath
=yes
13054 libname_spec
='$name'
13057 library_names_spec
='$libname${shared_ext} $libname.a'
13058 dynamic_linker
='OS/2 ld.exe'
13059 shlibpath_var
=LIBPATH
13062 osf3
* | osf4
* | osf5
*)
13066 soname_spec
='${libname}${release}${shared_ext}$major'
13067 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13068 shlibpath_var
=LD_LIBRARY_PATH
13069 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13070 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
13077 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13078 soname_spec
='${libname}${release}${shared_ext}$major'
13079 shlibpath_var
=LD_LIBRARY_PATH
13080 shlibpath_overrides_runpath
=yes
13081 hardcode_into_libs
=yes
13082 # ldd complains unless libraries are executable
13083 postinstall_cmds
='chmod +x $lib'
13088 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13089 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13090 shlibpath_var
=LD_LIBRARY_PATH
13091 shlibpath_overrides_runpath
=yes
13092 if test "$with_gnu_ld" = yes; then
13100 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13101 soname_spec
='${libname}${release}${shared_ext}$major'
13102 shlibpath_var
=LD_LIBRARY_PATH
13103 case $host_vendor in
13105 shlibpath_overrides_runpath
=no
13107 export_dynamic_flag_spec
='${wl}-Blargedynsym'
13108 runpath_var
=LD_RUN_PATH
13116 shlibpath_overrides_runpath
=no
13117 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
13123 if test -d /usr
/nec
;then
13125 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13126 soname_spec
='$libname${shared_ext}.$major'
13127 shlibpath_var
=LD_LIBRARY_PATH
13131 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
13132 version_type
=freebsd-elf
13135 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13136 soname_spec
='${libname}${release}${shared_ext}$major'
13137 shlibpath_var
=LD_LIBRARY_PATH
13138 hardcode_into_libs
=yes
13139 if test "$with_gnu_ld" = yes; then
13140 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13141 shlibpath_overrides_runpath
=no
13143 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
13144 shlibpath_overrides_runpath
=yes
13147 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
13151 sys_lib_dlsearch_path_spec
='/usr/lib'
13156 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13157 soname_spec
='${libname}${release}${shared_ext}$major'
13158 shlibpath_var
=LD_LIBRARY_PATH
13165 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13166 echo "${ECHO_T}$dynamic_linker" >&6; }
13167 test "$dynamic_linker" = no
&& can_build_shared
=no
13169 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
13170 if test "$GCC" = yes; then
13171 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13174 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13175 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13176 hardcode_action_CXX
=
13177 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13178 test -n "$runpath_var_CXX" || \
13179 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13181 # We can hardcode non-existant directories.
13182 if test "$hardcode_direct_CXX" != no
&&
13183 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13184 # have to relink, otherwise we might link with an installed library
13185 # when we should be linking with a yet-to-be-installed one
13186 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13187 test "$hardcode_minus_L_CXX" != no
; then
13188 # Linking always hardcodes the temporary library directory.
13189 hardcode_action_CXX
=relink
13191 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13192 hardcode_action_CXX
=immediate
13195 # We cannot hardcode anything, or else we can only hardcode existing
13197 hardcode_action_CXX
=unsupported
13199 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13200 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13202 if test "$hardcode_action_CXX" = relink
; then
13203 # Fast installation is not supported
13204 enable_fast_install
=no
13205 elif test "$shlibpath_overrides_runpath" = yes ||
13206 test "$enable_shared" = no
; then
13207 # Fast installation is not necessary
13208 enable_fast_install
=needless
13212 # The else clause should only fire when bootstrapping the
13213 # libtool distribution, otherwise you forgot to ship ltmain.sh
13214 # with your package, and you will get complaints that there are
13215 # no rules to generate ltmain.sh.
13216 if test -f "$ltmain"; then
13217 # See if we are running on zsh, and set the options which allow our commands through
13218 # without removal of \ escapes.
13219 if test -n "${ZSH_VERSION+set}" ; then
13220 setopt NO_GLOB_SUBST
13222 # Now quote all the things that may contain metacharacters while being
13223 # careful not to overquote the AC_SUBSTed values. We take copies of the
13224 # variables and quote the copies for generation of the libtool script.
13225 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13227 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13228 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13229 deplibs_check_method reload_flag reload_cmds need_locks \
13230 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13231 lt_cv_sys_global_symbol_to_c_name_address \
13232 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13233 old_postinstall_cmds old_postuninstall_cmds \
13237 lt_prog_compiler_wl_CXX \
13238 lt_prog_compiler_pic_CXX \
13239 lt_prog_compiler_static_CXX \
13240 lt_prog_compiler_no_builtin_flag_CXX \
13241 export_dynamic_flag_spec_CXX \
13242 thread_safe_flag_spec_CXX \
13243 whole_archive_flag_spec_CXX \
13244 enable_shared_with_static_runtimes_CXX \
13245 old_archive_cmds_CXX \
13246 old_archive_from_new_cmds_CXX \
13247 predep_objects_CXX \
13248 postdep_objects_CXX \
13251 compiler_lib_search_path_CXX \
13253 archive_expsym_cmds_CXX \
13254 postinstall_cmds_CXX \
13255 postuninstall_cmds_CXX \
13256 old_archive_from_expsyms_cmds_CXX \
13257 allow_undefined_flag_CXX \
13258 no_undefined_flag_CXX \
13259 export_symbols_cmds_CXX \
13260 hardcode_libdir_flag_spec_CXX \
13261 hardcode_libdir_flag_spec_ld_CXX \
13262 hardcode_libdir_separator_CXX \
13263 hardcode_automatic_CXX \
13265 module_expsym_cmds_CXX \
13266 lt_cv_prog_compiler_c_o_CXX \
13267 exclude_expsyms_CXX \
13268 include_expsyms_CXX
; do
13271 old_archive_cmds_CXX | \
13272 old_archive_from_new_cmds_CXX | \
13273 archive_cmds_CXX | \
13274 archive_expsym_cmds_CXX | \
13275 module_cmds_CXX | \
13276 module_expsym_cmds_CXX | \
13277 old_archive_from_expsyms_cmds_CXX | \
13278 export_symbols_cmds_CXX | \
13279 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13280 postinstall_cmds | postuninstall_cmds | \
13281 old_postinstall_cmds | old_postuninstall_cmds | \
13282 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
13283 # Double-quote double-evaled strings.
13284 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13287 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13293 *'\$0 --fallback-echo"')
13294 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13300 cat <<__EOF__ >> "$cfgfile"
13301 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13303 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13305 # Shell to use when invoking shell scripts.
13308 # Whether or not to build shared libraries.
13309 build_libtool_libs=$enable_shared
13311 # Whether or not to build static libraries.
13312 build_old_libs=$enable_static
13314 # Whether or not to add -lc for building shared libraries.
13315 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13317 # Whether or not to disallow shared libs when runtime libs are static
13318 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13320 # Whether or not to optimize for fast installation.
13321 fast_install=$enable_fast_install
13324 host_alias=$host_alias
13328 # The build system.
13329 build_alias=$build_alias
13333 # An echo program that does not interpret backslashes.
13338 AR_FLAGS=$lt_AR_FLAGS
13343 # LTCC compiler flags.
13344 LTCFLAGS=$lt_LTCFLAGS
13346 # A language-specific compiler.
13347 CC=$lt_compiler_CXX
13349 # Is the compiler the GNU C compiler?
13355 # The linker used to build libraries.
13358 # Whether we need hard or soft links.
13361 # A BSD-compatible nm program.
13364 # A symbol stripping program
13367 # Used to examine libraries when file_magic_cmd begins "file"
13368 MAGIC_CMD=$MAGIC_CMD
13370 # Used on cygwin: DLL creation program.
13373 # Used on cygwin: object dumper.
13376 # Used on cygwin: assembler.
13379 # The name of the directory that contains temporary libtool files.
13382 # How to create reloadable object files.
13383 reload_flag=$lt_reload_flag
13384 reload_cmds=$lt_reload_cmds
13386 # How to pass a linker flag through the compiler.
13387 wl=$lt_lt_prog_compiler_wl_CXX
13389 # Object file suffix (normally "o").
13390 objext="$ac_objext"
13392 # Old archive suffix (normally "a").
13395 # Shared library suffix (normally ".so").
13396 shrext_cmds='$shrext_cmds'
13398 # Executable file suffix (normally "").
13401 # Additional compiler flags for building library objects.
13402 pic_flag=$lt_lt_prog_compiler_pic_CXX
13405 # What is the maximum length of a command?
13406 max_cmd_len=$lt_cv_sys_max_cmd_len
13408 # Does compiler simultaneously support -c and -o options?
13409 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13411 # Must we lock files when doing compilation?
13412 need_locks=$lt_need_locks
13414 # Do we need the lib prefix for modules?
13415 need_lib_prefix=$need_lib_prefix
13417 # Do we need a version for libraries?
13418 need_version=$need_version
13420 # Whether dlopen is supported.
13421 dlopen_support=$enable_dlopen
13423 # Whether dlopen of programs is supported.
13424 dlopen_self=$enable_dlopen_self
13426 # Whether dlopen of statically linked programs is supported.
13427 dlopen_self_static=$enable_dlopen_self_static
13429 # Compiler flag to prevent dynamic linking.
13430 link_static_flag=$lt_lt_prog_compiler_static_CXX
13432 # Compiler flag to turn off builtin functions.
13433 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13435 # Compiler flag to allow reflexive dlopens.
13436 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13438 # Compiler flag to generate shared objects directly from archives.
13439 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13441 # Compiler flag to generate thread-safe objects.
13442 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13444 # Library versioning type.
13445 version_type=$version_type
13447 # Format of library name prefix.
13448 libname_spec=$lt_libname_spec
13450 # List of archive names. First name is the real one, the rest are links.
13451 # The last name is the one that the linker finds with -lNAME.
13452 library_names_spec=$lt_library_names_spec
13454 # The coded name of the library, if different from the real name.
13455 soname_spec=$lt_soname_spec
13457 # Commands used to build and install an old-style archive.
13459 old_archive_cmds=$lt_old_archive_cmds_CXX
13460 old_postinstall_cmds=$lt_old_postinstall_cmds
13461 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13463 # Create an old-style archive from a shared archive.
13464 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13466 # Create a temporary old-style archive to link instead of a shared archive.
13467 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13469 # Commands used to build and install a shared archive.
13470 archive_cmds=$lt_archive_cmds_CXX
13471 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13472 postinstall_cmds=$lt_postinstall_cmds
13473 postuninstall_cmds=$lt_postuninstall_cmds
13475 # Commands used to build a loadable module (assumed same as above if empty)
13476 module_cmds=$lt_module_cmds_CXX
13477 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13479 # Commands to strip libraries.
13480 old_striplib=$lt_old_striplib
13481 striplib=$lt_striplib
13483 # Dependencies to place before the objects being linked to create a
13485 predep_objects=$lt_predep_objects_CXX
13487 # Dependencies to place after the objects being linked to create a
13489 postdep_objects=$lt_postdep_objects_CXX
13491 # Dependencies to place before the objects being linked to create a
13493 predeps=$lt_predeps_CXX
13495 # Dependencies to place after the objects being linked to create a
13497 postdeps=$lt_postdeps_CXX
13499 # The library search path used internally by the compiler when linking
13500 # a shared library.
13501 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13503 # Method to check whether dependent libraries are shared objects.
13504 deplibs_check_method=$lt_deplibs_check_method
13506 # Command to use when deplibs_check_method == file_magic.
13507 file_magic_cmd=$lt_file_magic_cmd
13509 # Flag that allows shared libraries with undefined symbols to be built.
13510 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13512 # Flag that forces no undefined symbols.
13513 no_undefined_flag=$lt_no_undefined_flag_CXX
13515 # Commands used to finish a libtool library installation in a directory.
13516 finish_cmds=$lt_finish_cmds
13518 # Same as above, but a single script fragment to be evaled but not shown.
13519 finish_eval=$lt_finish_eval
13521 # Take the output of nm and produce a listing of raw symbols and C names.
13522 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13524 # Transform the output of nm in a proper C declaration
13525 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13527 # Transform the output of nm in a C name address pair
13528 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13530 # This is the shared library runtime path variable.
13531 runpath_var=$runpath_var
13533 # This is the shared library path variable.
13534 shlibpath_var=$shlibpath_var
13536 # Is shlibpath searched before the hard-coded library search path?
13537 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13539 # How to hardcode a shared library path into an executable.
13540 hardcode_action=$hardcode_action_CXX
13542 # Whether we should hardcode library paths into libraries.
13543 hardcode_into_libs=$hardcode_into_libs
13545 # Flag to hardcode \$libdir into a binary during linking.
13546 # This must work even if \$libdir does not exist.
13547 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13549 # If ld is used when linking, flag to hardcode \$libdir into
13550 # a binary during linking. This must work even if \$libdir does
13552 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13554 # Whether we need a single -rpath flag with a separated argument.
13555 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13557 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13558 # resulting binary.
13559 hardcode_direct=$hardcode_direct_CXX
13561 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13562 # resulting binary.
13563 hardcode_minus_L=$hardcode_minus_L_CXX
13565 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13566 # the resulting binary.
13567 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13569 # Set to yes if building a shared library automatically hardcodes DIR into the library
13570 # and all subsequent libraries and executables linked against it.
13571 hardcode_automatic=$hardcode_automatic_CXX
13573 # Variables whose values should be saved in libtool wrapper scripts and
13574 # restored at relink time.
13575 variables_saved_for_relink="$variables_saved_for_relink"
13577 # Whether libtool must link a program against all its dependency libraries.
13578 link_all_deplibs=$link_all_deplibs_CXX
13580 # Compile-time system search path for libraries
13581 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13583 # Run-time system search path for libraries
13584 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13586 # Fix the shell variable \$srcfile for the compiler.
13587 fix_srcfile_path="$fix_srcfile_path_CXX"
13589 # Set to yes if exported symbols are required.
13590 always_export_symbols=$always_export_symbols_CXX
13592 # The commands to list exported symbols.
13593 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13595 # The commands to extract the exported symbol list from a shared archive.
13596 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13598 # Symbols that should not be listed in the preloaded symbols.
13599 exclude_expsyms=$lt_exclude_expsyms_CXX
13601 # Symbols that must always be exported.
13602 include_expsyms=$lt_include_expsyms_CXX
13604 # ### END LIBTOOL TAG CONFIG: $tagname
13610 # If there is no Makefile yet, we rely on a make rule to execute
13611 # `config.status --recheck' to rerun these tests and create the
13612 # libtool script then.
13613 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13614 if test -f "$ltmain_in"; then
13615 test -f Makefile
&& make "$ltmain"
13621 ac_cpp
='$CPP $CPPFLAGS'
13622 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13623 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13624 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
13630 with_gnu_ldcxx
=$with_gnu_ld
13631 with_gnu_ld
=$lt_save_with_gnu_ld
13632 lt_cv_path_LDCXX
=$lt_cv_path_LD
13633 lt_cv_path_LD
=$lt_save_path_LD
13634 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
13635 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
13643 if test -n "$F77" && test "X$F77" != "Xno"; then
13646 ac_compile
='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13647 ac_link
='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13648 ac_compiler_gnu
=$ac_cv_f77_compiler_gnu
13651 archive_cmds_need_lc_F77
=no
13652 allow_undefined_flag_F77
=
13653 always_export_symbols_F77
=no
13654 archive_expsym_cmds_F77
=
13655 export_dynamic_flag_spec_F77
=
13656 hardcode_direct_F77
=no
13657 hardcode_libdir_flag_spec_F77
=
13658 hardcode_libdir_flag_spec_ld_F77
=
13659 hardcode_libdir_separator_F77
=
13660 hardcode_minus_L_F77
=no
13661 hardcode_automatic_F77
=no
13663 module_expsym_cmds_F77
=
13664 link_all_deplibs_F77
=unknown
13665 old_archive_cmds_F77
=$old_archive_cmds
13666 no_undefined_flag_F77
=
13667 whole_archive_flag_spec_F77
=
13668 enable_shared_with_static_runtimes_F77
=no
13670 # Source file extension for f77 test sources.
13673 # Object file extension for compiled f77 test sources.
13677 # Code to be used in simple compile tests
13678 lt_simple_compile_test_code
=" subroutine t\n return\n end\n"
13680 # Code to be used in simple link tests
13681 lt_simple_link_test_code
=" program t\n end\n"
13683 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13685 # If no C compiler was specified, use CC.
13688 # If no C compiler flags were specified, use CFLAGS.
13689 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
13691 # Allow CC to be a program name with arguments.
13695 # save warnings/boilerplate of simple test code
13696 ac_outfile
=conftest.
$ac_objext
13697 printf "$lt_simple_compile_test_code" >conftest.
$ac_ext
13698 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
13699 _lt_compiler_boilerplate
=`cat conftest.err`
13702 ac_outfile
=conftest.
$ac_objext
13703 printf "$lt_simple_link_test_code" >conftest.
$ac_ext
13704 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
13705 _lt_linker_boilerplate
=`cat conftest.err`
13709 # Allow CC to be a program name with arguments.
13714 for cc_temp
in $compiler""; do
13716 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
13717 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
13722 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13725 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13726 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13727 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
13728 echo "${ECHO_T}$can_build_shared" >&6; }
13730 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13731 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13732 test "$can_build_shared" = "no" && enable_shared
=no
13734 # On AIX, shared libraries and static libraries use the same namespace, and
13735 # are all built from PIC.
13738 test "$enable_shared" = yes && enable_static
=no
13739 if test -n "$RANLIB"; then
13740 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
13741 postinstall_cmds
='$RANLIB $lib'
13745 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
13746 test "$enable_shared" = yes && enable_static
=no
13750 { echo "$as_me:$LINENO: result: $enable_shared" >&5
13751 echo "${ECHO_T}$enable_shared" >&6; }
13753 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13754 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13755 # Make sure either enable_shared or enable_static is yes.
13756 test "$enable_shared" = yes || enable_static
=yes
13757 { echo "$as_me:$LINENO: result: $enable_static" >&5
13758 echo "${ECHO_T}$enable_static" >&6; }
13763 lt_prog_compiler_wl_F77
=
13764 lt_prog_compiler_pic_F77
=
13765 lt_prog_compiler_static_F77
=
13767 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13768 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13770 if test "$GCC" = yes; then
13771 lt_prog_compiler_wl_F77
='-Wl,'
13772 lt_prog_compiler_static_F77
='-static'
13776 # All AIX code is PIC.
13777 if test "$host_cpu" = ia64
; then
13778 # AIX 5 now supports IA64 processor
13779 lt_prog_compiler_static_F77
='-Bstatic'
13784 # FIXME: we need at least 68020 code to build shared libraries, but
13785 # adding the `-m68020' flag to GCC prevents building anything better,
13787 lt_prog_compiler_pic_F77
='-m68020 -resident32 -malways-restore-a4'
13790 beos
* | cygwin
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
13791 # PIC is the default for these OSes.
13794 mingw
* | pw32
* | os2
*)
13795 # This hack is so that the source file can tell whether it is being
13796 # built for inclusion in a dll (and should export symbols for example).
13797 lt_prog_compiler_pic_F77
='-DDLL_EXPORT'
13800 darwin
* | rhapsody
*)
13801 # PIC is the default on this platform
13802 # Common symbols not allowed in MH_DYLIB files
13803 lt_prog_compiler_pic_F77
='-fno-common'
13807 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13808 # Instead, we relocate shared libraries at runtime.
13812 # Just because we use GCC doesn't mean we suddenly get shared libraries
13813 # on systems that don't support them.
13814 lt_prog_compiler_can_build_shared_F77
=no
13819 if test -d /usr
/nec
; then
13820 lt_prog_compiler_pic_F77
=-Kconform_pic
13825 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13826 # not for PA HP-UX.
13832 lt_prog_compiler_pic_F77
='-fPIC'
13838 lt_prog_compiler_pic_F77
='-fPIC'
13842 # PORTME Check for flag to pass linker flags through the system compiler.
13845 lt_prog_compiler_wl_F77
='-Wl,'
13846 if test "$host_cpu" = ia64
; then
13847 # AIX 5 now supports IA64 processor
13848 lt_prog_compiler_static_F77
='-Bstatic'
13850 lt_prog_compiler_static_F77
='-bnso -bI:/lib/syscalls.exp'
13854 # PIC is the default on this platform
13855 # Common symbols not allowed in MH_DYLIB files
13856 case $cc_basename in
13858 lt_prog_compiler_pic_F77
='-qnocommon'
13859 lt_prog_compiler_wl_F77
='-Wl,'
13864 mingw
* | pw32
* | os2
*)
13865 # This hack is so that the source file can tell whether it is being
13866 # built for inclusion in a dll (and should export symbols for example).
13867 lt_prog_compiler_pic_F77
='-DDLL_EXPORT'
13870 hpux9
* | hpux10
* | hpux11
*)
13871 lt_prog_compiler_wl_F77
='-Wl,'
13872 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13873 # not for PA HP-UX.
13879 lt_prog_compiler_pic_F77
='+Z'
13882 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13883 lt_prog_compiler_static_F77
='${wl}-a ${wl}archive'
13886 irix5
* | irix6
* | nonstopux
*)
13887 lt_prog_compiler_wl_F77
='-Wl,'
13888 # PIC (with -KPIC) is the default.
13889 lt_prog_compiler_static_F77
='-non_shared'
13893 lt_prog_compiler_pic_F77
='-KPIC'
13894 lt_prog_compiler_static_F77
='-Bstatic'
13897 linux
* | k
*bsd
*-gnu)
13898 case $cc_basename in
13900 lt_prog_compiler_wl_F77
='-Wl,'
13901 lt_prog_compiler_pic_F77
='-KPIC'
13902 lt_prog_compiler_static_F77
='-static'
13904 pgcc
* | pgf77
* | pgf90
* | pgf95
*)
13905 # Portland Group compilers (*not* the Pentium gcc compiler,
13906 # which looks to be a dead project)
13907 lt_prog_compiler_wl_F77
='-Wl,'
13908 lt_prog_compiler_pic_F77
='-fpic'
13909 lt_prog_compiler_static_F77
='-Bstatic'
13912 lt_prog_compiler_wl_F77
='-Wl,'
13913 # All Alpha code is PIC.
13914 lt_prog_compiler_static_F77
='-non_shared'
13919 osf3
* | osf4
* | osf5
*)
13920 lt_prog_compiler_wl_F77
='-Wl,'
13921 # All OSF/1 code is PIC.
13922 lt_prog_compiler_static_F77
='-non_shared'
13926 lt_prog_compiler_pic_F77
='-KPIC'
13927 lt_prog_compiler_static_F77
='-Bstatic'
13928 case $cc_basename in
13929 f77
* | f90
* | f95
*)
13930 lt_prog_compiler_wl_F77
='-Qoption ld ';;
13932 lt_prog_compiler_wl_F77
='-Wl,';;
13937 lt_prog_compiler_wl_F77
='-Qoption ld '
13938 lt_prog_compiler_pic_F77
='-PIC'
13939 lt_prog_compiler_static_F77
='-Bstatic'
13942 sysv4 | sysv4.2uw2
* | sysv4.3
*)
13943 lt_prog_compiler_wl_F77
='-Wl,'
13944 lt_prog_compiler_pic_F77
='-KPIC'
13945 lt_prog_compiler_static_F77
='-Bstatic'
13949 if test -d /usr
/nec
;then
13950 lt_prog_compiler_pic_F77
='-Kconform_pic'
13951 lt_prog_compiler_static_F77
='-Bstatic'
13955 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
13956 lt_prog_compiler_wl_F77
='-Wl,'
13957 lt_prog_compiler_pic_F77
='-KPIC'
13958 lt_prog_compiler_static_F77
='-Bstatic'
13962 lt_prog_compiler_wl_F77
='-Wl,'
13963 lt_prog_compiler_can_build_shared_F77
=no
13967 lt_prog_compiler_pic_F77
='-pic'
13968 lt_prog_compiler_static_F77
='-Bstatic'
13972 lt_prog_compiler_can_build_shared_F77
=no
13977 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13978 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
13981 # Check to make sure the PIC flag actually works.
13983 if test -n "$lt_prog_compiler_pic_F77"; then
13985 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13986 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
13987 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13988 echo $ECHO_N "(cached) $ECHO_C" >&6
13990 lt_prog_compiler_pic_works_F77
=no
13991 ac_outfile
=conftest.
$ac_objext
13992 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
13993 lt_compiler_flag
="$lt_prog_compiler_pic_F77"
13994 # Insert the option either (1) after the last *FLAGS variable, or
13995 # (2) before a word containing "conftest.", or (3) at the end.
13996 # Note that $ac_compile itself does not contain backslashes and begins
13997 # with a dollar sign (not a hyphen), so the echo should work correctly.
13998 # The option is referenced via a variable to avoid confusing sed.
13999 lt_compile
=`echo "$ac_compile" | $SED \
14000 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14001 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14002 -e 's:$: $lt_compiler_flag:'`
14003 (eval echo "\"\$as_me:14003: $lt_compile\"" >&5)
14004 (eval "$lt_compile" 2>conftest.err
)
14006 cat conftest.err
>&5
14007 echo "$as_me:14007: \$? = $ac_status" >&5
14008 if (exit $ac_status) && test -s "$ac_outfile"; then
14009 # The compiler can only warn and ignore the option if not recognized
14010 # So say no if there are warnings other than the usual output.
14011 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
14012 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
14013 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
14014 lt_prog_compiler_pic_works_F77
=yes
14020 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14021 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14023 if test x
"$lt_prog_compiler_pic_works_F77" = xyes
; then
14024 case $lt_prog_compiler_pic_F77 in
14026 *) lt_prog_compiler_pic_F77
=" $lt_prog_compiler_pic_F77" ;;
14029 lt_prog_compiler_pic_F77
=
14030 lt_prog_compiler_can_build_shared_F77
=no
14035 # For platforms which do not support PIC, -DPIC is meaningless:
14037 lt_prog_compiler_pic_F77
=
14040 lt_prog_compiler_pic_F77
="$lt_prog_compiler_pic_F77"
14045 # Check to make sure the static flag actually works.
14047 wl
=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_F77\"
14048 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14049 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14050 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14051 echo $ECHO_N "(cached) $ECHO_C" >&6
14053 lt_prog_compiler_static_works_F77
=no
14054 save_LDFLAGS
="$LDFLAGS"
14055 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
14056 printf "$lt_simple_link_test_code" > conftest.
$ac_ext
14057 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
14058 # The linker can only warn and ignore the option if not recognized
14059 # So say no if there are warnings
14060 if test -s conftest.err
; then
14061 # Append any errors to the config.log.
14062 cat conftest.err
1>&5
14063 $echo "X$_lt_linker_boilerplate" |
$Xsed -e '/^$/d' > conftest.exp
14064 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
14065 if diff conftest.exp conftest.er2
>/dev
/null
; then
14066 lt_prog_compiler_static_works_F77
=yes
14069 lt_prog_compiler_static_works_F77
=yes
14073 LDFLAGS
="$save_LDFLAGS"
14076 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14077 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14079 if test x
"$lt_prog_compiler_static_works_F77" = xyes
; then
14082 lt_prog_compiler_static_F77
=
14086 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14087 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14088 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14089 echo $ECHO_N "(cached) $ECHO_C" >&6
14091 lt_cv_prog_compiler_c_o_F77
=no
14092 $rm -r conftest
2>/dev
/null
14096 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
14098 lt_compiler_flag
="-o out/conftest2.$ac_objext"
14099 # Insert the option either (1) after the last *FLAGS variable, or
14100 # (2) before a word containing "conftest.", or (3) at the end.
14101 # Note that $ac_compile itself does not contain backslashes and begins
14102 # with a dollar sign (not a hyphen), so the echo should work correctly.
14103 lt_compile
=`echo "$ac_compile" | $SED \
14104 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14105 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14106 -e 's:$: $lt_compiler_flag:'`
14107 (eval echo "\"\$as_me:14107: $lt_compile\"" >&5)
14108 (eval "$lt_compile" 2>out
/conftest.err
)
14110 cat out
/conftest.err
>&5
14111 echo "$as_me:14111: \$? = $ac_status" >&5
14112 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
14114 # The compiler can only warn and ignore the option if not recognized
14115 # So say no if there are warnings
14116 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
14117 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
14118 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
14119 lt_cv_prog_compiler_c_o_F77
=yes
14124 # SGI C++ compiler will create directory out/ii_files/ for
14125 # template instantiation
14126 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
14127 $rm out
/* && rmdir out
14133 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14134 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14137 hard_links
="nottested"
14138 if test "$lt_cv_prog_compiler_c_o_F77" = no
&& test "$need_locks" != no
; then
14139 # do not overwrite the value of need_locks provided by the user
14140 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14141 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14144 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
14146 ln conftest.a conftest.b
2>&5 || hard_links
=no
14147 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
14148 { echo "$as_me:$LINENO: result: $hard_links" >&5
14149 echo "${ECHO_T}$hard_links" >&6; }
14150 if test "$hard_links" = no
; then
14151 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14152 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14159 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14160 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14163 allow_undefined_flag_F77
=
14164 enable_shared_with_static_runtimes_F77
=no
14166 archive_expsym_cmds_F77
=
14167 old_archive_From_new_cmds_F77
=
14168 old_archive_from_expsyms_cmds_F77
=
14169 export_dynamic_flag_spec_F77
=
14170 whole_archive_flag_spec_F77
=
14171 thread_safe_flag_spec_F77
=
14172 hardcode_libdir_flag_spec_F77
=
14173 hardcode_libdir_flag_spec_ld_F77
=
14174 hardcode_libdir_separator_F77
=
14175 hardcode_direct_F77
=no
14176 hardcode_minus_L_F77
=no
14177 hardcode_shlibpath_var_F77
=unsupported
14178 link_all_deplibs_F77
=unknown
14179 hardcode_automatic_F77
=no
14181 module_expsym_cmds_F77
=
14182 always_export_symbols_F77
=no
14183 export_symbols_cmds_F77
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14184 # include_expsyms should be a list of space-separated symbols to be *always*
14185 # included in the symbol list
14186 include_expsyms_F77
=
14187 # exclude_expsyms can be an extended regexp of symbols to exclude
14188 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14189 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14190 # as well as any symbol that contains `d'.
14191 exclude_expsyms_F77
="_GLOBAL_OFFSET_TABLE_"
14192 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14193 # platforms (ab)use it in PIC code, but their linkers get confused if
14194 # the symbol is explicitly referenced. Since portable code cannot
14195 # rely on this symbol name, it's probably fine to never include it in
14196 # preloaded symbol tables.
14197 extract_expsyms_cmds
=
14198 # Just being paranoid about ensuring that cc_basename is set.
14199 for cc_temp
in $compiler""; do
14201 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
14202 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
14207 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14210 cygwin
* | mingw
* | pw32
*)
14211 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14212 # When not using gcc, we currently assume that we are using
14213 # Microsoft Visual C++.
14214 if test "$GCC" != yes; then
14219 # we just hope/assume this is gcc and not c89 (= MSVC++)
14228 if test "$with_gnu_ld" = yes; then
14229 # If archive_cmds runs LD, not CC, wlarc should be empty
14232 # Set some defaults for GNU ld with shared library support. These
14233 # are reset later if shared libraries are not supported. Putting them
14234 # here allows them to be overridden if necessary.
14235 runpath_var
=LD_RUN_PATH
14236 hardcode_libdir_flag_spec_F77
='${wl}--rpath ${wl}$libdir'
14237 export_dynamic_flag_spec_F77
='${wl}--export-dynamic'
14238 # ancient GNU ld didn't support --whole-archive et. al.
14239 if $LD --help 2>&1 |
grep 'no-whole-archive' > /dev
/null
; then
14240 whole_archive_flag_spec_F77
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14242 whole_archive_flag_spec_F77
=
14244 supports_anon_versioning
=no
14245 case `$LD -v 2>/dev/null` in
14246 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
14247 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
14248 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
14249 *\
2.11.
*) ;; # other 2.11 versions
14250 *) supports_anon_versioning
=yes ;;
14253 # See if GNU ld supports shared libraries.
14255 aix3
* | aix4
* | aix5
*)
14256 # On AIX/PPC, the GNU linker is very broken
14257 if test "$host_cpu" != ia64
; then
14261 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14262 *** to be unable to reliably create shared libraries on AIX.
14263 *** Therefore, libtool is disabling shared libraries support. If you
14264 *** really care for shared libraries, you may want to modify your PATH
14265 *** so that a non-GNU linker is found, and then restart.
14272 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)'
14273 hardcode_libdir_flag_spec_F77
='-L$libdir'
14274 hardcode_minus_L_F77
=yes
14276 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14277 # that the semantics of dynamic libraries on AmigaOS, at least up
14278 # to version 4, is to share data among multiple programs linked
14279 # with the same dynamic library. Since this doesn't match the
14280 # behavior of shared libraries on other platforms, we can't use
14286 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
14287 allow_undefined_flag_F77
=unsupported
14288 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14289 # support --undefined. This deserves some investigation. FIXME
14290 archive_cmds_F77
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14296 cygwin
* | mingw
* | pw32
*)
14297 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14298 # as there is no search path for DLLs.
14299 hardcode_libdir_flag_spec_F77
='-L$libdir'
14300 allow_undefined_flag_F77
=unsupported
14301 always_export_symbols_F77
=no
14302 enable_shared_with_static_runtimes_F77
=yes
14303 export_symbols_cmds_F77
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14305 if $LD --help 2>&1 |
grep 'auto-import' > /dev
/null
; then
14306 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14307 # If the export-symbols file already is a .def file (1st line
14308 # is EXPORTS), use it as is; otherwise, prepend...
14309 archive_expsym_cmds_F77
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14310 cp $export_symbols $output_objdir/$soname.def;
14312 echo EXPORTS > $output_objdir/$soname.def;
14313 cat $export_symbols >> $output_objdir/$soname.def;
14315 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14322 hardcode_direct_F77
=no
14323 hardcode_shlibpath_var_F77
=no
14324 hardcode_libdir_flag_spec_F77
='${wl}-rpath,$libdir'
14325 export_dynamic_flag_spec_F77
='${wl}-E'
14326 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14327 # Instead, shared libraries are loaded at an image base (0x10000000 by
14328 # default) and relocated if they conflict, which is a slow very memory
14329 # consuming and fragmenting process. To avoid this, we pick a random,
14330 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14331 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14332 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'
14333 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'
14336 linux
* | k
*bsd
*-gnu)
14337 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
14339 case $cc_basename,$host_cpu in
14340 pgcc
*) # Portland Group C compiler
14341 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'
14342 tmp_addflag
=' $pic_flag'
14344 pgf77
* | pgf90
* | pgf95
*) # Portland Group f77 and f90 compilers
14345 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'
14346 tmp_addflag
=' $pic_flag -Mnomain' ;;
14347 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
14348 tmp_addflag
=' -i_dynamic' ;;
14349 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
14350 tmp_addflag
=' -i_dynamic -nofor_main' ;;
14351 ifc
* | ifort
*) # Intel Fortran compiler
14352 tmp_addflag
=' -nofor_main' ;;
14354 archive_cmds_F77
='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14356 if test $supports_anon_versioning = yes; then
14357 archive_expsym_cmds_F77
='$echo "{ global:" > $output_objdir/$libname.ver~
14358 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14359 $echo "local: *; };" >> $output_objdir/$libname.ver~
14360 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14362 link_all_deplibs_F77
=no
14368 netbsd
* | netbsdelf
*-gnu)
14369 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
14370 archive_cmds_F77
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14373 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14374 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14379 if $LD -v 2>&1 |
grep 'BFD 2\.8' > /dev
/null
; then
14383 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14384 *** create shared libraries on Solaris systems. Therefore, libtool
14385 *** is disabling shared libraries support. We urge you to upgrade GNU
14386 *** binutils to release 2.9.1 or newer. Another option is to modify
14387 *** your PATH or compiler configuration so that the native linker is
14388 *** used, and then restart.
14391 elif $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
14392 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14393 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14399 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
14400 case `$LD -v 2>&1` in
14401 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
14405 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14406 *** reliably create shared libraries on SCO systems. Therefore, libtool
14407 *** is disabling shared libraries support. We urge you to upgrade GNU
14408 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14409 *** your PATH or compiler configuration so that the native linker is
14410 *** used, and then restart.
14415 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
14416 hardcode_libdir_flag_spec_F77
='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14417 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14418 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14427 archive_cmds_F77
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14429 hardcode_direct_F77
=yes
14430 hardcode_shlibpath_var_F77
=no
14434 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
14435 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14436 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14443 if test "$ld_shlibs_F77" = no
; then
14445 hardcode_libdir_flag_spec_F77
=
14446 export_dynamic_flag_spec_F77
=
14447 whole_archive_flag_spec_F77
=
14450 # PORTME fill in a description of your system's linker (not GNU ld)
14453 allow_undefined_flag_F77
=unsupported
14454 always_export_symbols_F77
=yes
14455 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'
14456 # Note: this linker hardcodes the directories in LIBPATH if there
14457 # are no directories specified by -L.
14458 hardcode_minus_L_F77
=yes
14459 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14460 # Neither direct hardcoding nor static linking is supported with a
14462 hardcode_direct_F77
=unsupported
14467 if test "$host_cpu" = ia64
; then
14468 # On IA64, the linker does run time linking by default, so we don't
14469 # have to do anything special.
14470 aix_use_runtimelinking
=no
14471 exp_sym_flag
='-Bexport'
14474 # If we're using GNU nm, then we don't want the "-C" option.
14475 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14476 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
14477 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'
14479 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'
14481 aix_use_runtimelinking
=no
14483 # Test if we are trying to use run time linking or normal
14484 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14485 # need to do runtime linking.
14486 case $host_os in aix4.
[23]|aix4.
[23].
*|aix5
*)
14487 for ld_flag
in $LDFLAGS; do
14488 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
14489 aix_use_runtimelinking
=yes
14496 exp_sym_flag
='-bexport'
14497 no_entry_flag
='-bnoentry'
14500 # When large executables or shared objects are built, AIX ld can
14501 # have problems creating the table of contents. If linking a library
14502 # or program results in "error TOC overflow" add -mminimal-toc to
14503 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14504 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14506 archive_cmds_F77
=''
14507 hardcode_direct_F77
=yes
14508 hardcode_libdir_separator_F77
=':'
14509 link_all_deplibs_F77
=yes
14511 if test "$GCC" = yes; then
14512 case $host_os in aix4.
[012]|aix4.
[012].
*)
14513 # We only want to do this on AIX 4.2 and lower, the check
14514 # below for broken collect2 doesn't work under 4.3+
14515 collect2name
=`${CC} -print-prog-name=collect2`
14516 if test -f "$collect2name" && \
14517 strings "$collect2name" |
grep resolve_lib_name
>/dev
/null
14519 # We have reworked collect2
14520 hardcode_direct_F77
=yes
14522 # We have old collect2
14523 hardcode_direct_F77
=unsupported
14524 # It fails to find uninstalled libraries when the uninstalled
14525 # path is not listed in the libpath. Setting hardcode_minus_L
14526 # to unsupported forces relinking
14527 hardcode_minus_L_F77
=yes
14528 hardcode_libdir_flag_spec_F77
='-L$libdir'
14529 hardcode_libdir_separator_F77
=
14533 shared_flag
='-shared'
14534 if test "$aix_use_runtimelinking" = yes; then
14535 shared_flag
="$shared_flag "'${wl}-G'
14539 if test "$host_cpu" = ia64
; then
14540 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14541 # chokes on -Wl,-G. The following line is correct:
14544 if test "$aix_use_runtimelinking" = yes; then
14545 shared_flag
='${wl}-G'
14547 shared_flag
='${wl}-bM:SRE'
14552 # It seems that -bexpall does not export symbols beginning with
14553 # underscore (_), so it is better to generate a list of symbols to export.
14554 always_export_symbols_F77
=yes
14555 if test "$aix_use_runtimelinking" = yes; then
14556 # Warning - without using the other runtime loading flags (-brtl),
14557 # -berok will link without error, but may produce a broken library.
14558 allow_undefined_flag_F77
='-berok'
14559 # Determine the default libpath from the value encoded in an empty executable.
14560 cat >conftest.
$ac_ext <<_ACEOF
14565 rm -f conftest.
$ac_objext conftest
$ac_exeext
14566 if { (ac_try
="$ac_link"
14567 case "(($ac_try" in
14568 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14569 *) ac_try_echo=$ac_try;;
14571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14572 (eval "$ac_link") 2>conftest.er1
14574 grep -v '^ *+' conftest.er1 >conftest.err
14576 cat conftest.err >&5
14577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14578 (exit $ac_status); } && {
14579 test -z "$ac_f77_werror_flag" ||
14580 test ! -s conftest.err
14581 } && test -s conftest$ac_exeext &&
14582 $as_test_x conftest$ac_exeext; then
14584 aix_libpath=`dump
-H conftest
$ac_exeext 2>/dev
/null |
$SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14586 # Check for a 64-bit object if we didn't find anything.
14587 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; }
14590 echo "$as_me: failed program was:" >&5
14591 sed 's/^/| /' conftest.$ac_ext >&5
14596 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14597 conftest$ac_exeext conftest.$ac_ext
14598 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14600 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14601 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"
14603 if test "$host_cpu" = ia64; then
14604 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14605 allow_undefined_flag_F77="-z nodefs"
14606 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"
14608 # Determine the default libpath from the value encoded in an empty executable.
14609 cat >conftest.$ac_ext <<_ACEOF
14614 rm -f conftest.$ac_objext conftest$ac_exeext
14615 if { (ac_try="$ac_link"
14616 case "(($ac_try" in
14617 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14618 *) ac_try_echo
=$ac_try;;
14620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14621 (eval "$ac_link") 2>conftest.er1
14623 grep -v '^ *+' conftest.er1
>conftest.err
14625 cat conftest.err
>&5
14626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14627 (exit $ac_status); } && {
14628 test -z "$ac_f77_werror_flag" ||
14629 test ! -s conftest.err
14630 } && test -s conftest
$ac_exeext &&
14631 $as_test_x conftest
$ac_exeext; then
14633 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14635 # Check for a 64-bit object if we didn't find anything.
14636 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; }
14639 echo "$as_me: failed program was:" >&5
14640 sed 's/^/| /' conftest.
$ac_ext >&5
14645 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14646 conftest
$ac_exeext conftest.
$ac_ext
14647 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
14649 hardcode_libdir_flag_spec_F77
='${wl}-blibpath:$libdir:'"$aix_libpath"
14650 # Warning - without using the other run time loading flags,
14651 # -berok will link without error, but may produce a broken library.
14652 no_undefined_flag_F77
=' ${wl}-bernotok'
14653 allow_undefined_flag_F77
=' ${wl}-berok'
14654 # Exported symbols can be pulled into shared objects from archives
14655 whole_archive_flag_spec_F77
='$convenience'
14656 archive_cmds_need_lc_F77
=yes
14657 # This is similar to how AIX traditionally builds its shared libraries.
14658 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'
14664 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)'
14665 hardcode_libdir_flag_spec_F77
='-L$libdir'
14666 hardcode_minus_L_F77
=yes
14667 # see comment about different semantics on the GNU ld section
14672 export_dynamic_flag_spec_F77
=-rdynamic
14675 cygwin
* | mingw
* | pw32
*)
14676 # When not using gcc, we currently assume that we are using
14677 # Microsoft Visual C++.
14678 # hardcode_libdir_flag_spec is actually meaningless, as there is
14679 # no search path for DLLs.
14680 hardcode_libdir_flag_spec_F77
=' '
14681 allow_undefined_flag_F77
=unsupported
14682 # Tell ltmain to make .lib files, not .a files.
14684 # Tell ltmain to make .dll files, not .so files.
14686 # FIXME: Setting linknames here is a bad hack.
14687 archive_cmds_F77
='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14688 # The linker will automatically build a .lib file if we build a DLL.
14689 old_archive_From_new_cmds_F77
='true'
14690 # FIXME: Should let the user specify the lib program.
14691 old_archive_cmds_F77
='lib /OUT:$oldlib$oldobjs$old_deplibs'
14692 fix_srcfile_path_F77
='`cygpath -w "$srcfile"`'
14693 enable_shared_with_static_runtimes_F77
=yes
14696 darwin
* | rhapsody
*)
14698 rhapsody
* | darwin1.
[012])
14699 allow_undefined_flag_F77
='${wl}-undefined ${wl}suppress'
14702 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14703 allow_undefined_flag_F77
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14705 case ${MACOSX_DEPLOYMENT_TARGET} in
14707 allow_undefined_flag_F77
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14710 allow_undefined_flag_F77
='${wl}-undefined ${wl}dynamic_lookup'
14716 archive_cmds_need_lc_F77
=no
14717 hardcode_direct_F77
=no
14718 hardcode_automatic_F77
=yes
14719 hardcode_shlibpath_var_F77
=unsupported
14720 whole_archive_flag_spec_F77
=''
14721 link_all_deplibs_F77
=yes
14722 if test "$GCC" = yes ; then
14723 output_verbose_link_cmd
='echo'
14724 archive_cmds_F77
='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14725 module_cmds_F77
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14726 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14727 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}'
14728 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}'
14730 case $cc_basename in
14732 output_verbose_link_cmd
='echo'
14733 archive_cmds_F77
='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14734 module_cmds_F77
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14735 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14736 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}'
14737 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}'
14747 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14748 hardcode_libdir_flag_spec_F77
='-L$libdir'
14749 hardcode_shlibpath_var_F77
=no
14756 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14757 # support. Future versions do this automatically, but an explicit c++rt0.o
14758 # does not break anything, and helps significantly (at the cost of a little
14761 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14762 hardcode_libdir_flag_spec_F77
='-R$libdir'
14763 hardcode_direct_F77
=yes
14764 hardcode_shlibpath_var_F77
=no
14767 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14769 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14770 hardcode_direct_F77
=yes
14771 hardcode_minus_L_F77
=yes
14772 hardcode_shlibpath_var_F77
=no
14775 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14776 freebsd
* | dragonfly
*)
14777 archive_cmds_F77
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14778 hardcode_libdir_flag_spec_F77
='-R$libdir'
14779 hardcode_direct_F77
=yes
14780 hardcode_shlibpath_var_F77
=no
14784 if test "$GCC" = yes; then
14785 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'
14787 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'
14789 hardcode_libdir_flag_spec_F77
='${wl}+b ${wl}$libdir'
14790 hardcode_libdir_separator_F77
=:
14791 hardcode_direct_F77
=yes
14793 # hardcode_minus_L: Not really in the search PATH,
14794 # but as the default location of the library.
14795 hardcode_minus_L_F77
=yes
14796 export_dynamic_flag_spec_F77
='${wl}-E'
14800 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
14801 archive_cmds_F77
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14803 archive_cmds_F77
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14805 if test "$with_gnu_ld" = no
; then
14806 hardcode_libdir_flag_spec_F77
='${wl}+b ${wl}$libdir'
14807 hardcode_libdir_separator_F77
=:
14809 hardcode_direct_F77
=yes
14810 export_dynamic_flag_spec_F77
='${wl}-E'
14812 # hardcode_minus_L: Not really in the search PATH,
14813 # but as the default location of the library.
14814 hardcode_minus_L_F77
=yes
14819 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
14822 archive_cmds_F77
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14825 archive_cmds_F77
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14828 archive_cmds_F77
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14834 archive_cmds_F77
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14837 archive_cmds_F77
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14840 archive_cmds_F77
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14844 if test "$with_gnu_ld" = no
; then
14845 hardcode_libdir_flag_spec_F77
='${wl}+b ${wl}$libdir'
14846 hardcode_libdir_separator_F77
=:
14850 hardcode_libdir_flag_spec_ld_F77
='+b $libdir'
14851 hardcode_direct_F77
=no
14852 hardcode_shlibpath_var_F77
=no
14855 hardcode_direct_F77
=yes
14856 export_dynamic_flag_spec_F77
='${wl}-E'
14858 # hardcode_minus_L: Not really in the search PATH,
14859 # but as the default location of the library.
14860 hardcode_minus_L_F77
=yes
14866 irix5
* | irix6
* | nonstopux
*)
14867 if test "$GCC" = yes; then
14868 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'
14870 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'
14871 hardcode_libdir_flag_spec_ld_F77
='-rpath $libdir'
14873 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
14874 hardcode_libdir_separator_F77
=:
14875 link_all_deplibs_F77
=yes
14878 netbsd
* | netbsdelf
*-gnu)
14879 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
14880 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14882 archive_cmds_F77
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14884 hardcode_libdir_flag_spec_F77
='-R$libdir'
14885 hardcode_direct_F77
=yes
14886 hardcode_shlibpath_var_F77
=no
14890 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14891 hardcode_direct_F77
=yes
14892 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
14893 hardcode_libdir_separator_F77
=:
14894 hardcode_shlibpath_var_F77
=no
14898 hardcode_direct_F77
=yes
14899 hardcode_shlibpath_var_F77
=no
14900 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14901 archive_cmds_F77
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14902 archive_expsym_cmds_F77
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14903 hardcode_libdir_flag_spec_F77
='${wl}-rpath,$libdir'
14904 export_dynamic_flag_spec_F77
='${wl}-E'
14907 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
14908 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14909 hardcode_libdir_flag_spec_F77
='-R$libdir'
14912 archive_cmds_F77
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14913 hardcode_libdir_flag_spec_F77
='${wl}-rpath,$libdir'
14920 hardcode_libdir_flag_spec_F77
='-L$libdir'
14921 hardcode_minus_L_F77
=yes
14922 allow_undefined_flag_F77
=unsupported
14923 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'
14924 old_archive_From_new_cmds_F77
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14928 if test "$GCC" = yes; then
14929 allow_undefined_flag_F77
=' ${wl}-expect_unresolved ${wl}\*'
14930 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'
14932 allow_undefined_flag_F77
=' -expect_unresolved \*'
14933 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'
14935 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
14936 hardcode_libdir_separator_F77
=:
14939 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
14940 if test "$GCC" = yes; then
14941 allow_undefined_flag_F77
=' ${wl}-expect_unresolved ${wl}\*'
14942 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'
14943 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
14945 allow_undefined_flag_F77
=' -expect_unresolved \*'
14946 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'
14947 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~
14948 $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'
14950 # Both c and cxx compiler support -rpath directly
14951 hardcode_libdir_flag_spec_F77
='-rpath $libdir'
14953 hardcode_libdir_separator_F77
=:
14957 no_undefined_flag_F77
=' -z text'
14958 if test "$GCC" = yes; then
14960 archive_cmds_F77
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14961 archive_expsym_cmds_F77
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14962 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14965 archive_cmds_F77
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14966 archive_expsym_cmds_F77
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14967 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14969 hardcode_libdir_flag_spec_F77
='-R$libdir'
14970 hardcode_shlibpath_var_F77
=no
14972 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
14974 # The compiler driver will combine linker options so we
14975 # cannot just pass the convience library names through
14976 # without $wl, iff we do not link with $LD.
14977 # Luckily, gcc supports the same syntax we need for Sun Studio.
14978 # Supported since Solaris 2.6 (maybe 2.5.1?)
14981 whole_archive_flag_spec_F77
='-z allextract$convenience -z defaultextract' ;;
14983 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' ;;
14986 link_all_deplibs_F77
=yes
14990 if test "x$host_vendor" = xsequent
; then
14991 # Use $CC to link under sequent, because it throws in some extra .o
14992 # files that make .init and .fini sections work.
14993 archive_cmds_F77
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14995 archive_cmds_F77
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14997 hardcode_libdir_flag_spec_F77
='-L$libdir'
14998 hardcode_direct_F77
=yes
14999 hardcode_minus_L_F77
=yes
15000 hardcode_shlibpath_var_F77
=no
15004 case $host_vendor in
15006 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15007 hardcode_direct_F77
=yes # is this really true???
15010 ## LD is ld it makes a PLAMLIB
15011 ## CC just makes a GrossModule.
15012 archive_cmds_F77
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15013 reload_cmds_F77
='$CC -r -o $output$reload_objs'
15014 hardcode_direct_F77
=no
15017 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15018 hardcode_direct_F77
=no
#Motorola manual says yes, but my tests say they lie
15021 runpath_var
='LD_RUN_PATH'
15022 hardcode_shlibpath_var_F77
=no
15026 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15027 hardcode_shlibpath_var_F77
=no
15028 export_dynamic_flag_spec_F77
='-Bexport'
15032 if test -d /usr
/nec
; then
15033 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15034 hardcode_shlibpath_var_F77
=no
15035 runpath_var
=LD_RUN_PATH
15036 hardcode_runpath_var
=yes
15041 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
*)
15042 no_undefined_flag_F77
='${wl}-z,text'
15043 archive_cmds_need_lc_F77
=no
15044 hardcode_shlibpath_var_F77
=no
15045 runpath_var
='LD_RUN_PATH'
15047 if test "$GCC" = yes; then
15048 archive_cmds_F77
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15049 archive_expsym_cmds_F77
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15051 archive_cmds_F77
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15052 archive_expsym_cmds_F77
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15056 sysv5
* | sco3.2v5
* | sco5v6
*)
15057 # Note: We can NOT use -z defs as we might desire, because we do not
15058 # link with -lc, and that would cause any symbols used from libc to
15059 # always be unresolved, which means just about no library would
15060 # ever link correctly. If we're not using GNU ld we use -z text
15061 # though, which does catch some bad symbols but isn't as heavy-handed
15063 no_undefined_flag_F77
='${wl}-z,text'
15064 allow_undefined_flag_F77
='${wl}-z,nodefs'
15065 archive_cmds_need_lc_F77
=no
15066 hardcode_shlibpath_var_F77
=no
15067 hardcode_libdir_flag_spec_F77
='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15068 hardcode_libdir_separator_F77
=':'
15069 link_all_deplibs_F77
=yes
15070 export_dynamic_flag_spec_F77
='${wl}-Bexport'
15071 runpath_var
='LD_RUN_PATH'
15073 if test "$GCC" = yes; then
15074 archive_cmds_F77
='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15075 archive_expsym_cmds_F77
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15077 archive_cmds_F77
='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15078 archive_expsym_cmds_F77
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15083 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15084 hardcode_libdir_flag_spec_F77
='-L$libdir'
15085 hardcode_shlibpath_var_F77
=no
15094 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15095 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15096 test "$ld_shlibs_F77" = no
&& can_build_shared
=no
15099 # Do we need to explicitly link libc?
15101 case "x$archive_cmds_need_lc_F77" in
15103 # Assume -lc should be added
15104 archive_cmds_need_lc_F77
=yes
15106 if test "$enable_shared" = yes && test "$GCC" = yes; then
15107 case $archive_cmds_F77 in
15109 # FIXME: we may have to deal with multi-command sequences.
15112 # Test whether the compiler implicitly links with -lc since on some
15113 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15114 # to ld, don't add -lc before -lgcc.
15115 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15116 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15118 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
15120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15121 (eval $ac_compile) 2>&5
15123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15124 (exit $ac_status); } 2>conftest.err
; then
15127 libobjs
=conftest.
$ac_objext
15129 wl
=$lt_prog_compiler_wl_F77
15130 pic_flag
=$lt_prog_compiler_pic_F77
15136 lt_save_allow_undefined_flag
=$allow_undefined_flag_F77
15137 allow_undefined_flag_F77
=
15138 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15139 (eval $archive_cmds_F77 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
15141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15142 (exit $ac_status); }
15144 archive_cmds_need_lc_F77
=no
15146 archive_cmds_need_lc_F77
=yes
15148 allow_undefined_flag_F77
=$lt_save_allow_undefined_flag
15150 cat conftest.err
1>&5
15153 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15154 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15161 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15162 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15163 library_names_spec
=
15164 libname_spec
='lib$name'
15168 postuninstall_cmds
=
15172 shlibpath_overrides_runpath
=unknown
15174 dynamic_linker
="$host_os ld.so"
15175 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
15176 if test "$GCC" = yes; then
15177 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15178 if echo "$sys_lib_search_path_spec" |
grep ';' >/dev
/null
; then
15179 # if the path contains ";" then we assume it to be the separator
15180 # otherwise default to the standard path separator (i.e. ":") - it is
15181 # assumed that no part of a normal pathname contains ";" but that should
15182 # okay in the real world where ";" in dirpaths is itself problematic.
15183 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15185 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15188 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
15190 need_lib_prefix
=unknown
15191 hardcode_into_libs
=no
15193 # when you set need_version to no, make sure it does not cause -set_version
15194 # flags to be left without arguments
15195 need_version
=unknown
15200 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
15201 shlibpath_var
=LIBPATH
15203 # AIX 3 has no versioning support, so we append a major version to the name.
15204 soname_spec
='${libname}${release}${shared_ext}$major'
15211 hardcode_into_libs
=yes
15212 if test "$host_cpu" = ia64
; then
15213 # AIX 5 supports IA64
15214 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15215 shlibpath_var
=LD_LIBRARY_PATH
15217 # With GCC up to 2.95.x, collect2 would create an import file
15218 # for dependence libraries. The import file would start with
15219 # the line `#! .'. This would cause the generated library to
15220 # depend on `.', always an invalid library. This was fixed in
15221 # development snapshots of GCC prior to 3.0.
15223 aix4 | aix4.
[01] | aix4.
[01].
*)
15224 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15226 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
15229 can_build_shared
=no
15233 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15234 # soname into executable. Probably we can add versioning support to
15235 # collect2, so additional links can be useful in future.
15236 if test "$aix_use_runtimelinking" = yes; then
15237 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15238 # instead of lib<name>.a to let people know that these are not
15239 # typical AIX shared libraries.
15240 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15242 # We preserve .a as extension for shared libraries through AIX4.2
15243 # and later when we are not doing run time linking.
15244 library_names_spec
='${libname}${release}.a $libname.a'
15245 soname_spec
='${libname}${release}${shared_ext}$major'
15247 shlibpath_var
=LIBPATH
15252 library_names_spec
='$libname.ixlibrary $libname.a'
15253 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15254 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'
15258 library_names_spec
='${libname}${shared_ext}'
15259 dynamic_linker
="$host_os ld.so"
15260 shlibpath_var
=LIBRARY_PATH
15266 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15267 soname_spec
='${libname}${release}${shared_ext}$major'
15268 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
15269 shlibpath_var
=LD_LIBRARY_PATH
15270 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15271 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
15272 # the default ld.so.conf also contains /usr/contrib/lib and
15273 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15274 # libtool to hard-code these into programs
15277 cygwin
* | mingw
* | pw32
*)
15278 version_type
=windows
15283 case $GCC,$host_os in
15284 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
15285 library_names_spec
='$libname.dll.a'
15286 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15287 postinstall_cmds
='base_file=`basename \${file}`~
15288 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15289 dldir=$destdir/`dirname \$dlpath`~
15290 test -d \$dldir || mkdir -p \$dldir~
15291 $install_prog $dir/$dlname \$dldir/$dlname~
15292 chmod a+x \$dldir/$dlname'
15293 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15294 dlpath=$dir/\$dldll~
15296 shlibpath_overrides_runpath
=yes
15300 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15301 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15302 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
15305 # MinGW DLLs use traditional 'lib' prefix
15306 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15307 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15308 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
15309 # It is most probably a Windows format PATH printed by
15310 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15311 # path with ; separators, and with drive letters. We can handle the
15312 # drive letters (cygwin fileutils understands them), so leave them,
15313 # especially as we might pass files found there to a mingw objdump,
15314 # which wouldn't understand a cygwinified path. Ahh.
15315 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15317 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15321 # pw32 DLLs use 'pw' prefix rather than 'lib'
15322 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15328 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15331 dynamic_linker
='Win32 ld.exe'
15332 # FIXME: first we should search . and the directory the executable is in
15336 darwin
* | rhapsody
*)
15337 dynamic_linker
="$host_os dyld"
15338 version_type
=darwin
15341 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15342 soname_spec
='${libname}${release}${major}$shared_ext'
15343 shlibpath_overrides_runpath
=yes
15344 shlibpath_var
=DYLD_LIBRARY_PATH
15345 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
15346 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15347 if test "$GCC" = yes; then
15348 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"`
15350 sys_lib_search_path_spec
='/lib /usr/lib /usr/local/lib'
15352 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
15359 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15360 soname_spec
='${libname}${release}${shared_ext}$major'
15361 shlibpath_var
=LD_LIBRARY_PATH
15368 freebsd
* | dragonfly
*)
15369 # DragonFly does not have aout. When/if they implement a new
15370 # versioning mechanism, adjust this.
15371 if test -x /usr
/bin
/objformat
; then
15372 objformat
=`/usr/bin/objformat`
15375 freebsd
[123]*) objformat
=aout
;;
15376 *) objformat
=elf
;;
15379 version_type
=freebsd-
$objformat
15380 case $version_type in
15382 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15387 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15391 shlibpath_var
=LD_LIBRARY_PATH
15394 shlibpath_overrides_runpath
=yes
15396 freebsd3.
[01]* | freebsdelf3.
[01]*)
15397 shlibpath_overrides_runpath
=yes
15398 hardcode_into_libs
=yes
15400 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
15401 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
15402 shlibpath_overrides_runpath
=no
15403 hardcode_into_libs
=yes
15405 freebsd
*) # from 4.6 on
15406 shlibpath_overrides_runpath
=yes
15407 hardcode_into_libs
=yes
15416 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15417 soname_spec
='${libname}${release}${shared_ext}$major'
15418 shlibpath_var
=LD_LIBRARY_PATH
15419 hardcode_into_libs
=yes
15422 hpux9
* | hpux10
* | hpux11
*)
15423 # Give a soname corresponding to the major version so that dld.sl refuses to
15424 # link against other versions.
15431 hardcode_into_libs
=yes
15432 dynamic_linker
="$host_os dld.so"
15433 shlibpath_var
=LD_LIBRARY_PATH
15434 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
15435 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15436 soname_spec
='${libname}${release}${shared_ext}$major'
15437 if test "X$HPUX_IA64_MODE" = X32
; then
15438 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15440 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
15442 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
15446 hardcode_into_libs
=yes
15447 dynamic_linker
="$host_os dld.sl"
15448 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
15449 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
15450 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15451 soname_spec
='${libname}${release}${shared_ext}$major'
15452 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15453 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
15457 dynamic_linker
="$host_os dld.sl"
15458 shlibpath_var
=SHLIB_PATH
15459 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
15460 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15461 soname_spec
='${libname}${release}${shared_ext}$major'
15464 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15465 postinstall_cmds
='chmod 555 $lib'
15472 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15473 soname_spec
='${libname}${release}${shared_ext}$major'
15474 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
15475 shlibpath_var
=LD_LIBRARY_PATH
15476 shlibpath_overrides_runpath
=no
15477 hardcode_into_libs
=yes
15480 irix5
* | irix6
* | nonstopux
*)
15482 nonstopux
*) version_type
=nonstopux
;;
15484 if test "$lt_cv_prog_gnu_ld" = yes; then
15492 soname_spec
='${libname}${release}${shared_ext}$major'
15493 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15495 irix5
* | nonstopux
*)
15496 libsuff
= shlibsuff
=
15499 case $LD in # libtool.m4 will add one of these switches to LD
15500 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
15501 libsuff
= shlibsuff
= libmagic
=32-bit;;
15502 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
15503 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
15504 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
15505 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
15506 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
15510 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
15511 shlibpath_overrides_runpath
=no
15512 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15513 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
15514 hardcode_into_libs
=yes
15517 # No shared lib support for Linux oldld, aout, or coff.
15518 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
15522 # This must be Linux ELF.
15523 linux
* | k
*bsd
*-gnu)
15527 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15528 soname_spec
='${libname}${release}${shared_ext}$major'
15529 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15530 shlibpath_var
=LD_LIBRARY_PATH
15531 shlibpath_overrides_runpath
=no
15532 # This implies no fast_install, which is unacceptable.
15533 # Some rework will be needed to allow for fast_install
15534 # before this can be enabled.
15535 hardcode_into_libs
=yes
15537 # Append ld.so.conf contents to the search path
15538 if test -f /etc
/ld.so.conf
; then
15539 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' ' '`
15540 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
15543 # We used to test for /lib/ld.so.1 and disable shared libraries on
15544 # powerpc, because MkLinux only supported shared libraries with the
15545 # GNU dynamic linker. Since this was broken with cross compilers,
15546 # most powerpc-linux boxes support dynamic linking these days and
15547 # people can always --disable-shared, the test was removed, and we
15548 # assume the GNU/Linux dynamic linker is in use.
15549 dynamic_linker
='GNU/Linux ld.so'
15556 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15557 soname_spec
='${libname}${release}${shared_ext}$major'
15558 shlibpath_var
=LD_LIBRARY_PATH
15559 shlibpath_overrides_runpath
=no
15560 hardcode_into_libs
=yes
15561 dynamic_linker
='NetBSD ld.elf_so'
15568 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
15569 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15570 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15571 dynamic_linker
='NetBSD (a.out) ld.so'
15573 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15574 soname_spec
='${libname}${release}${shared_ext}$major'
15575 dynamic_linker
='NetBSD ld.elf_so'
15577 shlibpath_var
=LD_LIBRARY_PATH
15578 shlibpath_overrides_runpath
=yes
15579 hardcode_into_libs
=yes
15584 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15585 shlibpath_var
=LD_LIBRARY_PATH
15586 shlibpath_overrides_runpath
=yes
15593 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15594 soname_spec
='${libname}${release}${shared_ext}$major'
15595 shlibpath_var
=LD_LIBRARY_PATH
15596 shlibpath_overrides_runpath
=yes
15601 sys_lib_dlsearch_path_spec
="/usr/lib"
15603 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15605 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
15606 *) need_version
=no
;;
15608 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15609 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15610 shlibpath_var
=LD_LIBRARY_PATH
15611 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15613 openbsd2.
[89] | openbsd2.
[89].
*)
15614 shlibpath_overrides_runpath
=no
15617 shlibpath_overrides_runpath
=yes
15621 shlibpath_overrides_runpath
=yes
15626 libname_spec
='$name'
15629 library_names_spec
='$libname${shared_ext} $libname.a'
15630 dynamic_linker
='OS/2 ld.exe'
15631 shlibpath_var
=LIBPATH
15634 osf3
* | osf4
* | osf5
*)
15638 soname_spec
='${libname}${release}${shared_ext}$major'
15639 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15640 shlibpath_var
=LD_LIBRARY_PATH
15641 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15642 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
15649 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15650 soname_spec
='${libname}${release}${shared_ext}$major'
15651 shlibpath_var
=LD_LIBRARY_PATH
15652 shlibpath_overrides_runpath
=yes
15653 hardcode_into_libs
=yes
15654 # ldd complains unless libraries are executable
15655 postinstall_cmds
='chmod +x $lib'
15660 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15661 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15662 shlibpath_var
=LD_LIBRARY_PATH
15663 shlibpath_overrides_runpath
=yes
15664 if test "$with_gnu_ld" = yes; then
15672 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15673 soname_spec
='${libname}${release}${shared_ext}$major'
15674 shlibpath_var
=LD_LIBRARY_PATH
15675 case $host_vendor in
15677 shlibpath_overrides_runpath
=no
15679 export_dynamic_flag_spec
='${wl}-Blargedynsym'
15680 runpath_var
=LD_RUN_PATH
15688 shlibpath_overrides_runpath
=no
15689 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
15695 if test -d /usr
/nec
;then
15697 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15698 soname_spec
='$libname${shared_ext}.$major'
15699 shlibpath_var
=LD_LIBRARY_PATH
15703 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
15704 version_type
=freebsd-elf
15707 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15708 soname_spec
='${libname}${release}${shared_ext}$major'
15709 shlibpath_var
=LD_LIBRARY_PATH
15710 hardcode_into_libs
=yes
15711 if test "$with_gnu_ld" = yes; then
15712 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15713 shlibpath_overrides_runpath
=no
15715 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
15716 shlibpath_overrides_runpath
=yes
15719 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
15723 sys_lib_dlsearch_path_spec
='/usr/lib'
15728 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15729 soname_spec
='${libname}${release}${shared_ext}$major'
15730 shlibpath_var
=LD_LIBRARY_PATH
15737 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15738 echo "${ECHO_T}$dynamic_linker" >&6; }
15739 test "$dynamic_linker" = no
&& can_build_shared
=no
15741 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
15742 if test "$GCC" = yes; then
15743 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15746 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15747 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15748 hardcode_action_F77
=
15749 if test -n "$hardcode_libdir_flag_spec_F77" || \
15750 test -n "$runpath_var_F77" || \
15751 test "X$hardcode_automatic_F77" = "Xyes" ; then
15753 # We can hardcode non-existant directories.
15754 if test "$hardcode_direct_F77" != no
&&
15755 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15756 # have to relink, otherwise we might link with an installed library
15757 # when we should be linking with a yet-to-be-installed one
15758 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15759 test "$hardcode_minus_L_F77" != no
; then
15760 # Linking always hardcodes the temporary library directory.
15761 hardcode_action_F77
=relink
15763 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15764 hardcode_action_F77
=immediate
15767 # We cannot hardcode anything, or else we can only hardcode existing
15769 hardcode_action_F77
=unsupported
15771 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15772 echo "${ECHO_T}$hardcode_action_F77" >&6; }
15774 if test "$hardcode_action_F77" = relink
; then
15775 # Fast installation is not supported
15776 enable_fast_install
=no
15777 elif test "$shlibpath_overrides_runpath" = yes ||
15778 test "$enable_shared" = no
; then
15779 # Fast installation is not necessary
15780 enable_fast_install
=needless
15784 # The else clause should only fire when bootstrapping the
15785 # libtool distribution, otherwise you forgot to ship ltmain.sh
15786 # with your package, and you will get complaints that there are
15787 # no rules to generate ltmain.sh.
15788 if test -f "$ltmain"; then
15789 # See if we are running on zsh, and set the options which allow our commands through
15790 # without removal of \ escapes.
15791 if test -n "${ZSH_VERSION+set}" ; then
15792 setopt NO_GLOB_SUBST
15794 # Now quote all the things that may contain metacharacters while being
15795 # careful not to overquote the AC_SUBSTed values. We take copies of the
15796 # variables and quote the copies for generation of the libtool script.
15797 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15799 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15800 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15801 deplibs_check_method reload_flag reload_cmds need_locks \
15802 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15803 lt_cv_sys_global_symbol_to_c_name_address \
15804 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15805 old_postinstall_cmds old_postuninstall_cmds \
15809 lt_prog_compiler_wl_F77 \
15810 lt_prog_compiler_pic_F77 \
15811 lt_prog_compiler_static_F77 \
15812 lt_prog_compiler_no_builtin_flag_F77 \
15813 export_dynamic_flag_spec_F77 \
15814 thread_safe_flag_spec_F77 \
15815 whole_archive_flag_spec_F77 \
15816 enable_shared_with_static_runtimes_F77 \
15817 old_archive_cmds_F77 \
15818 old_archive_from_new_cmds_F77 \
15819 predep_objects_F77 \
15820 postdep_objects_F77 \
15823 compiler_lib_search_path_F77 \
15825 archive_expsym_cmds_F77 \
15826 postinstall_cmds_F77 \
15827 postuninstall_cmds_F77 \
15828 old_archive_from_expsyms_cmds_F77 \
15829 allow_undefined_flag_F77 \
15830 no_undefined_flag_F77 \
15831 export_symbols_cmds_F77 \
15832 hardcode_libdir_flag_spec_F77 \
15833 hardcode_libdir_flag_spec_ld_F77 \
15834 hardcode_libdir_separator_F77 \
15835 hardcode_automatic_F77 \
15837 module_expsym_cmds_F77 \
15838 lt_cv_prog_compiler_c_o_F77 \
15839 exclude_expsyms_F77 \
15840 include_expsyms_F77
; do
15843 old_archive_cmds_F77 | \
15844 old_archive_from_new_cmds_F77 | \
15845 archive_cmds_F77 | \
15846 archive_expsym_cmds_F77 | \
15847 module_cmds_F77 | \
15848 module_expsym_cmds_F77 | \
15849 old_archive_from_expsyms_cmds_F77 | \
15850 export_symbols_cmds_F77 | \
15851 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15852 postinstall_cmds | postuninstall_cmds | \
15853 old_postinstall_cmds | old_postuninstall_cmds | \
15854 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
15855 # Double-quote double-evaled strings.
15856 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15859 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15865 *'\$0 --fallback-echo"')
15866 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15872 cat <<__EOF__ >> "$cfgfile"
15873 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15875 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15877 # Shell to use when invoking shell scripts.
15880 # Whether or not to build shared libraries.
15881 build_libtool_libs=$enable_shared
15883 # Whether or not to build static libraries.
15884 build_old_libs=$enable_static
15886 # Whether or not to add -lc for building shared libraries.
15887 build_libtool_need_lc=$archive_cmds_need_lc_F77
15889 # Whether or not to disallow shared libs when runtime libs are static
15890 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15892 # Whether or not to optimize for fast installation.
15893 fast_install=$enable_fast_install
15896 host_alias=$host_alias
15900 # The build system.
15901 build_alias=$build_alias
15905 # An echo program that does not interpret backslashes.
15910 AR_FLAGS=$lt_AR_FLAGS
15915 # LTCC compiler flags.
15916 LTCFLAGS=$lt_LTCFLAGS
15918 # A language-specific compiler.
15919 CC=$lt_compiler_F77
15921 # Is the compiler the GNU C compiler?
15927 # The linker used to build libraries.
15930 # Whether we need hard or soft links.
15933 # A BSD-compatible nm program.
15936 # A symbol stripping program
15939 # Used to examine libraries when file_magic_cmd begins "file"
15940 MAGIC_CMD=$MAGIC_CMD
15942 # Used on cygwin: DLL creation program.
15945 # Used on cygwin: object dumper.
15948 # Used on cygwin: assembler.
15951 # The name of the directory that contains temporary libtool files.
15954 # How to create reloadable object files.
15955 reload_flag=$lt_reload_flag
15956 reload_cmds=$lt_reload_cmds
15958 # How to pass a linker flag through the compiler.
15959 wl=$lt_lt_prog_compiler_wl_F77
15961 # Object file suffix (normally "o").
15962 objext="$ac_objext"
15964 # Old archive suffix (normally "a").
15967 # Shared library suffix (normally ".so").
15968 shrext_cmds='$shrext_cmds'
15970 # Executable file suffix (normally "").
15973 # Additional compiler flags for building library objects.
15974 pic_flag=$lt_lt_prog_compiler_pic_F77
15977 # What is the maximum length of a command?
15978 max_cmd_len=$lt_cv_sys_max_cmd_len
15980 # Does compiler simultaneously support -c and -o options?
15981 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15983 # Must we lock files when doing compilation?
15984 need_locks=$lt_need_locks
15986 # Do we need the lib prefix for modules?
15987 need_lib_prefix=$need_lib_prefix
15989 # Do we need a version for libraries?
15990 need_version=$need_version
15992 # Whether dlopen is supported.
15993 dlopen_support=$enable_dlopen
15995 # Whether dlopen of programs is supported.
15996 dlopen_self=$enable_dlopen_self
15998 # Whether dlopen of statically linked programs is supported.
15999 dlopen_self_static=$enable_dlopen_self_static
16001 # Compiler flag to prevent dynamic linking.
16002 link_static_flag=$lt_lt_prog_compiler_static_F77
16004 # Compiler flag to turn off builtin functions.
16005 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16007 # Compiler flag to allow reflexive dlopens.
16008 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16010 # Compiler flag to generate shared objects directly from archives.
16011 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16013 # Compiler flag to generate thread-safe objects.
16014 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16016 # Library versioning type.
16017 version_type=$version_type
16019 # Format of library name prefix.
16020 libname_spec=$lt_libname_spec
16022 # List of archive names. First name is the real one, the rest are links.
16023 # The last name is the one that the linker finds with -lNAME.
16024 library_names_spec=$lt_library_names_spec
16026 # The coded name of the library, if different from the real name.
16027 soname_spec=$lt_soname_spec
16029 # Commands used to build and install an old-style archive.
16031 old_archive_cmds=$lt_old_archive_cmds_F77
16032 old_postinstall_cmds=$lt_old_postinstall_cmds
16033 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16035 # Create an old-style archive from a shared archive.
16036 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16038 # Create a temporary old-style archive to link instead of a shared archive.
16039 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16041 # Commands used to build and install a shared archive.
16042 archive_cmds=$lt_archive_cmds_F77
16043 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16044 postinstall_cmds=$lt_postinstall_cmds
16045 postuninstall_cmds=$lt_postuninstall_cmds
16047 # Commands used to build a loadable module (assumed same as above if empty)
16048 module_cmds=$lt_module_cmds_F77
16049 module_expsym_cmds=$lt_module_expsym_cmds_F77
16051 # Commands to strip libraries.
16052 old_striplib=$lt_old_striplib
16053 striplib=$lt_striplib
16055 # Dependencies to place before the objects being linked to create a
16057 predep_objects=$lt_predep_objects_F77
16059 # Dependencies to place after the objects being linked to create a
16061 postdep_objects=$lt_postdep_objects_F77
16063 # Dependencies to place before the objects being linked to create a
16065 predeps=$lt_predeps_F77
16067 # Dependencies to place after the objects being linked to create a
16069 postdeps=$lt_postdeps_F77
16071 # The library search path used internally by the compiler when linking
16072 # a shared library.
16073 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16075 # Method to check whether dependent libraries are shared objects.
16076 deplibs_check_method=$lt_deplibs_check_method
16078 # Command to use when deplibs_check_method == file_magic.
16079 file_magic_cmd=$lt_file_magic_cmd
16081 # Flag that allows shared libraries with undefined symbols to be built.
16082 allow_undefined_flag=$lt_allow_undefined_flag_F77
16084 # Flag that forces no undefined symbols.
16085 no_undefined_flag=$lt_no_undefined_flag_F77
16087 # Commands used to finish a libtool library installation in a directory.
16088 finish_cmds=$lt_finish_cmds
16090 # Same as above, but a single script fragment to be evaled but not shown.
16091 finish_eval=$lt_finish_eval
16093 # Take the output of nm and produce a listing of raw symbols and C names.
16094 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16096 # Transform the output of nm in a proper C declaration
16097 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16099 # Transform the output of nm in a C name address pair
16100 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16102 # This is the shared library runtime path variable.
16103 runpath_var=$runpath_var
16105 # This is the shared library path variable.
16106 shlibpath_var=$shlibpath_var
16108 # Is shlibpath searched before the hard-coded library search path?
16109 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16111 # How to hardcode a shared library path into an executable.
16112 hardcode_action=$hardcode_action_F77
16114 # Whether we should hardcode library paths into libraries.
16115 hardcode_into_libs=$hardcode_into_libs
16117 # Flag to hardcode \$libdir into a binary during linking.
16118 # This must work even if \$libdir does not exist.
16119 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16121 # If ld is used when linking, flag to hardcode \$libdir into
16122 # a binary during linking. This must work even if \$libdir does
16124 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16126 # Whether we need a single -rpath flag with a separated argument.
16127 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16129 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16130 # resulting binary.
16131 hardcode_direct=$hardcode_direct_F77
16133 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16134 # resulting binary.
16135 hardcode_minus_L=$hardcode_minus_L_F77
16137 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16138 # the resulting binary.
16139 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16141 # Set to yes if building a shared library automatically hardcodes DIR into the library
16142 # and all subsequent libraries and executables linked against it.
16143 hardcode_automatic=$hardcode_automatic_F77
16145 # Variables whose values should be saved in libtool wrapper scripts and
16146 # restored at relink time.
16147 variables_saved_for_relink="$variables_saved_for_relink"
16149 # Whether libtool must link a program against all its dependency libraries.
16150 link_all_deplibs=$link_all_deplibs_F77
16152 # Compile-time system search path for libraries
16153 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16155 # Run-time system search path for libraries
16156 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16158 # Fix the shell variable \$srcfile for the compiler.
16159 fix_srcfile_path="$fix_srcfile_path_F77"
16161 # Set to yes if exported symbols are required.
16162 always_export_symbols=$always_export_symbols_F77
16164 # The commands to list exported symbols.
16165 export_symbols_cmds=$lt_export_symbols_cmds_F77
16167 # The commands to extract the exported symbol list from a shared archive.
16168 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16170 # Symbols that should not be listed in the preloaded symbols.
16171 exclude_expsyms=$lt_exclude_expsyms_F77
16173 # Symbols that must always be exported.
16174 include_expsyms=$lt_include_expsyms_F77
16176 # ### END LIBTOOL TAG CONFIG: $tagname
16182 # If there is no Makefile yet, we rely on a make rule to execute
16183 # `config.status --recheck' to rerun these tests and create the
16184 # libtool script then.
16185 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16186 if test -f "$ltmain_in"; then
16187 test -f Makefile
&& make "$ltmain"
16193 ac_cpp
='$CPP $CPPFLAGS'
16194 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16195 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16196 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
16206 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16209 # Source file extension for Java test sources.
16212 # Object file extension for compiled Java test sources.
16216 # Code to be used in simple compile tests
16217 lt_simple_compile_test_code
="class foo {}\n"
16219 # Code to be used in simple link tests
16220 lt_simple_link_test_code
='public class conftest { public static void main(String[] argv) {}; }\n'
16222 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16224 # If no C compiler was specified, use CC.
16227 # If no C compiler flags were specified, use CFLAGS.
16228 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
16230 # Allow CC to be a program name with arguments.
16234 # save warnings/boilerplate of simple test code
16235 ac_outfile
=conftest.
$ac_objext
16236 printf "$lt_simple_compile_test_code" >conftest.
$ac_ext
16237 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
16238 _lt_compiler_boilerplate
=`cat conftest.err`
16241 ac_outfile
=conftest.
$ac_objext
16242 printf "$lt_simple_link_test_code" >conftest.
$ac_ext
16243 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
16244 _lt_linker_boilerplate
=`cat conftest.err`
16248 # Allow CC to be a program name with arguments.
16253 for cc_temp
in $compiler""; do
16255 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
16256 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
16261 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16264 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16265 archive_cmds_need_lc_GCJ
=no
16267 old_archive_cmds_GCJ
=$old_archive_cmds
16270 lt_prog_compiler_no_builtin_flag_GCJ
=
16272 if test "$GCC" = yes; then
16273 lt_prog_compiler_no_builtin_flag_GCJ
=' -fno-builtin'
16276 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16277 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16278 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16279 echo $ECHO_N "(cached) $ECHO_C" >&6
16281 lt_cv_prog_compiler_rtti_exceptions
=no
16282 ac_outfile
=conftest.
$ac_objext
16283 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
16284 lt_compiler_flag
="-fno-rtti -fno-exceptions"
16285 # Insert the option either (1) after the last *FLAGS variable, or
16286 # (2) before a word containing "conftest.", or (3) at the end.
16287 # Note that $ac_compile itself does not contain backslashes and begins
16288 # with a dollar sign (not a hyphen), so the echo should work correctly.
16289 # The option is referenced via a variable to avoid confusing sed.
16290 lt_compile
=`echo "$ac_compile" | $SED \
16291 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16292 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16293 -e 's:$: $lt_compiler_flag:'`
16294 (eval echo "\"\$as_me:16294: $lt_compile\"" >&5)
16295 (eval "$lt_compile" 2>conftest.err
)
16297 cat conftest.err
>&5
16298 echo "$as_me:16298: \$? = $ac_status" >&5
16299 if (exit $ac_status) && test -s "$ac_outfile"; then
16300 # The compiler can only warn and ignore the option if not recognized
16301 # So say no if there are warnings other than the usual output.
16302 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
16303 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
16304 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
16305 lt_cv_prog_compiler_rtti_exceptions
=yes
16311 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16312 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16314 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
16315 lt_prog_compiler_no_builtin_flag_GCJ
="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16322 lt_prog_compiler_wl_GCJ
=
16323 lt_prog_compiler_pic_GCJ
=
16324 lt_prog_compiler_static_GCJ
=
16326 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16327 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16329 if test "$GCC" = yes; then
16330 lt_prog_compiler_wl_GCJ
='-Wl,'
16331 lt_prog_compiler_static_GCJ
='-static'
16335 # All AIX code is PIC.
16336 if test "$host_cpu" = ia64
; then
16337 # AIX 5 now supports IA64 processor
16338 lt_prog_compiler_static_GCJ
='-Bstatic'
16343 # FIXME: we need at least 68020 code to build shared libraries, but
16344 # adding the `-m68020' flag to GCC prevents building anything better,
16346 lt_prog_compiler_pic_GCJ
='-m68020 -resident32 -malways-restore-a4'
16349 beos
* | cygwin
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
16350 # PIC is the default for these OSes.
16353 mingw
* | pw32
* | os2
*)
16354 # This hack is so that the source file can tell whether it is being
16355 # built for inclusion in a dll (and should export symbols for example).
16356 lt_prog_compiler_pic_GCJ
='-DDLL_EXPORT'
16359 darwin
* | rhapsody
*)
16360 # PIC is the default on this platform
16361 # Common symbols not allowed in MH_DYLIB files
16362 lt_prog_compiler_pic_GCJ
='-fno-common'
16366 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16367 # Instead, we relocate shared libraries at runtime.
16371 # Just because we use GCC doesn't mean we suddenly get shared libraries
16372 # on systems that don't support them.
16373 lt_prog_compiler_can_build_shared_GCJ
=no
16378 if test -d /usr
/nec
; then
16379 lt_prog_compiler_pic_GCJ
=-Kconform_pic
16384 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16385 # not for PA HP-UX.
16391 lt_prog_compiler_pic_GCJ
='-fPIC'
16397 lt_prog_compiler_pic_GCJ
='-fPIC'
16401 # PORTME Check for flag to pass linker flags through the system compiler.
16404 lt_prog_compiler_wl_GCJ
='-Wl,'
16405 if test "$host_cpu" = ia64
; then
16406 # AIX 5 now supports IA64 processor
16407 lt_prog_compiler_static_GCJ
='-Bstatic'
16409 lt_prog_compiler_static_GCJ
='-bnso -bI:/lib/syscalls.exp'
16413 # PIC is the default on this platform
16414 # Common symbols not allowed in MH_DYLIB files
16415 case $cc_basename in
16417 lt_prog_compiler_pic_GCJ
='-qnocommon'
16418 lt_prog_compiler_wl_GCJ
='-Wl,'
16423 mingw
* | pw32
* | os2
*)
16424 # This hack is so that the source file can tell whether it is being
16425 # built for inclusion in a dll (and should export symbols for example).
16426 lt_prog_compiler_pic_GCJ
='-DDLL_EXPORT'
16429 hpux9
* | hpux10
* | hpux11
*)
16430 lt_prog_compiler_wl_GCJ
='-Wl,'
16431 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16432 # not for PA HP-UX.
16438 lt_prog_compiler_pic_GCJ
='+Z'
16441 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16442 lt_prog_compiler_static_GCJ
='${wl}-a ${wl}archive'
16445 irix5
* | irix6
* | nonstopux
*)
16446 lt_prog_compiler_wl_GCJ
='-Wl,'
16447 # PIC (with -KPIC) is the default.
16448 lt_prog_compiler_static_GCJ
='-non_shared'
16452 lt_prog_compiler_pic_GCJ
='-KPIC'
16453 lt_prog_compiler_static_GCJ
='-Bstatic'
16456 linux
* | k
*bsd
*-gnu)
16457 case $cc_basename in
16459 lt_prog_compiler_wl_GCJ
='-Wl,'
16460 lt_prog_compiler_pic_GCJ
='-KPIC'
16461 lt_prog_compiler_static_GCJ
='-static'
16463 pgcc
* | pgf77
* | pgf90
* | pgf95
*)
16464 # Portland Group compilers (*not* the Pentium gcc compiler,
16465 # which looks to be a dead project)
16466 lt_prog_compiler_wl_GCJ
='-Wl,'
16467 lt_prog_compiler_pic_GCJ
='-fpic'
16468 lt_prog_compiler_static_GCJ
='-Bstatic'
16471 lt_prog_compiler_wl_GCJ
='-Wl,'
16472 # All Alpha code is PIC.
16473 lt_prog_compiler_static_GCJ
='-non_shared'
16478 osf3
* | osf4
* | osf5
*)
16479 lt_prog_compiler_wl_GCJ
='-Wl,'
16480 # All OSF/1 code is PIC.
16481 lt_prog_compiler_static_GCJ
='-non_shared'
16485 lt_prog_compiler_pic_GCJ
='-KPIC'
16486 lt_prog_compiler_static_GCJ
='-Bstatic'
16487 case $cc_basename in
16488 f77
* | f90
* | f95
*)
16489 lt_prog_compiler_wl_GCJ
='-Qoption ld ';;
16491 lt_prog_compiler_wl_GCJ
='-Wl,';;
16496 lt_prog_compiler_wl_GCJ
='-Qoption ld '
16497 lt_prog_compiler_pic_GCJ
='-PIC'
16498 lt_prog_compiler_static_GCJ
='-Bstatic'
16501 sysv4 | sysv4.2uw2
* | sysv4.3
*)
16502 lt_prog_compiler_wl_GCJ
='-Wl,'
16503 lt_prog_compiler_pic_GCJ
='-KPIC'
16504 lt_prog_compiler_static_GCJ
='-Bstatic'
16508 if test -d /usr
/nec
;then
16509 lt_prog_compiler_pic_GCJ
='-Kconform_pic'
16510 lt_prog_compiler_static_GCJ
='-Bstatic'
16514 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
16515 lt_prog_compiler_wl_GCJ
='-Wl,'
16516 lt_prog_compiler_pic_GCJ
='-KPIC'
16517 lt_prog_compiler_static_GCJ
='-Bstatic'
16521 lt_prog_compiler_wl_GCJ
='-Wl,'
16522 lt_prog_compiler_can_build_shared_GCJ
=no
16526 lt_prog_compiler_pic_GCJ
='-pic'
16527 lt_prog_compiler_static_GCJ
='-Bstatic'
16531 lt_prog_compiler_can_build_shared_GCJ
=no
16536 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16537 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16540 # Check to make sure the PIC flag actually works.
16542 if test -n "$lt_prog_compiler_pic_GCJ"; then
16544 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16545 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16546 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16547 echo $ECHO_N "(cached) $ECHO_C" >&6
16549 lt_prog_compiler_pic_works_GCJ
=no
16550 ac_outfile
=conftest.
$ac_objext
16551 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
16552 lt_compiler_flag
="$lt_prog_compiler_pic_GCJ"
16553 # Insert the option either (1) after the last *FLAGS variable, or
16554 # (2) before a word containing "conftest.", or (3) at the end.
16555 # Note that $ac_compile itself does not contain backslashes and begins
16556 # with a dollar sign (not a hyphen), so the echo should work correctly.
16557 # The option is referenced via a variable to avoid confusing sed.
16558 lt_compile
=`echo "$ac_compile" | $SED \
16559 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16560 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16561 -e 's:$: $lt_compiler_flag:'`
16562 (eval echo "\"\$as_me:16562: $lt_compile\"" >&5)
16563 (eval "$lt_compile" 2>conftest.err
)
16565 cat conftest.err
>&5
16566 echo "$as_me:16566: \$? = $ac_status" >&5
16567 if (exit $ac_status) && test -s "$ac_outfile"; then
16568 # The compiler can only warn and ignore the option if not recognized
16569 # So say no if there are warnings other than the usual output.
16570 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
16571 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
16572 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
16573 lt_prog_compiler_pic_works_GCJ
=yes
16579 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16580 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16582 if test x
"$lt_prog_compiler_pic_works_GCJ" = xyes
; then
16583 case $lt_prog_compiler_pic_GCJ in
16585 *) lt_prog_compiler_pic_GCJ
=" $lt_prog_compiler_pic_GCJ" ;;
16588 lt_prog_compiler_pic_GCJ
=
16589 lt_prog_compiler_can_build_shared_GCJ
=no
16594 # For platforms which do not support PIC, -DPIC is meaningless:
16596 lt_prog_compiler_pic_GCJ
=
16599 lt_prog_compiler_pic_GCJ
="$lt_prog_compiler_pic_GCJ"
16604 # Check to make sure the static flag actually works.
16606 wl
=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_GCJ\"
16607 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16608 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16609 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16610 echo $ECHO_N "(cached) $ECHO_C" >&6
16612 lt_prog_compiler_static_works_GCJ
=no
16613 save_LDFLAGS
="$LDFLAGS"
16614 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
16615 printf "$lt_simple_link_test_code" > conftest.
$ac_ext
16616 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
16617 # The linker can only warn and ignore the option if not recognized
16618 # So say no if there are warnings
16619 if test -s conftest.err
; then
16620 # Append any errors to the config.log.
16621 cat conftest.err
1>&5
16622 $echo "X$_lt_linker_boilerplate" |
$Xsed -e '/^$/d' > conftest.exp
16623 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
16624 if diff conftest.exp conftest.er2
>/dev
/null
; then
16625 lt_prog_compiler_static_works_GCJ
=yes
16628 lt_prog_compiler_static_works_GCJ
=yes
16632 LDFLAGS
="$save_LDFLAGS"
16635 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16636 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16638 if test x
"$lt_prog_compiler_static_works_GCJ" = xyes
; then
16641 lt_prog_compiler_static_GCJ
=
16645 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16646 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16647 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16648 echo $ECHO_N "(cached) $ECHO_C" >&6
16650 lt_cv_prog_compiler_c_o_GCJ
=no
16651 $rm -r conftest
2>/dev
/null
16655 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
16657 lt_compiler_flag
="-o out/conftest2.$ac_objext"
16658 # Insert the option either (1) after the last *FLAGS variable, or
16659 # (2) before a word containing "conftest.", or (3) at the end.
16660 # Note that $ac_compile itself does not contain backslashes and begins
16661 # with a dollar sign (not a hyphen), so the echo should work correctly.
16662 lt_compile
=`echo "$ac_compile" | $SED \
16663 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16664 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16665 -e 's:$: $lt_compiler_flag:'`
16666 (eval echo "\"\$as_me:16666: $lt_compile\"" >&5)
16667 (eval "$lt_compile" 2>out
/conftest.err
)
16669 cat out
/conftest.err
>&5
16670 echo "$as_me:16670: \$? = $ac_status" >&5
16671 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
16673 # The compiler can only warn and ignore the option if not recognized
16674 # So say no if there are warnings
16675 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
16676 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
16677 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
16678 lt_cv_prog_compiler_c_o_GCJ
=yes
16683 # SGI C++ compiler will create directory out/ii_files/ for
16684 # template instantiation
16685 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
16686 $rm out
/* && rmdir out
16692 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16693 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16696 hard_links
="nottested"
16697 if test "$lt_cv_prog_compiler_c_o_GCJ" = no
&& test "$need_locks" != no
; then
16698 # do not overwrite the value of need_locks provided by the user
16699 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16700 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16703 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
16705 ln conftest.a conftest.b
2>&5 || hard_links
=no
16706 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
16707 { echo "$as_me:$LINENO: result: $hard_links" >&5
16708 echo "${ECHO_T}$hard_links" >&6; }
16709 if test "$hard_links" = no
; then
16710 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16711 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16718 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16719 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16722 allow_undefined_flag_GCJ
=
16723 enable_shared_with_static_runtimes_GCJ
=no
16725 archive_expsym_cmds_GCJ
=
16726 old_archive_From_new_cmds_GCJ
=
16727 old_archive_from_expsyms_cmds_GCJ
=
16728 export_dynamic_flag_spec_GCJ
=
16729 whole_archive_flag_spec_GCJ
=
16730 thread_safe_flag_spec_GCJ
=
16731 hardcode_libdir_flag_spec_GCJ
=
16732 hardcode_libdir_flag_spec_ld_GCJ
=
16733 hardcode_libdir_separator_GCJ
=
16734 hardcode_direct_GCJ
=no
16735 hardcode_minus_L_GCJ
=no
16736 hardcode_shlibpath_var_GCJ
=unsupported
16737 link_all_deplibs_GCJ
=unknown
16738 hardcode_automatic_GCJ
=no
16740 module_expsym_cmds_GCJ
=
16741 always_export_symbols_GCJ
=no
16742 export_symbols_cmds_GCJ
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16743 # include_expsyms should be a list of space-separated symbols to be *always*
16744 # included in the symbol list
16745 include_expsyms_GCJ
=
16746 # exclude_expsyms can be an extended regexp of symbols to exclude
16747 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16748 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16749 # as well as any symbol that contains `d'.
16750 exclude_expsyms_GCJ
="_GLOBAL_OFFSET_TABLE_"
16751 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16752 # platforms (ab)use it in PIC code, but their linkers get confused if
16753 # the symbol is explicitly referenced. Since portable code cannot
16754 # rely on this symbol name, it's probably fine to never include it in
16755 # preloaded symbol tables.
16756 extract_expsyms_cmds
=
16757 # Just being paranoid about ensuring that cc_basename is set.
16758 for cc_temp
in $compiler""; do
16760 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
16761 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
16766 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16769 cygwin
* | mingw
* | pw32
*)
16770 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16771 # When not using gcc, we currently assume that we are using
16772 # Microsoft Visual C++.
16773 if test "$GCC" != yes; then
16778 # we just hope/assume this is gcc and not c89 (= MSVC++)
16787 if test "$with_gnu_ld" = yes; then
16788 # If archive_cmds runs LD, not CC, wlarc should be empty
16791 # Set some defaults for GNU ld with shared library support. These
16792 # are reset later if shared libraries are not supported. Putting them
16793 # here allows them to be overridden if necessary.
16794 runpath_var
=LD_RUN_PATH
16795 hardcode_libdir_flag_spec_GCJ
='${wl}--rpath ${wl}$libdir'
16796 export_dynamic_flag_spec_GCJ
='${wl}--export-dynamic'
16797 # ancient GNU ld didn't support --whole-archive et. al.
16798 if $LD --help 2>&1 |
grep 'no-whole-archive' > /dev
/null
; then
16799 whole_archive_flag_spec_GCJ
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16801 whole_archive_flag_spec_GCJ
=
16803 supports_anon_versioning
=no
16804 case `$LD -v 2>/dev/null` in
16805 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
16806 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
16807 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
16808 *\
2.11.
*) ;; # other 2.11 versions
16809 *) supports_anon_versioning
=yes ;;
16812 # See if GNU ld supports shared libraries.
16814 aix3
* | aix4
* | aix5
*)
16815 # On AIX/PPC, the GNU linker is very broken
16816 if test "$host_cpu" != ia64
; then
16820 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16821 *** to be unable to reliably create shared libraries on AIX.
16822 *** Therefore, libtool is disabling shared libraries support. If you
16823 *** really care for shared libraries, you may want to modify your PATH
16824 *** so that a non-GNU linker is found, and then restart.
16831 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)'
16832 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
16833 hardcode_minus_L_GCJ
=yes
16835 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16836 # that the semantics of dynamic libraries on AmigaOS, at least up
16837 # to version 4, is to share data among multiple programs linked
16838 # with the same dynamic library. Since this doesn't match the
16839 # behavior of shared libraries on other platforms, we can't use
16845 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
16846 allow_undefined_flag_GCJ
=unsupported
16847 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16848 # support --undefined. This deserves some investigation. FIXME
16849 archive_cmds_GCJ
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16855 cygwin
* | mingw
* | pw32
*)
16856 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16857 # as there is no search path for DLLs.
16858 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
16859 allow_undefined_flag_GCJ
=unsupported
16860 always_export_symbols_GCJ
=no
16861 enable_shared_with_static_runtimes_GCJ
=yes
16862 export_symbols_cmds_GCJ
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16864 if $LD --help 2>&1 |
grep 'auto-import' > /dev
/null
; then
16865 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16866 # If the export-symbols file already is a .def file (1st line
16867 # is EXPORTS), use it as is; otherwise, prepend...
16868 archive_expsym_cmds_GCJ
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16869 cp $export_symbols $output_objdir/$soname.def;
16871 echo EXPORTS > $output_objdir/$soname.def;
16872 cat $export_symbols >> $output_objdir/$soname.def;
16874 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16881 hardcode_direct_GCJ
=no
16882 hardcode_shlibpath_var_GCJ
=no
16883 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath,$libdir'
16884 export_dynamic_flag_spec_GCJ
='${wl}-E'
16885 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16886 # Instead, shared libraries are loaded at an image base (0x10000000 by
16887 # default) and relocated if they conflict, which is a slow very memory
16888 # consuming and fragmenting process. To avoid this, we pick a random,
16889 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16890 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16891 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'
16892 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'
16895 linux
* | k
*bsd
*-gnu)
16896 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
16898 case $cc_basename,$host_cpu in
16899 pgcc
*) # Portland Group C compiler
16900 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'
16901 tmp_addflag
=' $pic_flag'
16903 pgf77
* | pgf90
* | pgf95
*) # Portland Group f77 and f90 compilers
16904 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'
16905 tmp_addflag
=' $pic_flag -Mnomain' ;;
16906 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
16907 tmp_addflag
=' -i_dynamic' ;;
16908 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
16909 tmp_addflag
=' -i_dynamic -nofor_main' ;;
16910 ifc
* | ifort
*) # Intel Fortran compiler
16911 tmp_addflag
=' -nofor_main' ;;
16913 archive_cmds_GCJ
='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16915 if test $supports_anon_versioning = yes; then
16916 archive_expsym_cmds_GCJ
='$echo "{ global:" > $output_objdir/$libname.ver~
16917 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16918 $echo "local: *; };" >> $output_objdir/$libname.ver~
16919 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16921 link_all_deplibs_GCJ
=no
16927 netbsd
* | netbsdelf
*-gnu)
16928 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
16929 archive_cmds_GCJ
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16932 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16933 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16938 if $LD -v 2>&1 |
grep 'BFD 2\.8' > /dev
/null
; then
16942 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16943 *** create shared libraries on Solaris systems. Therefore, libtool
16944 *** is disabling shared libraries support. We urge you to upgrade GNU
16945 *** binutils to release 2.9.1 or newer. Another option is to modify
16946 *** your PATH or compiler configuration so that the native linker is
16947 *** used, and then restart.
16950 elif $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
16951 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16952 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16958 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
16959 case `$LD -v 2>&1` in
16960 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
16964 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16965 *** reliably create shared libraries on SCO systems. Therefore, libtool
16966 *** is disabling shared libraries support. We urge you to upgrade GNU
16967 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16968 *** your PATH or compiler configuration so that the native linker is
16969 *** used, and then restart.
16974 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
16975 hardcode_libdir_flag_spec_GCJ
='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16976 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16977 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16986 archive_cmds_GCJ
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16988 hardcode_direct_GCJ
=yes
16989 hardcode_shlibpath_var_GCJ
=no
16993 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
16994 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16995 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17002 if test "$ld_shlibs_GCJ" = no
; then
17004 hardcode_libdir_flag_spec_GCJ
=
17005 export_dynamic_flag_spec_GCJ
=
17006 whole_archive_flag_spec_GCJ
=
17009 # PORTME fill in a description of your system's linker (not GNU ld)
17012 allow_undefined_flag_GCJ
=unsupported
17013 always_export_symbols_GCJ
=yes
17014 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'
17015 # Note: this linker hardcodes the directories in LIBPATH if there
17016 # are no directories specified by -L.
17017 hardcode_minus_L_GCJ
=yes
17018 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17019 # Neither direct hardcoding nor static linking is supported with a
17021 hardcode_direct_GCJ
=unsupported
17026 if test "$host_cpu" = ia64
; then
17027 # On IA64, the linker does run time linking by default, so we don't
17028 # have to do anything special.
17029 aix_use_runtimelinking
=no
17030 exp_sym_flag
='-Bexport'
17033 # If we're using GNU nm, then we don't want the "-C" option.
17034 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17035 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
17036 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'
17038 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'
17040 aix_use_runtimelinking
=no
17042 # Test if we are trying to use run time linking or normal
17043 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17044 # need to do runtime linking.
17045 case $host_os in aix4.
[23]|aix4.
[23].
*|aix5
*)
17046 for ld_flag
in $LDFLAGS; do
17047 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
17048 aix_use_runtimelinking
=yes
17055 exp_sym_flag
='-bexport'
17056 no_entry_flag
='-bnoentry'
17059 # When large executables or shared objects are built, AIX ld can
17060 # have problems creating the table of contents. If linking a library
17061 # or program results in "error TOC overflow" add -mminimal-toc to
17062 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17063 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17065 archive_cmds_GCJ
=''
17066 hardcode_direct_GCJ
=yes
17067 hardcode_libdir_separator_GCJ
=':'
17068 link_all_deplibs_GCJ
=yes
17070 if test "$GCC" = yes; then
17071 case $host_os in aix4.
[012]|aix4.
[012].
*)
17072 # We only want to do this on AIX 4.2 and lower, the check
17073 # below for broken collect2 doesn't work under 4.3+
17074 collect2name
=`${CC} -print-prog-name=collect2`
17075 if test -f "$collect2name" && \
17076 strings "$collect2name" |
grep resolve_lib_name
>/dev
/null
17078 # We have reworked collect2
17079 hardcode_direct_GCJ
=yes
17081 # We have old collect2
17082 hardcode_direct_GCJ
=unsupported
17083 # It fails to find uninstalled libraries when the uninstalled
17084 # path is not listed in the libpath. Setting hardcode_minus_L
17085 # to unsupported forces relinking
17086 hardcode_minus_L_GCJ
=yes
17087 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
17088 hardcode_libdir_separator_GCJ
=
17092 shared_flag
='-shared'
17093 if test "$aix_use_runtimelinking" = yes; then
17094 shared_flag
="$shared_flag "'${wl}-G'
17098 if test "$host_cpu" = ia64
; then
17099 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17100 # chokes on -Wl,-G. The following line is correct:
17103 if test "$aix_use_runtimelinking" = yes; then
17104 shared_flag
='${wl}-G'
17106 shared_flag
='${wl}-bM:SRE'
17111 # It seems that -bexpall does not export symbols beginning with
17112 # underscore (_), so it is better to generate a list of symbols to export.
17113 always_export_symbols_GCJ
=yes
17114 if test "$aix_use_runtimelinking" = yes; then
17115 # Warning - without using the other runtime loading flags (-brtl),
17116 # -berok will link without error, but may produce a broken library.
17117 allow_undefined_flag_GCJ
='-berok'
17118 # Determine the default libpath from the value encoded in an empty executable.
17119 cat >conftest.
$ac_ext <<_ACEOF
17122 cat confdefs.h
>>conftest.
$ac_ext
17123 cat >>conftest.
$ac_ext <<_ACEOF
17124 /* end confdefs.h. */
17134 rm -f conftest.
$ac_objext conftest
$ac_exeext
17135 if { (ac_try
="$ac_link"
17136 case "(($ac_try" in
17137 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17138 *) ac_try_echo=$ac_try;;
17140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17141 (eval "$ac_link") 2>conftest.er1
17143 grep -v '^ *+' conftest.er1 >conftest.err
17145 cat conftest.err >&5
17146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17147 (exit $ac_status); } && {
17148 test -z "$ac_c_werror_flag" ||
17149 test ! -s conftest.err
17150 } && test -s conftest$ac_exeext &&
17151 $as_test_x conftest$ac_exeext; then
17153 aix_libpath=`dump
-H conftest
$ac_exeext 2>/dev
/null |
$SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17155 # Check for a 64-bit object if we didn't find anything.
17156 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; }
17159 echo "$as_me: failed program was:" >&5
17160 sed 's/^/| /' conftest.$ac_ext >&5
17165 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17166 conftest$ac_exeext conftest.$ac_ext
17167 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17169 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17170 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"
17172 if test "$host_cpu" = ia64; then
17173 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17174 allow_undefined_flag_GCJ="-z nodefs"
17175 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"
17177 # Determine the default libpath from the value encoded in an empty executable.
17178 cat >conftest.$ac_ext <<_ACEOF
17181 cat confdefs.h >>conftest.$ac_ext
17182 cat >>conftest.$ac_ext <<_ACEOF
17183 /* end confdefs.h. */
17193 rm -f conftest.$ac_objext conftest$ac_exeext
17194 if { (ac_try="$ac_link"
17195 case "(($ac_try" in
17196 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17197 *) ac_try_echo
=$ac_try;;
17199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17200 (eval "$ac_link") 2>conftest.er1
17202 grep -v '^ *+' conftest.er1
>conftest.err
17204 cat conftest.err
>&5
17205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17206 (exit $ac_status); } && {
17207 test -z "$ac_c_werror_flag" ||
17208 test ! -s conftest.err
17209 } && test -s conftest
$ac_exeext &&
17210 $as_test_x conftest
$ac_exeext; then
17212 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17214 # Check for a 64-bit object if we didn't find anything.
17215 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; }
17218 echo "$as_me: failed program was:" >&5
17219 sed 's/^/| /' conftest.
$ac_ext >&5
17224 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17225 conftest
$ac_exeext conftest.
$ac_ext
17226 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
17228 hardcode_libdir_flag_spec_GCJ
='${wl}-blibpath:$libdir:'"$aix_libpath"
17229 # Warning - without using the other run time loading flags,
17230 # -berok will link without error, but may produce a broken library.
17231 no_undefined_flag_GCJ
=' ${wl}-bernotok'
17232 allow_undefined_flag_GCJ
=' ${wl}-berok'
17233 # Exported symbols can be pulled into shared objects from archives
17234 whole_archive_flag_spec_GCJ
='$convenience'
17235 archive_cmds_need_lc_GCJ
=yes
17236 # This is similar to how AIX traditionally builds its shared libraries.
17237 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'
17243 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)'
17244 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
17245 hardcode_minus_L_GCJ
=yes
17246 # see comment about different semantics on the GNU ld section
17251 export_dynamic_flag_spec_GCJ
=-rdynamic
17254 cygwin
* | mingw
* | pw32
*)
17255 # When not using gcc, we currently assume that we are using
17256 # Microsoft Visual C++.
17257 # hardcode_libdir_flag_spec is actually meaningless, as there is
17258 # no search path for DLLs.
17259 hardcode_libdir_flag_spec_GCJ
=' '
17260 allow_undefined_flag_GCJ
=unsupported
17261 # Tell ltmain to make .lib files, not .a files.
17263 # Tell ltmain to make .dll files, not .so files.
17265 # FIXME: Setting linknames here is a bad hack.
17266 archive_cmds_GCJ
='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17267 # The linker will automatically build a .lib file if we build a DLL.
17268 old_archive_From_new_cmds_GCJ
='true'
17269 # FIXME: Should let the user specify the lib program.
17270 old_archive_cmds_GCJ
='lib /OUT:$oldlib$oldobjs$old_deplibs'
17271 fix_srcfile_path_GCJ
='`cygpath -w "$srcfile"`'
17272 enable_shared_with_static_runtimes_GCJ
=yes
17275 darwin
* | rhapsody
*)
17277 rhapsody
* | darwin1.
[012])
17278 allow_undefined_flag_GCJ
='${wl}-undefined ${wl}suppress'
17281 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17282 allow_undefined_flag_GCJ
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17284 case ${MACOSX_DEPLOYMENT_TARGET} in
17286 allow_undefined_flag_GCJ
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17289 allow_undefined_flag_GCJ
='${wl}-undefined ${wl}dynamic_lookup'
17295 archive_cmds_need_lc_GCJ
=no
17296 hardcode_direct_GCJ
=no
17297 hardcode_automatic_GCJ
=yes
17298 hardcode_shlibpath_var_GCJ
=unsupported
17299 whole_archive_flag_spec_GCJ
=''
17300 link_all_deplibs_GCJ
=yes
17301 if test "$GCC" = yes ; then
17302 output_verbose_link_cmd
='echo'
17303 archive_cmds_GCJ
='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17304 module_cmds_GCJ
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17305 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17306 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}'
17307 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}'
17309 case $cc_basename in
17311 output_verbose_link_cmd
='echo'
17312 archive_cmds_GCJ
='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17313 module_cmds_GCJ
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17314 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17315 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}'
17316 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}'
17326 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17327 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
17328 hardcode_shlibpath_var_GCJ
=no
17335 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17336 # support. Future versions do this automatically, but an explicit c++rt0.o
17337 # does not break anything, and helps significantly (at the cost of a little
17340 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17341 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
17342 hardcode_direct_GCJ
=yes
17343 hardcode_shlibpath_var_GCJ
=no
17346 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17348 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17349 hardcode_direct_GCJ
=yes
17350 hardcode_minus_L_GCJ
=yes
17351 hardcode_shlibpath_var_GCJ
=no
17354 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17355 freebsd
* | dragonfly
*)
17356 archive_cmds_GCJ
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17357 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
17358 hardcode_direct_GCJ
=yes
17359 hardcode_shlibpath_var_GCJ
=no
17363 if test "$GCC" = yes; then
17364 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'
17366 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'
17368 hardcode_libdir_flag_spec_GCJ
='${wl}+b ${wl}$libdir'
17369 hardcode_libdir_separator_GCJ
=:
17370 hardcode_direct_GCJ
=yes
17372 # hardcode_minus_L: Not really in the search PATH,
17373 # but as the default location of the library.
17374 hardcode_minus_L_GCJ
=yes
17375 export_dynamic_flag_spec_GCJ
='${wl}-E'
17379 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
17380 archive_cmds_GCJ
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17382 archive_cmds_GCJ
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17384 if test "$with_gnu_ld" = no
; then
17385 hardcode_libdir_flag_spec_GCJ
='${wl}+b ${wl}$libdir'
17386 hardcode_libdir_separator_GCJ
=:
17388 hardcode_direct_GCJ
=yes
17389 export_dynamic_flag_spec_GCJ
='${wl}-E'
17391 # hardcode_minus_L: Not really in the search PATH,
17392 # but as the default location of the library.
17393 hardcode_minus_L_GCJ
=yes
17398 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
17401 archive_cmds_GCJ
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17404 archive_cmds_GCJ
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17407 archive_cmds_GCJ
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17413 archive_cmds_GCJ
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17416 archive_cmds_GCJ
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17419 archive_cmds_GCJ
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17423 if test "$with_gnu_ld" = no
; then
17424 hardcode_libdir_flag_spec_GCJ
='${wl}+b ${wl}$libdir'
17425 hardcode_libdir_separator_GCJ
=:
17429 hardcode_libdir_flag_spec_ld_GCJ
='+b $libdir'
17430 hardcode_direct_GCJ
=no
17431 hardcode_shlibpath_var_GCJ
=no
17434 hardcode_direct_GCJ
=yes
17435 export_dynamic_flag_spec_GCJ
='${wl}-E'
17437 # hardcode_minus_L: Not really in the search PATH,
17438 # but as the default location of the library.
17439 hardcode_minus_L_GCJ
=yes
17445 irix5
* | irix6
* | nonstopux
*)
17446 if test "$GCC" = yes; then
17447 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'
17449 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'
17450 hardcode_libdir_flag_spec_ld_GCJ
='-rpath $libdir'
17452 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
17453 hardcode_libdir_separator_GCJ
=:
17454 link_all_deplibs_GCJ
=yes
17457 netbsd
* | netbsdelf
*-gnu)
17458 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
17459 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17461 archive_cmds_GCJ
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17463 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
17464 hardcode_direct_GCJ
=yes
17465 hardcode_shlibpath_var_GCJ
=no
17469 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17470 hardcode_direct_GCJ
=yes
17471 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
17472 hardcode_libdir_separator_GCJ
=:
17473 hardcode_shlibpath_var_GCJ
=no
17477 hardcode_direct_GCJ
=yes
17478 hardcode_shlibpath_var_GCJ
=no
17479 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17480 archive_cmds_GCJ
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17481 archive_expsym_cmds_GCJ
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17482 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath,$libdir'
17483 export_dynamic_flag_spec_GCJ
='${wl}-E'
17486 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
17487 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17488 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
17491 archive_cmds_GCJ
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17492 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath,$libdir'
17499 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
17500 hardcode_minus_L_GCJ
=yes
17501 allow_undefined_flag_GCJ
=unsupported
17502 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'
17503 old_archive_From_new_cmds_GCJ
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17507 if test "$GCC" = yes; then
17508 allow_undefined_flag_GCJ
=' ${wl}-expect_unresolved ${wl}\*'
17509 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'
17511 allow_undefined_flag_GCJ
=' -expect_unresolved \*'
17512 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'
17514 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
17515 hardcode_libdir_separator_GCJ
=:
17518 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
17519 if test "$GCC" = yes; then
17520 allow_undefined_flag_GCJ
=' ${wl}-expect_unresolved ${wl}\*'
17521 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'
17522 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
17524 allow_undefined_flag_GCJ
=' -expect_unresolved \*'
17525 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'
17526 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~
17527 $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'
17529 # Both c and cxx compiler support -rpath directly
17530 hardcode_libdir_flag_spec_GCJ
='-rpath $libdir'
17532 hardcode_libdir_separator_GCJ
=:
17536 no_undefined_flag_GCJ
=' -z text'
17537 if test "$GCC" = yes; then
17539 archive_cmds_GCJ
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17540 archive_expsym_cmds_GCJ
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17541 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17544 archive_cmds_GCJ
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17545 archive_expsym_cmds_GCJ
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17546 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17548 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
17549 hardcode_shlibpath_var_GCJ
=no
17551 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
17553 # The compiler driver will combine linker options so we
17554 # cannot just pass the convience library names through
17555 # without $wl, iff we do not link with $LD.
17556 # Luckily, gcc supports the same syntax we need for Sun Studio.
17557 # Supported since Solaris 2.6 (maybe 2.5.1?)
17560 whole_archive_flag_spec_GCJ
='-z allextract$convenience -z defaultextract' ;;
17562 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' ;;
17565 link_all_deplibs_GCJ
=yes
17569 if test "x$host_vendor" = xsequent
; then
17570 # Use $CC to link under sequent, because it throws in some extra .o
17571 # files that make .init and .fini sections work.
17572 archive_cmds_GCJ
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17574 archive_cmds_GCJ
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17576 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
17577 hardcode_direct_GCJ
=yes
17578 hardcode_minus_L_GCJ
=yes
17579 hardcode_shlibpath_var_GCJ
=no
17583 case $host_vendor in
17585 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17586 hardcode_direct_GCJ
=yes # is this really true???
17589 ## LD is ld it makes a PLAMLIB
17590 ## CC just makes a GrossModule.
17591 archive_cmds_GCJ
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17592 reload_cmds_GCJ
='$CC -r -o $output$reload_objs'
17593 hardcode_direct_GCJ
=no
17596 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17597 hardcode_direct_GCJ
=no
#Motorola manual says yes, but my tests say they lie
17600 runpath_var
='LD_RUN_PATH'
17601 hardcode_shlibpath_var_GCJ
=no
17605 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17606 hardcode_shlibpath_var_GCJ
=no
17607 export_dynamic_flag_spec_GCJ
='-Bexport'
17611 if test -d /usr
/nec
; then
17612 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17613 hardcode_shlibpath_var_GCJ
=no
17614 runpath_var
=LD_RUN_PATH
17615 hardcode_runpath_var
=yes
17620 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
*)
17621 no_undefined_flag_GCJ
='${wl}-z,text'
17622 archive_cmds_need_lc_GCJ
=no
17623 hardcode_shlibpath_var_GCJ
=no
17624 runpath_var
='LD_RUN_PATH'
17626 if test "$GCC" = yes; then
17627 archive_cmds_GCJ
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17628 archive_expsym_cmds_GCJ
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17630 archive_cmds_GCJ
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17631 archive_expsym_cmds_GCJ
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17635 sysv5
* | sco3.2v5
* | sco5v6
*)
17636 # Note: We can NOT use -z defs as we might desire, because we do not
17637 # link with -lc, and that would cause any symbols used from libc to
17638 # always be unresolved, which means just about no library would
17639 # ever link correctly. If we're not using GNU ld we use -z text
17640 # though, which does catch some bad symbols but isn't as heavy-handed
17642 no_undefined_flag_GCJ
='${wl}-z,text'
17643 allow_undefined_flag_GCJ
='${wl}-z,nodefs'
17644 archive_cmds_need_lc_GCJ
=no
17645 hardcode_shlibpath_var_GCJ
=no
17646 hardcode_libdir_flag_spec_GCJ
='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17647 hardcode_libdir_separator_GCJ
=':'
17648 link_all_deplibs_GCJ
=yes
17649 export_dynamic_flag_spec_GCJ
='${wl}-Bexport'
17650 runpath_var
='LD_RUN_PATH'
17652 if test "$GCC" = yes; then
17653 archive_cmds_GCJ
='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17654 archive_expsym_cmds_GCJ
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17656 archive_cmds_GCJ
='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17657 archive_expsym_cmds_GCJ
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17662 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17663 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
17664 hardcode_shlibpath_var_GCJ
=no
17673 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17674 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17675 test "$ld_shlibs_GCJ" = no
&& can_build_shared
=no
17678 # Do we need to explicitly link libc?
17680 case "x$archive_cmds_need_lc_GCJ" in
17682 # Assume -lc should be added
17683 archive_cmds_need_lc_GCJ
=yes
17685 if test "$enable_shared" = yes && test "$GCC" = yes; then
17686 case $archive_cmds_GCJ in
17688 # FIXME: we may have to deal with multi-command sequences.
17691 # Test whether the compiler implicitly links with -lc since on some
17692 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17693 # to ld, don't add -lc before -lgcc.
17694 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17695 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17697 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
17699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17700 (eval $ac_compile) 2>&5
17702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17703 (exit $ac_status); } 2>conftest.err
; then
17706 libobjs
=conftest.
$ac_objext
17708 wl
=$lt_prog_compiler_wl_GCJ
17709 pic_flag
=$lt_prog_compiler_pic_GCJ
17715 lt_save_allow_undefined_flag
=$allow_undefined_flag_GCJ
17716 allow_undefined_flag_GCJ
=
17717 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17718 (eval $archive_cmds_GCJ 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
17720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17721 (exit $ac_status); }
17723 archive_cmds_need_lc_GCJ
=no
17725 archive_cmds_need_lc_GCJ
=yes
17727 allow_undefined_flag_GCJ
=$lt_save_allow_undefined_flag
17729 cat conftest.err
1>&5
17732 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17733 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17740 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17741 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17742 library_names_spec
=
17743 libname_spec
='lib$name'
17747 postuninstall_cmds
=
17751 shlibpath_overrides_runpath
=unknown
17753 dynamic_linker
="$host_os ld.so"
17754 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
17755 if test "$GCC" = yes; then
17756 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17757 if echo "$sys_lib_search_path_spec" |
grep ';' >/dev
/null
; then
17758 # if the path contains ";" then we assume it to be the separator
17759 # otherwise default to the standard path separator (i.e. ":") - it is
17760 # assumed that no part of a normal pathname contains ";" but that should
17761 # okay in the real world where ";" in dirpaths is itself problematic.
17762 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17764 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17767 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
17769 need_lib_prefix
=unknown
17770 hardcode_into_libs
=no
17772 # when you set need_version to no, make sure it does not cause -set_version
17773 # flags to be left without arguments
17774 need_version
=unknown
17779 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
17780 shlibpath_var
=LIBPATH
17782 # AIX 3 has no versioning support, so we append a major version to the name.
17783 soname_spec
='${libname}${release}${shared_ext}$major'
17790 hardcode_into_libs
=yes
17791 if test "$host_cpu" = ia64
; then
17792 # AIX 5 supports IA64
17793 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17794 shlibpath_var
=LD_LIBRARY_PATH
17796 # With GCC up to 2.95.x, collect2 would create an import file
17797 # for dependence libraries. The import file would start with
17798 # the line `#! .'. This would cause the generated library to
17799 # depend on `.', always an invalid library. This was fixed in
17800 # development snapshots of GCC prior to 3.0.
17802 aix4 | aix4.
[01] | aix4.
[01].
*)
17803 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17805 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
17808 can_build_shared
=no
17812 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17813 # soname into executable. Probably we can add versioning support to
17814 # collect2, so additional links can be useful in future.
17815 if test "$aix_use_runtimelinking" = yes; then
17816 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17817 # instead of lib<name>.a to let people know that these are not
17818 # typical AIX shared libraries.
17819 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17821 # We preserve .a as extension for shared libraries through AIX4.2
17822 # and later when we are not doing run time linking.
17823 library_names_spec
='${libname}${release}.a $libname.a'
17824 soname_spec
='${libname}${release}${shared_ext}$major'
17826 shlibpath_var
=LIBPATH
17831 library_names_spec
='$libname.ixlibrary $libname.a'
17832 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17833 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'
17837 library_names_spec
='${libname}${shared_ext}'
17838 dynamic_linker
="$host_os ld.so"
17839 shlibpath_var
=LIBRARY_PATH
17845 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17846 soname_spec
='${libname}${release}${shared_ext}$major'
17847 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
17848 shlibpath_var
=LD_LIBRARY_PATH
17849 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17850 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
17851 # the default ld.so.conf also contains /usr/contrib/lib and
17852 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17853 # libtool to hard-code these into programs
17856 cygwin
* | mingw
* | pw32
*)
17857 version_type
=windows
17862 case $GCC,$host_os in
17863 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
17864 library_names_spec
='$libname.dll.a'
17865 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17866 postinstall_cmds
='base_file=`basename \${file}`~
17867 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17868 dldir=$destdir/`dirname \$dlpath`~
17869 test -d \$dldir || mkdir -p \$dldir~
17870 $install_prog $dir/$dlname \$dldir/$dlname~
17871 chmod a+x \$dldir/$dlname'
17872 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17873 dlpath=$dir/\$dldll~
17875 shlibpath_overrides_runpath
=yes
17879 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17880 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17881 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
17884 # MinGW DLLs use traditional 'lib' prefix
17885 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17886 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17887 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
17888 # It is most probably a Windows format PATH printed by
17889 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17890 # path with ; separators, and with drive letters. We can handle the
17891 # drive letters (cygwin fileutils understands them), so leave them,
17892 # especially as we might pass files found there to a mingw objdump,
17893 # which wouldn't understand a cygwinified path. Ahh.
17894 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17896 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17900 # pw32 DLLs use 'pw' prefix rather than 'lib'
17901 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17907 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17910 dynamic_linker
='Win32 ld.exe'
17911 # FIXME: first we should search . and the directory the executable is in
17915 darwin
* | rhapsody
*)
17916 dynamic_linker
="$host_os dyld"
17917 version_type
=darwin
17920 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17921 soname_spec
='${libname}${release}${major}$shared_ext'
17922 shlibpath_overrides_runpath
=yes
17923 shlibpath_var
=DYLD_LIBRARY_PATH
17924 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
17925 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17926 if test "$GCC" = yes; then
17927 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"`
17929 sys_lib_search_path_spec
='/lib /usr/lib /usr/local/lib'
17931 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
17938 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17939 soname_spec
='${libname}${release}${shared_ext}$major'
17940 shlibpath_var
=LD_LIBRARY_PATH
17947 freebsd
* | dragonfly
*)
17948 # DragonFly does not have aout. When/if they implement a new
17949 # versioning mechanism, adjust this.
17950 if test -x /usr
/bin
/objformat
; then
17951 objformat
=`/usr/bin/objformat`
17954 freebsd
[123]*) objformat
=aout
;;
17955 *) objformat
=elf
;;
17958 version_type
=freebsd-
$objformat
17959 case $version_type in
17961 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17966 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17970 shlibpath_var
=LD_LIBRARY_PATH
17973 shlibpath_overrides_runpath
=yes
17975 freebsd3.
[01]* | freebsdelf3.
[01]*)
17976 shlibpath_overrides_runpath
=yes
17977 hardcode_into_libs
=yes
17979 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
17980 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
17981 shlibpath_overrides_runpath
=no
17982 hardcode_into_libs
=yes
17984 freebsd
*) # from 4.6 on
17985 shlibpath_overrides_runpath
=yes
17986 hardcode_into_libs
=yes
17995 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17996 soname_spec
='${libname}${release}${shared_ext}$major'
17997 shlibpath_var
=LD_LIBRARY_PATH
17998 hardcode_into_libs
=yes
18001 hpux9
* | hpux10
* | hpux11
*)
18002 # Give a soname corresponding to the major version so that dld.sl refuses to
18003 # link against other versions.
18010 hardcode_into_libs
=yes
18011 dynamic_linker
="$host_os dld.so"
18012 shlibpath_var
=LD_LIBRARY_PATH
18013 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
18014 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18015 soname_spec
='${libname}${release}${shared_ext}$major'
18016 if test "X$HPUX_IA64_MODE" = X32
; then
18017 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18019 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
18021 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
18025 hardcode_into_libs
=yes
18026 dynamic_linker
="$host_os dld.sl"
18027 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
18028 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
18029 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18030 soname_spec
='${libname}${release}${shared_ext}$major'
18031 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18032 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
18036 dynamic_linker
="$host_os dld.sl"
18037 shlibpath_var
=SHLIB_PATH
18038 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
18039 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18040 soname_spec
='${libname}${release}${shared_ext}$major'
18043 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18044 postinstall_cmds
='chmod 555 $lib'
18051 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18052 soname_spec
='${libname}${release}${shared_ext}$major'
18053 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
18054 shlibpath_var
=LD_LIBRARY_PATH
18055 shlibpath_overrides_runpath
=no
18056 hardcode_into_libs
=yes
18059 irix5
* | irix6
* | nonstopux
*)
18061 nonstopux
*) version_type
=nonstopux
;;
18063 if test "$lt_cv_prog_gnu_ld" = yes; then
18071 soname_spec
='${libname}${release}${shared_ext}$major'
18072 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18074 irix5
* | nonstopux
*)
18075 libsuff
= shlibsuff
=
18078 case $LD in # libtool.m4 will add one of these switches to LD
18079 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
18080 libsuff
= shlibsuff
= libmagic
=32-bit;;
18081 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
18082 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
18083 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
18084 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
18085 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
18089 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
18090 shlibpath_overrides_runpath
=no
18091 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18092 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
18093 hardcode_into_libs
=yes
18096 # No shared lib support for Linux oldld, aout, or coff.
18097 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
18101 # This must be Linux ELF.
18102 linux
* | k
*bsd
*-gnu)
18106 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18107 soname_spec
='${libname}${release}${shared_ext}$major'
18108 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18109 shlibpath_var
=LD_LIBRARY_PATH
18110 shlibpath_overrides_runpath
=no
18111 # This implies no fast_install, which is unacceptable.
18112 # Some rework will be needed to allow for fast_install
18113 # before this can be enabled.
18114 hardcode_into_libs
=yes
18116 # Append ld.so.conf contents to the search path
18117 if test -f /etc
/ld.so.conf
; then
18118 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' ' '`
18119 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
18122 # We used to test for /lib/ld.so.1 and disable shared libraries on
18123 # powerpc, because MkLinux only supported shared libraries with the
18124 # GNU dynamic linker. Since this was broken with cross compilers,
18125 # most powerpc-linux boxes support dynamic linking these days and
18126 # people can always --disable-shared, the test was removed, and we
18127 # assume the GNU/Linux dynamic linker is in use.
18128 dynamic_linker
='GNU/Linux ld.so'
18135 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18136 soname_spec
='${libname}${release}${shared_ext}$major'
18137 shlibpath_var
=LD_LIBRARY_PATH
18138 shlibpath_overrides_runpath
=no
18139 hardcode_into_libs
=yes
18140 dynamic_linker
='NetBSD ld.elf_so'
18147 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
18148 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18149 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18150 dynamic_linker
='NetBSD (a.out) ld.so'
18152 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18153 soname_spec
='${libname}${release}${shared_ext}$major'
18154 dynamic_linker
='NetBSD ld.elf_so'
18156 shlibpath_var
=LD_LIBRARY_PATH
18157 shlibpath_overrides_runpath
=yes
18158 hardcode_into_libs
=yes
18163 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18164 shlibpath_var
=LD_LIBRARY_PATH
18165 shlibpath_overrides_runpath
=yes
18172 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18173 soname_spec
='${libname}${release}${shared_ext}$major'
18174 shlibpath_var
=LD_LIBRARY_PATH
18175 shlibpath_overrides_runpath
=yes
18180 sys_lib_dlsearch_path_spec
="/usr/lib"
18182 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18184 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
18185 *) need_version
=no
;;
18187 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18188 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18189 shlibpath_var
=LD_LIBRARY_PATH
18190 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18192 openbsd2.
[89] | openbsd2.
[89].
*)
18193 shlibpath_overrides_runpath
=no
18196 shlibpath_overrides_runpath
=yes
18200 shlibpath_overrides_runpath
=yes
18205 libname_spec
='$name'
18208 library_names_spec
='$libname${shared_ext} $libname.a'
18209 dynamic_linker
='OS/2 ld.exe'
18210 shlibpath_var
=LIBPATH
18213 osf3
* | osf4
* | osf5
*)
18217 soname_spec
='${libname}${release}${shared_ext}$major'
18218 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18219 shlibpath_var
=LD_LIBRARY_PATH
18220 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18221 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
18228 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18229 soname_spec
='${libname}${release}${shared_ext}$major'
18230 shlibpath_var
=LD_LIBRARY_PATH
18231 shlibpath_overrides_runpath
=yes
18232 hardcode_into_libs
=yes
18233 # ldd complains unless libraries are executable
18234 postinstall_cmds
='chmod +x $lib'
18239 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18240 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18241 shlibpath_var
=LD_LIBRARY_PATH
18242 shlibpath_overrides_runpath
=yes
18243 if test "$with_gnu_ld" = yes; then
18251 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18252 soname_spec
='${libname}${release}${shared_ext}$major'
18253 shlibpath_var
=LD_LIBRARY_PATH
18254 case $host_vendor in
18256 shlibpath_overrides_runpath
=no
18258 export_dynamic_flag_spec
='${wl}-Blargedynsym'
18259 runpath_var
=LD_RUN_PATH
18267 shlibpath_overrides_runpath
=no
18268 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
18274 if test -d /usr
/nec
;then
18276 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18277 soname_spec
='$libname${shared_ext}.$major'
18278 shlibpath_var
=LD_LIBRARY_PATH
18282 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
18283 version_type
=freebsd-elf
18286 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18287 soname_spec
='${libname}${release}${shared_ext}$major'
18288 shlibpath_var
=LD_LIBRARY_PATH
18289 hardcode_into_libs
=yes
18290 if test "$with_gnu_ld" = yes; then
18291 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18292 shlibpath_overrides_runpath
=no
18294 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
18295 shlibpath_overrides_runpath
=yes
18298 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
18302 sys_lib_dlsearch_path_spec
='/usr/lib'
18307 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18308 soname_spec
='${libname}${release}${shared_ext}$major'
18309 shlibpath_var
=LD_LIBRARY_PATH
18316 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18317 echo "${ECHO_T}$dynamic_linker" >&6; }
18318 test "$dynamic_linker" = no
&& can_build_shared
=no
18320 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
18321 if test "$GCC" = yes; then
18322 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18325 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18326 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18327 hardcode_action_GCJ
=
18328 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18329 test -n "$runpath_var_GCJ" || \
18330 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18332 # We can hardcode non-existant directories.
18333 if test "$hardcode_direct_GCJ" != no
&&
18334 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18335 # have to relink, otherwise we might link with an installed library
18336 # when we should be linking with a yet-to-be-installed one
18337 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18338 test "$hardcode_minus_L_GCJ" != no
; then
18339 # Linking always hardcodes the temporary library directory.
18340 hardcode_action_GCJ
=relink
18342 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18343 hardcode_action_GCJ
=immediate
18346 # We cannot hardcode anything, or else we can only hardcode existing
18348 hardcode_action_GCJ
=unsupported
18350 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18351 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18353 if test "$hardcode_action_GCJ" = relink
; then
18354 # Fast installation is not supported
18355 enable_fast_install
=no
18356 elif test "$shlibpath_overrides_runpath" = yes ||
18357 test "$enable_shared" = no
; then
18358 # Fast installation is not necessary
18359 enable_fast_install
=needless
18363 # The else clause should only fire when bootstrapping the
18364 # libtool distribution, otherwise you forgot to ship ltmain.sh
18365 # with your package, and you will get complaints that there are
18366 # no rules to generate ltmain.sh.
18367 if test -f "$ltmain"; then
18368 # See if we are running on zsh, and set the options which allow our commands through
18369 # without removal of \ escapes.
18370 if test -n "${ZSH_VERSION+set}" ; then
18371 setopt NO_GLOB_SUBST
18373 # Now quote all the things that may contain metacharacters while being
18374 # careful not to overquote the AC_SUBSTed values. We take copies of the
18375 # variables and quote the copies for generation of the libtool script.
18376 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18378 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18379 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18380 deplibs_check_method reload_flag reload_cmds need_locks \
18381 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18382 lt_cv_sys_global_symbol_to_c_name_address \
18383 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18384 old_postinstall_cmds old_postuninstall_cmds \
18388 lt_prog_compiler_wl_GCJ \
18389 lt_prog_compiler_pic_GCJ \
18390 lt_prog_compiler_static_GCJ \
18391 lt_prog_compiler_no_builtin_flag_GCJ \
18392 export_dynamic_flag_spec_GCJ \
18393 thread_safe_flag_spec_GCJ \
18394 whole_archive_flag_spec_GCJ \
18395 enable_shared_with_static_runtimes_GCJ \
18396 old_archive_cmds_GCJ \
18397 old_archive_from_new_cmds_GCJ \
18398 predep_objects_GCJ \
18399 postdep_objects_GCJ \
18402 compiler_lib_search_path_GCJ \
18404 archive_expsym_cmds_GCJ \
18405 postinstall_cmds_GCJ \
18406 postuninstall_cmds_GCJ \
18407 old_archive_from_expsyms_cmds_GCJ \
18408 allow_undefined_flag_GCJ \
18409 no_undefined_flag_GCJ \
18410 export_symbols_cmds_GCJ \
18411 hardcode_libdir_flag_spec_GCJ \
18412 hardcode_libdir_flag_spec_ld_GCJ \
18413 hardcode_libdir_separator_GCJ \
18414 hardcode_automatic_GCJ \
18416 module_expsym_cmds_GCJ \
18417 lt_cv_prog_compiler_c_o_GCJ \
18418 exclude_expsyms_GCJ \
18419 include_expsyms_GCJ
; do
18422 old_archive_cmds_GCJ | \
18423 old_archive_from_new_cmds_GCJ | \
18424 archive_cmds_GCJ | \
18425 archive_expsym_cmds_GCJ | \
18426 module_cmds_GCJ | \
18427 module_expsym_cmds_GCJ | \
18428 old_archive_from_expsyms_cmds_GCJ | \
18429 export_symbols_cmds_GCJ | \
18430 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18431 postinstall_cmds | postuninstall_cmds | \
18432 old_postinstall_cmds | old_postuninstall_cmds | \
18433 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
18434 # Double-quote double-evaled strings.
18435 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18438 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18444 *'\$0 --fallback-echo"')
18445 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18451 cat <<__EOF__ >> "$cfgfile"
18452 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18454 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18456 # Shell to use when invoking shell scripts.
18459 # Whether or not to build shared libraries.
18460 build_libtool_libs=$enable_shared
18462 # Whether or not to build static libraries.
18463 build_old_libs=$enable_static
18465 # Whether or not to add -lc for building shared libraries.
18466 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18468 # Whether or not to disallow shared libs when runtime libs are static
18469 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18471 # Whether or not to optimize for fast installation.
18472 fast_install=$enable_fast_install
18475 host_alias=$host_alias
18479 # The build system.
18480 build_alias=$build_alias
18484 # An echo program that does not interpret backslashes.
18489 AR_FLAGS=$lt_AR_FLAGS
18494 # LTCC compiler flags.
18495 LTCFLAGS=$lt_LTCFLAGS
18497 # A language-specific compiler.
18498 CC=$lt_compiler_GCJ
18500 # Is the compiler the GNU C compiler?
18506 # The linker used to build libraries.
18509 # Whether we need hard or soft links.
18512 # A BSD-compatible nm program.
18515 # A symbol stripping program
18518 # Used to examine libraries when file_magic_cmd begins "file"
18519 MAGIC_CMD=$MAGIC_CMD
18521 # Used on cygwin: DLL creation program.
18524 # Used on cygwin: object dumper.
18527 # Used on cygwin: assembler.
18530 # The name of the directory that contains temporary libtool files.
18533 # How to create reloadable object files.
18534 reload_flag=$lt_reload_flag
18535 reload_cmds=$lt_reload_cmds
18537 # How to pass a linker flag through the compiler.
18538 wl=$lt_lt_prog_compiler_wl_GCJ
18540 # Object file suffix (normally "o").
18541 objext="$ac_objext"
18543 # Old archive suffix (normally "a").
18546 # Shared library suffix (normally ".so").
18547 shrext_cmds='$shrext_cmds'
18549 # Executable file suffix (normally "").
18552 # Additional compiler flags for building library objects.
18553 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18556 # What is the maximum length of a command?
18557 max_cmd_len=$lt_cv_sys_max_cmd_len
18559 # Does compiler simultaneously support -c and -o options?
18560 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18562 # Must we lock files when doing compilation?
18563 need_locks=$lt_need_locks
18565 # Do we need the lib prefix for modules?
18566 need_lib_prefix=$need_lib_prefix
18568 # Do we need a version for libraries?
18569 need_version=$need_version
18571 # Whether dlopen is supported.
18572 dlopen_support=$enable_dlopen
18574 # Whether dlopen of programs is supported.
18575 dlopen_self=$enable_dlopen_self
18577 # Whether dlopen of statically linked programs is supported.
18578 dlopen_self_static=$enable_dlopen_self_static
18580 # Compiler flag to prevent dynamic linking.
18581 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18583 # Compiler flag to turn off builtin functions.
18584 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18586 # Compiler flag to allow reflexive dlopens.
18587 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18589 # Compiler flag to generate shared objects directly from archives.
18590 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18592 # Compiler flag to generate thread-safe objects.
18593 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18595 # Library versioning type.
18596 version_type=$version_type
18598 # Format of library name prefix.
18599 libname_spec=$lt_libname_spec
18601 # List of archive names. First name is the real one, the rest are links.
18602 # The last name is the one that the linker finds with -lNAME.
18603 library_names_spec=$lt_library_names_spec
18605 # The coded name of the library, if different from the real name.
18606 soname_spec=$lt_soname_spec
18608 # Commands used to build and install an old-style archive.
18610 old_archive_cmds=$lt_old_archive_cmds_GCJ
18611 old_postinstall_cmds=$lt_old_postinstall_cmds
18612 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18614 # Create an old-style archive from a shared archive.
18615 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18617 # Create a temporary old-style archive to link instead of a shared archive.
18618 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18620 # Commands used to build and install a shared archive.
18621 archive_cmds=$lt_archive_cmds_GCJ
18622 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18623 postinstall_cmds=$lt_postinstall_cmds
18624 postuninstall_cmds=$lt_postuninstall_cmds
18626 # Commands used to build a loadable module (assumed same as above if empty)
18627 module_cmds=$lt_module_cmds_GCJ
18628 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18630 # Commands to strip libraries.
18631 old_striplib=$lt_old_striplib
18632 striplib=$lt_striplib
18634 # Dependencies to place before the objects being linked to create a
18636 predep_objects=$lt_predep_objects_GCJ
18638 # Dependencies to place after the objects being linked to create a
18640 postdep_objects=$lt_postdep_objects_GCJ
18642 # Dependencies to place before the objects being linked to create a
18644 predeps=$lt_predeps_GCJ
18646 # Dependencies to place after the objects being linked to create a
18648 postdeps=$lt_postdeps_GCJ
18650 # The library search path used internally by the compiler when linking
18651 # a shared library.
18652 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18654 # Method to check whether dependent libraries are shared objects.
18655 deplibs_check_method=$lt_deplibs_check_method
18657 # Command to use when deplibs_check_method == file_magic.
18658 file_magic_cmd=$lt_file_magic_cmd
18660 # Flag that allows shared libraries with undefined symbols to be built.
18661 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18663 # Flag that forces no undefined symbols.
18664 no_undefined_flag=$lt_no_undefined_flag_GCJ
18666 # Commands used to finish a libtool library installation in a directory.
18667 finish_cmds=$lt_finish_cmds
18669 # Same as above, but a single script fragment to be evaled but not shown.
18670 finish_eval=$lt_finish_eval
18672 # Take the output of nm and produce a listing of raw symbols and C names.
18673 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18675 # Transform the output of nm in a proper C declaration
18676 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18678 # Transform the output of nm in a C name address pair
18679 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18681 # This is the shared library runtime path variable.
18682 runpath_var=$runpath_var
18684 # This is the shared library path variable.
18685 shlibpath_var=$shlibpath_var
18687 # Is shlibpath searched before the hard-coded library search path?
18688 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18690 # How to hardcode a shared library path into an executable.
18691 hardcode_action=$hardcode_action_GCJ
18693 # Whether we should hardcode library paths into libraries.
18694 hardcode_into_libs=$hardcode_into_libs
18696 # Flag to hardcode \$libdir into a binary during linking.
18697 # This must work even if \$libdir does not exist.
18698 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18700 # If ld is used when linking, flag to hardcode \$libdir into
18701 # a binary during linking. This must work even if \$libdir does
18703 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18705 # Whether we need a single -rpath flag with a separated argument.
18706 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18708 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18709 # resulting binary.
18710 hardcode_direct=$hardcode_direct_GCJ
18712 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18713 # resulting binary.
18714 hardcode_minus_L=$hardcode_minus_L_GCJ
18716 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18717 # the resulting binary.
18718 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18720 # Set to yes if building a shared library automatically hardcodes DIR into the library
18721 # and all subsequent libraries and executables linked against it.
18722 hardcode_automatic=$hardcode_automatic_GCJ
18724 # Variables whose values should be saved in libtool wrapper scripts and
18725 # restored at relink time.
18726 variables_saved_for_relink="$variables_saved_for_relink"
18728 # Whether libtool must link a program against all its dependency libraries.
18729 link_all_deplibs=$link_all_deplibs_GCJ
18731 # Compile-time system search path for libraries
18732 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18734 # Run-time system search path for libraries
18735 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18737 # Fix the shell variable \$srcfile for the compiler.
18738 fix_srcfile_path="$fix_srcfile_path_GCJ"
18740 # Set to yes if exported symbols are required.
18741 always_export_symbols=$always_export_symbols_GCJ
18743 # The commands to list exported symbols.
18744 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18746 # The commands to extract the exported symbol list from a shared archive.
18747 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18749 # Symbols that should not be listed in the preloaded symbols.
18750 exclude_expsyms=$lt_exclude_expsyms_GCJ
18752 # Symbols that must always be exported.
18753 include_expsyms=$lt_include_expsyms_GCJ
18755 # ### END LIBTOOL TAG CONFIG: $tagname
18761 # If there is no Makefile yet, we rely on a make rule to execute
18762 # `config.status --recheck' to rerun these tests and create the
18763 # libtool script then.
18764 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18765 if test -f "$ltmain_in"; then
18766 test -f Makefile
&& make "$ltmain"
18772 ac_cpp
='$CPP $CPPFLAGS'
18773 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18774 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18775 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
18787 # Source file extension for RC test sources.
18790 # Object file extension for compiled RC test sources.
18794 # Code to be used in simple compile tests
18795 lt_simple_compile_test_code
='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18797 # Code to be used in simple link tests
18798 lt_simple_link_test_code
="$lt_simple_compile_test_code"
18800 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18802 # If no C compiler was specified, use CC.
18805 # If no C compiler flags were specified, use CFLAGS.
18806 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
18808 # Allow CC to be a program name with arguments.
18812 # save warnings/boilerplate of simple test code
18813 ac_outfile
=conftest.
$ac_objext
18814 printf "$lt_simple_compile_test_code" >conftest.
$ac_ext
18815 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
18816 _lt_compiler_boilerplate
=`cat conftest.err`
18819 ac_outfile
=conftest.
$ac_objext
18820 printf "$lt_simple_link_test_code" >conftest.
$ac_ext
18821 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
18822 _lt_linker_boilerplate
=`cat conftest.err`
18826 # Allow CC to be a program name with arguments.
18831 for cc_temp
in $compiler""; do
18833 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
18834 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
18839 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18841 lt_cv_prog_compiler_c_o_RC
=yes
18843 # The else clause should only fire when bootstrapping the
18844 # libtool distribution, otherwise you forgot to ship ltmain.sh
18845 # with your package, and you will get complaints that there are
18846 # no rules to generate ltmain.sh.
18847 if test -f "$ltmain"; then
18848 # See if we are running on zsh, and set the options which allow our commands through
18849 # without removal of \ escapes.
18850 if test -n "${ZSH_VERSION+set}" ; then
18851 setopt NO_GLOB_SUBST
18853 # Now quote all the things that may contain metacharacters while being
18854 # careful not to overquote the AC_SUBSTed values. We take copies of the
18855 # variables and quote the copies for generation of the libtool script.
18856 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18858 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18859 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18860 deplibs_check_method reload_flag reload_cmds need_locks \
18861 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18862 lt_cv_sys_global_symbol_to_c_name_address \
18863 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18864 old_postinstall_cmds old_postuninstall_cmds \
18868 lt_prog_compiler_wl_RC \
18869 lt_prog_compiler_pic_RC \
18870 lt_prog_compiler_static_RC \
18871 lt_prog_compiler_no_builtin_flag_RC \
18872 export_dynamic_flag_spec_RC \
18873 thread_safe_flag_spec_RC \
18874 whole_archive_flag_spec_RC \
18875 enable_shared_with_static_runtimes_RC \
18876 old_archive_cmds_RC \
18877 old_archive_from_new_cmds_RC \
18878 predep_objects_RC \
18879 postdep_objects_RC \
18882 compiler_lib_search_path_RC \
18884 archive_expsym_cmds_RC \
18885 postinstall_cmds_RC \
18886 postuninstall_cmds_RC \
18887 old_archive_from_expsyms_cmds_RC \
18888 allow_undefined_flag_RC \
18889 no_undefined_flag_RC \
18890 export_symbols_cmds_RC \
18891 hardcode_libdir_flag_spec_RC \
18892 hardcode_libdir_flag_spec_ld_RC \
18893 hardcode_libdir_separator_RC \
18894 hardcode_automatic_RC \
18896 module_expsym_cmds_RC \
18897 lt_cv_prog_compiler_c_o_RC \
18898 exclude_expsyms_RC \
18899 include_expsyms_RC
; do
18902 old_archive_cmds_RC | \
18903 old_archive_from_new_cmds_RC | \
18904 archive_cmds_RC | \
18905 archive_expsym_cmds_RC | \
18907 module_expsym_cmds_RC | \
18908 old_archive_from_expsyms_cmds_RC | \
18909 export_symbols_cmds_RC | \
18910 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18911 postinstall_cmds | postuninstall_cmds | \
18912 old_postinstall_cmds | old_postuninstall_cmds | \
18913 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
18914 # Double-quote double-evaled strings.
18915 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18918 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18924 *'\$0 --fallback-echo"')
18925 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18931 cat <<__EOF__ >> "$cfgfile"
18932 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18934 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18936 # Shell to use when invoking shell scripts.
18939 # Whether or not to build shared libraries.
18940 build_libtool_libs=$enable_shared
18942 # Whether or not to build static libraries.
18943 build_old_libs=$enable_static
18945 # Whether or not to add -lc for building shared libraries.
18946 build_libtool_need_lc=$archive_cmds_need_lc_RC
18948 # Whether or not to disallow shared libs when runtime libs are static
18949 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18951 # Whether or not to optimize for fast installation.
18952 fast_install=$enable_fast_install
18955 host_alias=$host_alias
18959 # The build system.
18960 build_alias=$build_alias
18964 # An echo program that does not interpret backslashes.
18969 AR_FLAGS=$lt_AR_FLAGS
18974 # LTCC compiler flags.
18975 LTCFLAGS=$lt_LTCFLAGS
18977 # A language-specific compiler.
18980 # Is the compiler the GNU C compiler?
18986 # The linker used to build libraries.
18989 # Whether we need hard or soft links.
18992 # A BSD-compatible nm program.
18995 # A symbol stripping program
18998 # Used to examine libraries when file_magic_cmd begins "file"
18999 MAGIC_CMD=$MAGIC_CMD
19001 # Used on cygwin: DLL creation program.
19004 # Used on cygwin: object dumper.
19007 # Used on cygwin: assembler.
19010 # The name of the directory that contains temporary libtool files.
19013 # How to create reloadable object files.
19014 reload_flag=$lt_reload_flag
19015 reload_cmds=$lt_reload_cmds
19017 # How to pass a linker flag through the compiler.
19018 wl=$lt_lt_prog_compiler_wl_RC
19020 # Object file suffix (normally "o").
19021 objext="$ac_objext"
19023 # Old archive suffix (normally "a").
19026 # Shared library suffix (normally ".so").
19027 shrext_cmds='$shrext_cmds'
19029 # Executable file suffix (normally "").
19032 # Additional compiler flags for building library objects.
19033 pic_flag=$lt_lt_prog_compiler_pic_RC
19036 # What is the maximum length of a command?
19037 max_cmd_len=$lt_cv_sys_max_cmd_len
19039 # Does compiler simultaneously support -c and -o options?
19040 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19042 # Must we lock files when doing compilation?
19043 need_locks=$lt_need_locks
19045 # Do we need the lib prefix for modules?
19046 need_lib_prefix=$need_lib_prefix
19048 # Do we need a version for libraries?
19049 need_version=$need_version
19051 # Whether dlopen is supported.
19052 dlopen_support=$enable_dlopen
19054 # Whether dlopen of programs is supported.
19055 dlopen_self=$enable_dlopen_self
19057 # Whether dlopen of statically linked programs is supported.
19058 dlopen_self_static=$enable_dlopen_self_static
19060 # Compiler flag to prevent dynamic linking.
19061 link_static_flag=$lt_lt_prog_compiler_static_RC
19063 # Compiler flag to turn off builtin functions.
19064 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19066 # Compiler flag to allow reflexive dlopens.
19067 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19069 # Compiler flag to generate shared objects directly from archives.
19070 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19072 # Compiler flag to generate thread-safe objects.
19073 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19075 # Library versioning type.
19076 version_type=$version_type
19078 # Format of library name prefix.
19079 libname_spec=$lt_libname_spec
19081 # List of archive names. First name is the real one, the rest are links.
19082 # The last name is the one that the linker finds with -lNAME.
19083 library_names_spec=$lt_library_names_spec
19085 # The coded name of the library, if different from the real name.
19086 soname_spec=$lt_soname_spec
19088 # Commands used to build and install an old-style archive.
19090 old_archive_cmds=$lt_old_archive_cmds_RC
19091 old_postinstall_cmds=$lt_old_postinstall_cmds
19092 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19094 # Create an old-style archive from a shared archive.
19095 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19097 # Create a temporary old-style archive to link instead of a shared archive.
19098 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19100 # Commands used to build and install a shared archive.
19101 archive_cmds=$lt_archive_cmds_RC
19102 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19103 postinstall_cmds=$lt_postinstall_cmds
19104 postuninstall_cmds=$lt_postuninstall_cmds
19106 # Commands used to build a loadable module (assumed same as above if empty)
19107 module_cmds=$lt_module_cmds_RC
19108 module_expsym_cmds=$lt_module_expsym_cmds_RC
19110 # Commands to strip libraries.
19111 old_striplib=$lt_old_striplib
19112 striplib=$lt_striplib
19114 # Dependencies to place before the objects being linked to create a
19116 predep_objects=$lt_predep_objects_RC
19118 # Dependencies to place after the objects being linked to create a
19120 postdep_objects=$lt_postdep_objects_RC
19122 # Dependencies to place before the objects being linked to create a
19124 predeps=$lt_predeps_RC
19126 # Dependencies to place after the objects being linked to create a
19128 postdeps=$lt_postdeps_RC
19130 # The library search path used internally by the compiler when linking
19131 # a shared library.
19132 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19134 # Method to check whether dependent libraries are shared objects.
19135 deplibs_check_method=$lt_deplibs_check_method
19137 # Command to use when deplibs_check_method == file_magic.
19138 file_magic_cmd=$lt_file_magic_cmd
19140 # Flag that allows shared libraries with undefined symbols to be built.
19141 allow_undefined_flag=$lt_allow_undefined_flag_RC
19143 # Flag that forces no undefined symbols.
19144 no_undefined_flag=$lt_no_undefined_flag_RC
19146 # Commands used to finish a libtool library installation in a directory.
19147 finish_cmds=$lt_finish_cmds
19149 # Same as above, but a single script fragment to be evaled but not shown.
19150 finish_eval=$lt_finish_eval
19152 # Take the output of nm and produce a listing of raw symbols and C names.
19153 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19155 # Transform the output of nm in a proper C declaration
19156 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19158 # Transform the output of nm in a C name address pair
19159 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19161 # This is the shared library runtime path variable.
19162 runpath_var=$runpath_var
19164 # This is the shared library path variable.
19165 shlibpath_var=$shlibpath_var
19167 # Is shlibpath searched before the hard-coded library search path?
19168 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19170 # How to hardcode a shared library path into an executable.
19171 hardcode_action=$hardcode_action_RC
19173 # Whether we should hardcode library paths into libraries.
19174 hardcode_into_libs=$hardcode_into_libs
19176 # Flag to hardcode \$libdir into a binary during linking.
19177 # This must work even if \$libdir does not exist.
19178 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19180 # If ld is used when linking, flag to hardcode \$libdir into
19181 # a binary during linking. This must work even if \$libdir does
19183 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19185 # Whether we need a single -rpath flag with a separated argument.
19186 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19188 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19189 # resulting binary.
19190 hardcode_direct=$hardcode_direct_RC
19192 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19193 # resulting binary.
19194 hardcode_minus_L=$hardcode_minus_L_RC
19196 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19197 # the resulting binary.
19198 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19200 # Set to yes if building a shared library automatically hardcodes DIR into the library
19201 # and all subsequent libraries and executables linked against it.
19202 hardcode_automatic=$hardcode_automatic_RC
19204 # Variables whose values should be saved in libtool wrapper scripts and
19205 # restored at relink time.
19206 variables_saved_for_relink="$variables_saved_for_relink"
19208 # Whether libtool must link a program against all its dependency libraries.
19209 link_all_deplibs=$link_all_deplibs_RC
19211 # Compile-time system search path for libraries
19212 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19214 # Run-time system search path for libraries
19215 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19217 # Fix the shell variable \$srcfile for the compiler.
19218 fix_srcfile_path="$fix_srcfile_path_RC"
19220 # Set to yes if exported symbols are required.
19221 always_export_symbols=$always_export_symbols_RC
19223 # The commands to list exported symbols.
19224 export_symbols_cmds=$lt_export_symbols_cmds_RC
19226 # The commands to extract the exported symbol list from a shared archive.
19227 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19229 # Symbols that should not be listed in the preloaded symbols.
19230 exclude_expsyms=$lt_exclude_expsyms_RC
19232 # Symbols that must always be exported.
19233 include_expsyms=$lt_include_expsyms_RC
19235 # ### END LIBTOOL TAG CONFIG: $tagname
19241 # If there is no Makefile yet, we rely on a make rule to execute
19242 # `config.status --recheck' to rerun these tests and create the
19243 # libtool script then.
19244 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19245 if test -f "$ltmain_in"; then
19246 test -f Makefile
&& make "$ltmain"
19252 ac_cpp
='$CPP $CPPFLAGS'
19253 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19254 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19255 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
19262 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19263 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19264 { (exit 1); exit 1; }; }
19268 # Append the new tag name to the list of available tags.
19269 if test -n "$tagname" ; then
19270 available_tags
="$available_tags $tagname"
19276 # Now substitute the updated list of available tags.
19277 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19278 mv "${ofile}T" "$ofile"
19282 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19283 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19284 { (exit 1); exit 1; }; }
19290 # This can be used to rebuild libtool when needed
19291 LIBTOOL_DEPS
="$ac_aux_dir/ltmain.sh"
19293 # Always use our own libtool.
19294 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
19296 # Prevent multiple expansion
19318 ALL_LINGUAS
="be cs da es fr hr hu nl ro ru sv uk"
19320 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
19321 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
19322 # Check whether --enable-nls was given.
19323 if test "${enable_nls+set}" = set; then
19324 enableval
=$enable_nls; USE_NLS
=$enableval
19329 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
19330 echo "${ECHO_T}$USE_NLS" >&6; }
19337 # Prepare PATH_SEPARATOR.
19338 # The user is always right.
19339 if test "${PATH_SEPARATOR+set}" != set; then
19340 echo "#! /bin/sh" >conf$$.sh
19341 echo "exit 0" >>conf$$.sh
19343 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
19351 # Find out how to test for executable files. Don't use a zero-byte file,
19352 # as systems may use methods other than mode bits to determine executability.
19353 cat >conf$$.
file <<_ASEOF
19357 chmod +x conf$$.
file
19358 if test -x conf$$.
file >/dev
/null
2>&1; then
19359 ac_executable_p
="test -x"
19361 ac_executable_p
="test -f"
19365 # Extract the first word of "msgfmt", so it can be a program name with args.
19366 set dummy msgfmt
; ac_word
=$2
19367 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19368 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19369 if test "${ac_cv_path_MSGFMT+set}" = set; then
19370 echo $ECHO_N "(cached) $ECHO_C" >&6
19374 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
19377 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
19378 for ac_dir
in $PATH; do
19380 test -z "$ac_dir" && ac_dir
=.
19381 for ac_exec_ext
in '' $ac_executable_extensions; do
19382 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
19383 echo "$as_me: trying $ac_dir/$ac_word..." >&5
19384 if $ac_dir/$ac_word --statistics /dev
/null
>&5 2>&1 &&
19385 (if $ac_dir/$ac_word --statistics /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
19386 ac_cv_path_MSGFMT
="$ac_dir/$ac_word$ac_exec_ext"
19393 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
=":"
19397 MSGFMT
="$ac_cv_path_MSGFMT"
19398 if test "$MSGFMT" != ":"; then
19399 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
19400 echo "${ECHO_T}$MSGFMT" >&6; }
19402 { echo "$as_me:$LINENO: result: no" >&5
19403 echo "${ECHO_T}no" >&6; }
19406 # Extract the first word of "gmsgfmt", so it can be a program name with args.
19407 set dummy gmsgfmt
; ac_word
=$2
19408 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19409 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19410 if test "${ac_cv_path_GMSGFMT+set}" = set; then
19411 echo $ECHO_N "(cached) $ECHO_C" >&6
19415 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
19418 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19419 for as_dir
in $PATH
19422 test -z "$as_dir" && as_dir
=.
19423 for ac_exec_ext
in '' $ac_executable_extensions; do
19424 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19425 ac_cv_path_GMSGFMT
="$as_dir/$ac_word$ac_exec_ext"
19426 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19433 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
19437 GMSGFMT
=$ac_cv_path_GMSGFMT
19438 if test -n "$GMSGFMT"; then
19439 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
19440 echo "${ECHO_T}$GMSGFMT" >&6; }
19442 { echo "$as_me:$LINENO: result: no" >&5
19443 echo "${ECHO_T}no" >&6; }
19448 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
19449 '' |
0.
[0-9] |
0.
[0-9].
* |
0.1[0-4] |
0.1[0-4].
*) MSGFMT_015
=: ;;
19450 *) MSGFMT_015
=$MSGFMT ;;
19453 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
19454 '' |
0.
[0-9] |
0.
[0-9].
* |
0.1[0-4] |
0.1[0-4].
*) GMSGFMT_015
=: ;;
19455 *) GMSGFMT_015
=$GMSGFMT ;;
19460 # Prepare PATH_SEPARATOR.
19461 # The user is always right.
19462 if test "${PATH_SEPARATOR+set}" != set; then
19463 echo "#! /bin/sh" >conf$$.sh
19464 echo "exit 0" >>conf$$.sh
19466 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
19474 # Find out how to test for executable files. Don't use a zero-byte file,
19475 # as systems may use methods other than mode bits to determine executability.
19476 cat >conf$$.
file <<_ASEOF
19480 chmod +x conf$$.
file
19481 if test -x conf$$.
file >/dev
/null
2>&1; then
19482 ac_executable_p
="test -x"
19484 ac_executable_p
="test -f"
19488 # Extract the first word of "xgettext", so it can be a program name with args.
19489 set dummy xgettext
; ac_word
=$2
19490 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19491 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19492 if test "${ac_cv_path_XGETTEXT+set}" = set; then
19493 echo $ECHO_N "(cached) $ECHO_C" >&6
19495 case "$XGETTEXT" in
19497 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
19500 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
19501 for ac_dir
in $PATH; do
19503 test -z "$ac_dir" && ac_dir
=.
19504 for ac_exec_ext
in '' $ac_executable_extensions; do
19505 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
19506 echo "$as_me: trying $ac_dir/$ac_word..." >&5
19507 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev
/null
>&5 2>&1 &&
19508 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
19509 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word$ac_exec_ext"
19516 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
19520 XGETTEXT
="$ac_cv_path_XGETTEXT"
19521 if test "$XGETTEXT" != ":"; then
19522 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
19523 echo "${ECHO_T}$XGETTEXT" >&6; }
19525 { echo "$as_me:$LINENO: result: no" >&5
19526 echo "${ECHO_T}no" >&6; }
19531 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
19532 '' |
0.
[0-9] |
0.
[0-9].
* |
0.1[0-4] |
0.1[0-4].
*) XGETTEXT_015
=: ;;
19533 *) XGETTEXT_015
=$XGETTEXT ;;
19538 # Prepare PATH_SEPARATOR.
19539 # The user is always right.
19540 if test "${PATH_SEPARATOR+set}" != set; then
19541 echo "#! /bin/sh" >conf$$.sh
19542 echo "exit 0" >>conf$$.sh
19544 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
19552 # Find out how to test for executable files. Don't use a zero-byte file,
19553 # as systems may use methods other than mode bits to determine executability.
19554 cat >conf$$.
file <<_ASEOF
19558 chmod +x conf$$.
file
19559 if test -x conf$$.
file >/dev
/null
2>&1; then
19560 ac_executable_p
="test -x"
19562 ac_executable_p
="test -f"
19566 # Extract the first word of "msgmerge", so it can be a program name with args.
19567 set dummy msgmerge
; ac_word
=$2
19568 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19569 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19570 if test "${ac_cv_path_MSGMERGE+set}" = set; then
19571 echo $ECHO_N "(cached) $ECHO_C" >&6
19573 case "$MSGMERGE" in
19575 ac_cv_path_MSGMERGE
="$MSGMERGE" # Let the user override the test with a path.
19578 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
19579 for ac_dir
in $PATH; do
19581 test -z "$ac_dir" && ac_dir
=.
19582 for ac_exec_ext
in '' $ac_executable_extensions; do
19583 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
19584 echo "$as_me: trying $ac_dir/$ac_word..." >&5
19585 if $ac_dir/$ac_word --update -q /dev
/null
/dev
/null
>&5 2>&1; then
19586 ac_cv_path_MSGMERGE
="$ac_dir/$ac_word$ac_exec_ext"
19593 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE
=":"
19597 MSGMERGE
="$ac_cv_path_MSGMERGE"
19598 if test "$MSGMERGE" != ":"; then
19599 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
19600 echo "${ECHO_T}$MSGMERGE" >&6; }
19602 { echo "$as_me:$LINENO: result: no" >&5
19603 echo "${ECHO_T}no" >&6; }
19607 test -n "$localedir" || localedir
='${datadir}/locale'
19610 ac_config_commands
="$ac_config_commands po-directories"
19614 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
19615 echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6; }
19616 if test "${ac_cv_gnu_library_2+set}" = set; then
19617 echo $ECHO_N "(cached) $ECHO_C" >&6
19619 cat >conftest.
$ac_ext <<_ACEOF
19622 cat confdefs.h
>>conftest.
$ac_ext
19623 cat >>conftest.
$ac_ext <<_ACEOF
19624 /* end confdefs.h. */
19626 #include <features.h>
19627 #ifdef __GNU_LIBRARY__
19628 #if (__GLIBC__ >= 2)
19634 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19635 $EGREP "Lucky GNU user" >/dev
/null
2>&1; then
19636 ac_cv_gnu_library_2
=yes
19638 ac_cv_gnu_library_2
=no
19645 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
19646 echo "${ECHO_T}$ac_cv_gnu_library_2" >&6; }
19648 GLIBC2
="$ac_cv_gnu_library_2"
19651 if test -n "$ac_tool_prefix"; then
19652 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
19653 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
19654 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19655 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19656 if test "${ac_cv_prog_RANLIB+set}" = set; then
19657 echo $ECHO_N "(cached) $ECHO_C" >&6
19659 if test -n "$RANLIB"; then
19660 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
19662 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19663 for as_dir
in $PATH
19666 test -z "$as_dir" && as_dir
=.
19667 for ac_exec_ext
in '' $ac_executable_extensions; do
19668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19669 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
19670 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19679 RANLIB
=$ac_cv_prog_RANLIB
19680 if test -n "$RANLIB"; then
19681 { echo "$as_me:$LINENO: result: $RANLIB" >&5
19682 echo "${ECHO_T}$RANLIB" >&6; }
19684 { echo "$as_me:$LINENO: result: no" >&5
19685 echo "${ECHO_T}no" >&6; }
19690 if test -z "$ac_cv_prog_RANLIB"; then
19691 ac_ct_RANLIB
=$RANLIB
19692 # Extract the first word of "ranlib", so it can be a program name with args.
19693 set dummy ranlib
; ac_word
=$2
19694 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19695 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19696 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
19697 echo $ECHO_N "(cached) $ECHO_C" >&6
19699 if test -n "$ac_ct_RANLIB"; then
19700 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
19702 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19703 for as_dir
in $PATH
19706 test -z "$as_dir" && as_dir
=.
19707 for ac_exec_ext
in '' $ac_executable_extensions; do
19708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19709 ac_cv_prog_ac_ct_RANLIB
="ranlib"
19710 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19719 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
19720 if test -n "$ac_ct_RANLIB"; then
19721 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
19722 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
19724 { echo "$as_me:$LINENO: result: no" >&5
19725 echo "${ECHO_T}no" >&6; }
19728 if test "x$ac_ct_RANLIB" = x
; then
19731 case $cross_compiling:$ac_tool_warned in
19733 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19734 whose name does not start with the host triplet. If you think this
19735 configuration is useful to you, please write to autoconf@gnu.org." >&5
19736 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19737 whose name does not start with the host triplet. If you think this
19738 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19739 ac_tool_warned
=yes ;;
19741 RANLIB
=$ac_ct_RANLIB
19744 RANLIB
="$ac_cv_prog_RANLIB"
19751 if test -n "$GCC"; then
19752 { echo "$as_me:$LINENO: checking for simple visibility declarations" >&5
19753 echo $ECHO_N "checking for simple visibility declarations... $ECHO_C" >&6; }
19754 if test "${gl_cv_cc_visibility+set}" = set; then
19755 echo $ECHO_N "(cached) $ECHO_C" >&6
19758 gl_save_CFLAGS
="$CFLAGS"
19759 CFLAGS
="$CFLAGS -fvisibility=hidden"
19760 cat >conftest.
$ac_ext <<_ACEOF
19763 cat confdefs.h
>>conftest.
$ac_ext
19764 cat >>conftest.
$ac_ext <<_ACEOF
19765 /* end confdefs.h. */
19766 extern __attribute__((__visibility__("hidden"))) int hiddenvar;
19767 extern __attribute__((__visibility__("default"))) int exportedvar;
19768 extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
19769 extern __attribute__((__visibility__("default"))) int exportedfunc (void);
19778 rm -f conftest.
$ac_objext
19779 if { (ac_try
="$ac_compile"
19780 case "(($ac_try" in
19781 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19782 *) ac_try_echo=$ac_try;;
19784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19785 (eval "$ac_compile") 2>conftest.er1
19787 grep -v '^ *+' conftest.er1 >conftest.err
19789 cat conftest.err >&5
19790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19791 (exit $ac_status); } && {
19792 test -z "$ac_c_werror_flag" ||
19793 test ! -s conftest.err
19794 } && test -s conftest.$ac_objext; then
19795 gl_cv_cc_visibility=yes
19797 echo "$as_me: failed program was:" >&5
19798 sed 's/^/| /' conftest.$ac_ext >&5
19800 gl_cv_cc_visibility=no
19803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19804 CFLAGS="$gl_save_CFLAGS"
19807 { echo "$as_me:$LINENO: result: $gl_cv_cc_visibility" >&5
19808 echo "${ECHO_T}$gl_cv_cc_visibility" >&6; }
19809 if test $gl_cv_cc_visibility = yes; then
19810 CFLAG_VISIBILITY="-fvisibility=hidden"
19817 cat >>confdefs.h <<_ACEOF
19818 #define HAVE_VISIBILITY $HAVE_VISIBILITY
19822 { echo "$as_me:$LINENO: checking for inline" >&5
19823 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
19824 if test "${ac_cv_c_inline+set}" = set; then
19825 echo $ECHO_N "(cached) $ECHO_C" >&6
19828 for ac_kw in inline __inline__ __inline; do
19829 cat >conftest.$ac_ext <<_ACEOF
19832 cat confdefs.h >>conftest.$ac_ext
19833 cat >>conftest.$ac_ext <<_ACEOF
19834 /* end confdefs.h. */
19835 #ifndef __cplusplus
19837 static $ac_kw foo_t static_foo () {return 0; }
19838 $ac_kw foo_t foo () {return 0; }
19842 rm -f conftest.$ac_objext
19843 if { (ac_try="$ac_compile"
19844 case "(($ac_try" in
19845 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19846 *) ac_try_echo
=$ac_try;;
19848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19849 (eval "$ac_compile") 2>conftest.er1
19851 grep -v '^ *+' conftest.er1
>conftest.err
19853 cat conftest.err
>&5
19854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19855 (exit $ac_status); } && {
19856 test -z "$ac_c_werror_flag" ||
19857 test ! -s conftest.err
19858 } && test -s conftest.
$ac_objext; then
19859 ac_cv_c_inline
=$ac_kw
19861 echo "$as_me: failed program was:" >&5
19862 sed 's/^/| /' conftest.
$ac_ext >&5
19867 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19868 test "$ac_cv_c_inline" != no
&& break
19872 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
19873 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
19876 case $ac_cv_c_inline in
19879 case $ac_cv_c_inline in
19881 *) ac_val
=$ac_cv_c_inline;;
19883 cat >>confdefs.h
<<_ACEOF
19884 #ifndef __cplusplus
19885 #define inline $ac_val
19891 { echo "$as_me:$LINENO: checking for size_t" >&5
19892 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
19893 if test "${ac_cv_type_size_t+set}" = set; then
19894 echo $ECHO_N "(cached) $ECHO_C" >&6
19896 cat >conftest.
$ac_ext <<_ACEOF
19899 cat confdefs.h
>>conftest.
$ac_ext
19900 cat >>conftest.
$ac_ext <<_ACEOF
19901 /* end confdefs.h. */
19902 $ac_includes_default
19903 typedef size_t ac__type_new_;
19907 if ((ac__type_new_ *) 0)
19909 if (sizeof (ac__type_new_))
19915 rm -f conftest.
$ac_objext
19916 if { (ac_try
="$ac_compile"
19917 case "(($ac_try" in
19918 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19919 *) ac_try_echo=$ac_try;;
19921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19922 (eval "$ac_compile") 2>conftest.er1
19924 grep -v '^ *+' conftest.er1 >conftest.err
19926 cat conftest.err >&5
19927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19928 (exit $ac_status); } && {
19929 test -z "$ac_c_werror_flag" ||
19930 test ! -s conftest.err
19931 } && test -s conftest.$ac_objext; then
19932 ac_cv_type_size_t=yes
19934 echo "$as_me: failed program was:" >&5
19935 sed 's/^/| /' conftest.$ac_ext >&5
19937 ac_cv_type_size_t=no
19940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19942 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
19943 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
19944 if test $ac_cv_type_size_t = yes; then
19948 cat >>confdefs.h <<_ACEOF
19949 #define size_t unsigned int
19955 { echo "$as_me:$LINENO: checking for stdint.h" >&5
19956 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
19957 if test "${gl_cv_header_stdint_h+set}" = set; then
19958 echo $ECHO_N "(cached) $ECHO_C" >&6
19960 cat >conftest.$ac_ext <<_ACEOF
19963 cat confdefs.h >>conftest.$ac_ext
19964 cat >>conftest.$ac_ext <<_ACEOF
19965 /* end confdefs.h. */
19966 #include <sys/types.h>
19967 #include <stdint.h>
19971 uintmax_t i = (uintmax_t) -1; return !i;
19976 rm -f conftest.$ac_objext
19977 if { (ac_try="$ac_compile"
19978 case "(($ac_try" in
19979 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19980 *) ac_try_echo
=$ac_try;;
19982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19983 (eval "$ac_compile") 2>conftest.er1
19985 grep -v '^ *+' conftest.er1
>conftest.err
19987 cat conftest.err
>&5
19988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19989 (exit $ac_status); } && {
19990 test -z "$ac_c_werror_flag" ||
19991 test ! -s conftest.err
19992 } && test -s conftest.
$ac_objext; then
19993 gl_cv_header_stdint_h
=yes
19995 echo "$as_me: failed program was:" >&5
19996 sed 's/^/| /' conftest.
$ac_ext >&5
19998 gl_cv_header_stdint_h
=no
20001 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20003 { echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
20004 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; }
20005 if test $gl_cv_header_stdint_h = yes; then
20007 cat >>confdefs.h
<<_ACEOF
20008 #define HAVE_STDINT_H_WITH_UINTMAX 1
20013 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
20014 # for constant arguments. Useless!
20015 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
20016 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
20017 if test "${ac_cv_working_alloca_h+set}" = set; then
20018 echo $ECHO_N "(cached) $ECHO_C" >&6
20020 cat >conftest.
$ac_ext <<_ACEOF
20023 cat confdefs.h
>>conftest.
$ac_ext
20024 cat >>conftest.
$ac_ext <<_ACEOF
20025 /* end confdefs.h. */
20026 #include <alloca.h>
20030 char *p = (char *) alloca (2 * sizeof (int));
20036 rm -f conftest.
$ac_objext conftest
$ac_exeext
20037 if { (ac_try
="$ac_link"
20038 case "(($ac_try" in
20039 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20040 *) ac_try_echo=$ac_try;;
20042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20043 (eval "$ac_link") 2>conftest.er1
20045 grep -v '^ *+' conftest.er1 >conftest.err
20047 cat conftest.err >&5
20048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20049 (exit $ac_status); } && {
20050 test -z "$ac_c_werror_flag" ||
20051 test ! -s conftest.err
20052 } && test -s conftest$ac_exeext &&
20053 $as_test_x conftest$ac_exeext; then
20054 ac_cv_working_alloca_h=yes
20056 echo "$as_me: failed program was:" >&5
20057 sed 's/^/| /' conftest.$ac_ext >&5
20059 ac_cv_working_alloca_h=no
20062 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20063 conftest$ac_exeext conftest.$ac_ext
20065 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
20066 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
20067 if test $ac_cv_working_alloca_h = yes; then
20069 cat >>confdefs.h <<\_ACEOF
20070 #define HAVE_ALLOCA_H 1
20075 { echo "$as_me:$LINENO: checking for alloca" >&5
20076 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
20077 if test "${ac_cv_func_alloca_works+set}" = set; then
20078 echo $ECHO_N "(cached) $ECHO_C" >&6
20080 cat >conftest.$ac_ext <<_ACEOF
20083 cat confdefs.h >>conftest.$ac_ext
20084 cat >>conftest.$ac_ext <<_ACEOF
20085 /* end confdefs.h. */
20087 # define alloca __builtin_alloca
20090 # include <malloc.h>
20091 # define alloca _alloca
20093 # ifdef HAVE_ALLOCA_H
20094 # include <alloca.h>
20099 # ifndef alloca /* predefined by HP cc +Olibcalls */
20110 char *p = (char *) alloca (1);
20116 rm -f conftest.$ac_objext conftest$ac_exeext
20117 if { (ac_try="$ac_link"
20118 case "(($ac_try" in
20119 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20120 *) ac_try_echo
=$ac_try;;
20122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20123 (eval "$ac_link") 2>conftest.er1
20125 grep -v '^ *+' conftest.er1
>conftest.err
20127 cat conftest.err
>&5
20128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20129 (exit $ac_status); } && {
20130 test -z "$ac_c_werror_flag" ||
20131 test ! -s conftest.err
20132 } && test -s conftest
$ac_exeext &&
20133 $as_test_x conftest
$ac_exeext; then
20134 ac_cv_func_alloca_works
=yes
20136 echo "$as_me: failed program was:" >&5
20137 sed 's/^/| /' conftest.
$ac_ext >&5
20139 ac_cv_func_alloca_works
=no
20142 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
20143 conftest
$ac_exeext conftest.
$ac_ext
20145 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
20146 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
20148 if test $ac_cv_func_alloca_works = yes; then
20150 cat >>confdefs.h
<<\_ACEOF
20151 #define HAVE_ALLOCA 1
20155 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
20156 # that cause trouble. Some versions do not even contain alloca or
20157 # contain a buggy version. If you still want to use their alloca,
20158 # use ar to extract alloca.o from them instead of compiling alloca.c.
20160 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
20162 cat >>confdefs.h
<<\_ACEOF
20167 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
20168 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
20169 if test "${ac_cv_os_cray+set}" = set; then
20170 echo $ECHO_N "(cached) $ECHO_C" >&6
20172 cat >conftest.
$ac_ext <<_ACEOF
20175 cat confdefs.h
>>conftest.
$ac_ext
20176 cat >>conftest.
$ac_ext <<_ACEOF
20177 /* end confdefs.h. */
20178 #if defined CRAY && ! defined CRAY2
20185 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20186 $EGREP "webecray" >/dev
/null
2>&1; then
20194 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
20195 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
20196 if test $ac_cv_os_cray = yes; then
20197 for ac_func
in _getb67 GETB67 getb67
; do
20198 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20199 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20200 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20201 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20202 echo $ECHO_N "(cached) $ECHO_C" >&6
20204 cat >conftest.
$ac_ext <<_ACEOF
20207 cat confdefs.h
>>conftest.
$ac_ext
20208 cat >>conftest.
$ac_ext <<_ACEOF
20209 /* end confdefs.h. */
20210 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20211 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20212 #define $ac_func innocuous_$ac_func
20214 /* System header to define __stub macros and hopefully few prototypes,
20215 which can conflict with char $ac_func (); below.
20216 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20217 <limits.h> exists even on freestanding compilers. */
20220 # include <limits.h>
20222 # include <assert.h>
20227 /* Override any GCC internal prototype to avoid an error.
20228 Use char because int might match the return type of a GCC
20229 builtin and then its argument prototype would still apply. */
20234 /* The GNU C library defines this for functions which it implements
20235 to always fail with ENOSYS. Some functions are actually named
20236 something starting with __ and the normal name is an alias. */
20237 #if defined __stub_$ac_func || defined __stub___$ac_func
20244 return $ac_func ();
20249 rm -f conftest.
$ac_objext conftest
$ac_exeext
20250 if { (ac_try
="$ac_link"
20251 case "(($ac_try" in
20252 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20253 *) ac_try_echo=$ac_try;;
20255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20256 (eval "$ac_link") 2>conftest.er1
20258 grep -v '^ *+' conftest.er1 >conftest.err
20260 cat conftest.err >&5
20261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20262 (exit $ac_status); } && {
20263 test -z "$ac_c_werror_flag" ||
20264 test ! -s conftest.err
20265 } && test -s conftest$ac_exeext &&
20266 $as_test_x conftest$ac_exeext; then
20267 eval "$as_ac_var=yes"
20269 echo "$as_me: failed program was:" >&5
20270 sed 's/^/| /' conftest.$ac_ext >&5
20272 eval "$as_ac_var=no"
20275 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20276 conftest$ac_exeext conftest.$ac_ext
20278 ac_res=`eval echo '${'$as_ac_var'}'`
20279 { echo "$as_me:$LINENO: result: $ac_res" >&5
20280 echo "${ECHO_T}$ac_res" >&6; }
20281 if test `eval echo '${'$as_ac_var'}'` = yes; then
20283 cat >>confdefs.h <<_ACEOF
20284 #define CRAY_STACKSEG_END $ac_func
20293 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
20294 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
20295 if test "${ac_cv_c_stack_direction+set}" = set; then
20296 echo $ECHO_N "(cached) $ECHO_C" >&6
20298 if test "$cross_compiling" = yes; then
20299 ac_cv_c_stack_direction=0
20301 cat >conftest.$ac_ext <<_ACEOF
20304 cat confdefs.h >>conftest.$ac_ext
20305 cat >>conftest.$ac_ext <<_ACEOF
20306 /* end confdefs.h. */
20307 $ac_includes_default
20309 find_stack_direction ()
20311 static char *addr = 0;
20316 return find_stack_direction ();
20319 return (&dummy > addr) ? 1 : -1;
20325 return find_stack_direction () < 0;
20328 rm -f conftest$ac_exeext
20329 if { (ac_try="$ac_link"
20330 case "(($ac_try" in
20331 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20332 *) ac_try_echo
=$ac_try;;
20334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20335 (eval "$ac_link") 2>&5
20337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20338 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20339 { (case "(($ac_try" in
20340 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20341 *) ac_try_echo=$ac_try;;
20343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20344 (eval "$ac_try") 2>&5
20346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20347 (exit $ac_status); }; }; then
20348 ac_cv_c_stack_direction=1
20350 echo "$as_me: program exited with status $ac_status" >&5
20351 echo "$as_me: failed program was:" >&5
20352 sed 's/^/| /' conftest.$ac_ext >&5
20354 ( exit $ac_status )
20355 ac_cv_c_stack_direction=-1
20357 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20362 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
20363 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
20365 cat >>confdefs.h <<_ACEOF
20366 #define STACK_DIRECTION $ac_cv_c_stack_direction
20374 for ac_header in stdlib.h unistd.h
20376 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
20377 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20378 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20379 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20380 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20381 echo $ECHO_N "(cached) $ECHO_C" >&6
20383 ac_res=`eval echo '${'$as_ac_Header'}'`
20384 { echo "$as_me:$LINENO: result: $ac_res" >&5
20385 echo "${ECHO_T}$ac_res" >&6; }
20387 # Is the header compilable?
20388 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20389 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20390 cat >conftest.$ac_ext <<_ACEOF
20393 cat confdefs.h >>conftest.$ac_ext
20394 cat >>conftest.$ac_ext <<_ACEOF
20395 /* end confdefs.h. */
20396 $ac_includes_default
20397 #include <$ac_header>
20399 rm -f conftest.$ac_objext
20400 if { (ac_try="$ac_compile"
20401 case "(($ac_try" in
20402 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20403 *) ac_try_echo
=$ac_try;;
20405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20406 (eval "$ac_compile") 2>conftest.er1
20408 grep -v '^ *+' conftest.er1
>conftest.err
20410 cat conftest.err
>&5
20411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20412 (exit $ac_status); } && {
20413 test -z "$ac_c_werror_flag" ||
20414 test ! -s conftest.err
20415 } && test -s conftest.
$ac_objext; then
20416 ac_header_compiler
=yes
20418 echo "$as_me: failed program was:" >&5
20419 sed 's/^/| /' conftest.
$ac_ext >&5
20421 ac_header_compiler
=no
20424 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20425 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20426 echo "${ECHO_T}$ac_header_compiler" >&6; }
20428 # Is the header present?
20429 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20430 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20431 cat >conftest.
$ac_ext <<_ACEOF
20434 cat confdefs.h
>>conftest.
$ac_ext
20435 cat >>conftest.
$ac_ext <<_ACEOF
20436 /* end confdefs.h. */
20437 #include <$ac_header>
20439 if { (ac_try
="$ac_cpp conftest.$ac_ext"
20440 case "(($ac_try" in
20441 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20442 *) ac_try_echo=$ac_try;;
20444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20445 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20447 grep -v '^ *+' conftest.er1 >conftest.err
20449 cat conftest.err >&5
20450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20451 (exit $ac_status); } >/dev/null && {
20452 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20453 test ! -s conftest.err
20455 ac_header_preproc=yes
20457 echo "$as_me: failed program was:" >&5
20458 sed 's/^/| /' conftest.$ac_ext >&5
20460 ac_header_preproc=no
20463 rm -f conftest.err conftest.$ac_ext
20464 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20465 echo "${ECHO_T}$ac_header_preproc" >&6; }
20467 # So? What about this header?
20468 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20470 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20471 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20472 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20473 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20474 ac_header_preproc=yes
20477 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20478 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20479 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20480 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20481 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20482 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20483 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20484 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20485 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20486 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20487 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20488 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20492 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20493 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20494 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20495 echo $ECHO_N "(cached) $ECHO_C" >&6
20497 eval "$as_ac_Header=\$ac_header_preproc"
20499 ac_res=`eval echo '${'$as_ac_Header'}'`
20500 { echo "$as_me:$LINENO: result: $ac_res" >&5
20501 echo "${ECHO_T}$ac_res" >&6; }
20504 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20505 cat >>confdefs.h <<_ACEOF
20506 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
20514 for ac_func in getpagesize
20516 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
20517 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20518 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20519 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20520 echo $ECHO_N "(cached) $ECHO_C" >&6
20522 cat >conftest.$ac_ext <<_ACEOF
20525 cat confdefs.h >>conftest.$ac_ext
20526 cat >>conftest.$ac_ext <<_ACEOF
20527 /* end confdefs.h. */
20528 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20529 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20530 #define $ac_func innocuous_$ac_func
20532 /* System header to define __stub macros and hopefully few prototypes,
20533 which can conflict with char $ac_func (); below.
20534 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20535 <limits.h> exists even on freestanding compilers. */
20538 # include <limits.h>
20540 # include <assert.h>
20545 /* Override any GCC internal prototype to avoid an error.
20546 Use char because int might match the return type of a GCC
20547 builtin and then its argument prototype would still apply. */
20552 /* The GNU C library defines this for functions which it implements
20553 to always fail with ENOSYS. Some functions are actually named
20554 something starting with __ and the normal name is an alias. */
20555 #if defined __stub_$ac_func || defined __stub___$ac_func
20562 return $ac_func ();
20567 rm -f conftest.$ac_objext conftest$ac_exeext
20568 if { (ac_try="$ac_link"
20569 case "(($ac_try" in
20570 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20571 *) ac_try_echo
=$ac_try;;
20573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20574 (eval "$ac_link") 2>conftest.er1
20576 grep -v '^ *+' conftest.er1
>conftest.err
20578 cat conftest.err
>&5
20579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20580 (exit $ac_status); } && {
20581 test -z "$ac_c_werror_flag" ||
20582 test ! -s conftest.err
20583 } && test -s conftest
$ac_exeext &&
20584 $as_test_x conftest
$ac_exeext; then
20585 eval "$as_ac_var=yes"
20587 echo "$as_me: failed program was:" >&5
20588 sed 's/^/| /' conftest.
$ac_ext >&5
20590 eval "$as_ac_var=no"
20593 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
20594 conftest
$ac_exeext conftest.
$ac_ext
20596 ac_res
=`eval echo '${'$as_ac_var'}'`
20597 { echo "$as_me:$LINENO: result: $ac_res" >&5
20598 echo "${ECHO_T}$ac_res" >&6; }
20599 if test `eval echo '${'$as_ac_var'}'` = yes; then
20600 cat >>confdefs.h
<<_ACEOF
20601 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20607 { echo "$as_me:$LINENO: checking for working mmap" >&5
20608 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20609 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20610 echo $ECHO_N "(cached) $ECHO_C" >&6
20612 if test "$cross_compiling" = yes; then
20613 ac_cv_func_mmap_fixed_mapped
=no
20615 cat >conftest.
$ac_ext <<_ACEOF
20618 cat confdefs.h
>>conftest.
$ac_ext
20619 cat >>conftest.
$ac_ext <<_ACEOF
20620 /* end confdefs.h. */
20621 $ac_includes_default
20622 /* malloc might have been renamed as rpl_malloc. */
20625 /* Thanks to Mike Haertel and Jim Avera for this test.
20626 Here is a matrix of mmap possibilities:
20627 mmap private not fixed
20628 mmap private fixed at somewhere currently unmapped
20629 mmap private fixed at somewhere already mapped
20630 mmap shared not fixed
20631 mmap shared fixed at somewhere currently unmapped
20632 mmap shared fixed at somewhere already mapped
20633 For private mappings, we should verify that changes cannot be read()
20634 back from the file, nor mmap's back from the file at a different
20635 address. (There have been systems where private was not correctly
20636 implemented like the infamous i386 svr4.0, and systems where the
20637 VM page cache was not coherent with the file system buffer cache
20638 like early versions of FreeBSD and possibly contemporary NetBSD.)
20639 For shared mappings, we should conversely verify that changes get
20640 propagated back to all the places they're supposed to be.
20642 Grep wants private fixed already mapped.
20643 The main things grep needs to know about mmap are:
20644 * does it exist and is it safe to write into the mmap'd area
20645 * how to use it (BSD variants) */
20648 #include <sys/mman.h>
20650 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
20654 /* This mess was copied from the GNU getpagesize.h. */
20655 #ifndef HAVE_GETPAGESIZE
20656 /* Assume that all systems that can run configure have sys/param.h. */
20657 # ifndef HAVE_SYS_PARAM_H
20658 # define HAVE_SYS_PARAM_H 1
20661 # ifdef _SC_PAGESIZE
20662 # define getpagesize() sysconf(_SC_PAGESIZE)
20663 # else /* no _SC_PAGESIZE */
20664 # ifdef HAVE_SYS_PARAM_H
20665 # include <sys/param.h>
20666 # ifdef EXEC_PAGESIZE
20667 # define getpagesize() EXEC_PAGESIZE
20668 # else /* no EXEC_PAGESIZE */
20670 # define getpagesize() NBPG * CLSIZE
20673 # endif /* no CLSIZE */
20674 # else /* no NBPG */
20676 # define getpagesize() NBPC
20677 # else /* no NBPC */
20679 # define getpagesize() PAGESIZE
20680 # endif /* PAGESIZE */
20681 # endif /* no NBPC */
20682 # endif /* no NBPG */
20683 # endif /* no EXEC_PAGESIZE */
20684 # else /* no HAVE_SYS_PARAM_H */
20685 # define getpagesize() 8192 /* punt totally */
20686 # endif /* no HAVE_SYS_PARAM_H */
20687 # endif /* no _SC_PAGESIZE */
20689 #endif /* no HAVE_GETPAGESIZE */
20694 char *data, *data2, *data3;
20698 pagesize = getpagesize ();
20700 /* First, make a file with some known garbage in it. */
20701 data = (char *) malloc (pagesize);
20704 for (i = 0; i < pagesize; ++i)
20705 *(data + i) = rand ();
20707 fd = creat ("conftest.mmap", 0600);
20710 if (write (fd, data, pagesize) != pagesize)
20714 /* Next, try to mmap the file at a fixed address which already has
20715 something else allocated at it. If we can, also make sure that
20716 we see the same garbage. */
20717 fd = open ("conftest.mmap", O_RDWR);
20720 data2 = (char *) malloc (2 * pagesize);
20723 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20724 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20725 MAP_PRIVATE | MAP_FIXED, fd, 0L))
20727 for (i = 0; i < pagesize; ++i)
20728 if (*(data + i) != *(data2 + i))
20731 /* Finally, make sure that changes to the mapped area do not
20732 percolate back to the file as seen by read(). (This is a bug on
20733 some variants of i386 svr4.0.) */
20734 for (i = 0; i < pagesize; ++i)
20735 *(data2 + i) = *(data2 + i) + 1;
20736 data3 = (char *) malloc (pagesize);
20739 if (read (fd, data3, pagesize) != pagesize)
20741 for (i = 0; i < pagesize; ++i)
20742 if (*(data + i) != *(data3 + i))
20748 rm -f conftest
$ac_exeext
20749 if { (ac_try
="$ac_link"
20750 case "(($ac_try" in
20751 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20752 *) ac_try_echo=$ac_try;;
20754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20755 (eval "$ac_link") 2>&5
20757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20758 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20759 { (case "(($ac_try" in
20760 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20761 *) ac_try_echo
=$ac_try;;
20763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20764 (eval "$ac_try") 2>&5
20766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20767 (exit $ac_status); }; }; then
20768 ac_cv_func_mmap_fixed_mapped
=yes
20770 echo "$as_me: program exited with status $ac_status" >&5
20771 echo "$as_me: failed program was:" >&5
20772 sed 's/^/| /' conftest.
$ac_ext >&5
20774 ( exit $ac_status )
20775 ac_cv_func_mmap_fixed_mapped
=no
20777 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20782 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20783 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20784 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20786 cat >>confdefs.h
<<\_ACEOF
20787 #define HAVE_MMAP 1
20791 rm -f conftest.mmap
20795 { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
20796 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
20797 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
20798 echo $ECHO_N "(cached) $ECHO_C" >&6
20801 if test "$cross_compiling" = yes; then
20803 # Guess based on the CPU.
20804 case "$host_cpu" in
20805 alpha
* | i3456786 | m68k | s390
*)
20806 gt_cv_int_divbyzero_sigfpe
="guessing yes";;
20808 gt_cv_int_divbyzero_sigfpe
="guessing no";;
20812 cat >conftest.
$ac_ext <<_ACEOF
20815 cat confdefs.h
>>conftest.
$ac_ext
20816 cat >>conftest.
$ac_ext <<_ACEOF
20817 /* end confdefs.h. */
20819 #include <stdlib.h>
20820 #include <signal.h>
20824 sigfpe_handler (int sig)
20826 sigfpe_handler (sig) int sig;
20829 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
20830 exit (sig != SIGFPE);
20840 signal (SIGFPE, sigfpe_handler);
20841 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
20842 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
20843 signal (SIGTRAP, sigfpe_handler);
20845 /* Linux/SPARC yields signal SIGILL. */
20846 #if defined (__sparc__) && defined (__linux__)
20847 signal (SIGILL, sigfpe_handler);
20856 rm -f conftest
$ac_exeext
20857 if { (ac_try
="$ac_link"
20858 case "(($ac_try" in
20859 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20860 *) ac_try_echo=$ac_try;;
20862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20863 (eval "$ac_link") 2>&5
20865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20866 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20867 { (case "(($ac_try" in
20868 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20869 *) ac_try_echo
=$ac_try;;
20871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20872 (eval "$ac_try") 2>&5
20874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20875 (exit $ac_status); }; }; then
20876 gt_cv_int_divbyzero_sigfpe
=yes
20878 echo "$as_me: program exited with status $ac_status" >&5
20879 echo "$as_me: failed program was:" >&5
20880 sed 's/^/| /' conftest.
$ac_ext >&5
20882 ( exit $ac_status )
20883 gt_cv_int_divbyzero_sigfpe
=no
20885 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20891 { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
20892 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
20893 case "$gt_cv_int_divbyzero_sigfpe" in
20898 cat >>confdefs.h
<<_ACEOF
20899 #define INTDIV0_RAISES_SIGFPE $value
20904 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
20905 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
20906 if test "${gl_cv_header_inttypes_h+set}" = set; then
20907 echo $ECHO_N "(cached) $ECHO_C" >&6
20909 cat >conftest.
$ac_ext <<_ACEOF
20912 cat confdefs.h
>>conftest.
$ac_ext
20913 cat >>conftest.
$ac_ext <<_ACEOF
20914 /* end confdefs.h. */
20915 #include <sys/types.h>
20916 #include <inttypes.h>
20920 uintmax_t i = (uintmax_t) -1; return !i;
20925 rm -f conftest.
$ac_objext
20926 if { (ac_try
="$ac_compile"
20927 case "(($ac_try" in
20928 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20929 *) ac_try_echo=$ac_try;;
20931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20932 (eval "$ac_compile") 2>conftest.er1
20934 grep -v '^ *+' conftest.er1 >conftest.err
20936 cat conftest.err >&5
20937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20938 (exit $ac_status); } && {
20939 test -z "$ac_c_werror_flag" ||
20940 test ! -s conftest.err
20941 } && test -s conftest.$ac_objext; then
20942 gl_cv_header_inttypes_h=yes
20944 echo "$as_me: failed program was:" >&5
20945 sed 's/^/| /' conftest.$ac_ext >&5
20947 gl_cv_header_inttypes_h=no
20950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20952 { echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
20953 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; }
20954 if test $gl_cv_header_inttypes_h = yes; then
20956 cat >>confdefs.h <<_ACEOF
20957 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
20963 { echo "$as_me:$LINENO: checking for unsigned long long int" >&5
20964 echo $ECHO_N "checking for unsigned long long int... $ECHO_C" >&6; }
20965 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then
20966 echo $ECHO_N "(cached) $ECHO_C" >&6
20968 cat >conftest.$ac_ext <<_ACEOF
20971 cat confdefs.h >>conftest.$ac_ext
20972 cat >>conftest.$ac_ext <<_ACEOF
20973 /* end confdefs.h. */
20974 unsigned long long int ull = 18446744073709551615ULL;
20975 typedef int a[(18446744073709551615ULL <= (unsigned long long int) -1
20981 unsigned long long int ullmax = 18446744073709551615ull;
20982 return (ull << 63 | ull >> 63 | ull << i | ull >> i
20983 | ullmax / ull | ullmax % ull);
20988 rm -f conftest.$ac_objext conftest$ac_exeext
20989 if { (ac_try="$ac_link"
20990 case "(($ac_try" in
20991 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20992 *) ac_try_echo
=$ac_try;;
20994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20995 (eval "$ac_link") 2>conftest.er1
20997 grep -v '^ *+' conftest.er1
>conftest.err
20999 cat conftest.err
>&5
21000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21001 (exit $ac_status); } && {
21002 test -z "$ac_c_werror_flag" ||
21003 test ! -s conftest.err
21004 } && test -s conftest
$ac_exeext &&
21005 $as_test_x conftest
$ac_exeext; then
21006 ac_cv_type_unsigned_long_long_int
=yes
21008 echo "$as_me: failed program was:" >&5
21009 sed 's/^/| /' conftest.
$ac_ext >&5
21011 ac_cv_type_unsigned_long_long_int
=no
21014 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
21015 conftest
$ac_exeext conftest.
$ac_ext
21017 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long_int" >&5
21018 echo "${ECHO_T}$ac_cv_type_unsigned_long_long_int" >&6; }
21019 if test $ac_cv_type_unsigned_long_long_int = yes; then
21021 cat >>confdefs.h
<<\_ACEOF
21022 #define HAVE_UNSIGNED_LONG_LONG_INT 1
21029 ac_cv_type_unsigned_long_long
=$ac_cv_type_unsigned_long_long_int
21030 if test $ac_cv_type_unsigned_long_long = yes; then
21032 cat >>confdefs.h
<<\_ACEOF
21033 #define HAVE_UNSIGNED_LONG_LONG 1
21041 if test $gl_cv_header_inttypes_h = no
&& test $gl_cv_header_stdint_h = no
; then
21043 test $ac_cv_type_unsigned_long_long = yes \
21044 && ac_type
='unsigned long long' \
21045 || ac_type
='unsigned long'
21047 cat >>confdefs.h
<<_ACEOF
21048 #define uintmax_t $ac_type
21053 cat >>confdefs.h
<<\_ACEOF
21054 #define HAVE_UINTMAX_T 1
21061 for ac_header
in inttypes.h
21063 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21064 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21065 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21066 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21067 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21068 echo $ECHO_N "(cached) $ECHO_C" >&6
21070 ac_res
=`eval echo '${'$as_ac_Header'}'`
21071 { echo "$as_me:$LINENO: result: $ac_res" >&5
21072 echo "${ECHO_T}$ac_res" >&6; }
21074 # Is the header compilable?
21075 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21076 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21077 cat >conftest.
$ac_ext <<_ACEOF
21080 cat confdefs.h
>>conftest.
$ac_ext
21081 cat >>conftest.
$ac_ext <<_ACEOF
21082 /* end confdefs.h. */
21083 $ac_includes_default
21084 #include <$ac_header>
21086 rm -f conftest.
$ac_objext
21087 if { (ac_try
="$ac_compile"
21088 case "(($ac_try" in
21089 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21090 *) ac_try_echo=$ac_try;;
21092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21093 (eval "$ac_compile") 2>conftest.er1
21095 grep -v '^ *+' conftest.er1 >conftest.err
21097 cat conftest.err >&5
21098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21099 (exit $ac_status); } && {
21100 test -z "$ac_c_werror_flag" ||
21101 test ! -s conftest.err
21102 } && test -s conftest.$ac_objext; then
21103 ac_header_compiler=yes
21105 echo "$as_me: failed program was:" >&5
21106 sed 's/^/| /' conftest.$ac_ext >&5
21108 ac_header_compiler=no
21111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21112 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21113 echo "${ECHO_T}$ac_header_compiler" >&6; }
21115 # Is the header present?
21116 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21117 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21118 cat >conftest.$ac_ext <<_ACEOF
21121 cat confdefs.h >>conftest.$ac_ext
21122 cat >>conftest.$ac_ext <<_ACEOF
21123 /* end confdefs.h. */
21124 #include <$ac_header>
21126 if { (ac_try="$ac_cpp conftest.$ac_ext"
21127 case "(($ac_try" in
21128 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21129 *) ac_try_echo
=$ac_try;;
21131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21132 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21134 grep -v '^ *+' conftest.er1
>conftest.err
21136 cat conftest.err
>&5
21137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21138 (exit $ac_status); } >/dev
/null
&& {
21139 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21140 test ! -s conftest.err
21142 ac_header_preproc
=yes
21144 echo "$as_me: failed program was:" >&5
21145 sed 's/^/| /' conftest.
$ac_ext >&5
21147 ac_header_preproc
=no
21150 rm -f conftest.err conftest.
$ac_ext
21151 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21152 echo "${ECHO_T}$ac_header_preproc" >&6; }
21154 # So? What about this header?
21155 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21157 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21158 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21159 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21160 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21161 ac_header_preproc
=yes
21164 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21165 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21166 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21167 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21168 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21169 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21170 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21171 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21172 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21173 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21174 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21175 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21179 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21180 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21181 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21182 echo $ECHO_N "(cached) $ECHO_C" >&6
21184 eval "$as_ac_Header=\$ac_header_preproc"
21186 ac_res
=`eval echo '${'$as_ac_Header'}'`
21187 { echo "$as_me:$LINENO: result: $ac_res" >&5
21188 echo "${ECHO_T}$ac_res" >&6; }
21191 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21192 cat >>confdefs.h
<<_ACEOF
21193 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21200 if test $ac_cv_header_inttypes_h = yes; then
21201 { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
21202 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
21203 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
21204 echo $ECHO_N "(cached) $ECHO_C" >&6
21207 cat >conftest.
$ac_ext <<_ACEOF
21210 cat confdefs.h
>>conftest.
$ac_ext
21211 cat >>conftest.
$ac_ext <<_ACEOF
21212 /* end confdefs.h. */
21213 #include <inttypes.h>
21226 rm -f conftest.
$ac_objext
21227 if { (ac_try
="$ac_compile"
21228 case "(($ac_try" in
21229 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21230 *) ac_try_echo=$ac_try;;
21232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21233 (eval "$ac_compile") 2>conftest.er1
21235 grep -v '^ *+' conftest.er1 >conftest.err
21237 cat conftest.err >&5
21238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21239 (exit $ac_status); } && {
21240 test -z "$ac_c_werror_flag" ||
21241 test ! -s conftest.err
21242 } && test -s conftest.$ac_objext; then
21243 gt_cv_inttypes_pri_broken=no
21245 echo "$as_me: failed program was:" >&5
21246 sed 's/^/| /' conftest.$ac_ext >&5
21248 gt_cv_inttypes_pri_broken=yes
21251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21254 { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
21255 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
21257 if test "$gt_cv_inttypes_pri_broken" = yes; then
21259 cat >>confdefs.h <<_ACEOF
21260 #define PRI_MACROS_BROKEN 1
21263 PRI_MACROS_BROKEN=1
21265 PRI_MACROS_BROKEN=0
21270 cat >>confdefs.h <<\_ACEOF
21271 #define _GNU_SOURCE 1
21278 # Check whether --enable-threads was given.
21279 if test "${enable_threads+set}" = set; then
21280 enableval=$enable_threads; gl_use_threads=$enableval
21283 osf*) gl_use_threads=no ;;
21284 *) gl_use_threads=yes ;;
21289 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
21290 # For using <pthread.h>:
21293 # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
21294 # groks <pthread.h>. cc also understands the flag -pthread, but
21295 # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
21296 # 2. putting a flag into CPPFLAGS that has an effect on the linker
21297 # causes the AC_TRY_LINK test below to succeed unexpectedly,
21298 # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
21299 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
21302 # Some systems optimize for single-threaded programs by default, and
21303 # need special flags to disable these optimizations. For example, the
21304 # definition of 'errno' in <errno.h>.
21306 aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
21307 solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
21315 if test "X$prefix" = "XNONE"; then
21316 acl_final_prefix="$ac_default_prefix"
21318 acl_final_prefix="$prefix"
21320 if test "X$exec_prefix" = "XNONE"; then
21321 acl_final_exec_prefix='${prefix}'
21323 acl_final_exec_prefix="$exec_prefix"
21325 acl_save_prefix="$prefix"
21326 prefix="$acl_final_prefix"
21327 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
21328 prefix="$acl_save_prefix"
21331 # Check whether --with-gnu-ld was given.
21332 if test "${with_gnu_ld+set}" = set; then
21333 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
21338 # Prepare PATH_SEPARATOR.
21339 # The user is always right.
21340 if test "${PATH_SEPARATOR+set}" != set; then
21341 echo "#! /bin/sh" >conf$$.sh
21342 echo "exit 0" >>conf$$.sh
21344 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21352 if test "$GCC" = yes; then
21353 # Check if gcc -print-prog-name=ld gives a path.
21354 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
21355 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
21358 # gcc leaves a trailing carriage return which upsets mingw
21359 ac_prog=`($CC -print-prog-name=ld
) 2>&5 |
tr -d '\015'` ;;
21361 ac_prog=`($CC -print-prog-name=ld
) 2>&5` ;;
21364 # Accept absolute paths.
21365 [\\/]* | [A-Za-z]:[\\/]*)
21366 re_direlt='/[^/][^/]*/\.\./'
21367 # Canonicalize the path of ld
21368 ac_prog=`echo $ac_prog|
sed 's%\\\\%/%g'`
21369 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
21370 ac_prog=`echo $ac_prog|
sed "s%$re_direlt%/%"`
21372 test -z "$LD" && LD="$ac_prog"
21375 # If it fails, then pretend we aren't using GCC.
21379 # If it is relative, then search for the first ld in PATH.
21380 with_gnu_ld=unknown
21383 elif test "$with_gnu_ld" = yes; then
21384 { echo "$as_me:$LINENO: checking for GNU ld" >&5
21385 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
21387 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
21388 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
21390 if test "${acl_cv_path_LD+set}" = set; then
21391 echo $ECHO_N "(cached) $ECHO_C" >&6
21393 if test -z "$LD"; then
21394 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
21395 for ac_dir in $PATH; do
21396 test -z "$ac_dir" && ac_dir=.
21397 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
21398 acl_cv_path_LD="$ac_dir/$ac_prog"
21399 # Check to see if the program is GNU ld. I'd rather use --version,
21400 # but apparently some GNU ld's only accept -v.
21401 # Break only if it was the GNU/non-GNU ld that we prefer.
21402 case `"$acl_cv_path_LD" -v 2>&1 < /dev
/null
` in
21403 *GNU* | *'with BFD'*)
21404 test "$with_gnu_ld" != no && break ;;
21406 test "$with_gnu_ld" != yes && break ;;
21412 acl_cv_path_LD="$LD" # Let the user override the test with a path.
21416 LD="$acl_cv_path_LD"
21417 if test -n "$LD"; then
21418 { echo "$as_me:$LINENO: result: $LD" >&5
21419 echo "${ECHO_T}$LD" >&6; }
21421 { echo "$as_me:$LINENO: result: no" >&5
21422 echo "${ECHO_T}no" >&6; }
21424 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
21425 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
21426 { (exit 1); exit 1; }; }
21427 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
21428 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
21429 if test "${acl_cv_prog_gnu_ld+set}" = set; then
21430 echo $ECHO_N "(cached) $ECHO_C" >&6
21432 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
21433 case `$LD -v 2>&1 </dev
/null
` in
21434 *GNU* | *'with BFD'*)
21435 acl_cv_prog_gnu_ld=yes ;;
21437 acl_cv_prog_gnu_ld=no ;;
21440 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
21441 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
21442 with_gnu_ld=$acl_cv_prog_gnu_ld
21447 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
21448 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
21449 if test "${acl_cv_rpath+set}" = set; then
21450 echo $ECHO_N "(cached) $ECHO_C" >&6
21453 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
21454 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
21456 rm -f ./conftest.sh
21460 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
21461 echo "${ECHO_T}$acl_cv_rpath" >&6; }
21463 libext="$acl_cv_libext"
21464 shlibext="$acl_cv_shlibext"
21465 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
21466 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
21467 hardcode_direct="$acl_cv_hardcode_direct"
21468 hardcode_minus_L="$acl_cv_hardcode_minus_L"
21469 # Check whether --enable-rpath was given.
21470 if test "${enable_rpath+set}" = set; then
21471 enableval=$enable_rpath; :
21479 searchpath=`(LC_ALL
=C
$CC -print-search-dirs) 2>/dev
/null |
sed -n -e 's,^libraries: ,,p' |
sed -e 's,^=,,'`
21480 if test -n "$searchpath"; then
21481 acl_save_IFS="${IFS= }"; IFS=":"
21482 for searchdir in $searchpath; do
21483 if test -d "$searchdir"; then
21484 case "$searchdir" in
21485 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
21486 *) searchdir=`cd "$searchdir" && pwd`
21487 case "$searchdir" in
21488 */lib64 ) acl_libdirstem=lib64 ;;
21493 IFS="$acl_save_IFS"
21498 gl_threads_api=none
21503 if test "$gl_use_threads" != no; then
21504 { echo "$as_me:$LINENO: checking whether imported symbols can be declared weak" >&5
21505 echo $ECHO_N "checking whether imported symbols can be declared weak... $ECHO_C" >&6; }
21507 cat >conftest.$ac_ext <<_ACEOF
21510 cat confdefs.h >>conftest.$ac_ext
21511 cat >>conftest.$ac_ext <<_ACEOF
21512 /* end confdefs.h. */
21513 extern void xyzzy ();
21523 rm -f conftest.$ac_objext conftest$ac_exeext
21524 if { (ac_try="$ac_link"
21525 case "(($ac_try" in
21526 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21527 *) ac_try_echo
=$ac_try;;
21529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21530 (eval "$ac_link") 2>conftest.er1
21532 grep -v '^ *+' conftest.er1
>conftest.err
21534 cat conftest.err
>&5
21535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21536 (exit $ac_status); } && {
21537 test -z "$ac_c_werror_flag" ||
21538 test ! -s conftest.err
21539 } && test -s conftest
$ac_exeext &&
21540 $as_test_x conftest
$ac_exeext; then
21543 echo "$as_me: failed program was:" >&5
21544 sed 's/^/| /' conftest.
$ac_ext >&5
21549 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
21550 conftest
$ac_exeext conftest.
$ac_ext
21551 { echo "$as_me:$LINENO: result: $gl_have_weak" >&5
21552 echo "${ECHO_T}$gl_have_weak" >&6; }
21553 if test "$gl_use_threads" = yes ||
test "$gl_use_threads" = posix
; then
21554 # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
21555 # it groks <pthread.h>. It's added above, in gl_LOCK_EARLY_BODY.
21556 if test "${ac_cv_header_pthread_h+set}" = set; then
21557 { echo "$as_me:$LINENO: checking for pthread.h" >&5
21558 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
21559 if test "${ac_cv_header_pthread_h+set}" = set; then
21560 echo $ECHO_N "(cached) $ECHO_C" >&6
21562 { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
21563 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
21565 # Is the header compilable?
21566 { echo "$as_me:$LINENO: checking pthread.h usability" >&5
21567 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6; }
21568 cat >conftest.
$ac_ext <<_ACEOF
21571 cat confdefs.h
>>conftest.
$ac_ext
21572 cat >>conftest.
$ac_ext <<_ACEOF
21573 /* end confdefs.h. */
21574 $ac_includes_default
21575 #include <pthread.h>
21577 rm -f conftest.
$ac_objext
21578 if { (ac_try
="$ac_compile"
21579 case "(($ac_try" in
21580 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21581 *) ac_try_echo=$ac_try;;
21583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21584 (eval "$ac_compile") 2>conftest.er1
21586 grep -v '^ *+' conftest.er1 >conftest.err
21588 cat conftest.err >&5
21589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21590 (exit $ac_status); } && {
21591 test -z "$ac_c_werror_flag" ||
21592 test ! -s conftest.err
21593 } && test -s conftest.$ac_objext; then
21594 ac_header_compiler=yes
21596 echo "$as_me: failed program was:" >&5
21597 sed 's/^/| /' conftest.$ac_ext >&5
21599 ac_header_compiler=no
21602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21603 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21604 echo "${ECHO_T}$ac_header_compiler" >&6; }
21606 # Is the header present?
21607 { echo "$as_me:$LINENO: checking pthread.h presence" >&5
21608 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6; }
21609 cat >conftest.$ac_ext <<_ACEOF
21612 cat confdefs.h >>conftest.$ac_ext
21613 cat >>conftest.$ac_ext <<_ACEOF
21614 /* end confdefs.h. */
21615 #include <pthread.h>
21617 if { (ac_try="$ac_cpp conftest.$ac_ext"
21618 case "(($ac_try" in
21619 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21620 *) ac_try_echo
=$ac_try;;
21622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21623 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21625 grep -v '^ *+' conftest.er1
>conftest.err
21627 cat conftest.err
>&5
21628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21629 (exit $ac_status); } >/dev
/null
&& {
21630 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21631 test ! -s conftest.err
21633 ac_header_preproc
=yes
21635 echo "$as_me: failed program was:" >&5
21636 sed 's/^/| /' conftest.
$ac_ext >&5
21638 ac_header_preproc
=no
21641 rm -f conftest.err conftest.
$ac_ext
21642 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21643 echo "${ECHO_T}$ac_header_preproc" >&6; }
21645 # So? What about this header?
21646 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21648 { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
21649 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21650 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
21651 echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
21652 ac_header_preproc
=yes
21655 { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
21656 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
21657 { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
21658 echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
21659 { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
21660 echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
21661 { echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
21662 echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
21663 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
21664 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
21665 { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
21666 echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
21670 { echo "$as_me:$LINENO: checking for pthread.h" >&5
21671 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
21672 if test "${ac_cv_header_pthread_h+set}" = set; then
21673 echo $ECHO_N "(cached) $ECHO_C" >&6
21675 ac_cv_header_pthread_h
=$ac_header_preproc
21677 { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
21678 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
21681 if test $ac_cv_header_pthread_h = yes; then
21682 gl_have_pthread_h
=yes
21684 gl_have_pthread_h
=no
21688 if test "$gl_have_pthread_h" = yes; then
21689 # Other possible tests:
21690 # -lpthreads (FSU threads, PCthreads)
21693 # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
21694 # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
21695 # the second one only in libpthread, and lock.c needs it.
21696 cat >conftest.
$ac_ext <<_ACEOF
21699 cat confdefs.h
>>conftest.
$ac_ext
21700 cat >>conftest.
$ac_ext <<_ACEOF
21701 /* end confdefs.h. */
21702 #include <pthread.h>
21706 pthread_mutex_lock((pthread_mutex_t*)0);
21707 pthread_mutexattr_init((pthread_mutexattr_t*)0);
21712 rm -f conftest.
$ac_objext conftest
$ac_exeext
21713 if { (ac_try
="$ac_link"
21714 case "(($ac_try" in
21715 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21716 *) ac_try_echo=$ac_try;;
21718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21719 (eval "$ac_link") 2>conftest.er1
21721 grep -v '^ *+' conftest.er1 >conftest.err
21723 cat conftest.err >&5
21724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21725 (exit $ac_status); } && {
21726 test -z "$ac_c_werror_flag" ||
21727 test ! -s conftest.err
21728 } && test -s conftest$ac_exeext &&
21729 $as_test_x conftest$ac_exeext; then
21730 gl_have_pthread=yes
21732 echo "$as_me: failed program was:" >&5
21733 sed 's/^/| /' conftest.$ac_ext >&5
21738 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21739 conftest$ac_exeext conftest.$ac_ext
21740 # Test for libpthread by looking for pthread_kill. (Not pthread_self,
21741 # since it is defined as a macro on OSF/1.)
21742 if test -n "$gl_have_pthread"; then
21743 # The program links fine without libpthread. But it may actually
21744 # need to link with libpthread in order to create multiple threads.
21745 { echo "$as_me:$LINENO: checking for pthread_kill in -lpthread" >&5
21746 echo $ECHO_N "checking for pthread_kill in -lpthread... $ECHO_C" >&6; }
21747 if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then
21748 echo $ECHO_N "(cached) $ECHO_C" >&6
21750 ac_check_lib_save_LIBS=$LIBS
21751 LIBS="-lpthread $LIBS"
21752 cat >conftest.$ac_ext <<_ACEOF
21755 cat confdefs.h >>conftest.$ac_ext
21756 cat >>conftest.$ac_ext <<_ACEOF
21757 /* end confdefs.h. */
21759 /* Override any GCC internal prototype to avoid an error.
21760 Use char because int might match the return type of a GCC
21761 builtin and then its argument prototype would still apply. */
21765 char pthread_kill ();
21769 return pthread_kill ();
21774 rm -f conftest.$ac_objext conftest$ac_exeext
21775 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
21783 grep -v '^ *+' conftest.er1
>conftest.err
21785 cat conftest.err
>&5
21786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21787 (exit $ac_status); } && {
21788 test -z "$ac_c_werror_flag" ||
21789 test ! -s conftest.err
21790 } && test -s conftest
$ac_exeext &&
21791 $as_test_x conftest
$ac_exeext; then
21792 ac_cv_lib_pthread_pthread_kill
=yes
21794 echo "$as_me: failed program was:" >&5
21795 sed 's/^/| /' conftest.
$ac_ext >&5
21797 ac_cv_lib_pthread_pthread_kill
=no
21800 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
21801 conftest
$ac_exeext conftest.
$ac_ext
21802 LIBS
=$ac_check_lib_save_LIBS
21804 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_kill" >&5
21805 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_kill" >&6; }
21806 if test $ac_cv_lib_pthread_pthread_kill = yes; then
21807 LIBMULTITHREAD
=-lpthread LTLIBMULTITHREAD
=-lpthread
21808 # On Solaris and HP-UX, most pthread functions exist also in libc.
21809 # Therefore pthread_in_use() needs to actually try to create a
21810 # thread: pthread_create from libc will fail, whereas
21811 # pthread_create will actually create a thread.
21815 cat >>confdefs.h
<<\_ACEOF
21816 #define PTHREAD_IN_USE_DETECTION_HARD 1
21824 # Some library is needed. Try libpthread and libc_r.
21825 { echo "$as_me:$LINENO: checking for pthread_kill in -lpthread" >&5
21826 echo $ECHO_N "checking for pthread_kill in -lpthread... $ECHO_C" >&6; }
21827 if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then
21828 echo $ECHO_N "(cached) $ECHO_C" >&6
21830 ac_check_lib_save_LIBS
=$LIBS
21831 LIBS
="-lpthread $LIBS"
21832 cat >conftest.
$ac_ext <<_ACEOF
21835 cat confdefs.h
>>conftest.
$ac_ext
21836 cat >>conftest.
$ac_ext <<_ACEOF
21837 /* end confdefs.h. */
21839 /* Override any GCC internal prototype to avoid an error.
21840 Use char because int might match the return type of a GCC
21841 builtin and then its argument prototype would still apply. */
21845 char pthread_kill ();
21849 return pthread_kill ();
21854 rm -f conftest.
$ac_objext conftest
$ac_exeext
21855 if { (ac_try
="$ac_link"
21856 case "(($ac_try" in
21857 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21858 *) ac_try_echo=$ac_try;;
21860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21861 (eval "$ac_link") 2>conftest.er1
21863 grep -v '^ *+' conftest.er1 >conftest.err
21865 cat conftest.err >&5
21866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21867 (exit $ac_status); } && {
21868 test -z "$ac_c_werror_flag" ||
21869 test ! -s conftest.err
21870 } && test -s conftest$ac_exeext &&
21871 $as_test_x conftest$ac_exeext; then
21872 ac_cv_lib_pthread_pthread_kill=yes
21874 echo "$as_me: failed program was:" >&5
21875 sed 's/^/| /' conftest.$ac_ext >&5
21877 ac_cv_lib_pthread_pthread_kill=no
21880 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21881 conftest$ac_exeext conftest.$ac_ext
21882 LIBS=$ac_check_lib_save_LIBS
21884 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_kill" >&5
21885 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_kill" >&6; }
21886 if test $ac_cv_lib_pthread_pthread_kill = yes; then
21887 gl_have_pthread=yes
21888 LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
21889 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
21892 if test -z "$gl_have_pthread"; then
21894 { echo "$as_me:$LINENO: checking for pthread_kill in -lc_r" >&5
21895 echo $ECHO_N "checking for pthread_kill in -lc_r... $ECHO_C" >&6; }
21896 if test "${ac_cv_lib_c_r_pthread_kill+set}" = set; then
21897 echo $ECHO_N "(cached) $ECHO_C" >&6
21899 ac_check_lib_save_LIBS=$LIBS
21901 cat >conftest.$ac_ext <<_ACEOF
21904 cat confdefs.h >>conftest.$ac_ext
21905 cat >>conftest.$ac_ext <<_ACEOF
21906 /* end confdefs.h. */
21908 /* Override any GCC internal prototype to avoid an error.
21909 Use char because int might match the return type of a GCC
21910 builtin and then its argument prototype would still apply. */
21914 char pthread_kill ();
21918 return pthread_kill ();
21923 rm -f conftest.$ac_objext conftest$ac_exeext
21924 if { (ac_try="$ac_link"
21925 case "(($ac_try" in
21926 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21927 *) ac_try_echo
=$ac_try;;
21929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21930 (eval "$ac_link") 2>conftest.er1
21932 grep -v '^ *+' conftest.er1
>conftest.err
21934 cat conftest.err
>&5
21935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21936 (exit $ac_status); } && {
21937 test -z "$ac_c_werror_flag" ||
21938 test ! -s conftest.err
21939 } && test -s conftest
$ac_exeext &&
21940 $as_test_x conftest
$ac_exeext; then
21941 ac_cv_lib_c_r_pthread_kill
=yes
21943 echo "$as_me: failed program was:" >&5
21944 sed 's/^/| /' conftest.
$ac_ext >&5
21946 ac_cv_lib_c_r_pthread_kill
=no
21949 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
21950 conftest
$ac_exeext conftest.
$ac_ext
21951 LIBS
=$ac_check_lib_save_LIBS
21953 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_kill" >&5
21954 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_kill" >&6; }
21955 if test $ac_cv_lib_c_r_pthread_kill = yes; then
21956 gl_have_pthread
=yes
21957 LIBTHREAD
=-lc_r LTLIBTHREAD
=-lc_r
21958 LIBMULTITHREAD
=-lc_r LTLIBMULTITHREAD
=-lc_r
21963 if test -n "$gl_have_pthread"; then
21964 gl_threads_api
=posix
21966 cat >>confdefs.h
<<\_ACEOF
21967 #define USE_POSIX_THREADS 1
21970 if test -n "$LIBMULTITHREAD" ||
test -n "$LTLIBMULTITHREAD"; then
21971 if test $gl_have_weak = yes; then
21973 cat >>confdefs.h
<<\_ACEOF
21974 #define USE_POSIX_THREADS_WEAK 1
21981 # OSF/1 4.0 and MacOS X 10.1 lack the pthread_rwlock_t type and the
21982 # pthread_rwlock_* functions.
21983 { echo "$as_me:$LINENO: checking for pthread_rwlock_t" >&5
21984 echo $ECHO_N "checking for pthread_rwlock_t... $ECHO_C" >&6; }
21985 if test "${ac_cv_type_pthread_rwlock_t+set}" = set; then
21986 echo $ECHO_N "(cached) $ECHO_C" >&6
21988 cat >conftest.
$ac_ext <<_ACEOF
21991 cat confdefs.h
>>conftest.
$ac_ext
21992 cat >>conftest.
$ac_ext <<_ACEOF
21993 /* end confdefs.h. */
21994 #include <pthread.h>
21996 typedef pthread_rwlock_t ac__type_new_;
22000 if ((ac__type_new_ *) 0)
22002 if (sizeof (ac__type_new_))
22008 rm -f conftest.
$ac_objext
22009 if { (ac_try
="$ac_compile"
22010 case "(($ac_try" in
22011 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22012 *) ac_try_echo=$ac_try;;
22014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22015 (eval "$ac_compile") 2>conftest.er1
22017 grep -v '^ *+' conftest.er1 >conftest.err
22019 cat conftest.err >&5
22020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22021 (exit $ac_status); } && {
22022 test -z "$ac_c_werror_flag" ||
22023 test ! -s conftest.err
22024 } && test -s conftest.$ac_objext; then
22025 ac_cv_type_pthread_rwlock_t=yes
22027 echo "$as_me: failed program was:" >&5
22028 sed 's/^/| /' conftest.$ac_ext >&5
22030 ac_cv_type_pthread_rwlock_t=no
22033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22035 { echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlock_t" >&5
22036 echo "${ECHO_T}$ac_cv_type_pthread_rwlock_t" >&6; }
22037 if test $ac_cv_type_pthread_rwlock_t = yes; then
22039 cat >>confdefs.h <<\_ACEOF
22040 #define HAVE_PTHREAD_RWLOCK 1
22045 # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
22046 cat >conftest.$ac_ext <<_ACEOF
22049 cat confdefs.h >>conftest.$ac_ext
22050 cat >>conftest.$ac_ext <<_ACEOF
22051 /* end confdefs.h. */
22052 #include <pthread.h>
22056 #if __FreeBSD__ == 4
22057 error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
22059 int x = (int)PTHREAD_MUTEX_RECURSIVE;
22066 rm -f conftest.$ac_objext
22067 if { (ac_try="$ac_compile"
22068 case "(($ac_try" in
22069 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22070 *) ac_try_echo
=$ac_try;;
22072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22073 (eval "$ac_compile") 2>conftest.er1
22075 grep -v '^ *+' conftest.er1
>conftest.err
22077 cat conftest.err
>&5
22078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22079 (exit $ac_status); } && {
22080 test -z "$ac_c_werror_flag" ||
22081 test ! -s conftest.err
22082 } && test -s conftest.
$ac_objext; then
22084 cat >>confdefs.h
<<\_ACEOF
22085 #define HAVE_PTHREAD_MUTEX_RECURSIVE 1
22089 echo "$as_me: failed program was:" >&5
22090 sed 's/^/| /' conftest.
$ac_ext >&5
22095 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22099 if test -z "$gl_have_pthread"; then
22100 if test "$gl_use_threads" = yes ||
test "$gl_use_threads" = solaris
; then
22101 gl_have_solaristhread
=
22102 gl_save_LIBS
="$LIBS"
22103 LIBS
="$LIBS -lthread"
22104 cat >conftest.
$ac_ext <<_ACEOF
22107 cat confdefs.h
>>conftest.
$ac_ext
22108 cat >>conftest.
$ac_ext <<_ACEOF
22109 /* end confdefs.h. */
22110 #include <thread.h>
22120 rm -f conftest.
$ac_objext conftest
$ac_exeext
22121 if { (ac_try
="$ac_link"
22122 case "(($ac_try" in
22123 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22124 *) ac_try_echo=$ac_try;;
22126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22127 (eval "$ac_link") 2>conftest.er1
22129 grep -v '^ *+' conftest.er1 >conftest.err
22131 cat conftest.err >&5
22132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22133 (exit $ac_status); } && {
22134 test -z "$ac_c_werror_flag" ||
22135 test ! -s conftest.err
22136 } && test -s conftest$ac_exeext &&
22137 $as_test_x conftest$ac_exeext; then
22138 gl_have_solaristhread=yes
22140 echo "$as_me: failed program was:" >&5
22141 sed 's/^/| /' conftest.$ac_ext >&5
22146 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22147 conftest$ac_exeext conftest.$ac_ext
22148 LIBS="$gl_save_LIBS"
22149 if test -n "$gl_have_solaristhread"; then
22150 gl_threads_api=solaris
22152 LTLIBTHREAD=-lthread
22153 LIBMULTITHREAD="$LIBTHREAD"
22154 LTLIBMULTITHREAD="$LTLIBTHREAD"
22156 cat >>confdefs.h <<\_ACEOF
22157 #define USE_SOLARIS_THREADS 1
22160 if test $gl_have_weak = yes; then
22162 cat >>confdefs.h <<\_ACEOF
22163 #define USE_SOLARIS_THREADS_WEAK 1
22172 if test "$gl_use_threads" = pth; then
22173 gl_save_CPPFLAGS="$CPPFLAGS"
22179 { echo "$as_me:$LINENO: checking how to link with libpth" >&5
22180 echo $ECHO_N "checking how to link with libpth... $ECHO_C" >&6; }
22181 if test "${ac_cv_libpth_libs+set}" = set; then
22182 echo $ECHO_N "(cached) $ECHO_C" >&6
22190 acl_save_prefix="$prefix"
22191 prefix="$acl_final_prefix"
22192 acl_save_exec_prefix="$exec_prefix"
22193 exec_prefix="$acl_final_exec_prefix"
22195 eval additional_includedir=\"$includedir\"
22196 eval additional_libdir=\"$libdir\"
22198 exec_prefix="$acl_save_exec_prefix"
22199 prefix="$acl_save_prefix"
22202 # Check whether --with-libpth-prefix was given.
22203 if test "${with_libpth_prefix+set}" = set; then
22204 withval=$with_libpth_prefix;
22205 if test "X$withval" = "Xno"; then
22208 if test "X$withval" = "X"; then
22210 acl_save_prefix="$prefix"
22211 prefix="$acl_final_prefix"
22212 acl_save_exec_prefix="$exec_prefix"
22213 exec_prefix="$acl_final_exec_prefix"
22215 eval additional_includedir=\"$includedir\"
22216 eval additional_libdir=\"$libdir\"
22218 exec_prefix="$acl_save_exec_prefix"
22219 prefix="$acl_save_prefix"
22222 additional_includedir="$withval/include"
22223 additional_libdir="$withval/$acl_libdirstem"
22234 names_already_handled=
22235 names_next_round='pth '
22236 while test -n "$names_next_round"; do
22237 names_this_round="$names_next_round"
22239 for name in $names_this_round; do
22241 for n in $names_already_handled; do
22242 if test "$n" = "$name"; then
22243 already_handled=yes
22247 if test -z "$already_handled"; then
22248 names_already_handled="$names_already_handled $name"
22249 uppername=`echo "$name" |
sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
22250 eval value=\"\$HAVE_LIB$uppername\"
22251 if test -n "$value"; then
22252 if test "$value" = yes; then
22253 eval value=\"\$LIB$uppername\"
22254 test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
22255 eval value=\"\$LTLIB$uppername\"
22256 test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
22265 if test $use_additional = yes; then
22266 if test -n "$shlibext" \
22267 && { test -f "$additional_libdir/lib$name.$shlibext" \
22268 || { test "$shlibext" = dll \
22269 && test -f "$additional_libdir/lib$name.dll.a"; }; }; then
22270 found_dir="$additional_libdir"
22271 if test -f "$additional_libdir/lib$name.$shlibext"; then
22272 found_so="$additional_libdir/lib$name.$shlibext"
22274 found_so="$additional_libdir/lib$name.dll.a"
22276 if test -f "$additional_libdir/lib$name.la"; then
22277 found_la="$additional_libdir/lib$name.la"
22280 if test -f "$additional_libdir/lib$name.$libext"; then
22281 found_dir="$additional_libdir"
22282 found_a="$additional_libdir/lib$name.$libext"
22283 if test -f "$additional_libdir/lib$name.la"; then
22284 found_la="$additional_libdir/lib$name.la"
22289 if test "X$found_dir" = "X"; then
22290 for x in $LDFLAGS $LTLIBPTH; do
22292 acl_save_prefix="$prefix"
22293 prefix="$acl_final_prefix"
22294 acl_save_exec_prefix="$exec_prefix"
22295 exec_prefix="$acl_final_exec_prefix"
22297 exec_prefix="$acl_save_exec_prefix"
22298 prefix="$acl_save_prefix"
22302 dir=`echo "X$x" |
sed -e 's/^X-L//'`
22303 if test -n "$shlibext" \
22304 && { test -f "$dir/lib$name.$shlibext" \
22305 || { test "$shlibext" = dll \
22306 && test -f "$dir/lib$name.dll.a"; }; }; then
22308 if test -f "$dir/lib$name.$shlibext"; then
22309 found_so="$dir/lib$name.$shlibext"
22311 found_so="$dir/lib$name.dll.a"
22313 if test -f "$dir/lib$name.la"; then
22314 found_la="$dir/lib$name.la"
22317 if test -f "$dir/lib$name.$libext"; then
22319 found_a="$dir/lib$name.$libext"
22320 if test -f "$dir/lib$name.la"; then
22321 found_la="$dir/lib$name.la"
22327 if test "X$found_dir" != "X"; then
22332 if test "X$found_dir" != "X"; then
22333 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
22334 if test "X$found_so" != "X"; then
22335 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
22336 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
22339 for x in $ltrpathdirs; do
22340 if test "X$x" = "X$found_dir"; then
22345 if test -z "$haveit"; then
22346 ltrpathdirs="$ltrpathdirs $found_dir"
22348 if test "$hardcode_direct" = yes; then
22349 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
22351 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
22352 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
22354 for x in $rpathdirs; do
22355 if test "X$x" = "X$found_dir"; then
22360 if test -z "$haveit"; then
22361 rpathdirs="$rpathdirs $found_dir"
22365 for x in $LDFLAGS $LIBPTH; do
22367 acl_save_prefix="$prefix"
22368 prefix="$acl_final_prefix"
22369 acl_save_exec_prefix="$exec_prefix"
22370 exec_prefix="$acl_final_exec_prefix"
22372 exec_prefix="$acl_save_exec_prefix"
22373 prefix="$acl_save_prefix"
22375 if test "X$x" = "X-L$found_dir"; then
22380 if test -z "$haveit"; then
22381 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
22383 if test "$hardcode_minus_L" != no; then
22384 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
22386 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
22392 if test "X$found_a" != "X"; then
22393 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
22395 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
22398 additional_includedir=
22399 case "$found_dir" in
22400 */$acl_libdirstem | */$acl_libdirstem/)
22401 basedir=`echo "X$found_dir" |
sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
22402 additional_includedir="$basedir/include"
22405 if test "X$additional_includedir" != "X"; then
22406 if test "X$additional_includedir" != "X/usr/include"; then
22408 if test "X$additional_includedir" = "X/usr/local/include"; then
22409 if test -n "$GCC"; then
22411 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
22415 if test -z "$haveit"; then
22416 for x in $CPPFLAGS $INCPTH; do
22418 acl_save_prefix="$prefix"
22419 prefix="$acl_final_prefix"
22420 acl_save_exec_prefix="$exec_prefix"
22421 exec_prefix="$acl_final_exec_prefix"
22423 exec_prefix="$acl_save_exec_prefix"
22424 prefix="$acl_save_prefix"
22426 if test "X$x" = "X-I$additional_includedir"; then
22431 if test -z "$haveit"; then
22432 if test -d "$additional_includedir"; then
22433 INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
22439 if test -n "$found_la"; then
22440 save_libdir="$libdir"
22441 case "$found_la" in
22442 */* | *\\*) . "$found_la" ;;
22443 *) . "./$found_la" ;;
22445 libdir="$save_libdir"
22446 for dep in $dependency_libs; do
22449 additional_libdir=`echo "X$dep" |
sed -e 's/^X-L//'`
22450 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
22452 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
22453 if test -n "$GCC"; then
22455 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
22459 if test -z "$haveit"; then
22461 for x in $LDFLAGS $LIBPTH; do
22463 acl_save_prefix="$prefix"
22464 prefix="$acl_final_prefix"
22465 acl_save_exec_prefix="$exec_prefix"
22466 exec_prefix="$acl_final_exec_prefix"
22468 exec_prefix="$acl_save_exec_prefix"
22469 prefix="$acl_save_prefix"
22471 if test "X$x" = "X-L$additional_libdir"; then
22476 if test -z "$haveit"; then
22477 if test -d "$additional_libdir"; then
22478 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
22482 for x in $LDFLAGS $LTLIBPTH; do
22484 acl_save_prefix="$prefix"
22485 prefix="$acl_final_prefix"
22486 acl_save_exec_prefix="$exec_prefix"
22487 exec_prefix="$acl_final_exec_prefix"
22489 exec_prefix="$acl_save_exec_prefix"
22490 prefix="$acl_save_prefix"
22492 if test "X$x" = "X-L$additional_libdir"; then
22497 if test -z "$haveit"; then
22498 if test -d "$additional_libdir"; then
22499 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
22506 dir=`echo "X$dep" |
sed -e 's/^X-R//'`
22507 if test "$enable_rpath" != no; then
22509 for x in $rpathdirs; do
22510 if test "X$x" = "X$dir"; then
22515 if test -z "$haveit"; then
22516 rpathdirs="$rpathdirs $dir"
22519 for x in $ltrpathdirs; do
22520 if test "X$x" = "X$dir"; then
22525 if test -z "$haveit"; then
22526 ltrpathdirs="$ltrpathdirs $dir"
22531 names_next_round="$names_next_round "`echo "X$dep" |
sed -e 's/^X-l//'`
22534 names_next_round="$names_next_round "`echo "X$dep" |
sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
22537 LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
22538 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
22544 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
22545 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
22551 if test "X$rpathdirs" != "X"; then
22552 if test -n "$hardcode_libdir_separator"; then
22554 for found_dir in $rpathdirs; do
22555 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
22557 acl_save_libdir="$libdir"
22559 eval flag=\"$hardcode_libdir_flag_spec\"
22560 libdir="$acl_save_libdir"
22561 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
22563 for found_dir in $rpathdirs; do
22564 acl_save_libdir="$libdir"
22565 libdir="$found_dir"
22566 eval flag=\"$hardcode_libdir_flag_spec\"
22567 libdir="$acl_save_libdir"
22568 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
22572 if test "X$ltrpathdirs" != "X"; then
22573 for found_dir in $ltrpathdirs; do
22574 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
22578 ac_cv_libpth_libs="$LIBPTH"
22579 ac_cv_libpth_ltlibs="$LTLIBPTH"
22580 ac_cv_libpth_cppflags="$INCPTH"
22583 { echo "$as_me:$LINENO: result: $ac_cv_libpth_libs" >&5
22584 echo "${ECHO_T}$ac_cv_libpth_libs" >&6; }
22585 LIBPTH="$ac_cv_libpth_libs"
22586 LTLIBPTH="$ac_cv_libpth_ltlibs"
22587 INCPTH="$ac_cv_libpth_cppflags"
22589 for element in $INCPTH; do
22591 for x in $CPPFLAGS; do
22593 acl_save_prefix="$prefix"
22594 prefix="$acl_final_prefix"
22595 acl_save_exec_prefix="$exec_prefix"
22596 exec_prefix="$acl_final_exec_prefix"
22598 exec_prefix="$acl_save_exec_prefix"
22599 prefix="$acl_save_prefix"
22601 if test "X$x" = "X$element"; then
22606 if test -z "$haveit"; then
22607 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
22618 gl_save_LIBS="$LIBS"
22620 cat >conftest.$ac_ext <<_ACEOF
22623 cat confdefs.h >>conftest.$ac_ext
22624 cat >>conftest.$ac_ext <<_ACEOF
22625 /* end confdefs.h. */
22635 rm -f conftest.$ac_objext conftest$ac_exeext
22636 if { (ac_try="$ac_link"
22637 case "(($ac_try" in
22638 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22639 *) ac_try_echo
=$ac_try;;
22641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22642 (eval "$ac_link") 2>conftest.er1
22644 grep -v '^ *+' conftest.er1
>conftest.err
22646 cat conftest.err
>&5
22647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22648 (exit $ac_status); } && {
22649 test -z "$ac_c_werror_flag" ||
22650 test ! -s conftest.err
22651 } && test -s conftest
$ac_exeext &&
22652 $as_test_x conftest
$ac_exeext; then
22655 echo "$as_me: failed program was:" >&5
22656 sed 's/^/| /' conftest.
$ac_ext >&5
22661 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
22662 conftest
$ac_exeext conftest.
$ac_ext
22663 LIBS
="$gl_save_LIBS"
22664 if test -n "$gl_have_pth"; then
22666 LIBTHREAD
="$LIBPTH"
22667 LTLIBTHREAD
="$LTLIBPTH"
22668 LIBMULTITHREAD
="$LIBTHREAD"
22669 LTLIBMULTITHREAD
="$LTLIBTHREAD"
22671 cat >>confdefs.h
<<\_ACEOF
22672 #define USE_PTH_THREADS 1
22675 if test -n "$LIBMULTITHREAD" ||
test -n "$LTLIBMULTITHREAD"; then
22676 if test $gl_have_weak = yes; then
22678 cat >>confdefs.h
<<\_ACEOF
22679 #define USE_PTH_THREADS_WEAK 1
22687 CPPFLAGS
="$gl_save_CPPFLAGS"
22690 if test -z "$gl_have_pthread"; then
22691 if test "$gl_use_threads" = yes ||
test "$gl_use_threads" = win32
; then
22692 if { case "$host_os" in
22697 gl_threads_api
=win32
22699 cat >>confdefs.h
<<\_ACEOF
22700 #define USE_WIN32_THREADS 1
22707 { echo "$as_me:$LINENO: checking for multithread API to use" >&5
22708 echo $ECHO_N "checking for multithread API to use... $ECHO_C" >&6; }
22709 { echo "$as_me:$LINENO: result: $gl_threads_api" >&5
22710 echo "${ECHO_T}$gl_threads_api" >&6; }
22726 cat >conftest.
$ac_ext <<_ACEOF
22729 cat confdefs.h
>>conftest.
$ac_ext
22730 cat >>conftest.
$ac_ext <<_ACEOF
22731 /* end confdefs.h. */
22732 int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }
22741 rm -f conftest.
$ac_objext conftest
$ac_exeext
22742 if { (ac_try
="$ac_link"
22743 case "(($ac_try" in
22744 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22745 *) ac_try_echo=$ac_try;;
22747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22748 (eval "$ac_link") 2>conftest.er1
22750 grep -v '^ *+' conftest.er1 >conftest.err
22752 cat conftest.err >&5
22753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22754 (exit $ac_status); } && {
22755 test -z "$ac_c_werror_flag" ||
22756 test ! -s conftest.err
22757 } && test -s conftest$ac_exeext &&
22758 $as_test_x conftest$ac_exeext; then
22760 cat >>confdefs.h <<\_ACEOF
22761 #define HAVE_BUILTIN_EXPECT 1
22765 echo "$as_me: failed program was:" >&5
22766 sed 's/^/| /' conftest.$ac_ext >&5
22771 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22772 conftest$ac_exeext conftest.$ac_ext
22779 for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h
22781 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
22782 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22783 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22784 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22785 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22786 echo $ECHO_N "(cached) $ECHO_C" >&6
22788 ac_res=`eval echo '${'$as_ac_Header'}'`
22789 { echo "$as_me:$LINENO: result: $ac_res" >&5
22790 echo "${ECHO_T}$ac_res" >&6; }
22792 # Is the header compilable?
22793 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22794 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22795 cat >conftest.$ac_ext <<_ACEOF
22798 cat confdefs.h >>conftest.$ac_ext
22799 cat >>conftest.$ac_ext <<_ACEOF
22800 /* end confdefs.h. */
22801 $ac_includes_default
22802 #include <$ac_header>
22804 rm -f conftest.$ac_objext
22805 if { (ac_try="$ac_compile"
22806 case "(($ac_try" in
22807 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22808 *) ac_try_echo
=$ac_try;;
22810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22811 (eval "$ac_compile") 2>conftest.er1
22813 grep -v '^ *+' conftest.er1
>conftest.err
22815 cat conftest.err
>&5
22816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22817 (exit $ac_status); } && {
22818 test -z "$ac_c_werror_flag" ||
22819 test ! -s conftest.err
22820 } && test -s conftest.
$ac_objext; then
22821 ac_header_compiler
=yes
22823 echo "$as_me: failed program was:" >&5
22824 sed 's/^/| /' conftest.
$ac_ext >&5
22826 ac_header_compiler
=no
22829 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22830 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22831 echo "${ECHO_T}$ac_header_compiler" >&6; }
22833 # Is the header present?
22834 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22835 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22836 cat >conftest.
$ac_ext <<_ACEOF
22839 cat confdefs.h
>>conftest.
$ac_ext
22840 cat >>conftest.
$ac_ext <<_ACEOF
22841 /* end confdefs.h. */
22842 #include <$ac_header>
22844 if { (ac_try
="$ac_cpp conftest.$ac_ext"
22845 case "(($ac_try" in
22846 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22847 *) ac_try_echo=$ac_try;;
22849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22850 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22852 grep -v '^ *+' conftest.er1 >conftest.err
22854 cat conftest.err >&5
22855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22856 (exit $ac_status); } >/dev/null && {
22857 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22858 test ! -s conftest.err
22860 ac_header_preproc=yes
22862 echo "$as_me: failed program was:" >&5
22863 sed 's/^/| /' conftest.$ac_ext >&5
22865 ac_header_preproc=no
22868 rm -f conftest.err conftest.$ac_ext
22869 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22870 echo "${ECHO_T}$ac_header_preproc" >&6; }
22872 # So? What about this header?
22873 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22875 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22876 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22877 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22878 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22879 ac_header_preproc=yes
22882 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22883 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22884 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22885 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22886 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22887 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22888 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22889 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22890 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22891 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22892 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22893 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22897 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22898 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22899 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22900 echo $ECHO_N "(cached) $ECHO_C" >&6
22902 eval "$as_ac_Header=\$ac_header_preproc"
22904 ac_res=`eval echo '${'$as_ac_Header'}'`
22905 { echo "$as_me:$LINENO: result: $ac_res" >&5
22906 echo "${ECHO_T}$ac_res" >&6; }
22909 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22910 cat >>confdefs.h <<_ACEOF
22911 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
22934 for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \
22935 stpcpy strcasecmp strdup strtoul tsearch argz_count argz_stringify \
22936 argz_next __fsetlocking
22938 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
22939 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22940 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22941 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22942 echo $ECHO_N "(cached) $ECHO_C" >&6
22944 cat >conftest.$ac_ext <<_ACEOF
22947 cat confdefs.h >>conftest.$ac_ext
22948 cat >>conftest.$ac_ext <<_ACEOF
22949 /* end confdefs.h. */
22950 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22951 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22952 #define $ac_func innocuous_$ac_func
22954 /* System header to define __stub macros and hopefully few prototypes,
22955 which can conflict with char $ac_func (); below.
22956 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22957 <limits.h> exists even on freestanding compilers. */
22960 # include <limits.h>
22962 # include <assert.h>
22967 /* Override any GCC internal prototype to avoid an error.
22968 Use char because int might match the return type of a GCC
22969 builtin and then its argument prototype would still apply. */
22974 /* The GNU C library defines this for functions which it implements
22975 to always fail with ENOSYS. Some functions are actually named
22976 something starting with __ and the normal name is an alias. */
22977 #if defined __stub_$ac_func || defined __stub___$ac_func
22984 return $ac_func ();
22989 rm -f conftest.$ac_objext conftest$ac_exeext
22990 if { (ac_try="$ac_link"
22991 case "(($ac_try" in
22992 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22993 *) ac_try_echo
=$ac_try;;
22995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22996 (eval "$ac_link") 2>conftest.er1
22998 grep -v '^ *+' conftest.er1
>conftest.err
23000 cat conftest.err
>&5
23001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23002 (exit $ac_status); } && {
23003 test -z "$ac_c_werror_flag" ||
23004 test ! -s conftest.err
23005 } && test -s conftest
$ac_exeext &&
23006 $as_test_x conftest
$ac_exeext; then
23007 eval "$as_ac_var=yes"
23009 echo "$as_me: failed program was:" >&5
23010 sed 's/^/| /' conftest.
$ac_ext >&5
23012 eval "$as_ac_var=no"
23015 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
23016 conftest
$ac_exeext conftest.
$ac_ext
23018 ac_res
=`eval echo '${'$as_ac_var'}'`
23019 { echo "$as_me:$LINENO: result: $ac_res" >&5
23020 echo "${ECHO_T}$ac_res" >&6; }
23021 if test `eval echo '${'$as_ac_var'}'` = yes; then
23022 cat >>confdefs.h
<<_ACEOF
23023 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23031 { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
23032 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
23033 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
23034 echo $ECHO_N "(cached) $ECHO_C" >&6
23036 cat >conftest.
$ac_ext <<_ACEOF
23039 cat confdefs.h
>>conftest.
$ac_ext
23040 cat >>conftest.
$ac_ext <<_ACEOF
23041 /* end confdefs.h. */
23047 #ifndef feof_unlocked
23048 char *p = (char *) feof_unlocked;
23055 rm -f conftest.
$ac_objext
23056 if { (ac_try
="$ac_compile"
23057 case "(($ac_try" in
23058 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23059 *) ac_try_echo=$ac_try;;
23061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23062 (eval "$ac_compile") 2>conftest.er1
23064 grep -v '^ *+' conftest.er1 >conftest.err
23066 cat conftest.err >&5
23067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23068 (exit $ac_status); } && {
23069 test -z "$ac_c_werror_flag" ||
23070 test ! -s conftest.err
23071 } && test -s conftest.$ac_objext; then
23072 ac_cv_have_decl_feof_unlocked=yes
23074 echo "$as_me: failed program was:" >&5
23075 sed 's/^/| /' conftest.$ac_ext >&5
23077 ac_cv_have_decl_feof_unlocked=no
23080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23082 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
23083 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
23084 if test $ac_cv_have_decl_feof_unlocked = yes; then
23090 cat >>confdefs.h <<_ACEOF
23091 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
23096 { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
23097 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
23098 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
23099 echo $ECHO_N "(cached) $ECHO_C" >&6
23101 cat >conftest.$ac_ext <<_ACEOF
23104 cat confdefs.h >>conftest.$ac_ext
23105 cat >>conftest.$ac_ext <<_ACEOF
23106 /* end confdefs.h. */
23112 #ifndef fgets_unlocked
23113 char *p = (char *) fgets_unlocked;
23120 rm -f conftest.$ac_objext
23121 if { (ac_try="$ac_compile"
23122 case "(($ac_try" in
23123 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23124 *) ac_try_echo
=$ac_try;;
23126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23127 (eval "$ac_compile") 2>conftest.er1
23129 grep -v '^ *+' conftest.er1
>conftest.err
23131 cat conftest.err
>&5
23132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23133 (exit $ac_status); } && {
23134 test -z "$ac_c_werror_flag" ||
23135 test ! -s conftest.err
23136 } && test -s conftest.
$ac_objext; then
23137 ac_cv_have_decl_fgets_unlocked
=yes
23139 echo "$as_me: failed program was:" >&5
23140 sed 's/^/| /' conftest.
$ac_ext >&5
23142 ac_cv_have_decl_fgets_unlocked
=no
23145 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23147 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
23148 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
23149 if test $ac_cv_have_decl_fgets_unlocked = yes; then
23155 cat >>confdefs.h
<<_ACEOF
23156 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
23164 # Check whether --with-libiconv-prefix was given.
23165 if test "${with_libiconv_prefix+set}" = set; then
23166 withval
=$with_libiconv_prefix;
23167 for dir
in `echo "$withval" | tr : ' '`; do
23168 if test -d $dir/include
; then CPPFLAGS
="$CPPFLAGS -I$dir/include"; fi
23169 if test -d $dir/lib
; then LDFLAGS
="$LDFLAGS -L$dir/lib"; fi
23175 { echo "$as_me:$LINENO: checking for iconv" >&5
23176 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
23177 if test "${am_cv_func_iconv+set}" = set; then
23178 echo $ECHO_N "(cached) $ECHO_C" >&6
23181 am_cv_func_iconv
="no, consider installing GNU libiconv"
23183 cat >conftest.
$ac_ext <<_ACEOF
23186 cat confdefs.h
>>conftest.
$ac_ext
23187 cat >>conftest.
$ac_ext <<_ACEOF
23188 /* end confdefs.h. */
23189 #include <stdlib.h>
23194 iconv_t cd = iconv_open("","");
23195 iconv(cd,NULL,NULL,NULL,NULL);
23201 rm -f conftest.
$ac_objext conftest
$ac_exeext
23202 if { (ac_try
="$ac_link"
23203 case "(($ac_try" in
23204 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23205 *) ac_try_echo=$ac_try;;
23207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23208 (eval "$ac_link") 2>conftest.er1
23210 grep -v '^ *+' conftest.er1 >conftest.err
23212 cat conftest.err >&5
23213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23214 (exit $ac_status); } && {
23215 test -z "$ac_c_werror_flag" ||
23216 test ! -s conftest.err
23217 } && test -s conftest$ac_exeext &&
23218 $as_test_x conftest$ac_exeext; then
23219 am_cv_func_iconv=yes
23221 echo "$as_me: failed program was:" >&5
23222 sed 's/^/| /' conftest.$ac_ext >&5
23227 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23228 conftest$ac_exeext conftest.$ac_ext
23229 if test "$am_cv_func_iconv" != yes; then
23230 am_save_LIBS="$LIBS"
23231 LIBS="$LIBS -liconv"
23232 cat >conftest.$ac_ext <<_ACEOF
23235 cat confdefs.h >>conftest.$ac_ext
23236 cat >>conftest.$ac_ext <<_ACEOF
23237 /* end confdefs.h. */
23238 #include <stdlib.h>
23243 iconv_t cd = iconv_open("","");
23244 iconv(cd,NULL,NULL,NULL,NULL);
23250 rm -f conftest.$ac_objext conftest$ac_exeext
23251 if { (ac_try="$ac_link"
23252 case "(($ac_try" in
23253 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23254 *) ac_try_echo
=$ac_try;;
23256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23257 (eval "$ac_link") 2>conftest.er1
23259 grep -v '^ *+' conftest.er1
>conftest.err
23261 cat conftest.err
>&5
23262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23263 (exit $ac_status); } && {
23264 test -z "$ac_c_werror_flag" ||
23265 test ! -s conftest.err
23266 } && test -s conftest
$ac_exeext &&
23267 $as_test_x conftest
$ac_exeext; then
23268 am_cv_lib_iconv
=yes
23269 am_cv_func_iconv
=yes
23271 echo "$as_me: failed program was:" >&5
23272 sed 's/^/| /' conftest.
$ac_ext >&5
23277 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
23278 conftest
$ac_exeext conftest.
$ac_ext
23279 LIBS
="$am_save_LIBS"
23283 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
23284 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
23285 if test "$am_cv_func_iconv" = yes; then
23287 cat >>confdefs.h
<<\_ACEOF
23288 #define HAVE_ICONV 1
23291 { echo "$as_me:$LINENO: checking for iconv declaration" >&5
23292 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
23293 if test "${am_cv_proto_iconv+set}" = set; then
23294 echo $ECHO_N "(cached) $ECHO_C" >&6
23297 cat >conftest.
$ac_ext <<_ACEOF
23300 cat confdefs.h
>>conftest.
$ac_ext
23301 cat >>conftest.
$ac_ext <<_ACEOF
23302 /* end confdefs.h. */
23304 #include <stdlib.h>
23310 #if defined(__STDC__) || defined(__cplusplus)
23311 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
23324 rm -f conftest.
$ac_objext
23325 if { (ac_try
="$ac_compile"
23326 case "(($ac_try" in
23327 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23328 *) ac_try_echo=$ac_try;;
23330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23331 (eval "$ac_compile") 2>conftest.er1
23333 grep -v '^ *+' conftest.er1 >conftest.err
23335 cat conftest.err >&5
23336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23337 (exit $ac_status); } && {
23338 test -z "$ac_c_werror_flag" ||
23339 test ! -s conftest.err
23340 } && test -s conftest.$ac_objext; then
23341 am_cv_proto_iconv_arg1=""
23343 echo "$as_me: failed program was:" >&5
23344 sed 's/^/| /' conftest.$ac_ext >&5
23346 am_cv_proto_iconv_arg1="const"
23349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23350 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
23353 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" |
tr -s ' ' |
sed -e 's/( /(/'`
23354 { echo "$as_me:$LINENO: result: ${ac_t:-
23355 }$am_cv_proto_iconv" >&5
23356 echo "${ECHO_T}${ac_t:-
23357 }$am_cv_proto_iconv" >&6; }
23359 cat >>confdefs.h <<_ACEOF
23360 #define ICONV_CONST $am_cv_proto_iconv_arg1
23365 if test "$am_cv_lib_iconv" = yes; then
23371 { echo "$as_me:$LINENO: checking for NL_LOCALE_NAME macro" >&5
23372 echo $ECHO_N "checking for NL_LOCALE_NAME macro... $ECHO_C" >&6; }
23373 if test "${gt_cv_nl_locale_name+set}" = set; then
23374 echo $ECHO_N "(cached) $ECHO_C" >&6
23376 cat >conftest.$ac_ext <<_ACEOF
23379 cat confdefs.h >>conftest.$ac_ext
23380 cat >>conftest.$ac_ext <<_ACEOF
23381 /* end confdefs.h. */
23382 #include <langinfo.h>
23383 #include <locale.h>
23387 char* cs = nl_langinfo(_NL_LOCALE_NAME(LC_MESSAGES));
23392 rm -f conftest.$ac_objext conftest$ac_exeext
23393 if { (ac_try="$ac_link"
23394 case "(($ac_try" in
23395 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23396 *) ac_try_echo
=$ac_try;;
23398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23399 (eval "$ac_link") 2>conftest.er1
23401 grep -v '^ *+' conftest.er1
>conftest.err
23403 cat conftest.err
>&5
23404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23405 (exit $ac_status); } && {
23406 test -z "$ac_c_werror_flag" ||
23407 test ! -s conftest.err
23408 } && test -s conftest
$ac_exeext &&
23409 $as_test_x conftest
$ac_exeext; then
23410 gt_cv_nl_locale_name
=yes
23412 echo "$as_me: failed program was:" >&5
23413 sed 's/^/| /' conftest.
$ac_ext >&5
23415 gt_cv_nl_locale_name
=no
23418 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
23419 conftest
$ac_exeext conftest.
$ac_ext
23422 { echo "$as_me:$LINENO: result: $gt_cv_nl_locale_name" >&5
23423 echo "${ECHO_T}$gt_cv_nl_locale_name" >&6; }
23424 if test $gt_cv_nl_locale_name = yes; then
23426 cat >>confdefs.h
<<\_ACEOF
23427 #define HAVE_NL_LOCALE_NAME 1
23432 for ac_prog
in bison
23434 # Extract the first word of "$ac_prog", so it can be a program name with args.
23435 set dummy
$ac_prog; ac_word
=$2
23436 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23437 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23438 if test "${ac_cv_prog_INTLBISON+set}" = set; then
23439 echo $ECHO_N "(cached) $ECHO_C" >&6
23441 if test -n "$INTLBISON"; then
23442 ac_cv_prog_INTLBISON
="$INTLBISON" # Let the user override the test.
23444 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23445 for as_dir
in $PATH
23448 test -z "$as_dir" && as_dir
=.
23449 for ac_exec_ext
in '' $ac_executable_extensions; do
23450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23451 ac_cv_prog_INTLBISON
="$ac_prog"
23452 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23461 INTLBISON
=$ac_cv_prog_INTLBISON
23462 if test -n "$INTLBISON"; then
23463 { echo "$as_me:$LINENO: result: $INTLBISON" >&5
23464 echo "${ECHO_T}$INTLBISON" >&6; }
23466 { echo "$as_me:$LINENO: result: no" >&5
23467 echo "${ECHO_T}no" >&6; }
23471 test -n "$INTLBISON" && break
23474 if test -z "$INTLBISON"; then
23477 { echo "$as_me:$LINENO: checking version of bison" >&5
23478 echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
23479 ac_prog_version
=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
23480 case $ac_prog_version in
23481 '') ac_prog_version
="v. ?.??, bad"; ac_verc_fail
=yes;;
23482 1.2[6-9]* |
1.
[3-9][0-9]* |
[2-9].
*)
23483 ac_prog_version
="$ac_prog_version, ok"; ac_verc_fail
=no
;;
23484 *) ac_prog_version
="$ac_prog_version, bad"; ac_verc_fail
=yes;;
23486 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
23487 echo "${ECHO_T}$ac_prog_version" >&6; }
23489 if test $ac_verc_fail = yes; then
23494 { echo "$as_me:$LINENO: checking for long long int" >&5
23495 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
23496 if test "${ac_cv_type_long_long_int+set}" = set; then
23497 echo $ECHO_N "(cached) $ECHO_C" >&6
23499 cat >conftest.
$ac_ext <<_ACEOF
23502 cat confdefs.h
>>conftest.
$ac_ext
23503 cat >>conftest.
$ac_ext <<_ACEOF
23504 /* end confdefs.h. */
23505 long long int ll = 9223372036854775807ll;
23506 long long int nll = -9223372036854775807LL;
23507 typedef int a[((-9223372036854775807LL < 0
23508 && 0 < 9223372036854775807ll)
23514 long long int llmax = 9223372036854775807ll;
23515 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
23516 | (llmax / ll) | (llmax % ll));
23521 rm -f conftest.
$ac_objext conftest
$ac_exeext
23522 if { (ac_try
="$ac_link"
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_link") 2>conftest.er1
23530 grep -v '^ *+' conftest.er1 >conftest.err
23532 cat conftest.err >&5
23533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23534 (exit $ac_status); } && {
23535 test -z "$ac_c_werror_flag" ||
23536 test ! -s conftest.err
23537 } && test -s conftest$ac_exeext &&
23538 $as_test_x conftest$ac_exeext; then
23539 ac_cv_type_long_long_int=yes
23541 echo "$as_me: failed program was:" >&5
23542 sed 's/^/| /' conftest.$ac_ext >&5
23544 ac_cv_type_long_long_int=no
23547 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23548 conftest$ac_exeext conftest.$ac_ext
23550 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
23551 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
23552 if test $ac_cv_type_long_long_int = yes; then
23554 cat >>confdefs.h <<\_ACEOF
23555 #define HAVE_LONG_LONG_INT 1
23561 { echo "$as_me:$LINENO: checking for long double" >&5
23562 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
23563 if test "${gt_cv_c_long_double+set}" = set; then
23564 echo $ECHO_N "(cached) $ECHO_C" >&6
23566 if test "$GCC" = yes; then
23567 gt_cv_c_long_double=yes
23569 cat >conftest.$ac_ext <<_ACEOF
23572 cat confdefs.h >>conftest.$ac_ext
23573 cat >>conftest.$ac_ext <<_ACEOF
23574 /* end confdefs.h. */
23576 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
23577 long double foo = 0.0;
23578 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
23579 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
23589 rm -f conftest.$ac_objext
23590 if { (ac_try="$ac_compile"
23591 case "(($ac_try" in
23592 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23593 *) ac_try_echo
=$ac_try;;
23595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23596 (eval "$ac_compile") 2>conftest.er1
23598 grep -v '^ *+' conftest.er1
>conftest.err
23600 cat conftest.err
>&5
23601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23602 (exit $ac_status); } && {
23603 test -z "$ac_c_werror_flag" ||
23604 test ! -s conftest.err
23605 } && test -s conftest.
$ac_objext; then
23606 gt_cv_c_long_double
=yes
23608 echo "$as_me: failed program was:" >&5
23609 sed 's/^/| /' conftest.
$ac_ext >&5
23611 gt_cv_c_long_double
=no
23614 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23617 { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
23618 echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
23619 if test $gt_cv_c_long_double = yes; then
23621 cat >>confdefs.h
<<\_ACEOF
23622 #define HAVE_LONG_DOUBLE 1
23628 { echo "$as_me:$LINENO: checking for wchar_t" >&5
23629 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
23630 if test "${gt_cv_c_wchar_t+set}" = set; then
23631 echo $ECHO_N "(cached) $ECHO_C" >&6
23633 cat >conftest.
$ac_ext <<_ACEOF
23636 cat confdefs.h
>>conftest.
$ac_ext
23637 cat >>conftest.
$ac_ext <<_ACEOF
23638 /* end confdefs.h. */
23639 #include <stddef.h>
23640 wchar_t foo = (wchar_t)'\0';
23649 rm -f conftest.
$ac_objext
23650 if { (ac_try
="$ac_compile"
23651 case "(($ac_try" in
23652 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23653 *) ac_try_echo=$ac_try;;
23655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23656 (eval "$ac_compile") 2>conftest.er1
23658 grep -v '^ *+' conftest.er1 >conftest.err
23660 cat conftest.err >&5
23661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23662 (exit $ac_status); } && {
23663 test -z "$ac_c_werror_flag" ||
23664 test ! -s conftest.err
23665 } && test -s conftest.$ac_objext; then
23666 gt_cv_c_wchar_t=yes
23668 echo "$as_me: failed program was:" >&5
23669 sed 's/^/| /' conftest.$ac_ext >&5
23674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23676 { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
23677 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
23678 if test $gt_cv_c_wchar_t = yes; then
23680 cat >>confdefs.h <<\_ACEOF
23681 #define HAVE_WCHAR_T 1
23687 { echo "$as_me:$LINENO: checking for wint_t" >&5
23688 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
23689 if test "${gt_cv_c_wint_t+set}" = set; then
23690 echo $ECHO_N "(cached) $ECHO_C" >&6
23692 cat >conftest.$ac_ext <<_ACEOF
23695 cat confdefs.h >>conftest.$ac_ext
23696 cat >>conftest.$ac_ext <<_ACEOF
23697 /* end confdefs.h. */
23699 wint_t foo = (wchar_t)'\0';
23708 rm -f conftest.$ac_objext
23709 if { (ac_try="$ac_compile"
23710 case "(($ac_try" in
23711 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23712 *) ac_try_echo
=$ac_try;;
23714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23715 (eval "$ac_compile") 2>conftest.er1
23717 grep -v '^ *+' conftest.er1
>conftest.err
23719 cat conftest.err
>&5
23720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23721 (exit $ac_status); } && {
23722 test -z "$ac_c_werror_flag" ||
23723 test ! -s conftest.err
23724 } && test -s conftest.
$ac_objext; then
23727 echo "$as_me: failed program was:" >&5
23728 sed 's/^/| /' conftest.
$ac_ext >&5
23733 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23735 { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
23736 echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
23737 if test $gt_cv_c_wint_t = yes; then
23739 cat >>confdefs.h
<<\_ACEOF
23740 #define HAVE_WINT_T 1
23748 { echo "$as_me:$LINENO: checking for intmax_t" >&5
23749 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
23750 if test "${gt_cv_c_intmax_t+set}" = set; then
23751 echo $ECHO_N "(cached) $ECHO_C" >&6
23753 cat >conftest.
$ac_ext <<_ACEOF
23756 cat confdefs.h
>>conftest.
$ac_ext
23757 cat >>conftest.
$ac_ext <<_ACEOF
23758 /* end confdefs.h. */
23760 #include <stddef.h>
23761 #include <stdlib.h>
23762 #if HAVE_STDINT_H_WITH_UINTMAX
23763 #include <stdint.h>
23765 #if HAVE_INTTYPES_H_WITH_UINTMAX
23766 #include <inttypes.h>
23778 rm -f conftest.
$ac_objext
23779 if { (ac_try
="$ac_compile"
23780 case "(($ac_try" in
23781 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23782 *) ac_try_echo=$ac_try;;
23784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23785 (eval "$ac_compile") 2>conftest.er1
23787 grep -v '^ *+' conftest.er1 >conftest.err
23789 cat conftest.err >&5
23790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23791 (exit $ac_status); } && {
23792 test -z "$ac_c_werror_flag" ||
23793 test ! -s conftest.err
23794 } && test -s conftest.$ac_objext; then
23795 gt_cv_c_intmax_t=yes
23797 echo "$as_me: failed program was:" >&5
23798 sed 's/^/| /' conftest.$ac_ext >&5
23800 gt_cv_c_intmax_t=no
23803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23805 { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
23806 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
23807 if test $gt_cv_c_intmax_t = yes; then
23809 cat >>confdefs.h <<\_ACEOF
23810 #define HAVE_INTMAX_T 1
23817 { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
23818 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
23819 if test "${gt_cv_func_printf_posix+set}" = set; then
23820 echo $ECHO_N "(cached) $ECHO_C" >&6
23823 if test "$cross_compiling" = yes; then
23825 cat >conftest.$ac_ext <<_ACEOF
23828 cat confdefs.h >>conftest.$ac_ext
23829 cat >>conftest.$ac_ext <<_ACEOF
23830 /* end confdefs.h. */
23832 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
23837 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23838 $EGREP "notposix" >/dev/null 2>&1; then
23839 gt_cv_func_printf_posix="guessing no"
23841 gt_cv_func_printf_posix="guessing yes"
23847 cat >conftest.$ac_ext <<_ACEOF
23850 cat confdefs.h >>conftest.$ac_ext
23851 cat >>conftest.$ac_ext <<_ACEOF
23852 /* end confdefs.h. */
23855 #include <string.h>
23856 /* The string "%2$d %1$d", with dollar characters protected from the shell's
23857 dollar expansion (possibly an autoconf bug). */
23858 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
23859 static char buf[100];
23862 sprintf (buf, format, 33, 55);
23863 return (strcmp (buf, "55 33") != 0);
23866 rm -f conftest$ac_exeext
23867 if { (ac_try="$ac_link"
23868 case "(($ac_try" in
23869 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23870 *) ac_try_echo
=$ac_try;;
23872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23873 (eval "$ac_link") 2>&5
23875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23876 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
23877 { (case "(($ac_try" in
23878 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23879 *) ac_try_echo=$ac_try;;
23881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23882 (eval "$ac_try") 2>&5
23884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23885 (exit $ac_status); }; }; then
23886 gt_cv_func_printf_posix=yes
23888 echo "$as_me: program exited with status $ac_status" >&5
23889 echo "$as_me: failed program was:" >&5
23890 sed 's/^/| /' conftest.$ac_ext >&5
23892 ( exit $ac_status )
23893 gt_cv_func_printf_posix=no
23895 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23901 { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
23902 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
23903 case $gt_cv_func_printf_posix in
23906 cat >>confdefs.h <<\_ACEOF
23907 #define HAVE_POSIX_PRINTF 1
23914 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
23915 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
23916 if test "${ac_cv_gnu_library_2_1+set}" = set; then
23917 echo $ECHO_N "(cached) $ECHO_C" >&6
23919 cat >conftest.$ac_ext <<_ACEOF
23922 cat confdefs.h >>conftest.$ac_ext
23923 cat >>conftest.$ac_ext <<_ACEOF
23924 /* end confdefs.h. */
23926 #include <features.h>
23927 #ifdef __GNU_LIBRARY__
23928 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
23934 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23935 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
23936 ac_cv_gnu_library_2_1=yes
23938 ac_cv_gnu_library_2_1=no
23945 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
23946 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
23948 GLIBC21="$ac_cv_gnu_library_2_1"
23953 for ac_header in stdint.h
23955 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
23956 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23957 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23958 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23959 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23960 echo $ECHO_N "(cached) $ECHO_C" >&6
23962 ac_res=`eval echo '${'$as_ac_Header'}'`
23963 { echo "$as_me:$LINENO: result: $ac_res" >&5
23964 echo "${ECHO_T}$ac_res" >&6; }
23966 # Is the header compilable?
23967 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23968 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23969 cat >conftest.$ac_ext <<_ACEOF
23972 cat confdefs.h >>conftest.$ac_ext
23973 cat >>conftest.$ac_ext <<_ACEOF
23974 /* end confdefs.h. */
23975 $ac_includes_default
23976 #include <$ac_header>
23978 rm -f conftest.$ac_objext
23979 if { (ac_try="$ac_compile"
23980 case "(($ac_try" in
23981 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23982 *) ac_try_echo
=$ac_try;;
23984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23985 (eval "$ac_compile") 2>conftest.er1
23987 grep -v '^ *+' conftest.er1
>conftest.err
23989 cat conftest.err
>&5
23990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23991 (exit $ac_status); } && {
23992 test -z "$ac_c_werror_flag" ||
23993 test ! -s conftest.err
23994 } && test -s conftest.
$ac_objext; then
23995 ac_header_compiler
=yes
23997 echo "$as_me: failed program was:" >&5
23998 sed 's/^/| /' conftest.
$ac_ext >&5
24000 ac_header_compiler
=no
24003 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24004 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24005 echo "${ECHO_T}$ac_header_compiler" >&6; }
24007 # Is the header present?
24008 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24009 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24010 cat >conftest.
$ac_ext <<_ACEOF
24013 cat confdefs.h
>>conftest.
$ac_ext
24014 cat >>conftest.
$ac_ext <<_ACEOF
24015 /* end confdefs.h. */
24016 #include <$ac_header>
24018 if { (ac_try
="$ac_cpp conftest.$ac_ext"
24019 case "(($ac_try" in
24020 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24021 *) ac_try_echo=$ac_try;;
24023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24024 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24026 grep -v '^ *+' conftest.er1 >conftest.err
24028 cat conftest.err >&5
24029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24030 (exit $ac_status); } >/dev/null && {
24031 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24032 test ! -s conftest.err
24034 ac_header_preproc=yes
24036 echo "$as_me: failed program was:" >&5
24037 sed 's/^/| /' conftest.$ac_ext >&5
24039 ac_header_preproc=no
24042 rm -f conftest.err conftest.$ac_ext
24043 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24044 echo "${ECHO_T}$ac_header_preproc" >&6; }
24046 # So? What about this header?
24047 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24049 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24050 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24051 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24052 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24053 ac_header_preproc=yes
24056 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24057 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24058 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24059 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24060 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24061 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24062 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24063 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24064 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24065 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24066 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24067 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24071 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24072 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24073 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24074 echo $ECHO_N "(cached) $ECHO_C" >&6
24076 eval "$as_ac_Header=\$ac_header_preproc"
24078 ac_res=`eval echo '${'$as_ac_Header'}'`
24079 { echo "$as_me:$LINENO: result: $ac_res" >&5
24080 echo "${ECHO_T}$ac_res" >&6; }
24083 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24084 cat >>confdefs.h <<_ACEOF
24085 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
24092 { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
24093 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
24094 if test "${gl_cv_size_max+set}" = set; then
24095 echo $ECHO_N "(cached) $ECHO_C" >&6
24099 cat >conftest.$ac_ext <<_ACEOF
24102 cat confdefs.h >>conftest.$ac_ext
24103 cat >>conftest.$ac_ext <<_ACEOF
24104 /* end confdefs.h. */
24106 #include <limits.h>
24108 #include <stdint.h>
24115 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24116 $EGREP "Found it" >/dev/null 2>&1; then
24121 if test -z "$gl_cv_size_max"; then
24122 if test "$cross_compiling" = yes; then
24123 # Depending upon the size, compute the lo and hi bounds.
24124 cat >conftest.$ac_ext <<_ACEOF
24127 cat confdefs.h >>conftest.$ac_ext
24128 cat >>conftest.$ac_ext <<_ACEOF
24129 /* end confdefs.h. */
24130 #include <stddef.h>
24131 #include <limits.h>
24135 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= 0)];
24142 rm -f conftest.$ac_objext
24143 if { (ac_try="$ac_compile"
24144 case "(($ac_try" in
24145 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24146 *) ac_try_echo
=$ac_try;;
24148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24149 (eval "$ac_compile") 2>conftest.er1
24151 grep -v '^ *+' conftest.er1
>conftest.err
24153 cat conftest.err
>&5
24154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24155 (exit $ac_status); } && {
24156 test -z "$ac_c_werror_flag" ||
24157 test ! -s conftest.err
24158 } && test -s conftest.
$ac_objext; then
24161 cat >conftest.
$ac_ext <<_ACEOF
24164 cat confdefs.h
>>conftest.
$ac_ext
24165 cat >>conftest.
$ac_ext <<_ACEOF
24166 /* end confdefs.h. */
24167 #include <stddef.h>
24168 #include <limits.h>
24172 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
24179 rm -f conftest.
$ac_objext
24180 if { (ac_try
="$ac_compile"
24181 case "(($ac_try" in
24182 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24183 *) ac_try_echo=$ac_try;;
24185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24186 (eval "$ac_compile") 2>conftest.er1
24188 grep -v '^ *+' conftest.er1 >conftest.err
24190 cat conftest.err >&5
24191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24192 (exit $ac_status); } && {
24193 test -z "$ac_c_werror_flag" ||
24194 test ! -s conftest.err
24195 } && test -s conftest.$ac_objext; then
24196 ac_hi=$ac_mid; break
24198 echo "$as_me: failed program was:" >&5
24199 sed 's/^/| /' conftest.$ac_ext >&5
24201 ac_lo=`expr $ac_mid + 1`
24202 if test $ac_lo -le $ac_mid; then
24206 ac_mid=`expr 2 '*' $ac_mid + 1`
24209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24212 echo "$as_me: failed program was:" >&5
24213 sed 's/^/| /' conftest.$ac_ext >&5
24215 cat >conftest.$ac_ext <<_ACEOF
24218 cat confdefs.h >>conftest.$ac_ext
24219 cat >>conftest.$ac_ext <<_ACEOF
24220 /* end confdefs.h. */
24221 #include <stddef.h>
24222 #include <limits.h>
24226 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) < 0)];
24233 rm -f conftest.$ac_objext
24234 if { (ac_try="$ac_compile"
24235 case "(($ac_try" in
24236 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24237 *) ac_try_echo
=$ac_try;;
24239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24240 (eval "$ac_compile") 2>conftest.er1
24242 grep -v '^ *+' conftest.er1
>conftest.err
24244 cat conftest.err
>&5
24245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24246 (exit $ac_status); } && {
24247 test -z "$ac_c_werror_flag" ||
24248 test ! -s conftest.err
24249 } && test -s conftest.
$ac_objext; then
24252 cat >conftest.
$ac_ext <<_ACEOF
24255 cat confdefs.h
>>conftest.
$ac_ext
24256 cat >>conftest.
$ac_ext <<_ACEOF
24257 /* end confdefs.h. */
24258 #include <stddef.h>
24259 #include <limits.h>
24263 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= $ac_mid)];
24270 rm -f conftest.
$ac_objext
24271 if { (ac_try
="$ac_compile"
24272 case "(($ac_try" in
24273 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24274 *) ac_try_echo=$ac_try;;
24276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24277 (eval "$ac_compile") 2>conftest.er1
24279 grep -v '^ *+' conftest.er1 >conftest.err
24281 cat conftest.err >&5
24282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24283 (exit $ac_status); } && {
24284 test -z "$ac_c_werror_flag" ||
24285 test ! -s conftest.err
24286 } && test -s conftest.$ac_objext; then
24287 ac_lo=$ac_mid; break
24289 echo "$as_me: failed program was:" >&5
24290 sed 's/^/| /' conftest.$ac_ext >&5
24292 ac_hi=`expr '(' $ac_mid ')' - 1`
24293 if test $ac_mid -le $ac_hi; then
24297 ac_mid=`expr 2 '*' $ac_mid`
24300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24303 echo "$as_me: failed program was:" >&5
24304 sed 's/^/| /' conftest.$ac_ext >&5
24309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24313 # Binary search between lo and hi bounds.
24314 while test "x$ac_lo" != "x$ac_hi"; do
24315 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24316 cat >conftest.$ac_ext <<_ACEOF
24319 cat confdefs.h >>conftest.$ac_ext
24320 cat >>conftest.$ac_ext <<_ACEOF
24321 /* end confdefs.h. */
24322 #include <stddef.h>
24323 #include <limits.h>
24327 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
24334 rm -f conftest.$ac_objext
24335 if { (ac_try="$ac_compile"
24336 case "(($ac_try" in
24337 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24338 *) ac_try_echo
=$ac_try;;
24340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24341 (eval "$ac_compile") 2>conftest.er1
24343 grep -v '^ *+' conftest.er1
>conftest.err
24345 cat conftest.err
>&5
24346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24347 (exit $ac_status); } && {
24348 test -z "$ac_c_werror_flag" ||
24349 test ! -s conftest.err
24350 } && test -s conftest.
$ac_objext; then
24353 echo "$as_me: failed program was:" >&5
24354 sed 's/^/| /' conftest.
$ac_ext >&5
24356 ac_lo
=`expr '(' $ac_mid ')' + 1`
24359 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24362 ?
*) size_t_bits_minus_1
=$ac_lo;;
24363 '') size_t_bits_minus_1
= ;;
24366 cat >conftest.
$ac_ext <<_ACEOF
24369 cat confdefs.h
>>conftest.
$ac_ext
24370 cat >>conftest.
$ac_ext <<_ACEOF
24371 /* end confdefs.h. */
24372 #include <stddef.h>
24373 #include <limits.h>
24374 static long int longval () { return sizeof (size_t) * CHAR_BIT - 1; }
24375 static unsigned long int ulongval () { return sizeof (size_t) * CHAR_BIT - 1; }
24377 #include <stdlib.h>
24382 FILE *f = fopen ("conftest.val", "w");
24385 if ((sizeof (size_t) * CHAR_BIT - 1) < 0)
24387 long int i = longval ();
24388 if (i != (sizeof (size_t) * CHAR_BIT - 1))
24390 fprintf (f, "%ld\n", i);
24394 unsigned long int i = ulongval ();
24395 if (i != (sizeof (size_t) * CHAR_BIT - 1))
24397 fprintf (f, "%lu\n", i);
24399 return ferror (f) || fclose (f) != 0;
24405 rm -f conftest
$ac_exeext
24406 if { (ac_try
="$ac_link"
24407 case "(($ac_try" in
24408 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24409 *) ac_try_echo=$ac_try;;
24411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24412 (eval "$ac_link") 2>&5
24414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24415 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24416 { (case "(($ac_try" in
24417 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24418 *) ac_try_echo
=$ac_try;;
24420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24421 (eval "$ac_try") 2>&5
24423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24424 (exit $ac_status); }; }; then
24425 size_t_bits_minus_1
=`cat conftest.val`
24427 echo "$as_me: program exited with status $ac_status" >&5
24428 echo "$as_me: failed program was:" >&5
24429 sed 's/^/| /' conftest.
$ac_ext >&5
24431 ( exit $ac_status )
24432 size_t_bits_minus_1
=
24434 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
24438 if test "$cross_compiling" = yes; then
24439 # Depending upon the size, compute the lo and hi bounds.
24440 cat >conftest.
$ac_ext <<_ACEOF
24443 cat confdefs.h
>>conftest.
$ac_ext
24444 cat >>conftest.
$ac_ext <<_ACEOF
24445 /* end confdefs.h. */
24446 #include <stddef.h>
24450 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
24457 rm -f conftest.
$ac_objext
24458 if { (ac_try
="$ac_compile"
24459 case "(($ac_try" in
24460 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24461 *) ac_try_echo=$ac_try;;
24463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24464 (eval "$ac_compile") 2>conftest.er1
24466 grep -v '^ *+' conftest.er1 >conftest.err
24468 cat conftest.err >&5
24469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24470 (exit $ac_status); } && {
24471 test -z "$ac_c_werror_flag" ||
24472 test ! -s conftest.err
24473 } && test -s conftest.$ac_objext; then
24476 cat >conftest.$ac_ext <<_ACEOF
24479 cat confdefs.h >>conftest.$ac_ext
24480 cat >>conftest.$ac_ext <<_ACEOF
24481 /* end confdefs.h. */
24482 #include <stddef.h>
24486 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
24493 rm -f conftest.$ac_objext
24494 if { (ac_try="$ac_compile"
24495 case "(($ac_try" in
24496 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24497 *) ac_try_echo
=$ac_try;;
24499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24500 (eval "$ac_compile") 2>conftest.er1
24502 grep -v '^ *+' conftest.er1
>conftest.err
24504 cat conftest.err
>&5
24505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24506 (exit $ac_status); } && {
24507 test -z "$ac_c_werror_flag" ||
24508 test ! -s conftest.err
24509 } && test -s conftest.
$ac_objext; then
24510 ac_hi
=$ac_mid; break
24512 echo "$as_me: failed program was:" >&5
24513 sed 's/^/| /' conftest.
$ac_ext >&5
24515 ac_lo
=`expr $ac_mid + 1`
24516 if test $ac_lo -le $ac_mid; then
24520 ac_mid
=`expr 2 '*' $ac_mid + 1`
24523 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24526 echo "$as_me: failed program was:" >&5
24527 sed 's/^/| /' conftest.
$ac_ext >&5
24529 cat >conftest.
$ac_ext <<_ACEOF
24532 cat confdefs.h
>>conftest.
$ac_ext
24533 cat >>conftest.
$ac_ext <<_ACEOF
24534 /* end confdefs.h. */
24535 #include <stddef.h>
24539 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
24546 rm -f conftest.
$ac_objext
24547 if { (ac_try
="$ac_compile"
24548 case "(($ac_try" in
24549 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24550 *) ac_try_echo=$ac_try;;
24552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24553 (eval "$ac_compile") 2>conftest.er1
24555 grep -v '^ *+' conftest.er1 >conftest.err
24557 cat conftest.err >&5
24558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24559 (exit $ac_status); } && {
24560 test -z "$ac_c_werror_flag" ||
24561 test ! -s conftest.err
24562 } && test -s conftest.$ac_objext; then
24565 cat >conftest.$ac_ext <<_ACEOF
24568 cat confdefs.h >>conftest.$ac_ext
24569 cat >>conftest.$ac_ext <<_ACEOF
24570 /* end confdefs.h. */
24571 #include <stddef.h>
24575 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
24582 rm -f conftest.$ac_objext
24583 if { (ac_try="$ac_compile"
24584 case "(($ac_try" in
24585 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24586 *) ac_try_echo
=$ac_try;;
24588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24589 (eval "$ac_compile") 2>conftest.er1
24591 grep -v '^ *+' conftest.er1
>conftest.err
24593 cat conftest.err
>&5
24594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24595 (exit $ac_status); } && {
24596 test -z "$ac_c_werror_flag" ||
24597 test ! -s conftest.err
24598 } && test -s conftest.
$ac_objext; then
24599 ac_lo
=$ac_mid; break
24601 echo "$as_me: failed program was:" >&5
24602 sed 's/^/| /' conftest.
$ac_ext >&5
24604 ac_hi
=`expr '(' $ac_mid ')' - 1`
24605 if test $ac_mid -le $ac_hi; then
24609 ac_mid
=`expr 2 '*' $ac_mid`
24612 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24615 echo "$as_me: failed program was:" >&5
24616 sed 's/^/| /' conftest.
$ac_ext >&5
24621 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24624 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24625 # Binary search between lo and hi bounds.
24626 while test "x$ac_lo" != "x$ac_hi"; do
24627 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24628 cat >conftest.
$ac_ext <<_ACEOF
24631 cat confdefs.h
>>conftest.
$ac_ext
24632 cat >>conftest.
$ac_ext <<_ACEOF
24633 /* end confdefs.h. */
24634 #include <stddef.h>
24638 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
24645 rm -f conftest.
$ac_objext
24646 if { (ac_try
="$ac_compile"
24647 case "(($ac_try" in
24648 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24649 *) ac_try_echo=$ac_try;;
24651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24652 (eval "$ac_compile") 2>conftest.er1
24654 grep -v '^ *+' conftest.er1 >conftest.err
24656 cat conftest.err >&5
24657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24658 (exit $ac_status); } && {
24659 test -z "$ac_c_werror_flag" ||
24660 test ! -s conftest.err
24661 } && test -s conftest.$ac_objext; then
24664 echo "$as_me: failed program was:" >&5
24665 sed 's/^/| /' conftest.$ac_ext >&5
24667 ac_lo=`expr '(' $ac_mid ')' + 1`
24670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24673 ?*) fits_in_uint=$ac_lo;;
24674 '') fits_in_uint= ;;
24677 cat >conftest.$ac_ext <<_ACEOF
24680 cat confdefs.h >>conftest.$ac_ext
24681 cat >>conftest.$ac_ext <<_ACEOF
24682 /* end confdefs.h. */
24683 #include <stddef.h>
24684 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
24685 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
24687 #include <stdlib.h>
24692 FILE *f = fopen ("conftest.val", "w");
24695 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
24697 long int i = longval ();
24698 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
24700 fprintf (f, "%ld\n", i);
24704 unsigned long int i = ulongval ();
24705 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
24707 fprintf (f, "%lu\n", i);
24709 return ferror (f) || fclose (f) != 0;
24715 rm -f conftest$ac_exeext
24716 if { (ac_try="$ac_link"
24717 case "(($ac_try" in
24718 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24719 *) ac_try_echo
=$ac_try;;
24721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24722 (eval "$ac_link") 2>&5
24724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24725 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
24726 { (case "(($ac_try" in
24727 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24728 *) ac_try_echo=$ac_try;;
24730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24731 (eval "$ac_try") 2>&5
24733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24734 (exit $ac_status); }; }; then
24735 fits_in_uint=`cat conftest.val
`
24737 echo "$as_me: program exited with status $ac_status" >&5
24738 echo "$as_me: failed program was:" >&5
24739 sed 's/^/| /' conftest.$ac_ext >&5
24741 ( exit $ac_status )
24744 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24748 if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
24749 if test $fits_in_uint = 1; then
24750 cat >conftest.$ac_ext <<_ACEOF
24753 cat confdefs.h >>conftest.$ac_ext
24754 cat >>conftest.$ac_ext <<_ACEOF
24755 /* end confdefs.h. */
24756 #include <stddef.h>
24758 extern unsigned long foo;
24768 rm -f conftest.$ac_objext
24769 if { (ac_try="$ac_compile"
24770 case "(($ac_try" in
24771 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24772 *) ac_try_echo
=$ac_try;;
24774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24775 (eval "$ac_compile") 2>conftest.er1
24777 grep -v '^ *+' conftest.er1
>conftest.err
24779 cat conftest.err
>&5
24780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24781 (exit $ac_status); } && {
24782 test -z "$ac_c_werror_flag" ||
24783 test ! -s conftest.err
24784 } && test -s conftest.
$ac_objext; then
24787 echo "$as_me: failed program was:" >&5
24788 sed 's/^/| /' conftest.
$ac_ext >&5
24793 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24795 if test $fits_in_uint = 1; then
24796 gl_cv_size_max
="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
24798 gl_cv_size_max
="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
24801 gl_cv_size_max
='((size_t)~(size_t)0)'
24807 { echo "$as_me:$LINENO: result: $gl_cv_size_max" >&5
24808 echo "${ECHO_T}$gl_cv_size_max" >&6; }
24809 if test "$gl_cv_size_max" != yes; then
24811 cat >>confdefs.h
<<_ACEOF
24812 #define SIZE_MAX $gl_cv_size_max
24821 for ac_header
in stdint.h
24823 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24824 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24825 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24826 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24827 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24828 echo $ECHO_N "(cached) $ECHO_C" >&6
24830 ac_res
=`eval echo '${'$as_ac_Header'}'`
24831 { echo "$as_me:$LINENO: result: $ac_res" >&5
24832 echo "${ECHO_T}$ac_res" >&6; }
24834 # Is the header compilable?
24835 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24836 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24837 cat >conftest.
$ac_ext <<_ACEOF
24840 cat confdefs.h
>>conftest.
$ac_ext
24841 cat >>conftest.
$ac_ext <<_ACEOF
24842 /* end confdefs.h. */
24843 $ac_includes_default
24844 #include <$ac_header>
24846 rm -f conftest.
$ac_objext
24847 if { (ac_try
="$ac_compile"
24848 case "(($ac_try" in
24849 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24850 *) ac_try_echo=$ac_try;;
24852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24853 (eval "$ac_compile") 2>conftest.er1
24855 grep -v '^ *+' conftest.er1 >conftest.err
24857 cat conftest.err >&5
24858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24859 (exit $ac_status); } && {
24860 test -z "$ac_c_werror_flag" ||
24861 test ! -s conftest.err
24862 } && test -s conftest.$ac_objext; then
24863 ac_header_compiler=yes
24865 echo "$as_me: failed program was:" >&5
24866 sed 's/^/| /' conftest.$ac_ext >&5
24868 ac_header_compiler=no
24871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24872 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24873 echo "${ECHO_T}$ac_header_compiler" >&6; }
24875 # Is the header present?
24876 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24877 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24878 cat >conftest.$ac_ext <<_ACEOF
24881 cat confdefs.h >>conftest.$ac_ext
24882 cat >>conftest.$ac_ext <<_ACEOF
24883 /* end confdefs.h. */
24884 #include <$ac_header>
24886 if { (ac_try="$ac_cpp conftest.$ac_ext"
24887 case "(($ac_try" in
24888 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24889 *) ac_try_echo
=$ac_try;;
24891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24892 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24894 grep -v '^ *+' conftest.er1
>conftest.err
24896 cat conftest.err
>&5
24897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24898 (exit $ac_status); } >/dev
/null
&& {
24899 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24900 test ! -s conftest.err
24902 ac_header_preproc
=yes
24904 echo "$as_me: failed program was:" >&5
24905 sed 's/^/| /' conftest.
$ac_ext >&5
24907 ac_header_preproc
=no
24910 rm -f conftest.err conftest.
$ac_ext
24911 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24912 echo "${ECHO_T}$ac_header_preproc" >&6; }
24914 # So? What about this header?
24915 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24917 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24918 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24919 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24920 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24921 ac_header_preproc
=yes
24924 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24925 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24926 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24927 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24928 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24929 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24930 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24931 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24932 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24933 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24934 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24935 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24939 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24940 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24941 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24942 echo $ECHO_N "(cached) $ECHO_C" >&6
24944 eval "$as_ac_Header=\$ac_header_preproc"
24946 ac_res
=`eval echo '${'$as_ac_Header'}'`
24947 { echo "$as_me:$LINENO: result: $ac_res" >&5
24948 echo "${ECHO_T}$ac_res" >&6; }
24951 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24952 cat >>confdefs.h
<<_ACEOF
24953 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24962 { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
24963 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
24964 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
24965 echo $ECHO_N "(cached) $ECHO_C" >&6
24967 gt_save_LIBS
="$LIBS"
24968 LIBS
="$LIBS -Wl,-framework -Wl,CoreFoundation"
24969 cat >conftest.
$ac_ext <<_ACEOF
24972 cat confdefs.h
>>conftest.
$ac_ext
24973 cat >>conftest.
$ac_ext <<_ACEOF
24974 /* end confdefs.h. */
24975 #include <CoreFoundation/CFPreferences.h>
24979 CFPreferencesCopyAppValue(NULL, NULL)
24984 rm -f conftest.
$ac_objext conftest
$ac_exeext
24985 if { (ac_try
="$ac_link"
24986 case "(($ac_try" in
24987 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24988 *) ac_try_echo=$ac_try;;
24990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24991 (eval "$ac_link") 2>conftest.er1
24993 grep -v '^ *+' conftest.er1 >conftest.err
24995 cat conftest.err >&5
24996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24997 (exit $ac_status); } && {
24998 test -z "$ac_c_werror_flag" ||
24999 test ! -s conftest.err
25000 } && test -s conftest$ac_exeext &&
25001 $as_test_x conftest$ac_exeext; then
25002 gt_cv_func_CFPreferencesCopyAppValue=yes
25004 echo "$as_me: failed program was:" >&5
25005 sed 's/^/| /' conftest.$ac_ext >&5
25007 gt_cv_func_CFPreferencesCopyAppValue=no
25010 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25011 conftest$ac_exeext conftest.$ac_ext
25012 LIBS="$gt_save_LIBS"
25014 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
25015 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
25016 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
25018 cat >>confdefs.h <<\_ACEOF
25019 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
25023 { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
25024 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
25025 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
25026 echo $ECHO_N "(cached) $ECHO_C" >&6
25028 gt_save_LIBS="$LIBS"
25029 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
25030 cat >conftest.$ac_ext <<_ACEOF
25033 cat confdefs.h >>conftest.$ac_ext
25034 cat >>conftest.$ac_ext <<_ACEOF
25035 /* end confdefs.h. */
25036 #include <CoreFoundation/CFLocale.h>
25040 CFLocaleCopyCurrent();
25045 rm -f conftest.$ac_objext conftest$ac_exeext
25046 if { (ac_try="$ac_link"
25047 case "(($ac_try" in
25048 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25049 *) ac_try_echo
=$ac_try;;
25051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25052 (eval "$ac_link") 2>conftest.er1
25054 grep -v '^ *+' conftest.er1
>conftest.err
25056 cat conftest.err
>&5
25057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25058 (exit $ac_status); } && {
25059 test -z "$ac_c_werror_flag" ||
25060 test ! -s conftest.err
25061 } && test -s conftest
$ac_exeext &&
25062 $as_test_x conftest
$ac_exeext; then
25063 gt_cv_func_CFLocaleCopyCurrent
=yes
25065 echo "$as_me: failed program was:" >&5
25066 sed 's/^/| /' conftest.
$ac_ext >&5
25068 gt_cv_func_CFLocaleCopyCurrent
=no
25071 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
25072 conftest
$ac_exeext conftest.
$ac_ext
25073 LIBS
="$gt_save_LIBS"
25075 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
25076 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
25077 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
25079 cat >>confdefs.h
<<\_ACEOF
25080 #define HAVE_CFLOCALECOPYCURRENT 1
25085 if test $gt_cv_func_CFPreferencesCopyAppValue = yes ||
test $gt_cv_func_CFLocaleCopyCurrent = yes; then
25086 INTL_MACOSX_LIBS
="-Wl,-framework -Wl,CoreFoundation"
25095 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
25096 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
25097 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
25098 echo $ECHO_N "(cached) $ECHO_C" >&6
25100 cat >conftest.
$ac_ext <<_ACEOF
25103 cat confdefs.h
>>conftest.
$ac_ext
25104 cat >>conftest.
$ac_ext <<_ACEOF
25105 /* end confdefs.h. */
25106 $ac_includes_default
25107 typedef ptrdiff_t ac__type_new_;
25111 if ((ac__type_new_ *) 0)
25113 if (sizeof (ac__type_new_))
25119 rm -f conftest.
$ac_objext
25120 if { (ac_try
="$ac_compile"
25121 case "(($ac_try" in
25122 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25123 *) ac_try_echo=$ac_try;;
25125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25126 (eval "$ac_compile") 2>conftest.er1
25128 grep -v '^ *+' conftest.er1 >conftest.err
25130 cat conftest.err >&5
25131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25132 (exit $ac_status); } && {
25133 test -z "$ac_c_werror_flag" ||
25134 test ! -s conftest.err
25135 } && test -s conftest.$ac_objext; then
25136 ac_cv_type_ptrdiff_t=yes
25138 echo "$as_me: failed program was:" >&5
25139 sed 's/^/| /' conftest.$ac_ext >&5
25141 ac_cv_type_ptrdiff_t=no
25144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25146 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
25147 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
25148 if test $ac_cv_type_ptrdiff_t = yes; then
25152 cat >>confdefs.h <<\_ACEOF
25153 #define ptrdiff_t long
25162 for ac_header in stddef.h stdlib.h string.h
25164 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
25165 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25166 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25167 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25168 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25169 echo $ECHO_N "(cached) $ECHO_C" >&6
25171 ac_res=`eval echo '${'$as_ac_Header'}'`
25172 { echo "$as_me:$LINENO: result: $ac_res" >&5
25173 echo "${ECHO_T}$ac_res" >&6; }
25175 # Is the header compilable?
25176 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
25177 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
25178 cat >conftest.$ac_ext <<_ACEOF
25181 cat confdefs.h >>conftest.$ac_ext
25182 cat >>conftest.$ac_ext <<_ACEOF
25183 /* end confdefs.h. */
25184 $ac_includes_default
25185 #include <$ac_header>
25187 rm -f conftest.$ac_objext
25188 if { (ac_try="$ac_compile"
25189 case "(($ac_try" in
25190 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25191 *) ac_try_echo
=$ac_try;;
25193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25194 (eval "$ac_compile") 2>conftest.er1
25196 grep -v '^ *+' conftest.er1
>conftest.err
25198 cat conftest.err
>&5
25199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25200 (exit $ac_status); } && {
25201 test -z "$ac_c_werror_flag" ||
25202 test ! -s conftest.err
25203 } && test -s conftest.
$ac_objext; then
25204 ac_header_compiler
=yes
25206 echo "$as_me: failed program was:" >&5
25207 sed 's/^/| /' conftest.
$ac_ext >&5
25209 ac_header_compiler
=no
25212 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25213 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25214 echo "${ECHO_T}$ac_header_compiler" >&6; }
25216 # Is the header present?
25217 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
25218 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
25219 cat >conftest.
$ac_ext <<_ACEOF
25222 cat confdefs.h
>>conftest.
$ac_ext
25223 cat >>conftest.
$ac_ext <<_ACEOF
25224 /* end confdefs.h. */
25225 #include <$ac_header>
25227 if { (ac_try
="$ac_cpp conftest.$ac_ext"
25228 case "(($ac_try" in
25229 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25230 *) ac_try_echo=$ac_try;;
25232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25233 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25235 grep -v '^ *+' conftest.er1 >conftest.err
25237 cat conftest.err >&5
25238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25239 (exit $ac_status); } >/dev/null && {
25240 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25241 test ! -s conftest.err
25243 ac_header_preproc=yes
25245 echo "$as_me: failed program was:" >&5
25246 sed 's/^/| /' conftest.$ac_ext >&5
25248 ac_header_preproc=no
25251 rm -f conftest.err conftest.$ac_ext
25252 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25253 echo "${ECHO_T}$ac_header_preproc" >&6; }
25255 # So? What about this header?
25256 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25258 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25259 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25260 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25261 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25262 ac_header_preproc=yes
25265 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25266 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25267 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25268 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25269 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25270 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25271 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25272 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25273 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25274 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25275 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25276 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25280 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25281 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25282 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25283 echo $ECHO_N "(cached) $ECHO_C" >&6
25285 eval "$as_ac_Header=\$ac_header_preproc"
25287 ac_res=`eval echo '${'$as_ac_Header'}'`
25288 { echo "$as_me:$LINENO: result: $ac_res" >&5
25289 echo "${ECHO_T}$ac_res" >&6; }
25292 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25293 cat >>confdefs.h <<_ACEOF
25294 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
25308 for ac_func in asprintf fwprintf putenv setenv setlocale snprintf wcslen
25310 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
25311 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25312 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25313 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25314 echo $ECHO_N "(cached) $ECHO_C" >&6
25316 cat >conftest.$ac_ext <<_ACEOF
25319 cat confdefs.h >>conftest.$ac_ext
25320 cat >>conftest.$ac_ext <<_ACEOF
25321 /* end confdefs.h. */
25322 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25323 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25324 #define $ac_func innocuous_$ac_func
25326 /* System header to define __stub macros and hopefully few prototypes,
25327 which can conflict with char $ac_func (); below.
25328 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25329 <limits.h> exists even on freestanding compilers. */
25332 # include <limits.h>
25334 # include <assert.h>
25339 /* Override any GCC internal prototype to avoid an error.
25340 Use char because int might match the return type of a GCC
25341 builtin and then its argument prototype would still apply. */
25346 /* The GNU C library defines this for functions which it implements
25347 to always fail with ENOSYS. Some functions are actually named
25348 something starting with __ and the normal name is an alias. */
25349 #if defined __stub_$ac_func || defined __stub___$ac_func
25356 return $ac_func ();
25361 rm -f conftest.$ac_objext conftest$ac_exeext
25362 if { (ac_try="$ac_link"
25363 case "(($ac_try" in
25364 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25365 *) ac_try_echo
=$ac_try;;
25367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25368 (eval "$ac_link") 2>conftest.er1
25370 grep -v '^ *+' conftest.er1
>conftest.err
25372 cat conftest.err
>&5
25373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25374 (exit $ac_status); } && {
25375 test -z "$ac_c_werror_flag" ||
25376 test ! -s conftest.err
25377 } && test -s conftest
$ac_exeext &&
25378 $as_test_x conftest
$ac_exeext; then
25379 eval "$as_ac_var=yes"
25381 echo "$as_me: failed program was:" >&5
25382 sed 's/^/| /' conftest.
$ac_ext >&5
25384 eval "$as_ac_var=no"
25387 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
25388 conftest
$ac_exeext conftest.
$ac_ext
25390 ac_res
=`eval echo '${'$as_ac_var'}'`
25391 { echo "$as_me:$LINENO: result: $ac_res" >&5
25392 echo "${ECHO_T}$ac_res" >&6; }
25393 if test `eval echo '${'$as_ac_var'}'` = yes; then
25394 cat >>confdefs.h
<<_ACEOF
25395 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25403 { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
25404 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
25405 if test "${ac_cv_have_decl__snprintf+set}" = set; then
25406 echo $ECHO_N "(cached) $ECHO_C" >&6
25408 cat >conftest.
$ac_ext <<_ACEOF
25411 cat confdefs.h
>>conftest.
$ac_ext
25412 cat >>conftest.
$ac_ext <<_ACEOF
25413 /* end confdefs.h. */
25420 char *p = (char *) _snprintf;
25427 rm -f conftest.
$ac_objext
25428 if { (ac_try
="$ac_compile"
25429 case "(($ac_try" in
25430 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25431 *) ac_try_echo=$ac_try;;
25433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25434 (eval "$ac_compile") 2>conftest.er1
25436 grep -v '^ *+' conftest.er1 >conftest.err
25438 cat conftest.err >&5
25439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25440 (exit $ac_status); } && {
25441 test -z "$ac_c_werror_flag" ||
25442 test ! -s conftest.err
25443 } && test -s conftest.$ac_objext; then
25444 ac_cv_have_decl__snprintf=yes
25446 echo "$as_me: failed program was:" >&5
25447 sed 's/^/| /' conftest.$ac_ext >&5
25449 ac_cv_have_decl__snprintf=no
25452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25454 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
25455 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
25456 if test $ac_cv_have_decl__snprintf = yes; then
25462 cat >>confdefs.h <<_ACEOF
25463 #define HAVE_DECL__SNPRINTF $gt_value
25468 { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
25469 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
25470 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
25471 echo $ECHO_N "(cached) $ECHO_C" >&6
25473 cat >conftest.$ac_ext <<_ACEOF
25476 cat confdefs.h >>conftest.$ac_ext
25477 cat >>conftest.$ac_ext <<_ACEOF
25478 /* end confdefs.h. */
25485 char *p = (char *) _snwprintf;
25492 rm -f conftest.$ac_objext
25493 if { (ac_try="$ac_compile"
25494 case "(($ac_try" in
25495 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25496 *) ac_try_echo
=$ac_try;;
25498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25499 (eval "$ac_compile") 2>conftest.er1
25501 grep -v '^ *+' conftest.er1
>conftest.err
25503 cat conftest.err
>&5
25504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25505 (exit $ac_status); } && {
25506 test -z "$ac_c_werror_flag" ||
25507 test ! -s conftest.err
25508 } && test -s conftest.
$ac_objext; then
25509 ac_cv_have_decl__snwprintf
=yes
25511 echo "$as_me: failed program was:" >&5
25512 sed 's/^/| /' conftest.
$ac_ext >&5
25514 ac_cv_have_decl__snwprintf
=no
25517 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25519 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
25520 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
25521 if test $ac_cv_have_decl__snwprintf = yes; then
25527 cat >>confdefs.h
<<_ACEOF
25528 #define HAVE_DECL__SNWPRINTF $gt_value
25534 { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
25535 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
25536 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
25537 echo $ECHO_N "(cached) $ECHO_C" >&6
25539 cat >conftest.
$ac_ext <<_ACEOF
25542 cat confdefs.h
>>conftest.
$ac_ext
25543 cat >>conftest.
$ac_ext <<_ACEOF
25544 /* end confdefs.h. */
25550 #ifndef getc_unlocked
25551 char *p = (char *) getc_unlocked;
25558 rm -f conftest.
$ac_objext
25559 if { (ac_try
="$ac_compile"
25560 case "(($ac_try" in
25561 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25562 *) ac_try_echo=$ac_try;;
25564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25565 (eval "$ac_compile") 2>conftest.er1
25567 grep -v '^ *+' conftest.er1 >conftest.err
25569 cat conftest.err >&5
25570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25571 (exit $ac_status); } && {
25572 test -z "$ac_c_werror_flag" ||
25573 test ! -s conftest.err
25574 } && test -s conftest.$ac_objext; then
25575 ac_cv_have_decl_getc_unlocked=yes
25577 echo "$as_me: failed program was:" >&5
25578 sed 's/^/| /' conftest.$ac_ext >&5
25580 ac_cv_have_decl_getc_unlocked=no
25583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25585 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
25586 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
25587 if test $ac_cv_have_decl_getc_unlocked = yes; then
25593 cat >>confdefs.h <<_ACEOF
25594 #define HAVE_DECL_GETC_UNLOCKED $gt_value
25599 case $gt_cv_func_printf_posix in
25600 *yes) HAVE_POSIX_PRINTF=1 ;;
25601 *) HAVE_POSIX_PRINTF=0 ;;
25604 if test "$ac_cv_func_asprintf" = yes; then
25610 if test "$ac_cv_func_snprintf" = yes; then
25616 if test "$ac_cv_func_wprintf" = yes; then
25624 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
25625 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
25626 if test "${am_cv_langinfo_codeset+set}" = set; then
25627 echo $ECHO_N "(cached) $ECHO_C" >&6
25629 cat >conftest.$ac_ext <<_ACEOF
25632 cat confdefs.h >>conftest.$ac_ext
25633 cat >>conftest.$ac_ext <<_ACEOF
25634 /* end confdefs.h. */
25635 #include <langinfo.h>
25639 char* cs = nl_langinfo(CODESET);
25644 rm -f conftest.$ac_objext conftest$ac_exeext
25645 if { (ac_try="$ac_link"
25646 case "(($ac_try" in
25647 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25648 *) ac_try_echo
=$ac_try;;
25650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25651 (eval "$ac_link") 2>conftest.er1
25653 grep -v '^ *+' conftest.er1
>conftest.err
25655 cat conftest.err
>&5
25656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25657 (exit $ac_status); } && {
25658 test -z "$ac_c_werror_flag" ||
25659 test ! -s conftest.err
25660 } && test -s conftest
$ac_exeext &&
25661 $as_test_x conftest
$ac_exeext; then
25662 am_cv_langinfo_codeset
=yes
25664 echo "$as_me: failed program was:" >&5
25665 sed 's/^/| /' conftest.
$ac_ext >&5
25667 am_cv_langinfo_codeset
=no
25670 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
25671 conftest
$ac_exeext conftest.
$ac_ext
25674 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
25675 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
25676 if test $am_cv_langinfo_codeset = yes; then
25678 cat >>confdefs.h
<<\_ACEOF
25679 #define HAVE_LANGINFO_CODESET 1
25685 { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
25686 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
25687 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
25688 echo $ECHO_N "(cached) $ECHO_C" >&6
25690 cat >conftest.
$ac_ext <<_ACEOF
25693 cat confdefs.h
>>conftest.
$ac_ext
25694 cat >>conftest.
$ac_ext <<_ACEOF
25695 /* end confdefs.h. */
25696 #include <locale.h>
25705 rm -f conftest.
$ac_objext conftest
$ac_exeext
25706 if { (ac_try
="$ac_link"
25707 case "(($ac_try" in
25708 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25709 *) ac_try_echo=$ac_try;;
25711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25712 (eval "$ac_link") 2>conftest.er1
25714 grep -v '^ *+' conftest.er1 >conftest.err
25716 cat conftest.err >&5
25717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25718 (exit $ac_status); } && {
25719 test -z "$ac_c_werror_flag" ||
25720 test ! -s conftest.err
25721 } && test -s conftest$ac_exeext &&
25722 $as_test_x conftest$ac_exeext; then
25723 gt_cv_val_LC_MESSAGES=yes
25725 echo "$as_me: failed program was:" >&5
25726 sed 's/^/| /' conftest.$ac_ext >&5
25728 gt_cv_val_LC_MESSAGES=no
25731 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25732 conftest$ac_exeext conftest.$ac_ext
25734 { echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
25735 echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6; }
25736 if test $gt_cv_val_LC_MESSAGES = yes; then
25738 cat >>confdefs.h <<\_ACEOF
25739 #define HAVE_LC_MESSAGES 1
25745 if test "$enable_shared" = yes; then
25747 cygwin*) is_woe32dll=yes ;;
25748 *) is_woe32dll=no ;;
25753 WOE32DLL=$is_woe32dll
25781 { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
25782 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
25783 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
25784 echo $ECHO_N "(cached) $ECHO_C" >&6
25786 gt_save_LIBS="$LIBS"
25787 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
25788 cat >conftest.$ac_ext <<_ACEOF
25791 cat confdefs.h >>conftest.$ac_ext
25792 cat >>conftest.$ac_ext <<_ACEOF
25793 /* end confdefs.h. */
25794 #include <CoreFoundation/CFPreferences.h>
25798 CFPreferencesCopyAppValue(NULL, NULL)
25803 rm -f conftest.$ac_objext conftest$ac_exeext
25804 if { (ac_try="$ac_link"
25805 case "(($ac_try" in
25806 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25807 *) ac_try_echo
=$ac_try;;
25809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25810 (eval "$ac_link") 2>conftest.er1
25812 grep -v '^ *+' conftest.er1
>conftest.err
25814 cat conftest.err
>&5
25815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25816 (exit $ac_status); } && {
25817 test -z "$ac_c_werror_flag" ||
25818 test ! -s conftest.err
25819 } && test -s conftest
$ac_exeext &&
25820 $as_test_x conftest
$ac_exeext; then
25821 gt_cv_func_CFPreferencesCopyAppValue
=yes
25823 echo "$as_me: failed program was:" >&5
25824 sed 's/^/| /' conftest.
$ac_ext >&5
25826 gt_cv_func_CFPreferencesCopyAppValue
=no
25829 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
25830 conftest
$ac_exeext conftest.
$ac_ext
25831 LIBS
="$gt_save_LIBS"
25833 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
25834 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
25835 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
25837 cat >>confdefs.h
<<\_ACEOF
25838 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
25842 { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
25843 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
25844 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
25845 echo $ECHO_N "(cached) $ECHO_C" >&6
25847 gt_save_LIBS
="$LIBS"
25848 LIBS
="$LIBS -Wl,-framework -Wl,CoreFoundation"
25849 cat >conftest.
$ac_ext <<_ACEOF
25852 cat confdefs.h
>>conftest.
$ac_ext
25853 cat >>conftest.
$ac_ext <<_ACEOF
25854 /* end confdefs.h. */
25855 #include <CoreFoundation/CFLocale.h>
25859 CFLocaleCopyCurrent();
25864 rm -f conftest.
$ac_objext conftest
$ac_exeext
25865 if { (ac_try
="$ac_link"
25866 case "(($ac_try" in
25867 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25868 *) ac_try_echo=$ac_try;;
25870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25871 (eval "$ac_link") 2>conftest.er1
25873 grep -v '^ *+' conftest.er1 >conftest.err
25875 cat conftest.err >&5
25876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25877 (exit $ac_status); } && {
25878 test -z "$ac_c_werror_flag" ||
25879 test ! -s conftest.err
25880 } && test -s conftest$ac_exeext &&
25881 $as_test_x conftest$ac_exeext; then
25882 gt_cv_func_CFLocaleCopyCurrent=yes
25884 echo "$as_me: failed program was:" >&5
25885 sed 's/^/| /' conftest.$ac_ext >&5
25887 gt_cv_func_CFLocaleCopyCurrent=no
25890 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25891 conftest$ac_exeext conftest.$ac_ext
25892 LIBS="$gt_save_LIBS"
25894 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
25895 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
25896 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
25898 cat >>confdefs.h <<\_ACEOF
25899 #define HAVE_CFLOCALECOPYCURRENT 1
25904 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
25905 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
25913 BUILD_INCLUDED_LIBINTL=no
25914 USE_INCLUDED_LIBINTL=no
25920 case " $gt_needs " in
25921 *" need-formatstring-macros "*) gt_api_version=3 ;;
25922 *" need-ngettext "*) gt_api_version=2 ;;
25923 *) gt_api_version=1 ;;
25925 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
25926 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
25928 if test "$USE_NLS" = "yes"; then
25929 gt_use_preinstalled_gnugettext=no
25931 { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
25932 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
25934 # Check whether --with-included-gettext was given.
25935 if test "${with_included_gettext+set}" = set; then
25936 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
25938 nls_cv_force_use_gnu_gettext=no
25941 { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
25942 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
25944 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
25945 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
25948 if test $gt_api_version -ge 3; then
25949 gt_revision_test_code='
25950 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
25951 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
25953 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
25956 gt_revision_test_code=
25958 if test $gt_api_version -ge 2; then
25959 gt_expression_test_code=' + * ngettext ("", "", 0)'
25961 gt_expression_test_code=
25964 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
25965 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
25966 if { as_var=$gt_func_gnugettext_libc; eval "test \"\${$as_var+set}\" = set"; }; then
25967 echo $ECHO_N "(cached) $ECHO_C" >&6
25969 cat >conftest.$ac_ext <<_ACEOF
25972 cat confdefs.h >>conftest.$ac_ext
25973 cat >>conftest.$ac_ext <<_ACEOF
25974 /* end confdefs.h. */
25975 #include <libintl.h>
25976 $gt_revision_test_code
25977 extern int _nl_msg_cat_cntr;
25978 extern int *_nl_domain_bindings;
25982 bindtextdomain ("", "");
25983 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
25988 rm -f conftest.$ac_objext conftest$ac_exeext
25989 if { (ac_try="$ac_link"
25990 case "(($ac_try" in
25991 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25992 *) ac_try_echo
=$ac_try;;
25994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25995 (eval "$ac_link") 2>conftest.er1
25997 grep -v '^ *+' conftest.er1
>conftest.err
25999 cat conftest.err
>&5
26000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26001 (exit $ac_status); } && {
26002 test -z "$ac_c_werror_flag" ||
26003 test ! -s conftest.err
26004 } && test -s conftest
$ac_exeext &&
26005 $as_test_x conftest
$ac_exeext; then
26006 eval "$gt_func_gnugettext_libc=yes"
26008 echo "$as_me: failed program was:" >&5
26009 sed 's/^/| /' conftest.
$ac_ext >&5
26011 eval "$gt_func_gnugettext_libc=no"
26014 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
26015 conftest
$ac_exeext conftest.
$ac_ext
26017 ac_res
=`eval echo '${'$gt_func_gnugettext_libc'}'`
26018 { echo "$as_me:$LINENO: result: $ac_res" >&5
26019 echo "${ECHO_T}$ac_res" >&6; }
26021 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
26028 acl_save_prefix
="$prefix"
26029 prefix
="$acl_final_prefix"
26030 acl_save_exec_prefix
="$exec_prefix"
26031 exec_prefix
="$acl_final_exec_prefix"
26033 eval additional_includedir
=\"$includedir\"
26034 eval additional_libdir
=\"$libdir\"
26036 exec_prefix
="$acl_save_exec_prefix"
26037 prefix
="$acl_save_prefix"
26040 # Check whether --with-libintl-prefix was given.
26041 if test "${with_libintl_prefix+set}" = set; then
26042 withval
=$with_libintl_prefix;
26043 if test "X$withval" = "Xno"; then
26046 if test "X$withval" = "X"; then
26048 acl_save_prefix
="$prefix"
26049 prefix
="$acl_final_prefix"
26050 acl_save_exec_prefix
="$exec_prefix"
26051 exec_prefix
="$acl_final_exec_prefix"
26053 eval additional_includedir
=\"$includedir\"
26054 eval additional_libdir
=\"$libdir\"
26056 exec_prefix
="$acl_save_exec_prefix"
26057 prefix
="$acl_save_prefix"
26060 additional_includedir
="$withval/include"
26061 additional_libdir
="$withval/$acl_libdirstem"
26072 names_already_handled
=
26073 names_next_round
='intl '
26074 while test -n "$names_next_round"; do
26075 names_this_round
="$names_next_round"
26077 for name
in $names_this_round; do
26079 for n
in $names_already_handled; do
26080 if test "$n" = "$name"; then
26081 already_handled
=yes
26085 if test -z "$already_handled"; then
26086 names_already_handled
="$names_already_handled $name"
26087 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
26088 eval value
=\"\
$HAVE_LIB$uppername\"
26089 if test -n "$value"; then
26090 if test "$value" = yes; then
26091 eval value
=\"\
$LIB$uppername\"
26092 test -z "$value" || LIBINTL
="${LIBINTL}${LIBINTL:+ }$value"
26093 eval value
=\"\
$LTLIB$uppername\"
26094 test -z "$value" || LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }$value"
26103 if test $use_additional = yes; then
26104 if test -n "$shlibext" \
26105 && { test -f "$additional_libdir/lib$name.$shlibext" \
26106 ||
{ test "$shlibext" = dll \
26107 && test -f "$additional_libdir/lib$name.dll.a"; }; }; then
26108 found_dir
="$additional_libdir"
26109 if test -f "$additional_libdir/lib$name.$shlibext"; then
26110 found_so
="$additional_libdir/lib$name.$shlibext"
26112 found_so
="$additional_libdir/lib$name.dll.a"
26114 if test -f "$additional_libdir/lib$name.la"; then
26115 found_la
="$additional_libdir/lib$name.la"
26118 if test -f "$additional_libdir/lib$name.$libext"; then
26119 found_dir
="$additional_libdir"
26120 found_a
="$additional_libdir/lib$name.$libext"
26121 if test -f "$additional_libdir/lib$name.la"; then
26122 found_la
="$additional_libdir/lib$name.la"
26127 if test "X$found_dir" = "X"; then
26128 for x
in $LDFLAGS $LTLIBINTL; do
26130 acl_save_prefix
="$prefix"
26131 prefix
="$acl_final_prefix"
26132 acl_save_exec_prefix
="$exec_prefix"
26133 exec_prefix
="$acl_final_exec_prefix"
26135 exec_prefix
="$acl_save_exec_prefix"
26136 prefix
="$acl_save_prefix"
26140 dir
=`echo "X$x" | sed -e 's/^X-L//'`
26141 if test -n "$shlibext" \
26142 && { test -f "$dir/lib$name.$shlibext" \
26143 ||
{ test "$shlibext" = dll \
26144 && test -f "$dir/lib$name.dll.a"; }; }; then
26146 if test -f "$dir/lib$name.$shlibext"; then
26147 found_so
="$dir/lib$name.$shlibext"
26149 found_so
="$dir/lib$name.dll.a"
26151 if test -f "$dir/lib$name.la"; then
26152 found_la
="$dir/lib$name.la"
26155 if test -f "$dir/lib$name.$libext"; then
26157 found_a
="$dir/lib$name.$libext"
26158 if test -f "$dir/lib$name.la"; then
26159 found_la
="$dir/lib$name.la"
26165 if test "X$found_dir" != "X"; then
26170 if test "X$found_dir" != "X"; then
26171 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
26172 if test "X$found_so" != "X"; then
26173 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/$acl_libdirstem"; then
26174 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
26177 for x
in $ltrpathdirs; do
26178 if test "X$x" = "X$found_dir"; then
26183 if test -z "$haveit"; then
26184 ltrpathdirs
="$ltrpathdirs $found_dir"
26186 if test "$hardcode_direct" = yes; then
26187 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
26189 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
26190 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
26192 for x
in $rpathdirs; do
26193 if test "X$x" = "X$found_dir"; then
26198 if test -z "$haveit"; then
26199 rpathdirs
="$rpathdirs $found_dir"
26203 for x
in $LDFLAGS $LIBINTL; do
26205 acl_save_prefix
="$prefix"
26206 prefix
="$acl_final_prefix"
26207 acl_save_exec_prefix
="$exec_prefix"
26208 exec_prefix
="$acl_final_exec_prefix"
26210 exec_prefix
="$acl_save_exec_prefix"
26211 prefix
="$acl_save_prefix"
26213 if test "X$x" = "X-L$found_dir"; then
26218 if test -z "$haveit"; then
26219 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$found_dir"
26221 if test "$hardcode_minus_L" != no
; then
26222 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
26224 LIBINTL
="${LIBINTL}${LIBINTL:+ }-l$name"
26230 if test "X$found_a" != "X"; then
26231 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_a"
26233 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
26236 additional_includedir
=
26237 case "$found_dir" in
26238 */$acl_libdirstem |
*/$acl_libdirstem/)
26239 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
26240 additional_includedir
="$basedir/include"
26243 if test "X$additional_includedir" != "X"; then
26244 if test "X$additional_includedir" != "X/usr/include"; then
26246 if test "X$additional_includedir" = "X/usr/local/include"; then
26247 if test -n "$GCC"; then
26249 linux
* | gnu
* | k
*bsd
*-gnu) haveit
=yes;;
26253 if test -z "$haveit"; then
26254 for x
in $CPPFLAGS $INCINTL; do
26256 acl_save_prefix
="$prefix"
26257 prefix
="$acl_final_prefix"
26258 acl_save_exec_prefix
="$exec_prefix"
26259 exec_prefix
="$acl_final_exec_prefix"
26261 exec_prefix
="$acl_save_exec_prefix"
26262 prefix
="$acl_save_prefix"
26264 if test "X$x" = "X-I$additional_includedir"; then
26269 if test -z "$haveit"; then
26270 if test -d "$additional_includedir"; then
26271 INCINTL
="${INCINTL}${INCINTL:+ }-I$additional_includedir"
26277 if test -n "$found_la"; then
26278 save_libdir
="$libdir"
26279 case "$found_la" in
26280 */* |
*\\*) .
"$found_la" ;;
26281 *) .
"./$found_la" ;;
26283 libdir
="$save_libdir"
26284 for dep
in $dependency_libs; do
26287 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
26288 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
26290 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
26291 if test -n "$GCC"; then
26293 linux
* | gnu
* | k
*bsd
*-gnu) haveit
=yes;;
26297 if test -z "$haveit"; then
26299 for x
in $LDFLAGS $LIBINTL; do
26301 acl_save_prefix
="$prefix"
26302 prefix
="$acl_final_prefix"
26303 acl_save_exec_prefix
="$exec_prefix"
26304 exec_prefix
="$acl_final_exec_prefix"
26306 exec_prefix
="$acl_save_exec_prefix"
26307 prefix
="$acl_save_prefix"
26309 if test "X$x" = "X-L$additional_libdir"; then
26314 if test -z "$haveit"; then
26315 if test -d "$additional_libdir"; then
26316 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
26320 for x
in $LDFLAGS $LTLIBINTL; do
26322 acl_save_prefix
="$prefix"
26323 prefix
="$acl_final_prefix"
26324 acl_save_exec_prefix
="$exec_prefix"
26325 exec_prefix
="$acl_final_exec_prefix"
26327 exec_prefix
="$acl_save_exec_prefix"
26328 prefix
="$acl_save_prefix"
26330 if test "X$x" = "X-L$additional_libdir"; then
26335 if test -z "$haveit"; then
26336 if test -d "$additional_libdir"; then
26337 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
26344 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
26345 if test "$enable_rpath" != no
; then
26347 for x
in $rpathdirs; do
26348 if test "X$x" = "X$dir"; then
26353 if test -z "$haveit"; then
26354 rpathdirs
="$rpathdirs $dir"
26357 for x
in $ltrpathdirs; do
26358 if test "X$x" = "X$dir"; then
26363 if test -z "$haveit"; then
26364 ltrpathdirs
="$ltrpathdirs $dir"
26369 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
26372 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
26375 LIBINTL
="${LIBINTL}${LIBINTL:+ }$dep"
26376 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }$dep"
26382 LIBINTL
="${LIBINTL}${LIBINTL:+ }-l$name"
26383 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
26389 if test "X$rpathdirs" != "X"; then
26390 if test -n "$hardcode_libdir_separator"; then
26392 for found_dir
in $rpathdirs; do
26393 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
26395 acl_save_libdir
="$libdir"
26397 eval flag
=\"$hardcode_libdir_flag_spec\"
26398 libdir
="$acl_save_libdir"
26399 LIBINTL
="${LIBINTL}${LIBINTL:+ }$flag"
26401 for found_dir
in $rpathdirs; do
26402 acl_save_libdir
="$libdir"
26403 libdir
="$found_dir"
26404 eval flag
=\"$hardcode_libdir_flag_spec\"
26405 libdir
="$acl_save_libdir"
26406 LIBINTL
="${LIBINTL}${LIBINTL:+ }$flag"
26410 if test "X$ltrpathdirs" != "X"; then
26411 for found_dir
in $ltrpathdirs; do
26412 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
26416 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
26417 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
26418 if { as_var
=$gt_func_gnugettext_libintl; eval "test \"\${$as_var+set}\" = set"; }; then
26419 echo $ECHO_N "(cached) $ECHO_C" >&6
26421 gt_save_CPPFLAGS
="$CPPFLAGS"
26422 CPPFLAGS
="$CPPFLAGS $INCINTL"
26423 gt_save_LIBS
="$LIBS"
26424 LIBS
="$LIBS $LIBINTL"
26425 cat >conftest.
$ac_ext <<_ACEOF
26428 cat confdefs.h
>>conftest.
$ac_ext
26429 cat >>conftest.
$ac_ext <<_ACEOF
26430 /* end confdefs.h. */
26431 #include <libintl.h>
26432 $gt_revision_test_code
26433 extern int _nl_msg_cat_cntr;
26438 const char *_nl_expand_alias (const char *);
26442 bindtextdomain ("", "");
26443 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
26448 rm -f conftest.
$ac_objext conftest
$ac_exeext
26449 if { (ac_try
="$ac_link"
26450 case "(($ac_try" in
26451 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26452 *) ac_try_echo=$ac_try;;
26454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26455 (eval "$ac_link") 2>conftest.er1
26457 grep -v '^ *+' conftest.er1 >conftest.err
26459 cat conftest.err >&5
26460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26461 (exit $ac_status); } && {
26462 test -z "$ac_c_werror_flag" ||
26463 test ! -s conftest.err
26464 } && test -s conftest$ac_exeext &&
26465 $as_test_x conftest$ac_exeext; then
26466 eval "$gt_func_gnugettext_libintl=yes"
26468 echo "$as_me: failed program was:" >&5
26469 sed 's/^/| /' conftest.$ac_ext >&5
26471 eval "$gt_func_gnugettext_libintl=no"
26474 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26475 conftest$ac_exeext conftest.$ac_ext
26476 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
26477 LIBS="$LIBS $LIBICONV"
26478 cat >conftest.$ac_ext <<_ACEOF
26481 cat confdefs.h >>conftest.$ac_ext
26482 cat >>conftest.$ac_ext <<_ACEOF
26483 /* end confdefs.h. */
26484 #include <libintl.h>
26485 $gt_revision_test_code
26486 extern int _nl_msg_cat_cntr;
26491 const char *_nl_expand_alias (const char *);
26495 bindtextdomain ("", "");
26496 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
26501 rm -f conftest.$ac_objext conftest$ac_exeext
26502 if { (ac_try="$ac_link"
26503 case "(($ac_try" in
26504 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26505 *) ac_try_echo
=$ac_try;;
26507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26508 (eval "$ac_link") 2>conftest.er1
26510 grep -v '^ *+' conftest.er1
>conftest.err
26512 cat conftest.err
>&5
26513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26514 (exit $ac_status); } && {
26515 test -z "$ac_c_werror_flag" ||
26516 test ! -s conftest.err
26517 } && test -s conftest
$ac_exeext &&
26518 $as_test_x conftest
$ac_exeext; then
26519 LIBINTL
="$LIBINTL $LIBICONV"
26520 LTLIBINTL
="$LTLIBINTL $LTLIBICONV"
26521 eval "$gt_func_gnugettext_libintl=yes"
26524 echo "$as_me: failed program was:" >&5
26525 sed 's/^/| /' conftest.
$ac_ext >&5
26530 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
26531 conftest
$ac_exeext conftest.
$ac_ext
26533 CPPFLAGS
="$gt_save_CPPFLAGS"
26534 LIBS
="$gt_save_LIBS"
26536 ac_res
=`eval echo '${'$gt_func_gnugettext_libintl'}'`
26537 { echo "$as_me:$LINENO: result: $ac_res" >&5
26538 echo "${ECHO_T}$ac_res" >&6; }
26541 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
26542 ||
{ { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
26543 && test "$PACKAGE" != gettext-runtime \
26544 && test "$PACKAGE" != gettext-tools
; }; then
26545 gt_use_preinstalled_gnugettext
=yes
26553 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
26554 nls_cv_use_gnu_gettext
=yes
26558 if test "$nls_cv_use_gnu_gettext" = "yes"; then
26559 BUILD_INCLUDED_LIBINTL
=yes
26560 USE_INCLUDED_LIBINTL
=yes
26561 LIBINTL
="\${top_builddir}/intl/libintl.a $LIBICONV $LIBTHREAD"
26562 LTLIBINTL
="\${top_builddir}/intl/libintl.a $LTLIBICONV $LTLIBTHREAD"
26563 LIBS
=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
26567 if test "$gt_use_preinstalled_gnugettext" = "yes" \
26568 ||
test "$nls_cv_use_gnu_gettext" = "yes"; then
26573 if test -n "$INTL_MACOSX_LIBS"; then
26574 if test "$gt_use_preinstalled_gnugettext" = "yes" \
26575 ||
test "$nls_cv_use_gnu_gettext" = "yes"; then
26576 LIBINTL
="$LIBINTL $INTL_MACOSX_LIBS"
26577 LTLIBINTL
="$LTLIBINTL $INTL_MACOSX_LIBS"
26581 if test "$gt_use_preinstalled_gnugettext" = "yes" \
26582 ||
test "$nls_cv_use_gnu_gettext" = "yes"; then
26584 cat >>confdefs.h
<<\_ACEOF
26585 #define ENABLE_NLS 1
26593 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
26594 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
26595 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
26596 echo "${ECHO_T}$USE_NLS" >&6; }
26597 if test "$USE_NLS" = "yes"; then
26598 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
26599 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
26600 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
26601 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
26602 gt_source
="external libintl"
26607 gt_source
="included intl directory"
26609 { echo "$as_me:$LINENO: result: $gt_source" >&5
26610 echo "${ECHO_T}$gt_source" >&6; }
26613 if test "$USE_NLS" = "yes"; then
26615 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
26616 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
26617 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
26618 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
26619 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
26620 echo "${ECHO_T}$LIBINTL" >&6; }
26622 for element
in $INCINTL; do
26624 for x
in $CPPFLAGS; do
26626 acl_save_prefix
="$prefix"
26627 prefix
="$acl_final_prefix"
26628 acl_save_exec_prefix
="$exec_prefix"
26629 exec_prefix
="$acl_final_exec_prefix"
26631 exec_prefix
="$acl_save_exec_prefix"
26632 prefix
="$acl_save_prefix"
26634 if test "X$x" = "X$element"; then
26639 if test -z "$haveit"; then
26640 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
26647 cat >>confdefs.h
<<\_ACEOF
26648 #define HAVE_GETTEXT 1
26652 cat >>confdefs.h
<<\_ACEOF
26653 #define HAVE_DCGETTEXT 1
26662 if test "$PACKAGE" = gettext-runtime ||
test "$PACKAGE" = gettext-tools
; then
26663 BUILD_INCLUDED_LIBINTL
=yes
26670 nls_cv_header_intl
=
26671 nls_cv_header_libgt
=
26683 if test "$USE_INCLUDED_LIBINTL" = yes; then
26684 INTLOBJS
="\$(GETTOBJS)"
26688 INTL_LIBTOOL_SUFFIX_PREFIX
=
26692 INTLLIBS
="$LIBINTL"
26701 # Check whether --enable-largefile was given.
26702 if test "${enable_largefile+set}" = set; then
26703 enableval
=$enable_largefile;
26706 if test "$enable_largefile" != no
; then
26708 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
26709 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
26710 if test "${ac_cv_sys_largefile_CC+set}" = set; then
26711 echo $ECHO_N "(cached) $ECHO_C" >&6
26713 ac_cv_sys_largefile_CC
=no
26714 if test "$GCC" != yes; then
26717 # IRIX 6.2 and later do not support large files by default,
26718 # so use the C compiler's -n32 option if that helps.
26719 cat >conftest.
$ac_ext <<_ACEOF
26722 cat confdefs.h
>>conftest.
$ac_ext
26723 cat >>conftest.
$ac_ext <<_ACEOF
26724 /* end confdefs.h. */
26725 #include <sys/types.h>
26726 /* Check that off_t can represent 2**63 - 1 correctly.
26727 We can't simply define LARGE_OFF_T to be 9223372036854775807,
26728 since some C++ compilers masquerading as C compilers
26729 incorrectly reject 9223372036854775807. */
26730 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
26731 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
26732 && LARGE_OFF_T % 2147483647 == 1)
26742 rm -f conftest.
$ac_objext
26743 if { (ac_try
="$ac_compile"
26744 case "(($ac_try" in
26745 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26746 *) ac_try_echo=$ac_try;;
26748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26749 (eval "$ac_compile") 2>conftest.er1
26751 grep -v '^ *+' conftest.er1 >conftest.err
26753 cat conftest.err >&5
26754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26755 (exit $ac_status); } && {
26756 test -z "$ac_c_werror_flag" ||
26757 test ! -s conftest.err
26758 } && test -s conftest.$ac_objext; then
26761 echo "$as_me: failed program was:" >&5
26762 sed 's/^/| /' conftest.$ac_ext >&5
26767 rm -f core conftest.err conftest.$ac_objext
26769 rm -f conftest.$ac_objext
26770 if { (ac_try="$ac_compile"
26771 case "(($ac_try" in
26772 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26773 *) ac_try_echo
=$ac_try;;
26775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26776 (eval "$ac_compile") 2>conftest.er1
26778 grep -v '^ *+' conftest.er1
>conftest.err
26780 cat conftest.err
>&5
26781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26782 (exit $ac_status); } && {
26783 test -z "$ac_c_werror_flag" ||
26784 test ! -s conftest.err
26785 } && test -s conftest.
$ac_objext; then
26786 ac_cv_sys_largefile_CC
=' -n32'; break
26788 echo "$as_me: failed program was:" >&5
26789 sed 's/^/| /' conftest.
$ac_ext >&5
26794 rm -f core conftest.err conftest.
$ac_objext
26798 rm -f conftest.
$ac_ext
26801 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
26802 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
26803 if test "$ac_cv_sys_largefile_CC" != no
; then
26804 CC
=$CC$ac_cv_sys_largefile_CC
26807 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
26808 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
26809 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
26810 echo $ECHO_N "(cached) $ECHO_C" >&6
26813 cat >conftest.
$ac_ext <<_ACEOF
26816 cat confdefs.h
>>conftest.
$ac_ext
26817 cat >>conftest.
$ac_ext <<_ACEOF
26818 /* end confdefs.h. */
26819 #include <sys/types.h>
26820 /* Check that off_t can represent 2**63 - 1 correctly.
26821 We can't simply define LARGE_OFF_T to be 9223372036854775807,
26822 since some C++ compilers masquerading as C compilers
26823 incorrectly reject 9223372036854775807. */
26824 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
26825 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
26826 && LARGE_OFF_T % 2147483647 == 1)
26836 rm -f conftest.
$ac_objext
26837 if { (ac_try
="$ac_compile"
26838 case "(($ac_try" in
26839 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26840 *) ac_try_echo=$ac_try;;
26842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26843 (eval "$ac_compile") 2>conftest.er1
26845 grep -v '^ *+' conftest.er1 >conftest.err
26847 cat conftest.err >&5
26848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26849 (exit $ac_status); } && {
26850 test -z "$ac_c_werror_flag" ||
26851 test ! -s conftest.err
26852 } && test -s conftest.$ac_objext; then
26853 ac_cv_sys_file_offset_bits=no; break
26855 echo "$as_me: failed program was:" >&5
26856 sed 's/^/| /' conftest.$ac_ext >&5
26861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26862 cat >conftest.$ac_ext <<_ACEOF
26865 cat confdefs.h >>conftest.$ac_ext
26866 cat >>conftest.$ac_ext <<_ACEOF
26867 /* end confdefs.h. */
26868 #define _FILE_OFFSET_BITS 64
26869 #include <sys/types.h>
26870 /* Check that off_t can represent 2**63 - 1 correctly.
26871 We can't simply define LARGE_OFF_T to be 9223372036854775807,
26872 since some C++ compilers masquerading as C compilers
26873 incorrectly reject 9223372036854775807. */
26874 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
26875 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
26876 && LARGE_OFF_T % 2147483647 == 1)
26886 rm -f conftest.$ac_objext
26887 if { (ac_try="$ac_compile"
26888 case "(($ac_try" in
26889 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26890 *) ac_try_echo
=$ac_try;;
26892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26893 (eval "$ac_compile") 2>conftest.er1
26895 grep -v '^ *+' conftest.er1
>conftest.err
26897 cat conftest.err
>&5
26898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26899 (exit $ac_status); } && {
26900 test -z "$ac_c_werror_flag" ||
26901 test ! -s conftest.err
26902 } && test -s conftest.
$ac_objext; then
26903 ac_cv_sys_file_offset_bits
=64; break
26905 echo "$as_me: failed program was:" >&5
26906 sed 's/^/| /' conftest.
$ac_ext >&5
26911 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26912 ac_cv_sys_file_offset_bits
=unknown
26916 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
26917 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
26918 case $ac_cv_sys_file_offset_bits in #(
26921 cat >>confdefs.h
<<_ACEOF
26922 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
26927 if test $ac_cv_sys_file_offset_bits = unknown
; then
26928 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
26929 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
26930 if test "${ac_cv_sys_large_files+set}" = set; then
26931 echo $ECHO_N "(cached) $ECHO_C" >&6
26934 cat >conftest.
$ac_ext <<_ACEOF
26937 cat confdefs.h
>>conftest.
$ac_ext
26938 cat >>conftest.
$ac_ext <<_ACEOF
26939 /* end confdefs.h. */
26940 #include <sys/types.h>
26941 /* Check that off_t can represent 2**63 - 1 correctly.
26942 We can't simply define LARGE_OFF_T to be 9223372036854775807,
26943 since some C++ compilers masquerading as C compilers
26944 incorrectly reject 9223372036854775807. */
26945 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
26946 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
26947 && LARGE_OFF_T % 2147483647 == 1)
26957 rm -f conftest.
$ac_objext
26958 if { (ac_try
="$ac_compile"
26959 case "(($ac_try" in
26960 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26961 *) ac_try_echo=$ac_try;;
26963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26964 (eval "$ac_compile") 2>conftest.er1
26966 grep -v '^ *+' conftest.er1 >conftest.err
26968 cat conftest.err >&5
26969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26970 (exit $ac_status); } && {
26971 test -z "$ac_c_werror_flag" ||
26972 test ! -s conftest.err
26973 } && test -s conftest.$ac_objext; then
26974 ac_cv_sys_large_files=no; break
26976 echo "$as_me: failed program was:" >&5
26977 sed 's/^/| /' conftest.$ac_ext >&5
26982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26983 cat >conftest.$ac_ext <<_ACEOF
26986 cat confdefs.h >>conftest.$ac_ext
26987 cat >>conftest.$ac_ext <<_ACEOF
26988 /* end confdefs.h. */
26989 #define _LARGE_FILES 1
26990 #include <sys/types.h>
26991 /* Check that off_t can represent 2**63 - 1 correctly.
26992 We can't simply define LARGE_OFF_T to be 9223372036854775807,
26993 since some C++ compilers masquerading as C compilers
26994 incorrectly reject 9223372036854775807. */
26995 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
26996 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
26997 && LARGE_OFF_T % 2147483647 == 1)
27007 rm -f conftest.$ac_objext
27008 if { (ac_try="$ac_compile"
27009 case "(($ac_try" in
27010 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27011 *) ac_try_echo
=$ac_try;;
27013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27014 (eval "$ac_compile") 2>conftest.er1
27016 grep -v '^ *+' conftest.er1
>conftest.err
27018 cat conftest.err
>&5
27019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27020 (exit $ac_status); } && {
27021 test -z "$ac_c_werror_flag" ||
27022 test ! -s conftest.err
27023 } && test -s conftest.
$ac_objext; then
27024 ac_cv_sys_large_files
=1; break
27026 echo "$as_me: failed program was:" >&5
27027 sed 's/^/| /' conftest.
$ac_ext >&5
27032 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27033 ac_cv_sys_large_files
=unknown
27037 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
27038 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
27039 case $ac_cv_sys_large_files in #(
27042 cat >>confdefs.h
<<_ACEOF
27043 #define _LARGE_FILES $ac_cv_sys_large_files
27051 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
27052 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
27053 if test "${ac_cv_c_bigendian+set}" = set; then
27054 echo $ECHO_N "(cached) $ECHO_C" >&6
27056 # See if sys/param.h defines the BYTE_ORDER macro.
27057 cat >conftest.
$ac_ext <<_ACEOF
27060 cat confdefs.h
>>conftest.
$ac_ext
27061 cat >>conftest.
$ac_ext <<_ACEOF
27062 /* end confdefs.h. */
27063 #include <sys/types.h>
27064 #include <sys/param.h>
27069 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
27070 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
27071 bogus endian macros
27078 rm -f conftest.
$ac_objext
27079 if { (ac_try
="$ac_compile"
27080 case "(($ac_try" in
27081 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27082 *) ac_try_echo=$ac_try;;
27084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27085 (eval "$ac_compile") 2>conftest.er1
27087 grep -v '^ *+' conftest.er1 >conftest.err
27089 cat conftest.err >&5
27090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27091 (exit $ac_status); } && {
27092 test -z "$ac_c_werror_flag" ||
27093 test ! -s conftest.err
27094 } && test -s conftest.$ac_objext; then
27095 # It does; now see whether it defined to BIG_ENDIAN or not.
27096 cat >conftest.$ac_ext <<_ACEOF
27099 cat confdefs.h >>conftest.$ac_ext
27100 cat >>conftest.$ac_ext <<_ACEOF
27101 /* end confdefs.h. */
27102 #include <sys/types.h>
27103 #include <sys/param.h>
27108 #if BYTE_ORDER != BIG_ENDIAN
27116 rm -f conftest.$ac_objext
27117 if { (ac_try="$ac_compile"
27118 case "(($ac_try" in
27119 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27120 *) ac_try_echo
=$ac_try;;
27122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27123 (eval "$ac_compile") 2>conftest.er1
27125 grep -v '^ *+' conftest.er1
>conftest.err
27127 cat conftest.err
>&5
27128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27129 (exit $ac_status); } && {
27130 test -z "$ac_c_werror_flag" ||
27131 test ! -s conftest.err
27132 } && test -s conftest.
$ac_objext; then
27133 ac_cv_c_bigendian
=yes
27135 echo "$as_me: failed program was:" >&5
27136 sed 's/^/| /' conftest.
$ac_ext >&5
27138 ac_cv_c_bigendian
=no
27141 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27143 echo "$as_me: failed program was:" >&5
27144 sed 's/^/| /' conftest.
$ac_ext >&5
27146 # It does not; compile a test program.
27147 if test "$cross_compiling" = yes; then
27148 # try to guess the endianness by grepping values into an object file
27149 ac_cv_c_bigendian
=unknown
27150 cat >conftest.
$ac_ext <<_ACEOF
27153 cat confdefs.h
>>conftest.
$ac_ext
27154 cat >>conftest.
$ac_ext <<_ACEOF
27155 /* end confdefs.h. */
27156 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
27157 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
27158 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
27159 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
27160 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
27161 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
27165 _ascii (); _ebcdic ();
27170 rm -f conftest.
$ac_objext
27171 if { (ac_try
="$ac_compile"
27172 case "(($ac_try" in
27173 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27174 *) ac_try_echo=$ac_try;;
27176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27177 (eval "$ac_compile") 2>conftest.er1
27179 grep -v '^ *+' conftest.er1 >conftest.err
27181 cat conftest.err >&5
27182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27183 (exit $ac_status); } && {
27184 test -z "$ac_c_werror_flag" ||
27185 test ! -s conftest.err
27186 } && test -s conftest.$ac_objext; then
27187 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
27188 ac_cv_c_bigendian=yes
27190 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
27191 if test "$ac_cv_c_bigendian" = unknown; then
27192 ac_cv_c_bigendian=no
27194 # finding both strings is unlikely to happen, but who knows?
27195 ac_cv_c_bigendian=unknown
27199 echo "$as_me: failed program was:" >&5
27200 sed 's/^/| /' conftest.$ac_ext >&5
27205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27207 cat >conftest.$ac_ext <<_ACEOF
27210 cat confdefs.h >>conftest.$ac_ext
27211 cat >>conftest.$ac_ext <<_ACEOF
27212 /* end confdefs.h. */
27213 $ac_includes_default
27218 /* Are we little or big endian? From Harbison&Steele. */
27222 char c[sizeof (long int)];
27225 return u.c[sizeof (long int) - 1] == 1;
27231 rm -f conftest$ac_exeext
27232 if { (ac_try="$ac_link"
27233 case "(($ac_try" in
27234 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27235 *) ac_try_echo
=$ac_try;;
27237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27238 (eval "$ac_link") 2>&5
27240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27241 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
27242 { (case "(($ac_try" in
27243 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27244 *) ac_try_echo=$ac_try;;
27246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27247 (eval "$ac_try") 2>&5
27249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27250 (exit $ac_status); }; }; then
27251 ac_cv_c_bigendian=no
27253 echo "$as_me: program exited with status $ac_status" >&5
27254 echo "$as_me: failed program was:" >&5
27255 sed 's/^/| /' conftest.$ac_ext >&5
27257 ( exit $ac_status )
27258 ac_cv_c_bigendian=yes
27260 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27268 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
27269 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
27270 case $ac_cv_c_bigendian in
27273 cat >>confdefs.h <<\_ACEOF
27274 #define WORDS_BIGENDIAN 1
27280 { { echo "$as_me:$LINENO: error: unknown endianness
27281 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
27282 echo "$as_me: error: unknown endianness
27283 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
27284 { (exit 1); exit 1; }; } ;;
27289 cflags_save="$CFLAGS"
27290 if test -z "$GCC"; then
27294 CFLAGS="-O2 -w -signed"
27295 PROFILE="-p -g3 -O2 -signed"
27297 sparc-sun-solaris*)
27299 CFLAGS="-xO4 -fast -w -fsimple -native -xcg92"
27300 PROFILE="-v -xpg -g -xO4 -fast -native -fsimple -xcg92 -Dsuncc"
27311 DEBUG="-g -Wall -fsigned-char"
27312 CFLAGS="-O2 -Wall -ffast-math -fsigned-char"
27313 PROFILE="-Wall -W -pg -g -O2 -ffast-math -fsigned-char"
27316 DEBUG="-g -Wall -fsigned-char -mv8"
27317 CFLAGS="-O20 -ffast-math -fsigned-char -mv8"
27318 PROFILE="-pg -g -O20 -fsigned-char -mv8"
27321 DEBUG="-fno-common -g -Wall -fsigned-char"
27322 CFLAGS="-fno-common -O4 -Wall -fsigned-char -ffast-math"
27323 PROFILE="-fno-common -O4 -Wall -pg -g -fsigned-char -ffast-math"
27326 DEBUG="-g -Wall -fsigned-char"
27327 CFLAGS="-O2 -fsigned-char"
27328 PROFILE="-O2 -g -pg -fsigned-char"
27332 CFLAGS="$CFLAGS $cflags_save"
27333 DEBUG="$DEBUG $cflags_save"
27334 PROFILE="$PROFILE $cflags_save"
27336 # Check whether --enable-ogg123 was given.
27337 if test "${enable_ogg123+set}" = set; then
27338 enableval=$enable_ogg123; build_ogg123="$enableval"
27343 # Check whether --enable-oggdec was given.
27344 if test "${enable_oggdec+set}" = set; then
27345 enableval=$enable_oggdec; build_oggdec="$enableval"
27350 # Check whether --enable-oggenc was given.
27351 if test "${enable_oggenc+set}" = set; then
27352 enableval=$enable_oggenc; build_oggenc="$enableval"
27357 # Check whether --enable-ogginfo was given.
27358 if test "${enable_ogginfo+set}" = set; then
27359 enableval=$enable_ogginfo; build_ogginfo="$enableval"
27361 build_ogginfo="yes"
27364 # Check whether --enable-vcut was given.
27365 if test "${enable_vcut+set}" = set; then
27366 enableval=$enable_vcut; build_vcut="$enableval"
27371 # Check whether --enable-vorbiscomment was given.
27372 if test "${enable_vorbiscomment+set}" = set; then
27373 enableval=$enable_vorbiscomment; build_vorbiscomment="$enableval"
27375 build_vorbiscomment="yes"
27379 # Check whether --with-flac was given.
27380 if test "${with_flac+set}" = set; then
27381 withval=$with_flac; build_flac=no
27387 # Check whether --with-speex was given.
27388 if test "${with_speex+set}" = set; then
27389 withval=$with_speex; build_speex=no
27397 # Extract the first word of "pkg-config", so it can be a program name with args.
27398 set dummy pkg-config; ac_word=$2
27399 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27400 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27401 if test "${ac_cv_prog_HAVE_PKG_CONFIG+set}" = set; then
27402 echo $ECHO_N "(cached) $ECHO_C" >&6
27404 if test -n "$HAVE_PKG_CONFIG"; then
27405 ac_cv_prog_HAVE_PKG_CONFIG="$HAVE_PKG_CONFIG" # Let the user override the test.
27407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27408 for as_dir in $PATH
27411 test -z "$as_dir" && as_dir=.
27412 for ac_exec_ext in '' $ac_executable_extensions; do
27413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27414 ac_cv_prog_HAVE_PKG_CONFIG="yes"
27415 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27424 HAVE_PKG_CONFIG=$ac_cv_prog_HAVE_PKG_CONFIG
27425 if test -n "$HAVE_PKG_CONFIG"; then
27426 { echo "$as_me:$LINENO: result: $HAVE_PKG_CONFIG" >&5
27427 echo "${ECHO_T}$HAVE_PKG_CONFIG" >&6; }
27429 { echo "$as_me:$LINENO: result: no" >&5
27430 echo "${ECHO_T}no" >&6; }
27434 if test "x$HAVE_PKG_CONFIG" = "xyes"
27438 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
27439 if test -n "$ac_tool_prefix"; then
27440 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
27441 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
27442 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27443 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27444 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
27445 echo $ECHO_N "(cached) $ECHO_C" >&6
27447 case $PKG_CONFIG in
27449 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
27452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27453 for as_dir in $PATH
27456 test -z "$as_dir" && as_dir=.
27457 for ac_exec_ext in '' $ac_executable_extensions; do
27458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27459 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27460 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27470 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
27471 if test -n "$PKG_CONFIG"; then
27472 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
27473 echo "${ECHO_T}$PKG_CONFIG" >&6; }
27475 { echo "$as_me:$LINENO: result: no" >&5
27476 echo "${ECHO_T}no" >&6; }
27481 if test -z "$ac_cv_path_PKG_CONFIG"; then
27482 ac_pt_PKG_CONFIG=$PKG_CONFIG
27483 # Extract the first word of "pkg-config", so it can be a program name with args.
27484 set dummy pkg-config; ac_word=$2
27485 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27486 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27487 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
27488 echo $ECHO_N "(cached) $ECHO_C" >&6
27490 case $ac_pt_PKG_CONFIG in
27492 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
27495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27496 for as_dir in $PATH
27499 test -z "$as_dir" && as_dir=.
27500 for ac_exec_ext in '' $ac_executable_extensions; do
27501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27502 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27503 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27513 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
27514 if test -n "$ac_pt_PKG_CONFIG"; then
27515 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
27516 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
27518 { echo "$as_me:$LINENO: result: no" >&5
27519 echo "${ECHO_T}no" >&6; }
27522 if test "x$ac_pt_PKG_CONFIG" = x; then
27525 case $cross_compiling:$ac_tool_warned in
27527 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
27528 whose name does not start with the host triplet. If you think this
27529 configuration is useful to you, please write to autoconf@gnu.org." >&5
27530 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
27531 whose name does not start with the host triplet. If you think this
27532 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
27533 ac_tool_warned=yes ;;
27535 PKG_CONFIG=$ac_pt_PKG_CONFIG
27538 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
27542 if test -n "$PKG_CONFIG"; then
27543 _pkg_min_version=0.9.0
27544 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
27545 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
27546 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
27547 { echo "$as_me:$LINENO: result: yes" >&5
27548 echo "${ECHO_T}yes" >&6; }
27550 { echo "$as_me:$LINENO: result: no" >&5
27551 echo "${ECHO_T}no" >&6; }
27558 { echo "$as_me:$LINENO: checking for OGG" >&5
27559 echo $ECHO_N "checking for OGG... $ECHO_C" >&6; }
27561 if test -n "$PKG_CONFIG"; then
27562 if test -n "$OGG_CFLAGS"; then
27563 pkg_cv_OGG_CFLAGS="$OGG_CFLAGS"
27565 if test -n "$PKG_CONFIG" && \
27566 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"ogg >= 1.0\"") >&5
27567 ($PKG_CONFIG --exists --print-errors "ogg >= 1.0") 2>&5
27569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27570 (exit $ac_status); }; then
27571 pkg_cv_OGG_CFLAGS=`$PKG_CONFIG --cflags "ogg >= 1.0" 2>/dev
/null
`
27579 if test -n "$PKG_CONFIG"; then
27580 if test -n "$OGG_LIBS"; then
27581 pkg_cv_OGG_LIBS="$OGG_LIBS"
27583 if test -n "$PKG_CONFIG" && \
27584 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"ogg >= 1.0\"") >&5
27585 ($PKG_CONFIG --exists --print-errors "ogg >= 1.0") 2>&5
27587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27588 (exit $ac_status); }; then
27589 pkg_cv_OGG_LIBS=`$PKG_CONFIG --libs "ogg >= 1.0" 2>/dev
/null
`
27600 if test $pkg_failed = yes; then
27602 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27603 _pkg_short_errors_supported=yes
27605 _pkg_short_errors_supported=no
27607 if test $_pkg_short_errors_supported = yes; then
27608 OGG_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "ogg >= 1.0"`
27610 OGG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "ogg >= 1.0"`
27612 # Put the nasty error message in config.log where it belongs
27613 echo "$OGG_PKG_ERRORS" >&5
27615 { echo "$as_me:$LINENO: result: no" >&5
27616 echo "${ECHO_T}no" >&6; }
27618 elif test $pkg_failed = untried; then
27621 OGG_CFLAGS=$pkg_cv_OGG_CFLAGS
27622 OGG_LIBS=$pkg_cv_OGG_LIBS
27623 { echo "$as_me:$LINENO: result: yes" >&5
27624 echo "${ECHO_T}yes" >&6; }
27628 if test "x$HAVE_OGG" = "xno"
27631 # Check whether --with-ogg was given.
27632 if test "${with_ogg+set}" = set; then
27633 withval=$with_ogg; ogg_prefix="$withval"
27639 # Check whether --with-ogg-libraries was given.
27640 if test "${with_ogg_libraries+set}" = set; then
27641 withval=$with_ogg_libraries; ogg_libraries="$withval"
27647 # Check whether --with-ogg-includes was given.
27648 if test "${with_ogg_includes+set}" = set; then
27649 withval=$with_ogg_includes; ogg_includes="$withval"
27654 # Check whether --enable-oggtest was given.
27655 if test "${enable_oggtest+set}" = set; then
27656 enableval=$enable_oggtest;
27662 if test "x$ogg_libraries" != "x" ; then
27663 OGG_LIBS="-L$ogg_libraries"
27664 elif test "x$ogg_prefix" = "xno" || test "x$ogg_prefix" = "xyes" ; then
27666 elif test "x$ogg_prefix" != "x" ; then
27667 OGG_LIBS="-L$ogg_prefix/lib"
27668 elif test "x$prefix" != "xNONE" ; then
27669 OGG_LIBS="-L$prefix/lib"
27672 if test "x$ogg_prefix" != "xno" ; then
27673 OGG_LIBS="$OGG_LIBS -logg"
27676 if test "x$ogg_includes" != "x" ; then
27677 OGG_CFLAGS="-I$ogg_includes"
27678 elif test "x$ogg_prefix" = "xno" || test "x$ogg_prefix" = "xyes" ; then
27680 elif test "x$ogg_prefix" != "x" ; then
27681 OGG_CFLAGS="-I$ogg_prefix/include"
27682 elif test "x$prefix" != "xNONE"; then
27683 OGG_CFLAGS="-I$prefix/include"
27686 { echo "$as_me:$LINENO: checking for Ogg" >&5
27687 echo $ECHO_N "checking for Ogg... $ECHO_C" >&6; }
27688 if test "x$ogg_prefix" = "xno" ; then
27690 enable_oggtest="no"
27696 if test "x$enable_oggtest" = "xyes" ; then
27697 ac_save_CFLAGS="$CFLAGS"
27698 ac_save_LIBS="$LIBS"
27699 CFLAGS="$CFLAGS $OGG_CFLAGS"
27700 LIBS="$LIBS $OGG_LIBS"
27702 if test "$cross_compiling" = yes; then
27703 echo $ac_n "cross compiling; assumed OK... $ac_c"
27705 cat >conftest.$ac_ext <<_ACEOF
27708 cat confdefs.h >>conftest.$ac_ext
27709 cat >>conftest.$ac_ext <<_ACEOF
27710 /* end confdefs.h. */
27713 #include <stdlib.h>
27714 #include <string.h>
27715 #include <ogg/ogg.h>
27719 system("touch conf.oggtest");
27725 rm -f conftest$ac_exeext
27726 if { (ac_try="$ac_link"
27727 case "(($ac_try" in
27728 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27729 *) ac_try_echo
=$ac_try;;
27731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27732 (eval "$ac_link") 2>&5
27734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27735 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
27736 { (case "(($ac_try" in
27737 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27738 *) ac_try_echo=$ac_try;;
27740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27741 (eval "$ac_try") 2>&5
27743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27744 (exit $ac_status); }; }; then
27747 echo "$as_me: program exited with status $ac_status" >&5
27748 echo "$as_me: failed program was:" >&5
27749 sed 's/^/| /' conftest.$ac_ext >&5
27751 ( exit $ac_status )
27754 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27758 CFLAGS="$ac_save_CFLAGS"
27759 LIBS="$ac_save_LIBS"
27762 if test "x$no_ogg" = "xdisabled" ; then
27763 { echo "$as_me:$LINENO: result: no" >&5
27764 echo "${ECHO_T}no" >&6; }
27765 { { echo "$as_me:$LINENO: error: Ogg needed!" >&5
27766 echo "$as_me: error: Ogg needed!" >&2;}
27767 { (exit 1); exit 1; }; }
27768 elif test "x$no_ogg" = "x" ; then
27769 { echo "$as_me:$LINENO: result: yes" >&5
27770 echo "${ECHO_T}yes" >&6; }
27773 { echo "$as_me:$LINENO: result: no" >&5
27774 echo "${ECHO_T}no" >&6; }
27775 if test -f conf.oggtest ; then
27778 echo "*** Could not run Ogg test program, checking why..."
27779 CFLAGS="$CFLAGS $OGG_CFLAGS"
27780 LIBS="$LIBS $OGG_LIBS"
27781 cat >conftest.$ac_ext <<_ACEOF
27784 cat confdefs.h >>conftest.$ac_ext
27785 cat >>conftest.$ac_ext <<_ACEOF
27786 /* end confdefs.h. */
27789 #include <ogg/ogg.h>
27799 rm -f conftest.$ac_objext conftest$ac_exeext
27800 if { (ac_try="$ac_link"
27801 case "(($ac_try" in
27802 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27803 *) ac_try_echo
=$ac_try;;
27805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27806 (eval "$ac_link") 2>conftest.er1
27808 grep -v '^ *+' conftest.er1
>conftest.err
27810 cat conftest.err
>&5
27811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27812 (exit $ac_status); } && {
27813 test -z "$ac_c_werror_flag" ||
27814 test ! -s conftest.err
27815 } && test -s conftest
$ac_exeext &&
27816 $as_test_x conftest
$ac_exeext; then
27817 echo "*** The test program compiled, but did not run. This usually means"
27818 echo "*** that the run-time linker is not finding Ogg or finding the wrong"
27819 echo "*** version of Ogg. If it is not finding Ogg, you'll need to set your"
27820 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
27821 echo "*** to the installed location Also, make sure you have run ldconfig if that"
27822 echo "*** is required on your system"
27824 echo "*** If you have an old version installed, it is best to remove it, although"
27825 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
27827 echo "$as_me: failed program was:" >&5
27828 sed 's/^/| /' conftest.
$ac_ext >&5
27830 echo "*** The test program failed to compile or link. See the file config.log for the"
27831 echo "*** exact error that occured. This usually means Ogg was incorrectly installed"
27832 echo "*** or that you have moved Ogg since it was installed. In the latter case, you"
27833 echo "*** may want to edit the ogg-config script: $OGG_CONFIG"
27836 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
27837 conftest
$ac_exeext conftest.
$ac_ext
27838 CFLAGS
="$ac_save_CFLAGS"
27839 LIBS
="$ac_save_LIBS"
27843 { { echo "$as_me:$LINENO: error: Ogg needed!" >&5
27844 echo "$as_me: error: Ogg needed!" >&2;}
27845 { (exit 1); exit 1; }; }
27852 LIBS
="$OGG_LIBS $VORBIS_LIBS"
27853 { echo "$as_me:$LINENO: checking for oggpack_writealign" >&5
27854 echo $ECHO_N "checking for oggpack_writealign... $ECHO_C" >&6; }
27855 if test "${ac_cv_func_oggpack_writealign+set}" = set; then
27856 echo $ECHO_N "(cached) $ECHO_C" >&6
27858 cat >conftest.
$ac_ext <<_ACEOF
27861 cat confdefs.h
>>conftest.
$ac_ext
27862 cat >>conftest.
$ac_ext <<_ACEOF
27863 /* end confdefs.h. */
27864 /* Define oggpack_writealign to an innocuous variant, in case <limits.h> declares oggpack_writealign.
27865 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27866 #define oggpack_writealign innocuous_oggpack_writealign
27868 /* System header to define __stub macros and hopefully few prototypes,
27869 which can conflict with char oggpack_writealign (); below.
27870 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27871 <limits.h> exists even on freestanding compilers. */
27874 # include <limits.h>
27876 # include <assert.h>
27879 #undef oggpack_writealign
27881 /* Override any GCC internal prototype to avoid an error.
27882 Use char because int might match the return type of a GCC
27883 builtin and then its argument prototype would still apply. */
27887 char oggpack_writealign ();
27888 /* The GNU C library defines this for functions which it implements
27889 to always fail with ENOSYS. Some functions are actually named
27890 something starting with __ and the normal name is an alias. */
27891 #if defined __stub_oggpack_writealign || defined __stub___oggpack_writealign
27898 return oggpack_writealign ();
27903 rm -f conftest.
$ac_objext conftest
$ac_exeext
27904 if { (ac_try
="$ac_link"
27905 case "(($ac_try" in
27906 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27907 *) ac_try_echo=$ac_try;;
27909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27910 (eval "$ac_link") 2>conftest.er1
27912 grep -v '^ *+' conftest.er1 >conftest.err
27914 cat conftest.err >&5
27915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27916 (exit $ac_status); } && {
27917 test -z "$ac_c_werror_flag" ||
27918 test ! -s conftest.err
27919 } && test -s conftest$ac_exeext &&
27920 $as_test_x conftest$ac_exeext; then
27921 ac_cv_func_oggpack_writealign=yes
27923 echo "$as_me: failed program was:" >&5
27924 sed 's/^/| /' conftest.$ac_ext >&5
27926 ac_cv_func_oggpack_writealign=no
27929 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27930 conftest$ac_exeext conftest.$ac_ext
27932 { echo "$as_me:$LINENO: result: $ac_cv_func_oggpack_writealign" >&5
27933 echo "${ECHO_T}$ac_cv_func_oggpack_writealign" >&6; }
27934 if test $ac_cv_func_oggpack_writealign = yes; then
27937 { { echo "$as_me:$LINENO: error: Ogg >= 1.0 required !" >&5
27938 echo "$as_me: error: Ogg >= 1.0 required !" >&2;}
27939 { (exit 1); exit 1; }; }
27948 if test "x$HAVE_PKG_CONFIG" = "xyes"
27952 { echo "$as_me:$LINENO: checking for VORBIS" >&5
27953 echo $ECHO_N "checking for VORBIS... $ECHO_C" >&6; }
27955 if test -n "$PKG_CONFIG"; then
27956 if test -n "$VORBIS_CFLAGS"; then
27957 pkg_cv_VORBIS_CFLAGS="$VORBIS_CFLAGS"
27959 if test -n "$PKG_CONFIG" && \
27960 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"vorbis >= 1.1.1\"") >&5
27961 ($PKG_CONFIG --exists --print-errors "vorbis >= 1.1.1") 2>&5
27963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27964 (exit $ac_status); }; then
27965 pkg_cv_VORBIS_CFLAGS=`$PKG_CONFIG --cflags "vorbis >= 1.1.1" 2>/dev
/null
`
27973 if test -n "$PKG_CONFIG"; then
27974 if test -n "$VORBIS_LIBS"; then
27975 pkg_cv_VORBIS_LIBS="$VORBIS_LIBS"
27977 if test -n "$PKG_CONFIG" && \
27978 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"vorbis >= 1.1.1\"") >&5
27979 ($PKG_CONFIG --exists --print-errors "vorbis >= 1.1.1") 2>&5
27981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27982 (exit $ac_status); }; then
27983 pkg_cv_VORBIS_LIBS=`$PKG_CONFIG --libs "vorbis >= 1.1.1" 2>/dev
/null
`
27994 if test $pkg_failed = yes; then
27996 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27997 _pkg_short_errors_supported=yes
27999 _pkg_short_errors_supported=no
28001 if test $_pkg_short_errors_supported = yes; then
28002 VORBIS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "vorbis >= 1.1.1"`
28004 VORBIS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "vorbis >= 1.1.1"`
28006 # Put the nasty error message in config.log where it belongs
28007 echo "$VORBIS_PKG_ERRORS" >&5
28009 { echo "$as_me:$LINENO: result: no" >&5
28010 echo "${ECHO_T}no" >&6; }
28012 elif test $pkg_failed = untried; then
28015 VORBIS_CFLAGS=$pkg_cv_VORBIS_CFLAGS
28016 VORBIS_LIBS=$pkg_cv_VORBIS_LIBS
28017 { echo "$as_me:$LINENO: result: yes" >&5
28018 echo "${ECHO_T}yes" >&6; }
28021 VORBISENC_LIBS="-lvorbisenc"
28022 VORBISFILE_LIBS="-lvorbisfile"
28026 if test "x$HAVE_VORBIS" = "xno"
28029 # Check whether --with-vorbis was given.
28030 if test "${with_vorbis+set}" = set; then
28031 withval=$with_vorbis; vorbis_prefix="$withval"
28037 # Check whether --with-vorbis-libraries was given.
28038 if test "${with_vorbis_libraries+set}" = set; then
28039 withval=$with_vorbis_libraries; vorbis_libraries="$withval"
28041 vorbis_libraries=""
28045 # Check whether --with-vorbis-includes was given.
28046 if test "${with_vorbis_includes+set}" = set; then
28047 withval=$with_vorbis_includes; vorbis_includes="$withval"
28052 # Check whether --enable-vorbistest was given.
28053 if test "${enable_vorbistest+set}" = set; then
28054 enableval=$enable_vorbistest;
28056 enable_vorbistest=yes
28060 if test "x$vorbis_libraries" != "x" ; then
28061 VORBIS_LIBS="-L$vorbis_libraries"
28062 elif test "x$vorbis_prefix" = "xno" || test "x$vorbis_prefix" = "xyes" ; then
28064 elif test "x$vorbis_prefix" != "x" ; then
28065 VORBIS_LIBS="-L$vorbis_prefix/lib"
28066 elif test "x$prefix" != "xNONE"; then
28067 VORBIS_LIBS="-L$prefix/lib"
28070 VORBISFILE_LIBS="$VORBIS_LIBS -lvorbisfile"
28071 VORBISENC_LIBS="$VORBIS_LIBS -lvorbisenc"
28072 if test "x$vorbis_prefix" != "xno" ; then
28073 VORBIS_LIBS="$VORBIS_LIBS -lvorbis"
28076 if test "x$vorbis_includes" != "x" ; then
28077 VORBIS_CFLAGS="-I$vorbis_includes"
28078 elif test "x$vorbis_prefix" = "xno" || test "x$vorbis_prefix" = "xyes" ; then
28080 elif test "x$vorbis_prefix" != "x" ; then
28081 VORBIS_CFLAGS="-I$vorbis_prefix/include"
28082 elif test "x$prefix" != "xNONE"; then
28083 VORBIS_CFLAGS="-I$prefix/include"
28086 xiph_saved_LIBS="$LIBS"
28088 { echo "$as_me:$LINENO: checking for library containing cos" >&5
28089 echo $ECHO_N "checking for library containing cos... $ECHO_C" >&6; }
28090 if test "${ac_cv_search_cos+set}" = set; then
28091 echo $ECHO_N "(cached) $ECHO_C" >&6
28093 ac_func_search_save_LIBS=$LIBS
28094 cat >conftest.$ac_ext <<_ACEOF
28097 cat confdefs.h >>conftest.$ac_ext
28098 cat >>conftest.$ac_ext <<_ACEOF
28099 /* end confdefs.h. */
28101 /* Override any GCC internal prototype to avoid an error.
28102 Use char because int might match the return type of a GCC
28103 builtin and then its argument prototype would still apply. */
28116 for ac_lib in '' m; do
28117 if test -z "$ac_lib"; then
28118 ac_res="none required"
28121 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28123 rm -f conftest.$ac_objext conftest$ac_exeext
28124 if { (ac_try="$ac_link"
28125 case "(($ac_try" in
28126 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28127 *) ac_try_echo
=$ac_try;;
28129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28130 (eval "$ac_link") 2>conftest.er1
28132 grep -v '^ *+' conftest.er1
>conftest.err
28134 cat conftest.err
>&5
28135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28136 (exit $ac_status); } && {
28137 test -z "$ac_c_werror_flag" ||
28138 test ! -s conftest.err
28139 } && test -s conftest
$ac_exeext &&
28140 $as_test_x conftest
$ac_exeext; then
28141 ac_cv_search_cos
=$ac_res
28143 echo "$as_me: failed program was:" >&5
28144 sed 's/^/| /' conftest.
$ac_ext >&5
28149 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
28151 if test "${ac_cv_search_cos+set}" = set; then
28155 if test "${ac_cv_search_cos+set}" = set; then
28158 ac_cv_search_cos
=no
28160 rm conftest.
$ac_ext
28161 LIBS
=$ac_func_search_save_LIBS
28163 { echo "$as_me:$LINENO: result: $ac_cv_search_cos" >&5
28164 echo "${ECHO_T}$ac_cv_search_cos" >&6; }
28165 ac_res
=$ac_cv_search_cos
28166 if test "$ac_res" != no
; then
28167 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
28168 VORBIS_LIBS
="$VORBIS_LIBS $LIBS"
28171 { echo "$as_me:$LINENO: WARNING: cos() not found in math library, vorbis installation may not work" >&5
28172 echo "$as_me: WARNING: cos() not found in math library, vorbis installation may not work" >&2;}
28176 LIBS
="$xiph_saved_LIBS"
28178 { echo "$as_me:$LINENO: checking for Vorbis" >&5
28179 echo $ECHO_N "checking for Vorbis... $ECHO_C" >&6; }
28180 if test "x$vorbis_prefix" = "xno" ; then
28181 no_vorbis
="disabled"
28182 enable_vorbistest
="no"
28188 if test "x$enable_vorbistest" = "xyes" ; then
28189 ac_save_CFLAGS
="$CFLAGS"
28190 ac_save_LIBS
="$LIBS"
28191 CFLAGS
="$CFLAGS $VORBIS_CFLAGS $OGG_CFLAGS"
28192 LIBS
="$LIBS $VORBIS_LIBS $OGG_LIBS"
28193 rm -f conf.vorbistest
28194 if test "$cross_compiling" = yes; then
28195 echo $ac_n "cross compiling; assumed OK... $ac_c"
28197 cat >conftest.
$ac_ext <<_ACEOF
28200 cat confdefs.h
>>conftest.
$ac_ext
28201 cat >>conftest.
$ac_ext <<_ACEOF
28202 /* end confdefs.h. */
28205 #include <stdlib.h>
28206 #include <string.h>
28207 #include <vorbis/codec.h>
28211 system("touch conf.vorbistest");
28217 rm -f conftest
$ac_exeext
28218 if { (ac_try
="$ac_link"
28219 case "(($ac_try" in
28220 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28221 *) ac_try_echo=$ac_try;;
28223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28224 (eval "$ac_link") 2>&5
28226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28227 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28228 { (case "(($ac_try" in
28229 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28230 *) ac_try_echo
=$ac_try;;
28232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28233 (eval "$ac_try") 2>&5
28235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28236 (exit $ac_status); }; }; then
28239 echo "$as_me: program exited with status $ac_status" >&5
28240 echo "$as_me: failed program was:" >&5
28241 sed 's/^/| /' conftest.
$ac_ext >&5
28243 ( exit $ac_status )
28246 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
28250 CFLAGS
="$ac_save_CFLAGS"
28251 LIBS
="$ac_save_LIBS"
28254 if test "x$no_vorbis" = "xdisabled" ; then
28255 { echo "$as_me:$LINENO: result: no" >&5
28256 echo "${ECHO_T}no" >&6; }
28257 { { echo "$as_me:$LINENO: error: Vorbis needed!" >&5
28258 echo "$as_me: error: Vorbis needed!" >&2;}
28259 { (exit 1); exit 1; }; }
28260 elif test "x$no_vorbis" = "x" ; then
28261 { echo "$as_me:$LINENO: result: yes" >&5
28262 echo "${ECHO_T}yes" >&6; }
28265 { echo "$as_me:$LINENO: result: no" >&5
28266 echo "${ECHO_T}no" >&6; }
28267 if test -f conf.vorbistest
; then
28270 echo "*** Could not run Vorbis test program, checking why..."
28271 CFLAGS
="$CFLAGS $VORBIS_CFLAGS"
28272 LIBS
="$LIBS $VORBIS_LIBS $OGG_LIBS"
28273 cat >conftest.
$ac_ext <<_ACEOF
28276 cat confdefs.h
>>conftest.
$ac_ext
28277 cat >>conftest.
$ac_ext <<_ACEOF
28278 /* end confdefs.h. */
28281 #include <vorbis/codec.h>
28291 rm -f conftest.
$ac_objext conftest
$ac_exeext
28292 if { (ac_try
="$ac_link"
28293 case "(($ac_try" in
28294 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28295 *) ac_try_echo=$ac_try;;
28297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28298 (eval "$ac_link") 2>conftest.er1
28300 grep -v '^ *+' conftest.er1 >conftest.err
28302 cat conftest.err >&5
28303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28304 (exit $ac_status); } && {
28305 test -z "$ac_c_werror_flag" ||
28306 test ! -s conftest.err
28307 } && test -s conftest$ac_exeext &&
28308 $as_test_x conftest$ac_exeext; then
28309 echo "*** The test program compiled, but did not run. This usually means"
28310 echo "*** that the run-time linker is not finding Vorbis or finding the wrong"
28311 echo "*** version of Vorbis. If it is not finding Vorbis, you'll need to set your"
28312 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
28313 echo "*** to the installed location Also, make sure you have run ldconfig if that"
28314 echo "*** is required on your system"
28316 echo "*** If you have an old version installed, it is best to remove it, although"
28317 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
28319 echo "$as_me: failed program was:" >&5
28320 sed 's/^/| /' conftest.$ac_ext >&5
28322 echo "*** The test program failed to compile or link. See the file config.log for the"
28323 echo "*** exact error that occured. This usually means Vorbis was incorrectly installed"
28324 echo "*** or that you have moved Vorbis since it was installed."
28327 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28328 conftest$ac_exeext conftest.$ac_ext
28329 CFLAGS="$ac_save_CFLAGS"
28330 LIBS="$ac_save_LIBS"
28336 { { echo "$as_me:$LINENO: error: Vorbis needed!" >&5
28337 echo "$as_me: error: Vorbis needed!" >&2;}
28338 { (exit 1); exit 1; }; }
28344 rm -f conf.vorbistest
28350 SHARE_LIBS='$(top_builddir)/share/libutf8.a $(top_builddir)/share/libgetopt.a'
28351 SHARE_CFLAGS='-I$(top_srcdir)/include'
28353 I18N_CFLAGS='-I$(top_srcdir)/intl'
28354 I18N_LIBS=$INTLLIBS
28357 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
28358 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
28359 if test "${ac_cv_lib_socket_socket+set}" = set; then
28360 echo $ECHO_N "(cached) $ECHO_C" >&6
28362 ac_check_lib_save_LIBS=$LIBS
28363 LIBS="-lsocket $LIBS"
28364 cat >conftest.$ac_ext <<_ACEOF
28367 cat confdefs.h >>conftest.$ac_ext
28368 cat >>conftest.$ac_ext <<_ACEOF
28369 /* end confdefs.h. */
28371 /* Override any GCC internal prototype to avoid an error.
28372 Use char because int might match the return type of a GCC
28373 builtin and then its argument prototype would still apply. */
28386 rm -f conftest.$ac_objext conftest$ac_exeext
28387 if { (ac_try="$ac_link"
28388 case "(($ac_try" in
28389 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28390 *) ac_try_echo
=$ac_try;;
28392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28393 (eval "$ac_link") 2>conftest.er1
28395 grep -v '^ *+' conftest.er1
>conftest.err
28397 cat conftest.err
>&5
28398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28399 (exit $ac_status); } && {
28400 test -z "$ac_c_werror_flag" ||
28401 test ! -s conftest.err
28402 } && test -s conftest
$ac_exeext &&
28403 $as_test_x conftest
$ac_exeext; then
28404 ac_cv_lib_socket_socket
=yes
28406 echo "$as_me: failed program was:" >&5
28407 sed 's/^/| /' conftest.
$ac_ext >&5
28409 ac_cv_lib_socket_socket
=no
28412 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
28413 conftest
$ac_exeext conftest.
$ac_ext
28414 LIBS
=$ac_check_lib_save_LIBS
28416 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
28417 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
28418 if test $ac_cv_lib_socket_socket = yes; then
28419 SOCKET_LIBS
="-lsocket"
28422 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
28423 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
28424 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
28425 echo $ECHO_N "(cached) $ECHO_C" >&6
28427 ac_check_lib_save_LIBS
=$LIBS
28429 cat >conftest.
$ac_ext <<_ACEOF
28432 cat confdefs.h
>>conftest.
$ac_ext
28433 cat >>conftest.
$ac_ext <<_ACEOF
28434 /* end confdefs.h. */
28436 /* Override any GCC internal prototype to avoid an error.
28437 Use char because int might match the return type of a GCC
28438 builtin and then its argument prototype would still apply. */
28442 char gethostbyname ();
28446 return gethostbyname ();
28451 rm -f conftest.
$ac_objext conftest
$ac_exeext
28452 if { (ac_try
="$ac_link"
28453 case "(($ac_try" in
28454 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28455 *) ac_try_echo=$ac_try;;
28457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28458 (eval "$ac_link") 2>conftest.er1
28460 grep -v '^ *+' conftest.er1 >conftest.err
28462 cat conftest.err >&5
28463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28464 (exit $ac_status); } && {
28465 test -z "$ac_c_werror_flag" ||
28466 test ! -s conftest.err
28467 } && test -s conftest$ac_exeext &&
28468 $as_test_x conftest$ac_exeext; then
28469 ac_cv_lib_nsl_gethostbyname=yes
28471 echo "$as_me: failed program was:" >&5
28472 sed 's/^/| /' conftest.$ac_ext >&5
28474 ac_cv_lib_nsl_gethostbyname=no
28477 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28478 conftest$ac_exeext conftest.$ac_ext
28479 LIBS=$ac_check_lib_save_LIBS
28481 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
28482 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
28483 if test $ac_cv_lib_nsl_gethostbyname = yes; then
28484 SOCKET_LIBS="-lnsl $SOCKET_LIBS"
28490 if test "x$HAVE_PKG_CONFIG" = "xyes"; then
28493 { echo "$as_me:$LINENO: checking for CURL" >&5
28494 echo $ECHO_N "checking for CURL... $ECHO_C" >&6; }
28496 if test -n "$PKG_CONFIG"; then
28497 if test -n "$CURL_CFLAGS"; then
28498 pkg_cv_CURL_CFLAGS="$CURL_CFLAGS"
28500 if test -n "$PKG_CONFIG" && \
28501 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcurl\"") >&5
28502 ($PKG_CONFIG --exists --print-errors "libcurl") 2>&5
28504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28505 (exit $ac_status); }; then
28506 pkg_cv_CURL_CFLAGS=`$PKG_CONFIG --cflags "libcurl" 2>/dev
/null
`
28514 if test -n "$PKG_CONFIG"; then
28515 if test -n "$CURL_LIBS"; then
28516 pkg_cv_CURL_LIBS="$CURL_LIBS"
28518 if test -n "$PKG_CONFIG" && \
28519 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcurl\"") >&5
28520 ($PKG_CONFIG --exists --print-errors "libcurl") 2>&5
28522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28523 (exit $ac_status); }; then
28524 pkg_cv_CURL_LIBS=`$PKG_CONFIG --libs "libcurl" 2>/dev
/null
`
28535 if test $pkg_failed = yes; then
28537 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28538 _pkg_short_errors_supported=yes
28540 _pkg_short_errors_supported=no
28542 if test $_pkg_short_errors_supported = yes; then
28543 CURL_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libcurl"`
28545 CURL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libcurl"`
28547 # Put the nasty error message in config.log where it belongs
28548 echo "$CURL_PKG_ERRORS" >&5
28550 { echo "$as_me:$LINENO: result: no" >&5
28551 echo "${ECHO_T}no" >&6; }
28553 elif test $pkg_failed = untried; then
28556 CURL_CFLAGS=$pkg_cv_CURL_CFLAGS
28557 CURL_LIBS=$pkg_cv_CURL_LIBS
28558 { echo "$as_me:$LINENO: result: yes" >&5
28559 echo "${ECHO_T}yes" >&6; }
28562 if test "x$HAVE_CURL" = "xno"; then
28564 # Check whether --with-curl was given.
28565 if test "${with_curl+set}" = set; then
28566 withval=$with_curl; curl_prefix="$withval"
28572 # Check whether --with-curl-libraries was given.
28573 if test "${with_curl_libraries+set}" = set; then
28574 withval=$with_curl_libraries; curl_libraries="$withval"
28580 # Check whether --with-curl-includes was given.
28581 if test "${with_curl_includes+set}" = set; then
28582 withval=$with_curl_includes; curl_includes="$withval"
28587 # Check whether --enable-curltest was given.
28588 if test "${enable_curltest+set}" = set; then
28589 enableval=$enable_curltest;
28591 enable_curltest=yes
28595 if test "x$curl_prefix" != "xno" ; then
28597 if test "x$curl_libraries" != "x" ; then
28598 CURL_LIBS="-L$curl_libraries"
28599 elif test "x$curl_prefix" != "x" ; then
28600 CURL_LIBS="-L$curl_prefix/lib"
28601 elif test "x$prefix" != "xNONE" ; then
28602 CURL_LIBS="-L$prefix/lib"
28605 CURL_LIBS="$CURL_LIBS -lcurl"
28607 if test "x$curl_includes" != "x" ; then
28608 CURL_CFLAGS="-I$curl_includes"
28609 elif test "x$curl_prefix" != "x" ; then
28610 CURL_CFLAGS="-I$curl_prefix/include"
28611 elif test "x$prefix" != "xNONE"; then
28612 CURL_CFLAGS="-I$prefix/include"
28615 { echo "$as_me:$LINENO: checking for libcurl" >&5
28616 echo $ECHO_N "checking for libcurl... $ECHO_C" >&6; }
28620 if test "x$enable_curltest" = "xyes" ; then
28621 ac_save_CFLAGS="$CFLAGS"
28622 ac_save_LIBS="$LIBS"
28623 CFLAGS="$CFLAGS $CURL_CFLAGS"
28624 LIBS="$LIBS $CURL_LIBS"
28625 rm -f conf.curltest
28626 if test "$cross_compiling" = yes; then
28627 echo $ac_n "cross compiling; assumed OK... $ac_c"
28629 cat >conftest.$ac_ext <<_ACEOF
28632 cat confdefs.h >>conftest.$ac_ext
28633 cat >>conftest.$ac_ext <<_ACEOF
28634 /* end confdefs.h. */
28637 #include <stdlib.h>
28638 #include <string.h>
28639 #include <curl/curl.h>
28643 system("touch conf.curltest");
28649 rm -f conftest$ac_exeext
28650 if { (ac_try="$ac_link"
28651 case "(($ac_try" in
28652 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28653 *) ac_try_echo
=$ac_try;;
28655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28656 (eval "$ac_link") 2>&5
28658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28659 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
28660 { (case "(($ac_try" in
28661 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28662 *) ac_try_echo=$ac_try;;
28664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28665 (eval "$ac_try") 2>&5
28667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28668 (exit $ac_status); }; }; then
28671 echo "$as_me: program exited with status $ac_status" >&5
28672 echo "$as_me: failed program was:" >&5
28673 sed 's/^/| /' conftest.$ac_ext >&5
28675 ( exit $ac_status )
28678 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28682 CFLAGS="$ac_save_CFLAGS"
28683 LIBS="$ac_save_LIBS"
28686 if test "x$no_curl" = "x" ; then
28687 { echo "$as_me:$LINENO: result: yes" >&5
28688 echo "${ECHO_T}yes" >&6; }
28690 cat >>confdefs.h <<\_ACEOF
28691 #define HAVE_CURL 1
28696 { echo "$as_me:$LINENO: result: no" >&5
28697 echo "${ECHO_T}no" >&6; }
28698 if test -f conf.curltest ; then
28701 echo "*** Could not run libcurl test program, checking why..."
28702 CFLAGS="$CFLAGS $CURL_CFLAGS"
28703 LIBS="$LIBS $CURL_LIBS"
28704 cat >conftest.$ac_ext <<_ACEOF
28707 cat confdefs.h >>conftest.$ac_ext
28708 cat >>conftest.$ac_ext <<_ACEOF
28709 /* end confdefs.h. */
28712 #include <curl/curl.h>
28722 rm -f conftest.$ac_objext conftest$ac_exeext
28723 if { (ac_try="$ac_link"
28724 case "(($ac_try" in
28725 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28726 *) ac_try_echo
=$ac_try;;
28728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28729 (eval "$ac_link") 2>conftest.er1
28731 grep -v '^ *+' conftest.er1
>conftest.err
28733 cat conftest.err
>&5
28734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28735 (exit $ac_status); } && {
28736 test -z "$ac_c_werror_flag" ||
28737 test ! -s conftest.err
28738 } && test -s conftest
$ac_exeext &&
28739 $as_test_x conftest
$ac_exeext; then
28740 echo "*** The test program compiled, but did not run. This usually means"
28741 echo "*** that the run-time linker is not finding libcurl or finding the wrong"
28742 echo "*** version of libcurl. If it is not finding libcurl, you'll need to set your"
28743 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
28744 echo "*** to the installed location Also, make sure you have run ldconfig if that"
28745 echo "*** is required on your system"
28747 echo "*** If you have an old version installed, it is best to remove it, although"
28748 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
28750 echo "$as_me: failed program was:" >&5
28751 sed 's/^/| /' conftest.
$ac_ext >&5
28753 echo "*** The test program failed to compile or link. See the file config.log for the"
28754 echo "*** exact error that occured. This usually means libcurl was incorrectly installed"
28755 echo "*** or that you have moved libcurl since it was installed."
28758 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
28759 conftest
$ac_exeext conftest.
$ac_ext
28760 CFLAGS
="$ac_save_CFLAGS"
28761 LIBS
="$ac_save_LIBS"
28765 HAVE_CURL
=no
; { echo "$as_me:$LINENO: WARNING: libcurl missing" >&5
28766 echo "$as_me: WARNING: libcurl missing" >&2;}
28774 rm -f conf.curltest
28779 # Check whether --with-curl was given.
28780 if test "${with_curl+set}" = set; then
28781 withval
=$with_curl; curl_prefix
="$withval"
28787 # Check whether --with-curl-libraries was given.
28788 if test "${with_curl_libraries+set}" = set; then
28789 withval
=$with_curl_libraries; curl_libraries
="$withval"
28795 # Check whether --with-curl-includes was given.
28796 if test "${with_curl_includes+set}" = set; then
28797 withval
=$with_curl_includes; curl_includes
="$withval"
28802 # Check whether --enable-curltest was given.
28803 if test "${enable_curltest+set}" = set; then
28804 enableval
=$enable_curltest;
28806 enable_curltest
=yes
28810 if test "x$curl_prefix" != "xno" ; then
28812 if test "x$curl_libraries" != "x" ; then
28813 CURL_LIBS
="-L$curl_libraries"
28814 elif test "x$curl_prefix" != "x" ; then
28815 CURL_LIBS
="-L$curl_prefix/lib"
28816 elif test "x$prefix" != "xNONE" ; then
28817 CURL_LIBS
="-L$prefix/lib"
28820 CURL_LIBS
="$CURL_LIBS -lcurl"
28822 if test "x$curl_includes" != "x" ; then
28823 CURL_CFLAGS
="-I$curl_includes"
28824 elif test "x$curl_prefix" != "x" ; then
28825 CURL_CFLAGS
="-I$curl_prefix/include"
28826 elif test "x$prefix" != "xNONE"; then
28827 CURL_CFLAGS
="-I$prefix/include"
28830 { echo "$as_me:$LINENO: checking for libcurl" >&5
28831 echo $ECHO_N "checking for libcurl... $ECHO_C" >&6; }
28835 if test "x$enable_curltest" = "xyes" ; then
28836 ac_save_CFLAGS
="$CFLAGS"
28837 ac_save_LIBS
="$LIBS"
28838 CFLAGS
="$CFLAGS $CURL_CFLAGS"
28839 LIBS
="$LIBS $CURL_LIBS"
28840 rm -f conf.curltest
28841 if test "$cross_compiling" = yes; then
28842 echo $ac_n "cross compiling; assumed OK... $ac_c"
28844 cat >conftest.
$ac_ext <<_ACEOF
28847 cat confdefs.h
>>conftest.
$ac_ext
28848 cat >>conftest.
$ac_ext <<_ACEOF
28849 /* end confdefs.h. */
28852 #include <stdlib.h>
28853 #include <string.h>
28854 #include <curl/curl.h>
28858 system("touch conf.curltest");
28864 rm -f conftest
$ac_exeext
28865 if { (ac_try
="$ac_link"
28866 case "(($ac_try" in
28867 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28868 *) ac_try_echo=$ac_try;;
28870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28871 (eval "$ac_link") 2>&5
28873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28874 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28875 { (case "(($ac_try" in
28876 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28877 *) ac_try_echo
=$ac_try;;
28879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28880 (eval "$ac_try") 2>&5
28882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28883 (exit $ac_status); }; }; then
28886 echo "$as_me: program exited with status $ac_status" >&5
28887 echo "$as_me: failed program was:" >&5
28888 sed 's/^/| /' conftest.
$ac_ext >&5
28890 ( exit $ac_status )
28893 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
28897 CFLAGS
="$ac_save_CFLAGS"
28898 LIBS
="$ac_save_LIBS"
28901 if test "x$no_curl" = "x" ; then
28902 { echo "$as_me:$LINENO: result: yes" >&5
28903 echo "${ECHO_T}yes" >&6; }
28905 cat >>confdefs.h
<<\_ACEOF
28906 #define HAVE_CURL 1
28911 { echo "$as_me:$LINENO: result: no" >&5
28912 echo "${ECHO_T}no" >&6; }
28913 if test -f conf.curltest
; then
28916 echo "*** Could not run libcurl test program, checking why..."
28917 CFLAGS
="$CFLAGS $CURL_CFLAGS"
28918 LIBS
="$LIBS $CURL_LIBS"
28919 cat >conftest.
$ac_ext <<_ACEOF
28922 cat confdefs.h
>>conftest.
$ac_ext
28923 cat >>conftest.
$ac_ext <<_ACEOF
28924 /* end confdefs.h. */
28927 #include <curl/curl.h>
28937 rm -f conftest.
$ac_objext conftest
$ac_exeext
28938 if { (ac_try
="$ac_link"
28939 case "(($ac_try" in
28940 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28941 *) ac_try_echo=$ac_try;;
28943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28944 (eval "$ac_link") 2>conftest.er1
28946 grep -v '^ *+' conftest.er1 >conftest.err
28948 cat conftest.err >&5
28949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28950 (exit $ac_status); } && {
28951 test -z "$ac_c_werror_flag" ||
28952 test ! -s conftest.err
28953 } && test -s conftest$ac_exeext &&
28954 $as_test_x conftest$ac_exeext; then
28955 echo "*** The test program compiled, but did not run. This usually means"
28956 echo "*** that the run-time linker is not finding libcurl or finding the wrong"
28957 echo "*** version of libcurl. If it is not finding libcurl, you'll need to set your"
28958 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
28959 echo "*** to the installed location Also, make sure you have run ldconfig if that"
28960 echo "*** is required on your system"
28962 echo "*** If you have an old version installed, it is best to remove it, although"
28963 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
28965 echo "$as_me: failed program was:" >&5
28966 sed 's/^/| /' conftest.$ac_ext >&5
28968 echo "*** The test program failed to compile or link. See the file config.log for the"
28969 echo "*** exact error that occured. This usually means libcurl was incorrectly installed"
28970 echo "*** or that you have moved libcurl since it was installed."
28973 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28974 conftest$ac_exeext conftest.$ac_ext
28975 CFLAGS="$ac_save_CFLAGS"
28976 LIBS="$ac_save_LIBS"
28980 HAVE_CURL=no; { echo "$as_me:$LINENO: WARNING: libcurl missing" >&5
28981 echo "$as_me: WARNING: libcurl missing" >&2;}
28989 rm -f conf.curltest
28992 if test "x$HAVE_CURL" = "xyes"; then
28994 cat >>confdefs.h <<\_ACEOF
28995 #define HAVE_CURL 1
29000 if test "x$build_ogg123" = xyes; then
29001 { echo "$as_me:$LINENO: result: checking for ogg123 requirements" >&5
29002 echo "${ECHO_T}checking for ogg123 requirements" >&6; }
29004 # Check whether --with-ao was given.
29005 if test "${with_ao+set}" = set; then
29006 withval=$with_ao; ao_prefix="$withval"
29012 # Check whether --with-ao-libraries was given.
29013 if test "${with_ao_libraries+set}" = set; then
29014 withval=$with_ao_libraries; ao_libraries="$withval"
29020 # Check whether --with-ao-includes was given.
29021 if test "${with_ao_includes+set}" = set; then
29022 withval=$with_ao_includes; ao_includes="$withval"
29027 # Check whether --enable-aotest was given.
29028 if test "${enable_aotest+set}" = set; then
29029 enableval=$enable_aotest;
29035 if test "x$ao_prefix" != "xno"
29037 if test "x$ao_libraries" != "x" ; then
29038 AO_LIBS="-L$ao_libraries"
29039 elif test "x$ao_prefix" = "xno" || test "x$ao_prefix" = "xyes" ; then
29041 elif test "x$ao_prefix" != "x" -a "x$ao_prefix" != "xyes"; then
29042 AO_LIBS="-L$ao_prefix/lib"
29043 elif test "x$prefix" != "xNONE"; then
29044 AO_LIBS="-L$prefix/lib"
29047 if test "x$ao_includes" != "x" ; then
29048 AO_CFLAGS="-I$ao_includes"
29049 elif test "x$ao_prefix" = "xno" || test "x$ao_prefix" = "xyes" ; then
29051 elif test "x$ao_prefix" != "x" -a "x$ao_prefix" != "xyes"; then
29052 AO_CFLAGS="-I$ao_prefix/include"
29053 elif test "x$prefix" != "xNONE"; then
29054 AO_CFLAGS="-I$prefix/include"
29057 # see where dl* and friends live
29059 for ac_func in dlopen
29061 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
29062 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29063 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29064 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29065 echo $ECHO_N "(cached) $ECHO_C" >&6
29067 cat >conftest.$ac_ext <<_ACEOF
29070 cat confdefs.h >>conftest.$ac_ext
29071 cat >>conftest.$ac_ext <<_ACEOF
29072 /* end confdefs.h. */
29073 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29074 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29075 #define $ac_func innocuous_$ac_func
29077 /* System header to define __stub macros and hopefully few prototypes,
29078 which can conflict with char $ac_func (); below.
29079 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29080 <limits.h> exists even on freestanding compilers. */
29083 # include <limits.h>
29085 # include <assert.h>
29090 /* Override any GCC internal prototype to avoid an error.
29091 Use char because int might match the return type of a GCC
29092 builtin and then its argument prototype would still apply. */
29097 /* The GNU C library defines this for functions which it implements
29098 to always fail with ENOSYS. Some functions are actually named
29099 something starting with __ and the normal name is an alias. */
29100 #if defined __stub_$ac_func || defined __stub___$ac_func
29107 return $ac_func ();
29112 rm -f conftest.$ac_objext conftest$ac_exeext
29113 if { (ac_try="$ac_link"
29114 case "(($ac_try" in
29115 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29116 *) ac_try_echo
=$ac_try;;
29118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29119 (eval "$ac_link") 2>conftest.er1
29121 grep -v '^ *+' conftest.er1
>conftest.err
29123 cat conftest.err
>&5
29124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29125 (exit $ac_status); } && {
29126 test -z "$ac_c_werror_flag" ||
29127 test ! -s conftest.err
29128 } && test -s conftest
$ac_exeext &&
29129 $as_test_x conftest
$ac_exeext; then
29130 eval "$as_ac_var=yes"
29132 echo "$as_me: failed program was:" >&5
29133 sed 's/^/| /' conftest.
$ac_ext >&5
29135 eval "$as_ac_var=no"
29138 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
29139 conftest
$ac_exeext conftest.
$ac_ext
29141 ac_res
=`eval echo '${'$as_ac_var'}'`
29142 { echo "$as_me:$LINENO: result: $ac_res" >&5
29143 echo "${ECHO_T}$ac_res" >&6; }
29144 if test `eval echo '${'$as_ac_var'}'` = yes; then
29145 cat >>confdefs.h
<<_ACEOF
29146 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29151 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
29152 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
29153 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
29154 echo $ECHO_N "(cached) $ECHO_C" >&6
29156 ac_check_lib_save_LIBS
=$LIBS
29158 cat >conftest.
$ac_ext <<_ACEOF
29161 cat confdefs.h
>>conftest.
$ac_ext
29162 cat >>conftest.
$ac_ext <<_ACEOF
29163 /* end confdefs.h. */
29165 /* Override any GCC internal prototype to avoid an error.
29166 Use char because int might match the return type of a GCC
29167 builtin and then its argument prototype would still apply. */
29180 rm -f conftest.
$ac_objext conftest
$ac_exeext
29181 if { (ac_try
="$ac_link"
29182 case "(($ac_try" in
29183 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29184 *) ac_try_echo=$ac_try;;
29186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29187 (eval "$ac_link") 2>conftest.er1
29189 grep -v '^ *+' conftest.er1 >conftest.err
29191 cat conftest.err >&5
29192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29193 (exit $ac_status); } && {
29194 test -z "$ac_c_werror_flag" ||
29195 test ! -s conftest.err
29196 } && test -s conftest$ac_exeext &&
29197 $as_test_x conftest$ac_exeext; then
29198 ac_cv_lib_dl_dlopen=yes
29200 echo "$as_me: failed program was:" >&5
29201 sed 's/^/| /' conftest.$ac_ext >&5
29203 ac_cv_lib_dl_dlopen=no
29206 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29207 conftest$ac_exeext conftest.$ac_ext
29208 LIBS=$ac_check_lib_save_LIBS
29210 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
29211 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
29212 if test $ac_cv_lib_dl_dlopen = yes; then
29216 { echo "$as_me:$LINENO: WARNING: could not find dlopen() needed by libao sound drivers
29217 your system may not be supported." >&5
29218 echo "$as_me: WARNING: could not find dlopen() needed by libao sound drivers
29219 your system may not be supported." >&2;}
29228 if test "x$ao_prefix" != "xno" ; then
29229 AO_LIBS="$AO_LIBS -lao $AO_DL_LIBS"
29232 { echo "$as_me:$LINENO: checking for ao" >&5
29233 echo $ECHO_N "checking for ao... $ECHO_C" >&6; }
29234 if test "x$ao_prefix" = "xno" ; then
29242 if test "x$enable_aotest" = "xyes" ; then
29243 ac_save_CFLAGS="$CFLAGS"
29244 ac_save_LIBS="$LIBS"
29245 CFLAGS="$CFLAGS $AO_CFLAGS"
29246 LIBS="$LIBS $AO_LIBS"
29248 if test "$cross_compiling" = yes; then
29249 echo $ac_n "cross compiling; assumed OK... $ac_c"
29251 cat >conftest.$ac_ext <<_ACEOF
29254 cat confdefs.h >>conftest.$ac_ext
29255 cat >>conftest.$ac_ext <<_ACEOF
29256 /* end confdefs.h. */
29259 #include <stdlib.h>
29260 #include <string.h>
29265 system("touch conf.aotest");
29271 rm -f conftest$ac_exeext
29272 if { (ac_try="$ac_link"
29273 case "(($ac_try" in
29274 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29275 *) ac_try_echo
=$ac_try;;
29277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29278 (eval "$ac_link") 2>&5
29280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29281 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
29282 { (case "(($ac_try" in
29283 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29284 *) ac_try_echo=$ac_try;;
29286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29287 (eval "$ac_try") 2>&5
29289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29290 (exit $ac_status); }; }; then
29293 echo "$as_me: program exited with status $ac_status" >&5
29294 echo "$as_me: failed program was:" >&5
29295 sed 's/^/| /' conftest.$ac_ext >&5
29297 ( exit $ac_status )
29300 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29304 CFLAGS="$ac_save_CFLAGS"
29305 LIBS="$ac_save_LIBS"
29308 if test "x$no_ao" = "xdisabled" ; then
29309 { echo "$as_me:$LINENO: result: no" >&5
29310 echo "${ECHO_T}no" >&6; }
29311 build_ogg123=no; { echo "$as_me:$LINENO: WARNING: libao missing" >&5
29312 echo "$as_me: WARNING: libao missing" >&2;}
29313 elif test "x$no_ao" = "x" ; then
29314 { echo "$as_me:$LINENO: result: yes" >&5
29315 echo "${ECHO_T}yes" >&6; }
29318 { echo "$as_me:$LINENO: result: no" >&5
29319 echo "${ECHO_T}no" >&6; }
29320 if test -f conf.aotest ; then
29323 echo "*** Could not run ao test program, checking why..."
29324 CFLAGS="$CFLAGS $AO_CFLAGS"
29325 LIBS="$LIBS $AO_LIBS"
29326 cat >conftest.$ac_ext <<_ACEOF
29329 cat confdefs.h >>conftest.$ac_ext
29330 cat >>conftest.$ac_ext <<_ACEOF
29331 /* end confdefs.h. */
29344 rm -f conftest.$ac_objext conftest$ac_exeext
29345 if { (ac_try="$ac_link"
29346 case "(($ac_try" in
29347 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29348 *) ac_try_echo
=$ac_try;;
29350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29351 (eval "$ac_link") 2>conftest.er1
29353 grep -v '^ *+' conftest.er1
>conftest.err
29355 cat conftest.err
>&5
29356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29357 (exit $ac_status); } && {
29358 test -z "$ac_c_werror_flag" ||
29359 test ! -s conftest.err
29360 } && test -s conftest
$ac_exeext &&
29361 $as_test_x conftest
$ac_exeext; then
29362 echo "*** The test program compiled, but did not run. This usually means"
29363 echo "*** that the run-time linker is not finding ao or finding the wrong"
29364 echo "*** version of ao. If it is not finding ao, you'll need to set your"
29365 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
29366 echo "*** to the installed location Also, make sure you have run ldconfig if that"
29367 echo "*** is required on your system"
29369 echo "*** If you have an old version installed, it is best to remove it, although"
29370 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
29372 echo "$as_me: failed program was:" >&5
29373 sed 's/^/| /' conftest.
$ac_ext >&5
29375 echo "*** The test program failed to compile or link. See the file config.log for the"
29376 echo "*** exact error that occured. This usually means ao was incorrectly installed"
29377 echo "*** or that you have moved ao since it was installed."
29380 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
29381 conftest
$ac_exeext conftest.
$ac_ext
29382 CFLAGS
="$ac_save_CFLAGS"
29383 LIBS
="$ac_save_LIBS"
29387 build_ogg123
=no
; { echo "$as_me:$LINENO: WARNING: libao missing" >&5
29388 echo "$as_me: WARNING: libao missing" >&2;}
29400 # First, check if the POSIX threads header, pthread.h, is available.
29401 # If it isn't, don't bother looking for the threads libraries.
29402 if test "${ac_cv_header_pthread_h+set}" = set; then
29403 { echo "$as_me:$LINENO: checking for pthread.h" >&5
29404 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
29405 if test "${ac_cv_header_pthread_h+set}" = set; then
29406 echo $ECHO_N "(cached) $ECHO_C" >&6
29408 { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
29409 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
29411 # Is the header compilable?
29412 { echo "$as_me:$LINENO: checking pthread.h usability" >&5
29413 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6; }
29414 cat >conftest.
$ac_ext <<_ACEOF
29417 cat confdefs.h
>>conftest.
$ac_ext
29418 cat >>conftest.
$ac_ext <<_ACEOF
29419 /* end confdefs.h. */
29420 $ac_includes_default
29421 #include <pthread.h>
29423 rm -f conftest.
$ac_objext
29424 if { (ac_try
="$ac_compile"
29425 case "(($ac_try" in
29426 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29427 *) ac_try_echo=$ac_try;;
29429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29430 (eval "$ac_compile") 2>conftest.er1
29432 grep -v '^ *+' conftest.er1 >conftest.err
29434 cat conftest.err >&5
29435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29436 (exit $ac_status); } && {
29437 test -z "$ac_c_werror_flag" ||
29438 test ! -s conftest.err
29439 } && test -s conftest.$ac_objext; then
29440 ac_header_compiler=yes
29442 echo "$as_me: failed program was:" >&5
29443 sed 's/^/| /' conftest.$ac_ext >&5
29445 ac_header_compiler=no
29448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29449 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29450 echo "${ECHO_T}$ac_header_compiler" >&6; }
29452 # Is the header present?
29453 { echo "$as_me:$LINENO: checking pthread.h presence" >&5
29454 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6; }
29455 cat >conftest.$ac_ext <<_ACEOF
29458 cat confdefs.h >>conftest.$ac_ext
29459 cat >>conftest.$ac_ext <<_ACEOF
29460 /* end confdefs.h. */
29461 #include <pthread.h>
29463 if { (ac_try="$ac_cpp conftest.$ac_ext"
29464 case "(($ac_try" in
29465 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29466 *) ac_try_echo
=$ac_try;;
29468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29469 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29471 grep -v '^ *+' conftest.er1
>conftest.err
29473 cat conftest.err
>&5
29474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29475 (exit $ac_status); } >/dev
/null
&& {
29476 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29477 test ! -s conftest.err
29479 ac_header_preproc
=yes
29481 echo "$as_me: failed program was:" >&5
29482 sed 's/^/| /' conftest.
$ac_ext >&5
29484 ac_header_preproc
=no
29487 rm -f conftest.err conftest.
$ac_ext
29488 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29489 echo "${ECHO_T}$ac_header_preproc" >&6; }
29491 # So? What about this header?
29492 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29494 { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
29495 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29496 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
29497 echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
29498 ac_header_preproc
=yes
29501 { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
29502 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
29503 { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
29504 echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
29505 { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
29506 echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
29507 { echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
29508 echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
29509 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
29510 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
29511 { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
29512 echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
29516 { echo "$as_me:$LINENO: checking for pthread.h" >&5
29517 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
29518 if test "${ac_cv_header_pthread_h+set}" = set; then
29519 echo $ECHO_N "(cached) $ECHO_C" >&6
29521 ac_cv_header_pthread_h
=$ac_header_preproc
29523 { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
29524 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
29527 if test $ac_cv_header_pthread_h = yes; then
29530 acx_pthread_ok
=noheader
29535 # We must check for the threads library under a number of different
29536 # names; the ordering is very important because some systems
29537 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
29538 # libraries is broken (non-POSIX).
29540 # First of all, check if the user has set any of the PTHREAD_LIBS,
29541 # etcetera environment variables, and if threads linking works using
29543 if test x
"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x
; then
29544 save_CFLAGS
="$CFLAGS"
29545 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
29547 LIBS
="$PTHREAD_LIBS $LIBS"
29548 { echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
29549 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6; }
29550 cat >conftest.
$ac_ext <<_ACEOF
29553 cat confdefs.h
>>conftest.
$ac_ext
29554 cat >>conftest.
$ac_ext <<_ACEOF
29555 /* end confdefs.h. */
29557 /* Override any GCC internal prototype to avoid an error.
29558 Use char because int might match the return type of a GCC
29559 builtin and then its argument prototype would still apply. */
29563 char pthread_join ();
29567 return pthread_join ();
29572 rm -f conftest.
$ac_objext conftest
$ac_exeext
29573 if { (ac_try
="$ac_link"
29574 case "(($ac_try" in
29575 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29576 *) ac_try_echo=$ac_try;;
29578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29579 (eval "$ac_link") 2>conftest.er1
29581 grep -v '^ *+' conftest.er1 >conftest.err
29583 cat conftest.err >&5
29584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29585 (exit $ac_status); } && {
29586 test -z "$ac_c_werror_flag" ||
29587 test ! -s conftest.err
29588 } && test -s conftest$ac_exeext &&
29589 $as_test_x conftest$ac_exeext; then
29592 echo "$as_me: failed program was:" >&5
29593 sed 's/^/| /' conftest.$ac_ext >&5
29598 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29599 conftest$ac_exeext conftest.$ac_ext
29600 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
29601 echo "${ECHO_T}$acx_pthread_ok" >&6; }
29602 if test x"$acx_pthread_ok" = xno; then
29607 CFLAGS="$save_CFLAGS"
29610 # Create a list of thread flags to try. Items starting with a "-" are
29611 # C compiler flags, and other items are library names, except for "none"
29612 # which indicates that we try without any flags at all.
29614 acx_pthread_flags="pthreads none -Kthread -kthread lthread pthread -pthread -pthreads -mthreads --thread-safe -mt"
29616 # The ordering *is* (sometimes) important. Some notes on the
29617 # individual items follow:
29619 # pthreads: AIX (must check this before -lpthread)
29620 # none: in case threads are in libc; should be tried before -Kthread and
29621 # other compiler flags to prevent continual compiler warnings
29622 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
29623 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
29624 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
29625 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
29626 # -pthreads: Solaris/gcc
29627 # -mthreads: Mingw32/gcc, Lynx/gcc
29628 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
29629 # doesn't hurt to check since this sometimes defines pthreads too;
29630 # also defines -D_REENTRANT)
29631 # pthread: Linux, etcetera
29632 # --thread-safe: KAI C++
29634 case "${host_cpu}-${host_os}" in
29637 # On Solaris (at least, for some versions), libc contains stubbed
29638 # (non-functional) versions of the pthreads routines, so link-based
29639 # tests will erroneously succeed. (We need to link with -pthread or
29640 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
29641 # a function called by this macro, so we could check for that, but
29642 # who knows whether they'll stub that too in a future libc.) So,
29643 # we'll just look for -pthreads and -lpthread first:
29644 acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
29648 if test x"$acx_pthread_ok" = xno; then
29649 for flag in $acx_pthread_flags; do
29653 { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
29654 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
29658 { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
29659 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
29660 PTHREAD_CFLAGS="$flag"
29664 { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
29665 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
29666 PTHREAD_LIBS="-l$flag"
29671 save_CFLAGS="$CFLAGS"
29672 LIBS="$PTHREAD_LIBS $LIBS"
29673 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
29675 # Check for various functions. We must include pthread.h,
29676 # since some functions may be macros. (On the Sequent, we
29677 # need a special flag -Kthread to make this header compile.)
29678 # We check for pthread_join because it is in -lpthread on IRIX
29679 # while pthread_create is in libc. We check for pthread_attr_init
29680 # due to DEC craziness with -lpthreads. We check for
29681 # pthread_cleanup_push because it is one of the few pthread
29682 # functions on Solaris that doesn't have a non-functional libc stub.
29683 # We try pthread_create on general principles.
29684 cat >conftest.$ac_ext <<_ACEOF
29687 cat confdefs.h >>conftest.$ac_ext
29688 cat >>conftest.$ac_ext <<_ACEOF
29689 /* end confdefs.h. */
29690 #include <pthread.h>
29694 pthread_t th; pthread_join(th, 0);
29695 pthread_attr_init(0); pthread_cleanup_push(0, 0);
29696 pthread_create(0,0,0,0);
29697 pthread_cancel(0); pthread_cleanup_pop(0);
29702 rm -f conftest.$ac_objext conftest$ac_exeext
29703 if { (ac_try="$ac_link"
29704 case "(($ac_try" in
29705 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29706 *) ac_try_echo
=$ac_try;;
29708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29709 (eval "$ac_link") 2>conftest.er1
29711 grep -v '^ *+' conftest.er1
>conftest.err
29713 cat conftest.err
>&5
29714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29715 (exit $ac_status); } && {
29716 test -z "$ac_c_werror_flag" ||
29717 test ! -s conftest.err
29718 } && test -s conftest
$ac_exeext &&
29719 $as_test_x conftest
$ac_exeext; then
29722 echo "$as_me: failed program was:" >&5
29723 sed 's/^/| /' conftest.
$ac_ext >&5
29728 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
29729 conftest
$ac_exeext conftest.
$ac_ext
29732 CFLAGS
="$save_CFLAGS"
29734 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
29735 echo "${ECHO_T}$acx_pthread_ok" >&6; }
29736 if test "x$acx_pthread_ok" = xyes
; then
29745 # Various other checks:
29746 if test "x$acx_pthread_ok" = xyes
; then
29748 LIBS
="$PTHREAD_LIBS $LIBS"
29749 save_CFLAGS
="$CFLAGS"
29750 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
29752 # Detect AIX lossage: threads are created detached by default
29753 # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
29754 { echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
29755 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6; }
29756 cat >conftest.
$ac_ext <<_ACEOF
29759 cat confdefs.h
>>conftest.
$ac_ext
29760 cat >>conftest.
$ac_ext <<_ACEOF
29761 /* end confdefs.h. */
29762 #include <pthread.h>
29766 int attr=PTHREAD_CREATE_JOINABLE;
29771 rm -f conftest.
$ac_objext conftest
$ac_exeext
29772 if { (ac_try
="$ac_link"
29773 case "(($ac_try" in
29774 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29775 *) ac_try_echo=$ac_try;;
29777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29778 (eval "$ac_link") 2>conftest.er1
29780 grep -v '^ *+' conftest.er1 >conftest.err
29782 cat conftest.err >&5
29783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29784 (exit $ac_status); } && {
29785 test -z "$ac_c_werror_flag" ||
29786 test ! -s conftest.err
29787 } && test -s conftest$ac_exeext &&
29788 $as_test_x conftest$ac_exeext; then
29789 ok=PTHREAD_CREATE_JOINABLE
29791 echo "$as_me: failed program was:" >&5
29792 sed 's/^/| /' conftest.$ac_ext >&5
29797 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29798 conftest$ac_exeext conftest.$ac_ext
29799 if test x"$ok" = xunknown; then
29800 cat >conftest.$ac_ext <<_ACEOF
29803 cat confdefs.h >>conftest.$ac_ext
29804 cat >>conftest.$ac_ext <<_ACEOF
29805 /* end confdefs.h. */
29806 #include <pthread.h>
29810 int attr=PTHREAD_CREATE_UNDETACHED;
29815 rm -f conftest.$ac_objext conftest$ac_exeext
29816 if { (ac_try="$ac_link"
29817 case "(($ac_try" in
29818 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29819 *) ac_try_echo
=$ac_try;;
29821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29822 (eval "$ac_link") 2>conftest.er1
29824 grep -v '^ *+' conftest.er1
>conftest.err
29826 cat conftest.err
>&5
29827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29828 (exit $ac_status); } && {
29829 test -z "$ac_c_werror_flag" ||
29830 test ! -s conftest.err
29831 } && test -s conftest
$ac_exeext &&
29832 $as_test_x conftest
$ac_exeext; then
29833 ok
=PTHREAD_CREATE_UNDETACHED
29835 echo "$as_me: failed program was:" >&5
29836 sed 's/^/| /' conftest.
$ac_ext >&5
29841 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
29842 conftest
$ac_exeext conftest.
$ac_ext
29844 if test x
"$ok" != xPTHREAD_CREATE_JOINABLE
; then
29846 cat >>confdefs.h
<<\_ACEOF
29847 #define PTHREAD_CREATE_JOINABLE $ok
29851 { echo "$as_me:$LINENO: result: ${ok}" >&5
29852 echo "${ECHO_T}${ok}" >&6; }
29853 if test x"$ok" = xunknown; then
29854 { echo "$as_me:$LINENO: WARNING
: we
do not know how to create joinable pthreads
" >&5
29855 echo "$as_me: WARNING
: we
do not know how to create joinable pthreads
" >&2;}
29858 { echo "$as_me:$LINENO: checking
if more special flags are required
for pthreads
" >&5
29859 echo $ECHO_N "checking
if more special flags are required
for pthreads...
$ECHO_C" >&6; }
29861 case "${host_cpu}-${host_os}" in
29862 *-aix* | *-freebsd*) flag="-D_THREAD_SAFE";;
29863 *solaris* | alpha*-osf*) flag="-D_REENTRANT";;
29865 { echo "$as_me:$LINENO: result
: ${flag}" >&5
29866 echo "${ECHO_T}${flag}" >&6; }
29867 if test "x$flag" != xno
; then
29868 PTHREAD_CFLAGS
="$flag $PTHREAD_CFLAGS"
29872 CFLAGS
="$save_CFLAGS"
29874 # More AIX lossage: must compile with cc_r
29875 # Extract the first word of "cc_r", so it can be a program name with args.
29876 set dummy cc_r
; ac_word
=$2
29877 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29878 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29879 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
29880 echo $ECHO_N "(cached) $ECHO_C" >&6
29882 if test -n "$PTHREAD_CC"; then
29883 ac_cv_prog_PTHREAD_CC
="$PTHREAD_CC" # Let the user override the test.
29885 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
29886 for as_dir
in $PATH
29889 test -z "$as_dir" && as_dir
=.
29890 for ac_exec_ext
in '' $ac_executable_extensions; do
29891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29892 ac_cv_prog_PTHREAD_CC
="cc_r"
29893 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29900 test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC
="${CC}"
29903 PTHREAD_CC
=$ac_cv_prog_PTHREAD_CC
29904 if test -n "$PTHREAD_CC"; then
29905 { echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
29906 echo "${ECHO_T}$PTHREAD_CC" >&6; }
29908 { echo "$as_me:$LINENO: result: no" >&5
29909 echo "${ECHO_T}no" >&6; }
29921 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
29922 if test x
"$acx_pthread_ok" = xyes
; then
29924 cat >>confdefs.h
<<\_ACEOF
29925 #define HAVE_PTHREAD 1
29931 build_ogg123
=no
; { echo "$as_me:$LINENO: WARNING: POSIX threads missing" >&5
29932 echo "$as_me: WARNING: POSIX threads missing" >&2;}
29940 if test "x$build_flac" = xyes
; then
29942 { echo "$as_me:$LINENO: checking for log in -lm" >&5
29943 echo $ECHO_N "checking for log in -lm... $ECHO_C" >&6; }
29944 if test "${ac_cv_lib_m_log+set}" = set; then
29945 echo $ECHO_N "(cached) $ECHO_C" >&6
29947 ac_check_lib_save_LIBS
=$LIBS
29949 cat >conftest.
$ac_ext <<_ACEOF
29952 cat confdefs.h
>>conftest.
$ac_ext
29953 cat >>conftest.
$ac_ext <<_ACEOF
29954 /* end confdefs.h. */
29956 /* Override any GCC internal prototype to avoid an error.
29957 Use char because int might match the return type of a GCC
29958 builtin and then its argument prototype would still apply. */
29971 rm -f conftest.
$ac_objext conftest
$ac_exeext
29972 if { (ac_try
="$ac_link"
29973 case "(($ac_try" in
29974 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29975 *) ac_try_echo=$ac_try;;
29977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29978 (eval "$ac_link") 2>conftest.er1
29980 grep -v '^ *+' conftest.er1 >conftest.err
29982 cat conftest.err >&5
29983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29984 (exit $ac_status); } && {
29985 test -z "$ac_c_werror_flag" ||
29986 test ! -s conftest.err
29987 } && test -s conftest$ac_exeext &&
29988 $as_test_x conftest$ac_exeext; then
29989 ac_cv_lib_m_log=yes
29991 echo "$as_me: failed program was:" >&5
29992 sed 's/^/| /' conftest.$ac_ext >&5
29997 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29998 conftest$ac_exeext conftest.$ac_ext
29999 LIBS=$ac_check_lib_save_LIBS
30001 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_log" >&5
30002 echo "${ECHO_T}$ac_cv_lib_m_log" >&6; }
30003 if test $ac_cv_lib_m_log = yes; then
30009 { echo "$as_me:$LINENO: checking for FLAC__stream_decoder_init_ogg_stream in -lFLAC" >&5
30010 echo $ECHO_N "checking for FLAC__stream_decoder_init_ogg_stream in -lFLAC... $ECHO_C" >&6; }
30011 if test "${ac_cv_lib_FLAC_FLAC__stream_decoder_init_ogg_stream+set}" = set; then
30012 echo $ECHO_N "(cached) $ECHO_C" >&6
30014 ac_check_lib_save_LIBS=$LIBS
30015 LIBS="-lFLAC $FLAC_LIBS $OGG_LIBS $LIBS"
30016 cat >conftest.$ac_ext <<_ACEOF
30019 cat confdefs.h >>conftest.$ac_ext
30020 cat >>conftest.$ac_ext <<_ACEOF
30021 /* end confdefs.h. */
30023 /* Override any GCC internal prototype to avoid an error.
30024 Use char because int might match the return type of a GCC
30025 builtin and then its argument prototype would still apply. */
30029 char FLAC__stream_decoder_init_ogg_stream ();
30033 return FLAC__stream_decoder_init_ogg_stream ();
30038 rm -f conftest.$ac_objext conftest$ac_exeext
30039 if { (ac_try="$ac_link"
30040 case "(($ac_try" in
30041 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30042 *) ac_try_echo
=$ac_try;;
30044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30045 (eval "$ac_link") 2>conftest.er1
30047 grep -v '^ *+' conftest.er1
>conftest.err
30049 cat conftest.err
>&5
30050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30051 (exit $ac_status); } && {
30052 test -z "$ac_c_werror_flag" ||
30053 test ! -s conftest.err
30054 } && test -s conftest
$ac_exeext &&
30055 $as_test_x conftest
$ac_exeext; then
30056 ac_cv_lib_FLAC_FLAC__stream_decoder_init_ogg_stream
=yes
30058 echo "$as_me: failed program was:" >&5
30059 sed 's/^/| /' conftest.
$ac_ext >&5
30061 ac_cv_lib_FLAC_FLAC__stream_decoder_init_ogg_stream
=no
30064 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
30065 conftest
$ac_exeext conftest.
$ac_ext
30066 LIBS
=$ac_check_lib_save_LIBS
30068 { echo "$as_me:$LINENO: result: $ac_cv_lib_FLAC_FLAC__stream_decoder_init_ogg_stream" >&5
30069 echo "${ECHO_T}$ac_cv_lib_FLAC_FLAC__stream_decoder_init_ogg_stream" >&6; }
30070 if test $ac_cv_lib_FLAC_FLAC__stream_decoder_init_ogg_stream = yes; then
30077 if test "x$have_libFLAC" = xyes
; then
30078 FLAC_LIBS
="-lFLAC $FLAC_LIBS $OGG_LIBS"
30080 { echo "$as_me:$LINENO: checking for FLAC__stream_decoder_process_single in -lFLAC" >&5
30081 echo $ECHO_N "checking for FLAC__stream_decoder_process_single in -lFLAC... $ECHO_C" >&6; }
30082 if test "${ac_cv_lib_FLAC_FLAC__stream_decoder_process_single+set}" = set; then
30083 echo $ECHO_N "(cached) $ECHO_C" >&6
30085 ac_check_lib_save_LIBS
=$LIBS
30086 LIBS
="-lFLAC $FLAC_LIBS
30088 cat >conftest.
$ac_ext <<_ACEOF
30091 cat confdefs.h
>>conftest.
$ac_ext
30092 cat >>conftest.
$ac_ext <<_ACEOF
30093 /* end confdefs.h. */
30095 /* Override any GCC internal prototype to avoid an error.
30096 Use char because int might match the return type of a GCC
30097 builtin and then its argument prototype would still apply. */
30101 char FLAC__stream_decoder_process_single ();
30105 return FLAC__stream_decoder_process_single ();
30110 rm -f conftest.
$ac_objext conftest
$ac_exeext
30111 if { (ac_try
="$ac_link"
30112 case "(($ac_try" in
30113 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30114 *) ac_try_echo=$ac_try;;
30116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30117 (eval "$ac_link") 2>conftest.er1
30119 grep -v '^ *+' conftest.er1 >conftest.err
30121 cat conftest.err >&5
30122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30123 (exit $ac_status); } && {
30124 test -z "$ac_c_werror_flag" ||
30125 test ! -s conftest.err
30126 } && test -s conftest$ac_exeext &&
30127 $as_test_x conftest$ac_exeext; then
30128 ac_cv_lib_FLAC_FLAC__stream_decoder_process_single=yes
30130 echo "$as_me: failed program was:" >&5
30131 sed 's/^/| /' conftest.$ac_ext >&5
30133 ac_cv_lib_FLAC_FLAC__stream_decoder_process_single=no
30136 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30137 conftest$ac_exeext conftest.$ac_ext
30138 LIBS=$ac_check_lib_save_LIBS
30140 { echo "$as_me:$LINENO: result: $ac_cv_lib_FLAC_FLAC__stream_decoder_process_single" >&5
30141 echo "${ECHO_T}$ac_cv_lib_FLAC_FLAC__stream_decoder_process_single" >&6; }
30142 if test $ac_cv_lib_FLAC_FLAC__stream_decoder_process_single = yes; then
30143 have_libFLAC=yes; FLAC_LIBS="-lFLAC $FLAC_LIBS"
30145 { echo "$as_me:$LINENO: WARNING: libFLAC missing" >&5
30146 echo "$as_me: WARNING: libFLAC missing" >&2;}
30151 { echo "$as_me:$LINENO: checking for OggFLAC__stream_decoder_new in -lOggFLAC" >&5
30152 echo $ECHO_N "checking for OggFLAC__stream_decoder_new in -lOggFLAC... $ECHO_C" >&6; }
30153 if test "${ac_cv_lib_OggFLAC_OggFLAC__stream_decoder_new+set}" = set; then
30154 echo $ECHO_N "(cached) $ECHO_C" >&6
30156 ac_check_lib_save_LIBS=$LIBS
30157 LIBS="-lOggFLAC $FLAC_LIBS $OGG_LIBS
30159 cat >conftest.$ac_ext <<_ACEOF
30162 cat confdefs.h >>conftest.$ac_ext
30163 cat >>conftest.$ac_ext <<_ACEOF
30164 /* end confdefs.h. */
30166 /* Override any GCC internal prototype to avoid an error.
30167 Use char because int might match the return type of a GCC
30168 builtin and then its argument prototype would still apply. */
30172 char OggFLAC__stream_decoder_new ();
30176 return OggFLAC__stream_decoder_new ();
30181 rm -f conftest.$ac_objext conftest$ac_exeext
30182 if { (ac_try="$ac_link"
30183 case "(($ac_try" in
30184 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30185 *) ac_try_echo
=$ac_try;;
30187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30188 (eval "$ac_link") 2>conftest.er1
30190 grep -v '^ *+' conftest.er1
>conftest.err
30192 cat conftest.err
>&5
30193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30194 (exit $ac_status); } && {
30195 test -z "$ac_c_werror_flag" ||
30196 test ! -s conftest.err
30197 } && test -s conftest
$ac_exeext &&
30198 $as_test_x conftest
$ac_exeext; then
30199 ac_cv_lib_OggFLAC_OggFLAC__stream_decoder_new
=yes
30201 echo "$as_me: failed program was:" >&5
30202 sed 's/^/| /' conftest.
$ac_ext >&5
30204 ac_cv_lib_OggFLAC_OggFLAC__stream_decoder_new
=no
30207 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
30208 conftest
$ac_exeext conftest.
$ac_ext
30209 LIBS
=$ac_check_lib_save_LIBS
30211 { echo "$as_me:$LINENO: result: $ac_cv_lib_OggFLAC_OggFLAC__stream_decoder_new" >&5
30212 echo "${ECHO_T}$ac_cv_lib_OggFLAC_OggFLAC__stream_decoder_new" >&6; }
30213 if test $ac_cv_lib_OggFLAC_OggFLAC__stream_decoder_new = yes; then
30214 FLAC_LIBS
="-lOggFLAC $FLAC_LIBS $OGG_LIBS"
30216 { echo "$as_me:$LINENO: WARNING: libOggFLAC missing" >&5
30217 echo "$as_me: WARNING: libOggFLAC missing" >&2;}
30223 { echo "$as_me:$LINENO: checking for FLAC/stream_decoder.h" >&5
30224 echo $ECHO_N "checking for FLAC/stream_decoder.h... $ECHO_C" >&6; }
30225 if test "${ac_cv_header_FLAC_stream_decoder_h+set}" = set; then
30226 echo $ECHO_N "(cached) $ECHO_C" >&6
30228 cat >conftest.
$ac_ext <<_ACEOF
30231 cat confdefs.h
>>conftest.
$ac_ext
30232 cat >>conftest.
$ac_ext <<_ACEOF
30233 /* end confdefs.h. */
30236 #include <FLAC/stream_decoder.h>
30238 rm -f conftest.
$ac_objext
30239 if { (ac_try
="$ac_compile"
30240 case "(($ac_try" in
30241 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30242 *) ac_try_echo=$ac_try;;
30244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30245 (eval "$ac_compile") 2>conftest.er1
30247 grep -v '^ *+' conftest.er1 >conftest.err
30249 cat conftest.err >&5
30250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30251 (exit $ac_status); } && {
30252 test -z "$ac_c_werror_flag" ||
30253 test ! -s conftest.err
30254 } && test -s conftest.$ac_objext; then
30255 ac_cv_header_FLAC_stream_decoder_h=yes
30257 echo "$as_me: failed program was:" >&5
30258 sed 's/^/| /' conftest.$ac_ext >&5
30260 ac_cv_header_FLAC_stream_decoder_h=no
30263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30265 { echo "$as_me:$LINENO: result: $ac_cv_header_FLAC_stream_decoder_h" >&5
30266 echo "${ECHO_T}$ac_cv_header_FLAC_stream_decoder_h" >&6; }
30267 if test $ac_cv_header_FLAC_stream_decoder_h = yes; then
30270 { echo "$as_me:$LINENO: WARNING: libFLAC headers missing" >&5
30271 echo "$as_me: WARNING: libFLAC headers missing" >&2;}
30277 if test "x$have_libFLAC" = xyes; then
30279 cat >>confdefs.h <<\_ACEOF
30280 #define HAVE_LIBFLAC 1
30288 if test "x$have_libFLAC" = "xyes"; then
30290 HAVE_LIBFLAC_FALSE='#'
30292 HAVE_LIBFLAC_TRUE='#'
30293 HAVE_LIBFLAC_FALSE=
30300 if test "x$build_speex" = xyes; then
30301 { echo "$as_me:$LINENO: checking for log in -lm" >&5
30302 echo $ECHO_N "checking for log in -lm... $ECHO_C" >&6; }
30303 if test "${ac_cv_lib_m_log+set}" = set; then
30304 echo $ECHO_N "(cached) $ECHO_C" >&6
30306 ac_check_lib_save_LIBS=$LIBS
30308 cat >conftest.$ac_ext <<_ACEOF
30311 cat confdefs.h >>conftest.$ac_ext
30312 cat >>conftest.$ac_ext <<_ACEOF
30313 /* end confdefs.h. */
30315 /* Override any GCC internal prototype to avoid an error.
30316 Use char because int might match the return type of a GCC
30317 builtin and then its argument prototype would still apply. */
30330 rm -f conftest.$ac_objext conftest$ac_exeext
30331 if { (ac_try="$ac_link"
30332 case "(($ac_try" in
30333 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30334 *) ac_try_echo
=$ac_try;;
30336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30337 (eval "$ac_link") 2>conftest.er1
30339 grep -v '^ *+' conftest.er1
>conftest.err
30341 cat conftest.err
>&5
30342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30343 (exit $ac_status); } && {
30344 test -z "$ac_c_werror_flag" ||
30345 test ! -s conftest.err
30346 } && test -s conftest
$ac_exeext &&
30347 $as_test_x conftest
$ac_exeext; then
30348 ac_cv_lib_m_log
=yes
30350 echo "$as_me: failed program was:" >&5
30351 sed 's/^/| /' conftest.
$ac_ext >&5
30356 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
30357 conftest
$ac_exeext conftest.
$ac_ext
30358 LIBS
=$ac_check_lib_save_LIBS
30360 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_log" >&5
30361 echo "${ECHO_T}$ac_cv_lib_m_log" >&6; }
30362 if test $ac_cv_lib_m_log = yes; then
30366 { echo "$as_me:$LINENO: checking for speex_decoder_init in -lspeex" >&5
30367 echo $ECHO_N "checking for speex_decoder_init in -lspeex... $ECHO_C" >&6; }
30368 if test "${ac_cv_lib_speex_speex_decoder_init+set}" = set; then
30369 echo $ECHO_N "(cached) $ECHO_C" >&6
30371 ac_check_lib_save_LIBS
=$LIBS
30372 LIBS
="-lspeex $SPEEX_LIBS
30374 cat >conftest.
$ac_ext <<_ACEOF
30377 cat confdefs.h
>>conftest.
$ac_ext
30378 cat >>conftest.
$ac_ext <<_ACEOF
30379 /* end confdefs.h. */
30381 /* Override any GCC internal prototype to avoid an error.
30382 Use char because int might match the return type of a GCC
30383 builtin and then its argument prototype would still apply. */
30387 char speex_decoder_init ();
30391 return speex_decoder_init ();
30396 rm -f conftest.
$ac_objext conftest
$ac_exeext
30397 if { (ac_try
="$ac_link"
30398 case "(($ac_try" in
30399 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30400 *) ac_try_echo=$ac_try;;
30402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30403 (eval "$ac_link") 2>conftest.er1
30405 grep -v '^ *+' conftest.er1 >conftest.err
30407 cat conftest.err >&5
30408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30409 (exit $ac_status); } && {
30410 test -z "$ac_c_werror_flag" ||
30411 test ! -s conftest.err
30412 } && test -s conftest$ac_exeext &&
30413 $as_test_x conftest$ac_exeext; then
30414 ac_cv_lib_speex_speex_decoder_init=yes
30416 echo "$as_me: failed program was:" >&5
30417 sed 's/^/| /' conftest.$ac_ext >&5
30419 ac_cv_lib_speex_speex_decoder_init=no
30422 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30423 conftest$ac_exeext conftest.$ac_ext
30424 LIBS=$ac_check_lib_save_LIBS
30426 { echo "$as_me:$LINENO: result: $ac_cv_lib_speex_speex_decoder_init" >&5
30427 echo "${ECHO_T}$ac_cv_lib_speex_speex_decoder_init" >&6; }
30428 if test $ac_cv_lib_speex_speex_decoder_init = yes; then
30429 have_libspeex=yes; SPEEX_LIBS="-lspeex $SPEEX_LIBS"
30431 { echo "$as_me:$LINENO: WARNING: libspeex missing" >&5
30432 echo "$as_me: WARNING: libspeex missing" >&2;}
30436 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
30437 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
30438 if test "${ac_cv_header_speex_speex_h+set}" = set; then
30439 echo $ECHO_N "(cached) $ECHO_C" >&6
30441 cat >conftest.$ac_ext <<_ACEOF
30444 cat confdefs.h >>conftest.$ac_ext
30445 cat >>conftest.$ac_ext <<_ACEOF
30446 /* end confdefs.h. */
30449 #include <speex/speex.h>
30451 rm -f conftest.$ac_objext
30452 if { (ac_try="$ac_compile"
30453 case "(($ac_try" in
30454 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30455 *) ac_try_echo
=$ac_try;;
30457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30458 (eval "$ac_compile") 2>conftest.er1
30460 grep -v '^ *+' conftest.er1
>conftest.err
30462 cat conftest.err
>&5
30463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30464 (exit $ac_status); } && {
30465 test -z "$ac_c_werror_flag" ||
30466 test ! -s conftest.err
30467 } && test -s conftest.
$ac_objext; then
30468 ac_cv_header_speex_speex_h
=yes
30470 echo "$as_me: failed program was:" >&5
30471 sed 's/^/| /' conftest.
$ac_ext >&5
30473 ac_cv_header_speex_speex_h
=no
30476 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
30478 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
30479 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
30480 if test $ac_cv_header_speex_speex_h = yes; then
30483 { echo "$as_me:$LINENO: WARNING: libspeex headers missing" >&5
30484 echo "$as_me: WARNING: libspeex headers missing" >&2;}
30490 if test "x$have_libspeex" = xyes
; then
30492 cat >>confdefs.h
<<\_ACEOF
30493 #define HAVE_LIBSPEEX 1
30501 if test "x$have_libspeex" = "xyes"; then
30502 HAVE_LIBSPEEX_TRUE
=
30503 HAVE_LIBSPEEX_FALSE
='#'
30505 HAVE_LIBSPEEX_TRUE
='#'
30506 HAVE_LIBSPEEX_FALSE
=
30514 for ac_header
in fcntl.h unistd.h
30516 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30517 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30518 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30519 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30520 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30521 echo $ECHO_N "(cached) $ECHO_C" >&6
30523 ac_res
=`eval echo '${'$as_ac_Header'}'`
30524 { echo "$as_me:$LINENO: result: $ac_res" >&5
30525 echo "${ECHO_T}$ac_res" >&6; }
30527 # Is the header compilable?
30528 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30529 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30530 cat >conftest.
$ac_ext <<_ACEOF
30533 cat confdefs.h
>>conftest.
$ac_ext
30534 cat >>conftest.
$ac_ext <<_ACEOF
30535 /* end confdefs.h. */
30536 $ac_includes_default
30537 #include <$ac_header>
30539 rm -f conftest.
$ac_objext
30540 if { (ac_try
="$ac_compile"
30541 case "(($ac_try" in
30542 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30543 *) ac_try_echo=$ac_try;;
30545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30546 (eval "$ac_compile") 2>conftest.er1
30548 grep -v '^ *+' conftest.er1 >conftest.err
30550 cat conftest.err >&5
30551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30552 (exit $ac_status); } && {
30553 test -z "$ac_c_werror_flag" ||
30554 test ! -s conftest.err
30555 } && test -s conftest.$ac_objext; then
30556 ac_header_compiler=yes
30558 echo "$as_me: failed program was:" >&5
30559 sed 's/^/| /' conftest.$ac_ext >&5
30561 ac_header_compiler=no
30564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30565 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30566 echo "${ECHO_T}$ac_header_compiler" >&6; }
30568 # Is the header present?
30569 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30570 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30571 cat >conftest.$ac_ext <<_ACEOF
30574 cat confdefs.h >>conftest.$ac_ext
30575 cat >>conftest.$ac_ext <<_ACEOF
30576 /* end confdefs.h. */
30577 #include <$ac_header>
30579 if { (ac_try="$ac_cpp conftest.$ac_ext"
30580 case "(($ac_try" in
30581 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30582 *) ac_try_echo
=$ac_try;;
30584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30585 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30587 grep -v '^ *+' conftest.er1
>conftest.err
30589 cat conftest.err
>&5
30590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30591 (exit $ac_status); } >/dev
/null
&& {
30592 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30593 test ! -s conftest.err
30595 ac_header_preproc
=yes
30597 echo "$as_me: failed program was:" >&5
30598 sed 's/^/| /' conftest.
$ac_ext >&5
30600 ac_header_preproc
=no
30603 rm -f conftest.err conftest.
$ac_ext
30604 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30605 echo "${ECHO_T}$ac_header_preproc" >&6; }
30607 # So? What about this header?
30608 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30610 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30611 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30612 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30613 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30614 ac_header_preproc
=yes
30617 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30618 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30619 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30620 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30621 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30622 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30623 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30624 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30625 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30626 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30627 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30628 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30632 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30633 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30634 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30635 echo $ECHO_N "(cached) $ECHO_C" >&6
30637 eval "$as_ac_Header=\$ac_header_preproc"
30639 ac_res
=`eval echo '${'$as_ac_Header'}'`
30640 { echo "$as_me:$LINENO: result: $ac_res" >&5
30641 echo "${ECHO_T}$ac_res" >&6; }
30644 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30645 cat >>confdefs.h
<<_ACEOF
30646 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30655 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
30656 # for constant arguments. Useless!
30657 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
30658 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
30659 if test "${ac_cv_working_alloca_h+set}" = set; then
30660 echo $ECHO_N "(cached) $ECHO_C" >&6
30662 cat >conftest.
$ac_ext <<_ACEOF
30665 cat confdefs.h
>>conftest.
$ac_ext
30666 cat >>conftest.
$ac_ext <<_ACEOF
30667 /* end confdefs.h. */
30668 #include <alloca.h>
30672 char *p = (char *) alloca (2 * sizeof (int));
30678 rm -f conftest.
$ac_objext conftest
$ac_exeext
30679 if { (ac_try
="$ac_link"
30680 case "(($ac_try" in
30681 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30682 *) ac_try_echo=$ac_try;;
30684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30685 (eval "$ac_link") 2>conftest.er1
30687 grep -v '^ *+' conftest.er1 >conftest.err
30689 cat conftest.err >&5
30690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30691 (exit $ac_status); } && {
30692 test -z "$ac_c_werror_flag" ||
30693 test ! -s conftest.err
30694 } && test -s conftest$ac_exeext &&
30695 $as_test_x conftest$ac_exeext; then
30696 ac_cv_working_alloca_h=yes
30698 echo "$as_me: failed program was:" >&5
30699 sed 's/^/| /' conftest.$ac_ext >&5
30701 ac_cv_working_alloca_h=no
30704 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30705 conftest$ac_exeext conftest.$ac_ext
30707 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
30708 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
30709 if test $ac_cv_working_alloca_h = yes; then
30711 cat >>confdefs.h <<\_ACEOF
30712 #define HAVE_ALLOCA_H 1
30717 { echo "$as_me:$LINENO: checking for alloca" >&5
30718 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
30719 if test "${ac_cv_func_alloca_works+set}" = set; then
30720 echo $ECHO_N "(cached) $ECHO_C" >&6
30722 cat >conftest.$ac_ext <<_ACEOF
30725 cat confdefs.h >>conftest.$ac_ext
30726 cat >>conftest.$ac_ext <<_ACEOF
30727 /* end confdefs.h. */
30729 # define alloca __builtin_alloca
30732 # include <malloc.h>
30733 # define alloca _alloca
30735 # ifdef HAVE_ALLOCA_H
30736 # include <alloca.h>
30741 # ifndef alloca /* predefined by HP cc +Olibcalls */
30752 char *p = (char *) alloca (1);
30758 rm -f conftest.$ac_objext conftest$ac_exeext
30759 if { (ac_try="$ac_link"
30760 case "(($ac_try" in
30761 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30762 *) ac_try_echo
=$ac_try;;
30764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30765 (eval "$ac_link") 2>conftest.er1
30767 grep -v '^ *+' conftest.er1
>conftest.err
30769 cat conftest.err
>&5
30770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30771 (exit $ac_status); } && {
30772 test -z "$ac_c_werror_flag" ||
30773 test ! -s conftest.err
30774 } && test -s conftest
$ac_exeext &&
30775 $as_test_x conftest
$ac_exeext; then
30776 ac_cv_func_alloca_works
=yes
30778 echo "$as_me: failed program was:" >&5
30779 sed 's/^/| /' conftest.
$ac_ext >&5
30781 ac_cv_func_alloca_works
=no
30784 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
30785 conftest
$ac_exeext conftest.
$ac_ext
30787 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
30788 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
30790 if test $ac_cv_func_alloca_works = yes; then
30792 cat >>confdefs.h
<<\_ACEOF
30793 #define HAVE_ALLOCA 1
30797 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
30798 # that cause trouble. Some versions do not even contain alloca or
30799 # contain a buggy version. If you still want to use their alloca,
30800 # use ar to extract alloca.o from them instead of compiling alloca.c.
30802 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
30804 cat >>confdefs.h
<<\_ACEOF
30809 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
30810 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
30811 if test "${ac_cv_os_cray+set}" = set; then
30812 echo $ECHO_N "(cached) $ECHO_C" >&6
30814 cat >conftest.
$ac_ext <<_ACEOF
30817 cat confdefs.h
>>conftest.
$ac_ext
30818 cat >>conftest.
$ac_ext <<_ACEOF
30819 /* end confdefs.h. */
30820 #if defined CRAY && ! defined CRAY2
30827 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30828 $EGREP "webecray" >/dev
/null
2>&1; then
30836 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
30837 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
30838 if test $ac_cv_os_cray = yes; then
30839 for ac_func
in _getb67 GETB67 getb67
; do
30840 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30841 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30842 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30843 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30844 echo $ECHO_N "(cached) $ECHO_C" >&6
30846 cat >conftest.
$ac_ext <<_ACEOF
30849 cat confdefs.h
>>conftest.
$ac_ext
30850 cat >>conftest.
$ac_ext <<_ACEOF
30851 /* end confdefs.h. */
30852 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30853 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30854 #define $ac_func innocuous_$ac_func
30856 /* System header to define __stub macros and hopefully few prototypes,
30857 which can conflict with char $ac_func (); below.
30858 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30859 <limits.h> exists even on freestanding compilers. */
30862 # include <limits.h>
30864 # include <assert.h>
30869 /* Override any GCC internal prototype to avoid an error.
30870 Use char because int might match the return type of a GCC
30871 builtin and then its argument prototype would still apply. */
30876 /* The GNU C library defines this for functions which it implements
30877 to always fail with ENOSYS. Some functions are actually named
30878 something starting with __ and the normal name is an alias. */
30879 #if defined __stub_$ac_func || defined __stub___$ac_func
30886 return $ac_func ();
30891 rm -f conftest.
$ac_objext conftest
$ac_exeext
30892 if { (ac_try
="$ac_link"
30893 case "(($ac_try" in
30894 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30895 *) ac_try_echo=$ac_try;;
30897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30898 (eval "$ac_link") 2>conftest.er1
30900 grep -v '^ *+' conftest.er1 >conftest.err
30902 cat conftest.err >&5
30903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30904 (exit $ac_status); } && {
30905 test -z "$ac_c_werror_flag" ||
30906 test ! -s conftest.err
30907 } && test -s conftest$ac_exeext &&
30908 $as_test_x conftest$ac_exeext; then
30909 eval "$as_ac_var=yes"
30911 echo "$as_me: failed program was:" >&5
30912 sed 's/^/| /' conftest.$ac_ext >&5
30914 eval "$as_ac_var=no"
30917 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30918 conftest$ac_exeext conftest.$ac_ext
30920 ac_res=`eval echo '${'$as_ac_var'}'`
30921 { echo "$as_me:$LINENO: result: $ac_res" >&5
30922 echo "${ECHO_T}$ac_res" >&6; }
30923 if test `eval echo '${'$as_ac_var'}'` = yes; then
30925 cat >>confdefs.h <<_ACEOF
30926 #define CRAY_STACKSEG_END $ac_func
30935 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
30936 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
30937 if test "${ac_cv_c_stack_direction+set}" = set; then
30938 echo $ECHO_N "(cached) $ECHO_C" >&6
30940 if test "$cross_compiling" = yes; then
30941 ac_cv_c_stack_direction=0
30943 cat >conftest.$ac_ext <<_ACEOF
30946 cat confdefs.h >>conftest.$ac_ext
30947 cat >>conftest.$ac_ext <<_ACEOF
30948 /* end confdefs.h. */
30949 $ac_includes_default
30951 find_stack_direction ()
30953 static char *addr = 0;
30958 return find_stack_direction ();
30961 return (&dummy > addr) ? 1 : -1;
30967 return find_stack_direction () < 0;
30970 rm -f conftest$ac_exeext
30971 if { (ac_try="$ac_link"
30972 case "(($ac_try" in
30973 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30974 *) ac_try_echo
=$ac_try;;
30976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30977 (eval "$ac_link") 2>&5
30979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30980 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
30981 { (case "(($ac_try" in
30982 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30983 *) ac_try_echo=$ac_try;;
30985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30986 (eval "$ac_try") 2>&5
30988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30989 (exit $ac_status); }; }; then
30990 ac_cv_c_stack_direction=1
30992 echo "$as_me: program exited with status $ac_status" >&5
30993 echo "$as_me: failed program was:" >&5
30994 sed 's/^/| /' conftest.$ac_ext >&5
30996 ( exit $ac_status )
30997 ac_cv_c_stack_direction=-1
30999 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31004 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
31005 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
31007 cat >>confdefs.h <<_ACEOF
31008 #define STACK_DIRECTION $ac_cv_c_stack_direction
31017 # Check whether --with-libiconv-prefix was given.
31018 if test "${with_libiconv_prefix+set}" = set; then
31019 withval=$with_libiconv_prefix;
31020 for dir in `echo "$withval" |
tr : ' '`; do
31021 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
31022 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
31028 { echo "$as_me:$LINENO: checking for iconv" >&5
31029 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
31030 if test "${am_cv_func_iconv+set}" = set; then
31031 echo $ECHO_N "(cached) $ECHO_C" >&6
31034 am_cv_func_iconv="no, consider installing GNU libiconv"
31036 cat >conftest.$ac_ext <<_ACEOF
31039 cat confdefs.h >>conftest.$ac_ext
31040 cat >>conftest.$ac_ext <<_ACEOF
31041 /* end confdefs.h. */
31042 #include <stdlib.h>
31047 iconv_t cd = iconv_open("","");
31048 iconv(cd,NULL,NULL,NULL,NULL);
31054 rm -f conftest.$ac_objext conftest$ac_exeext
31055 if { (ac_try="$ac_link"
31056 case "(($ac_try" in
31057 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31058 *) ac_try_echo
=$ac_try;;
31060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31061 (eval "$ac_link") 2>conftest.er1
31063 grep -v '^ *+' conftest.er1
>conftest.err
31065 cat conftest.err
>&5
31066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31067 (exit $ac_status); } && {
31068 test -z "$ac_c_werror_flag" ||
31069 test ! -s conftest.err
31070 } && test -s conftest
$ac_exeext &&
31071 $as_test_x conftest
$ac_exeext; then
31072 am_cv_func_iconv
=yes
31074 echo "$as_me: failed program was:" >&5
31075 sed 's/^/| /' conftest.
$ac_ext >&5
31080 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
31081 conftest
$ac_exeext conftest.
$ac_ext
31082 if test "$am_cv_func_iconv" != yes; then
31083 am_save_LIBS
="$LIBS"
31084 LIBS
="$LIBS -liconv"
31085 cat >conftest.
$ac_ext <<_ACEOF
31088 cat confdefs.h
>>conftest.
$ac_ext
31089 cat >>conftest.
$ac_ext <<_ACEOF
31090 /* end confdefs.h. */
31091 #include <stdlib.h>
31096 iconv_t cd = iconv_open("","");
31097 iconv(cd,NULL,NULL,NULL,NULL);
31103 rm -f conftest.
$ac_objext conftest
$ac_exeext
31104 if { (ac_try
="$ac_link"
31105 case "(($ac_try" in
31106 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31107 *) ac_try_echo=$ac_try;;
31109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31110 (eval "$ac_link") 2>conftest.er1
31112 grep -v '^ *+' conftest.er1 >conftest.err
31114 cat conftest.err >&5
31115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31116 (exit $ac_status); } && {
31117 test -z "$ac_c_werror_flag" ||
31118 test ! -s conftest.err
31119 } && test -s conftest$ac_exeext &&
31120 $as_test_x conftest$ac_exeext; then
31121 am_cv_lib_iconv=yes
31122 am_cv_func_iconv=yes
31124 echo "$as_me: failed program was:" >&5
31125 sed 's/^/| /' conftest.$ac_ext >&5
31130 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31131 conftest$ac_exeext conftest.$ac_ext
31132 LIBS="$am_save_LIBS"
31136 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
31137 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
31138 if test "$am_cv_func_iconv" = yes; then
31140 cat >>confdefs.h <<\_ACEOF
31141 #define HAVE_ICONV 1
31144 { echo "$as_me:$LINENO: checking for iconv declaration" >&5
31145 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
31146 if test "${am_cv_proto_iconv+set}" = set; then
31147 echo $ECHO_N "(cached) $ECHO_C" >&6
31150 cat >conftest.$ac_ext <<_ACEOF
31153 cat confdefs.h >>conftest.$ac_ext
31154 cat >>conftest.$ac_ext <<_ACEOF
31155 /* end confdefs.h. */
31157 #include <stdlib.h>
31163 #if defined(__STDC__) || defined(__cplusplus)
31164 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
31177 rm -f conftest.$ac_objext
31178 if { (ac_try="$ac_compile"
31179 case "(($ac_try" in
31180 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31181 *) ac_try_echo
=$ac_try;;
31183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31184 (eval "$ac_compile") 2>conftest.er1
31186 grep -v '^ *+' conftest.er1
>conftest.err
31188 cat conftest.err
>&5
31189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31190 (exit $ac_status); } && {
31191 test -z "$ac_c_werror_flag" ||
31192 test ! -s conftest.err
31193 } && test -s conftest.
$ac_objext; then
31194 am_cv_proto_iconv_arg1
=""
31196 echo "$as_me: failed program was:" >&5
31197 sed 's/^/| /' conftest.
$ac_ext >&5
31199 am_cv_proto_iconv_arg1
="const"
31202 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
31203 am_cv_proto_iconv
="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
31206 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
31207 { echo "$as_me:$LINENO: result: ${ac_t:-
31208 }$am_cv_proto_iconv" >&5
31209 echo "${ECHO_T}${ac_t:-
31210 }$am_cv_proto_iconv" >&6; }
31212 cat >>confdefs.h
<<_ACEOF
31213 #define ICONV_CONST $am_cv_proto_iconv_arg1
31218 if test "$am_cv_lib_iconv" = yes; then
31229 for ac_func
in atexit on_exit fcntl
select stat
chmod
31231 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31232 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31233 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31234 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31235 echo $ECHO_N "(cached) $ECHO_C" >&6
31237 cat >conftest.
$ac_ext <<_ACEOF
31240 cat confdefs.h
>>conftest.
$ac_ext
31241 cat >>conftest.
$ac_ext <<_ACEOF
31242 /* end confdefs.h. */
31243 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31244 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31245 #define $ac_func innocuous_$ac_func
31247 /* System header to define __stub macros and hopefully few prototypes,
31248 which can conflict with char $ac_func (); below.
31249 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31250 <limits.h> exists even on freestanding compilers. */
31253 # include <limits.h>
31255 # include <assert.h>
31260 /* Override any GCC internal prototype to avoid an error.
31261 Use char because int might match the return type of a GCC
31262 builtin and then its argument prototype would still apply. */
31267 /* The GNU C library defines this for functions which it implements
31268 to always fail with ENOSYS. Some functions are actually named
31269 something starting with __ and the normal name is an alias. */
31270 #if defined __stub_$ac_func || defined __stub___$ac_func
31277 return $ac_func ();
31282 rm -f conftest.
$ac_objext conftest
$ac_exeext
31283 if { (ac_try
="$ac_link"
31284 case "(($ac_try" in
31285 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31286 *) ac_try_echo=$ac_try;;
31288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31289 (eval "$ac_link") 2>conftest.er1
31291 grep -v '^ *+' conftest.er1 >conftest.err
31293 cat conftest.err >&5
31294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31295 (exit $ac_status); } && {
31296 test -z "$ac_c_werror_flag" ||
31297 test ! -s conftest.err
31298 } && test -s conftest$ac_exeext &&
31299 $as_test_x conftest$ac_exeext; then
31300 eval "$as_ac_var=yes"
31302 echo "$as_me: failed program was:" >&5
31303 sed 's/^/| /' conftest.$ac_ext >&5
31305 eval "$as_ac_var=no"
31308 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31309 conftest$ac_exeext conftest.$ac_ext
31311 ac_res=`eval echo '${'$as_ac_var'}'`
31312 { echo "$as_me:$LINENO: result: $ac_res" >&5
31313 echo "${ECHO_T}$ac_res" >&6; }
31314 if test `eval echo '${'$as_ac_var'}'` = yes; then
31315 cat >>confdefs.h <<_ACEOF
31316 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
31323 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
31324 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
31325 if test "${am_cv_langinfo_codeset+set}" = set; then
31326 echo $ECHO_N "(cached) $ECHO_C" >&6
31328 cat >conftest.$ac_ext <<_ACEOF
31331 cat confdefs.h >>conftest.$ac_ext
31332 cat >>conftest.$ac_ext <<_ACEOF
31333 /* end confdefs.h. */
31334 #include <langinfo.h>
31338 char* cs = nl_langinfo(CODESET);
31343 rm -f conftest.$ac_objext conftest$ac_exeext
31344 if { (ac_try="$ac_link"
31345 case "(($ac_try" in
31346 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31347 *) ac_try_echo
=$ac_try;;
31349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31350 (eval "$ac_link") 2>conftest.er1
31352 grep -v '^ *+' conftest.er1
>conftest.err
31354 cat conftest.err
>&5
31355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31356 (exit $ac_status); } && {
31357 test -z "$ac_c_werror_flag" ||
31358 test ! -s conftest.err
31359 } && test -s conftest
$ac_exeext &&
31360 $as_test_x conftest
$ac_exeext; then
31361 am_cv_langinfo_codeset
=yes
31363 echo "$as_me: failed program was:" >&5
31364 sed 's/^/| /' conftest.
$ac_ext >&5
31366 am_cv_langinfo_codeset
=no
31369 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
31370 conftest
$ac_exeext conftest.
$ac_ext
31373 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
31374 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
31375 if test $am_cv_langinfo_codeset = yes; then
31377 cat >>confdefs.h
<<\_ACEOF
31378 #define HAVE_LANGINFO_CODESET 1
31385 if test -z "$mandir"; then
31386 if test "$prefix" = "/usr"; then
31387 MANDIR
='$(datadir)/man'
31389 MANDIR
='$(prefix)/man'
31398 # add optional subdirs to the build
31400 if test "x$build_ogg123" = xyes
; then
31401 OPT_SUBDIRS
="$OPT_SUBDIRS ogg123"
31403 if test "x$build_oggenc" = xyes
; then
31404 OPT_SUBDIRS
="$OPT_SUBDIRS oggenc"
31406 if test "x$build_oggdec" = xyes
; then
31407 OPT_SUBDIRS
="$OPT_SUBDIRS oggdec"
31409 if test "x$build_ogginfo" = xyes
; then
31410 OPT_SUBDIRS
="$OPT_SUBDIRS ogginfo"
31412 if test "x$build_vcut" = xyes
; then
31413 OPT_SUBDIRS
="$OPT_SUBDIRS vcut"
31415 if test "x$build_vorbiscomment" = xyes
; then
31416 OPT_SUBDIRS
="$OPT_SUBDIRS vorbiscomment"
31430 ac_config_files
="$ac_config_files Makefile m4/Makefile po/Makefile.in intl/Makefile include/Makefile share/Makefile win32/Makefile oggdec/Makefile oggenc/Makefile oggenc/man/Makefile ogg123/Makefile vorbiscomment/Makefile vcut/Makefile ogginfo/Makefile debian/Makefile"
31432 cat >confcache
<<\_ACEOF
31433 # This file is a shell script that caches the results of configure
31434 # tests run on this system so they can be shared between configure
31435 # scripts and configure runs, see configure's option --config-cache.
31436 # It is not useful on other systems. If it contains results you don't
31437 # want to keep, you may remove or edit it.
31439 # config.status only pays attention to the cache file if you give it
31440 # the --recheck option to rerun configure.
31442 # `ac_cv_env_foo' variables (set or unset) will be overridden when
31443 # loading this file, other *unset* `ac_cv_foo' will be assigned the
31444 # following values.
31448 # The following way of writing the cache mishandles newlines in values,
31449 # but we know of no workaround that is simple, portable, and efficient.
31450 # So, we kill variables containing newlines.
31451 # Ultrix sh set writes to stderr and can't be redirected directly,
31452 # and sets the high bit in the cache file unless we assign to the vars.
31454 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
31455 eval ac_val
=\$
$ac_var
31459 *_cv_
*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
31460 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
31463 _ | IFS | as_nl
) ;; #(
31464 *) $as_unset $ac_var ;;
31470 case $as_nl`(ac_space=' '; set) 2>&1` in #(
31471 *${as_nl}ac_space
=\
*)
31472 # `set' does not quote correctly, so add quotes (double-quote
31473 # substitution turns \\\\ into \\, and sed turns \\ into \).
31476 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
31479 # `set' quotes correctly as required by POSIX, so do not add quotes.
31480 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
31489 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
31491 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
31493 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
31494 if test -w "$cache_file"; then
31495 test "x$cache_file" != "x/dev/null" &&
31496 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
31497 echo "$as_me: updating cache $cache_file" >&6;}
31498 cat confcache
>$cache_file
31500 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
31501 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
31506 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
31507 # Let make expand exec_prefix.
31508 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
31510 DEFS
=-DHAVE_CONFIG_H
31514 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
31515 # 1. Remove the extension, and $U if already installed.
31516 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
31517 ac_i
=`echo "$ac_i" | sed "$ac_script"`
31518 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
31519 # will be set to the directory where LIBOBJS objects are built.
31520 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
31521 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
31523 LIBOBJS
=$ac_libobjs
31525 LTLIBOBJS
=$ac_ltlibobjs
31528 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
31529 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
31530 Usually this means the macro was only invoked conditionally." >&5
31531 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
31532 Usually this means the macro was only invoked conditionally." >&2;}
31533 { (exit 1); exit 1; }; }
31535 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
31536 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
31537 Usually this means the macro was only invoked conditionally." >&5
31538 echo "$as_me: error: conditional \"AMDEP\" was never defined.
31539 Usually this means the macro was only invoked conditionally." >&2;}
31540 { (exit 1); exit 1; }; }
31542 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
31543 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
31544 Usually this means the macro was only invoked conditionally." >&5
31545 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
31546 Usually this means the macro was only invoked conditionally." >&2;}
31547 { (exit 1); exit 1; }; }
31549 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
31550 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
31551 Usually this means the macro was only invoked conditionally." >&5
31552 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
31553 Usually this means the macro was only invoked conditionally." >&2;}
31554 { (exit 1); exit 1; }; }
31556 if test -z "${HAVE_LIBFLAC_TRUE}" && test -z "${HAVE_LIBFLAC_FALSE}"; then
31557 { { echo "$as_me:$LINENO: error: conditional \"HAVE_LIBFLAC\" was never defined.
31558 Usually this means the macro was only invoked conditionally." >&5
31559 echo "$as_me: error: conditional \"HAVE_LIBFLAC\" was never defined.
31560 Usually this means the macro was only invoked conditionally." >&2;}
31561 { (exit 1); exit 1; }; }
31563 if test -z "${HAVE_LIBSPEEX_TRUE}" && test -z "${HAVE_LIBSPEEX_FALSE}"; then
31564 { { echo "$as_me:$LINENO: error: conditional \"HAVE_LIBSPEEX\" was never defined.
31565 Usually this means the macro was only invoked conditionally." >&5
31566 echo "$as_me: error: conditional \"HAVE_LIBSPEEX\" was never defined.
31567 Usually this means the macro was only invoked conditionally." >&2;}
31568 { (exit 1); exit 1; }; }
31571 : ${CONFIG_STATUS=./config.status}
31572 ac_clean_files_save
=$ac_clean_files
31573 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
31574 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
31575 echo "$as_me: creating $CONFIG_STATUS" >&6;}
31576 cat >$CONFIG_STATUS <<_ACEOF
31578 # Generated by $as_me.
31579 # Run this file to recreate the current configuration.
31580 # Compiler output produced by configure, useful for debugging
31581 # configure, is in config.log if it exists.
31584 ac_cs_recheck=false
31586 SHELL=\${CONFIG_SHELL-$SHELL}
31589 cat >>$CONFIG_STATUS <<\_ACEOF
31590 ## --------------------- ##
31591 ## M4sh Initialization. ##
31592 ## --------------------- ##
31594 # Be more Bourne compatible
31595 DUALCASE
=1; export DUALCASE
# for MKS sh
31596 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
31599 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
31600 # is contrary to our usage. Disable this feature.
31601 alias -g '${1+"$@"}'='"$@"'
31602 setopt NO_GLOB_SUBST
31604 case `(set -o) 2>/dev/null` in
31605 *posix
*) set -o posix
;;
31614 # Avoid depending upon Character Ranges.
31615 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
31616 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
31617 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
31618 as_cr_digits
='0123456789'
31619 as_cr_alnum
=$as_cr_Letters$as_cr_digits
31621 # The user is always right.
31622 if test "${PATH_SEPARATOR+set}" != set; then
31623 echo "#! /bin/sh" >conf$$.sh
31624 echo "exit 0" >>conf$$.sh
31626 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
31634 # Support unset when possible.
31635 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
31643 # We need space, tab and new line, in precisely that order. Quoting is
31644 # there to prevent editors from complaining about space-tab.
31645 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
31646 # splitting by setting IFS to empty value.)
31651 # Find who we are. Look in the path if we contain no directory separator.
31653 *[\\/]* ) as_myself
=$0 ;;
31654 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
31655 for as_dir
in $PATH
31658 test -z "$as_dir" && as_dir
=.
31659 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
31665 # We did not find ourselves, most probably we were run as `sh COMMAND'
31666 # in which case we are not to be found in the path.
31667 if test "x$as_myself" = x
; then
31670 if test ! -f "$as_myself"; then
31671 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
31672 { (exit 1); exit 1; }
31675 # Work around bugs in pre-3.0 UWIN ksh.
31676 for as_var
in ENV MAIL MAILPATH
31677 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
31685 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
31686 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
31687 LC_TELEPHONE LC_TIME
31689 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
31690 eval $as_var=C
; export $as_var
31692 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
31696 # Required to use basename.
31697 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
31698 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
31704 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
31705 as_basename
=basename
31711 # Name of the executable.
31712 as_me
=`$as_basename -- "$0" ||
31713 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
31714 X"$0" : 'X\(//\)$' \| \
31715 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
31717 sed '/^.*\/\([^/][^/]*\)\/*$/{
31736 as_lineno_1
=$LINENO
31737 as_lineno_2
=$LINENO
31738 test "x$as_lineno_1" != "x$as_lineno_2" &&
31739 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
31741 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
31742 # uniformly replaced by the line number. The first 'sed' inserts a
31743 # line-number line after each line using $LINENO; the second 'sed'
31744 # does the real work. The second script uses 'N' to pair each
31745 # line-number line with the line containing $LINENO, and appends
31746 # trailing '-' during substitution so that $LINENO is not a special
31747 # case at line end.
31748 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
31749 # scripts with optimization help from Paolo Bonzini. Blame Lee
31750 # E. McMahon (1931-1989) for sed's syntax. :-)
31762 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
31765 ' >$as_me.lineno
&&
31766 chmod +x
"$as_me.lineno" ||
31767 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
31768 { (exit 1); exit 1; }; }
31770 # Don't try to exec as it changes $[0], causing all sort of problems
31771 # (the dirname of $[0] is not the place where we might find the
31772 # original and so on. Autoconf is especially sensitive to this).
31773 .
"./$as_me.lineno"
31774 # Exit status is that of the last command.
31779 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
31785 ECHO_C
= ECHO_N
= ECHO_T
=
31786 case `echo -n x` in
31788 case `echo 'x\c'` in
31789 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
31796 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
31797 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
31803 rm -f conf$$ conf$$.exe conf$$.
file
31804 if test -d conf$$.dir
; then
31805 rm -f conf$$.dir
/conf$$.
file
31811 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
31813 # ... but there are two gotchas:
31814 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
31815 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
31816 # In both cases, we have to default to `cp -p'.
31817 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
31819 elif ln conf$$.
file conf$$
2>/dev
/null
; then
31824 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
31825 rmdir conf$$.dir
2>/dev
/null
31827 if mkdir
-p .
2>/dev
/null
; then
31830 test -d .
/-p && rmdir .
/-p
31834 if test -x / >/dev
/null
2>&1; then
31835 as_test_x
='test -x'
31837 if ls -dL / >/dev
/null
2>&1; then
31844 if test -d "$1"; then
31850 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
31851 ???[sx]*):;;*)false;;esac;fi
31855 as_executable_p
=$as_test_x
31857 # Sed expression to map a string onto a valid CPP name.
31858 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31860 # Sed expression to map a string onto a valid variable name.
31861 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31866 # Save the log message, to keep $[0] and so on meaningful, and to
31867 # report actual input values of CONFIG_FILES etc. instead of their
31868 # values after options handling.
31870 This file was extended by $as_me, which was
31871 generated by GNU Autoconf 2.61. Invocation command line was
31873 CONFIG_FILES = $CONFIG_FILES
31874 CONFIG_HEADERS = $CONFIG_HEADERS
31875 CONFIG_LINKS = $CONFIG_LINKS
31876 CONFIG_COMMANDS = $CONFIG_COMMANDS
31879 on `(hostname || uname -n) 2>/dev/null | sed 1q`
31884 cat >>$CONFIG_STATUS <<_ACEOF
31885 # Files that config.status was made for.
31886 config_files="$ac_config_files"
31887 config_headers="$ac_config_headers"
31888 config_commands="$ac_config_commands"
31892 cat >>$CONFIG_STATUS <<\_ACEOF
31894 \`$as_me' instantiates files from templates according to the
31895 current configuration.
31897 Usage: $0 [OPTIONS] [FILE]...
31899 -h, --help print this help, then exit
31900 -V, --version print version number and configuration settings, then exit
31901 -q, --quiet do not print progress messages
31902 -d, --debug don't remove temporary files
31903 --recheck update $as_me by reconfiguring in the same conditions
31904 --file=FILE[:TEMPLATE]
31905 instantiate the configuration file FILE
31906 --header=FILE[:TEMPLATE]
31907 instantiate the configuration header FILE
31909 Configuration files:
31912 Configuration headers:
31915 Configuration commands:
31918 Report bugs to <bug-autoconf@gnu.org>."
31921 cat >>$CONFIG_STATUS <<_ACEOF
31924 configured by $0, generated by GNU Autoconf 2.61,
31925 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
31927 Copyright (C) 2006 Free Software Foundation, Inc.
31928 This config.status script is free software; the Free Software Foundation
31929 gives unlimited permission to copy, distribute and modify it."
31937 cat >>$CONFIG_STATUS <<\_ACEOF
31938 # If no file are specified by the user, then we need to provide default
31939 # value. By we need to know if files were specified by the user.
31945 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
31946 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
31957 # Handling of the options.
31958 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
31960 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
31961 echo "$ac_cs_version"; exit ;;
31962 --debug |
--debu |
--deb |
--de |
--d |
-d )
31964 --file |
--fil |
--fi |
--f )
31966 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
31967 ac_need_defaults
=false
;;
31968 --header |
--heade |
--head |
--hea )
31970 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
31971 ac_need_defaults
=false
;;
31973 # Conflict between --help and --header
31974 { echo "$as_me: error: ambiguous option: $1
31975 Try \`$0 --help' for more information." >&2
31976 { (exit 1); exit 1; }; };;
31977 --help |
--hel |
-h )
31978 echo "$ac_cs_usage"; exit ;;
31979 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
31980 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
31983 # This is an error.
31984 -*) { echo "$as_me: error: unrecognized option: $1
31985 Try \`$0 --help' for more information." >&2
31986 { (exit 1); exit 1; }; } ;;
31988 *) ac_config_targets
="$ac_config_targets $1"
31989 ac_need_defaults
=false
;;
31995 ac_configure_extra_args
=
31997 if $ac_cs_silent; then
31999 ac_configure_extra_args
="$ac_configure_extra_args --silent"
32003 cat >>$CONFIG_STATUS <<_ACEOF
32004 if \$ac_cs_recheck; then
32005 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
32006 CONFIG_SHELL=$SHELL
32007 export CONFIG_SHELL
32008 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
32012 cat >>$CONFIG_STATUS <<\_ACEOF
32016 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
32017 ## Running $as_me. ##
32023 cat >>$CONFIG_STATUS <<_ACEOF
32027 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
32028 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
32029 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
32030 # from automake < 1.5.
32031 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
32032 # Capture the value of LINGUAS because we need it to compute CATALOGS.
32033 LINGUAS="${LINGUAS-%UNSET%}"
32038 cat >>$CONFIG_STATUS <<\_ACEOF
32040 # Handling of arguments.
32041 for ac_config_target
in $ac_config_targets
32043 case $ac_config_target in
32044 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
32045 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
32046 "po-directories") CONFIG_COMMANDS
="$CONFIG_COMMANDS po-directories" ;;
32047 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
32048 "m4/Makefile") CONFIG_FILES
="$CONFIG_FILES m4/Makefile" ;;
32049 "po/Makefile.in") CONFIG_FILES
="$CONFIG_FILES po/Makefile.in" ;;
32050 "intl/Makefile") CONFIG_FILES
="$CONFIG_FILES intl/Makefile" ;;
32051 "include/Makefile") CONFIG_FILES
="$CONFIG_FILES include/Makefile" ;;
32052 "share/Makefile") CONFIG_FILES
="$CONFIG_FILES share/Makefile" ;;
32053 "win32/Makefile") CONFIG_FILES
="$CONFIG_FILES win32/Makefile" ;;
32054 "oggdec/Makefile") CONFIG_FILES
="$CONFIG_FILES oggdec/Makefile" ;;
32055 "oggenc/Makefile") CONFIG_FILES
="$CONFIG_FILES oggenc/Makefile" ;;
32056 "oggenc/man/Makefile") CONFIG_FILES
="$CONFIG_FILES oggenc/man/Makefile" ;;
32057 "ogg123/Makefile") CONFIG_FILES
="$CONFIG_FILES ogg123/Makefile" ;;
32058 "vorbiscomment/Makefile") CONFIG_FILES
="$CONFIG_FILES vorbiscomment/Makefile" ;;
32059 "vcut/Makefile") CONFIG_FILES
="$CONFIG_FILES vcut/Makefile" ;;
32060 "ogginfo/Makefile") CONFIG_FILES
="$CONFIG_FILES ogginfo/Makefile" ;;
32061 "debian/Makefile") CONFIG_FILES
="$CONFIG_FILES debian/Makefile" ;;
32063 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
32064 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
32065 { (exit 1); exit 1; }; };;
32070 # If the user did not use the arguments to specify the items to instantiate,
32071 # then the envvar interface is used. Set only those that are not.
32072 # We use the long form for the default assignment because of an extremely
32073 # bizarre bug on SunOS 4.1.3.
32074 if $ac_need_defaults; then
32075 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
32076 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
32077 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
32080 # Have a temporary directory for convenience. Make it in the build tree
32081 # simply because there is no reason against having it here, and in addition,
32082 # creating and moving files from /tmp can sometimes cause problems.
32083 # Hook for its removal unless debugging.
32084 # Note that there is a small window in which the directory will not be cleaned:
32085 # after its creation but before its name has been assigned to `$tmp'.
32089 trap 'exit_status=$?
32090 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
32092 trap '{ (exit 1); exit 1; }' 1 2 13 15
32094 # Create a (secure) tmp directory for tmp files.
32097 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
32098 test -n "$tmp" && test -d "$tmp"
32101 tmp
=.
/conf$$
-$RANDOM
32102 (umask 077 && mkdir
"$tmp")
32105 echo "$me: cannot create a temporary directory in ." >&2
32106 { (exit 1); exit 1; }
32110 # Set up the sed scripts for CONFIG_FILES section.
32113 # No need to generate the scripts if there are no CONFIG_FILES.
32114 # This happens for instance when ./config.status config.h
32115 if test -n "$CONFIG_FILES"; then
32122 for ac_last_try
in false false false false false
:; do
32123 cat >conf$
$subs.
sed <<_ACEOF
32124 SHELL!$SHELL$ac_delim
32125 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
32126 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
32127 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
32128 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
32129 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
32130 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
32131 exec_prefix!$exec_prefix$ac_delim
32132 prefix!$prefix$ac_delim
32133 program_transform_name!$program_transform_name$ac_delim
32134 bindir!$bindir$ac_delim
32135 sbindir!$sbindir$ac_delim
32136 libexecdir!$libexecdir$ac_delim
32137 datarootdir!$datarootdir$ac_delim
32138 datadir!$datadir$ac_delim
32139 sysconfdir!$sysconfdir$ac_delim
32140 sharedstatedir!$sharedstatedir$ac_delim
32141 localstatedir!$localstatedir$ac_delim
32142 includedir!$includedir$ac_delim
32143 oldincludedir!$oldincludedir$ac_delim
32144 docdir!$docdir$ac_delim
32145 infodir!$infodir$ac_delim
32146 htmldir!$htmldir$ac_delim
32147 dvidir!$dvidir$ac_delim
32148 pdfdir!$pdfdir$ac_delim
32149 psdir!$psdir$ac_delim
32150 libdir!$libdir$ac_delim
32151 localedir!$localedir$ac_delim
32152 mandir!$mandir$ac_delim
32153 DEFS!$DEFS$ac_delim
32154 ECHO_C!$ECHO_C$ac_delim
32155 ECHO_N!$ECHO_N$ac_delim
32156 ECHO_T!$ECHO_T$ac_delim
32157 LIBS!$LIBS$ac_delim
32158 build_alias!$build_alias$ac_delim
32159 host_alias!$host_alias$ac_delim
32160 target_alias!$target_alias$ac_delim
32161 build!$build$ac_delim
32162 build_cpu!$build_cpu$ac_delim
32163 build_vendor!$build_vendor$ac_delim
32164 build_os!$build_os$ac_delim
32165 host!$host$ac_delim
32166 host_cpu!$host_cpu$ac_delim
32167 host_vendor!$host_vendor$ac_delim
32168 host_os!$host_os$ac_delim
32169 target!$target$ac_delim
32170 target_cpu!$target_cpu$ac_delim
32171 target_vendor!$target_vendor$ac_delim
32172 target_os!$target_os$ac_delim
32173 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
32174 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
32175 INSTALL_DATA!$INSTALL_DATA$ac_delim
32176 am__isrc!$am__isrc$ac_delim
32177 CYGPATH_W!$CYGPATH_W$ac_delim
32178 PACKAGE!$PACKAGE$ac_delim
32179 VERSION!$VERSION$ac_delim
32180 ACLOCAL!$ACLOCAL$ac_delim
32181 AUTOCONF!$AUTOCONF$ac_delim
32182 AUTOMAKE!$AUTOMAKE$ac_delim
32183 AUTOHEADER!$AUTOHEADER$ac_delim
32184 MAKEINFO!$MAKEINFO$ac_delim
32185 install_sh!$install_sh$ac_delim
32186 STRIP!$STRIP$ac_delim
32187 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
32188 mkdir_p!$mkdir_p$ac_delim
32190 SET_MAKE!$SET_MAKE$ac_delim
32191 am__leading_dot!$am__leading_dot$ac_delim
32192 AMTAR!$AMTAR$ac_delim
32193 am__tar!$am__tar$ac_delim
32194 am__untar!$am__untar$ac_delim
32195 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
32196 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
32197 MAINT!$MAINT$ac_delim
32199 CFLAGS!$CFLAGS$ac_delim
32200 LDFLAGS!$LDFLAGS$ac_delim
32201 CPPFLAGS!$CPPFLAGS$ac_delim
32202 ac_ct_CC!$ac_ct_CC$ac_delim
32203 EXEEXT!$EXEEXT$ac_delim
32204 OBJEXT!$OBJEXT$ac_delim
32205 DEPDIR!$DEPDIR$ac_delim
32206 am__include!$am__include$ac_delim
32207 am__quote!$am__quote$ac_delim
32208 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
32209 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
32210 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
32211 CCDEPMODE!$CCDEPMODE$ac_delim
32212 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
32213 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
32214 GREP!$GREP$ac_delim
32215 EGREP!$EGREP$ac_delim
32216 LN_S!$LN_S$ac_delim
32217 ECHO!$ECHO$ac_delim
32219 RANLIB!$RANLIB$ac_delim
32223 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
32225 elif $ac_last_try; then
32226 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
32227 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
32228 { (exit 1); exit 1; }; }
32230 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
32234 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
32235 if test -n "$ac_eof"; then
32236 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
32237 ac_eof
=`expr $ac_eof + 1`
32240 cat >>$CONFIG_STATUS <<_ACEOF
32241 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
32242 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32245 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
32246 s/^/s,@/; s/!/@,|#_!!_#|/
32249 s/'"$ac_delim"'$/,g/; t
32251 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
32252 ' >>$CONFIG_STATUS <conf$
$subs.
sed
32253 rm -f conf$
$subs.
sed
32254 cat >>$CONFIG_STATUS <<_ACEOF
32260 for ac_last_try
in false false false false false
:; do
32261 cat >conf$
$subs.
sed <<_ACEOF
32263 CXXFLAGS!$CXXFLAGS$ac_delim
32264 ac_ct_CXX!$ac_ct_CXX$ac_delim
32265 CXXDEPMODE!$CXXDEPMODE$ac_delim
32266 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
32267 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
32268 CXXCPP!$CXXCPP$ac_delim
32270 FFLAGS!$FFLAGS$ac_delim
32271 ac_ct_F77!$ac_ct_F77$ac_delim
32272 LIBTOOL!$LIBTOOL$ac_delim
32273 USE_NLS!$USE_NLS$ac_delim
32274 MSGFMT!$MSGFMT$ac_delim
32275 GMSGFMT!$GMSGFMT$ac_delim
32276 MSGFMT_015!$MSGFMT_015$ac_delim
32277 GMSGFMT_015!$GMSGFMT_015$ac_delim
32278 XGETTEXT!$XGETTEXT$ac_delim
32279 XGETTEXT_015!$XGETTEXT_015$ac_delim
32280 MSGMERGE!$MSGMERGE$ac_delim
32281 GLIBC2!$GLIBC2$ac_delim
32282 CFLAG_VISIBILITY!$CFLAG_VISIBILITY$ac_delim
32283 HAVE_VISIBILITY!$HAVE_VISIBILITY$ac_delim
32284 ALLOCA!$ALLOCA$ac_delim
32285 PRI_MACROS_BROKEN!$PRI_MACROS_BROKEN$ac_delim
32286 LIBPTH!$LIBPTH$ac_delim
32287 LTLIBPTH!$LTLIBPTH$ac_delim
32288 LIBTHREAD!$LIBTHREAD$ac_delim
32289 LTLIBTHREAD!$LTLIBTHREAD$ac_delim
32290 LIBMULTITHREAD!$LIBMULTITHREAD$ac_delim
32291 LTLIBMULTITHREAD!$LTLIBMULTITHREAD$ac_delim
32292 LIBICONV!$LIBICONV$ac_delim
32293 INTLBISON!$INTLBISON$ac_delim
32294 GLIBC21!$GLIBC21$ac_delim
32295 INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
32296 HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
32297 HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
32298 HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
32299 HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
32300 WOE32DLL!$WOE32DLL$ac_delim
32301 BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
32302 USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
32303 CATOBJEXT!$CATOBJEXT$ac_delim
32304 DATADIRNAME!$DATADIRNAME$ac_delim
32305 INSTOBJEXT!$INSTOBJEXT$ac_delim
32306 GENCAT!$GENCAT$ac_delim
32307 INTLOBJS!$INTLOBJS$ac_delim
32308 INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
32309 INTLLIBS!$INTLLIBS$ac_delim
32310 LIBINTL!$LIBINTL$ac_delim
32311 LTLIBINTL!$LTLIBINTL$ac_delim
32312 POSUB!$POSUB$ac_delim
32313 HAVE_PKG_CONFIG!$HAVE_PKG_CONFIG$ac_delim
32314 PKG_CONFIG!$PKG_CONFIG$ac_delim
32315 OGG_CFLAGS!$OGG_CFLAGS$ac_delim
32316 OGG_LIBS!$OGG_LIBS$ac_delim
32317 VORBIS_CFLAGS!$VORBIS_CFLAGS$ac_delim
32318 VORBIS_LIBS!$VORBIS_LIBS$ac_delim
32319 VORBISENC_LIBS!$VORBISENC_LIBS$ac_delim
32320 VORBISFILE_LIBS!$VORBISFILE_LIBS$ac_delim
32321 CURL_CFLAGS!$CURL_CFLAGS$ac_delim
32322 CURL_LIBS!$CURL_LIBS$ac_delim
32323 AO_CFLAGS!$AO_CFLAGS$ac_delim
32324 AO_LIBS!$AO_LIBS$ac_delim
32325 PTHREAD_CC!$PTHREAD_CC$ac_delim
32326 PTHREAD_LIBS!$PTHREAD_LIBS$ac_delim
32327 PTHREAD_CFLAGS!$PTHREAD_CFLAGS$ac_delim
32328 HAVE_LIBFLAC_TRUE!$HAVE_LIBFLAC_TRUE$ac_delim
32329 HAVE_LIBFLAC_FALSE!$HAVE_LIBFLAC_FALSE$ac_delim
32330 FLAC_LIBS!$FLAC_LIBS$ac_delim
32331 HAVE_LIBSPEEX_TRUE!$HAVE_LIBSPEEX_TRUE$ac_delim
32332 HAVE_LIBSPEEX_FALSE!$HAVE_LIBSPEEX_FALSE$ac_delim
32333 SPEEX_LIBS!$SPEEX_LIBS$ac_delim
32334 MANDIR!$MANDIR$ac_delim
32335 OPT_SUBDIRS!$OPT_SUBDIRS$ac_delim
32336 DEBUG!$DEBUG$ac_delim
32337 PROFILE!$PROFILE$ac_delim
32338 SOCKET_LIBS!$SOCKET_LIBS$ac_delim
32339 SHARE_CFLAGS!$SHARE_CFLAGS$ac_delim
32340 SHARE_LIBS!$SHARE_LIBS$ac_delim
32341 I18N_CFLAGS!$I18N_CFLAGS$ac_delim
32342 I18N_LIBS!$I18N_LIBS$ac_delim
32343 LIBOBJS!$LIBOBJS$ac_delim
32344 LTLIBOBJS!$LTLIBOBJS$ac_delim
32347 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 83; then
32349 elif $ac_last_try; then
32350 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
32351 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
32352 { (exit 1); exit 1; }; }
32354 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
32358 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
32359 if test -n "$ac_eof"; then
32360 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
32361 ac_eof
=`expr $ac_eof + 1`
32364 cat >>$CONFIG_STATUS <<_ACEOF
32365 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
32366 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
32369 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
32370 s/^/s,@/; s/!/@,|#_!!_#|/
32373 s/'"$ac_delim"'$/,g/; t
32375 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
32376 ' >>$CONFIG_STATUS <conf$
$subs.
sed
32377 rm -f conf$
$subs.
sed
32378 cat >>$CONFIG_STATUS <<_ACEOF
32385 # VPATH may cause trouble with some makes, so we remove $(srcdir),
32386 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
32387 # trailing colons and then remove the whole line if VPATH becomes empty
32388 # (actually we leave an empty line to preserve line numbers).
32389 if test "x$srcdir" = x.
; then
32390 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
32391 s/:*\$(srcdir):*/:/
32392 s/:*\${srcdir}:*/:/
32394 s/^\([^=]*=[ ]*\):*/\1/
32400 cat >>$CONFIG_STATUS <<\_ACEOF
32401 fi # test -n "$CONFIG_FILES"
32404 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS :C
$CONFIG_COMMANDS
32407 :[FHLC
]) ac_mode
=$ac_tag; continue;;
32409 case $ac_mode$ac_tag in
32411 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
32412 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
32413 { (exit 1); exit 1; }; };;
32414 :[FH
]-) ac_tag
=-:-;;
32415 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
32432 -) ac_f
="$tmp/stdin";;
32433 *) # Look for the file first in the build tree, then in the source tree
32434 # (if the path is not absolute). The absolute path cannot be DOS-style,
32435 # because $ac_f cannot contain `:'.
32439 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
32441 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
32442 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
32443 { (exit 1); exit 1; }; };;
32445 ac_file_inputs
="$ac_file_inputs $ac_f"
32448 # Let's still pretend it is `configure' which instantiates (i.e., don't
32449 # use $as_me), people would be surprised to read:
32450 # /* config.h. Generated by config.status. */
32451 configure_input
="Generated from "`IFS=:
32452 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
32453 if test x
"$ac_file" != x-
; then
32454 configure_input
="$ac_file. $configure_input"
32455 { echo "$as_me:$LINENO: creating $ac_file" >&5
32456 echo "$as_me: creating $ac_file" >&6;}
32460 *:-:* |
*:-) cat >"$tmp/stdin";;
32465 ac_dir
=`$as_dirname -- "$ac_file" ||
32466 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32467 X"$ac_file" : 'X\(//\)[^/]' \| \
32468 X"$ac_file" : 'X\(//\)$' \| \
32469 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
32471 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32475 /^X\(\/\/\)[^/].*/{
32490 -*) as_dir
=.
/$as_dir;;
32492 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
32496 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
32497 *) as_qdir
=$as_dir;;
32499 as_dirs
="'$as_qdir' $as_dirs"
32500 as_dir
=`$as_dirname -- "$as_dir" ||
32501 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32502 X"$as_dir" : 'X\(//\)[^/]' \| \
32503 X"$as_dir" : 'X\(//\)$' \| \
32504 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
32506 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32510 /^X\(\/\/\)[^/].*/{
32523 test -d "$as_dir" && break
32525 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
32526 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
32527 echo "$as_me: error: cannot create directory $as_dir" >&2;}
32528 { (exit 1); exit 1; }; }; }
32532 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
32534 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
32535 # A ".." for each directory in $ac_dir_suffix.
32536 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
32537 case $ac_top_builddir_sub in
32538 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
32539 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
32542 ac_abs_top_builddir
=$ac_pwd
32543 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
32544 # for backward compatibility:
32545 ac_top_builddir
=$ac_top_build_prefix
32548 .
) # We are building in place.
32550 ac_top_srcdir
=$ac_top_builddir_sub
32551 ac_abs_top_srcdir
=$ac_pwd ;;
32552 [\\/]* | ?
:[\\/]* ) # Absolute name.
32553 ac_srcdir
=$srcdir$ac_dir_suffix;
32554 ac_top_srcdir
=$srcdir
32555 ac_abs_top_srcdir
=$srcdir ;;
32556 *) # Relative name.
32557 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
32558 ac_top_srcdir
=$ac_top_build_prefix$srcdir
32559 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
32561 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
32571 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
32572 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
32574 ac_MKDIR_P
=$MKDIR_P
32576 [\\/$
]* | ?
:[\\/]* ) ;;
32577 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
32581 cat >>$CONFIG_STATUS <<\_ACEOF
32582 # If the template does not know about datarootdir, expand it.
32583 # FIXME: This hack should be removed a few years after 2.60.
32584 ac_datarootdir_hack
=; ac_datarootdir_seen
=
32586 case `sed -n '/datarootdir/ {
32595 ' $ac_file_inputs` in
32596 *datarootdir
*) ac_datarootdir_seen
=yes;;
32597 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
32598 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
32599 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
32601 cat >>$CONFIG_STATUS <<_ACEOF
32602 ac_datarootdir_hack='
32603 s&@datadir@&$datadir&g
32604 s&@docdir@&$docdir&g
32605 s&@infodir@&$infodir&g
32606 s&@localedir@&$localedir&g
32607 s&@mandir@&$mandir&g
32608 s&\\\${datarootdir}&$datarootdir&g' ;;
32612 # Neutralize VPATH when `$srcdir' = `.'.
32613 # Shell code in configure.ac might set extrasub.
32614 # FIXME: do we really want to maintain this feature?
32615 cat >>$CONFIG_STATUS <<_ACEOF
32619 cat >>$CONFIG_STATUS <<\_ACEOF
32621 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
32622 s
&@configure_input@
&$configure_input&;t t
32623 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
32624 s
&@srcdir@
&$ac_srcdir&;t t
32625 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
32626 s
&@top_srcdir@
&$ac_top_srcdir&;t t
32627 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
32628 s
&@builddir@
&$ac_builddir&;t t
32629 s
&@abs_builddir@
&$ac_abs_builddir&;t t
32630 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
32631 s
&@INSTALL@
&$ac_INSTALL&;t t
32632 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
32633 $ac_datarootdir_hack
32634 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
32636 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
32637 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
32638 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
32639 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
32640 which seems to be undefined. Please make sure it is defined." >&5
32641 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
32642 which seems to be undefined. Please make sure it is defined." >&2;}
32646 -) cat "$tmp/out"; rm -f "$tmp/out";;
32647 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
32656 # Transform confdefs.h into a sed script `conftest.defines', that
32657 # substitutes the proper values into config.h.in to produce config.h.
32658 rm -f conftest.defines conftest.
tail
32659 # First, append a space to every undef/define line, to ease matching.
32660 echo 's/$/ /' >conftest.defines
32661 # Then, protect against being on the right side of a sed subst, or in
32662 # an unquoted here document, in config.status. If some macros were
32663 # called several times there might be several #defines for the same
32664 # symbol, which is useless. But do not sort them, since the last
32665 # AC_DEFINE must be honored.
32666 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
32667 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
32668 # NAME is the cpp macro being defined, VALUE is the value it is being given.
32669 # PARAMS is the parameter list in the macro definition--in most cases, it's
32670 # just an empty string.
32671 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
32672 ac_dB
='\\)[ (].*,\\1define\\2'
32680 s/^[ ]*#[ ]*define[ ][ ]*//
32685 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
32686 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
32687 ' >>conftest.defines
32689 # Remove the space that was appended to ease matching.
32690 # Then replace #undef with comments. This is necessary, for
32691 # example, in the case of _POSIX_SOURCE, which is predefined and required
32692 # on some systems where configure will not decide to define it.
32693 # (The regexp can be short, since the line contains either #define or #undef.)
32695 s,^[ #]*u.*,/* & */,' >>conftest.defines
32697 # Break up conftest.defines:
32698 ac_max_sed_lines
=50
32700 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
32701 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
32702 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
32704 ac_in
='$ac_file_inputs'
32705 ac_out
='"$tmp/out1"'
32706 ac_nxt
='"$tmp/out2"'
32710 # Write a here document:
32711 cat >>$CONFIG_STATUS <<_ACEOF
32712 # First, check the format of the line:
32713 cat >"\$tmp/defines.sed" <<\\CEOF
32714 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
32715 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
32719 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
32721 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
32722 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
32723 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
32724 grep . conftest.
tail >/dev
/null ||
break
32725 rm -f conftest.defines
32726 mv conftest.
tail conftest.defines
32728 rm -f conftest.defines conftest.
tail
32730 echo "ac_result=$ac_in" >>$CONFIG_STATUS
32731 cat >>$CONFIG_STATUS <<\_ACEOF
32732 if test x
"$ac_file" != x-
; then
32733 echo "/* $configure_input */" >"$tmp/config.h"
32734 cat "$ac_result" >>"$tmp/config.h"
32735 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
32736 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
32737 echo "$as_me: $ac_file is unchanged" >&6;}
32740 mv "$tmp/config.h" $ac_file
32743 echo "/* $configure_input */"
32747 # Compute $ac_file's index in $config_headers.
32749 for _am_header
in $config_headers :; do
32750 case $_am_header in
32751 $ac_file |
$ac_file:* )
32754 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
32757 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
32758 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32759 X$ac_file : 'X\(//\)[^/]' \| \
32760 X$ac_file : 'X\(//\)$' \| \
32761 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
32763 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32767 /^X\(\/\/\)[^/].*/{
32779 s/.*/./; q'`/stamp-h
$_am_stamp_count
32782 :C
) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
32783 echo "$as_me: executing $ac_file commands" >&6;}
32788 case $ac_file$ac_mode in
32789 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
for mf
in $CONFIG_FILES; do
32790 # Strip MF so we end up with the name of the file.
32791 mf
=`echo "$mf" | sed -e 's/:.*$//'`
32792 # Check whether this is an Automake generated Makefile or not.
32793 # We used to match only the files named `Makefile.in', but
32794 # some people rename them; so instead we look at the file content.
32795 # Grep'ing the first line is not enough: some people post-process
32796 # each Makefile.in and add a new line on top of each file to say so.
32797 # Grep'ing the whole file is not good either: AIX grep has a line
32798 # limit of 2048, but all sed's we know have understand at least 4000.
32799 if sed 10q
"$mf" |
grep '^#.*generated by automake' > /dev
/null
2>&1; then
32800 dirpart
=`$as_dirname -- "$mf" ||
32801 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32802 X"$mf" : 'X\(//\)[^/]' \| \
32803 X"$mf" : 'X\(//\)$' \| \
32804 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
32806 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32810 /^X\(\/\/\)[^/].*/{
32826 # Extract the definition of DEPDIR, am__include, and am__quote
32827 # from the Makefile without running `make'.
32828 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
32829 test -z "$DEPDIR" && continue
32830 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
32831 test -z "am__include" && continue
32832 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
32833 # When using ansi2knr, U may be empty or an underscore; expand it
32834 U
=`sed -n 's/^U = //p' < "$mf"`
32835 # Find all dependency output files, they are included files with
32836 # $(DEPDIR) in their names. We invoke sed twice because it is the
32837 # simplest approach to changing $(DEPDIR) to its actual value in the
32839 for file in `sed -n "
32840 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
32841 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
32842 # Make sure the directory exists.
32843 test -f "$dirpart/$file" && continue
32844 fdir
=`$as_dirname -- "$file" ||
32845 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32846 X"$file" : 'X\(//\)[^/]' \| \
32847 X"$file" : 'X\(//\)$' \| \
32848 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
32850 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32854 /^X\(\/\/\)[^/].*/{
32867 { as_dir
=$dirpart/$fdir
32869 -*) as_dir
=.
/$as_dir;;
32871 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
32875 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
32876 *) as_qdir
=$as_dir;;
32878 as_dirs
="'$as_qdir' $as_dirs"
32879 as_dir
=`$as_dirname -- "$as_dir" ||
32880 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32881 X"$as_dir" : 'X\(//\)[^/]' \| \
32882 X"$as_dir" : 'X\(//\)$' \| \
32883 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
32885 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32889 /^X\(\/\/\)[^/].*/{
32902 test -d "$as_dir" && break
32904 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
32905 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
32906 echo "$as_me: error: cannot create directory $as_dir" >&2;}
32907 { (exit 1); exit 1; }; }; }
32908 # echo "creating $dirpart/$file"
32909 echo '# dummy' > "$dirpart/$file"
32913 "po-directories":C
)
32914 for ac_file
in $CONFIG_FILES; do
32915 # Support "outfile[:infile[:infile...]]"
32917 *:*) ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
32919 # PO directories have a Makefile.in generated from Makefile.in.in.
32920 case "$ac_file" in */Makefile.
in)
32921 # Adjust a relative srcdir.
32922 ac_dir
=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
32923 ac_dir_suffix
="/`echo "$ac_dir"|sed 's%^\./%%'`"
32924 ac_dots
=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
32925 # In autoconf-2.13 it is called $ac_given_srcdir.
32926 # In autoconf-2.50 it is called $srcdir.
32927 test -n "$ac_given_srcdir" || ac_given_srcdir
="$srcdir"
32928 case "$ac_given_srcdir" in
32929 .
) top_srcdir
=`echo $ac_dots|sed 's%/$%%'` ;;
32930 /*) top_srcdir
="$ac_given_srcdir" ;;
32931 *) top_srcdir
="$ac_dots$ac_given_srcdir" ;;
32933 # Treat a directory as a PO directory if and only if it has a
32934 # POTFILES.in file. This allows packages to have multiple PO
32935 # directories under different names or in different locations.
32936 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
32937 rm -f "$ac_dir/POTFILES"
32938 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" ||
echo "creating $ac_dir/POTFILES"
32939 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" |
sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," |
sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
32940 POMAKEFILEDEPS
="POTFILES.in"
32941 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
32942 # on $ac_dir but don't depend on user-specified configuration
32944 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
32945 # The LINGUAS file contains the set of available languages.
32946 if test -n "$OBSOLETE_ALL_LINGUAS"; then
32947 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" ||
echo "setting ALL_LINGUAS in configure.in is obsolete"
32949 ALL_LINGUAS_
=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
32950 # Hide the ALL_LINGUAS assigment from automake < 1.5.
32951 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
32952 POMAKEFILEDEPS
="$POMAKEFILEDEPS LINGUAS"
32954 # The set of available languages was given in configure.in.
32955 # Hide the ALL_LINGUAS assigment from automake < 1.5.
32956 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
32959 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
32960 # Compute UPDATEPOFILES
32961 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
32962 # Compute DUMMYPOFILES
32963 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
32965 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
32966 case "$ac_given_srcdir" in
32968 *) srcdirpre
='$(srcdir)/' ;;
32974 for lang
in $ALL_LINGUAS; do
32975 POFILES
="$POFILES $srcdirpre$lang.po"
32976 UPDATEPOFILES
="$UPDATEPOFILES $lang.po-update"
32977 DUMMYPOFILES
="$DUMMYPOFILES $lang.nop"
32978 GMOFILES
="$GMOFILES $srcdirpre$lang.gmo"
32980 # CATALOGS depends on both $ac_dir and the user's LINGUAS
32981 # environment variable.
32983 if test -n "$ALL_LINGUAS"; then
32984 for presentlang
in $ALL_LINGUAS; do
32986 if test "%UNSET%" != "$LINGUAS"; then
32987 desiredlanguages
="$LINGUAS"
32989 desiredlanguages
="$ALL_LINGUAS"
32991 for desiredlang
in $desiredlanguages; do
32992 # Use the presentlang catalog if desiredlang is
32993 # a. equal to presentlang, or
32994 # b. a variant of presentlang (because in this case,
32995 # presentlang can be used as a fallback for messages
32996 # which are not translated in the desiredlang catalog).
32997 case "$desiredlang" in
32998 "$presentlang"*) useit
=yes;;
33001 if test $useit = yes; then
33002 INST_LINGUAS
="$INST_LINGUAS $presentlang"
33007 if test -n "$INST_LINGUAS"; then
33008 for lang
in $INST_LINGUAS; do
33009 CATALOGS
="$CATALOGS $lang.gmo"
33012 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" ||
echo "creating $ac_dir/Makefile"
33013 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
33014 for f
in "$ac_given_srcdir/$ac_dir"/Rules-
*; do
33015 if test -f "$f"; then
33017 *.orig |
*.bak |
*~
) ;;
33018 *) cat "$f" >> "$ac_dir/Makefile" ;;
33031 { (exit 0); exit 0; }
33033 chmod +x
$CONFIG_STATUS
33034 ac_clean_files
=$ac_clean_files_save
33037 # configure is writing to config.log, and then calls config.status.
33038 # config.status does its own redirection, appending to config.log.
33039 # Unfortunately, on DOS this fails, as config.log is still kept open
33040 # by configure, so config.status won't be able to write to it; its
33041 # output is simply discarded. So we exec the FD to /dev/null,
33042 # effectively closing config.log, so it can be properly (re)opened and
33043 # appended to by config.status. When coming back to configure, we
33044 # need to make the FD available again.
33045 if test "$no_create" != yes; then
33047 ac_config_status_args
=
33048 test "$silent" = yes &&
33049 ac_config_status_args
="$ac_config_status_args --quiet"
33051 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
33053 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
33054 # would make configure fail if this is the last instruction.
33055 $ac_cs_success ||
{ (exit 1); exit 1; }
33059 if test "x$build_oggenc" = xyes
-a "x$have_libFLAC" != xyes
; then
33060 { echo "$as_me:$LINENO: WARNING: FLAC and/or OggFLAC libraries or headers missing, oggenc
33061 will NOT be built with FLAC read support." >&5
33062 echo "$as_me: WARNING: FLAC and/or OggFLAC libraries or headers missing, oggenc
33063 will NOT be built with FLAC read support." >&2;}
33066 if test "x$build_ogg123" != xyes
; then
33067 { echo "$as_me:$LINENO: WARNING: Prerequisites for ogg123 not met, ogg123 will be skipped.
33068 Please ensure that you have POSIX threads, libao, and (optionally) libcurl
33069 libraries and headers present if you would like to build ogg123." >&5
33070 echo "$as_me: WARNING: Prerequisites for ogg123 not met, ogg123 will be skipped.
33071 Please ensure that you have POSIX threads, libao, and (optionally) libcurl
33072 libraries and headers present if you would like to build ogg123." >&2;}
33074 if test "x$have_libFLAC" != xyes
; then
33075 { echo "$as_me:$LINENO: WARNING: FLAC and/or OggFLAC libraries or headers missing, ogg123
33076 will NOT be built with FLAC read support." >&5
33077 echo "$as_me: WARNING: FLAC and/or OggFLAC libraries or headers missing, ogg123
33078 will NOT be built with FLAC read support." >&2;}
33080 if test "x$have_libspeex" != xyes
; then
33081 { echo "$as_me:$LINENO: WARNING: Speex libraries and/or headers missing, ogg123
33082 will NOT be built with Speex read support." >&5
33083 echo "$as_me: WARNING: Speex libraries and/or headers missing, ogg123
33084 will NOT be built with Speex read support." >&2;}
33086 if test "x$HAVE_CURL" != xyes
; then
33087 { echo "$as_me:$LINENO: WARNING: curl libraries and/or headers missing, ogg123
33088 will NOT be built with http support." >&5
33089 echo "$as_me: WARNING: curl libraries and/or headers missing, ogg123
33090 will NOT be built with http support." >&2;}