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
="README"
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>
779 program_transform_name
896 ac_precious_vars
='build_alias
914 # Initialize some variables set by options.
916 ac_init_version
=false
917 # The variables have the same names as the options, with
918 # dashes changed to underlines.
926 program_transform_name
=s
,x
,x
,
934 # Installation directory options.
935 # These are left unexpanded so users can "make install exec_prefix=/foo"
936 # and all the variables that are supposed to be based on exec_prefix
937 # by default will actually change.
938 # Use braces instead of parens because sh, perl, etc. also accept them.
939 # (The list follows the same order as the GNU Coding Standards.)
940 bindir
='${exec_prefix}/bin'
941 sbindir
='${exec_prefix}/sbin'
942 libexecdir
='${exec_prefix}/libexec'
943 datarootdir
='${prefix}/share'
944 datadir
='${datarootdir}'
945 sysconfdir
='${prefix}/etc'
946 sharedstatedir
='${prefix}/com'
947 localstatedir
='${prefix}/var'
948 includedir
='${prefix}/include'
949 oldincludedir
='/usr/include'
950 docdir
='${datarootdir}/doc/${PACKAGE}'
951 infodir
='${datarootdir}/info'
956 libdir
='${exec_prefix}/lib'
957 localedir
='${datarootdir}/locale'
958 mandir
='${datarootdir}/man'
964 # If the previous option needs an argument, assign it.
965 if test -n "$ac_prev"; then
966 eval $ac_prev=\
$ac_option
972 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
976 # Accept the important Cygnus configure options, so we can diagnose typos.
978 case $ac_dashdash$ac_option in
982 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
984 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
987 -build |
--build |
--buil |
--bui |
--bu)
988 ac_prev
=build_alias
;;
989 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
990 build_alias
=$ac_optarg ;;
992 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
993 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
994 ac_prev
=cache_file
;;
995 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
996 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
997 cache_file
=$ac_optarg ;;
1000 cache_file
=config.cache
;;
1002 -datadir |
--datadir |
--datadi |
--datad)
1004 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1005 datadir
=$ac_optarg ;;
1007 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1008 |
--dataroo |
--dataro |
--datar)
1009 ac_prev
=datarootdir
;;
1010 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1011 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1012 datarootdir
=$ac_optarg ;;
1014 -disable-* |
--disable-*)
1015 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1016 # Reject names that are not valid shell variable names.
1017 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1018 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1019 { (exit 1); exit 1; }; }
1020 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
1021 eval enable_
$ac_feature=no
;;
1023 -docdir |
--docdir |
--docdi |
--doc |
--do)
1025 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1026 docdir
=$ac_optarg ;;
1028 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1030 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1031 dvidir
=$ac_optarg ;;
1033 -enable-* |
--enable-*)
1034 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1035 # Reject names that are not valid shell variable names.
1036 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1037 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1038 { (exit 1); exit 1; }; }
1039 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
1040 eval enable_
$ac_feature=\
$ac_optarg ;;
1042 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1043 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1044 |
--exec |
--exe |
--ex)
1045 ac_prev
=exec_prefix
;;
1046 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1047 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1048 |
--exec=* |
--exe=* |
--ex=*)
1049 exec_prefix
=$ac_optarg ;;
1051 -gas |
--gas |
--ga |
--g)
1052 # Obsolete; use --with-gas.
1055 -help |
--help |
--hel |
--he |
-h)
1056 ac_init_help
=long
;;
1057 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1058 ac_init_help
=recursive
;;
1059 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1060 ac_init_help
=short
;;
1062 -host |
--host |
--hos |
--ho)
1063 ac_prev
=host_alias
;;
1064 -host=* |
--host=* |
--hos=* |
--ho=*)
1065 host_alias
=$ac_optarg ;;
1067 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1069 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1071 htmldir
=$ac_optarg ;;
1073 -includedir |
--includedir |
--includedi |
--included |
--include \
1074 |
--includ |
--inclu |
--incl |
--inc)
1075 ac_prev
=includedir
;;
1076 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1077 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1078 includedir
=$ac_optarg ;;
1080 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1082 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1083 infodir
=$ac_optarg ;;
1085 -libdir |
--libdir |
--libdi |
--libd)
1087 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1088 libdir
=$ac_optarg ;;
1090 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1091 |
--libexe |
--libex |
--libe)
1092 ac_prev
=libexecdir
;;
1093 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1094 |
--libexe=* |
--libex=* |
--libe=*)
1095 libexecdir
=$ac_optarg ;;
1097 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1098 ac_prev
=localedir
;;
1099 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1100 localedir
=$ac_optarg ;;
1102 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1103 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1104 ac_prev
=localstatedir
;;
1105 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1106 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1107 localstatedir
=$ac_optarg ;;
1109 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1111 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1112 mandir
=$ac_optarg ;;
1114 -nfp |
--nfp |
--nf)
1115 # Obsolete; use --without-fp.
1118 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1119 |
--no-cr |
--no-c |
-n)
1122 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1123 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1126 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1127 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1128 |
--oldin |
--oldi |
--old |
--ol |
--o)
1129 ac_prev
=oldincludedir
;;
1130 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1131 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1132 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1133 oldincludedir
=$ac_optarg ;;
1135 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1137 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1138 prefix
=$ac_optarg ;;
1140 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1141 |
--program-pre |
--program-pr |
--program-p)
1142 ac_prev
=program_prefix
;;
1143 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1144 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1145 program_prefix
=$ac_optarg ;;
1147 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1148 |
--program-suf |
--program-su |
--program-s)
1149 ac_prev
=program_suffix
;;
1150 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1151 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1152 program_suffix
=$ac_optarg ;;
1154 -program-transform-name |
--program-transform-name \
1155 |
--program-transform-nam |
--program-transform-na \
1156 |
--program-transform-n |
--program-transform- \
1157 |
--program-transform |
--program-transfor \
1158 |
--program-transfo |
--program-transf \
1159 |
--program-trans |
--program-tran \
1160 |
--progr-tra |
--program-tr |
--program-t)
1161 ac_prev
=program_transform_name
;;
1162 -program-transform-name=* |
--program-transform-name=* \
1163 |
--program-transform-nam=* |
--program-transform-na=* \
1164 |
--program-transform-n=* |
--program-transform-=* \
1165 |
--program-transform=* |
--program-transfor=* \
1166 |
--program-transfo=* |
--program-transf=* \
1167 |
--program-trans=* |
--program-tran=* \
1168 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1169 program_transform_name
=$ac_optarg ;;
1171 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1173 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1174 pdfdir
=$ac_optarg ;;
1176 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1178 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1181 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1182 |
-silent |
--silent |
--silen |
--sile |
--sil)
1185 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1187 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1189 sbindir
=$ac_optarg ;;
1191 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1192 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1193 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1195 ac_prev
=sharedstatedir
;;
1196 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1197 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1198 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1200 sharedstatedir
=$ac_optarg ;;
1202 -site |
--site |
--sit)
1204 -site=* |
--site=* |
--sit=*)
1207 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1209 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1210 srcdir
=$ac_optarg ;;
1212 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1213 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1214 ac_prev
=sysconfdir
;;
1215 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1216 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1217 sysconfdir
=$ac_optarg ;;
1219 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1220 ac_prev
=target_alias
;;
1221 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1222 target_alias
=$ac_optarg ;;
1224 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1227 -version |
--version |
--versio |
--versi |
--vers |
-V)
1228 ac_init_version
=: ;;
1231 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1232 # Reject names that are not valid shell variable names.
1233 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1234 { echo "$as_me: error: invalid package name: $ac_package" >&2
1235 { (exit 1); exit 1; }; }
1236 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1237 eval with_
$ac_package=\
$ac_optarg ;;
1239 -without-* |
--without-*)
1240 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1241 # Reject names that are not valid shell variable names.
1242 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1243 { echo "$as_me: error: invalid package name: $ac_package" >&2
1244 { (exit 1); exit 1; }; }
1245 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1246 eval with_
$ac_package=no
;;
1249 # Obsolete; use --with-x.
1252 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1253 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1254 ac_prev
=x_includes
;;
1255 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1256 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1257 x_includes
=$ac_optarg ;;
1259 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1260 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1261 ac_prev
=x_libraries
;;
1262 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1263 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1264 x_libraries
=$ac_optarg ;;
1266 -*) { echo "$as_me: error: unrecognized option: $ac_option
1267 Try \`$0 --help' for more information." >&2
1268 { (exit 1); exit 1; }; }
1272 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1273 # Reject names that are not valid shell variable names.
1274 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1275 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1276 { (exit 1); exit 1; }; }
1277 eval $ac_envvar=\
$ac_optarg
1278 export $ac_envvar ;;
1281 # FIXME: should be removed in autoconf 3.0.
1282 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1283 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1284 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1285 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1291 if test -n "$ac_prev"; then
1292 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1293 { echo "$as_me: error: missing argument to $ac_option" >&2
1294 { (exit 1); exit 1; }; }
1297 # Be sure to have absolute directory names.
1298 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1299 datadir sysconfdir sharedstatedir localstatedir includedir \
1300 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1301 libdir localedir mandir
1303 eval ac_val
=\$
$ac_var
1305 [\\/$
]* | ?
:[\\/]* ) continue;;
1306 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1308 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1309 { (exit 1); exit 1; }; }
1312 # There might be people who depend on the old broken behavior: `$host'
1313 # used to hold the argument of --host etc.
1314 # FIXME: To remove some day.
1317 target
=$target_alias
1319 # FIXME: To remove some day.
1320 if test "x$host_alias" != x
; then
1321 if test "x$build_alias" = x
; then
1322 cross_compiling
=maybe
1323 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1324 If a cross compiler is detected then cross compile mode will be used." >&2
1325 elif test "x$build_alias" != "x$host_alias"; then
1331 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1333 test "$silent" = yes && exec 6>/dev
/null
1336 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1337 ac_ls_di
=`ls -di .` &&
1338 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1339 { echo "$as_me: error: Working directory cannot be determined" >&2
1340 { (exit 1); exit 1; }; }
1341 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1342 { echo "$as_me: error: pwd does not report name of working directory" >&2
1343 { (exit 1); exit 1; }; }
1346 # Find the source files, if location was not specified.
1347 if test -z "$srcdir"; then
1348 ac_srcdir_defaulted
=yes
1349 # Try the directory containing this script, then the parent directory.
1350 ac_confdir
=`$as_dirname -- "$0" ||
1351 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1352 X"$0" : 'X\(//\)[^/]' \| \
1353 X"$0" : 'X\(//\)$' \| \
1354 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1356 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1374 if test ! -r "$srcdir/$ac_unique_file"; then
1378 ac_srcdir_defaulted
=no
1380 if test ! -r "$srcdir/$ac_unique_file"; then
1381 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1382 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1383 { (exit 1); exit 1; }; }
1385 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1387 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1388 { (exit 1); exit 1; }; }
1390 # When building in place, set srcdir=.
1391 if test "$ac_abs_confdir" = "$ac_pwd"; then
1394 # Remove unnecessary trailing slashes from srcdir.
1395 # Double slashes in file names in object file debugging info
1396 # mess up M-x gdb in Emacs.
1398 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1400 for ac_var
in $ac_precious_vars; do
1401 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1402 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1403 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1404 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1408 # Report the --help message.
1410 if test "$ac_init_help" = "long"; then
1411 # Omit some internal or obsolete options to make the list less imposing.
1412 # This message is too long to be a string in the A/UX 3.1 sh.
1414 \`configure' configures this package to adapt to many kinds of systems.
1416 Usage: $0 [OPTION]... [VAR=VALUE]...
1418 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1419 VAR=VALUE. See below for descriptions of some of the useful variables.
1421 Defaults for the options are specified in brackets.
1424 -h, --help display this help and exit
1425 --help=short display options specific to this package
1426 --help=recursive display the short help of all the included packages
1427 -V, --version display version information and exit
1428 -q, --quiet, --silent do not print \`checking...' messages
1429 --cache-file=FILE cache test results in FILE [disabled]
1430 -C, --config-cache alias for \`--cache-file=config.cache'
1431 -n, --no-create do not create output files
1432 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1434 Installation directories:
1435 --prefix=PREFIX install architecture-independent files in PREFIX
1436 [$ac_default_prefix]
1437 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1440 By default, \`make install' will install all the files in
1441 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1442 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1443 for instance \`--prefix=\$HOME'.
1445 For better control, use the options below.
1447 Fine tuning of the installation directories:
1448 --bindir=DIR user executables [EPREFIX/bin]
1449 --sbindir=DIR system admin executables [EPREFIX/sbin]
1450 --libexecdir=DIR program executables [EPREFIX/libexec]
1451 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1452 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1453 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1454 --libdir=DIR object code libraries [EPREFIX/lib]
1455 --includedir=DIR C header files [PREFIX/include]
1456 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1457 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1458 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1459 --infodir=DIR info documentation [DATAROOTDIR/info]
1460 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1461 --mandir=DIR man documentation [DATAROOTDIR/man]
1462 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1463 --htmldir=DIR html documentation [DOCDIR]
1464 --dvidir=DIR dvi documentation [DOCDIR]
1465 --pdfdir=DIR pdf documentation [DOCDIR]
1466 --psdir=DIR ps documentation [DOCDIR]
1472 --x-includes=DIR X include files are
in DIR
1473 --x-libraries=DIR X library files are
in DIR
1476 --build=BUILD configure
for building on BUILD
[guessed
]
1477 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1481 if test -n "$ac_init_help"; then
1486 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1487 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1488 --enable-shared[=PKGS
] build shared libraries
[default
=yes]
1489 --enable-static[=PKGS
] build static libraries
[default
=yes]
1490 --enable-fast-install[=PKGS
]
1491 optimize
for fast installation
[default
=yes]
1492 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1493 --enable-libc Use the system C library
[default
=yes]
1494 --enable-audio Enable the audio subsystem
[default
=yes]
1495 --enable-video Enable the video subsystem
[default
=yes]
1496 --enable-events Enable the events subsystem
[default
=yes]
1497 --enable-joystick Enable the joystick subsystem
[default
=yes]
1498 --enable-cdrom Enable the cdrom subsystem
[default
=yes]
1499 --enable-threads Enable the threading subsystem
[default
=yes]
1500 --enable-timers Enable the timer subsystem
[default
=yes]
1501 --enable-file Enable the
file subsystem
[default
=yes]
1502 --enable-loadso Enable the shared object loading subsystem
1504 --enable-cpuinfo Enable the cpuinfo subsystem
[default
=yes]
1505 --enable-assembly Enable assembly routines
[default
=yes]
1506 --enable-oss support the OSS audio API
[default
=yes]
1507 --enable-alsa support the ALSA audio API
[default
=yes]
1508 --disable-alsatest Do not try to compile and run a
test Alsa program
1509 --enable-alsa-shared dynamically load ALSA audio support
[default
=yes]
1510 --enable-esd support the Enlightened Sound Daemon
[default
=yes]
1511 --disable-esdtest Do not try to compile and run a
test ESD program
1512 --enable-esd-shared dynamically load ESD audio support
[default
=yes]
1513 --enable-pulseaudio use PulseAudio
[default
=yes]
1514 --enable-pulseaudio-shared
1515 dynamically load PulseAudio support
[default
=yes]
1516 --enable-arts support the Analog Real Time Synthesizer
1518 --enable-arts-shared dynamically load aRts audio support
[default
=yes]
1519 --enable-nas support the NAS audio API
[default
=yes]
1520 --enable-diskaudio support the disk writer audio driver
[default
=yes]
1521 --enable-dummyaudio support the dummy audio driver
[default
=yes]
1522 --enable-mintaudio support Atari audio driver
[default
=yes]
1523 --enable-nasm use nasm assembly blitters on x86
[default
=yes]
1524 --enable-altivec use altivec assembly blitters on PPC
[default
=yes]
1525 --enable-ipod configure SDL to work with iPodLinux
1526 default
=yes, on
, arm-elf
1527 --enable-video-nanox use nanox video driver
[default
=no
]
1528 --enable-nanox-debug print debug messages
[default
=no
]
1529 --enable-nanox-share-memory
1530 use share memory
[default
=no
]
1531 --enable-nanox-direct-fb
1532 use direct framebuffer access
[default
=no
]
1533 --enable-video-x11 use X11 video driver
[default
=yes]
1534 --enable-x11-shared dynamically load X11 support
[default
=maybe
]
1535 --enable-dga allow use of X11 DGA code
[default
=yes]
1536 --enable-video-dga use DGA
2.0 video driver
[default
=yes]
1537 --enable-video-x11-dgamouse
1538 use X11 DGA
for mouse events
[default
=yes]
1539 --enable-video-x11-vm use X11 VM extension
for fullscreen
[default
=yes]
1540 --enable-video-x11-xv use X11 XvImage extension
for video
[default
=yes]
1541 --enable-video-x11-xinerama
1542 enable X11 Xinerama support
[default
=yes]
1543 --enable-video-x11-xme enable Xi Graphics XME
for fullscreen
1545 --enable-video-x11-xrandr
1546 enable X11 Xrandr extension
for fullscreen
1548 --enable-video-x11-dpms enable X11 DPMS extension
[default
=yes]
1549 --enable-video-photon use QNX Photon video driver
[default
=yes]
1550 --enable-video-carbon use Carbon
/QuickDraw video driver
[default
=no
]
1551 --enable-video-cocoa use Cocoa
/Quartz video driver
[default
=yes]
1552 --enable-video-fbcon use framebuffer console video driver
[default
=yes]
1553 --enable-video-directfb use DirectFB video driver
[default
=yes]
1554 --enable-video-ps2gs use PlayStation
2 GS video driver
[default
=yes]
1555 --enable-video-ggi use GGI video driver
[default
=no
]
1556 --enable-video-svga use SVGAlib video driver
[default
=yes]
1557 --enable-video-vgl use VGL video driver
[default
=yes]
1558 --enable-video-wscons use wscons video driver
[default
=yes]
1559 --enable-video-aalib use AAlib video driver
[default
=no
]
1560 --enable-video-qtopia use Qtopia video driver
[default
=no
]
1561 --enable-video-picogui use PicoGUI video driver
[default
=no
]
1562 --enable-video-xbios use Atari Xbios video driver
[default
=yes]
1563 --enable-video-gem use Atari Gem video driver
[default
=yes]
1564 --enable-video-dummy use dummy video driver
[default
=yes]
1565 --enable-video-opengl include OpenGL context creation
[default
=yes]
1566 --enable-osmesa-shared dynamically load OSMesa OpenGL support
1568 --enable-input-events use Linux
2.4 unified input interface
1570 --enable-input-tslib use the Touchscreen library
for input
1572 --enable-pth use GNU pth library
for multi-threading
1574 --enable-pthreads use POSIX threads
for multi-threading
1576 --enable-pthread-sem use pthread semaphores
[default
=yes]
1577 --enable-stdio-redirect Redirect STDIO to files on Win32
[default
=yes]
1578 --enable-directx use DirectX
for Win32 audio
/video
[default
=yes]
1579 --enable-sdl-dlopen use dlopen
for shared object loading
[default
=yes]
1580 --enable-atari-ldg use Atari LDG
for shared object loading
1582 --enable-clock_gettime use clock_gettime
() instead of gettimeofday
() on
1584 --enable-rpath use an rpath when linking SDL
[default
=yes]
1587 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1588 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1589 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1590 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1592 --with-tags[=TAGS
] include additional configurations
[automatic
]
1593 --with-alsa-prefix=PFX Prefix where Alsa library is installed
(optional
)
1594 --with-alsa-inc-prefix=PFX Prefix where include libraries are
(optional
)
1595 --with-esd-prefix=PFX Prefix where ESD is installed
(optional
)
1596 --with-esd-exec-prefix=PFX Exec prefix where ESD is installed
(optional
)
1597 --with-x use the X Window System
1599 Some influential environment variables
:
1600 CC C compiler
command
1601 CFLAGS C compiler flags
1602 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1603 nonstandard directory
<lib dir
>
1604 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1605 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1606 you have headers
in a nonstandard directory
<include dir
>
1608 CXX C
++ compiler
command
1609 CXXFLAGS C
++ compiler flags
1610 CXXCPP C
++ preprocessor
1611 F77 Fortran
77 compiler
command
1612 FFLAGS Fortran
77 compiler flags
1613 XMKMF Path to xmkmf
, Makefile generator
for X Window System
1615 Use these variables to override the choices made by
`configure' or to help
1616 it to find libraries and programs with nonstandard names/locations.
1622 if test "$ac_init_help" = "recursive"; then
1623 # If there are subdirs, report their specific --help.
1624 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1625 test -d "$ac_dir" || continue
1629 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1631 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
1632 # A ".." for each directory in $ac_dir_suffix.
1633 ac_top_builddir_sub=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,/..,g;s,/,,'`
1634 case $ac_top_builddir_sub in
1635 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1636 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1639 ac_abs_top_builddir=$ac_pwd
1640 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1641 # for backward compatibility:
1642 ac_top_builddir=$ac_top_build_prefix
1645 .) # We are building in place.
1647 ac_top_srcdir=$ac_top_builddir_sub
1648 ac_abs_top_srcdir=$ac_pwd ;;
1649 [\\/]* | ?:[\\/]* ) # Absolute name.
1650 ac_srcdir=$srcdir$ac_dir_suffix;
1651 ac_top_srcdir=$srcdir
1652 ac_abs_top_srcdir=$srcdir ;;
1654 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1655 ac_top_srcdir=$ac_top_build_prefix$srcdir
1656 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1658 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1660 cd "$ac_dir" || { ac_status=$?; continue; }
1661 # Check for guested configure.
1662 if test -f "$ac_srcdir/configure.gnu"; then
1664 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1665 elif test -f "$ac_srcdir/configure"; then
1667 $SHELL "$ac_srcdir/configure" --help=recursive
1669 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1671 cd "$ac_pwd" || { ac_status=$?; break; }
1675 test -n "$ac_init_help" && exit $ac_status
1676 if $ac_init_version; then
1679 generated by GNU Autoconf 2.61
1681 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1682 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1683 This configure script is free software; the Free Software Foundation
1684 gives unlimited permission to copy, distribute and modify it.
1688 cat >config.log <<_ACEOF
1689 This file contains any messages produced by compilers while
1690 running configure, to aid debugging if configure makes a mistake.
1692 It was created by $as_me, which was
1693 generated by GNU Autoconf 2.61. Invocation command line was
1705 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1706 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1707 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1708 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1709 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1711 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1712 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1714 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1715 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1716 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1717 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1718 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1719 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1720 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1728 test -z "$as_dir" && as_dir=.
1729 echo "PATH: $as_dir"
1745 # Keep a trace of the command line.
1746 # Strip out --no-create and --no-recursion so they do not pile up.
1747 # Strip out --silent because we don't want to record it for future runs.
1748 # Also quote any args containing shell meta-characters.
1749 # Make two passes to allow for proper duplicate-argument suppression.
1753 ac_must_keep_next=false
1759 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1760 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1761 | -silent | --silent | --silen | --sile | --sil)
1764 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1767 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1769 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1770 if test $ac_must_keep_next = true; then
1771 ac_must_keep_next=false # Got value, back to normal.
1774 *=* | --config-cache | -C | -disable-* | --disable-* \
1775 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1776 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1777 | -with-* | --with-* | -without-* | --without-* | --x)
1778 case "$ac_configure_args0 " in
1779 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1782 -* ) ac_must_keep_next=true ;;
1785 ac_configure_args="$ac_configure_args '$ac_arg'"
1790 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1791 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1793 # When interrupted or exit'd, cleanup temporary files, and complete
1794 # config.log. We remove comments because anyway the quotes in there
1795 # would cause problems or look ugly.
1796 # WARNING: Use '\'' to represent an apostrophe within the trap.
1797 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1798 trap 'exit_status=$?
1799 # Save into config.log some information that might help in debugging.
1804 ## ---------------- ##
1805 ## Cache variables. ##
1806 ## ---------------- ##
1809 # The following way of writing the cache mishandles newlines in values,
1811 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1812 eval ac_val=\$$ac_var
1816 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1817 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1820 _ | IFS | as_nl) ;; #(
1821 *) $as_unset $ac_var ;;
1826 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1827 *${as_nl}ac_space=\ *)
1829 "s/'\''/'\''\\\\'\'''\''/g;
1830 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1833 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1841 ## ----------------- ##
1842 ## Output variables. ##
1843 ## ----------------- ##
1846 for ac_var in $ac_subst_vars
1848 eval ac_val=\$$ac_var
1850 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1852 echo "$ac_var='\''$ac_val'\''"
1856 if test -n "$ac_subst_files"; then
1858 ## ------------------- ##
1859 ## File substitutions. ##
1860 ## ------------------- ##
1863 for ac_var in $ac_subst_files
1865 eval ac_val=\$$ac_var
1867 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1869 echo "$ac_var='\''$ac_val'\''"
1874 if test -s confdefs.h; then
1884 test "$ac_signal" != 0 &&
1885 echo "$as_me: caught signal $ac_signal"
1886 echo "$as_me: exit $exit_status"
1888 rm -f core *.core core.conftest.* &&
1889 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1892 for ac_signal in 1 2 13 15; do
1893 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1897 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1898 rm -f -r conftest* confdefs.h
1900 # Predefined preprocessor variables.
1902 cat >>confdefs.h <<_ACEOF
1903 #define PACKAGE_NAME "$PACKAGE_NAME"
1907 cat >>confdefs.h <<_ACEOF
1908 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1912 cat >>confdefs.h <<_ACEOF
1913 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1917 cat >>confdefs.h <<_ACEOF
1918 #define PACKAGE_STRING "$PACKAGE_STRING"
1922 cat >>confdefs.h <<_ACEOF
1923 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1927 # Let the site file select an alternate cache file if it wants to.
1928 # Prefer explicitly selected file to automatically selected ones.
1929 if test -n "$CONFIG_SITE"; then
1930 set x "$CONFIG_SITE"
1931 elif test "x$prefix" != xNONE; then
1932 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1934 set x "$ac_default_prefix/share/config.site" \
1935 "$ac_default_prefix/etc/config.site"
1940 if test -r "$ac_site_file"; then
1941 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1942 echo "$as_me: loading site script $ac_site_file" >&6;}
1943 sed 's/^/| /' "$ac_site_file" >&5
1948 if test -r "$cache_file"; then
1949 # Some versions of bash will fail to source /dev/null (special
1950 # files actually), so we avoid doing that.
1951 if test -f "$cache_file"; then
1952 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1953 echo "$as_me: loading cache $cache_file" >&6;}
1955 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1956 *) . "./$cache_file";;
1960 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1961 echo "$as_me: creating cache $cache_file" >&6;}
1965 # Check that the precious variables saved in the cache have kept the same
1967 ac_cache_corrupted=false
1968 for ac_var in $ac_precious_vars; do
1969 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1970 eval ac_new_set=\$ac_env_${ac_var}_set
1971 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1972 eval ac_new_val=\$ac_env_${ac_var}_value
1973 case $ac_old_set,$ac_new_set in
1975 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1976 echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1977 ac_cache_corrupted=: ;;
1979 { echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1980 echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1981 ac_cache_corrupted=: ;;
1984 if test "x$ac_old_val" != "x$ac_new_val"; then
1985 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1986 echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1987 { echo "$as_me:$LINENO: former value
: $ac_old_val" >&5
1988 echo "$as_me: former value
: $ac_old_val" >&2;}
1989 { echo "$as_me:$LINENO: current value
: $ac_new_val" >&5
1990 echo "$as_me: current value
: $ac_new_val" >&2;}
1991 ac_cache_corrupted=:
1994 # Pass precious variables to config.status.
1995 if test "$ac_new_set" = set; then
1997 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1998 *) ac_arg=$ac_var=$ac_new_val ;;
2000 case " $ac_configure_args " in
2001 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2002 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2006 if $ac_cache_corrupted; then
2007 { echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
2008 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
2009 { { echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
2010 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
2011 { (exit 1); exit 1; }; }
2031 ac_cpp='$CPP $CPPFLAGS'
2032 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2033 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2034 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2037 ac_config_headers="$ac_config_headers include/SDL_config.h"
2040 cat >>confdefs.h <<\_ACEOF
2041 #define _GNU_SOURCE 1
2048 # Edit include/SDL/SDL_version.h and change the version, then:
2049 # SDL_MICRO_VERSION += 1;
2050 # SDL_INTERFACE_AGE += 1;
2051 # SDL_BINARY_AGE += 1;
2052 # if any functions have been added, set SDL_INTERFACE_AGE to 0.
2053 # if backwards compatibility has been broken,
2054 # set SDL_BINARY_AGE and SDL_INTERFACE_AGE to 0.
2058 SDL_MICRO_VERSION=13
2061 SDL_VERSION=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION.$SDL_MICRO_VERSION
2070 # libtool versioning
2071 LT_RELEASE=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION
2072 LT_CURRENT=`expr $SDL_MICRO_VERSION - $SDL_INTERFACE_AGE`
2073 LT_REVISION=$SDL_INTERFACE_AGE
2074 LT_AGE=`expr $SDL_BINARY_AGE - $SDL_INTERFACE_AGE`
2082 for ac_dir in $srcdir/build-scripts; do
2083 if test -f "$ac_dir/install-sh"; then
2085 ac_install_sh="$ac_aux_dir/install-sh -c"
2087 elif test -f "$ac_dir/install.sh"; then
2089 ac_install_sh="$ac_aux_dir/install.sh -c"
2091 elif test -f "$ac_dir/shtool"; then
2093 ac_install_sh="$ac_aux_dir/shtool install -c"
2097 if test -z "$ac_aux_dir"; then
2098 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir/build-scripts" >&5
2099 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir/build-scripts" >&2;}
2100 { (exit 1); exit 1; }; }
2103 # These three variables are undocumented and unsupported,
2104 # and are intended to be withdrawn in a future Autoconf release.
2105 # They can cause serious problems if a builder's source tree is in a directory
2106 # whose full name contains unusual characters.
2107 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2108 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2109 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2112 # Make sure we can run config.sub.
2113 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2114 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2115 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2116 { (exit 1); exit 1; }; }
2118 { echo "$as_me:$LINENO: checking build system type" >&5
2119 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2120 if test "${ac_cv_build+set}" = set; then
2121 echo $ECHO_N "(cached) $ECHO_C" >&6
2123 ac_build_alias=$build_alias
2124 test "x$ac_build_alias" = x &&
2125 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2126 test "x$ac_build_alias" = x &&
2127 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2128 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2129 { (exit 1); exit 1; }; }
2130 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2131 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2132 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2133 { (exit 1); exit 1; }; }
2136 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2137 echo "${ECHO_T}$ac_cv_build" >&6; }
2138 case $ac_cv_build in
2140 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2141 echo "$as_me: error: invalid value of canonical build" >&2;}
2142 { (exit 1); exit 1; }; };;
2145 ac_save_IFS=$IFS; IFS='-'
2151 # Remember, the first character of IFS is used to create $*,
2152 # except with old shells:
2155 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
2158 { echo "$as_me:$LINENO: checking host system type" >&5
2159 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2160 if test "${ac_cv_host+set}" = set; then
2161 echo $ECHO_N "(cached) $ECHO_C" >&6
2163 if test "x$host_alias" = x; then
2164 ac_cv_host=$ac_cv_build
2166 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2167 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2168 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2169 { (exit 1); exit 1; }; }
2173 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2174 echo "${ECHO_T}$ac_cv_host" >&6; }
2177 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2178 echo "$as_me: error: invalid value of canonical host" >&2;}
2179 { (exit 1); exit 1; }; };;
2182 ac_save_IFS=$IFS; IFS='-'
2188 # Remember, the first character of IFS is used to create $*,
2189 # except with old shells:
2192 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
2196 ac_cpp='$CPP $CPPFLAGS'
2197 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2198 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2199 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2200 if test -n "$ac_tool_prefix"; then
2201 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2202 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2203 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2204 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2205 if test "${ac_cv_prog_CC+set}" = set; then
2206 echo $ECHO_N "(cached) $ECHO_C" >&6
2208 if test -n "$CC"; then
2209 ac_cv_prog_CC="$CC" # Let the user override the test.
2211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2215 test -z "$as_dir" && as_dir=.
2216 for ac_exec_ext in '' $ac_executable_extensions; do
2217 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2218 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2219 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2229 if test -n "$CC"; then
2230 { echo "$as_me:$LINENO: result: $CC" >&5
2231 echo "${ECHO_T}$CC" >&6; }
2233 { echo "$as_me:$LINENO: result: no" >&5
2234 echo "${ECHO_T}no" >&6; }
2239 if test -z "$ac_cv_prog_CC"; then
2241 # Extract the first word of "gcc", so it can be a program name with args.
2242 set dummy gcc; ac_word=$2
2243 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2244 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2245 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2246 echo $ECHO_N "(cached) $ECHO_C" >&6
2248 if test -n "$ac_ct_CC"; then
2249 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2255 test -z "$as_dir" && as_dir=.
2256 for ac_exec_ext in '' $ac_executable_extensions; do
2257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2258 ac_cv_prog_ac_ct_CC="gcc"
2259 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2268 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2269 if test -n "$ac_ct_CC"; then
2270 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2271 echo "${ECHO_T}$ac_ct_CC" >&6; }
2273 { echo "$as_me:$LINENO: result: no" >&5
2274 echo "${ECHO_T}no" >&6; }
2277 if test "x$ac_ct_CC" = x; then
2280 case $cross_compiling:$ac_tool_warned in
2282 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2283 whose name does not start with the host triplet. If you think this
2284 configuration is useful to you, please write to autoconf@gnu.org." >&5
2285 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2286 whose name does not start with the host triplet. If you think this
2287 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2288 ac_tool_warned=yes ;;
2296 if test -z "$CC"; then
2297 if test -n "$ac_tool_prefix"; then
2298 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2299 set dummy ${ac_tool_prefix}cc; ac_word=$2
2300 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2301 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2302 if test "${ac_cv_prog_CC+set}" = set; then
2303 echo $ECHO_N "(cached) $ECHO_C" >&6
2305 if test -n "$CC"; then
2306 ac_cv_prog_CC="$CC" # Let the user override the test.
2308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2312 test -z "$as_dir" && as_dir=.
2313 for ac_exec_ext in '' $ac_executable_extensions; do
2314 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2315 ac_cv_prog_CC="${ac_tool_prefix}cc"
2316 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2326 if test -n "$CC"; then
2327 { echo "$as_me:$LINENO: result: $CC" >&5
2328 echo "${ECHO_T}$CC" >&6; }
2330 { echo "$as_me:$LINENO: result: no" >&5
2331 echo "${ECHO_T}no" >&6; }
2337 if test -z "$CC"; then
2338 # Extract the first word of "cc", so it can be a program name with args.
2339 set dummy cc; ac_word=$2
2340 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2341 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2342 if test "${ac_cv_prog_CC+set}" = set; then
2343 echo $ECHO_N "(cached) $ECHO_C" >&6
2345 if test -n "$CC"; then
2346 ac_cv_prog_CC="$CC" # Let the user override the test.
2349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2353 test -z "$as_dir" && as_dir=.
2354 for ac_exec_ext in '' $ac_executable_extensions; do
2355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2356 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2357 ac_prog_rejected=yes
2361 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2368 if test $ac_prog_rejected = yes; then
2369 # We found a bogon in the path, so make sure we never use it.
2370 set dummy $ac_cv_prog_CC
2372 if test $# != 0; then
2373 # We chose a different compiler from the bogus one.
2374 # However, it has the same basename, so the bogon will be chosen
2375 # first if we set CC to just the basename; use the full file name.
2377 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2383 if test -n "$CC"; then
2384 { echo "$as_me:$LINENO: result: $CC" >&5
2385 echo "${ECHO_T}$CC" >&6; }
2387 { echo "$as_me:$LINENO: result: no" >&5
2388 echo "${ECHO_T}no" >&6; }
2393 if test -z "$CC"; then
2394 if test -n "$ac_tool_prefix"; then
2395 for ac_prog in cl.exe
2397 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2398 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2399 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2400 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2401 if test "${ac_cv_prog_CC+set}" = set; then
2402 echo $ECHO_N "(cached) $ECHO_C" >&6
2404 if test -n "$CC"; then
2405 ac_cv_prog_CC="$CC" # Let the user override the test.
2407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2411 test -z "$as_dir" && as_dir=.
2412 for ac_exec_ext in '' $ac_executable_extensions; do
2413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2414 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2415 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2425 if test -n "$CC"; then
2426 { echo "$as_me:$LINENO: result: $CC" >&5
2427 echo "${ECHO_T}$CC" >&6; }
2429 { echo "$as_me:$LINENO: result: no" >&5
2430 echo "${ECHO_T}no" >&6; }
2434 test -n "$CC" && break
2437 if test -z "$CC"; then
2439 for ac_prog in cl.exe
2441 # Extract the first word of "$ac_prog", so it can be a program name with args.
2442 set dummy $ac_prog; ac_word=$2
2443 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2444 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2445 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2446 echo $ECHO_N "(cached) $ECHO_C" >&6
2448 if test -n "$ac_ct_CC"; then
2449 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2455 test -z "$as_dir" && as_dir=.
2456 for ac_exec_ext in '' $ac_executable_extensions; do
2457 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2458 ac_cv_prog_ac_ct_CC="$ac_prog"
2459 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2468 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2469 if test -n "$ac_ct_CC"; then
2470 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2471 echo "${ECHO_T}$ac_ct_CC" >&6; }
2473 { echo "$as_me:$LINENO: result: no" >&5
2474 echo "${ECHO_T}no" >&6; }
2478 test -n "$ac_ct_CC" && break
2481 if test "x$ac_ct_CC" = x; then
2484 case $cross_compiling:$ac_tool_warned in
2486 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2487 whose name does not start with the host triplet. If you think this
2488 configuration is useful to you, please write to autoconf@gnu.org." >&5
2489 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2490 whose name does not start with the host triplet. If you think this
2491 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2492 ac_tool_warned=yes ;;
2501 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2502 See \`config.log
' for more details." >&5
2503 echo "$as_me: error: no acceptable C compiler found in \$PATH
2504 See \`config.log' for more details.
" >&2;}
2505 { (exit 1); exit 1; }; }
2507 # Provide some information about the compiler.
2508 echo "$as_me:$LINENO: checking
for C compiler version
" >&5
2509 ac_compiler=`set X $ac_compile; echo $2`
2510 { (ac_try="$ac_compiler --version >&5"
2512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2513 *) ac_try_echo=$ac_try;;
2515 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2516 (eval "$ac_compiler --version >&5") 2>&5
2518 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2519 (exit $ac_status); }
2520 { (ac_try="$ac_compiler -v >&5"
2522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2523 *) ac_try_echo=$ac_try;;
2525 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2526 (eval "$ac_compiler -v >&5") 2>&5
2528 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2529 (exit $ac_status); }
2530 { (ac_try="$ac_compiler -V >&5"
2532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2533 *) ac_try_echo=$ac_try;;
2535 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2536 (eval "$ac_compiler -V >&5") 2>&5
2538 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2539 (exit $ac_status); }
2541 cat >conftest.$ac_ext <<_ACEOF
2544 cat confdefs.h >>conftest.$ac_ext
2545 cat >>conftest.$ac_ext <<_ACEOF
2546 /* end confdefs.h. */
2556 ac_clean_files_save=$ac_clean_files
2557 ac_clean_files="$ac_clean_files a.out a.exe b.out
"
2558 # Try to create an executable without -o first, disregard a.out.
2559 # It will help us diagnose broken compilers, and finding out an intuition
2561 { echo "$as_me:$LINENO: checking
for C compiler default output
file name
" >&5
2562 echo $ECHO_N "checking
for C compiler default output
file name...
$ECHO_C" >&6; }
2563 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2565 # List of possible output files, starting from the most likely.
2566 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2567 # only as a last resort. b.out is created by i960 compilers.
2568 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2570 # The IRIX 6 linker writes into existing files which may not be
2571 # executable, retaining their permissions. Remove them first so a
2572 # subsequent execution test works.
2574 for ac_file in $ac_files
2577 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2578 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2583 if { (ac_try="$ac_link_default"
2585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2586 *) ac_try_echo=$ac_try;;
2588 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2589 (eval "$ac_link_default") 2>&5
2591 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2592 (exit $ac_status); }; then
2593 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2594 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2595 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2596 # so that the user can short-circuit this test for compilers unknown to
2598 for ac_file in $ac_files ''
2600 test -f "$ac_file" || continue
2602 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2605 # We found the default executable, but exeext='' is most
2609 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2611 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2613 # We set ac_cv_exeext here because the later test for it is not
2614 # safe: cross compilers may not add the suffix if given an `-o'
2615 # argument, so we may need to know it at that point already.
2616 # Even if this section looks crufty: it has the advantage of
2623 test "$ac_cv_exeext" = no && ac_cv_exeext=
2629 { echo "$as_me:$LINENO: result
: $ac_file" >&5
2630 echo "${ECHO_T}$ac_file" >&6; }
2631 if test -z "$ac_file"; then
2632 echo "$as_me: failed program was
:" >&5
2633 sed 's/^/| /' conftest.$ac_ext >&5
2635 { { echo "$as_me:$LINENO: error
: C compiler cannot create executables
2636 See \
`config.log' for more details." >&5
2637 echo "$as_me: error: C compiler cannot create executables
2638 See \`config.log
' for more details." >&2;}
2639 { (exit 77); exit 77; }; }
2642 ac_exeext=$ac_cv_exeext
2644 # Check that the compiler produces executables we can run. If not, either
2645 # the compiler is broken, or we cross compile.
2646 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2647 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2648 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2649 # If not cross compiling, check that we can run a simple program.
2650 if test "$cross_compiling" != yes; then
2651 if { ac_try='.
/$ac_file'
2652 { (case "(($ac_try" in
2653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2654 *) ac_try_echo=$ac_try;;
2656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2657 (eval "$ac_try") 2>&5
2659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2660 (exit $ac_status); }; }; then
2663 if test "$cross_compiling" = maybe; then
2666 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2667 If you meant to cross compile, use \`--host'.
2668 See \
`config.log' for more details." >&5
2669 echo "$as_me: error: cannot run C compiled programs.
2670 If you meant to cross compile, use \`--host'.
2671 See \`config.log' for more details.
" >&2;}
2672 { (exit 1); exit 1; }; }
2676 { echo "$as_me:$LINENO: result
: yes" >&5
2677 echo "${ECHO_T}yes" >&6; }
2679 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2680 ac_clean_files=$ac_clean_files_save
2681 # Check that the compiler produces executables we can run. If not, either
2682 # the compiler is broken, or we cross compile.
2683 { echo "$as_me:$LINENO: checking whether we are cross compiling
" >&5
2684 echo $ECHO_N "checking whether we are cross compiling...
$ECHO_C" >&6; }
2685 { echo "$as_me:$LINENO: result
: $cross_compiling" >&5
2686 echo "${ECHO_T}$cross_compiling" >&6; }
2688 { echo "$as_me:$LINENO: checking
for suffix of executables
" >&5
2689 echo $ECHO_N "checking
for suffix of executables...
$ECHO_C" >&6; }
2690 if { (ac_try="$ac_link"
2692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2693 *) ac_try_echo=$ac_try;;
2695 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2696 (eval "$ac_link") 2>&5
2698 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2699 (exit $ac_status); }; then
2700 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2701 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2702 # work properly (i.e., refer to `conftest.exe'), while it won't with
2704 for ac_file in conftest.exe conftest conftest.*; do
2705 test -f "$ac_file" || continue
2707 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2708 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2714 { { echo "$as_me:$LINENO: error
: cannot compute suffix of executables
: cannot compile and link
2715 See \
`config.log' for more details." >&5
2716 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2717 See \`config.log
' for more details." >&2;}
2718 { (exit 1); exit 1; }; }
2721 rm -f conftest$ac_cv_exeext
2722 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2723 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2725 rm -f conftest.$ac_ext
2726 EXEEXT=$ac_cv_exeext
2728 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2729 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2730 if test "${ac_cv_objext+set}" = set; then
2731 echo $ECHO_N "(cached) $ECHO_C" >&6
2733 cat >conftest.$ac_ext <<_ACEOF
2736 cat confdefs.h >>conftest.$ac_ext
2737 cat >>conftest.$ac_ext <<_ACEOF
2738 /* end confdefs.h. */
2748 rm -f conftest.o conftest.obj
2749 if { (ac_try="$ac_compile"
2751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2752 *) ac_try_echo=$ac_try;;
2754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2755 (eval "$ac_compile") 2>&5
2757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2758 (exit $ac_status); }; then
2759 for ac_file in conftest.o conftest.obj conftest.*; do
2760 test -f "$ac_file" || continue;
2762 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2763 *) ac_cv_objext=`expr "$ac_file" : '.
*\.\
(.
*\
)'`
2768 echo "$as_me: failed program was:" >&5
2769 sed 's
/^
/|
/' conftest.$ac_ext >&5
2771 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2772 See \`config.log' for more details.
" >&5
2773 echo "$as_me: error
: cannot compute suffix of object files
: cannot compile
2774 See \
`config.log' for more details." >&2;}
2775 { (exit 1); exit 1; }; }
2778 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2780 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2781 echo "${ECHO_T}$ac_cv_objext" >&6; }
2782 OBJEXT=$ac_cv_objext
2784 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2785 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2786 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2787 echo $ECHO_N "(cached) $ECHO_C" >&6
2789 cat >conftest.$ac_ext <<_ACEOF
2792 cat confdefs.h >>conftest.$ac_ext
2793 cat >>conftest.$ac_ext <<_ACEOF
2794 /* end confdefs.h. */
2807 rm -f conftest.$ac_objext
2808 if { (ac_try="$ac_compile"
2810 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2811 *) ac_try_echo
=$ac_try;;
2813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2814 (eval "$ac_compile") 2>conftest.er1
2816 grep -v '^ *+' conftest.er1
>conftest.err
2818 cat conftest.err
>&5
2819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2820 (exit $ac_status); } && {
2821 test -z "$ac_c_werror_flag" ||
2822 test ! -s conftest.err
2823 } && test -s conftest.
$ac_objext; then
2826 echo "$as_me: failed program was:" >&5
2827 sed 's/^/| /' conftest.
$ac_ext >&5
2832 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2833 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2836 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2837 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2838 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2839 ac_test_CFLAGS
=${CFLAGS+set}
2840 ac_save_CFLAGS
=$CFLAGS
2841 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2842 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2843 if test "${ac_cv_prog_cc_g+set}" = set; then
2844 echo $ECHO_N "(cached) $ECHO_C" >&6
2846 ac_save_c_werror_flag
=$ac_c_werror_flag
2847 ac_c_werror_flag
=yes
2850 cat >conftest.
$ac_ext <<_ACEOF
2853 cat confdefs.h
>>conftest.
$ac_ext
2854 cat >>conftest.
$ac_ext <<_ACEOF
2855 /* end confdefs.h. */
2865 rm -f conftest.
$ac_objext
2866 if { (ac_try
="$ac_compile"
2868 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2869 *) ac_try_echo=$ac_try;;
2871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2872 (eval "$ac_compile") 2>conftest.er1
2874 grep -v '^ *+' conftest.er1 >conftest.err
2876 cat conftest.err >&5
2877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2878 (exit $ac_status); } && {
2879 test -z "$ac_c_werror_flag" ||
2880 test ! -s conftest.err
2881 } && test -s conftest.$ac_objext; then
2884 echo "$as_me: failed program was:" >&5
2885 sed 's/^/| /' conftest.$ac_ext >&5
2888 cat >conftest.$ac_ext <<_ACEOF
2891 cat confdefs.h >>conftest.$ac_ext
2892 cat >>conftest.$ac_ext <<_ACEOF
2893 /* end confdefs.h. */
2903 rm -f conftest.$ac_objext
2904 if { (ac_try="$ac_compile"
2906 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2907 *) ac_try_echo
=$ac_try;;
2909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2910 (eval "$ac_compile") 2>conftest.er1
2912 grep -v '^ *+' conftest.er1
>conftest.err
2914 cat conftest.err
>&5
2915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2916 (exit $ac_status); } && {
2917 test -z "$ac_c_werror_flag" ||
2918 test ! -s conftest.err
2919 } && test -s conftest.
$ac_objext; then
2922 echo "$as_me: failed program was:" >&5
2923 sed 's/^/| /' conftest.
$ac_ext >&5
2925 ac_c_werror_flag
=$ac_save_c_werror_flag
2927 cat >conftest.
$ac_ext <<_ACEOF
2930 cat confdefs.h
>>conftest.
$ac_ext
2931 cat >>conftest.
$ac_ext <<_ACEOF
2932 /* end confdefs.h. */
2942 rm -f conftest.
$ac_objext
2943 if { (ac_try
="$ac_compile"
2945 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2946 *) ac_try_echo=$ac_try;;
2948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2949 (eval "$ac_compile") 2>conftest.er1
2951 grep -v '^ *+' conftest.er1 >conftest.err
2953 cat conftest.err >&5
2954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2955 (exit $ac_status); } && {
2956 test -z "$ac_c_werror_flag" ||
2957 test ! -s conftest.err
2958 } && test -s conftest.$ac_objext; then
2961 echo "$as_me: failed program was:" >&5
2962 sed 's/^/| /' conftest.$ac_ext >&5
2967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2974 ac_c_werror_flag=$ac_save_c_werror_flag
2976 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2977 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2978 if test "$ac_test_CFLAGS" = set; then
2979 CFLAGS=$ac_save_CFLAGS
2980 elif test $ac_cv_prog_cc_g = yes; then
2981 if test "$GCC" = yes; then
2987 if test "$GCC" = yes; then
2993 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2994 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2995 if test "${ac_cv_prog_cc_c89+set}" = set; then
2996 echo $ECHO_N "(cached) $ECHO_C" >&6
2998 ac_cv_prog_cc_c89=no
3000 cat >conftest.$ac_ext <<_ACEOF
3003 cat confdefs.h >>conftest.$ac_ext
3004 cat >>conftest.$ac_ext <<_ACEOF
3005 /* end confdefs.h. */
3008 #include <sys/types.h>
3009 #include <sys/stat.h>
3010 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3011 struct buf { int x; };
3012 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3013 static char *e (p, i)
3019 static char *f (char * (*g) (char **, int), char **p, ...)
3024 s = g (p, va_arg (v,int));
3029 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3030 function prototypes and stuff, but not '\xHH' hex character constants.
3031 These don't provoke an error unfortunately, instead are silently treated
3032 as 'x'. The following induces an error, until -std is added to get
3033 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3034 array size at least. It's necessary to write '\x00'==0 to get something
3035 that's true only with -std. */
3036 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3038 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3039 inside strings and character constants. */
3041 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3043 int test (int i, double x);
3044 struct s1 {int (*f) (int a);};
3045 struct s2 {int (*f) (double a);};
3046 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3052 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3057 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3058 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3060 CC="$ac_save_CC $ac_arg"
3061 rm -f conftest.$ac_objext
3062 if { (ac_try="$ac_compile"
3064 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3065 *) ac_try_echo
=$ac_try;;
3067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3068 (eval "$ac_compile") 2>conftest.er1
3070 grep -v '^ *+' conftest.er1
>conftest.err
3072 cat conftest.err
>&5
3073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3074 (exit $ac_status); } && {
3075 test -z "$ac_c_werror_flag" ||
3076 test ! -s conftest.err
3077 } && test -s conftest.
$ac_objext; then
3078 ac_cv_prog_cc_c89
=$ac_arg
3080 echo "$as_me: failed program was:" >&5
3081 sed 's/^/| /' conftest.
$ac_ext >&5
3086 rm -f core conftest.err conftest.
$ac_objext
3087 test "x$ac_cv_prog_cc_c89" != "xno" && break
3089 rm -f conftest.
$ac_ext
3094 case "x$ac_cv_prog_cc_c89" in
3096 { echo "$as_me:$LINENO: result: none needed" >&5
3097 echo "${ECHO_T}none needed" >&6; } ;;
3099 { echo "$as_me:$LINENO: result: unsupported" >&5
3100 echo "${ECHO_T}unsupported" >&6; } ;;
3102 CC
="$CC $ac_cv_prog_cc_c89"
3103 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3104 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3109 ac_cpp
='$CPP $CPPFLAGS'
3110 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3111 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3112 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3116 ac_cpp
='$CPP $CPPFLAGS'
3117 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3118 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3119 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3120 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3121 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3122 # On Suns, sometimes $CPP names a directory.
3123 if test -n "$CPP" && test -d "$CPP"; then
3126 if test -z "$CPP"; then
3127 if test "${ac_cv_prog_CPP+set}" = set; then
3128 echo $ECHO_N "(cached) $ECHO_C" >&6
3130 # Double quotes because CPP needs to be expanded
3131 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3134 for ac_c_preproc_warn_flag
in '' yes
3136 # Use a header file that comes with gcc, so configuring glibc
3137 # with a fresh cross-compiler works.
3138 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3139 # <limits.h> exists even on freestanding compilers.
3140 # On the NeXT, cc -E runs the code through the compiler's parser,
3141 # not just through cpp. "Syntax error" is here to catch this case.
3142 cat >conftest.
$ac_ext <<_ACEOF
3145 cat confdefs.h
>>conftest.
$ac_ext
3146 cat >>conftest.
$ac_ext <<_ACEOF
3147 /* end confdefs.h. */
3149 # include <limits.h>
3151 # include <assert.h>
3155 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3157 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3158 *) ac_try_echo=$ac_try;;
3160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3161 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3163 grep -v '^ *+' conftest.er1 >conftest.err
3165 cat conftest.err >&5
3166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3167 (exit $ac_status); } >/dev/null && {
3168 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3169 test ! -s conftest.err
3173 echo "$as_me: failed program was:" >&5
3174 sed 's/^/| /' conftest.$ac_ext >&5
3176 # Broken: fails on valid input.
3180 rm -f conftest.err conftest.$ac_ext
3182 # OK, works on sane cases. Now check whether nonexistent headers
3183 # can be detected and how.
3184 cat >conftest.$ac_ext <<_ACEOF
3187 cat confdefs.h >>conftest.$ac_ext
3188 cat >>conftest.$ac_ext <<_ACEOF
3189 /* end confdefs.h. */
3190 #include <ac_nonexistent.h>
3192 if { (ac_try="$ac_cpp conftest.$ac_ext"
3194 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3195 *) ac_try_echo
=$ac_try;;
3197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3198 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3200 grep -v '^ *+' conftest.er1
>conftest.err
3202 cat conftest.err
>&5
3203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3204 (exit $ac_status); } >/dev
/null
&& {
3205 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3206 test ! -s conftest.err
3208 # Broken: success on invalid input.
3211 echo "$as_me: failed program was:" >&5
3212 sed 's/^/| /' conftest.
$ac_ext >&5
3214 # Passes both tests.
3219 rm -f conftest.err conftest.
$ac_ext
3222 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3223 rm -f conftest.err conftest.
$ac_ext
3224 if $ac_preproc_ok; then
3236 { echo "$as_me:$LINENO: result: $CPP" >&5
3237 echo "${ECHO_T}$CPP" >&6; }
3239 for ac_c_preproc_warn_flag
in '' yes
3241 # Use a header file that comes with gcc, so configuring glibc
3242 # with a fresh cross-compiler works.
3243 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3244 # <limits.h> exists even on freestanding compilers.
3245 # On the NeXT, cc -E runs the code through the compiler's parser,
3246 # not just through cpp. "Syntax error" is here to catch this case.
3247 cat >conftest.
$ac_ext <<_ACEOF
3250 cat confdefs.h
>>conftest.
$ac_ext
3251 cat >>conftest.
$ac_ext <<_ACEOF
3252 /* end confdefs.h. */
3254 # include <limits.h>
3256 # include <assert.h>
3260 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3262 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3263 *) ac_try_echo=$ac_try;;
3265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3266 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3268 grep -v '^ *+' conftest.er1 >conftest.err
3270 cat conftest.err >&5
3271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3272 (exit $ac_status); } >/dev/null && {
3273 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3274 test ! -s conftest.err
3278 echo "$as_me: failed program was:" >&5
3279 sed 's/^/| /' conftest.$ac_ext >&5
3281 # Broken: fails on valid input.
3285 rm -f conftest.err conftest.$ac_ext
3287 # OK, works on sane cases. Now check whether nonexistent headers
3288 # can be detected and how.
3289 cat >conftest.$ac_ext <<_ACEOF
3292 cat confdefs.h >>conftest.$ac_ext
3293 cat >>conftest.$ac_ext <<_ACEOF
3294 /* end confdefs.h. */
3295 #include <ac_nonexistent.h>
3297 if { (ac_try="$ac_cpp conftest.$ac_ext"
3299 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3300 *) ac_try_echo
=$ac_try;;
3302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3303 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3305 grep -v '^ *+' conftest.er1
>conftest.err
3307 cat conftest.err
>&5
3308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3309 (exit $ac_status); } >/dev
/null
&& {
3310 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3311 test ! -s conftest.err
3313 # Broken: success on invalid input.
3316 echo "$as_me: failed program was:" >&5
3317 sed 's/^/| /' conftest.
$ac_ext >&5
3319 # Passes both tests.
3324 rm -f conftest.err conftest.
$ac_ext
3327 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3328 rm -f conftest.err conftest.
$ac_ext
3329 if $ac_preproc_ok; then
3332 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3333 See \`config.log' for more details." >&5
3334 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3335 See \`config.log' for more details." >&2;}
3336 { (exit 1); exit 1; }; }
3340 ac_cpp
='$CPP $CPPFLAGS'
3341 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3342 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3343 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3346 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3347 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3348 if test "${ac_cv_path_GREP+set}" = set; then
3349 echo $ECHO_N "(cached) $ECHO_C" >&6
3351 # Extract the first word of "grep ggrep" to use in msg output
3352 if test -z "$GREP"; then
3353 set dummy
grep ggrep
; ac_prog_name
=$2
3354 if test "${ac_cv_path_GREP+set}" = set; then
3355 echo $ECHO_N "(cached) $ECHO_C" >&6
3357 ac_path_GREP_found
=false
3358 # Loop through the user's path and test for each of PROGNAME-LIST
3359 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3360 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3363 test -z "$as_dir" && as_dir
=.
3364 for ac_prog
in grep ggrep
; do
3365 for ac_exec_ext
in '' $ac_executable_extensions; do
3366 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3367 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
3368 # Check for GNU ac_path_GREP and select it if it is found.
3369 # Check for GNU $ac_path_GREP
3370 case `"$ac_path_GREP" --version 2>&1` in
3372 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3375 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3378 cat "conftest.in" "conftest.in" >"conftest.tmp"
3379 mv "conftest.tmp" "conftest.in"
3380 cp "conftest.in" "conftest.nl"
3381 echo 'GREP' >> "conftest.nl"
3382 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3383 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3384 ac_count
=`expr $ac_count + 1`
3385 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3386 # Best one so far, save it but keep looking for a better one
3387 ac_cv_path_GREP
="$ac_path_GREP"
3388 ac_path_GREP_max
=$ac_count
3390 # 10*(2^10) chars as input seems more than enough
3391 test $ac_count -gt 10 && break
3393 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3397 $ac_path_GREP_found && break 3
3407 GREP
="$ac_cv_path_GREP"
3408 if test -z "$GREP"; then
3409 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3410 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3411 { (exit 1); exit 1; }; }
3415 ac_cv_path_GREP
=$GREP
3420 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3421 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3422 GREP
="$ac_cv_path_GREP"
3425 { echo "$as_me:$LINENO: checking for egrep" >&5
3426 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3427 if test "${ac_cv_path_EGREP+set}" = set; then
3428 echo $ECHO_N "(cached) $ECHO_C" >&6
3430 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3431 then ac_cv_path_EGREP
="$GREP -E"
3433 # Extract the first word of "egrep" to use in msg output
3434 if test -z "$EGREP"; then
3435 set dummy
egrep; ac_prog_name
=$2
3436 if test "${ac_cv_path_EGREP+set}" = set; then
3437 echo $ECHO_N "(cached) $ECHO_C" >&6
3439 ac_path_EGREP_found
=false
3440 # Loop through the user's path and test for each of PROGNAME-LIST
3441 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3442 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3445 test -z "$as_dir" && as_dir
=.
3446 for ac_prog
in egrep; do
3447 for ac_exec_ext
in '' $ac_executable_extensions; do
3448 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3449 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
3450 # Check for GNU ac_path_EGREP and select it if it is found.
3451 # Check for GNU $ac_path_EGREP
3452 case `"$ac_path_EGREP" --version 2>&1` in
3454 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3457 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3460 cat "conftest.in" "conftest.in" >"conftest.tmp"
3461 mv "conftest.tmp" "conftest.in"
3462 cp "conftest.in" "conftest.nl"
3463 echo 'EGREP' >> "conftest.nl"
3464 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3465 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3466 ac_count
=`expr $ac_count + 1`
3467 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3468 # Best one so far, save it but keep looking for a better one
3469 ac_cv_path_EGREP
="$ac_path_EGREP"
3470 ac_path_EGREP_max
=$ac_count
3472 # 10*(2^10) chars as input seems more than enough
3473 test $ac_count -gt 10 && break
3475 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3479 $ac_path_EGREP_found && break 3
3489 EGREP
="$ac_cv_path_EGREP"
3490 if test -z "$EGREP"; then
3491 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3492 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3493 { (exit 1); exit 1; }; }
3497 ac_cv_path_EGREP
=$EGREP
3503 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3504 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3505 EGREP
="$ac_cv_path_EGREP"
3508 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3509 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3510 if test "${ac_cv_header_stdc+set}" = set; then
3511 echo $ECHO_N "(cached) $ECHO_C" >&6
3513 cat >conftest.
$ac_ext <<_ACEOF
3516 cat confdefs.h
>>conftest.
$ac_ext
3517 cat >>conftest.
$ac_ext <<_ACEOF
3518 /* end confdefs.h. */
3532 rm -f conftest.
$ac_objext
3533 if { (ac_try
="$ac_compile"
3535 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3536 *) ac_try_echo=$ac_try;;
3538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3539 (eval "$ac_compile") 2>conftest.er1
3541 grep -v '^ *+' conftest.er1 >conftest.err
3543 cat conftest.err >&5
3544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3545 (exit $ac_status); } && {
3546 test -z "$ac_c_werror_flag" ||
3547 test ! -s conftest.err
3548 } && test -s conftest.$ac_objext; then
3549 ac_cv_header_stdc=yes
3551 echo "$as_me: failed program was:" >&5
3552 sed 's/^/| /' conftest.$ac_ext >&5
3554 ac_cv_header_stdc=no
3557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3559 if test $ac_cv_header_stdc = yes; then
3560 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3561 cat >conftest.$ac_ext <<_ACEOF
3564 cat confdefs.h >>conftest.$ac_ext
3565 cat >>conftest.$ac_ext <<_ACEOF
3566 /* end confdefs.h. */
3570 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3571 $EGREP "memchr" >/dev/null 2>&1; then
3574 ac_cv_header_stdc=no
3580 if test $ac_cv_header_stdc = yes; then
3581 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3582 cat >conftest.$ac_ext <<_ACEOF
3585 cat confdefs.h >>conftest.$ac_ext
3586 cat >>conftest.$ac_ext <<_ACEOF
3587 /* end confdefs.h. */
3591 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3592 $EGREP "free" >/dev/null 2>&1; then
3595 ac_cv_header_stdc=no
3601 if test $ac_cv_header_stdc = yes; then
3602 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3603 if test "$cross_compiling" = yes; then
3606 cat >conftest.$ac_ext <<_ACEOF
3609 cat confdefs.h >>conftest.$ac_ext
3610 cat >>conftest.$ac_ext <<_ACEOF
3611 /* end confdefs.h. */
3614 #if ((' ' & 0x0FF) == 0x020)
3615 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3616 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3618 # define ISLOWER(c) \
3619 (('a' <= (c) && (c) <= 'i') \
3620 || ('j' <= (c) && (c) <= 'r') \
3621 || ('s' <= (c) && (c) <= 'z'))
3622 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3625 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3630 for (i = 0; i < 256; i++)
3631 if (XOR (islower (i), ISLOWER (i))
3632 || toupper (i) != TOUPPER (i))
3637 rm -f conftest$ac_exeext
3638 if { (ac_try="$ac_link"
3640 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3641 *) ac_try_echo
=$ac_try;;
3643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3644 (eval "$ac_link") 2>&5
3646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3647 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3648 { (case "(($ac_try" in
3649 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3650 *) ac_try_echo=$ac_try;;
3652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3653 (eval "$ac_try") 2>&5
3655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3656 (exit $ac_status); }; }; then
3659 echo "$as_me: program exited with status $ac_status" >&5
3660 echo "$as_me: failed program was:" >&5
3661 sed 's/^/| /' conftest.$ac_ext >&5
3664 ac_cv_header_stdc=no
3666 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3672 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3673 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3674 if test $ac_cv_header_stdc = yes; then
3676 cat >>confdefs.h <<\_ACEOF
3677 #define STDC_HEADERS 1
3682 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3692 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3693 inttypes.h stdint.h unistd.h
3695 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
3696 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3697 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3698 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3699 echo $ECHO_N "(cached) $ECHO_C" >&6
3701 cat >conftest.$ac_ext <<_ACEOF
3704 cat confdefs.h >>conftest.$ac_ext
3705 cat >>conftest.$ac_ext <<_ACEOF
3706 /* end confdefs.h. */
3707 $ac_includes_default
3709 #include <$ac_header>
3711 rm -f conftest.$ac_objext
3712 if { (ac_try="$ac_compile"
3714 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3715 *) ac_try_echo
=$ac_try;;
3717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3718 (eval "$ac_compile") 2>conftest.er1
3720 grep -v '^ *+' conftest.er1
>conftest.err
3722 cat conftest.err
>&5
3723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3724 (exit $ac_status); } && {
3725 test -z "$ac_c_werror_flag" ||
3726 test ! -s conftest.err
3727 } && test -s conftest.
$ac_objext; then
3728 eval "$as_ac_Header=yes"
3730 echo "$as_me: failed program was:" >&5
3731 sed 's/^/| /' conftest.
$ac_ext >&5
3733 eval "$as_ac_Header=no"
3736 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3738 ac_res
=`eval echo '${'$as_ac_Header'}'`
3739 { echo "$as_me:$LINENO: result: $ac_res" >&5
3740 echo "${ECHO_T}$ac_res" >&6; }
3741 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3742 cat >>confdefs.h
<<_ACEOF
3743 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3751 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
3752 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
3753 if test "${ac_cv_c_bigendian+set}" = set; then
3754 echo $ECHO_N "(cached) $ECHO_C" >&6
3756 # See if sys/param.h defines the BYTE_ORDER macro.
3757 cat >conftest.
$ac_ext <<_ACEOF
3760 cat confdefs.h
>>conftest.
$ac_ext
3761 cat >>conftest.
$ac_ext <<_ACEOF
3762 /* end confdefs.h. */
3763 #include <sys/types.h>
3764 #include <sys/param.h>
3769 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
3770 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
3778 rm -f conftest.
$ac_objext
3779 if { (ac_try
="$ac_compile"
3781 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3782 *) ac_try_echo=$ac_try;;
3784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3785 (eval "$ac_compile") 2>conftest.er1
3787 grep -v '^ *+' conftest.er1 >conftest.err
3789 cat conftest.err >&5
3790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3791 (exit $ac_status); } && {
3792 test -z "$ac_c_werror_flag" ||
3793 test ! -s conftest.err
3794 } && test -s conftest.$ac_objext; then
3795 # It does; now see whether it defined to BIG_ENDIAN or not.
3796 cat >conftest.$ac_ext <<_ACEOF
3799 cat confdefs.h >>conftest.$ac_ext
3800 cat >>conftest.$ac_ext <<_ACEOF
3801 /* end confdefs.h. */
3802 #include <sys/types.h>
3803 #include <sys/param.h>
3808 #if BYTE_ORDER != BIG_ENDIAN
3816 rm -f conftest.$ac_objext
3817 if { (ac_try="$ac_compile"
3819 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3820 *) ac_try_echo
=$ac_try;;
3822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3823 (eval "$ac_compile") 2>conftest.er1
3825 grep -v '^ *+' conftest.er1
>conftest.err
3827 cat conftest.err
>&5
3828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3829 (exit $ac_status); } && {
3830 test -z "$ac_c_werror_flag" ||
3831 test ! -s conftest.err
3832 } && test -s conftest.
$ac_objext; then
3833 ac_cv_c_bigendian
=yes
3835 echo "$as_me: failed program was:" >&5
3836 sed 's/^/| /' conftest.
$ac_ext >&5
3838 ac_cv_c_bigendian
=no
3841 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3843 echo "$as_me: failed program was:" >&5
3844 sed 's/^/| /' conftest.
$ac_ext >&5
3846 # It does not; compile a test program.
3847 if test "$cross_compiling" = yes; then
3848 # try to guess the endianness by grepping values into an object file
3849 ac_cv_c_bigendian
=unknown
3850 cat >conftest.
$ac_ext <<_ACEOF
3853 cat confdefs.h
>>conftest.
$ac_ext
3854 cat >>conftest.
$ac_ext <<_ACEOF
3855 /* end confdefs.h. */
3856 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3857 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3858 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
3859 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3860 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3861 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
3865 _ascii (); _ebcdic ();
3870 rm -f conftest.
$ac_objext
3871 if { (ac_try
="$ac_compile"
3873 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3874 *) ac_try_echo=$ac_try;;
3876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3877 (eval "$ac_compile") 2>conftest.er1
3879 grep -v '^ *+' conftest.er1 >conftest.err
3881 cat conftest.err >&5
3882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3883 (exit $ac_status); } && {
3884 test -z "$ac_c_werror_flag" ||
3885 test ! -s conftest.err
3886 } && test -s conftest.$ac_objext; then
3887 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
3888 ac_cv_c_bigendian=yes
3890 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
3891 if test "$ac_cv_c_bigendian" = unknown; then
3892 ac_cv_c_bigendian=no
3894 # finding both strings is unlikely to happen, but who knows?
3895 ac_cv_c_bigendian=unknown
3899 echo "$as_me: failed program was:" >&5
3900 sed 's/^/| /' conftest.$ac_ext >&5
3905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3907 cat >conftest.$ac_ext <<_ACEOF
3910 cat confdefs.h >>conftest.$ac_ext
3911 cat >>conftest.$ac_ext <<_ACEOF
3912 /* end confdefs.h. */
3913 $ac_includes_default
3918 /* Are we little or big endian? From Harbison&Steele. */
3922 char c[sizeof (long int)];
3925 return u.c[sizeof (long int) - 1] == 1;
3931 rm -f conftest$ac_exeext
3932 if { (ac_try="$ac_link"
3934 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3935 *) ac_try_echo
=$ac_try;;
3937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3938 (eval "$ac_link") 2>&5
3940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3941 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3942 { (case "(($ac_try" in
3943 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3944 *) ac_try_echo=$ac_try;;
3946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3947 (eval "$ac_try") 2>&5
3949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3950 (exit $ac_status); }; }; then
3951 ac_cv_c_bigendian=no
3953 echo "$as_me: program exited with status $ac_status" >&5
3954 echo "$as_me: failed program was:" >&5
3955 sed 's/^/| /' conftest.$ac_ext >&5
3958 ac_cv_c_bigendian=yes
3960 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3968 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
3969 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
3970 case $ac_cv_c_bigendian in
3973 cat >>confdefs.h <<\_ACEOF
3974 #define WORDS_BIGENDIAN 1
3980 { { echo "$as_me:$LINENO: error: unknown endianness
3981 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
3982 echo "$as_me: error: unknown endianness
3983 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
3984 { (exit 1); exit 1; }; } ;;
3987 if test x$ac_cv_c_bigendian = xyes; then
3988 cat >>confdefs.h <<\_ACEOF
3989 #define SDL_BYTEORDER 4321
3993 cat >>confdefs.h <<\_ACEOF
3994 #define SDL_BYTEORDER 1234
3999 INCLUDE="-I$srcdir/include"
4000 if test x$srcdir != x.; then
4001 # Remove SDL_config.h from the source directory, since it's the
4002 # default one, and we want to include the one that we generate.
4003 if test -f $srcdir/include/SDL_config.h; then
4004 rm $srcdir/include/SDL_config.h
4006 INCLUDE="-Iinclude $INCLUDE"
4010 # We build SDL on cygwin without the UNIX emulation layer
4011 BASE_CFLAGS="-I/usr/include/mingw -mno-cygwin"
4012 BASE_LDFLAGS="-mno-cygwin"
4015 BASE_CFLAGS="-D_GNU_SOURCE=1"
4019 BUILD_CFLAGS="$CFLAGS $CPPFLAGS"
4020 EXTRA_CFLAGS="$INCLUDE $BASE_CFLAGS"
4021 BUILD_LDFLAGS="$LDFLAGS"
4022 EXTRA_LDFLAGS="$BASE_LDFLAGS"
4023 ## These are common directories to find software packages
4024 #for path in /usr/freeware /usr/pkg /usr/X11R6 /usr/local; do
4025 # if test -d $path/include; then
4026 # EXTRA_CFLAGS="$EXTRA_CFLAGS -I$path/include"
4028 # if test -d $path/lib; then
4029 # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L$path/lib"
4032 SDL_CFLAGS="$BASE_CFLAGS"
4033 SDL_LIBS="-lSDL $BASE_LDFLAGS"
4034 CPPFLAGS="$CPPFLAGS $EXTRA_CFLAGS"
4035 CFLAGS="$CFLAGS $EXTRA_CFLAGS"
4036 LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS"
4040 # Check whether --enable-shared was given.
4041 if test "${enable_shared+set}" = set; then
4042 enableval=$enable_shared; p=${PACKAGE-default}
4044 yes) enable_shared=yes ;;
4045 no) enable_shared=no ;;
4048 # Look at the argument we got. We use all the common list separators.
4049 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4050 for pkg in $enableval; do
4052 if test "X$pkg" = "X$p"; then
4064 # Check whether --enable-static was given.
4065 if test "${enable_static+set}" = set; then
4066 enableval=$enable_static; p=${PACKAGE-default}
4068 yes) enable_static=yes ;;
4069 no) enable_static=no ;;
4072 # Look at the argument we got. We use all the common list separators.
4073 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4074 for pkg in $enableval; do
4076 if test "X$pkg" = "X$p"; then
4088 # Check whether --enable-fast-install was given.
4089 if test "${enable_fast_install+set}" = set; then
4090 enableval=$enable_fast_install; p=${PACKAGE-default}
4092 yes) enable_fast_install=yes ;;
4093 no) enable_fast_install=no ;;
4095 enable_fast_install=no
4096 # Look at the argument we got. We use all the common list separators.
4097 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4098 for pkg in $enableval; do
4100 if test "X$pkg" = "X$p"; then
4101 enable_fast_install=yes
4108 enable_fast_install=yes
4112 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4113 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4114 if test "${lt_cv_path_SED+set}" = set; then
4115 echo $ECHO_N "(cached) $ECHO_C" >&6
4117 # Loop through the user's path and test for sed and gsed.
4118 # Then use that list of sed's as ones to test for truncation.
4119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4123 test -z "$as_dir" && as_dir=.
4124 for lt_ac_prog in sed gsed; do
4125 for ac_exec_ext in '' $ac_executable_extensions; do
4126 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4127 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4134 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4135 # along with /bin/sed that truncates output.
4136 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4137 test ! -f $lt_ac_sed && continue
4138 cat /dev/null > conftest.in
4140 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4141 # Check for GNU sed and select it if it is found.
4142 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4143 lt_cv_path_SED=$lt_ac_sed
4147 cat conftest.in conftest.in >conftest.tmp
4148 mv conftest.tmp conftest.in
4149 cp conftest.in conftest.nl
4151 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4152 cmp -s conftest.out conftest.nl || break
4153 # 10000 chars as input seems more than enough
4154 test $lt_ac_count -gt 10 && break
4155 lt_ac_count=`expr $lt_ac_count + 1`
4156 if test $lt_ac_count -gt $lt_ac_max; then
4157 lt_ac_max=$lt_ac_count
4158 lt_cv_path_SED=$lt_ac_sed
4166 { echo "$as_me:$LINENO: result: $SED" >&5
4167 echo "${ECHO_T}$SED" >&6; }
4170 # Check whether --with-gnu-ld was given.
4171 if test "${with_gnu_ld+set}" = set; then
4172 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4178 if test "$GCC" = yes; then
4179 # Check if gcc -print-prog-name=ld gives a path.
4180 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4181 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4184 # gcc leaves a trailing carriage return which upsets mingw
4185 ac_prog=`($CC -print-prog-name=ld
) 2>&5 |
tr -d '\015'` ;;
4187 ac_prog=`($CC -print-prog-name=ld
) 2>&5` ;;
4190 # Accept absolute paths.
4192 re_direlt='/[^/][^/]*/\.\./'
4193 # Canonicalize the pathname of ld
4194 ac_prog=`echo $ac_prog|
$SED 's%\\\\%/%g'`
4195 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4196 ac_prog=`echo $ac_prog|
$SED "s%$re_direlt%/%"`
4198 test -z "$LD" && LD="$ac_prog"
4201 # If it fails, then pretend we aren't using GCC.
4205 # If it is relative, then search for the first ld in PATH.
4209 elif test "$with_gnu_ld" = yes; then
4210 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4211 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4213 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4214 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4216 if test "${lt_cv_path_LD+set}" = set; then
4217 echo $ECHO_N "(cached) $ECHO_C" >&6
4219 if test -z "$LD"; then
4220 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4221 for ac_dir in $PATH; do
4223 test -z "$ac_dir" && ac_dir=.
4224 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4225 lt_cv_path_LD="$ac_dir/$ac_prog"
4226 # Check to see if the program is GNU ld. I'd rather use --version,
4227 # but apparently some variants of GNU ld only accept -v.
4228 # Break only if it was the GNU/non-GNU ld that we prefer.
4229 case `"$lt_cv_path_LD" -v 2>&1 </dev
/null
` in
4230 *GNU* | *'with BFD'*)
4231 test "$with_gnu_ld" != no && break
4234 test "$with_gnu_ld" != yes && break
4241 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4246 if test -n "$LD"; then
4247 { echo "$as_me:$LINENO: result: $LD" >&5
4248 echo "${ECHO_T}$LD" >&6; }
4250 { echo "$as_me:$LINENO: result: no" >&5
4251 echo "${ECHO_T}no" >&6; }
4253 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4254 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4255 { (exit 1); exit 1; }; }
4256 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4257 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4258 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4259 echo $ECHO_N "(cached) $ECHO_C" >&6
4261 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4262 case `$LD -v 2>&1 </dev
/null
` in
4263 *GNU* | *'with BFD'*)
4264 lt_cv_prog_gnu_ld=yes
4267 lt_cv_prog_gnu_ld=no
4271 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4272 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4273 with_gnu_ld=$lt_cv_prog_gnu_ld
4276 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4277 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4278 if test "${lt_cv_ld_reload_flag+set}" = set; then
4279 echo $ECHO_N "(cached) $ECHO_C" >&6
4281 lt_cv_ld_reload_flag='-r'
4283 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4284 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4285 reload_flag=$lt_cv_ld_reload_flag
4286 case $reload_flag in
4288 *) reload_flag=" $reload_flag" ;;
4290 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4293 if test "$GCC" = yes; then
4294 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4296 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4301 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4302 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4303 if test "${lt_cv_path_NM+set}" = set; then
4304 echo $ECHO_N "(cached) $ECHO_C" >&6
4306 if test -n "$NM"; then
4307 # Let the user override the test.
4310 lt_nm_to_check="${ac_tool_prefix}nm"
4311 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4312 lt_nm_to_check="$lt_nm_to_check nm"
4314 for lt_tmp_nm in $lt_nm_to_check; do
4315 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4316 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4318 test -z "$ac_dir" && ac_dir=.
4319 tmp_nm="$ac_dir/$lt_tmp_nm"
4320 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4321 # Check to see if the nm accepts a BSD-compat flag.
4322 # Adding the `sed 1q
' prevents false positives on HP-UX, which says:
4323 # nm: unknown option "B" ignored
4324 # Tru64's nm complains that
/dev
/null is an invalid object
file
4325 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4326 */dev
/null
* |
*'Invalid file or object type'*)
4327 lt_cv_path_NM
="$tmp_nm -B"
4331 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4333 lt_cv_path_NM
="$tmp_nm -p"
4337 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4338 continue # so that we can try to find one that supports BSD flags
4347 test -z "$lt_cv_path_NM" && lt_cv_path_NM
=nm
4350 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4351 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4354 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4355 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4357 if test "$LN_S" = "ln -s"; then
4358 { echo "$as_me:$LINENO: result: yes" >&5
4359 echo "${ECHO_T}yes" >&6; }
4361 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4362 echo "${ECHO_T}no, using $LN_S" >&6; }
4365 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4366 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
4367 if test "${lt_cv_deplibs_check_method+set}" = set; then
4368 echo $ECHO_N "(cached) $ECHO_C" >&6
4370 lt_cv_file_magic_cmd
='$MAGIC_CMD'
4371 lt_cv_file_magic_test_file
=
4372 lt_cv_deplibs_check_method
='unknown'
4373 # Need to set the preceding variable on all platforms that support
4374 # interlibrary dependencies.
4375 # 'none' -- dependencies not supported.
4376 # `unknown' -- same as none, but documents that we really don't know.
4377 # 'pass_all' -- all dependencies passed with no checks.
4378 # 'test_compile' -- check by making test program.
4379 # 'file_magic [[regex]]' -- check by looking for files in library path
4380 # which responds to the $file_magic_cmd with a given extended regex.
4381 # If you have `file' or equivalent on your system and you're not sure
4382 # whether `pass_all' will *always* work, you probably want this one.
4386 lt_cv_deplibs_check_method
=pass_all
4390 lt_cv_deplibs_check_method
=pass_all
4394 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4395 lt_cv_file_magic_cmd
='/usr/bin/file -L'
4396 lt_cv_file_magic_test_file
=/shlib
/libc.so
4400 # func_win32_libid is a shell function defined in ltmain.sh
4401 #lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4402 lt_cv_deplibs_check_method
=pass_all
4403 lt_cv_file_magic_cmd
='func_win32_libid'
4407 # Base MSYS/MinGW do not provide the 'file' command needed by
4408 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4409 #lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4410 lt_cv_deplibs_check_method
=pass_all
4411 lt_cv_file_magic_cmd
='$OBJDUMP -f'
4414 darwin
* | rhapsody
*)
4415 lt_cv_deplibs_check_method
=pass_all
4418 freebsd
* | kfreebsd
*-gnu | dragonfly
*)
4419 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then
4422 # Not sure whether the presence of OpenBSD here was a mistake.
4423 # Let's accept both of them until this is cleared up.
4424 lt_cv_deplibs_check_method
='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4425 lt_cv_file_magic_cmd
=/usr
/bin
/file
4426 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so.*`
4430 lt_cv_deplibs_check_method
=pass_all
4435 lt_cv_deplibs_check_method
=pass_all
4438 hpux10.20
* | hpux11
*)
4439 lt_cv_file_magic_cmd
=/usr
/bin
/file
4442 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4443 lt_cv_file_magic_test_file
=/usr
/lib
/hpux32
/libc.so
4446 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]'
4447 lt_cv_file_magic_test_file
=/usr
/lib
/pa20_64
/libc.sl
4450 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4451 lt_cv_file_magic_test_file
=/usr
/lib
/libc.sl
4457 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4458 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so|\.a)$'
4461 irix5
* | irix6
* | nonstopux
*)
4463 *-32|
*"-32 ") libmagic
=32-bit;;
4464 *-n32|
*"-n32 ") libmagic
=N32
;;
4465 *-64|
*"-64 ") libmagic
=64-bit;;
4466 *) libmagic
=never-match
;;
4468 lt_cv_deplibs_check_method
=pass_all
4471 # This must be Linux ELF.
4473 lt_cv_deplibs_check_method
=pass_all
4477 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then
4478 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4480 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4485 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4486 lt_cv_file_magic_cmd
=/usr
/bin
/file
4487 lt_cv_file_magic_test_file
=/usr
/lib
/libnls.so
4491 lt_cv_deplibs_check_method
=unknown
4495 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4496 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4498 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4502 osf3
* | osf4
* | osf5
*)
4503 lt_cv_deplibs_check_method
=pass_all
4507 lt_cv_deplibs_check_method
=pass_all
4511 case $host_vendor in
4513 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]'
4514 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so*`
4517 lt_cv_deplibs_check_method
=pass_all
4520 lt_cv_file_magic_cmd
='/bin/file'
4521 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4524 lt_cv_file_magic_cmd
='/bin/file'
4525 lt_cv_deplibs_check_method
="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4526 lt_cv_file_magic_test_file
=/lib
/libc.so
4529 lt_cv_deplibs_check_method
=pass_all
4532 lt_cv_deplibs_check_method
=pass_all
4537 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
4538 lt_cv_deplibs_check_method
=pass_all
4543 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4544 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4545 file_magic_cmd
=$lt_cv_file_magic_cmd
4546 deplibs_check_method
=$lt_cv_deplibs_check_method
4547 test -z "$deplibs_check_method" && deplibs_check_method
=unknown
4552 # If no C compiler was specified, use CC.
4555 # If no C compiler flags were specified, use CFLAGS.
4556 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
4558 # Allow CC to be a program name with arguments.
4561 # Check whether --enable-libtool-lock was given.
4562 if test "${enable_libtool_lock+set}" = set; then
4563 enableval
=$enable_libtool_lock;
4566 test "x$enable_libtool_lock" != xno
&& enable_libtool_lock
=yes
4568 # Some flags need to be propagated to the compiler or linker for good
4572 # Find out which ABI we are using.
4573 echo 'int i;' > conftest.
$ac_ext
4574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4575 (eval $ac_compile) 2>&5
4577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4578 (exit $ac_status); }; then
4579 case `/usr/bin/file conftest.$ac_objext` in
4591 # Find out which ABI we are using.
4592 echo '#line 4592 "configure"' > conftest.
$ac_ext
4593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4594 (eval $ac_compile) 2>&5
4596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4597 (exit $ac_status); }; then
4598 if test "$lt_cv_prog_gnu_ld" = yes; then
4599 case `/usr/bin/file conftest.$ac_objext` in
4601 LD
="${LD-ld} -melf32bsmip"
4604 LD
="${LD-ld} -melf32bmipn32"
4607 LD
="${LD-ld} -melf64bmip"
4611 case `/usr/bin/file conftest.$ac_objext` in
4627 x86_64-
*linux
*|ppc
*-*linux
*|powerpc
*-*linux
*|s390
*-*linux
*|sparc
*-*linux
*)
4628 # Find out which ABI we are using.
4629 echo 'int i;' > conftest.
$ac_ext
4630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4631 (eval $ac_compile) 2>&5
4633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4634 (exit $ac_status); }; then
4635 case `/usr/bin/file conftest.o` in
4639 LD
="${LD-ld} -m elf_i386"
4641 ppc64-
*linux
*|powerpc64-
*linux
*)
4642 LD
="${LD-ld} -m elf32ppclinux"
4645 LD
="${LD-ld} -m elf_s390"
4648 LD
="${LD-ld} -m elf32_sparc"
4655 LD
="${LD-ld} -m elf_x86_64"
4657 ppc
*-*linux
*|powerpc
*-*linux
*)
4658 LD
="${LD-ld} -m elf64ppc"
4661 LD
="${LD-ld} -m elf64_s390"
4664 LD
="${LD-ld} -m elf64_sparc"
4674 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4675 SAVE_CFLAGS
="$CFLAGS"
4676 CFLAGS
="$CFLAGS -belf"
4677 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4678 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4679 if test "${lt_cv_cc_needs_belf+set}" = set; then
4680 echo $ECHO_N "(cached) $ECHO_C" >&6
4683 ac_cpp
='$CPP $CPPFLAGS'
4684 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4685 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4686 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4688 cat >conftest.
$ac_ext <<_ACEOF
4691 cat confdefs.h
>>conftest.
$ac_ext
4692 cat >>conftest.
$ac_ext <<_ACEOF
4693 /* end confdefs.h. */
4703 rm -f conftest.
$ac_objext conftest
$ac_exeext
4704 if { (ac_try
="$ac_link"
4706 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4707 *) ac_try_echo=$ac_try;;
4709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4710 (eval "$ac_link") 2>conftest.er1
4712 grep -v '^ *+' conftest.er1 >conftest.err
4714 cat conftest.err >&5
4715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4716 (exit $ac_status); } && {
4717 test -z "$ac_c_werror_flag" ||
4718 test ! -s conftest.err
4719 } && test -s conftest$ac_exeext &&
4720 $as_test_x conftest$ac_exeext; then
4721 lt_cv_cc_needs_belf=yes
4723 echo "$as_me: failed program was:" >&5
4724 sed 's/^/| /' conftest.$ac_ext >&5
4726 lt_cv_cc_needs_belf=no
4729 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4730 conftest$ac_exeext conftest.$ac_ext
4732 ac_cpp='$CPP $CPPFLAGS'
4733 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4734 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4735 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4738 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4739 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4740 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4741 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4742 CFLAGS="$SAVE_CFLAGS"
4746 # Find out which ABI we are using.
4747 echo 'int i;' > conftest.$ac_ext
4748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4749 (eval $ac_compile) 2>&5
4751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4752 (exit $ac_status); }; then
4753 case `/usr
/bin
/file conftest.o
` in
4755 case $lt_cv_prog_gnu_ld in
4756 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4757 *) LD="${LD-ld} -64" ;;
4765 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
4766 if test -n "$ac_tool_prefix"; then
4767 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4768 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4769 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4770 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4771 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
4772 echo $ECHO_N "(cached) $ECHO_C" >&6
4774 if test -n "$DLLTOOL"; then
4775 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4781 test -z "$as_dir" && as_dir=.
4782 for ac_exec_ext in '' $ac_executable_extensions; do
4783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4784 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4785 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4794 DLLTOOL=$ac_cv_prog_DLLTOOL
4795 if test -n "$DLLTOOL"; then
4796 { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
4797 echo "${ECHO_T}$DLLTOOL" >&6; }
4799 { echo "$as_me:$LINENO: result: no" >&5
4800 echo "${ECHO_T}no" >&6; }
4805 if test -z "$ac_cv_prog_DLLTOOL"; then
4806 ac_ct_DLLTOOL=$DLLTOOL
4807 # Extract the first word of "dlltool", so it can be a program name with args.
4808 set dummy dlltool; ac_word=$2
4809 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4810 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4811 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
4812 echo $ECHO_N "(cached) $ECHO_C" >&6
4814 if test -n "$ac_ct_DLLTOOL"; then
4815 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4821 test -z "$as_dir" && as_dir=.
4822 for ac_exec_ext in '' $ac_executable_extensions; do
4823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4824 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4825 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4834 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4835 if test -n "$ac_ct_DLLTOOL"; then
4836 { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
4837 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
4839 { echo "$as_me:$LINENO: result: no" >&5
4840 echo "${ECHO_T}no" >&6; }
4843 if test "x$ac_ct_DLLTOOL" = x; then
4846 case $cross_compiling:$ac_tool_warned in
4848 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4849 whose name does not start with the host triplet. If you think this
4850 configuration is useful to you, please write to autoconf@gnu.org." >&5
4851 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4852 whose name does not start with the host triplet. If you think this
4853 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4854 ac_tool_warned=yes ;;
4856 DLLTOOL=$ac_ct_DLLTOOL
4859 DLLTOOL="$ac_cv_prog_DLLTOOL"
4862 if test -n "$ac_tool_prefix"; then
4863 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4864 set dummy ${ac_tool_prefix}as; ac_word=$2
4865 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4866 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4867 if test "${ac_cv_prog_AS+set}" = set; then
4868 echo $ECHO_N "(cached) $ECHO_C" >&6
4870 if test -n "$AS"; then
4871 ac_cv_prog_AS="$AS" # Let the user override the test.
4873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4877 test -z "$as_dir" && as_dir=.
4878 for ac_exec_ext in '' $ac_executable_extensions; do
4879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4880 ac_cv_prog_AS="${ac_tool_prefix}as"
4881 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4891 if test -n "$AS"; then
4892 { echo "$as_me:$LINENO: result: $AS" >&5
4893 echo "${ECHO_T}$AS" >&6; }
4895 { echo "$as_me:$LINENO: result: no" >&5
4896 echo "${ECHO_T}no" >&6; }
4901 if test -z "$ac_cv_prog_AS"; then
4903 # Extract the first word of "as", so it can be a program name with args.
4904 set dummy as; ac_word=$2
4905 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4906 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4907 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4908 echo $ECHO_N "(cached) $ECHO_C" >&6
4910 if test -n "$ac_ct_AS"; then
4911 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4917 test -z "$as_dir" && as_dir=.
4918 for ac_exec_ext in '' $ac_executable_extensions; do
4919 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4920 ac_cv_prog_ac_ct_AS="as"
4921 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4930 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4931 if test -n "$ac_ct_AS"; then
4932 { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4933 echo "${ECHO_T}$ac_ct_AS" >&6; }
4935 { echo "$as_me:$LINENO: result: no" >&5
4936 echo "${ECHO_T}no" >&6; }
4939 if test "x$ac_ct_AS" = x; then
4942 case $cross_compiling:$ac_tool_warned in
4944 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4945 whose name does not start with the host triplet. If you think this
4946 configuration is useful to you, please write to autoconf@gnu.org." >&5
4947 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4948 whose name does not start with the host triplet. If you think this
4949 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4950 ac_tool_warned=yes ;;
4958 if test -n "$ac_tool_prefix"; then
4959 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4960 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4961 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4962 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4963 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4964 echo $ECHO_N "(cached) $ECHO_C" >&6
4966 if test -n "$OBJDUMP"; then
4967 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4973 test -z "$as_dir" && as_dir=.
4974 for ac_exec_ext in '' $ac_executable_extensions; do
4975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4976 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4977 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4986 OBJDUMP=$ac_cv_prog_OBJDUMP
4987 if test -n "$OBJDUMP"; then
4988 { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4989 echo "${ECHO_T}$OBJDUMP" >&6; }
4991 { echo "$as_me:$LINENO: result: no" >&5
4992 echo "${ECHO_T}no" >&6; }
4997 if test -z "$ac_cv_prog_OBJDUMP"; then
4998 ac_ct_OBJDUMP=$OBJDUMP
4999 # Extract the first word of "objdump", so it can be a program name with args.
5000 set dummy objdump; ac_word=$2
5001 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5002 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5003 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5004 echo $ECHO_N "(cached) $ECHO_C" >&6
5006 if test -n "$ac_ct_OBJDUMP"; then
5007 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5013 test -z "$as_dir" && as_dir=.
5014 for ac_exec_ext in '' $ac_executable_extensions; do
5015 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5016 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5017 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5026 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5027 if test -n "$ac_ct_OBJDUMP"; then
5028 { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5029 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
5031 { echo "$as_me:$LINENO: result: no" >&5
5032 echo "${ECHO_T}no" >&6; }
5035 if test "x$ac_ct_OBJDUMP" = x; then
5038 case $cross_compiling:$ac_tool_warned in
5040 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5041 whose name does not start with the host triplet. If you think this
5042 configuration is useful to you, please write to autoconf@gnu.org." >&5
5043 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5044 whose name does not start with the host triplet. If you think this
5045 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5046 ac_tool_warned=yes ;;
5048 OBJDUMP=$ac_ct_OBJDUMP
5051 OBJDUMP="$ac_cv_prog_OBJDUMP"
5058 need_locks="$enable_libtool_lock"
5062 for ac_header in dlfcn.h
5064 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
5065 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5066 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5067 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5068 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5069 echo $ECHO_N "(cached) $ECHO_C" >&6
5071 ac_res=`eval echo '${'$as_ac_Header'}'`
5072 { echo "$as_me:$LINENO: result: $ac_res" >&5
5073 echo "${ECHO_T}$ac_res" >&6; }
5075 # Is the header compilable?
5076 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5077 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5078 cat >conftest.$ac_ext <<_ACEOF
5081 cat confdefs.h >>conftest.$ac_ext
5082 cat >>conftest.$ac_ext <<_ACEOF
5083 /* end confdefs.h. */
5084 $ac_includes_default
5085 #include <$ac_header>
5087 rm -f conftest.$ac_objext
5088 if { (ac_try="$ac_compile"
5090 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5091 *) ac_try_echo
=$ac_try;;
5093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5094 (eval "$ac_compile") 2>conftest.er1
5096 grep -v '^ *+' conftest.er1
>conftest.err
5098 cat conftest.err
>&5
5099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5100 (exit $ac_status); } && {
5101 test -z "$ac_c_werror_flag" ||
5102 test ! -s conftest.err
5103 } && test -s conftest.
$ac_objext; then
5104 ac_header_compiler
=yes
5106 echo "$as_me: failed program was:" >&5
5107 sed 's/^/| /' conftest.
$ac_ext >&5
5109 ac_header_compiler
=no
5112 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5113 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5114 echo "${ECHO_T}$ac_header_compiler" >&6; }
5116 # Is the header present?
5117 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5118 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5119 cat >conftest.
$ac_ext <<_ACEOF
5122 cat confdefs.h
>>conftest.
$ac_ext
5123 cat >>conftest.
$ac_ext <<_ACEOF
5124 /* end confdefs.h. */
5125 #include <$ac_header>
5127 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5129 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5130 *) ac_try_echo=$ac_try;;
5132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5133 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5135 grep -v '^ *+' conftest.er1 >conftest.err
5137 cat conftest.err >&5
5138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5139 (exit $ac_status); } >/dev/null && {
5140 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5141 test ! -s conftest.err
5143 ac_header_preproc=yes
5145 echo "$as_me: failed program was:" >&5
5146 sed 's/^/| /' conftest.$ac_ext >&5
5148 ac_header_preproc=no
5151 rm -f conftest.err conftest.$ac_ext
5152 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5153 echo "${ECHO_T}$ac_header_preproc" >&6; }
5155 # So? What about this header?
5156 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5158 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5159 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5160 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5161 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5162 ac_header_preproc=yes
5165 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5166 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5167 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5168 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5169 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5170 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5171 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5172 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5173 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5174 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5175 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5176 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5180 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5181 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5182 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5183 echo $ECHO_N "(cached) $ECHO_C" >&6
5185 eval "$as_ac_Header=\$ac_header_preproc"
5187 ac_res=`eval echo '${'$as_ac_Header'}'`
5188 { echo "$as_me:$LINENO: result: $ac_res" >&5
5189 echo "${ECHO_T}$ac_res" >&6; }
5192 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5193 cat >>confdefs.h <<_ACEOF
5194 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
5202 ac_cpp='$CXXCPP $CPPFLAGS'
5203 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5204 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5205 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5206 if test -z "$CXX"; then
5207 if test -n "$CCC"; then
5210 if test -n "$ac_tool_prefix"; then
5211 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5213 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5214 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5215 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5216 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5217 if test "${ac_cv_prog_CXX+set}" = set; then
5218 echo $ECHO_N "(cached) $ECHO_C" >&6
5220 if test -n "$CXX"; then
5221 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5227 test -z "$as_dir" && as_dir=.
5228 for ac_exec_ext in '' $ac_executable_extensions; do
5229 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5230 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5231 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5241 if test -n "$CXX"; then
5242 { echo "$as_me:$LINENO: result: $CXX" >&5
5243 echo "${ECHO_T}$CXX" >&6; }
5245 { echo "$as_me:$LINENO: result: no" >&5
5246 echo "${ECHO_T}no" >&6; }
5250 test -n "$CXX" && break
5253 if test -z "$CXX"; then
5255 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5257 # Extract the first word of "$ac_prog", so it can be a program name with args.
5258 set dummy $ac_prog; ac_word=$2
5259 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5260 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5261 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5262 echo $ECHO_N "(cached) $ECHO_C" >&6
5264 if test -n "$ac_ct_CXX"; then
5265 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5271 test -z "$as_dir" && as_dir=.
5272 for ac_exec_ext in '' $ac_executable_extensions; do
5273 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5274 ac_cv_prog_ac_ct_CXX="$ac_prog"
5275 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5284 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5285 if test -n "$ac_ct_CXX"; then
5286 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5287 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5289 { echo "$as_me:$LINENO: result: no" >&5
5290 echo "${ECHO_T}no" >&6; }
5294 test -n "$ac_ct_CXX" && break
5297 if test "x$ac_ct_CXX" = x; then
5300 case $cross_compiling:$ac_tool_warned in
5302 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5303 whose name does not start with the host triplet. If you think this
5304 configuration is useful to you, please write to autoconf@gnu.org." >&5
5305 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5306 whose name does not start with the host triplet. If you think this
5307 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5308 ac_tool_warned=yes ;;
5316 # Provide some information about the compiler.
5317 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5318 ac_compiler=`set X
$ac_compile; echo $2`
5319 { (ac_try="$ac_compiler --version >&5"
5321 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5322 *) ac_try_echo
=$ac_try;;
5324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5325 (eval "$ac_compiler --version >&5") 2>&5
5327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5328 (exit $ac_status); }
5329 { (ac_try
="$ac_compiler -v >&5"
5331 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5332 *) ac_try_echo=$ac_try;;
5334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5335 (eval "$ac_compiler -v >&5") 2>&5
5337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5338 (exit $ac_status); }
5339 { (ac_try="$ac_compiler -V >&5"
5341 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5342 *) ac_try_echo
=$ac_try;;
5344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5345 (eval "$ac_compiler -V >&5") 2>&5
5347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5348 (exit $ac_status); }
5350 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5351 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5352 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5353 echo $ECHO_N "(cached) $ECHO_C" >&6
5355 cat >conftest.
$ac_ext <<_ACEOF
5358 cat confdefs.h
>>conftest.
$ac_ext
5359 cat >>conftest.
$ac_ext <<_ACEOF
5360 /* end confdefs.h. */
5373 rm -f conftest.
$ac_objext
5374 if { (ac_try
="$ac_compile"
5376 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5377 *) ac_try_echo=$ac_try;;
5379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5380 (eval "$ac_compile") 2>conftest.er1
5382 grep -v '^ *+' conftest.er1 >conftest.err
5384 cat conftest.err >&5
5385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5386 (exit $ac_status); } && {
5387 test -z "$ac_cxx_werror_flag" ||
5388 test ! -s conftest.err
5389 } && test -s conftest.$ac_objext; then
5392 echo "$as_me: failed program was:" >&5
5393 sed 's/^/| /' conftest.$ac_ext >&5
5398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5399 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5402 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5403 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5404 GXX=`test $ac_compiler_gnu = yes && echo yes`
5405 ac_test_CXXFLAGS=${CXXFLAGS+set}
5406 ac_save_CXXFLAGS=$CXXFLAGS
5407 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5408 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5409 if test "${ac_cv_prog_cxx_g+set}" = set; then
5410 echo $ECHO_N "(cached) $ECHO_C" >&6
5412 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5413 ac_cxx_werror_flag=yes
5416 cat >conftest.$ac_ext <<_ACEOF
5419 cat confdefs.h >>conftest.$ac_ext
5420 cat >>conftest.$ac_ext <<_ACEOF
5421 /* end confdefs.h. */
5431 rm -f conftest.$ac_objext
5432 if { (ac_try="$ac_compile"
5434 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5435 *) ac_try_echo
=$ac_try;;
5437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5438 (eval "$ac_compile") 2>conftest.er1
5440 grep -v '^ *+' conftest.er1
>conftest.err
5442 cat conftest.err
>&5
5443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5444 (exit $ac_status); } && {
5445 test -z "$ac_cxx_werror_flag" ||
5446 test ! -s conftest.err
5447 } && test -s conftest.
$ac_objext; then
5448 ac_cv_prog_cxx_g
=yes
5450 echo "$as_me: failed program was:" >&5
5451 sed 's/^/| /' conftest.
$ac_ext >&5
5454 cat >conftest.
$ac_ext <<_ACEOF
5457 cat confdefs.h
>>conftest.
$ac_ext
5458 cat >>conftest.
$ac_ext <<_ACEOF
5459 /* end confdefs.h. */
5469 rm -f conftest.
$ac_objext
5470 if { (ac_try
="$ac_compile"
5472 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5473 *) ac_try_echo=$ac_try;;
5475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5476 (eval "$ac_compile") 2>conftest.er1
5478 grep -v '^ *+' conftest.er1 >conftest.err
5480 cat conftest.err >&5
5481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5482 (exit $ac_status); } && {
5483 test -z "$ac_cxx_werror_flag" ||
5484 test ! -s conftest.err
5485 } && test -s conftest.$ac_objext; then
5488 echo "$as_me: failed program was:" >&5
5489 sed 's/^/| /' conftest.$ac_ext >&5
5491 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5493 cat >conftest.$ac_ext <<_ACEOF
5496 cat confdefs.h >>conftest.$ac_ext
5497 cat >>conftest.$ac_ext <<_ACEOF
5498 /* end confdefs.h. */
5508 rm -f conftest.$ac_objext
5509 if { (ac_try="$ac_compile"
5511 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5512 *) ac_try_echo
=$ac_try;;
5514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5515 (eval "$ac_compile") 2>conftest.er1
5517 grep -v '^ *+' conftest.er1
>conftest.err
5519 cat conftest.err
>&5
5520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5521 (exit $ac_status); } && {
5522 test -z "$ac_cxx_werror_flag" ||
5523 test ! -s conftest.err
5524 } && test -s conftest.
$ac_objext; then
5525 ac_cv_prog_cxx_g
=yes
5527 echo "$as_me: failed program was:" >&5
5528 sed 's/^/| /' conftest.
$ac_ext >&5
5533 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5536 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5539 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5540 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5542 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5543 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5544 if test "$ac_test_CXXFLAGS" = set; then
5545 CXXFLAGS
=$ac_save_CXXFLAGS
5546 elif test $ac_cv_prog_cxx_g = yes; then
5547 if test "$GXX" = yes; then
5553 if test "$GXX" = yes; then
5560 ac_cpp
='$CXXCPP $CPPFLAGS'
5561 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5562 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5563 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5567 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5568 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5569 (test "X$CXX" != "Xg++"))) ; then
5571 ac_cpp
='$CXXCPP $CPPFLAGS'
5572 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5573 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5574 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5575 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5576 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5577 if test -z "$CXXCPP"; then
5578 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5579 echo $ECHO_N "(cached) $ECHO_C" >&6
5581 # Double quotes because CXXCPP needs to be expanded
5582 for CXXCPP
in "$CXX -E" "/lib/cpp"
5585 for ac_cxx_preproc_warn_flag
in '' yes
5587 # Use a header file that comes with gcc, so configuring glibc
5588 # with a fresh cross-compiler works.
5589 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5590 # <limits.h> exists even on freestanding compilers.
5591 # On the NeXT, cc -E runs the code through the compiler's parser,
5592 # not just through cpp. "Syntax error" is here to catch this case.
5593 cat >conftest.
$ac_ext <<_ACEOF
5596 cat confdefs.h
>>conftest.
$ac_ext
5597 cat >>conftest.
$ac_ext <<_ACEOF
5598 /* end confdefs.h. */
5600 # include <limits.h>
5602 # include <assert.h>
5606 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5608 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5609 *) ac_try_echo=$ac_try;;
5611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5612 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5614 grep -v '^ *+' conftest.er1 >conftest.err
5616 cat conftest.err >&5
5617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5618 (exit $ac_status); } >/dev/null && {
5619 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5620 test ! -s conftest.err
5624 echo "$as_me: failed program was:" >&5
5625 sed 's/^/| /' conftest.$ac_ext >&5
5627 # Broken: fails on valid input.
5631 rm -f conftest.err conftest.$ac_ext
5633 # OK, works on sane cases. Now check whether nonexistent headers
5634 # can be detected and how.
5635 cat >conftest.$ac_ext <<_ACEOF
5638 cat confdefs.h >>conftest.$ac_ext
5639 cat >>conftest.$ac_ext <<_ACEOF
5640 /* end confdefs.h. */
5641 #include <ac_nonexistent.h>
5643 if { (ac_try="$ac_cpp conftest.$ac_ext"
5645 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5646 *) ac_try_echo
=$ac_try;;
5648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5649 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5651 grep -v '^ *+' conftest.er1
>conftest.err
5653 cat conftest.err
>&5
5654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5655 (exit $ac_status); } >/dev
/null
&& {
5656 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5657 test ! -s conftest.err
5659 # Broken: success on invalid input.
5662 echo "$as_me: failed program was:" >&5
5663 sed 's/^/| /' conftest.
$ac_ext >&5
5665 # Passes both tests.
5670 rm -f conftest.err conftest.
$ac_ext
5673 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5674 rm -f conftest.err conftest.
$ac_ext
5675 if $ac_preproc_ok; then
5680 ac_cv_prog_CXXCPP
=$CXXCPP
5683 CXXCPP
=$ac_cv_prog_CXXCPP
5685 ac_cv_prog_CXXCPP
=$CXXCPP
5687 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5688 echo "${ECHO_T}$CXXCPP" >&6; }
5690 for ac_cxx_preproc_warn_flag
in '' yes
5692 # Use a header file that comes with gcc, so configuring glibc
5693 # with a fresh cross-compiler works.
5694 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5695 # <limits.h> exists even on freestanding compilers.
5696 # On the NeXT, cc -E runs the code through the compiler's parser,
5697 # not just through cpp. "Syntax error" is here to catch this case.
5698 cat >conftest.
$ac_ext <<_ACEOF
5701 cat confdefs.h
>>conftest.
$ac_ext
5702 cat >>conftest.
$ac_ext <<_ACEOF
5703 /* end confdefs.h. */
5705 # include <limits.h>
5707 # include <assert.h>
5711 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5713 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5714 *) ac_try_echo=$ac_try;;
5716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5717 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5719 grep -v '^ *+' conftest.er1 >conftest.err
5721 cat conftest.err >&5
5722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5723 (exit $ac_status); } >/dev/null && {
5724 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5725 test ! -s conftest.err
5729 echo "$as_me: failed program was:" >&5
5730 sed 's/^/| /' conftest.$ac_ext >&5
5732 # Broken: fails on valid input.
5736 rm -f conftest.err conftest.$ac_ext
5738 # OK, works on sane cases. Now check whether nonexistent headers
5739 # can be detected and how.
5740 cat >conftest.$ac_ext <<_ACEOF
5743 cat confdefs.h >>conftest.$ac_ext
5744 cat >>conftest.$ac_ext <<_ACEOF
5745 /* end confdefs.h. */
5746 #include <ac_nonexistent.h>
5748 if { (ac_try="$ac_cpp conftest.$ac_ext"
5750 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5751 *) ac_try_echo
=$ac_try;;
5753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5754 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5756 grep -v '^ *+' conftest.er1
>conftest.err
5758 cat conftest.err
>&5
5759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5760 (exit $ac_status); } >/dev
/null
&& {
5761 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5762 test ! -s conftest.err
5764 # Broken: success on invalid input.
5767 echo "$as_me: failed program was:" >&5
5768 sed 's/^/| /' conftest.
$ac_ext >&5
5770 # Passes both tests.
5775 rm -f conftest.err conftest.
$ac_ext
5778 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5779 rm -f conftest.err conftest.
$ac_ext
5780 if $ac_preproc_ok; then
5783 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5784 See \`config.log' for more details." >&5
5785 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5786 See \`config.log' for more details." >&2;}
5787 { (exit 1); exit 1; }; }
5791 ac_cpp
='$CXXCPP $CPPFLAGS'
5792 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5793 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5794 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5800 ac_compile
='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5801 ac_link
='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5802 ac_compiler_gnu
=$ac_cv_f77_compiler_gnu
5803 if test -n "$ac_tool_prefix"; then
5804 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
5806 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5807 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
5808 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5809 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5810 if test "${ac_cv_prog_F77+set}" = set; then
5811 echo $ECHO_N "(cached) $ECHO_C" >&6
5813 if test -n "$F77"; then
5814 ac_cv_prog_F77
="$F77" # Let the user override the test.
5816 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5820 test -z "$as_dir" && as_dir
=.
5821 for ac_exec_ext
in '' $ac_executable_extensions; do
5822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5823 ac_cv_prog_F77
="$ac_tool_prefix$ac_prog"
5824 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5834 if test -n "$F77"; then
5835 { echo "$as_me:$LINENO: result: $F77" >&5
5836 echo "${ECHO_T}$F77" >&6; }
5838 { echo "$as_me:$LINENO: result: no" >&5
5839 echo "${ECHO_T}no" >&6; }
5843 test -n "$F77" && break
5846 if test -z "$F77"; then
5848 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
5850 # Extract the first word of "$ac_prog", so it can be a program name with args.
5851 set dummy
$ac_prog; ac_word
=$2
5852 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5853 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5854 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5855 echo $ECHO_N "(cached) $ECHO_C" >&6
5857 if test -n "$ac_ct_F77"; then
5858 ac_cv_prog_ac_ct_F77
="$ac_ct_F77" # Let the user override the test.
5860 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5864 test -z "$as_dir" && as_dir
=.
5865 for ac_exec_ext
in '' $ac_executable_extensions; do
5866 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5867 ac_cv_prog_ac_ct_F77
="$ac_prog"
5868 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5877 ac_ct_F77
=$ac_cv_prog_ac_ct_F77
5878 if test -n "$ac_ct_F77"; then
5879 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5880 echo "${ECHO_T}$ac_ct_F77" >&6; }
5882 { echo "$as_me:$LINENO: result: no" >&5
5883 echo "${ECHO_T}no" >&6; }
5887 test -n "$ac_ct_F77" && break
5890 if test "x$ac_ct_F77" = x
; then
5893 case $cross_compiling:$ac_tool_warned in
5895 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5896 whose name does not start with the host triplet. If you think this
5897 configuration is useful to you, please write to autoconf@gnu.org." >&5
5898 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5899 whose name does not start with the host triplet. If you think this
5900 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5901 ac_tool_warned
=yes ;;
5908 # Provide some information about the compiler.
5909 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
5910 ac_compiler
=`set X $ac_compile; echo $2`
5911 { (ac_try
="$ac_compiler --version >&5"
5913 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5914 *) ac_try_echo=$ac_try;;
5916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5917 (eval "$ac_compiler --version >&5") 2>&5
5919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5920 (exit $ac_status); }
5921 { (ac_try="$ac_compiler -v >&5"
5923 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5924 *) ac_try_echo
=$ac_try;;
5926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5927 (eval "$ac_compiler -v >&5") 2>&5
5929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5930 (exit $ac_status); }
5931 { (ac_try
="$ac_compiler -V >&5"
5933 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5934 *) ac_try_echo=$ac_try;;
5936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5937 (eval "$ac_compiler -V >&5") 2>&5
5939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5940 (exit $ac_status); }
5943 # If we don't use `.F
' as extension, the preprocessor is not run on the
5944 # input file. (Note that this only needs to work for GNU compilers.)
5947 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5948 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
5949 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5950 echo $ECHO_N "(cached) $ECHO_C" >&6
5952 cat >conftest.$ac_ext <<_ACEOF
5960 rm -f conftest.$ac_objext
5961 if { (ac_try="$ac_compile"
5963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5964 *) ac_try_echo=$ac_try;;
5966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5967 (eval "$ac_compile") 2>conftest.er1
5969 grep -v '^
*+' conftest.er1 >conftest.err
5971 cat conftest.err >&5
5972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5973 (exit $ac_status); } && {
5974 test -z "$ac_f77_werror_flag" ||
5975 test ! -s conftest.err
5976 } && test -s conftest.$ac_objext; then
5979 echo "$as_me: failed program was:" >&5
5980 sed 's
/^
/|
/' conftest.$ac_ext >&5
5985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5986 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5989 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5990 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
5992 ac_test_FFLAGS=${FFLAGS+set}
5993 ac_save_FFLAGS=$FFLAGS
5995 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5996 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
5997 if test "${ac_cv_prog_f77_g+set}" = set; then
5998 echo $ECHO_N "(cached) $ECHO_C" >&6
6001 cat >conftest.$ac_ext <<_ACEOF
6006 rm -f conftest.$ac_objext
6007 if { (ac_try="$ac_compile"
6009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6010 *) ac_try_echo=$ac_try;;
6012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6013 (eval "$ac_compile") 2>conftest.er1
6015 grep -v '^
*+' conftest.er1 >conftest.err
6017 cat conftest.err >&5
6018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6019 (exit $ac_status); } && {
6020 test -z "$ac_f77_werror_flag" ||
6021 test ! -s conftest.err
6022 } && test -s conftest.$ac_objext; then
6023 ac_cv_prog_f77_g=yes
6025 echo "$as_me: failed program was:" >&5
6026 sed 's
/^
/|
/' conftest.$ac_ext >&5
6031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6034 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6035 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6036 if test "$ac_test_FFLAGS" = set; then
6037 FFLAGS=$ac_save_FFLAGS
6038 elif test $ac_cv_prog_f77_g = yes; then
6039 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6045 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6052 G77=`test $ac_compiler_gnu = yes && echo yes`
6054 ac_cpp='$CPP $CPPFLAGS'
6055 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
6056 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
6057 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6061 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works
for C compilers
!
6063 # find the maximum length of command line arguments
6064 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6065 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6066 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6067 echo $ECHO_N "(cached) $ECHO_C" >&6
6074 # On DJGPP, this test can blow up pretty badly due to problems in libc
6075 # (any single argument exceeding 2000 bytes causes a buffer overrun
6076 # during glob expansion). Even if it were fixed, the result of this
6077 # check would be larger than it should be.
6078 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
6082 # Under GNU Hurd, this test is not required because there is
6083 # no limit to the length of command line arguments.
6084 # Libtool will interpret -1 as no limit whatsoever
6085 lt_cv_sys_max_cmd_len
=-1;
6089 # On Win9x/ME, this test blows up -- it succeeds, but takes
6090 # about 5 minutes as the teststring grows exponentially.
6091 # Worse, since 9x/ME are not pre-emptively multitasking,
6092 # you end up with a "frozen" computer, even though with patience
6093 # the test eventually succeeds (with a max line length of 256k).
6094 # Instead, let's just punt: use the minimum linelength reported by
6095 # all of the supported platforms: 8192 (on NT/2K/XP).
6096 lt_cv_sys_max_cmd_len
=8192;
6100 # On BeOS, this test takes a really really long time.
6101 # So we just punt and use a minimum line length of 8192.
6102 lt_cv_sys_max_cmd_len
=8192;
6106 # On AmigaOS with pdksh, this test takes hours, literally.
6107 # So we just punt and use a minimum line length of 8192.
6108 lt_cv_sys_max_cmd_len
=8192;
6111 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
6112 # This has been around since 386BSD, at least. Likely further.
6113 if test -x /sbin
/sysctl
; then
6114 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
6115 elif test -x /usr
/sbin
/sysctl
; then
6116 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
6118 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
6120 # And add a safety zone
6121 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
6122 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
6126 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6127 lt_cv_sys_max_cmd_len
=196608
6131 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6132 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6133 # nice to cause kernel panics so lets avoid the loop below.
6134 # First set a reasonable default.
6135 lt_cv_sys_max_cmd_len
=16384
6137 if test -x /sbin
/sysconfig
; then
6138 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6139 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
6144 lt_cv_sys_max_cmd_len
=102400
6146 sysv5
* | sco5v6
* | sysv4.2uw2
*)
6147 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6148 if test -n "$kargmax"; then
6149 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
6151 lt_cv_sys_max_cmd_len
=32768
6155 # If test is not a shell built-in, we'll probably end up computing a
6156 # maximum length that is only half of the actual maximum length, but
6158 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
6159 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6160 = "XX$teststring") >/dev
/null
2>&1 &&
6161 new_result
=`expr "X$teststring" : ".*" 2>&1` &&
6162 lt_cv_sys_max_cmd_len
=$new_result &&
6163 test $i != 17 # 1/2 MB should be enough
6166 teststring
=$teststring$teststring
6169 # Add a significant safety factor because C++ compilers can tack on massive
6170 # amounts of additional arguments before passing them to the linker.
6171 # It appears as though 1/2 is a usable value.
6172 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
6178 if test -n $lt_cv_sys_max_cmd_len ; then
6179 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6180 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6182 { echo "$as_me:$LINENO: result: none" >&5
6183 echo "${ECHO_T}none" >&6; }
6189 # Check for command to grab the raw symbol name followed by C symbol from nm.
6190 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6191 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6192 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6193 echo $ECHO_N "(cached) $ECHO_C" >&6
6196 # These are sane defaults that work on at least a few old systems.
6197 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6199 # Character class describing NM global symbol codes.
6200 symcode
='[BCDEGRST]'
6202 # Regexp to match symbols that can be accessed directly from C.
6203 sympat
='\([_A-Za-z][_A-Za-z0-9]*\)'
6205 # Transform an extracted symbol line into a proper C declaration
6206 lt_cv_sys_global_symbol_to_cdecl
="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6208 # Transform an extracted symbol line into symbol name and symbol address
6209 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'"
6211 # Define system-specific variables.
6216 cygwin
* | mingw
* | pw32
*)
6217 symcode
='[ABCDGISTW]'
6219 hpux
*) # Its linker distinguishes data from code symbols
6220 if test "$host_cpu" = ia64
; then
6221 symcode
='[ABCDEGRST]'
6223 lt_cv_sys_global_symbol_to_cdecl
="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6224 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'"
6227 if test "$host_cpu" = ia64
; then
6228 symcode
='[ABCDGIRSTW]'
6229 lt_cv_sys_global_symbol_to_cdecl
="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6230 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'"
6234 symcode
='[BCDEGRST]'
6237 symcode
='[BCDEGQRST]'
6248 sysv5
* | sco5v6
* | unixware
* | OpenUNIX
*)
6256 # Handle CRLF in mingw tool chain
6260 opt_cr
=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6264 # If we're using GNU nm, then use its standard symbol codes.
6265 case `$NM -V 2>&1` in
6266 *GNU
* |
*'with BFD'*)
6267 symcode
='[ABCDGIRSTW]' ;;
6270 # Try without a prefix undercore, then with it.
6271 for ac_symprfx
in "" "_"; do
6273 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6274 symxfrm
="\\1 $ac_symprfx\\2 \\2"
6276 # Write the raw and C identifiers.
6277 lt_cv_sys_global_symbol_pipe
="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6279 # Check to see that the pipe works correctly.
6283 cat > conftest.
$ac_ext <<EOF
6288 void nm_test_func(){}
6292 int main(){nm_test_var='a';nm_test_func();return(0);}
6295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6296 (eval $ac_compile) 2>&5
6298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6299 (exit $ac_status); }; then
6300 # Now try to grab the symbols.
6302 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6303 (eval $NM conftest.
$ac_objext \|
$lt_cv_sys_global_symbol_pipe \
> $nlist) 2>&5
6305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6306 (exit $ac_status); } && test -s "$nlist"; then
6307 # Try sorting and uniquifying the output.
6308 if sort "$nlist" |
uniq > "$nlist"T
; then
6309 mv -f "$nlist"T
"$nlist"
6314 # Make sure that we snagged all the symbols we need.
6315 if grep ' nm_test_var$' "$nlist" >/dev
/null
; then
6316 if grep ' nm_test_func$' "$nlist" >/dev
/null
; then
6317 cat <<EOF > conftest.$ac_ext
6323 # Now generate the symbol file.
6324 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6326 cat <<EOF >> conftest.$ac_ext
6327 #if defined (__STDC__) && __STDC__
6328 # define lt_ptr_t void *
6330 # define lt_ptr_t char *
6334 /* The mapping between symbol names and symbols. */
6339 lt_preloaded_symbols[] =
6342 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" |
grep -v main
>> conftest.
$ac_ext
6343 cat <<\EOF
>> conftest.
$ac_ext
6351 # Now try linking the two files.
6352 mv conftest.
$ac_objext conftstm.
$ac_objext
6353 lt_save_LIBS
="$LIBS"
6354 lt_save_CFLAGS
="$CFLAGS"
6355 LIBS
="conftstm.$ac_objext"
6356 CFLAGS
="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6357 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6358 (eval $ac_link) 2>&5
6360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6361 (exit $ac_status); } && test -s conftest
${ac_exeext}; then
6364 LIBS
="$lt_save_LIBS"
6365 CFLAGS
="$lt_save_CFLAGS"
6367 echo "cannot find nm_test_func in $nlist" >&5
6370 echo "cannot find nm_test_var in $nlist" >&5
6373 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6376 echo "$progname: failed program was:" >&5
6377 cat conftest.
$ac_ext >&5
6379 rm -f conftest
* conftst
*
6381 # Do not use the global_symbol_pipe unless it works.
6382 if test "$pipe_works" = yes; then
6385 lt_cv_sys_global_symbol_pipe
=
6391 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6392 lt_cv_sys_global_symbol_to_cdecl
=
6394 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6395 { echo "$as_me:$LINENO: result: failed" >&5
6396 echo "${ECHO_T}failed" >&6; }
6398 { echo "$as_me:$LINENO: result: ok" >&5
6399 echo "${ECHO_T}ok" >&6; }
6402 { echo "$as_me:$LINENO: checking for objdir" >&5
6403 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6404 if test "${lt_cv_objdir+set}" = set; then
6405 echo $ECHO_N "(cached) $ECHO_C" >&6
6407 rm -f .libs
2>/dev
/null
6408 mkdir .libs
2>/dev
/null
6409 if test -d .libs
; then
6412 # MS-DOS does not allow filenames that begin with a dot.
6415 rmdir .libs
2>/dev
/null
6417 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6418 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6419 objdir
=$lt_cv_objdir
6427 # AIX sometimes has problems with the GCC collect2 program. For some
6428 # reason, if we set the COLLECT_NAMES environment variable, the problems
6429 # vanish in a puff of smoke.
6430 if test "X${COLLECT_NAMES+set}" != Xset
; then
6432 export COLLECT_NAMES
6437 # Sed substitution that helps us do robust quoting. It backslashifies
6438 # metacharacters that are still active within double-quoted strings.
6439 Xsed
='sed -e 1s/^X//'
6440 sed_quote_subst
='s/\([\\"\\`$\\\\]\)/\\\1/g'
6442 # Same as above, but do not quote variable references.
6443 double_quote_subst
='s/\([\\"\\`\\\\]\)/\\\1/g'
6445 # Sed substitution to delay expansion of an escaped shell variable in a
6446 # double_quote_subst'ed string.
6447 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
6449 # Sed substitution to avoid accidental globbing in evaled expressions
6450 no_glob_subst
='s/\*/\\\*/g'
6456 default_ofile
=libtool
6457 can_build_shared
=yes
6459 # All known linkers require a `.a' archive for static linking (except MSVC,
6460 # which needs '.lib').
6462 ltmain
="$ac_aux_dir/ltmain.sh"
6463 ofile
="$default_ofile"
6464 with_gnu_ld
="$lt_cv_prog_gnu_ld"
6466 if test -n "$ac_tool_prefix"; then
6467 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6468 set dummy
${ac_tool_prefix}ar; ac_word
=$2
6469 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6470 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6471 if test "${ac_cv_prog_AR+set}" = set; then
6472 echo $ECHO_N "(cached) $ECHO_C" >&6
6474 if test -n "$AR"; then
6475 ac_cv_prog_AR
="$AR" # Let the user override the test.
6477 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6481 test -z "$as_dir" && as_dir
=.
6482 for ac_exec_ext
in '' $ac_executable_extensions; do
6483 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6484 ac_cv_prog_AR
="${ac_tool_prefix}ar"
6485 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6495 if test -n "$AR"; then
6496 { echo "$as_me:$LINENO: result: $AR" >&5
6497 echo "${ECHO_T}$AR" >&6; }
6499 { echo "$as_me:$LINENO: result: no" >&5
6500 echo "${ECHO_T}no" >&6; }
6505 if test -z "$ac_cv_prog_AR"; then
6507 # Extract the first word of "ar", so it can be a program name with args.
6508 set dummy
ar; ac_word
=$2
6509 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6510 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6511 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6512 echo $ECHO_N "(cached) $ECHO_C" >&6
6514 if test -n "$ac_ct_AR"; then
6515 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
6517 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6521 test -z "$as_dir" && as_dir
=.
6522 for ac_exec_ext
in '' $ac_executable_extensions; do
6523 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6524 ac_cv_prog_ac_ct_AR
="ar"
6525 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6534 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
6535 if test -n "$ac_ct_AR"; then
6536 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6537 echo "${ECHO_T}$ac_ct_AR" >&6; }
6539 { echo "$as_me:$LINENO: result: no" >&5
6540 echo "${ECHO_T}no" >&6; }
6543 if test "x$ac_ct_AR" = x
; then
6546 case $cross_compiling:$ac_tool_warned in
6548 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6549 whose name does not start with the host triplet. If you think this
6550 configuration is useful to you, please write to autoconf@gnu.org." >&5
6551 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6552 whose name does not start with the host triplet. If you think this
6553 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6554 ac_tool_warned
=yes ;;
6562 if test -n "$ac_tool_prefix"; then
6563 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6564 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
6565 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6566 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6567 if test "${ac_cv_prog_RANLIB+set}" = set; then
6568 echo $ECHO_N "(cached) $ECHO_C" >&6
6570 if test -n "$RANLIB"; then
6571 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
6573 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6577 test -z "$as_dir" && as_dir
=.
6578 for ac_exec_ext
in '' $ac_executable_extensions; do
6579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6580 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
6581 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6590 RANLIB
=$ac_cv_prog_RANLIB
6591 if test -n "$RANLIB"; then
6592 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6593 echo "${ECHO_T}$RANLIB" >&6; }
6595 { echo "$as_me:$LINENO: result: no" >&5
6596 echo "${ECHO_T}no" >&6; }
6601 if test -z "$ac_cv_prog_RANLIB"; then
6602 ac_ct_RANLIB
=$RANLIB
6603 # Extract the first word of "ranlib", so it can be a program name with args.
6604 set dummy ranlib
; ac_word
=$2
6605 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6606 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6607 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6608 echo $ECHO_N "(cached) $ECHO_C" >&6
6610 if test -n "$ac_ct_RANLIB"; then
6611 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
6613 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6617 test -z "$as_dir" && as_dir
=.
6618 for ac_exec_ext
in '' $ac_executable_extensions; do
6619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6620 ac_cv_prog_ac_ct_RANLIB
="ranlib"
6621 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6630 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
6631 if test -n "$ac_ct_RANLIB"; then
6632 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6633 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6635 { echo "$as_me:$LINENO: result: no" >&5
6636 echo "${ECHO_T}no" >&6; }
6639 if test "x$ac_ct_RANLIB" = x
; then
6642 case $cross_compiling:$ac_tool_warned in
6644 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6645 whose name does not start with the host triplet. If you think this
6646 configuration is useful to you, please write to autoconf@gnu.org." >&5
6647 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6648 whose name does not start with the host triplet. If you think this
6649 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6650 ac_tool_warned
=yes ;;
6652 RANLIB
=$ac_ct_RANLIB
6655 RANLIB
="$ac_cv_prog_RANLIB"
6658 if test -n "$ac_tool_prefix"; then
6659 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6660 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
6661 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6662 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6663 if test "${ac_cv_prog_STRIP+set}" = set; then
6664 echo $ECHO_N "(cached) $ECHO_C" >&6
6666 if test -n "$STRIP"; then
6667 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
6669 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6673 test -z "$as_dir" && as_dir
=.
6674 for ac_exec_ext
in '' $ac_executable_extensions; do
6675 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6676 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
6677 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6686 STRIP
=$ac_cv_prog_STRIP
6687 if test -n "$STRIP"; then
6688 { echo "$as_me:$LINENO: result: $STRIP" >&5
6689 echo "${ECHO_T}$STRIP" >&6; }
6691 { echo "$as_me:$LINENO: result: no" >&5
6692 echo "${ECHO_T}no" >&6; }
6697 if test -z "$ac_cv_prog_STRIP"; then
6699 # Extract the first word of "strip", so it can be a program name with args.
6700 set dummy strip
; ac_word
=$2
6701 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6702 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6703 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6704 echo $ECHO_N "(cached) $ECHO_C" >&6
6706 if test -n "$ac_ct_STRIP"; then
6707 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
6709 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6713 test -z "$as_dir" && as_dir
=.
6714 for ac_exec_ext
in '' $ac_executable_extensions; do
6715 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6716 ac_cv_prog_ac_ct_STRIP
="strip"
6717 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6726 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
6727 if test -n "$ac_ct_STRIP"; then
6728 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6729 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6731 { echo "$as_me:$LINENO: result: no" >&5
6732 echo "${ECHO_T}no" >&6; }
6735 if test "x$ac_ct_STRIP" = x
; then
6738 case $cross_compiling:$ac_tool_warned in
6740 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6741 whose name does not start with the host triplet. If you think this
6742 configuration is useful to you, please write to autoconf@gnu.org." >&5
6743 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6744 whose name does not start with the host triplet. If you think this
6745 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6746 ac_tool_warned
=yes ;;
6751 STRIP
="$ac_cv_prog_STRIP"
6756 old_CFLAGS
="$CFLAGS"
6758 # Set sane defaults for various variables
6759 test -z "$AR" && AR
=ar
6760 test -z "$AR_FLAGS" && AR_FLAGS
=cru
6761 test -z "$AS" && AS
=as
6762 test -z "$CC" && CC
=cc
6763 test -z "$LTCC" && LTCC
=$CC
6764 test -z "$LTCFLAGS" && LTCFLAGS
=$CFLAGS
6765 test -z "$DLLTOOL" && DLLTOOL
=dlltool
6766 test -z "$LD" && LD
=ld
6767 test -z "$LN_S" && LN_S
="ln -s"
6768 test -z "$MAGIC_CMD" && MAGIC_CMD
=file
6769 test -z "$NM" && NM
=nm
6770 test -z "$SED" && SED
=sed
6771 test -z "$OBJDUMP" && OBJDUMP
=objdump
6772 test -z "$RANLIB" && RANLIB
=:
6773 test -z "$STRIP" && STRIP
=:
6774 test -z "$ac_objext" && ac_objext
=o
6776 # Determine commands to create old-style static archives.
6777 old_archive_cmds
='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6778 old_postinstall_cmds
='chmod 644 $oldlib'
6779 old_postuninstall_cmds
=
6781 if test -n "$RANLIB"; then
6784 old_postinstall_cmds
="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6787 old_postinstall_cmds
="$old_postinstall_cmds~\$RANLIB \$oldlib"
6790 old_archive_cmds
="$old_archive_cmds~\$RANLIB \$oldlib"
6793 for cc_temp
in $compiler""; do
6795 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
6796 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
6801 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6804 # Only perform the check for file, if the check method requires it
6805 case $deplibs_check_method in
6807 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6808 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6809 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6810 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6811 echo $ECHO_N "(cached) $ECHO_C" >&6
6815 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
6818 lt_save_MAGIC_CMD
="$MAGIC_CMD"
6819 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
6820 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
6821 for ac_dir
in $ac_dummy; do
6823 test -z "$ac_dir" && ac_dir
=.
6824 if test -f $ac_dir/${ac_tool_prefix}file; then
6825 lt_cv_path_MAGIC_CMD
="$ac_dir/${ac_tool_prefix}file"
6826 if test -n "$file_magic_test_file"; then
6827 case $deplibs_check_method in
6829 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6830 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
6831 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
6832 $EGREP "$file_magic_regex" > /dev
/null
; then
6837 *** Warning: the command libtool uses to detect shared libraries,
6838 *** $file_magic_cmd, produces output that libtool cannot recognize.
6839 *** The result is that libtool may fail to recognize shared libraries
6840 *** as such. This will affect the creation of libtool libraries that
6841 *** depend on shared libraries, but programs linked with such libtool
6842 *** libraries will work regardless of this problem. Nevertheless, you
6843 *** may want to report the problem to your system manager and/or to
6844 *** bug-libtool@gnu.org
6854 MAGIC_CMD
="$lt_save_MAGIC_CMD"
6859 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
6860 if test -n "$MAGIC_CMD"; then
6861 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6862 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6864 { echo "$as_me:$LINENO: result: no" >&5
6865 echo "${ECHO_T}no" >&6; }
6868 if test -z "$lt_cv_path_MAGIC_CMD"; then
6869 if test -n "$ac_tool_prefix"; then
6870 { echo "$as_me:$LINENO: checking for file" >&5
6871 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6872 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6873 echo $ECHO_N "(cached) $ECHO_C" >&6
6877 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
6880 lt_save_MAGIC_CMD
="$MAGIC_CMD"
6881 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
6882 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
6883 for ac_dir
in $ac_dummy; do
6885 test -z "$ac_dir" && ac_dir
=.
6886 if test -f $ac_dir/file; then
6887 lt_cv_path_MAGIC_CMD
="$ac_dir/file"
6888 if test -n "$file_magic_test_file"; then
6889 case $deplibs_check_method in
6891 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6892 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
6893 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
6894 $EGREP "$file_magic_regex" > /dev
/null
; then
6899 *** Warning: the command libtool uses to detect shared libraries,
6900 *** $file_magic_cmd, produces output that libtool cannot recognize.
6901 *** The result is that libtool may fail to recognize shared libraries
6902 *** as such. This will affect the creation of libtool libraries that
6903 *** depend on shared libraries, but programs linked with such libtool
6904 *** libraries will work regardless of this problem. Nevertheless, you
6905 *** may want to report the problem to your system manager and/or to
6906 *** bug-libtool@gnu.org
6916 MAGIC_CMD
="$lt_save_MAGIC_CMD"
6921 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
6922 if test -n "$MAGIC_CMD"; then
6923 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6924 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6926 { echo "$as_me:$LINENO: result: no" >&5
6927 echo "${ECHO_T}no" >&6; }
6940 enable_win32_dll
=yes
6942 # Check whether --enable-libtool-lock was given.
6943 if test "${enable_libtool_lock+set}" = set; then
6944 enableval
=$enable_libtool_lock;
6947 test "x$enable_libtool_lock" != xno
&& enable_libtool_lock
=yes
6950 # Check whether --with-pic was given.
6951 if test "${with_pic+set}" = set; then
6952 withval
=$with_pic; pic_mode
="$withval"
6957 test -z "$pic_mode" && pic_mode
=default
6959 # Use C for the default configuration in the libtool script
6963 ac_cpp
='$CPP $CPPFLAGS'
6964 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6965 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6966 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6969 # Source file extension for C test sources.
6972 # Object file extension for compiled C test sources.
6976 # Code to be used in simple compile tests
6977 lt_simple_compile_test_code
="int some_variable = 0;\n"
6979 # Code to be used in simple link tests
6980 lt_simple_link_test_code
='int main(){return(0);}\n'
6983 # If no C compiler was specified, use CC.
6986 # If no C compiler flags were specified, use CFLAGS.
6987 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
6989 # Allow CC to be a program name with arguments.
6993 # save warnings/boilerplate of simple test code
6994 ac_outfile
=conftest.
$ac_objext
6995 printf "$lt_simple_compile_test_code" >conftest.
$ac_ext
6996 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
6997 _lt_compiler_boilerplate
=`cat conftest.err`
7000 ac_outfile
=conftest.
$ac_objext
7001 printf "$lt_simple_link_test_code" >conftest.
$ac_ext
7002 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
7003 _lt_linker_boilerplate
=`cat conftest.err`
7008 ## There is no encapsulation within the following macros, do not change
7009 ## the running order or otherwise move them around unless you know exactly
7010 ## what you are doing...
7012 lt_prog_compiler_no_builtin_flag
=
7014 if test "$GCC" = yes; then
7015 lt_prog_compiler_no_builtin_flag
=' -fno-builtin'
7018 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7019 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7020 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7021 echo $ECHO_N "(cached) $ECHO_C" >&6
7023 lt_cv_prog_compiler_rtti_exceptions
=no
7024 ac_outfile
=conftest.
$ac_objext
7025 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
7026 lt_compiler_flag
="-fno-rtti -fno-exceptions"
7027 # Insert the option either (1) after the last *FLAGS variable, or
7028 # (2) before a word containing "conftest.", or (3) at the end.
7029 # Note that $ac_compile itself does not contain backslashes and begins
7030 # with a dollar sign (not a hyphen), so the echo should work correctly.
7031 # The option is referenced via a variable to avoid confusing sed.
7032 lt_compile
=`echo "$ac_compile" | $SED \
7033 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7034 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7035 -e 's:$: $lt_compiler_flag:'`
7036 (eval echo "\"\$as_me:7036: $lt_compile\"" >&5)
7037 (eval "$lt_compile" 2>conftest.err
)
7039 cat conftest.err
>&5
7040 echo "$as_me:7040: \$? = $ac_status" >&5
7041 if (exit $ac_status) && test -s "$ac_outfile"; then
7042 # The compiler can only warn and ignore the option if not recognized
7043 # So say no if there are warnings other than the usual output.
7044 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
7045 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
7046 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
7047 lt_cv_prog_compiler_rtti_exceptions
=yes
7053 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7054 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7056 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
7057 lt_prog_compiler_no_builtin_flag
="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7064 lt_prog_compiler_wl
=
7065 lt_prog_compiler_pic
=
7066 lt_prog_compiler_static
=
7068 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7069 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7071 if test "$GCC" = yes; then
7072 lt_prog_compiler_wl
='-Wl,'
7073 lt_prog_compiler_static
='-static'
7077 # All AIX code is PIC.
7078 if test "$host_cpu" = ia64
; then
7079 # AIX 5 now supports IA64 processor
7080 lt_prog_compiler_static
='-Bstatic'
7085 # FIXME: we need at least 68020 code to build shared libraries, but
7086 # adding the `-m68020' flag to GCC prevents building anything better,
7088 lt_prog_compiler_pic
='-m68020 -resident32 -malways-restore-a4'
7091 beos
* | cygwin
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
7092 # PIC is the default for these OSes.
7095 mingw
* | pw32
* | os2
*)
7096 # This hack is so that the source file can tell whether it is being
7097 # built for inclusion in a dll (and should export symbols for example).
7098 lt_prog_compiler_pic
='-DDLL_EXPORT'
7101 darwin
* | rhapsody
*)
7102 # PIC is the default on this platform
7103 # Common symbols not allowed in MH_DYLIB files
7104 lt_prog_compiler_pic
='-fno-common'
7108 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7109 # Instead, we relocate shared libraries at runtime.
7113 # Just because we use GCC doesn't mean we suddenly get shared libraries
7114 # on systems that don't support them.
7115 lt_prog_compiler_can_build_shared
=no
7120 if test -d /usr
/nec
; then
7121 lt_prog_compiler_pic
=-Kconform_pic
7126 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7133 lt_prog_compiler_pic
='-fPIC'
7139 lt_prog_compiler_pic
='-fPIC'
7143 # PORTME Check for flag to pass linker flags through the system compiler.
7146 lt_prog_compiler_wl
='-Wl,'
7147 if test "$host_cpu" = ia64
; then
7148 # AIX 5 now supports IA64 processor
7149 lt_prog_compiler_static
='-Bstatic'
7151 lt_prog_compiler_static
='-bnso -bI:/lib/syscalls.exp'
7155 # PIC is the default on this platform
7156 # Common symbols not allowed in MH_DYLIB files
7157 case $cc_basename in
7159 lt_prog_compiler_pic
='-qnocommon'
7160 lt_prog_compiler_wl
='-Wl,'
7165 mingw
* | pw32
* | os2
*)
7166 # This hack is so that the source file can tell whether it is being
7167 # built for inclusion in a dll (and should export symbols for example).
7168 lt_prog_compiler_pic
='-DDLL_EXPORT'
7171 hpux9
* | hpux10
* | hpux11
*)
7172 lt_prog_compiler_wl
='-Wl,'
7173 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7180 lt_prog_compiler_pic
='+Z'
7183 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7184 lt_prog_compiler_static
='${wl}-a ${wl}archive'
7187 irix5
* | irix6
* | nonstopux
*)
7188 lt_prog_compiler_wl
='-Wl,'
7189 # PIC (with -KPIC) is the default.
7190 lt_prog_compiler_static
='-non_shared'
7194 lt_prog_compiler_pic
='-KPIC'
7195 lt_prog_compiler_static
='-Bstatic'
7199 case $cc_basename in
7201 lt_prog_compiler_wl
='-Wl,'
7202 lt_prog_compiler_pic
='-KPIC'
7203 lt_prog_compiler_static
='-static'
7205 pgcc
* | pgf77
* | pgf90
* | pgf95
*)
7206 # Portland Group compilers (*not* the Pentium gcc compiler,
7207 # which looks to be a dead project)
7208 lt_prog_compiler_wl
='-Wl,'
7209 lt_prog_compiler_pic
='-fpic'
7210 lt_prog_compiler_static
='-Bstatic'
7213 lt_prog_compiler_wl
='-Wl,'
7214 # All Alpha code is PIC.
7215 lt_prog_compiler_static
='-non_shared'
7220 osf3
* | osf4
* | osf5
*)
7221 lt_prog_compiler_wl
='-Wl,'
7222 # All OSF/1 code is PIC.
7223 lt_prog_compiler_static
='-non_shared'
7227 lt_prog_compiler_pic
='-KPIC'
7228 lt_prog_compiler_static
='-Bstatic'
7229 case $cc_basename in
7231 lt_prog_compiler_wl
='-Qoption ld ';;
7233 lt_prog_compiler_wl
='-Wl,';;
7238 lt_prog_compiler_wl
='-Qoption ld '
7239 lt_prog_compiler_pic
='-PIC'
7240 lt_prog_compiler_static
='-Bstatic'
7243 sysv4 | sysv4.2uw2
* | sysv4.3
*)
7244 lt_prog_compiler_wl
='-Wl,'
7245 lt_prog_compiler_pic
='-KPIC'
7246 lt_prog_compiler_static
='-Bstatic'
7250 if test -d /usr
/nec
;then
7251 lt_prog_compiler_pic
='-Kconform_pic'
7252 lt_prog_compiler_static
='-Bstatic'
7256 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
7257 lt_prog_compiler_wl
='-Wl,'
7258 lt_prog_compiler_pic
='-KPIC'
7259 lt_prog_compiler_static
='-Bstatic'
7263 lt_prog_compiler_wl
='-Wl,'
7264 lt_prog_compiler_can_build_shared
=no
7268 lt_prog_compiler_pic
='-pic'
7269 lt_prog_compiler_static
='-Bstatic'
7273 lt_prog_compiler_can_build_shared
=no
7278 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7279 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7282 # Check to make sure the PIC flag actually works.
7284 if test -n "$lt_prog_compiler_pic"; then
7286 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7287 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7288 if test "${lt_prog_compiler_pic_works+set}" = set; then
7289 echo $ECHO_N "(cached) $ECHO_C" >&6
7291 lt_prog_compiler_pic_works
=no
7292 ac_outfile
=conftest.
$ac_objext
7293 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
7294 lt_compiler_flag
="$lt_prog_compiler_pic -DPIC"
7295 # Insert the option either (1) after the last *FLAGS variable, or
7296 # (2) before a word containing "conftest.", or (3) at the end.
7297 # Note that $ac_compile itself does not contain backslashes and begins
7298 # with a dollar sign (not a hyphen), so the echo should work correctly.
7299 # The option is referenced via a variable to avoid confusing sed.
7300 lt_compile
=`echo "$ac_compile" | $SED \
7301 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7302 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7303 -e 's:$: $lt_compiler_flag:'`
7304 (eval echo "\"\$as_me:7304: $lt_compile\"" >&5)
7305 (eval "$lt_compile" 2>conftest.err
)
7307 cat conftest.err
>&5
7308 echo "$as_me:7308: \$? = $ac_status" >&5
7309 if (exit $ac_status) && test -s "$ac_outfile"; then
7310 # The compiler can only warn and ignore the option if not recognized
7311 # So say no if there are warnings other than the usual output.
7312 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
7313 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
7314 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
7315 lt_prog_compiler_pic_works
=yes
7321 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7322 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7324 if test x
"$lt_prog_compiler_pic_works" = xyes
; then
7325 case $lt_prog_compiler_pic in
7327 *) lt_prog_compiler_pic
=" $lt_prog_compiler_pic" ;;
7330 lt_prog_compiler_pic
=
7331 lt_prog_compiler_can_build_shared
=no
7336 # For platforms which do not support PIC, -DPIC is meaningless:
7338 lt_prog_compiler_pic
=
7341 lt_prog_compiler_pic
="$lt_prog_compiler_pic -DPIC"
7346 # Check to make sure the static flag actually works.
7348 wl
=$lt_prog_compiler_wl eval lt_tmp_static_flag
=\"$lt_prog_compiler_static\"
7349 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7350 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7351 if test "${lt_prog_compiler_static_works+set}" = set; then
7352 echo $ECHO_N "(cached) $ECHO_C" >&6
7354 lt_prog_compiler_static_works
=no
7355 save_LDFLAGS
="$LDFLAGS"
7356 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
7357 printf "$lt_simple_link_test_code" > conftest.
$ac_ext
7358 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
7359 # The linker can only warn and ignore the option if not recognized
7360 # So say no if there are warnings
7361 if test -s conftest.err
; then
7362 # Append any errors to the config.log.
7363 cat conftest.err
1>&5
7364 $echo "X$_lt_linker_boilerplate" |
$Xsed -e '/^$/d' > conftest.exp
7365 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
7366 if diff conftest.exp conftest.er2
>/dev
/null
; then
7367 lt_prog_compiler_static_works
=yes
7370 lt_prog_compiler_static_works
=yes
7374 LDFLAGS
="$save_LDFLAGS"
7377 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7378 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7380 if test x
"$lt_prog_compiler_static_works" = xyes
; then
7383 lt_prog_compiler_static
=
7387 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7388 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7389 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7390 echo $ECHO_N "(cached) $ECHO_C" >&6
7392 lt_cv_prog_compiler_c_o
=no
7393 $rm -r conftest
2>/dev
/null
7397 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
7399 lt_compiler_flag
="-o out/conftest2.$ac_objext"
7400 # Insert the option either (1) after the last *FLAGS variable, or
7401 # (2) before a word containing "conftest.", or (3) at the end.
7402 # Note that $ac_compile itself does not contain backslashes and begins
7403 # with a dollar sign (not a hyphen), so the echo should work correctly.
7404 lt_compile
=`echo "$ac_compile" | $SED \
7405 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7406 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7407 -e 's:$: $lt_compiler_flag:'`
7408 (eval echo "\"\$as_me:7408: $lt_compile\"" >&5)
7409 (eval "$lt_compile" 2>out
/conftest.err
)
7411 cat out
/conftest.err
>&5
7412 echo "$as_me:7412: \$? = $ac_status" >&5
7413 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
7415 # The compiler can only warn and ignore the option if not recognized
7416 # So say no if there are warnings
7417 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
7418 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
7419 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
7420 lt_cv_prog_compiler_c_o
=yes
7425 # SGI C++ compiler will create directory out/ii_files/ for
7426 # template instantiation
7427 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
7428 $rm out
/* && rmdir out
7434 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7435 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7438 hard_links
="nottested"
7439 if test "$lt_cv_prog_compiler_c_o" = no
&& test "$need_locks" != no
; then
7440 # do not overwrite the value of need_locks provided by the user
7441 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7442 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7445 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
7447 ln conftest.a conftest.b
2>&5 || hard_links
=no
7448 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
7449 { echo "$as_me:$LINENO: result: $hard_links" >&5
7450 echo "${ECHO_T}$hard_links" >&6; }
7451 if test "$hard_links" = no
; then
7452 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7453 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7460 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7461 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7464 allow_undefined_flag
=
7465 enable_shared_with_static_runtimes
=no
7467 archive_expsym_cmds
=
7468 old_archive_From_new_cmds
=
7469 old_archive_from_expsyms_cmds
=
7470 export_dynamic_flag_spec
=
7471 whole_archive_flag_spec
=
7472 thread_safe_flag_spec
=
7473 hardcode_libdir_flag_spec
=
7474 hardcode_libdir_flag_spec_ld
=
7475 hardcode_libdir_separator
=
7478 hardcode_shlibpath_var
=unsupported
7479 link_all_deplibs
=unknown
7480 hardcode_automatic
=no
7483 always_export_symbols
=no
7484 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7485 # include_expsyms should be a list of space-separated symbols to be *always*
7486 # included in the symbol list
7488 # exclude_expsyms can be an extended regexp of symbols to exclude
7489 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7490 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7491 # as well as any symbol that contains `d'.
7492 exclude_expsyms
="_GLOBAL_OFFSET_TABLE_"
7493 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7494 # platforms (ab)use it in PIC code, but their linkers get confused if
7495 # the symbol is explicitly referenced. Since portable code cannot
7496 # rely on this symbol name, it's probably fine to never include it in
7497 # preloaded symbol tables.
7498 extract_expsyms_cmds
=
7499 # Just being paranoid about ensuring that cc_basename is set.
7500 for cc_temp
in $compiler""; do
7502 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
7503 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
7508 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7511 cygwin
* | mingw
* | pw32
*)
7512 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7513 # When not using gcc, we currently assume that we are using
7514 # Microsoft Visual C++.
7515 if test "$GCC" != yes; then
7520 # we just hope/assume this is gcc and not c89 (= MSVC++)
7529 if test "$with_gnu_ld" = yes; then
7530 # If archive_cmds runs LD, not CC, wlarc should be empty
7533 # Set some defaults for GNU ld with shared library support. These
7534 # are reset later if shared libraries are not supported. Putting them
7535 # here allows them to be overridden if necessary.
7536 runpath_var
=LD_RUN_PATH
7537 hardcode_libdir_flag_spec
='${wl}--rpath ${wl}$libdir'
7538 export_dynamic_flag_spec
='${wl}--export-dynamic'
7539 # ancient GNU ld didn't support --whole-archive et. al.
7540 if $LD --help 2>&1 |
grep 'no-whole-archive' > /dev
/null
; then
7541 whole_archive_flag_spec
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7543 whole_archive_flag_spec
=
7545 supports_anon_versioning
=no
7546 case `$LD -v 2>/dev/null` in
7547 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
7548 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
7549 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
7550 *\
2.11.
*) ;; # other 2.11 versions
7551 *) supports_anon_versioning
=yes ;;
7554 # See if GNU ld supports shared libraries.
7556 aix3
* | aix4
* | aix5
*)
7557 # On AIX/PPC, the GNU linker is very broken
7558 if test "$host_cpu" != ia64
; then
7562 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7563 *** to be unable to reliably create shared libraries on AIX.
7564 *** Therefore, libtool is disabling shared libraries support. If you
7565 *** really care for shared libraries, you may want to modify your PATH
7566 *** so that a non-GNU linker is found, and then restart.
7573 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)'
7574 hardcode_libdir_flag_spec
='-L$libdir'
7575 hardcode_minus_L
=yes
7577 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7578 # that the semantics of dynamic libraries on AmigaOS, at least up
7579 # to version 4, is to share data among multiple programs linked
7580 # with the same dynamic library. Since this doesn't match the
7581 # behavior of shared libraries on other platforms, we can't use
7587 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
7588 allow_undefined_flag
=unsupported
7589 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7590 # support --undefined. This deserves some investigation. FIXME
7591 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7597 cygwin
* | mingw
* | pw32
*)
7598 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7599 # as there is no search path for DLLs.
7600 hardcode_libdir_flag_spec
='-L$libdir'
7601 allow_undefined_flag
=unsupported
7602 always_export_symbols
=no
7603 enable_shared_with_static_runtimes
=yes
7604 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7606 if $LD --help 2>&1 |
grep 'auto-import' > /dev
/null
; then
7607 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7608 # If the export-symbols file already is a .def file (1st line
7609 # is EXPORTS), use it as is; otherwise, prepend...
7610 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7611 cp $export_symbols $output_objdir/$soname.def;
7613 echo EXPORTS > $output_objdir/$soname.def;
7614 cat $export_symbols >> $output_objdir/$soname.def;
7616 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7624 hardcode_shlibpath_var
=no
7625 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
7626 export_dynamic_flag_spec
='${wl}-E'
7627 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7628 # Instead, shared libraries are loaded at an image base (0x10000000 by
7629 # default) and relocated if they conflict, which is a slow very memory
7630 # consuming and fragmenting process. To avoid this, we pick a random,
7631 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7632 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7633 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7634 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'
7638 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
7640 case $cc_basename,$host_cpu in
7641 pgcc
*) # Portland Group C compiler
7642 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'
7643 tmp_addflag
=' $pic_flag'
7645 pgf77
* | pgf90
* | pgf95
*) # Portland Group f77 and f90 compilers
7646 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'
7647 tmp_addflag
=' $pic_flag -Mnomain' ;;
7648 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
7649 tmp_addflag
=' -i_dynamic' ;;
7650 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
7651 tmp_addflag
=' -i_dynamic -nofor_main' ;;
7652 ifc
* | ifort
*) # Intel Fortran compiler
7653 tmp_addflag
=' -nofor_main' ;;
7655 archive_cmds
='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7657 if test $supports_anon_versioning = yes; then
7658 archive_expsym_cmds
='$echo "{ global:" > $output_objdir/$libname.ver~
7659 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7660 $echo "local: *; };" >> $output_objdir/$libname.ver~
7661 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7669 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
7670 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7673 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7674 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7679 if $LD -v 2>&1 |
grep 'BFD 2\.8' > /dev
/null
; then
7683 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7684 *** create shared libraries on Solaris systems. Therefore, libtool
7685 *** is disabling shared libraries support. We urge you to upgrade GNU
7686 *** binutils to release 2.9.1 or newer. Another option is to modify
7687 *** your PATH or compiler configuration so that the native linker is
7688 *** used, and then restart.
7691 elif $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
7692 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7693 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7699 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
7700 case `$LD -v 2>&1` in
7701 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
7705 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7706 *** reliably create shared libraries on SCO systems. Therefore, libtool
7707 *** is disabling shared libraries support. We urge you to upgrade GNU
7708 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7709 *** your PATH or compiler configuration so that the native linker is
7710 *** used, and then restart.
7715 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
7716 hardcode_libdir_flag_spec
='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7717 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7718 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7727 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7730 hardcode_shlibpath_var
=no
7734 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
7735 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7736 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7743 if test "$ld_shlibs" = no
; then
7745 hardcode_libdir_flag_spec
=
7746 export_dynamic_flag_spec
=
7747 whole_archive_flag_spec
=
7750 # PORTME fill in a description of your system's linker (not GNU ld)
7753 allow_undefined_flag
=unsupported
7754 always_export_symbols
=yes
7755 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'
7756 # Note: this linker hardcodes the directories in LIBPATH if there
7757 # are no directories specified by -L.
7758 hardcode_minus_L
=yes
7759 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7760 # Neither direct hardcoding nor static linking is supported with a
7762 hardcode_direct
=unsupported
7767 if test "$host_cpu" = ia64
; then
7768 # On IA64, the linker does run time linking by default, so we don't
7769 # have to do anything special.
7770 aix_use_runtimelinking
=no
7771 exp_sym_flag
='-Bexport'
7774 # If we're using GNU nm, then we don't want the "-C" option.
7775 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7776 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
7777 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'
7779 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'
7781 aix_use_runtimelinking
=no
7783 # Test if we are trying to use run time linking or normal
7784 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7785 # need to do runtime linking.
7786 case $host_os in aix4.
[23]|aix4.
[23].
*|aix5
*)
7787 for ld_flag
in $LDFLAGS; do
7788 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
7789 aix_use_runtimelinking
=yes
7796 exp_sym_flag
='-bexport'
7797 no_entry_flag
='-bnoentry'
7800 # When large executables or shared objects are built, AIX ld can
7801 # have problems creating the table of contents. If linking a library
7802 # or program results in "error TOC overflow" add -mminimal-toc to
7803 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7804 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7808 hardcode_libdir_separator
=':'
7809 link_all_deplibs
=yes
7811 if test "$GCC" = yes; then
7812 case $host_os in aix4.
[012]|aix4.
[012].
*)
7813 # We only want to do this on AIX 4.2 and lower, the check
7814 # below for broken collect2 doesn't work under 4.3+
7815 collect2name
=`${CC} -print-prog-name=collect2`
7816 if test -f "$collect2name" && \
7817 strings "$collect2name" |
grep resolve_lib_name
>/dev
/null
7819 # We have reworked collect2
7822 # We have old collect2
7823 hardcode_direct
=unsupported
7824 # It fails to find uninstalled libraries when the uninstalled
7825 # path is not listed in the libpath. Setting hardcode_minus_L
7826 # to unsupported forces relinking
7827 hardcode_minus_L
=yes
7828 hardcode_libdir_flag_spec
='-L$libdir'
7829 hardcode_libdir_separator
=
7833 shared_flag
='-shared'
7834 if test "$aix_use_runtimelinking" = yes; then
7835 shared_flag
="$shared_flag "'${wl}-G'
7839 if test "$host_cpu" = ia64
; then
7840 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7841 # chokes on -Wl,-G. The following line is correct:
7844 if test "$aix_use_runtimelinking" = yes; then
7845 shared_flag
='${wl}-G'
7847 shared_flag
='${wl}-bM:SRE'
7852 # It seems that -bexpall does not export symbols beginning with
7853 # underscore (_), so it is better to generate a list of symbols to export.
7854 always_export_symbols
=yes
7855 if test "$aix_use_runtimelinking" = yes; then
7856 # Warning - without using the other runtime loading flags (-brtl),
7857 # -berok will link without error, but may produce a broken library.
7858 allow_undefined_flag
='-berok'
7859 # Determine the default libpath from the value encoded in an empty executable.
7860 cat >conftest.
$ac_ext <<_ACEOF
7863 cat confdefs.h
>>conftest.
$ac_ext
7864 cat >>conftest.
$ac_ext <<_ACEOF
7865 /* end confdefs.h. */
7875 rm -f conftest.
$ac_objext conftest
$ac_exeext
7876 if { (ac_try
="$ac_link"
7878 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7879 *) ac_try_echo=$ac_try;;
7881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7882 (eval "$ac_link") 2>conftest.er1
7884 grep -v '^ *+' conftest.er1 >conftest.err
7886 cat conftest.err >&5
7887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7888 (exit $ac_status); } && {
7889 test -z "$ac_c_werror_flag" ||
7890 test ! -s conftest.err
7891 } && test -s conftest$ac_exeext &&
7892 $as_test_x conftest$ac_exeext; then
7894 aix_libpath=`dump
-H conftest
$ac_exeext 2>/dev
/null |
$SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7896 # Check for a 64-bit object if we didn't find anything.
7897 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; }
7900 echo "$as_me: failed program was:" >&5
7901 sed 's/^/| /' conftest.$ac_ext >&5
7906 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7907 conftest$ac_exeext conftest.$ac_ext
7908 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7910 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7911 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"
7913 if test "$host_cpu" = ia64; then
7914 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7915 allow_undefined_flag="-z nodefs"
7916 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"
7918 # Determine the default libpath from the value encoded in an empty executable.
7919 cat >conftest.$ac_ext <<_ACEOF
7922 cat confdefs.h >>conftest.$ac_ext
7923 cat >>conftest.$ac_ext <<_ACEOF
7924 /* end confdefs.h. */
7934 rm -f conftest.$ac_objext conftest$ac_exeext
7935 if { (ac_try="$ac_link"
7937 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7938 *) ac_try_echo
=$ac_try;;
7940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7941 (eval "$ac_link") 2>conftest.er1
7943 grep -v '^ *+' conftest.er1
>conftest.err
7945 cat conftest.err
>&5
7946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7947 (exit $ac_status); } && {
7948 test -z "$ac_c_werror_flag" ||
7949 test ! -s conftest.err
7950 } && test -s conftest
$ac_exeext &&
7951 $as_test_x conftest
$ac_exeext; then
7953 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7955 # Check for a 64-bit object if we didn't find anything.
7956 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; }
7959 echo "$as_me: failed program was:" >&5
7960 sed 's/^/| /' conftest.
$ac_ext >&5
7965 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7966 conftest
$ac_exeext conftest.
$ac_ext
7967 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
7969 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
7970 # Warning - without using the other run time loading flags,
7971 # -berok will link without error, but may produce a broken library.
7972 no_undefined_flag
=' ${wl}-bernotok'
7973 allow_undefined_flag
=' ${wl}-berok'
7974 # Exported symbols can be pulled into shared objects from archives
7975 whole_archive_flag_spec
='$convenience'
7976 archive_cmds_need_lc
=yes
7977 # This is similar to how AIX traditionally builds its shared libraries.
7978 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'
7984 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)'
7985 hardcode_libdir_flag_spec
='-L$libdir'
7986 hardcode_minus_L
=yes
7987 # see comment about different semantics on the GNU ld section
7992 export_dynamic_flag_spec
=-rdynamic
7995 cygwin
* | mingw
* | pw32
*)
7996 # When not using gcc, we currently assume that we are using
7997 # Microsoft Visual C++.
7998 # hardcode_libdir_flag_spec is actually meaningless, as there is
7999 # no search path for DLLs.
8000 hardcode_libdir_flag_spec
=' '
8001 allow_undefined_flag
=unsupported
8002 # Tell ltmain to make .lib files, not .a files.
8004 # Tell ltmain to make .dll files, not .so files.
8006 # FIXME: Setting linknames here is a bad hack.
8007 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8008 # The linker will automatically build a .lib file if we build a DLL.
8009 old_archive_From_new_cmds
='true'
8010 # FIXME: Should let the user specify the lib program.
8011 old_archive_cmds
='lib /OUT:$oldlib$oldobjs$old_deplibs'
8012 fix_srcfile_path
='`cygpath -w "$srcfile"`'
8013 enable_shared_with_static_runtimes
=yes
8016 darwin
* | rhapsody
*)
8018 rhapsody
* | darwin1.
[012])
8019 allow_undefined_flag
='${wl}-undefined ${wl}suppress'
8022 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8023 allow_undefined_flag
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8025 case ${MACOSX_DEPLOYMENT_TARGET} in
8027 allow_undefined_flag
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8030 allow_undefined_flag
='${wl}-undefined ${wl}dynamic_lookup'
8036 archive_cmds_need_lc
=no
8038 hardcode_automatic
=yes
8039 hardcode_shlibpath_var
=unsupported
8040 whole_archive_flag_spec
=''
8041 link_all_deplibs
=yes
8042 if test "$GCC" = yes ; then
8043 output_verbose_link_cmd
='echo'
8044 archive_cmds
='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8045 module_cmds
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8046 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8047 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}'
8048 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}'
8050 case $cc_basename in
8052 output_verbose_link_cmd
='echo'
8053 archive_cmds
='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8054 module_cmds
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8055 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8056 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}'
8057 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}'
8067 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8068 hardcode_libdir_flag_spec
='-L$libdir'
8069 hardcode_shlibpath_var
=no
8076 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8077 # support. Future versions do this automatically, but an explicit c++rt0.o
8078 # does not break anything, and helps significantly (at the cost of a little
8081 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8082 hardcode_libdir_flag_spec
='-R$libdir'
8084 hardcode_shlibpath_var
=no
8087 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8089 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8091 hardcode_minus_L
=yes
8092 hardcode_shlibpath_var
=no
8095 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8096 freebsd
* | kfreebsd
*-gnu | dragonfly
*)
8097 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8098 hardcode_libdir_flag_spec
='-R$libdir'
8100 hardcode_shlibpath_var
=no
8104 if test "$GCC" = yes; then
8105 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'
8107 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'
8109 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
8110 hardcode_libdir_separator
=:
8113 # hardcode_minus_L: Not really in the search PATH,
8114 # but as the default location of the library.
8115 hardcode_minus_L
=yes
8116 export_dynamic_flag_spec
='${wl}-E'
8120 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
8121 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8123 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8125 if test "$with_gnu_ld" = no
; then
8126 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
8127 hardcode_libdir_separator
=:
8130 export_dynamic_flag_spec
='${wl}-E'
8132 # hardcode_minus_L: Not really in the search PATH,
8133 # but as the default location of the library.
8134 hardcode_minus_L
=yes
8139 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
8142 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8145 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8148 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8154 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8157 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8160 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8164 if test "$with_gnu_ld" = no
; then
8165 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
8166 hardcode_libdir_separator
=:
8170 hardcode_libdir_flag_spec_ld
='+b $libdir'
8172 hardcode_shlibpath_var
=no
8176 export_dynamic_flag_spec
='${wl}-E'
8178 # hardcode_minus_L: Not really in the search PATH,
8179 # but as the default location of the library.
8180 hardcode_minus_L
=yes
8186 irix5
* | irix6
* | nonstopux
*)
8187 if test "$GCC" = yes; then
8188 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'
8190 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'
8191 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
8193 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
8194 hardcode_libdir_separator
=:
8195 link_all_deplibs
=yes
8199 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
8200 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8202 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8204 hardcode_libdir_flag_spec
='-R$libdir'
8206 hardcode_shlibpath_var
=no
8210 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8212 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
8213 hardcode_libdir_separator
=:
8214 hardcode_shlibpath_var
=no
8219 hardcode_shlibpath_var
=no
8220 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8221 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8222 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8223 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
8224 export_dynamic_flag_spec
='${wl}-E'
8227 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
8228 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8229 hardcode_libdir_flag_spec
='-R$libdir'
8232 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8233 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
8240 hardcode_libdir_flag_spec
='-L$libdir'
8241 hardcode_minus_L
=yes
8242 allow_undefined_flag
=unsupported
8243 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'
8244 old_archive_From_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8248 if test "$GCC" = yes; then
8249 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
8250 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'
8252 allow_undefined_flag
=' -expect_unresolved \*'
8253 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'
8255 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
8256 hardcode_libdir_separator
=:
8259 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
8260 if test "$GCC" = yes; then
8261 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
8262 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'
8263 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
8265 allow_undefined_flag
=' -expect_unresolved \*'
8266 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'
8267 archive_expsym_cmds
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8268 $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'
8270 # Both c and cxx compiler support -rpath directly
8271 hardcode_libdir_flag_spec
='-rpath $libdir'
8273 hardcode_libdir_separator
=:
8277 no_undefined_flag
=' -z text'
8278 if test "$GCC" = yes; then
8280 archive_cmds
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8281 archive_expsym_cmds
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8282 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8285 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8286 archive_expsym_cmds
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8287 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8289 hardcode_libdir_flag_spec
='-R$libdir'
8290 hardcode_shlibpath_var
=no
8292 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
8294 # The compiler driver will combine linker options so we
8295 # cannot just pass the convience library names through
8296 # without $wl, iff we do not link with $LD.
8297 # Luckily, gcc supports the same syntax we need for Sun Studio.
8298 # Supported since Solaris 2.6 (maybe 2.5.1?)
8301 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract' ;;
8303 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' ;;
8306 link_all_deplibs
=yes
8310 if test "x$host_vendor" = xsequent
; then
8311 # Use $CC to link under sequent, because it throws in some extra .o
8312 # files that make .init and .fini sections work.
8313 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8315 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8317 hardcode_libdir_flag_spec
='-L$libdir'
8319 hardcode_minus_L
=yes
8320 hardcode_shlibpath_var
=no
8324 case $host_vendor in
8326 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8327 hardcode_direct
=yes # is this really true???
8330 ## LD is ld it makes a PLAMLIB
8331 ## CC just makes a GrossModule.
8332 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8333 reload_cmds
='$CC -r -o $output$reload_objs'
8337 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8338 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
8341 runpath_var
='LD_RUN_PATH'
8342 hardcode_shlibpath_var
=no
8346 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8347 hardcode_shlibpath_var
=no
8348 export_dynamic_flag_spec
='-Bexport'
8352 if test -d /usr
/nec
; then
8353 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8354 hardcode_shlibpath_var
=no
8355 runpath_var
=LD_RUN_PATH
8356 hardcode_runpath_var
=yes
8361 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
*)
8362 no_undefined_flag
='${wl}-z,text'
8363 archive_cmds_need_lc
=no
8364 hardcode_shlibpath_var
=no
8365 runpath_var
='LD_RUN_PATH'
8367 if test "$GCC" = yes; then
8368 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8369 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8371 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8372 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8376 sysv5
* | sco3.2v5
* | sco5v6
*)
8377 # Note: We can NOT use -z defs as we might desire, because we do not
8378 # link with -lc, and that would cause any symbols used from libc to
8379 # always be unresolved, which means just about no library would
8380 # ever link correctly. If we're not using GNU ld we use -z text
8381 # though, which does catch some bad symbols but isn't as heavy-handed
8383 no_undefined_flag
='${wl}-z,text'
8384 allow_undefined_flag
='${wl}-z,nodefs'
8385 archive_cmds_need_lc
=no
8386 hardcode_shlibpath_var
=no
8387 hardcode_libdir_flag_spec
='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8388 hardcode_libdir_separator
=':'
8389 link_all_deplibs
=yes
8390 export_dynamic_flag_spec
='${wl}-Bexport'
8391 runpath_var
='LD_RUN_PATH'
8393 if test "$GCC" = yes; then
8394 archive_cmds
='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8395 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8397 archive_cmds
='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8398 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8403 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8404 hardcode_libdir_flag_spec
='-L$libdir'
8405 hardcode_shlibpath_var
=no
8414 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8415 echo "${ECHO_T}$ld_shlibs" >&6; }
8416 test "$ld_shlibs" = no
&& can_build_shared
=no
8419 # Do we need to explicitly link libc?
8421 case "x$archive_cmds_need_lc" in
8423 # Assume -lc should be added
8424 archive_cmds_need_lc
=yes
8426 if test "$enable_shared" = yes && test "$GCC" = yes; then
8427 case $archive_cmds in
8429 # FIXME: we may have to deal with multi-command sequences.
8432 # Test whether the compiler implicitly links with -lc since on some
8433 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8434 # to ld, don't add -lc before -lgcc.
8435 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8436 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8438 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
8440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8441 (eval $ac_compile) 2>&5
8443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8444 (exit $ac_status); } 2>conftest.err
; then
8447 libobjs
=conftest.
$ac_objext
8449 wl
=$lt_prog_compiler_wl
8450 pic_flag
=$lt_prog_compiler_pic
8456 lt_save_allow_undefined_flag
=$allow_undefined_flag
8457 allow_undefined_flag
=
8458 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8459 (eval $archive_cmds 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
8461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8462 (exit $ac_status); }
8464 archive_cmds_need_lc
=no
8466 archive_cmds_need_lc
=yes
8468 allow_undefined_flag
=$lt_save_allow_undefined_flag
8470 cat conftest.err
1>&5
8473 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8474 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8481 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8482 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8484 libname_spec
='lib$name'
8492 shlibpath_overrides_runpath
=unknown
8494 dynamic_linker
="$host_os ld.so"
8495 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
8496 if test "$GCC" = yes; then
8497 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8498 if echo "$sys_lib_search_path_spec" |
grep ';' >/dev
/null
; then
8499 # if the path contains ";" then we assume it to be the separator
8500 # otherwise default to the standard path separator (i.e. ":") - it is
8501 # assumed that no part of a normal pathname contains ";" but that should
8502 # okay in the real world where ";" in dirpaths is itself problematic.
8503 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8505 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8508 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
8510 need_lib_prefix
=unknown
8511 hardcode_into_libs
=no
8513 # when you set need_version to no, make sure it does not cause -set_version
8514 # flags to be left without arguments
8515 need_version
=unknown
8520 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
8521 shlibpath_var
=LIBPATH
8523 # AIX 3 has no versioning support, so we append a major version to the name.
8524 soname_spec
='${libname}${release}${shared_ext}$major'
8531 hardcode_into_libs
=yes
8532 if test "$host_cpu" = ia64
; then
8533 # AIX 5 supports IA64
8534 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8535 shlibpath_var
=LD_LIBRARY_PATH
8537 # With GCC up to 2.95.x, collect2 would create an import file
8538 # for dependence libraries. The import file would start with
8539 # the line `#! .'. This would cause the generated library to
8540 # depend on `.', always an invalid library. This was fixed in
8541 # development snapshots of GCC prior to 3.0.
8543 aix4 | aix4.
[01] | aix4.
[01].
*)
8544 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8546 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
8553 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8554 # soname into executable. Probably we can add versioning support to
8555 # collect2, so additional links can be useful in future.
8556 if test "$aix_use_runtimelinking" = yes; then
8557 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8558 # instead of lib<name>.a to let people know that these are not
8559 # typical AIX shared libraries.
8560 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8562 # We preserve .a as extension for shared libraries through AIX4.2
8563 # and later when we are not doing run time linking.
8564 library_names_spec
='${libname}${release}.a $libname.a'
8565 soname_spec
='${libname}${release}${shared_ext}$major'
8567 shlibpath_var
=LIBPATH
8572 library_names_spec
='$libname.ixlibrary $libname.a'
8573 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8574 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'
8578 library_names_spec
='${libname}${shared_ext}'
8579 dynamic_linker
="$host_os ld.so"
8580 shlibpath_var
=LIBRARY_PATH
8586 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8587 soname_spec
='${libname}${release}${shared_ext}$major'
8588 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
8589 shlibpath_var
=LD_LIBRARY_PATH
8590 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8591 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
8592 # the default ld.so.conf also contains /usr/contrib/lib and
8593 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8594 # libtool to hard-code these into programs
8597 cygwin
* | mingw
* | pw32
*)
8598 version_type
=windows
8603 case $GCC,$host_os in
8604 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
8605 library_names_spec
='$libname.dll.a'
8606 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8607 postinstall_cmds
='base_file=`basename \${file}`~
8608 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8609 dldir=$destdir/`dirname \$dlpath`~
8610 test -d \$dldir || mkdir -p \$dldir~
8611 $install_prog $dir/$dlname \$dldir/$dlname~
8612 chmod a+x \$dldir/$dlname'
8613 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8614 dlpath=$dir/\$dldll~
8616 shlibpath_overrides_runpath
=yes
8620 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8621 #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
8622 soname_spec
='`echo ${libname} | sed -e 's
/^lib
//'`${shared_ext}'
8623 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
8626 # MinGW DLLs use traditional 'lib' prefix
8627 #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
8628 soname_spec
='`echo ${libname} | sed -e 's
/^lib
//'`${shared_ext}'
8629 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8630 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
8631 # It is most probably a Windows format PATH printed by
8632 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8633 # path with ; separators, and with drive letters. We can handle the
8634 # drive letters (cygwin fileutils understands them), so leave them,
8635 # especially as we might pass files found there to a mingw objdump,
8636 # which wouldn't understand a cygwinified path. Ahh.
8637 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8639 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8643 # pw32 DLLs use 'pw' prefix rather than 'lib'
8644 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8650 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8653 dynamic_linker
='Win32 ld.exe'
8654 # FIXME: first we should search . and the directory the executable is in
8658 darwin
* | rhapsody
*)
8659 dynamic_linker
="$host_os dyld"
8663 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8664 soname_spec
='${libname}${release}${major}$shared_ext'
8665 shlibpath_overrides_runpath
=yes
8666 shlibpath_var
=DYLD_LIBRARY_PATH
8667 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
8668 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8669 if test "$GCC" = yes; then
8670 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"`
8672 sys_lib_search_path_spec
='/lib /usr/lib /usr/local/lib'
8674 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
8681 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8682 soname_spec
='${libname}${release}${shared_ext}$major'
8683 shlibpath_var
=LD_LIBRARY_PATH
8694 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8695 soname_spec
='${libname}${release}${shared_ext}$major'
8696 shlibpath_var
=LD_LIBRARY_PATH
8697 shlibpath_overrides_runpath
=no
8698 hardcode_into_libs
=yes
8699 dynamic_linker
='GNU ld.so'
8702 freebsd
* | dragonfly
*)
8703 # DragonFly does not have aout. When/if they implement a new
8704 # versioning mechanism, adjust this.
8705 if test -x /usr
/bin
/objformat
; then
8706 objformat
=`/usr/bin/objformat`
8709 freebsd
[123]*) objformat
=aout
;;
8713 version_type
=freebsd-
$objformat
8714 case $version_type in
8716 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8721 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8725 shlibpath_var
=LD_LIBRARY_PATH
8728 shlibpath_overrides_runpath
=yes
8730 freebsd3.
[01]* | freebsdelf3.
[01]*)
8731 shlibpath_overrides_runpath
=yes
8732 hardcode_into_libs
=yes
8734 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
8735 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
8736 shlibpath_overrides_runpath
=no
8737 hardcode_into_libs
=yes
8739 freebsd
*) # from 4.6 on
8740 shlibpath_overrides_runpath
=yes
8741 hardcode_into_libs
=yes
8750 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8751 soname_spec
='${libname}${release}${shared_ext}$major'
8752 shlibpath_var
=LD_LIBRARY_PATH
8753 hardcode_into_libs
=yes
8756 hpux9
* | hpux10
* | hpux11
*)
8757 # Give a soname corresponding to the major version so that dld.sl refuses to
8758 # link against other versions.
8765 hardcode_into_libs
=yes
8766 dynamic_linker
="$host_os dld.so"
8767 shlibpath_var
=LD_LIBRARY_PATH
8768 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
8769 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8770 soname_spec
='${libname}${release}${shared_ext}$major'
8771 if test "X$HPUX_IA64_MODE" = X32
; then
8772 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8774 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
8776 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
8780 hardcode_into_libs
=yes
8781 dynamic_linker
="$host_os dld.sl"
8782 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
8783 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
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 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8787 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
8791 dynamic_linker
="$host_os dld.sl"
8792 shlibpath_var
=SHLIB_PATH
8793 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
8794 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8795 soname_spec
='${libname}${release}${shared_ext}$major'
8798 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8799 postinstall_cmds
='chmod 555 $lib'
8806 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8807 soname_spec
='${libname}${release}${shared_ext}$major'
8808 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
8809 shlibpath_var
=LD_LIBRARY_PATH
8810 shlibpath_overrides_runpath
=no
8811 hardcode_into_libs
=yes
8814 irix5
* | irix6
* | nonstopux
*)
8816 nonstopux
*) version_type
=nonstopux
;;
8818 if test "$lt_cv_prog_gnu_ld" = yes; then
8826 soname_spec
='${libname}${release}${shared_ext}$major'
8827 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8829 irix5
* | nonstopux
*)
8833 case $LD in # libtool.m4 will add one of these switches to LD
8834 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
8835 libsuff
= shlibsuff
= libmagic
=32-bit;;
8836 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
8837 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
8838 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
8839 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
8840 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
8844 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
8845 shlibpath_overrides_runpath
=no
8846 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8847 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
8848 hardcode_into_libs
=yes
8851 # No shared lib support for Linux oldld, aout, or coff.
8852 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
8856 # This must be Linux ELF.
8861 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8862 soname_spec
='${libname}${release}${shared_ext}$major'
8863 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8864 shlibpath_var
=LD_LIBRARY_PATH
8865 shlibpath_overrides_runpath
=no
8866 # This implies no fast_install, which is unacceptable.
8867 # Some rework will be needed to allow for fast_install
8868 # before this can be enabled.
8869 hardcode_into_libs
=yes
8871 # Append ld.so.conf contents to the search path
8872 if test -f /etc
/ld.so.conf
; then
8873 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' ' '`
8874 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
8877 # We used to test for /lib/ld.so.1 and disable shared libraries on
8878 # powerpc, because MkLinux only supported shared libraries with the
8879 # GNU dynamic linker. Since this was broken with cross compilers,
8880 # most powerpc-linux boxes support dynamic linking these days and
8881 # people can always --disable-shared, the test was removed, and we
8882 # assume the GNU/Linux dynamic linker is in use.
8883 dynamic_linker
='GNU/Linux ld.so'
8890 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8891 soname_spec
='${libname}${release}${shared_ext}$major'
8892 shlibpath_var
=LD_LIBRARY_PATH
8893 shlibpath_overrides_runpath
=no
8894 hardcode_into_libs
=yes
8895 dynamic_linker
='GNU ld.so'
8902 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
8903 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8904 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8905 dynamic_linker
='NetBSD (a.out) ld.so'
8907 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8908 soname_spec
='${libname}${release}${shared_ext}$major'
8909 dynamic_linker
='NetBSD ld.elf_so'
8911 shlibpath_var
=LD_LIBRARY_PATH
8912 shlibpath_overrides_runpath
=yes
8913 hardcode_into_libs
=yes
8918 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8919 shlibpath_var
=LD_LIBRARY_PATH
8920 shlibpath_overrides_runpath
=yes
8927 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8928 soname_spec
='${libname}${release}${shared_ext}$major'
8929 shlibpath_var
=LD_LIBRARY_PATH
8930 shlibpath_overrides_runpath
=yes
8935 sys_lib_dlsearch_path_spec
="/usr/lib"
8937 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8939 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
8940 *) need_version
=no
;;
8942 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8943 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8944 shlibpath_var
=LD_LIBRARY_PATH
8945 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8947 openbsd2.
[89] | openbsd2.
[89].
*)
8948 shlibpath_overrides_runpath
=no
8951 shlibpath_overrides_runpath
=yes
8955 shlibpath_overrides_runpath
=yes
8960 libname_spec
='$name'
8963 library_names_spec
='$libname${shared_ext} $libname.a'
8964 dynamic_linker
='OS/2 ld.exe'
8965 shlibpath_var
=LIBPATH
8968 osf3
* | osf4
* | osf5
*)
8972 soname_spec
='${libname}${release}${shared_ext}$major'
8973 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8974 shlibpath_var
=LD_LIBRARY_PATH
8975 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8976 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
8983 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8984 soname_spec
='${libname}${release}${shared_ext}$major'
8985 shlibpath_var
=LD_LIBRARY_PATH
8986 shlibpath_overrides_runpath
=yes
8987 hardcode_into_libs
=yes
8988 # ldd complains unless libraries are executable
8989 postinstall_cmds
='chmod +x $lib'
8994 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8995 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8996 shlibpath_var
=LD_LIBRARY_PATH
8997 shlibpath_overrides_runpath
=yes
8998 if test "$with_gnu_ld" = yes; then
9006 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9007 soname_spec
='${libname}${release}${shared_ext}$major'
9008 shlibpath_var
=LD_LIBRARY_PATH
9009 case $host_vendor in
9011 shlibpath_overrides_runpath
=no
9013 export_dynamic_flag_spec
='${wl}-Blargedynsym'
9014 runpath_var
=LD_RUN_PATH
9022 shlibpath_overrides_runpath
=no
9023 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
9029 if test -d /usr
/nec
;then
9031 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9032 soname_spec
='$libname${shared_ext}.$major'
9033 shlibpath_var
=LD_LIBRARY_PATH
9037 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
9038 version_type
=freebsd-elf
9041 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9042 soname_spec
='${libname}${release}${shared_ext}$major'
9043 shlibpath_var
=LD_LIBRARY_PATH
9044 hardcode_into_libs
=yes
9045 if test "$with_gnu_ld" = yes; then
9046 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9047 shlibpath_overrides_runpath
=no
9049 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
9050 shlibpath_overrides_runpath
=yes
9053 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
9057 sys_lib_dlsearch_path_spec
='/usr/lib'
9062 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9063 soname_spec
='${libname}${release}${shared_ext}$major'
9064 shlibpath_var
=LD_LIBRARY_PATH
9071 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9072 echo "${ECHO_T}$dynamic_linker" >&6; }
9073 test "$dynamic_linker" = no
&& can_build_shared
=no
9075 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
9076 if test "$GCC" = yes; then
9077 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9080 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9081 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9083 if test -n "$hardcode_libdir_flag_spec" || \
9084 test -n "$runpath_var" || \
9085 test "X$hardcode_automatic" = "Xyes" ; then
9087 # We can hardcode non-existant directories.
9088 if test "$hardcode_direct" != no
&&
9089 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9090 # have to relink, otherwise we might link with an installed library
9091 # when we should be linking with a yet-to-be-installed one
9092 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9093 test "$hardcode_minus_L" != no
; then
9094 # Linking always hardcodes the temporary library directory.
9095 hardcode_action
=relink
9097 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9098 hardcode_action
=immediate
9101 # We cannot hardcode anything, or else we can only hardcode existing
9103 hardcode_action
=unsupported
9105 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9106 echo "${ECHO_T}$hardcode_action" >&6; }
9108 if test "$hardcode_action" = relink
; then
9109 # Fast installation is not supported
9110 enable_fast_install
=no
9111 elif test "$shlibpath_overrides_runpath" = yes ||
9112 test "$enable_shared" = no
; then
9113 # Fast installation is not necessary
9114 enable_fast_install
=needless
9119 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9120 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9121 if test -n "$STRIP" && $STRIP -V 2>&1 |
grep "GNU strip" >/dev
/null
; then
9122 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
9123 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
9124 { echo "$as_me:$LINENO: result: yes" >&5
9125 echo "${ECHO_T}yes" >&6; }
9127 # FIXME - insert some real tests, host_os isn't really good enough
9130 if test -n "$STRIP" ; then
9131 striplib
="$STRIP -x"
9132 { echo "$as_me:$LINENO: result: yes" >&5
9133 echo "${ECHO_T}yes" >&6; }
9135 { echo "$as_me:$LINENO: result: no" >&5
9136 echo "${ECHO_T}no" >&6; }
9140 { echo "$as_me:$LINENO: result: no" >&5
9141 echo "${ECHO_T}no" >&6; }
9146 if test "x$enable_dlopen" != xyes
; then
9147 enable_dlopen
=unknown
9148 enable_dlopen_self
=unknown
9149 enable_dlopen_self_static
=unknown
9156 lt_cv_dlopen
="load_add_on"
9158 lt_cv_dlopen_self
=yes
9162 lt_cv_dlopen
="LoadLibrary"
9167 lt_cv_dlopen
="dlopen"
9172 # if libdl is installed we need to link against it
9173 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9174 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9175 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9176 echo $ECHO_N "(cached) $ECHO_C" >&6
9178 ac_check_lib_save_LIBS
=$LIBS
9180 cat >conftest.
$ac_ext <<_ACEOF
9183 cat confdefs.h
>>conftest.
$ac_ext
9184 cat >>conftest.
$ac_ext <<_ACEOF
9185 /* end confdefs.h. */
9187 /* Override any GCC internal prototype to avoid an error.
9188 Use char because int might match the return type of a GCC
9189 builtin and then its argument prototype would still apply. */
9202 rm -f conftest.
$ac_objext conftest
$ac_exeext
9203 if { (ac_try
="$ac_link"
9205 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9206 *) ac_try_echo=$ac_try;;
9208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9209 (eval "$ac_link") 2>conftest.er1
9211 grep -v '^ *+' conftest.er1 >conftest.err
9213 cat conftest.err >&5
9214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9215 (exit $ac_status); } && {
9216 test -z "$ac_c_werror_flag" ||
9217 test ! -s conftest.err
9218 } && test -s conftest$ac_exeext &&
9219 $as_test_x conftest$ac_exeext; then
9220 ac_cv_lib_dl_dlopen=yes
9222 echo "$as_me: failed program was:" >&5
9223 sed 's/^/| /' conftest.$ac_ext >&5
9225 ac_cv_lib_dl_dlopen=no
9228 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9229 conftest$ac_exeext conftest.$ac_ext
9230 LIBS=$ac_check_lib_save_LIBS
9232 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9233 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9234 if test $ac_cv_lib_dl_dlopen = yes; then
9235 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9240 lt_cv_dlopen_self=yes
9247 { echo "$as_me:$LINENO: checking for shl_load" >&5
9248 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9249 if test "${ac_cv_func_shl_load+set}" = set; then
9250 echo $ECHO_N "(cached) $ECHO_C" >&6
9252 cat >conftest.$ac_ext <<_ACEOF
9255 cat confdefs.h >>conftest.$ac_ext
9256 cat >>conftest.$ac_ext <<_ACEOF
9257 /* end confdefs.h. */
9258 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9259 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9260 #define shl_load innocuous_shl_load
9262 /* System header to define __stub macros and hopefully few prototypes,
9263 which can conflict with char shl_load (); below.
9264 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9265 <limits.h> exists even on freestanding compilers. */
9268 # include <limits.h>
9270 # include <assert.h>
9275 /* Override any GCC internal prototype to avoid an error.
9276 Use char because int might match the return type of a GCC
9277 builtin and then its argument prototype would still apply. */
9282 /* The GNU C library defines this for functions which it implements
9283 to always fail with ENOSYS. Some functions are actually named
9284 something starting with __ and the normal name is an alias. */
9285 #if defined __stub_shl_load || defined __stub___shl_load
9297 rm -f conftest.$ac_objext conftest$ac_exeext
9298 if { (ac_try="$ac_link"
9300 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9301 *) ac_try_echo
=$ac_try;;
9303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9304 (eval "$ac_link") 2>conftest.er1
9306 grep -v '^ *+' conftest.er1
>conftest.err
9308 cat conftest.err
>&5
9309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9310 (exit $ac_status); } && {
9311 test -z "$ac_c_werror_flag" ||
9312 test ! -s conftest.err
9313 } && test -s conftest
$ac_exeext &&
9314 $as_test_x conftest
$ac_exeext; then
9315 ac_cv_func_shl_load
=yes
9317 echo "$as_me: failed program was:" >&5
9318 sed 's/^/| /' conftest.
$ac_ext >&5
9320 ac_cv_func_shl_load
=no
9323 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9324 conftest
$ac_exeext conftest.
$ac_ext
9326 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9327 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9328 if test $ac_cv_func_shl_load = yes; then
9329 lt_cv_dlopen
="shl_load"
9331 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9332 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9333 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9334 echo $ECHO_N "(cached) $ECHO_C" >&6
9336 ac_check_lib_save_LIBS
=$LIBS
9338 cat >conftest.
$ac_ext <<_ACEOF
9341 cat confdefs.h
>>conftest.
$ac_ext
9342 cat >>conftest.
$ac_ext <<_ACEOF
9343 /* end confdefs.h. */
9345 /* Override any GCC internal prototype to avoid an error.
9346 Use char because int might match the return type of a GCC
9347 builtin and then its argument prototype would still apply. */
9360 rm -f conftest.
$ac_objext conftest
$ac_exeext
9361 if { (ac_try
="$ac_link"
9363 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9364 *) ac_try_echo=$ac_try;;
9366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9367 (eval "$ac_link") 2>conftest.er1
9369 grep -v '^ *+' conftest.er1 >conftest.err
9371 cat conftest.err >&5
9372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9373 (exit $ac_status); } && {
9374 test -z "$ac_c_werror_flag" ||
9375 test ! -s conftest.err
9376 } && test -s conftest$ac_exeext &&
9377 $as_test_x conftest$ac_exeext; then
9378 ac_cv_lib_dld_shl_load=yes
9380 echo "$as_me: failed program was:" >&5
9381 sed 's/^/| /' conftest.$ac_ext >&5
9383 ac_cv_lib_dld_shl_load=no
9386 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9387 conftest$ac_exeext conftest.$ac_ext
9388 LIBS=$ac_check_lib_save_LIBS
9390 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9391 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9392 if test $ac_cv_lib_dld_shl_load = yes; then
9393 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9395 { echo "$as_me:$LINENO: checking for dlopen" >&5
9396 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9397 if test "${ac_cv_func_dlopen+set}" = set; then
9398 echo $ECHO_N "(cached) $ECHO_C" >&6
9400 cat >conftest.$ac_ext <<_ACEOF
9403 cat confdefs.h >>conftest.$ac_ext
9404 cat >>conftest.$ac_ext <<_ACEOF
9405 /* end confdefs.h. */
9406 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9407 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9408 #define dlopen innocuous_dlopen
9410 /* System header to define __stub macros and hopefully few prototypes,
9411 which can conflict with char dlopen (); below.
9412 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9413 <limits.h> exists even on freestanding compilers. */
9416 # include <limits.h>
9418 # include <assert.h>
9423 /* Override any GCC internal prototype to avoid an error.
9424 Use char because int might match the return type of a GCC
9425 builtin and then its argument prototype would still apply. */
9430 /* The GNU C library defines this for functions which it implements
9431 to always fail with ENOSYS. Some functions are actually named
9432 something starting with __ and the normal name is an alias. */
9433 #if defined __stub_dlopen || defined __stub___dlopen
9445 rm -f conftest.$ac_objext conftest$ac_exeext
9446 if { (ac_try="$ac_link"
9448 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9449 *) ac_try_echo
=$ac_try;;
9451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9452 (eval "$ac_link") 2>conftest.er1
9454 grep -v '^ *+' conftest.er1
>conftest.err
9456 cat conftest.err
>&5
9457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9458 (exit $ac_status); } && {
9459 test -z "$ac_c_werror_flag" ||
9460 test ! -s conftest.err
9461 } && test -s conftest
$ac_exeext &&
9462 $as_test_x conftest
$ac_exeext; then
9463 ac_cv_func_dlopen
=yes
9465 echo "$as_me: failed program was:" >&5
9466 sed 's/^/| /' conftest.
$ac_ext >&5
9468 ac_cv_func_dlopen
=no
9471 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9472 conftest
$ac_exeext conftest.
$ac_ext
9474 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9475 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9476 if test $ac_cv_func_dlopen = yes; then
9477 lt_cv_dlopen
="dlopen"
9479 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9480 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9481 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9482 echo $ECHO_N "(cached) $ECHO_C" >&6
9484 ac_check_lib_save_LIBS
=$LIBS
9486 cat >conftest.
$ac_ext <<_ACEOF
9489 cat confdefs.h
>>conftest.
$ac_ext
9490 cat >>conftest.
$ac_ext <<_ACEOF
9491 /* end confdefs.h. */
9493 /* Override any GCC internal prototype to avoid an error.
9494 Use char because int might match the return type of a GCC
9495 builtin and then its argument prototype would still apply. */
9508 rm -f conftest.
$ac_objext conftest
$ac_exeext
9509 if { (ac_try
="$ac_link"
9511 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9512 *) ac_try_echo=$ac_try;;
9514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9515 (eval "$ac_link") 2>conftest.er1
9517 grep -v '^ *+' conftest.er1 >conftest.err
9519 cat conftest.err >&5
9520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9521 (exit $ac_status); } && {
9522 test -z "$ac_c_werror_flag" ||
9523 test ! -s conftest.err
9524 } && test -s conftest$ac_exeext &&
9525 $as_test_x conftest$ac_exeext; then
9526 ac_cv_lib_dl_dlopen=yes
9528 echo "$as_me: failed program was:" >&5
9529 sed 's/^/| /' conftest.$ac_ext >&5
9531 ac_cv_lib_dl_dlopen=no
9534 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9535 conftest$ac_exeext conftest.$ac_ext
9536 LIBS=$ac_check_lib_save_LIBS
9538 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9539 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9540 if test $ac_cv_lib_dl_dlopen = yes; then
9541 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9543 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9544 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9545 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9546 echo $ECHO_N "(cached) $ECHO_C" >&6
9548 ac_check_lib_save_LIBS=$LIBS
9550 cat >conftest.$ac_ext <<_ACEOF
9553 cat confdefs.h >>conftest.$ac_ext
9554 cat >>conftest.$ac_ext <<_ACEOF
9555 /* end confdefs.h. */
9557 /* Override any GCC internal prototype to avoid an error.
9558 Use char because int might match the return type of a GCC
9559 builtin and then its argument prototype would still apply. */
9572 rm -f conftest.$ac_objext conftest$ac_exeext
9573 if { (ac_try="$ac_link"
9575 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9576 *) ac_try_echo
=$ac_try;;
9578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9579 (eval "$ac_link") 2>conftest.er1
9581 grep -v '^ *+' conftest.er1
>conftest.err
9583 cat conftest.err
>&5
9584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9585 (exit $ac_status); } && {
9586 test -z "$ac_c_werror_flag" ||
9587 test ! -s conftest.err
9588 } && test -s conftest
$ac_exeext &&
9589 $as_test_x conftest
$ac_exeext; then
9590 ac_cv_lib_svld_dlopen
=yes
9592 echo "$as_me: failed program was:" >&5
9593 sed 's/^/| /' conftest.
$ac_ext >&5
9595 ac_cv_lib_svld_dlopen
=no
9598 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9599 conftest
$ac_exeext conftest.
$ac_ext
9600 LIBS
=$ac_check_lib_save_LIBS
9602 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9603 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9604 if test $ac_cv_lib_svld_dlopen = yes; then
9605 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
9607 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9608 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9609 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9610 echo $ECHO_N "(cached) $ECHO_C" >&6
9612 ac_check_lib_save_LIBS
=$LIBS
9614 cat >conftest.
$ac_ext <<_ACEOF
9617 cat confdefs.h
>>conftest.
$ac_ext
9618 cat >>conftest.
$ac_ext <<_ACEOF
9619 /* end confdefs.h. */
9621 /* Override any GCC internal prototype to avoid an error.
9622 Use char because int might match the return type of a GCC
9623 builtin and then its argument prototype would still apply. */
9636 rm -f conftest.
$ac_objext conftest
$ac_exeext
9637 if { (ac_try
="$ac_link"
9639 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9640 *) ac_try_echo=$ac_try;;
9642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9643 (eval "$ac_link") 2>conftest.er1
9645 grep -v '^ *+' conftest.er1 >conftest.err
9647 cat conftest.err >&5
9648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9649 (exit $ac_status); } && {
9650 test -z "$ac_c_werror_flag" ||
9651 test ! -s conftest.err
9652 } && test -s conftest$ac_exeext &&
9653 $as_test_x conftest$ac_exeext; then
9654 ac_cv_lib_dld_dld_link=yes
9656 echo "$as_me: failed program was:" >&5
9657 sed 's/^/| /' conftest.$ac_ext >&5
9659 ac_cv_lib_dld_dld_link=no
9662 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9663 conftest$ac_exeext conftest.$ac_ext
9664 LIBS=$ac_check_lib_save_LIBS
9666 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9667 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9668 if test $ac_cv_lib_dld_dld_link = yes; then
9669 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9690 if test "x$lt_cv_dlopen" != xno; then
9696 case $lt_cv_dlopen in
9698 save_CPPFLAGS="$CPPFLAGS"
9699 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9701 save_LDFLAGS="$LDFLAGS"
9702 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9705 LIBS="$lt_cv_dlopen_libs $LIBS"
9707 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9708 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9709 if test "${lt_cv_dlopen_self+set}" = set; then
9710 echo $ECHO_N "(cached) $ECHO_C" >&6
9712 if test "$cross_compiling" = yes; then :
9713 lt_cv_dlopen_self=cross
9715 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9716 lt_status=$lt_dlunknown
9717 cat > conftest.$ac_ext <<EOF
9718 #line 9718 "configure"
9719 #include "confdefs.h"
9728 # define LT_DLGLOBAL RTLD_GLOBAL
9731 # define LT_DLGLOBAL DL_GLOBAL
9733 # define LT_DLGLOBAL 0
9737 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9738 find out it does not work in some platform. */
9739 #ifndef LT_DLLAZY_OR_NOW
9741 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9744 # define LT_DLLAZY_OR_NOW DL_LAZY
9747 # define LT_DLLAZY_OR_NOW RTLD_NOW
9750 # define LT_DLLAZY_OR_NOW DL_NOW
9752 # define LT_DLLAZY_OR_NOW 0
9760 extern "C" void exit (int);
9763 void fnord() { int i=42;}
9766 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9767 int status = $lt_dlunknown;
9771 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9772 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9773 /* dlclose (self); */
9781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9782 (eval $ac_link) 2>&5
9784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9785 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9786 (./conftest; exit; ) >&5 2>/dev/null
9789 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9790 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9791 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9794 # compilation failed
9795 lt_cv_dlopen_self=no
9802 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9803 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
9805 if test "x$lt_cv_dlopen_self" = xyes; then
9806 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9807 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9808 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
9809 if test "${lt_cv_dlopen_self_static+set}" = set; then
9810 echo $ECHO_N "(cached) $ECHO_C" >&6
9812 if test "$cross_compiling" = yes; then :
9813 lt_cv_dlopen_self_static=cross
9815 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9816 lt_status=$lt_dlunknown
9817 cat > conftest.$ac_ext <<EOF
9818 #line 9818 "configure"
9819 #include "confdefs.h"
9828 # define LT_DLGLOBAL RTLD_GLOBAL
9831 # define LT_DLGLOBAL DL_GLOBAL
9833 # define LT_DLGLOBAL 0
9837 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9838 find out it does not work in some platform. */
9839 #ifndef LT_DLLAZY_OR_NOW
9841 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9844 # define LT_DLLAZY_OR_NOW DL_LAZY
9847 # define LT_DLLAZY_OR_NOW RTLD_NOW
9850 # define LT_DLLAZY_OR_NOW DL_NOW
9852 # define LT_DLLAZY_OR_NOW 0
9860 extern "C" void exit (int);
9863 void fnord() { int i=42;}
9866 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9867 int status = $lt_dlunknown;
9871 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9872 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9873 /* dlclose (self); */
9881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9882 (eval $ac_link) 2>&5
9884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9885 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9886 (./conftest; exit; ) >&5 2>/dev/null
9889 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9890 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9891 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9894 # compilation failed
9895 lt_cv_dlopen_self_static=no
9902 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9903 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
9906 CPPFLAGS="$save_CPPFLAGS"
9907 LDFLAGS="$save_LDFLAGS"
9912 case $lt_cv_dlopen_self in
9913 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9914 *) enable_dlopen_self=unknown ;;
9917 case $lt_cv_dlopen_self_static in
9918 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9919 *) enable_dlopen_self_static=unknown ;;
9924 # Report which library types will actually be built
9925 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9926 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
9927 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
9928 echo "${ECHO_T}$can_build_shared" >&6; }
9930 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9931 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
9932 test "$can_build_shared" = "no" && enable_shared=no
9934 # On AIX, shared libraries and static libraries use the same namespace, and
9935 # are all built from PIC.
9938 test "$enable_shared" = yes && enable_static=no
9939 if test -n "$RANLIB"; then
9940 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9941 postinstall_cmds='$RANLIB $lib'
9946 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9947 test "$enable_shared" = yes && enable_static=no
9951 { echo "$as_me:$LINENO: result: $enable_shared" >&5
9952 echo "${ECHO_T}$enable_shared" >&6; }
9954 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9955 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
9956 # Make sure either enable_shared or enable_static is yes.
9957 test "$enable_shared" = yes || enable_static=yes
9958 { echo "$as_me:$LINENO: result: $enable_static" >&5
9959 echo "${ECHO_T}$enable_static" >&6; }
9961 # The else clause should only fire when bootstrapping the
9962 # libtool distribution, otherwise you forgot to ship ltmain.sh
9963 # with your package, and you will get complaints that there are
9964 # no rules to generate ltmain.sh.
9965 if test -f "$ltmain"; then
9966 # See if we are running on zsh, and set the options which allow our commands through
9967 # without removal of \ escapes.
9968 if test -n "${ZSH_VERSION+set}" ; then
9969 setopt NO_GLOB_SUBST
9971 # Now quote all the things that may contain metacharacters while being
9972 # careful not to overquote the AC_SUBSTed values. We take copies of the
9973 # variables and quote the copies for generation of the libtool script.
9974 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9976 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9977 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9978 deplibs_check_method reload_flag reload_cmds need_locks \
9979 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9980 lt_cv_sys_global_symbol_to_c_name_address \
9981 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9982 old_postinstall_cmds old_postuninstall_cmds \
9986 lt_prog_compiler_wl \
9987 lt_prog_compiler_pic \
9988 lt_prog_compiler_static \
9989 lt_prog_compiler_no_builtin_flag \
9990 export_dynamic_flag_spec \
9991 thread_safe_flag_spec \
9992 whole_archive_flag_spec \
9993 enable_shared_with_static_runtimes \
9995 old_archive_from_new_cmds \
10000 compiler_lib_search_path \
10002 archive_expsym_cmds \
10004 postuninstall_cmds \
10005 old_archive_from_expsyms_cmds \
10006 allow_undefined_flag \
10007 no_undefined_flag \
10008 export_symbols_cmds \
10009 hardcode_libdir_flag_spec \
10010 hardcode_libdir_flag_spec_ld \
10011 hardcode_libdir_separator \
10012 hardcode_automatic \
10014 module_expsym_cmds \
10015 lt_cv_prog_compiler_c_o \
10017 include_expsyms; do
10020 old_archive_cmds | \
10021 old_archive_from_new_cmds | \
10023 archive_expsym_cmds | \
10025 module_expsym_cmds | \
10026 old_archive_from_expsyms_cmds | \
10027 export_symbols_cmds | \
10028 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10029 postinstall_cmds | postuninstall_cmds | \
10030 old_postinstall_cmds | old_postuninstall_cmds | \
10031 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10032 # Double-quote double-evaled strings.
10033 eval "lt_$var=\\\"\`\
$echo \"X\$
$var\" | \
$Xsed -e \"\
$double_quote_subst\" -e \"\
$sed_quote_subst\" -e \"\
$delay_variable_subst\"\
`\\\""
10036 eval "lt_$var=\\\"\`\
$echo \"X\$
$var\" | \
$Xsed -e \"\
$sed_quote_subst\"\
`\\\""
10042 *'\$0 --fallback-echo"')
10043 lt_echo=`$echo "X$lt_echo" |
$Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10047 cfgfile="${ofile}T"
10048 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10050 { echo "$as_me:$LINENO: creating $ofile" >&5
10051 echo "$as_me: creating $ofile" >&6;}
10053 cat <<__EOF__ >> "$cfgfile"
10056 # `$echo "$cfgfile" |
sed 's%^.*/%%'` - Provide generalized library-building support services.
10057 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10058 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10060 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10061 # Free Software Foundation, Inc.
10063 # This file is part of GNU Libtool:
10064 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10066 # This program is free software; you can redistribute it and/or modify
10067 # it under the terms of the GNU General Public License as published by
10068 # the Free Software Foundation; either version 2 of the License, or
10069 # (at your option) any later version.
10071 # This program is distributed in the hope that it will be useful, but
10072 # WITHOUT ANY WARRANTY; without even the implied warranty of
10073 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10074 # General Public License for more details.
10076 # You should have received a copy of the GNU General Public License
10077 # along with this program; if not, write to the Free Software
10078 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10080 # As a special exception to the GNU General Public License, if you
10081 # distribute this file as part of a program that contains a
10082 # configuration script generated by Autoconf, you may include it under
10083 # the same distribution terms that you use for the rest of that program.
10085 # A sed program that does not truncate output.
10088 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10089 Xsed="$SED -e 1s/^X//"
10091 # The HP-UX ksh and POSIX shell print the target directory to stdout
10092 # if CDPATH is set.
10093 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10095 # The names of the tagged configurations supported by this script.
10098 # ### BEGIN LIBTOOL CONFIG
10100 # Libtool was configured on host `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`:
10102 # Shell to use when invoking shell scripts.
10105 # Whether or not to build shared libraries.
10106 build_libtool_libs=$enable_shared
10108 # Whether or not to build static libraries.
10109 build_old_libs=$enable_static
10111 # Whether or not to add -lc for building shared libraries.
10112 build_libtool_need_lc=$archive_cmds_need_lc
10114 # Whether or not to disallow shared libs when runtime libs are static
10115 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10117 # Whether or not to optimize for fast installation.
10118 fast_install=$enable_fast_install
10121 host_alias=$host_alias
10125 # The build system.
10126 build_alias=$build_alias
10130 # An echo program that does not interpret backslashes.
10135 AR_FLAGS=$lt_AR_FLAGS
10140 # LTCC compiler flags.
10141 LTCFLAGS=$lt_LTCFLAGS
10143 # A language-specific compiler.
10146 # Is the compiler the GNU C compiler?
10152 # The linker used to build libraries.
10155 # Whether we need hard or soft links.
10158 # A BSD-compatible nm program.
10161 # A symbol stripping program
10164 # Used to examine libraries when file_magic_cmd begins "file"
10165 MAGIC_CMD=$MAGIC_CMD
10167 # Used on cygwin: DLL creation program.
10170 # Used on cygwin: object dumper.
10173 # Used on cygwin: assembler.
10176 # The name of the directory that contains temporary libtool files.
10179 # How to create reloadable object files.
10180 reload_flag=$lt_reload_flag
10181 reload_cmds=$lt_reload_cmds
10183 # How to pass a linker flag through the compiler.
10184 wl=$lt_lt_prog_compiler_wl
10186 # Object file suffix (normally "o").
10187 objext="$ac_objext"
10189 # Old archive suffix (normally "a").
10192 # Shared library suffix (normally ".so").
10193 shrext_cmds='$shrext_cmds'
10195 # Executable file suffix (normally "").
10198 # Additional compiler flags for building library objects.
10199 pic_flag=$lt_lt_prog_compiler_pic
10202 # What is the maximum length of a command?
10203 max_cmd_len=$lt_cv_sys_max_cmd_len
10205 # Does compiler simultaneously support -c and -o options?
10206 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10208 # Must we lock files when doing compilation?
10209 need_locks=$lt_need_locks
10211 # Do we need the lib prefix for modules?
10212 need_lib_prefix=$need_lib_prefix
10214 # Do we need a version for libraries?
10215 need_version=$need_version
10217 # Whether dlopen is supported.
10218 dlopen_support=$enable_dlopen
10220 # Whether dlopen of programs is supported.
10221 dlopen_self=$enable_dlopen_self
10223 # Whether dlopen of statically linked programs is supported.
10224 dlopen_self_static=$enable_dlopen_self_static
10226 # Compiler flag to prevent dynamic linking.
10227 link_static_flag=$lt_lt_prog_compiler_static
10229 # Compiler flag to turn off builtin functions.
10230 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10232 # Compiler flag to allow reflexive dlopens.
10233 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10235 # Compiler flag to generate shared objects directly from archives.
10236 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10238 # Compiler flag to generate thread-safe objects.
10239 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10241 # Library versioning type.
10242 version_type=$version_type
10244 # Format of library name prefix.
10245 libname_spec=$lt_libname_spec
10247 # List of archive names. First name is the real one, the rest are links.
10248 # The last name is the one that the linker finds with -lNAME.
10249 library_names_spec=$lt_library_names_spec
10251 # The coded name of the library, if different from the real name.
10252 soname_spec=$lt_soname_spec
10254 # Commands used to build and install an old-style archive.
10256 old_archive_cmds=$lt_old_archive_cmds
10257 old_postinstall_cmds=$lt_old_postinstall_cmds
10258 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10260 # Create an old-style archive from a shared archive.
10261 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10263 # Create a temporary old-style archive to link instead of a shared archive.
10264 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10266 # Commands used to build and install a shared archive.
10267 archive_cmds=$lt_archive_cmds
10268 archive_expsym_cmds=$lt_archive_expsym_cmds
10269 postinstall_cmds=$lt_postinstall_cmds
10270 postuninstall_cmds=$lt_postuninstall_cmds
10272 # Commands used to build a loadable module (assumed same as above if empty)
10273 module_cmds=$lt_module_cmds
10274 module_expsym_cmds=$lt_module_expsym_cmds
10276 # Commands to strip libraries.
10277 old_striplib=$lt_old_striplib
10278 striplib=$lt_striplib
10280 # Dependencies to place before the objects being linked to create a
10282 predep_objects=$lt_predep_objects
10284 # Dependencies to place after the objects being linked to create a
10286 postdep_objects=$lt_postdep_objects
10288 # Dependencies to place before the objects being linked to create a
10290 predeps=$lt_predeps
10292 # Dependencies to place after the objects being linked to create a
10294 postdeps=$lt_postdeps
10296 # The library search path used internally by the compiler when linking
10297 # a shared library.
10298 compiler_lib_search_path=$lt_compiler_lib_search_path
10300 # Method to check whether dependent libraries are shared objects.
10301 deplibs_check_method=$lt_deplibs_check_method
10303 # Command to use when deplibs_check_method == file_magic.
10304 file_magic_cmd=$lt_file_magic_cmd
10306 # Flag that allows shared libraries with undefined symbols to be built.
10307 allow_undefined_flag=$lt_allow_undefined_flag
10309 # Flag that forces no undefined symbols.
10310 no_undefined_flag=$lt_no_undefined_flag
10312 # Commands used to finish a libtool library installation in a directory.
10313 finish_cmds=$lt_finish_cmds
10315 # Same as above, but a single script fragment to be evaled but not shown.
10316 finish_eval=$lt_finish_eval
10318 # Take the output of nm and produce a listing of raw symbols and C names.
10319 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10321 # Transform the output of nm in a proper C declaration
10322 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10324 # Transform the output of nm in a C name address pair
10325 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10327 # This is the shared library runtime path variable.
10328 runpath_var=$runpath_var
10330 # This is the shared library path variable.
10331 shlibpath_var=$shlibpath_var
10333 # Is shlibpath searched before the hard-coded library search path?
10334 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10336 # How to hardcode a shared library path into an executable.
10337 hardcode_action=$hardcode_action
10339 # Whether we should hardcode library paths into libraries.
10340 hardcode_into_libs=$hardcode_into_libs
10342 # Flag to hardcode \$libdir into a binary during linking.
10343 # This must work even if \$libdir does not exist.
10344 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10346 # If ld is used when linking, flag to hardcode \$libdir into
10347 # a binary during linking. This must work even if \$libdir does
10349 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10351 # Whether we need a single -rpath flag with a separated argument.
10352 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10354 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10355 # resulting binary.
10356 hardcode_direct=$hardcode_direct
10358 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10359 # resulting binary.
10360 hardcode_minus_L=$hardcode_minus_L
10362 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10363 # the resulting binary.
10364 hardcode_shlibpath_var=$hardcode_shlibpath_var
10366 # Set to yes if building a shared library automatically hardcodes DIR into the library
10367 # and all subsequent libraries and executables linked against it.
10368 hardcode_automatic=$hardcode_automatic
10370 # Variables whose values should be saved in libtool wrapper scripts and
10371 # restored at relink time.
10372 variables_saved_for_relink="$variables_saved_for_relink"
10374 # Whether libtool must link a program against all its dependency libraries.
10375 link_all_deplibs=$link_all_deplibs
10377 # Compile-time system search path for libraries
10378 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10380 # Run-time system search path for libraries
10381 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10383 # Fix the shell variable \$srcfile for the compiler.
10384 fix_srcfile_path="$fix_srcfile_path"
10386 # Set to yes if exported symbols are required.
10387 always_export_symbols=$always_export_symbols
10389 # The commands to list exported symbols.
10390 export_symbols_cmds=$lt_export_symbols_cmds
10392 # The commands to extract the exported symbol list from a shared archive.
10393 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10395 # Symbols that should not be listed in the preloaded symbols.
10396 exclude_expsyms=$lt_exclude_expsyms
10398 # Symbols that must always be exported.
10399 include_expsyms=$lt_include_expsyms
10401 # ### END LIBTOOL CONFIG
10408 cat <<\EOF >> "$cfgfile"
10410 # AIX sometimes has problems with the GCC collect2 program. For some
10411 # reason, if we set the COLLECT_NAMES environment variable, the problems
10412 # vanish in a puff of smoke.
10413 if test "X${COLLECT_NAMES+set}" != Xset; then
10415 export COLLECT_NAMES
10421 # We use sed instead of cat because bash on DJGPP gets confused if
10422 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10423 # text mode, it properly converts lines to CR/LF. This bash problem
10424 # is reportedly fixed, but why not run on old versions too?
10425 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10427 mv -f "$cfgfile" "$ofile" || \
10428 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10432 # If there is no Makefile yet, we rely on a make rule to execute
10433 # `config.status
--recheck' to rerun these tests and create the
10434 # libtool script then.
10435 ltmain_in=`echo $ltmain | sed -e 's
/\.sh$
/.in
/'`
10436 if test -f "$ltmain_in"; then
10437 test -f Makefile && make "$ltmain"
10443 ac_cpp='$CPP $CPPFLAGS'
10444 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
10445 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
10446 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10451 # Check whether --with-tags was given.
10452 if test "${with_tags+set}" = set; then
10453 withval=$with_tags; tagnames="$withval"
10457 if test -f "$ltmain" && test -n "$tagnames"; then
10458 if test ! -f "${ofile}"; then
10459 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist
" >&5
10460 echo "$as_me: WARNING
: output
file \
`$ofile' does not exist" >&2;}
10463 if test -z "$LTCC"; then
10464 eval "`$SHELL ${ofile} --config |
grep '^LTCC='`"
10465 if test -z "$LTCC"; then
10466 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10467 echo "$as_me: WARNING: output file \`$ofile' does not
look like a libtool
script" >&2;}
10469 { echo "$as_me:$LINENO: WARNING
: using \
`LTCC=$LTCC', extracted from \`$ofile'" >&5
10470 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \
`$ofile'" >&2;}
10473 if test -z "$LTCFLAGS"; then
10474 eval "`$SHELL ${ofile} --config |
grep '^LTCFLAGS='`"
10477 # Extract list of available tagged configurations in $ofile.
10478 # Note that this assumes the entire list is on one line.
10479 available_tags=`grep "^available_tags=" "${ofile}" |
$SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10481 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10482 for tagname in $tagnames; do
10484 # Check whether tagname contains only valid characters
10485 case `$echo "X$tagname" |
$Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10487 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10488 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10489 { (exit 1); exit 1; }; }
10493 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10495 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10496 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10497 { (exit 1); exit 1; }; }
10500 # Update the list of available tags.
10501 if test -n "$tagname"; then
10502 echo appending configuration tag \"$tagname\" to $ofile
10506 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10507 ( (test "X$CXX" = "Xg++" && `g
++ -v >/dev
/null
2>&1` ) ||
10508 (test "X$CXX" != "Xg++"))) ; then
10510 ac_cpp='$CXXCPP $CPPFLAGS'
10511 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10512 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10513 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10518 archive_cmds_need_lc_CXX=no
10519 allow_undefined_flag_CXX=
10520 always_export_symbols_CXX=no
10521 archive_expsym_cmds_CXX=
10522 export_dynamic_flag_spec_CXX=
10523 hardcode_direct_CXX=no
10524 hardcode_libdir_flag_spec_CXX=
10525 hardcode_libdir_flag_spec_ld_CXX=
10526 hardcode_libdir_separator_CXX=
10527 hardcode_minus_L_CXX=no
10528 hardcode_shlibpath_var_CXX=unsupported
10529 hardcode_automatic_CXX=no
10531 module_expsym_cmds_CXX=
10532 link_all_deplibs_CXX=unknown
10533 old_archive_cmds_CXX=$old_archive_cmds
10534 no_undefined_flag_CXX=
10535 whole_archive_flag_spec_CXX=
10536 enable_shared_with_static_runtimes_CXX=no
10538 # Dependencies to place before and after the object being linked:
10539 predep_objects_CXX=
10540 postdep_objects_CXX=
10543 compiler_lib_search_path_CXX=
10545 # Source file extension for C++ test sources.
10548 # Object file extension for compiled C++ test sources.
10552 # Code to be used in simple compile tests
10553 lt_simple_compile_test_code="int some_variable = 0;\n"
10555 # Code to be used in simple link tests
10556 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10558 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10560 # If no C compiler was specified, use CC.
10563 # If no C compiler flags were specified, use CFLAGS.
10564 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10566 # Allow CC to be a program name with arguments.
10570 # save warnings/boilerplate of simple test code
10571 ac_outfile=conftest.$ac_objext
10572 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10573 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10574 _lt_compiler_boilerplate=`cat conftest.err
`
10577 ac_outfile=conftest.$ac_objext
10578 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10579 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10580 _lt_linker_boilerplate=`cat conftest.err
`
10584 # Allow CC to be a program name with arguments.
10589 lt_save_with_gnu_ld=$with_gnu_ld
10590 lt_save_path_LD=$lt_cv_path_LD
10591 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10592 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10594 $as_unset lt_cv_prog_gnu_ld
10596 if test -n "${lt_cv_path_LDCXX+set}"; then
10597 lt_cv_path_LD=$lt_cv_path_LDCXX
10599 $as_unset lt_cv_path_LD
10601 test -z "${LDCXX+set}" || LD=$LDCXX
10605 for cc_temp in $compiler""; do
10607 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10608 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10613 cc_basename=`$echo "X$cc_temp" |
$Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10616 # We don't want -fno-exception wen compiling C++ code, so set the
10617 # no_builtin_flag separately
10618 if test "$GXX" = yes; then
10619 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10621 lt_prog_compiler_no_builtin_flag_CXX=
10624 if test "$GXX" = yes; then
10625 # Set up default GNU C++ configuration
10628 # Check whether --with-gnu-ld was given.
10629 if test "${with_gnu_ld+set}" = set; then
10630 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10636 if test "$GCC" = yes; then
10637 # Check if gcc -print-prog-name=ld gives a path.
10638 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10639 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10642 # gcc leaves a trailing carriage return which upsets mingw
10643 ac_prog=`($CC -print-prog-name=ld
) 2>&5 |
tr -d '\015'` ;;
10645 ac_prog=`($CC -print-prog-name=ld
) 2>&5` ;;
10648 # Accept absolute paths.
10650 re_direlt='/[^/][^/]*/\.\./'
10651 # Canonicalize the pathname of ld
10652 ac_prog=`echo $ac_prog|
$SED 's%\\\\%/%g'`
10653 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10654 ac_prog=`echo $ac_prog|
$SED "s%$re_direlt%/%"`
10656 test -z "$LD" && LD="$ac_prog"
10659 # If it fails, then pretend we aren't using GCC.
10663 # If it is relative, then search for the first ld in PATH.
10664 with_gnu_ld=unknown
10667 elif test "$with_gnu_ld" = yes; then
10668 { echo "$as_me:$LINENO: checking for GNU ld" >&5
10669 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10671 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10672 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10674 if test "${lt_cv_path_LD+set}" = set; then
10675 echo $ECHO_N "(cached) $ECHO_C" >&6
10677 if test -z "$LD"; then
10678 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10679 for ac_dir in $PATH; do
10681 test -z "$ac_dir" && ac_dir=.
10682 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10683 lt_cv_path_LD="$ac_dir/$ac_prog"
10684 # Check to see if the program is GNU ld. I'd rather use --version,
10685 # but apparently some variants of GNU ld only accept -v.
10686 # Break only if it was the GNU/non-GNU ld that we prefer.
10687 case `"$lt_cv_path_LD" -v 2>&1 </dev
/null
` in
10688 *GNU* | *'with BFD'*)
10689 test "$with_gnu_ld" != no && break
10692 test "$with_gnu_ld" != yes && break
10699 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10703 LD="$lt_cv_path_LD"
10704 if test -n "$LD"; then
10705 { echo "$as_me:$LINENO: result: $LD" >&5
10706 echo "${ECHO_T}$LD" >&6; }
10708 { echo "$as_me:$LINENO: result: no" >&5
10709 echo "${ECHO_T}no" >&6; }
10711 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10712 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10713 { (exit 1); exit 1; }; }
10714 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10715 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10716 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10717 echo $ECHO_N "(cached) $ECHO_C" >&6
10719 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10720 case `$LD -v 2>&1 </dev
/null
` in
10721 *GNU* | *'with BFD'*)
10722 lt_cv_prog_gnu_ld=yes
10725 lt_cv_prog_gnu_ld=no
10729 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10730 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10731 with_gnu_ld=$lt_cv_prog_gnu_ld
10735 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10736 # archiving commands below assume that GNU ld is being used.
10737 if test "$with_gnu_ld" = yes; then
10738 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10739 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'
10741 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10742 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10744 # If archive_cmds runs LD, not CC, wlarc should be empty
10745 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10746 # investigate it a little bit more. (MM)
10749 # ancient GNU ld didn't support --whole-archive et. al.
10750 if eval "`$CC -print-prog-name=ld
` --help 2>&1" | \
10751 grep 'no-whole-archive' > /dev/null; then
10752 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10754 whole_archive_flag_spec_CXX=
10760 # A generic and very simple default shared library creation
10761 # command for GNU C++ for the case where it uses the native
10762 # linker, instead of GNU ld. If possible, this setting should
10763 # overridden to take advantage of the native linker features on
10764 # the platform it is being used on.
10765 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10768 # Commands to make compiler produce verbose output that lists
10769 # what "hidden" libraries, object files and flags are used when
10770 # linking a shared library.
10771 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10779 # PORTME: fill in a description of your system's C++ link characteristics
10780 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10781 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10785 # FIXME: insert proper C++ library support
10789 if test "$host_cpu" = ia64; then
10790 # On IA64, the linker does run time linking by default, so we don't
10791 # have to do anything special.
10792 aix_use_runtimelinking=no
10793 exp_sym_flag='-Bexport'
10796 aix_use_runtimelinking=no
10798 # Test if we are trying to use run time linking or normal
10799 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10800 # need to do runtime linking.
10801 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10802 for ld_flag in $LDFLAGS; do
10805 aix_use_runtimelinking=yes
10813 exp_sym_flag='-bexport'
10814 no_entry_flag='-bnoentry'
10817 # When large executables or shared objects are built, AIX ld can
10818 # have problems creating the table of contents. If linking a library
10819 # or program results in "error TOC overflow" add -mminimal-toc to
10820 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10821 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10823 archive_cmds_CXX=''
10824 hardcode_direct_CXX=yes
10825 hardcode_libdir_separator_CXX=':'
10826 link_all_deplibs_CXX=yes
10828 if test "$GXX" = yes; then
10829 case $host_os in aix4.[012]|aix4.[012].*)
10830 # We only want to do this on AIX 4.2 and lower, the check
10831 # below for broken collect2 doesn't work under 4.3+
10832 collect2name=`${CC} -print-prog-name=collect2
`
10833 if test -f "$collect2name" && \
10834 strings "$collect2name" | grep resolve_lib_name >/dev/null
10836 # We have reworked collect2
10837 hardcode_direct_CXX=yes
10839 # We have old collect2
10840 hardcode_direct_CXX=unsupported
10841 # It fails to find uninstalled libraries when the uninstalled
10842 # path is not listed in the libpath. Setting hardcode_minus_L
10843 # to unsupported forces relinking
10844 hardcode_minus_L_CXX=yes
10845 hardcode_libdir_flag_spec_CXX='-L$libdir'
10846 hardcode_libdir_separator_CXX=
10850 shared_flag='-shared'
10851 if test "$aix_use_runtimelinking" = yes; then
10852 shared_flag="$shared_flag "'${wl}-G'
10856 if test "$host_cpu" = ia64; then
10857 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10858 # chokes on -Wl,-G. The following line is correct:
10861 if test "$aix_use_runtimelinking" = yes; then
10862 shared_flag='${wl}-G'
10864 shared_flag='${wl}-bM:SRE'
10869 # It seems that -bexpall does not export symbols beginning with
10870 # underscore (_), so it is better to generate a list of symbols to export.
10871 always_export_symbols_CXX=yes
10872 if test "$aix_use_runtimelinking" = yes; then
10873 # Warning - without using the other runtime loading flags (-brtl),
10874 # -berok will link without error, but may produce a broken library.
10875 allow_undefined_flag_CXX='-berok'
10876 # Determine the default libpath from the value encoded in an empty executable.
10877 cat >conftest.$ac_ext <<_ACEOF
10880 cat confdefs.h >>conftest.$ac_ext
10881 cat >>conftest.$ac_ext <<_ACEOF
10882 /* end confdefs.h. */
10892 rm -f conftest.$ac_objext conftest$ac_exeext
10893 if { (ac_try="$ac_link"
10894 case "(($ac_try" in
10895 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10896 *) ac_try_echo
=$ac_try;;
10898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10899 (eval "$ac_link") 2>conftest.er1
10901 grep -v '^ *+' conftest.er1
>conftest.err
10903 cat conftest.err
>&5
10904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10905 (exit $ac_status); } && {
10906 test -z "$ac_cxx_werror_flag" ||
10907 test ! -s conftest.err
10908 } && test -s conftest
$ac_exeext &&
10909 $as_test_x conftest
$ac_exeext; then
10911 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10913 # Check for a 64-bit object if we didn't find anything.
10914 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; }
10917 echo "$as_me: failed program was:" >&5
10918 sed 's/^/| /' conftest.
$ac_ext >&5
10923 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10924 conftest
$ac_exeext conftest.
$ac_ext
10925 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
10927 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
10929 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"
10931 if test "$host_cpu" = ia64
; then
10932 hardcode_libdir_flag_spec_CXX
='${wl}-R $libdir:/usr/lib:/lib'
10933 allow_undefined_flag_CXX
="-z nodefs"
10934 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"
10936 # Determine the default libpath from the value encoded in an empty executable.
10937 cat >conftest.
$ac_ext <<_ACEOF
10940 cat confdefs.h
>>conftest.
$ac_ext
10941 cat >>conftest.
$ac_ext <<_ACEOF
10942 /* end confdefs.h. */
10952 rm -f conftest.
$ac_objext conftest
$ac_exeext
10953 if { (ac_try
="$ac_link"
10954 case "(($ac_try" in
10955 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10956 *) ac_try_echo=$ac_try;;
10958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10959 (eval "$ac_link") 2>conftest.er1
10961 grep -v '^ *+' conftest.er1 >conftest.err
10963 cat conftest.err >&5
10964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10965 (exit $ac_status); } && {
10966 test -z "$ac_cxx_werror_flag" ||
10967 test ! -s conftest.err
10968 } && test -s conftest$ac_exeext &&
10969 $as_test_x conftest$ac_exeext; then
10971 aix_libpath=`dump
-H conftest
$ac_exeext 2>/dev
/null |
$SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10973 # Check for a 64-bit object if we didn't find anything.
10974 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; }
10977 echo "$as_me: failed program was:" >&5
10978 sed 's/^/| /' conftest.$ac_ext >&5
10983 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10984 conftest$ac_exeext conftest.$ac_ext
10985 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10987 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10988 # Warning - without using the other run time loading flags,
10989 # -berok will link without error, but may produce a broken library.
10990 no_undefined_flag_CXX=' ${wl}-bernotok'
10991 allow_undefined_flag_CXX=' ${wl}-berok'
10992 # Exported symbols can be pulled into shared objects from archives
10993 whole_archive_flag_spec_CXX='$convenience'
10994 archive_cmds_need_lc_CXX=yes
10995 # This is similar to how AIX traditionally builds its shared libraries.
10996 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'
11002 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11003 allow_undefined_flag_CXX=unsupported
11004 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11005 # support --undefined. This deserves some investigation. FIXME
11006 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11013 case $cc_basename in
11015 # FIXME: insert proper C++ library support
11021 cygwin* | mingw* | pw32*)
11022 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11023 # as there is no search path for DLLs.
11024 hardcode_libdir_flag_spec_CXX='-L$libdir'
11025 allow_undefined_flag_CXX=unsupported
11026 always_export_symbols_CXX=no
11027 enable_shared_with_static_runtimes_CXX=yes
11029 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11030 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'
11031 # If the export-symbols file already is a .def file (1st line
11032 # is EXPORTS), use it as is; otherwise, prepend...
11033 archive_expsym_cmds_CXX='if test "x`$SED 1q
$export_symbols`" = xEXPORTS; then
11034 cp $export_symbols $output_objdir/$soname.def;
11036 echo EXPORTS > $output_objdir/$soname.def;
11037 cat $export_symbols >> $output_objdir/$soname.def;
11039 $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'
11044 darwin* | rhapsody*)
11046 rhapsody* | darwin1.[012])
11047 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11050 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11051 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11053 case ${MACOSX_DEPLOYMENT_TARGET} in
11055 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11058 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11064 archive_cmds_need_lc_CXX=no
11065 hardcode_direct_CXX=no
11066 hardcode_automatic_CXX=yes
11067 hardcode_shlibpath_var_CXX=unsupported
11068 whole_archive_flag_spec_CXX=''
11069 link_all_deplibs_CXX=yes
11071 if test "$GXX" = yes ; then
11072 lt_int_apple_cc_single_mod=no
11073 output_verbose_link_cmd='echo'
11074 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11075 lt_int_apple_cc_single_mod=yes
11077 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11078 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11080 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'
11082 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11083 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11084 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11085 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}'
11087 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}'
11089 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}'
11091 case $cc_basename in
11093 output_verbose_link_cmd='echo'
11094 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'
11095 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11096 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11097 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}'
11098 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}'
11108 case $cc_basename in
11110 # FIXME: insert proper C++ library support
11114 # Green Hills C++ Compiler
11115 # FIXME: insert proper C++ library support
11119 # FIXME: insert proper C++ library support
11125 # C++ shared libraries reported to be fairly broken before switch to ELF
11129 archive_cmds_need_lc_CXX=no
11131 freebsd* | kfreebsd*-gnu | dragonfly*)
11132 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11139 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11140 hardcode_libdir_separator_CXX=:
11141 export_dynamic_flag_spec_CXX='${wl}-E'
11142 hardcode_direct_CXX=yes
11143 hardcode_minus_L_CXX=yes # Not in the search PATH,
11144 # but as the default
11145 # location of the library.
11147 case $cc_basename in
11149 # FIXME: insert proper C++ library support
11153 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'
11154 # Commands to make compiler produce verbose output that lists
11155 # what "hidden" libraries, object files and flags are used when
11156 # linking a shared library.
11158 # There doesn't appear to be a way to prevent this compiler from
11159 # explicitly linking system object files so we need to strip them
11160 # from the output so that they don't get included in the library
11162 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'
11165 if test "$GXX" = yes; then
11166 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'
11168 # FIXME: insert proper C++ library support
11175 if test $with_gnu_ld = no; then
11176 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11177 hardcode_libdir_separator_CXX=:
11181 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11184 export_dynamic_flag_spec_CXX='${wl}-E'
11190 hardcode_direct_CXX=no
11191 hardcode_shlibpath_var_CXX=no
11194 hardcode_direct_CXX=yes
11195 hardcode_minus_L_CXX=yes # Not in the search PATH,
11196 # but as the default
11197 # location of the library.
11201 case $cc_basename in
11203 # FIXME: insert proper C++ library support
11209 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11212 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11215 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11218 # Commands to make compiler produce verbose output that lists
11219 # what "hidden" libraries, object files and flags are used when
11220 # linking a shared library.
11222 # There doesn't appear to be a way to prevent this compiler from
11223 # explicitly linking system object files so we need to strip them
11224 # from the output so that they don't get included in the library
11226 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'
11229 if test "$GXX" = yes; then
11230 if test $with_gnu_ld = no; then
11233 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11236 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11239 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'
11244 # FIXME: insert proper C++ library support
11251 hardcode_direct_CXX=no
11252 hardcode_shlibpath_var_CXX=no
11253 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11254 export_dynamic_flag_spec_CXX='${wl}-E'
11255 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11256 # Instead, shared libraries are loaded at an image base (0x10000000 by
11257 # default) and relocated if they conflict, which is a slow very memory
11258 # consuming and fragmenting process. To avoid this, we pick a random,
11259 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11260 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11261 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'
11262 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'
11265 case $cc_basename in
11268 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'
11270 # Archives containing C++ object files must be created using
11271 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11272 # necessary to make sure instantiated templates are included
11274 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11277 if test "$GXX" = yes; then
11278 if test "$with_gnu_ld" = no; then
11279 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'
11281 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'
11284 link_all_deplibs_CXX=yes
11287 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11288 hardcode_libdir_separator_CXX=:
11291 case $cc_basename in
11293 # Kuck and Associates, Inc. (KAI) C++ Compiler
11295 # KCC will only create a shared library if the output file
11296 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11297 # to its proper name (with version) after linking.
11298 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'
11299 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'
11300 # Commands to make compiler produce verbose output that lists
11301 # what "hidden" libraries, object files and flags are used when
11302 # linking a shared library.
11304 # There doesn't appear to be a way to prevent this compiler from
11305 # explicitly linking system object files so we need to strip them
11306 # from the output so that they don't get included in the library
11308 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'
11310 hardcode_libdir_flag_spec_CXX
='${wl}--rpath,$libdir'
11311 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
11313 # Archives containing C++ object files must be created using
11314 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11315 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
11320 # version 8.0 and above of icpc choke on multiply defined symbols
11321 # if we add $predep_objects and $postdep_objects, however 7.1 and
11322 # earlier do not add the objects themselves.
11323 case `$CC -V 2>&1` in
11325 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11326 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'
11328 *) # Version 8.0 or newer
11331 ia64
*) tmp_idyn
=' -i_dynamic';;
11333 archive_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11334 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'
11337 archive_cmds_need_lc_CXX
=no
11338 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
11339 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
11340 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11343 # Portland Group C++ compiler
11344 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11345 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'
11347 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
11348 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
11349 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'
11353 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11354 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'
11356 runpath_var
=LD_RUN_PATH
11357 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
11358 hardcode_libdir_separator_CXX
=:
11360 # Commands to make compiler produce verbose output that lists
11361 # what "hidden" libraries, object files and flags are used when
11362 # linking a shared library.
11364 # There doesn't appear to be a way to prevent this compiler from
11365 # explicitly linking system object files so we need to strip them
11366 # from the output so that they don't get included in the library
11368 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'
11373 # FIXME: insert proper C++ library support
11377 # FIXME: insert proper C++ library support
11381 case $cc_basename in
11383 # FIXME: insert proper C++ library support
11387 # FIXME: insert proper C++ library support
11393 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
11394 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11396 hardcode_libdir_flag_spec_CXX
='-R$libdir'
11397 hardcode_direct_CXX
=yes
11398 hardcode_shlibpath_var_CXX
=no
11400 # Workaround some broken pre-1.5 toolchains
11401 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11404 # C++ shared libraries are fairly broken
11408 hardcode_direct_CXX
=yes
11409 hardcode_shlibpath_var_CXX
=no
11410 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11411 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
11412 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11413 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11414 export_dynamic_flag_spec_CXX
='${wl}-E'
11415 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11417 output_verbose_link_cmd
='echo'
11420 case $cc_basename in
11422 # Kuck and Associates, Inc. (KAI) C++ Compiler
11424 # KCC will only create a shared library if the output file
11425 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11426 # to its proper name (with version) after linking.
11427 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'
11429 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
11430 hardcode_libdir_separator_CXX
=:
11432 # Archives containing C++ object files must be created using
11433 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11434 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
11438 # Rational C++ 2.4.1
11439 # FIXME: insert proper C++ library support
11443 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
11444 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'
11446 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
11447 hardcode_libdir_separator_CXX
=:
11449 # Commands to make compiler produce verbose output that lists
11450 # what "hidden" libraries, object files and flags are used when
11451 # linking a shared library.
11453 # There doesn't appear to be a way to prevent this compiler from
11454 # explicitly linking system object files so we need to strip them
11455 # from the output so that they don't get included in the library
11457 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'
11460 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
11461 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
11462 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'
11464 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
11465 hardcode_libdir_separator_CXX
=:
11467 # Commands to make compiler produce verbose output that lists
11468 # what "hidden" libraries, object files and flags are used when
11469 # linking a shared library.
11470 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11473 # FIXME: insert proper C++ library support
11480 case $cc_basename in
11482 # Kuck and Associates, Inc. (KAI) C++ Compiler
11484 # KCC will only create a shared library if the output file
11485 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11486 # to its proper name (with version) after linking.
11487 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'
11489 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
11490 hardcode_libdir_separator_CXX
=:
11492 # Archives containing C++ object files must be created using
11493 # the KAI C++ compiler.
11494 old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs'
11497 # Rational C++ 2.4.1
11498 # FIXME: insert proper C++ library support
11502 allow_undefined_flag_CXX
=' -expect_unresolved \*'
11503 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'
11504 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11505 echo "-hidden">> $lib.exp~
11506 $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~
11509 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
11510 hardcode_libdir_separator_CXX
=:
11512 # Commands to make compiler produce verbose output that lists
11513 # what "hidden" libraries, object files and flags are used when
11514 # linking a shared library.
11516 # There doesn't appear to be a way to prevent this compiler from
11517 # explicitly linking system object files so we need to strip them
11518 # from the output so that they don't get included in the library
11520 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'
11523 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
11524 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
11525 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'
11527 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
11528 hardcode_libdir_separator_CXX
=:
11530 # Commands to make compiler produce verbose output that lists
11531 # what "hidden" libraries, object files and flags are used when
11532 # linking a shared library.
11533 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11536 # FIXME: insert proper C++ library support
11543 # FIXME: insert proper C++ library support
11547 case $cc_basename in
11550 # FIXME: insert proper C++ library support
11555 # FIXME: insert proper C++ library support
11559 # FIXME: insert proper C++ library support
11565 case $cc_basename in
11567 # Sun C++ 4.2, 5.x and Centerline C++
11568 archive_cmds_need_lc_CXX
=yes
11569 no_undefined_flag_CXX
=' -zdefs'
11570 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11571 archive_expsym_cmds_CXX
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11572 $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'
11574 hardcode_libdir_flag_spec_CXX
='-R$libdir'
11575 hardcode_shlibpath_var_CXX
=no
11577 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
11579 # The C++ compiler is used as linker so we must use $wl
11580 # flag to pass the commands to the underlying system
11581 # linker. We must also pass each convience library through
11582 # to the system linker between allextract/defaultextract.
11583 # The C++ compiler will combine linker options so we
11584 # cannot just pass the convience library names through
11586 # Supported since Solaris 2.6 (maybe 2.5.1?)
11587 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'
11590 link_all_deplibs_CXX
=yes
11592 output_verbose_link_cmd
='echo'
11594 # Archives containing C++ object files must be created using
11595 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11596 # necessary to make sure instantiated templates are included
11598 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
11601 # Green Hills C++ Compiler
11602 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11604 # The C++ compiler must be used to create the archive.
11605 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11608 # GNU C++ compiler with Solaris linker
11609 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
11610 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
11611 if $CC --version |
grep -v '^2\.7' > /dev
/null
; then
11612 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11613 archive_expsym_cmds_CXX
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11614 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11616 # Commands to make compiler produce verbose output that lists
11617 # what "hidden" libraries, object files and flags are used when
11618 # linking a shared library.
11619 output_verbose_link_cmd
="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11621 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11623 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11624 archive_expsym_cmds_CXX
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11625 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11627 # Commands to make compiler produce verbose output that lists
11628 # what "hidden" libraries, object files and flags are used when
11629 # linking a shared library.
11630 output_verbose_link_cmd
="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11633 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
11638 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
11639 no_undefined_flag_CXX
='${wl}-z,text'
11640 archive_cmds_need_lc_CXX
=no
11641 hardcode_shlibpath_var_CXX
=no
11642 runpath_var
='LD_RUN_PATH'
11644 case $cc_basename in
11646 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11647 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11650 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11651 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11655 sysv5
* | sco3.2v5
* | sco5v6
*)
11656 # Note: We can NOT use -z defs as we might desire, because we do not
11657 # link with -lc, and that would cause any symbols used from libc to
11658 # always be unresolved, which means just about no library would
11659 # ever link correctly. If we're not using GNU ld we use -z text
11660 # though, which does catch some bad symbols but isn't as heavy-handed
11662 # For security reasons, it is highly recommended that you always
11663 # use absolute paths for naming shared libraries, and exclude the
11664 # DT_RUNPATH tag from executables and libraries. But doing so
11665 # requires that you compile everything twice, which is a pain.
11666 # So that behaviour is only enabled if SCOABSPATH is set to a
11667 # non-empty value in the environment. Most likely only useful for
11668 # creating official distributions of packages.
11669 # This is a hack until libtool officially supports absolute path
11670 # names for shared libraries.
11671 no_undefined_flag_CXX
='${wl}-z,text'
11672 allow_undefined_flag_CXX
='${wl}-z,nodefs'
11673 archive_cmds_need_lc_CXX
=no
11674 hardcode_shlibpath_var_CXX
=no
11675 hardcode_libdir_flag_spec_CXX
='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11676 hardcode_libdir_separator_CXX
=':'
11677 link_all_deplibs_CXX
=yes
11678 export_dynamic_flag_spec_CXX
='${wl}-Bexport'
11679 runpath_var
='LD_RUN_PATH'
11681 case $cc_basename in
11683 archive_cmds_CXX
='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11684 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11687 archive_cmds_CXX
='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11688 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11693 case $cc_basename in
11695 # NonStop-UX NCC 3.20
11696 # FIXME: insert proper C++ library support
11700 # FIXME: insert proper C++ library support
11706 # FIXME: insert proper C++ library support
11710 # FIXME: insert proper C++ library support
11714 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11715 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11716 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
11722 ## There is no encapsulation within the following macros, do not change
11723 ## the running order or otherwise move them around unless you know exactly
11724 ## what you are doing...
11726 cat > conftest.
$ac_ext <<EOF
11730 Foo (void) { a = 0; }
11736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11737 (eval $ac_compile) 2>&5
11739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11740 (exit $ac_status); }; then
11741 # Parse the compiler output and extract the necessary
11742 # objects, libraries and library flags.
11744 # Sentinel used to keep track of whether or not we are before
11745 # the conftest object file.
11746 pre_test_object_deps_done
=no
11748 # The `*' in the case matches for architectures that use `case' in
11749 # $output_verbose_cmd can trigger glob expansion during the loop
11750 # eval without this substitution.
11751 output_verbose_link_cmd
=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11753 for p
in `eval $output_verbose_link_cmd`; do
11757 # Some compilers place space between "-{L,R}" and the path.
11758 # Remove the space.
11759 if test $p = "-L" \
11760 ||
test $p = "-R"; then
11767 if test "$pre_test_object_deps_done" = no
; then
11770 # Internal compiler library paths should come after those
11771 # provided the user. The postdeps already come after the
11772 # user supplied libs so there is no need to process them.
11773 if test -z "$compiler_lib_search_path_CXX"; then
11774 compiler_lib_search_path_CXX
="${prev}${p}"
11776 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
11779 # The "-l" case would never come before the object being
11780 # linked, so don't bother handling this case.
11783 if test -z "$postdeps_CXX"; then
11784 postdeps_CXX
="${prev}${p}"
11786 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
11792 # This assumes that the test object file only shows up
11793 # once in the compiler output.
11794 if test "$p" = "conftest.$objext"; then
11795 pre_test_object_deps_done
=yes
11799 if test "$pre_test_object_deps_done" = no
; then
11800 if test -z "$predep_objects_CXX"; then
11801 predep_objects_CXX
="$p"
11803 predep_objects_CXX
="$predep_objects_CXX $p"
11806 if test -z "$postdep_objects_CXX"; then
11807 postdep_objects_CXX
="$p"
11809 postdep_objects_CXX
="$postdep_objects_CXX $p"
11814 *) ;; # Ignore the rest.
11822 echo "libtool.m4: error: problem compiling CXX test program"
11825 $rm -f confest.
$objext
11827 # PORTME: override above test on systems where it is broken
11830 # Interix 3.5 installs completely hosed .la files for C++, so rather than
11831 # hack all around it, let's just trust "g++" to DTRT.
11832 predep_objects_CXX
=
11833 postdep_objects_CXX
=
11838 case $cc_basename in
11840 # Adding this requires a known-good setup of shared libraries for
11841 # Sun compiler versions before 5.6, else PIC objects from an old
11842 # archive will be linked into the output, leading to subtle bugs.
11843 postdeps_CXX
='-lCstd -lCrun'
11850 case " $postdeps_CXX " in
11851 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
11854 lt_prog_compiler_wl_CXX
=
11855 lt_prog_compiler_pic_CXX
=
11856 lt_prog_compiler_static_CXX
=
11858 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11859 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
11861 # C++ specific cases for pic, static, wl, etc.
11862 if test "$GXX" = yes; then
11863 lt_prog_compiler_wl_CXX
='-Wl,'
11864 lt_prog_compiler_static_CXX
='-static'
11868 # All AIX code is PIC.
11869 if test "$host_cpu" = ia64
; then
11870 # AIX 5 now supports IA64 processor
11871 lt_prog_compiler_static_CXX
='-Bstatic'
11875 # FIXME: we need at least 68020 code to build shared libraries, but
11876 # adding the `-m68020' flag to GCC prevents building anything better,
11878 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
11880 beos
* | cygwin
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
11881 # PIC is the default for these OSes.
11883 mingw
* | os2
* | pw32
*)
11884 # This hack is so that the source file can tell whether it is being
11885 # built for inclusion in a dll (and should export symbols for example).
11886 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
11888 darwin
* | rhapsody
*)
11889 # PIC is the default on this platform
11890 # Common symbols not allowed in MH_DYLIB files
11891 lt_prog_compiler_pic_CXX
='-fno-common'
11894 # DJGPP does not support shared libraries at all
11895 lt_prog_compiler_pic_CXX
=
11898 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11899 # Instead, we relocate shared libraries at runtime.
11902 if test -d /usr
/nec
; then
11903 lt_prog_compiler_pic_CXX
=-Kconform_pic
11907 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11908 # not for PA HP-UX.
11913 lt_prog_compiler_pic_CXX
='-fPIC'
11918 lt_prog_compiler_pic_CXX
='-fPIC'
11924 # All AIX code is PIC.
11925 if test "$host_cpu" = ia64
; then
11926 # AIX 5 now supports IA64 processor
11927 lt_prog_compiler_static_CXX
='-Bstatic'
11929 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
11933 case $cc_basename in
11935 # Green Hills C++ Compiler
11936 # _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"
11941 # PIC is the default on this platform
11942 # Common symbols not allowed in MH_DYLIB files
11943 case $cc_basename in
11945 lt_prog_compiler_pic_CXX
='-qnocommon'
11946 lt_prog_compiler_wl_CXX
='-Wl,'
11951 case $cc_basename in
11953 lt_prog_compiler_pic_CXX
='-KPIC'
11956 # Green Hills C++ Compiler
11957 lt_prog_compiler_pic_CXX
='-pic'
11963 freebsd
* | kfreebsd
*-gnu | dragonfly
*)
11964 # FreeBSD uses GNU C++
11966 hpux9
* | hpux10
* | hpux11
*)
11967 case $cc_basename in
11969 lt_prog_compiler_wl_CXX
='-Wl,'
11970 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
11971 if test "$host_cpu" != ia64
; then
11972 lt_prog_compiler_pic_CXX
='+Z'
11976 lt_prog_compiler_wl_CXX
='-Wl,'
11977 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
11983 lt_prog_compiler_pic_CXX
='+Z'
11992 # This is c89, which is MS Visual C++ (no shared libs)
11993 # Anyone wants to do a port?
11995 irix5
* | irix6
* | nonstopux
*)
11996 case $cc_basename in
11998 lt_prog_compiler_wl_CXX
='-Wl,'
11999 lt_prog_compiler_static_CXX
='-non_shared'
12000 # CC pic flag -KPIC is the default.
12007 case $cc_basename in
12010 lt_prog_compiler_wl_CXX
='--backend -Wl,'
12011 lt_prog_compiler_pic_CXX
='-fPIC'
12015 lt_prog_compiler_wl_CXX
='-Wl,'
12016 lt_prog_compiler_pic_CXX
='-KPIC'
12017 lt_prog_compiler_static_CXX
='-static'
12020 # Portland Group C++ compiler.
12021 lt_prog_compiler_wl_CXX
='-Wl,'
12022 lt_prog_compiler_pic_CXX
='-fpic'
12023 lt_prog_compiler_static_CXX
='-Bstatic'
12027 # Make sure the PIC flag is empty. It appears that all Alpha
12028 # Linux and Compaq Tru64 Unix objects are PIC.
12029 lt_prog_compiler_pic_CXX
=
12030 lt_prog_compiler_static_CXX
='-non_shared'
12041 case $cc_basename in
12043 lt_prog_compiler_pic_CXX
='-W c,exportall'
12051 osf3
* | osf4
* | osf5
*)
12052 case $cc_basename in
12054 lt_prog_compiler_wl_CXX
='--backend -Wl,'
12057 # Rational C++ 2.4.1
12058 lt_prog_compiler_pic_CXX
='-pic'
12061 # Digital/Compaq C++
12062 lt_prog_compiler_wl_CXX
='-Wl,'
12063 # Make sure the PIC flag is empty. It appears that all Alpha
12064 # Linux and Compaq Tru64 Unix objects are PIC.
12065 lt_prog_compiler_pic_CXX
=
12066 lt_prog_compiler_static_CXX
='-non_shared'
12075 case $cc_basename in
12077 # Sun C++ 4.2, 5.x and Centerline C++
12078 lt_prog_compiler_pic_CXX
='-KPIC'
12079 lt_prog_compiler_static_CXX
='-Bstatic'
12080 lt_prog_compiler_wl_CXX
='-Qoption ld '
12083 # Green Hills C++ Compiler
12084 lt_prog_compiler_pic_CXX
='-PIC'
12091 case $cc_basename in
12094 lt_prog_compiler_pic_CXX
='-pic'
12095 lt_prog_compiler_static_CXX
='-Bstatic'
12099 lt_prog_compiler_pic_CXX
='-pic'
12106 case $cc_basename in
12108 # NonStop-UX NCC 3.20
12109 lt_prog_compiler_pic_CXX
='-KPIC'
12115 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
12116 case $cc_basename in
12118 lt_prog_compiler_wl_CXX
='-Wl,'
12119 lt_prog_compiler_pic_CXX
='-KPIC'
12120 lt_prog_compiler_static_CXX
='-Bstatic'
12127 lt_prog_compiler_can_build_shared_CXX
=no
12132 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12133 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12136 # Check to make sure the PIC flag actually works.
12138 if test -n "$lt_prog_compiler_pic_CXX"; then
12140 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12141 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12142 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12143 echo $ECHO_N "(cached) $ECHO_C" >&6
12145 lt_prog_compiler_pic_works_CXX
=no
12146 ac_outfile
=conftest.
$ac_objext
12147 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
12148 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
12149 # Insert the option either (1) after the last *FLAGS variable, or
12150 # (2) before a word containing "conftest.", or (3) at the end.
12151 # Note that $ac_compile itself does not contain backslashes and begins
12152 # with a dollar sign (not a hyphen), so the echo should work correctly.
12153 # The option is referenced via a variable to avoid confusing sed.
12154 lt_compile
=`echo "$ac_compile" | $SED \
12155 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12156 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12157 -e 's:$: $lt_compiler_flag:'`
12158 (eval echo "\"\$as_me:12158: $lt_compile\"" >&5)
12159 (eval "$lt_compile" 2>conftest.err
)
12161 cat conftest.err
>&5
12162 echo "$as_me:12162: \$? = $ac_status" >&5
12163 if (exit $ac_status) && test -s "$ac_outfile"; then
12164 # The compiler can only warn and ignore the option if not recognized
12165 # So say no if there are warnings other than the usual output.
12166 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
12167 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
12168 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
12169 lt_prog_compiler_pic_works_CXX
=yes
12175 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12176 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12178 if test x
"$lt_prog_compiler_pic_works_CXX" = xyes
; then
12179 case $lt_prog_compiler_pic_CXX in
12181 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
12184 lt_prog_compiler_pic_CXX
=
12185 lt_prog_compiler_can_build_shared_CXX
=no
12190 # For platforms which do not support PIC, -DPIC is meaningless:
12192 lt_prog_compiler_pic_CXX
=
12195 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
12200 # Check to make sure the static flag actually works.
12202 wl
=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_CXX\"
12203 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12204 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12205 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12206 echo $ECHO_N "(cached) $ECHO_C" >&6
12208 lt_prog_compiler_static_works_CXX
=no
12209 save_LDFLAGS
="$LDFLAGS"
12210 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
12211 printf "$lt_simple_link_test_code" > conftest.
$ac_ext
12212 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
12213 # The linker can only warn and ignore the option if not recognized
12214 # So say no if there are warnings
12215 if test -s conftest.err
; then
12216 # Append any errors to the config.log.
12217 cat conftest.err
1>&5
12218 $echo "X$_lt_linker_boilerplate" |
$Xsed -e '/^$/d' > conftest.exp
12219 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
12220 if diff conftest.exp conftest.er2
>/dev
/null
; then
12221 lt_prog_compiler_static_works_CXX
=yes
12224 lt_prog_compiler_static_works_CXX
=yes
12228 LDFLAGS
="$save_LDFLAGS"
12231 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12232 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12234 if test x
"$lt_prog_compiler_static_works_CXX" = xyes
; then
12237 lt_prog_compiler_static_CXX
=
12241 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12242 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12243 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12244 echo $ECHO_N "(cached) $ECHO_C" >&6
12246 lt_cv_prog_compiler_c_o_CXX
=no
12247 $rm -r conftest
2>/dev
/null
12251 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
12253 lt_compiler_flag
="-o out/conftest2.$ac_objext"
12254 # Insert the option either (1) after the last *FLAGS variable, or
12255 # (2) before a word containing "conftest.", or (3) at the end.
12256 # Note that $ac_compile itself does not contain backslashes and begins
12257 # with a dollar sign (not a hyphen), so the echo should work correctly.
12258 lt_compile
=`echo "$ac_compile" | $SED \
12259 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12260 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12261 -e 's:$: $lt_compiler_flag:'`
12262 (eval echo "\"\$as_me:12262: $lt_compile\"" >&5)
12263 (eval "$lt_compile" 2>out
/conftest.err
)
12265 cat out
/conftest.err
>&5
12266 echo "$as_me:12266: \$? = $ac_status" >&5
12267 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
12269 # The compiler can only warn and ignore the option if not recognized
12270 # So say no if there are warnings
12271 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
12272 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
12273 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
12274 lt_cv_prog_compiler_c_o_CXX
=yes
12279 # SGI C++ compiler will create directory out/ii_files/ for
12280 # template instantiation
12281 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
12282 $rm out
/* && rmdir out
12288 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12289 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12292 hard_links
="nottested"
12293 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
12294 # do not overwrite the value of need_locks provided by the user
12295 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12296 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12299 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
12301 ln conftest.a conftest.b
2>&5 || hard_links
=no
12302 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
12303 { echo "$as_me:$LINENO: result: $hard_links" >&5
12304 echo "${ECHO_T}$hard_links" >&6; }
12305 if test "$hard_links" = no
; then
12306 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12307 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12314 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12315 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12317 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12320 # If we're using GNU nm, then we don't want the "-C" option.
12321 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12322 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
12323 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'
12325 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'
12329 export_symbols_cmds_CXX
="$ltdll_cmds"
12332 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'
12335 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12339 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12340 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12341 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
12344 # Do we need to explicitly link libc?
12346 case "x$archive_cmds_need_lc_CXX" in
12348 # Assume -lc should be added
12349 archive_cmds_need_lc_CXX
=yes
12351 if test "$enable_shared" = yes && test "$GCC" = yes; then
12352 case $archive_cmds_CXX in
12354 # FIXME: we may have to deal with multi-command sequences.
12357 # Test whether the compiler implicitly links with -lc since on some
12358 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12359 # to ld, don't add -lc before -lgcc.
12360 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12361 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12363 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
12365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12366 (eval $ac_compile) 2>&5
12368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12369 (exit $ac_status); } 2>conftest.err
; then
12372 libobjs
=conftest.
$ac_objext
12374 wl
=$lt_prog_compiler_wl_CXX
12375 pic_flag
=$lt_prog_compiler_pic_CXX
12381 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
12382 allow_undefined_flag_CXX
=
12383 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12384 (eval $archive_cmds_CXX 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
12386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12387 (exit $ac_status); }
12389 archive_cmds_need_lc_CXX
=no
12391 archive_cmds_need_lc_CXX
=yes
12393 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
12395 cat conftest.err
1>&5
12398 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12399 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12406 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12407 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12408 library_names_spec
=
12409 libname_spec
='lib$name'
12413 postuninstall_cmds
=
12417 shlibpath_overrides_runpath
=unknown
12419 dynamic_linker
="$host_os ld.so"
12420 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
12421 if test "$GCC" = yes; then
12422 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12423 if echo "$sys_lib_search_path_spec" |
grep ';' >/dev
/null
; then
12424 # if the path contains ";" then we assume it to be the separator
12425 # otherwise default to the standard path separator (i.e. ":") - it is
12426 # assumed that no part of a normal pathname contains ";" but that should
12427 # okay in the real world where ";" in dirpaths is itself problematic.
12428 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12430 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12433 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
12435 need_lib_prefix
=unknown
12436 hardcode_into_libs
=no
12438 # when you set need_version to no, make sure it does not cause -set_version
12439 # flags to be left without arguments
12440 need_version
=unknown
12445 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
12446 shlibpath_var
=LIBPATH
12448 # AIX 3 has no versioning support, so we append a major version to the name.
12449 soname_spec
='${libname}${release}${shared_ext}$major'
12456 hardcode_into_libs
=yes
12457 if test "$host_cpu" = ia64
; then
12458 # AIX 5 supports IA64
12459 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12460 shlibpath_var
=LD_LIBRARY_PATH
12462 # With GCC up to 2.95.x, collect2 would create an import file
12463 # for dependence libraries. The import file would start with
12464 # the line `#! .'. This would cause the generated library to
12465 # depend on `.', always an invalid library. This was fixed in
12466 # development snapshots of GCC prior to 3.0.
12468 aix4 | aix4.
[01] | aix4.
[01].
*)
12469 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12471 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
12474 can_build_shared
=no
12478 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12479 # soname into executable. Probably we can add versioning support to
12480 # collect2, so additional links can be useful in future.
12481 if test "$aix_use_runtimelinking" = yes; then
12482 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12483 # instead of lib<name>.a to let people know that these are not
12484 # typical AIX shared libraries.
12485 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12487 # We preserve .a as extension for shared libraries through AIX4.2
12488 # and later when we are not doing run time linking.
12489 library_names_spec
='${libname}${release}.a $libname.a'
12490 soname_spec
='${libname}${release}${shared_ext}$major'
12492 shlibpath_var
=LIBPATH
12497 library_names_spec
='$libname.ixlibrary $libname.a'
12498 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12499 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'
12503 library_names_spec
='${libname}${shared_ext}'
12504 dynamic_linker
="$host_os ld.so"
12505 shlibpath_var
=LIBRARY_PATH
12511 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12512 soname_spec
='${libname}${release}${shared_ext}$major'
12513 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
12514 shlibpath_var
=LD_LIBRARY_PATH
12515 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12516 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
12517 # the default ld.so.conf also contains /usr/contrib/lib and
12518 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12519 # libtool to hard-code these into programs
12522 cygwin
* | mingw
* | pw32
*)
12523 version_type
=windows
12528 case $GCC,$host_os in
12529 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
12530 library_names_spec
='$libname.dll.a'
12531 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12532 postinstall_cmds
='base_file=`basename \${file}`~
12533 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12534 dldir=$destdir/`dirname \$dlpath`~
12535 test -d \$dldir || mkdir -p \$dldir~
12536 $install_prog $dir/$dlname \$dldir/$dlname~
12537 chmod a+x \$dldir/$dlname'
12538 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12539 dlpath=$dir/\$dldll~
12541 shlibpath_overrides_runpath
=yes
12545 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12546 #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
12547 soname_spec
='`echo ${libname} | sed -e 's
/^lib
//'`${shared_ext}'
12548 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
12551 # MinGW DLLs use traditional 'lib' prefix
12552 #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
12553 soname_spec
='`echo ${libname} | sed -e 's
/^lib
//'`${shared_ext}'
12554 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12555 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
12556 # It is most probably a Windows format PATH printed by
12557 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12558 # path with ; separators, and with drive letters. We can handle the
12559 # drive letters (cygwin fileutils understands them), so leave them,
12560 # especially as we might pass files found there to a mingw objdump,
12561 # which wouldn't understand a cygwinified path. Ahh.
12562 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12564 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12568 # pw32 DLLs use 'pw' prefix rather than 'lib'
12569 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12575 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12578 dynamic_linker
='Win32 ld.exe'
12579 # FIXME: first we should search . and the directory the executable is in
12583 darwin
* | rhapsody
*)
12584 dynamic_linker
="$host_os dyld"
12585 version_type
=darwin
12588 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12589 soname_spec
='${libname}${release}${major}$shared_ext'
12590 shlibpath_overrides_runpath
=yes
12591 shlibpath_var
=DYLD_LIBRARY_PATH
12592 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
12593 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12594 if test "$GCC" = yes; then
12595 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"`
12597 sys_lib_search_path_spec
='/lib /usr/lib /usr/local/lib'
12599 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
12606 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12607 soname_spec
='${libname}${release}${shared_ext}$major'
12608 shlibpath_var
=LD_LIBRARY_PATH
12619 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12620 soname_spec
='${libname}${release}${shared_ext}$major'
12621 shlibpath_var
=LD_LIBRARY_PATH
12622 shlibpath_overrides_runpath
=no
12623 hardcode_into_libs
=yes
12624 dynamic_linker
='GNU ld.so'
12627 freebsd
* | dragonfly
*)
12628 # DragonFly does not have aout. When/if they implement a new
12629 # versioning mechanism, adjust this.
12630 if test -x /usr
/bin
/objformat
; then
12631 objformat
=`/usr/bin/objformat`
12634 freebsd
[123]*) objformat
=aout
;;
12635 *) objformat
=elf
;;
12638 version_type
=freebsd-
$objformat
12639 case $version_type in
12641 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12646 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12650 shlibpath_var
=LD_LIBRARY_PATH
12653 shlibpath_overrides_runpath
=yes
12655 freebsd3.
[01]* | freebsdelf3.
[01]*)
12656 shlibpath_overrides_runpath
=yes
12657 hardcode_into_libs
=yes
12659 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
12660 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
12661 shlibpath_overrides_runpath
=no
12662 hardcode_into_libs
=yes
12664 freebsd
*) # from 4.6 on
12665 shlibpath_overrides_runpath
=yes
12666 hardcode_into_libs
=yes
12675 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12676 soname_spec
='${libname}${release}${shared_ext}$major'
12677 shlibpath_var
=LD_LIBRARY_PATH
12678 hardcode_into_libs
=yes
12681 hpux9
* | hpux10
* | hpux11
*)
12682 # Give a soname corresponding to the major version so that dld.sl refuses to
12683 # link against other versions.
12690 hardcode_into_libs
=yes
12691 dynamic_linker
="$host_os dld.so"
12692 shlibpath_var
=LD_LIBRARY_PATH
12693 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
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 if test "X$HPUX_IA64_MODE" = X32
; then
12697 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12699 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
12701 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
12705 hardcode_into_libs
=yes
12706 dynamic_linker
="$host_os dld.sl"
12707 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
12708 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
12709 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12710 soname_spec
='${libname}${release}${shared_ext}$major'
12711 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12712 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
12716 dynamic_linker
="$host_os dld.sl"
12717 shlibpath_var
=SHLIB_PATH
12718 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
12719 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12720 soname_spec
='${libname}${release}${shared_ext}$major'
12723 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12724 postinstall_cmds
='chmod 555 $lib'
12731 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12732 soname_spec
='${libname}${release}${shared_ext}$major'
12733 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
12734 shlibpath_var
=LD_LIBRARY_PATH
12735 shlibpath_overrides_runpath
=no
12736 hardcode_into_libs
=yes
12739 irix5
* | irix6
* | nonstopux
*)
12741 nonstopux
*) version_type
=nonstopux
;;
12743 if test "$lt_cv_prog_gnu_ld" = yes; then
12751 soname_spec
='${libname}${release}${shared_ext}$major'
12752 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12754 irix5
* | nonstopux
*)
12755 libsuff
= shlibsuff
=
12758 case $LD in # libtool.m4 will add one of these switches to LD
12759 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
12760 libsuff
= shlibsuff
= libmagic
=32-bit;;
12761 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
12762 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
12763 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
12764 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
12765 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
12769 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
12770 shlibpath_overrides_runpath
=no
12771 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12772 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
12773 hardcode_into_libs
=yes
12776 # No shared lib support for Linux oldld, aout, or coff.
12777 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
12781 # This must be Linux ELF.
12786 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12787 soname_spec
='${libname}${release}${shared_ext}$major'
12788 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12789 shlibpath_var
=LD_LIBRARY_PATH
12790 shlibpath_overrides_runpath
=no
12791 # This implies no fast_install, which is unacceptable.
12792 # Some rework will be needed to allow for fast_install
12793 # before this can be enabled.
12794 hardcode_into_libs
=yes
12796 # Append ld.so.conf contents to the search path
12797 if test -f /etc
/ld.so.conf
; then
12798 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' ' '`
12799 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
12802 # We used to test for /lib/ld.so.1 and disable shared libraries on
12803 # powerpc, because MkLinux only supported shared libraries with the
12804 # GNU dynamic linker. Since this was broken with cross compilers,
12805 # most powerpc-linux boxes support dynamic linking these days and
12806 # people can always --disable-shared, the test was removed, and we
12807 # assume the GNU/Linux dynamic linker is in use.
12808 dynamic_linker
='GNU/Linux ld.so'
12815 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12816 soname_spec
='${libname}${release}${shared_ext}$major'
12817 shlibpath_var
=LD_LIBRARY_PATH
12818 shlibpath_overrides_runpath
=no
12819 hardcode_into_libs
=yes
12820 dynamic_linker
='GNU ld.so'
12827 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
12828 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12829 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12830 dynamic_linker
='NetBSD (a.out) ld.so'
12832 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12833 soname_spec
='${libname}${release}${shared_ext}$major'
12834 dynamic_linker
='NetBSD ld.elf_so'
12836 shlibpath_var
=LD_LIBRARY_PATH
12837 shlibpath_overrides_runpath
=yes
12838 hardcode_into_libs
=yes
12843 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12844 shlibpath_var
=LD_LIBRARY_PATH
12845 shlibpath_overrides_runpath
=yes
12852 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12853 soname_spec
='${libname}${release}${shared_ext}$major'
12854 shlibpath_var
=LD_LIBRARY_PATH
12855 shlibpath_overrides_runpath
=yes
12860 sys_lib_dlsearch_path_spec
="/usr/lib"
12862 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12864 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
12865 *) need_version
=no
;;
12867 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12868 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12869 shlibpath_var
=LD_LIBRARY_PATH
12870 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12872 openbsd2.
[89] | openbsd2.
[89].
*)
12873 shlibpath_overrides_runpath
=no
12876 shlibpath_overrides_runpath
=yes
12880 shlibpath_overrides_runpath
=yes
12885 libname_spec
='$name'
12888 library_names_spec
='$libname${shared_ext} $libname.a'
12889 dynamic_linker
='OS/2 ld.exe'
12890 shlibpath_var
=LIBPATH
12893 osf3
* | osf4
* | osf5
*)
12897 soname_spec
='${libname}${release}${shared_ext}$major'
12898 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12899 shlibpath_var
=LD_LIBRARY_PATH
12900 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12901 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
12908 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12909 soname_spec
='${libname}${release}${shared_ext}$major'
12910 shlibpath_var
=LD_LIBRARY_PATH
12911 shlibpath_overrides_runpath
=yes
12912 hardcode_into_libs
=yes
12913 # ldd complains unless libraries are executable
12914 postinstall_cmds
='chmod +x $lib'
12919 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12920 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12921 shlibpath_var
=LD_LIBRARY_PATH
12922 shlibpath_overrides_runpath
=yes
12923 if test "$with_gnu_ld" = yes; then
12931 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12932 soname_spec
='${libname}${release}${shared_ext}$major'
12933 shlibpath_var
=LD_LIBRARY_PATH
12934 case $host_vendor in
12936 shlibpath_overrides_runpath
=no
12938 export_dynamic_flag_spec
='${wl}-Blargedynsym'
12939 runpath_var
=LD_RUN_PATH
12947 shlibpath_overrides_runpath
=no
12948 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
12954 if test -d /usr
/nec
;then
12956 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12957 soname_spec
='$libname${shared_ext}.$major'
12958 shlibpath_var
=LD_LIBRARY_PATH
12962 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
12963 version_type
=freebsd-elf
12966 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12967 soname_spec
='${libname}${release}${shared_ext}$major'
12968 shlibpath_var
=LD_LIBRARY_PATH
12969 hardcode_into_libs
=yes
12970 if test "$with_gnu_ld" = yes; then
12971 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12972 shlibpath_overrides_runpath
=no
12974 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
12975 shlibpath_overrides_runpath
=yes
12978 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
12982 sys_lib_dlsearch_path_spec
='/usr/lib'
12987 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12988 soname_spec
='${libname}${release}${shared_ext}$major'
12989 shlibpath_var
=LD_LIBRARY_PATH
12996 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12997 echo "${ECHO_T}$dynamic_linker" >&6; }
12998 test "$dynamic_linker" = no
&& can_build_shared
=no
13000 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
13001 if test "$GCC" = yes; then
13002 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13005 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13006 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13007 hardcode_action_CXX
=
13008 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13009 test -n "$runpath_var_CXX" || \
13010 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13012 # We can hardcode non-existant directories.
13013 if test "$hardcode_direct_CXX" != no
&&
13014 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13015 # have to relink, otherwise we might link with an installed library
13016 # when we should be linking with a yet-to-be-installed one
13017 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13018 test "$hardcode_minus_L_CXX" != no
; then
13019 # Linking always hardcodes the temporary library directory.
13020 hardcode_action_CXX
=relink
13022 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13023 hardcode_action_CXX
=immediate
13026 # We cannot hardcode anything, or else we can only hardcode existing
13028 hardcode_action_CXX
=unsupported
13030 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13031 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13033 if test "$hardcode_action_CXX" = relink
; then
13034 # Fast installation is not supported
13035 enable_fast_install
=no
13036 elif test "$shlibpath_overrides_runpath" = yes ||
13037 test "$enable_shared" = no
; then
13038 # Fast installation is not necessary
13039 enable_fast_install
=needless
13043 # The else clause should only fire when bootstrapping the
13044 # libtool distribution, otherwise you forgot to ship ltmain.sh
13045 # with your package, and you will get complaints that there are
13046 # no rules to generate ltmain.sh.
13047 if test -f "$ltmain"; then
13048 # See if we are running on zsh, and set the options which allow our commands through
13049 # without removal of \ escapes.
13050 if test -n "${ZSH_VERSION+set}" ; then
13051 setopt NO_GLOB_SUBST
13053 # Now quote all the things that may contain metacharacters while being
13054 # careful not to overquote the AC_SUBSTed values. We take copies of the
13055 # variables and quote the copies for generation of the libtool script.
13056 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13058 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13059 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13060 deplibs_check_method reload_flag reload_cmds need_locks \
13061 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13062 lt_cv_sys_global_symbol_to_c_name_address \
13063 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13064 old_postinstall_cmds old_postuninstall_cmds \
13068 lt_prog_compiler_wl_CXX \
13069 lt_prog_compiler_pic_CXX \
13070 lt_prog_compiler_static_CXX \
13071 lt_prog_compiler_no_builtin_flag_CXX \
13072 export_dynamic_flag_spec_CXX \
13073 thread_safe_flag_spec_CXX \
13074 whole_archive_flag_spec_CXX \
13075 enable_shared_with_static_runtimes_CXX \
13076 old_archive_cmds_CXX \
13077 old_archive_from_new_cmds_CXX \
13078 predep_objects_CXX \
13079 postdep_objects_CXX \
13082 compiler_lib_search_path_CXX \
13084 archive_expsym_cmds_CXX \
13085 postinstall_cmds_CXX \
13086 postuninstall_cmds_CXX \
13087 old_archive_from_expsyms_cmds_CXX \
13088 allow_undefined_flag_CXX \
13089 no_undefined_flag_CXX \
13090 export_symbols_cmds_CXX \
13091 hardcode_libdir_flag_spec_CXX \
13092 hardcode_libdir_flag_spec_ld_CXX \
13093 hardcode_libdir_separator_CXX \
13094 hardcode_automatic_CXX \
13096 module_expsym_cmds_CXX \
13097 lt_cv_prog_compiler_c_o_CXX \
13098 exclude_expsyms_CXX \
13099 include_expsyms_CXX
; do
13102 old_archive_cmds_CXX | \
13103 old_archive_from_new_cmds_CXX | \
13104 archive_cmds_CXX | \
13105 archive_expsym_cmds_CXX | \
13106 module_cmds_CXX | \
13107 module_expsym_cmds_CXX | \
13108 old_archive_from_expsyms_cmds_CXX | \
13109 export_symbols_cmds_CXX | \
13110 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13111 postinstall_cmds | postuninstall_cmds | \
13112 old_postinstall_cmds | old_postuninstall_cmds | \
13113 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
13114 # Double-quote double-evaled strings.
13115 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13118 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13124 *'\$0 --fallback-echo"')
13125 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13131 cat <<__EOF__ >> "$cfgfile"
13132 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13134 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13136 # Shell to use when invoking shell scripts.
13139 # Whether or not to build shared libraries.
13140 build_libtool_libs=$enable_shared
13142 # Whether or not to build static libraries.
13143 build_old_libs=$enable_static
13145 # Whether or not to add -lc for building shared libraries.
13146 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13148 # Whether or not to disallow shared libs when runtime libs are static
13149 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13151 # Whether or not to optimize for fast installation.
13152 fast_install=$enable_fast_install
13155 host_alias=$host_alias
13159 # The build system.
13160 build_alias=$build_alias
13164 # An echo program that does not interpret backslashes.
13169 AR_FLAGS=$lt_AR_FLAGS
13174 # LTCC compiler flags.
13175 LTCFLAGS=$lt_LTCFLAGS
13177 # A language-specific compiler.
13178 CC=$lt_compiler_CXX
13180 # Is the compiler the GNU C compiler?
13186 # The linker used to build libraries.
13189 # Whether we need hard or soft links.
13192 # A BSD-compatible nm program.
13195 # A symbol stripping program
13198 # Used to examine libraries when file_magic_cmd begins "file"
13199 MAGIC_CMD=$MAGIC_CMD
13201 # Used on cygwin: DLL creation program.
13204 # Used on cygwin: object dumper.
13207 # Used on cygwin: assembler.
13210 # The name of the directory that contains temporary libtool files.
13213 # How to create reloadable object files.
13214 reload_flag=$lt_reload_flag
13215 reload_cmds=$lt_reload_cmds
13217 # How to pass a linker flag through the compiler.
13218 wl=$lt_lt_prog_compiler_wl_CXX
13220 # Object file suffix (normally "o").
13221 objext="$ac_objext"
13223 # Old archive suffix (normally "a").
13226 # Shared library suffix (normally ".so").
13227 shrext_cmds='$shrext_cmds'
13229 # Executable file suffix (normally "").
13232 # Additional compiler flags for building library objects.
13233 pic_flag=$lt_lt_prog_compiler_pic_CXX
13236 # What is the maximum length of a command?
13237 max_cmd_len=$lt_cv_sys_max_cmd_len
13239 # Does compiler simultaneously support -c and -o options?
13240 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13242 # Must we lock files when doing compilation?
13243 need_locks=$lt_need_locks
13245 # Do we need the lib prefix for modules?
13246 need_lib_prefix=$need_lib_prefix
13248 # Do we need a version for libraries?
13249 need_version=$need_version
13251 # Whether dlopen is supported.
13252 dlopen_support=$enable_dlopen
13254 # Whether dlopen of programs is supported.
13255 dlopen_self=$enable_dlopen_self
13257 # Whether dlopen of statically linked programs is supported.
13258 dlopen_self_static=$enable_dlopen_self_static
13260 # Compiler flag to prevent dynamic linking.
13261 link_static_flag=$lt_lt_prog_compiler_static_CXX
13263 # Compiler flag to turn off builtin functions.
13264 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13266 # Compiler flag to allow reflexive dlopens.
13267 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13269 # Compiler flag to generate shared objects directly from archives.
13270 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13272 # Compiler flag to generate thread-safe objects.
13273 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13275 # Library versioning type.
13276 version_type=$version_type
13278 # Format of library name prefix.
13279 libname_spec=$lt_libname_spec
13281 # List of archive names. First name is the real one, the rest are links.
13282 # The last name is the one that the linker finds with -lNAME.
13283 library_names_spec=$lt_library_names_spec
13285 # The coded name of the library, if different from the real name.
13286 soname_spec=$lt_soname_spec
13288 # Commands used to build and install an old-style archive.
13290 old_archive_cmds=$lt_old_archive_cmds_CXX
13291 old_postinstall_cmds=$lt_old_postinstall_cmds
13292 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13294 # Create an old-style archive from a shared archive.
13295 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13297 # Create a temporary old-style archive to link instead of a shared archive.
13298 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13300 # Commands used to build and install a shared archive.
13301 archive_cmds=$lt_archive_cmds_CXX
13302 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13303 postinstall_cmds=$lt_postinstall_cmds
13304 postuninstall_cmds=$lt_postuninstall_cmds
13306 # Commands used to build a loadable module (assumed same as above if empty)
13307 module_cmds=$lt_module_cmds_CXX
13308 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13310 # Commands to strip libraries.
13311 old_striplib=$lt_old_striplib
13312 striplib=$lt_striplib
13314 # Dependencies to place before the objects being linked to create a
13316 predep_objects=$lt_predep_objects_CXX
13318 # Dependencies to place after the objects being linked to create a
13320 postdep_objects=$lt_postdep_objects_CXX
13322 # Dependencies to place before the objects being linked to create a
13324 predeps=$lt_predeps_CXX
13326 # Dependencies to place after the objects being linked to create a
13328 postdeps=$lt_postdeps_CXX
13330 # The library search path used internally by the compiler when linking
13331 # a shared library.
13332 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13334 # Method to check whether dependent libraries are shared objects.
13335 deplibs_check_method=$lt_deplibs_check_method
13337 # Command to use when deplibs_check_method == file_magic.
13338 file_magic_cmd=$lt_file_magic_cmd
13340 # Flag that allows shared libraries with undefined symbols to be built.
13341 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13343 # Flag that forces no undefined symbols.
13344 no_undefined_flag=$lt_no_undefined_flag_CXX
13346 # Commands used to finish a libtool library installation in a directory.
13347 finish_cmds=$lt_finish_cmds
13349 # Same as above, but a single script fragment to be evaled but not shown.
13350 finish_eval=$lt_finish_eval
13352 # Take the output of nm and produce a listing of raw symbols and C names.
13353 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13355 # Transform the output of nm in a proper C declaration
13356 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13358 # Transform the output of nm in a C name address pair
13359 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13361 # This is the shared library runtime path variable.
13362 runpath_var=$runpath_var
13364 # This is the shared library path variable.
13365 shlibpath_var=$shlibpath_var
13367 # Is shlibpath searched before the hard-coded library search path?
13368 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13370 # How to hardcode a shared library path into an executable.
13371 hardcode_action=$hardcode_action_CXX
13373 # Whether we should hardcode library paths into libraries.
13374 hardcode_into_libs=$hardcode_into_libs
13376 # Flag to hardcode \$libdir into a binary during linking.
13377 # This must work even if \$libdir does not exist.
13378 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13380 # If ld is used when linking, flag to hardcode \$libdir into
13381 # a binary during linking. This must work even if \$libdir does
13383 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13385 # Whether we need a single -rpath flag with a separated argument.
13386 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13388 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13389 # resulting binary.
13390 hardcode_direct=$hardcode_direct_CXX
13392 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13393 # resulting binary.
13394 hardcode_minus_L=$hardcode_minus_L_CXX
13396 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13397 # the resulting binary.
13398 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13400 # Set to yes if building a shared library automatically hardcodes DIR into the library
13401 # and all subsequent libraries and executables linked against it.
13402 hardcode_automatic=$hardcode_automatic_CXX
13404 # Variables whose values should be saved in libtool wrapper scripts and
13405 # restored at relink time.
13406 variables_saved_for_relink="$variables_saved_for_relink"
13408 # Whether libtool must link a program against all its dependency libraries.
13409 link_all_deplibs=$link_all_deplibs_CXX
13411 # Compile-time system search path for libraries
13412 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13414 # Run-time system search path for libraries
13415 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13417 # Fix the shell variable \$srcfile for the compiler.
13418 fix_srcfile_path="$fix_srcfile_path_CXX"
13420 # Set to yes if exported symbols are required.
13421 always_export_symbols=$always_export_symbols_CXX
13423 # The commands to list exported symbols.
13424 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13426 # The commands to extract the exported symbol list from a shared archive.
13427 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13429 # Symbols that should not be listed in the preloaded symbols.
13430 exclude_expsyms=$lt_exclude_expsyms_CXX
13432 # Symbols that must always be exported.
13433 include_expsyms=$lt_include_expsyms_CXX
13435 # ### END LIBTOOL TAG CONFIG: $tagname
13441 # If there is no Makefile yet, we rely on a make rule to execute
13442 # `config.status --recheck' to rerun these tests and create the
13443 # libtool script then.
13444 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13445 if test -f "$ltmain_in"; then
13446 test -f Makefile
&& make "$ltmain"
13452 ac_cpp
='$CPP $CPPFLAGS'
13453 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13454 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13455 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
13461 with_gnu_ldcxx
=$with_gnu_ld
13462 with_gnu_ld
=$lt_save_with_gnu_ld
13463 lt_cv_path_LDCXX
=$lt_cv_path_LD
13464 lt_cv_path_LD
=$lt_save_path_LD
13465 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
13466 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
13474 if test -n "$F77" && test "X$F77" != "Xno"; then
13477 ac_compile
='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13478 ac_link
='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13479 ac_compiler_gnu
=$ac_cv_f77_compiler_gnu
13482 archive_cmds_need_lc_F77
=no
13483 allow_undefined_flag_F77
=
13484 always_export_symbols_F77
=no
13485 archive_expsym_cmds_F77
=
13486 export_dynamic_flag_spec_F77
=
13487 hardcode_direct_F77
=no
13488 hardcode_libdir_flag_spec_F77
=
13489 hardcode_libdir_flag_spec_ld_F77
=
13490 hardcode_libdir_separator_F77
=
13491 hardcode_minus_L_F77
=no
13492 hardcode_automatic_F77
=no
13494 module_expsym_cmds_F77
=
13495 link_all_deplibs_F77
=unknown
13496 old_archive_cmds_F77
=$old_archive_cmds
13497 no_undefined_flag_F77
=
13498 whole_archive_flag_spec_F77
=
13499 enable_shared_with_static_runtimes_F77
=no
13501 # Source file extension for f77 test sources.
13504 # Object file extension for compiled f77 test sources.
13508 # Code to be used in simple compile tests
13509 lt_simple_compile_test_code
=" subroutine t\n return\n end\n"
13511 # Code to be used in simple link tests
13512 lt_simple_link_test_code
=" program t\n end\n"
13514 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13516 # If no C compiler was specified, use CC.
13519 # If no C compiler flags were specified, use CFLAGS.
13520 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
13522 # Allow CC to be a program name with arguments.
13526 # save warnings/boilerplate of simple test code
13527 ac_outfile
=conftest.
$ac_objext
13528 printf "$lt_simple_compile_test_code" >conftest.
$ac_ext
13529 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
13530 _lt_compiler_boilerplate
=`cat conftest.err`
13533 ac_outfile
=conftest.
$ac_objext
13534 printf "$lt_simple_link_test_code" >conftest.
$ac_ext
13535 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
13536 _lt_linker_boilerplate
=`cat conftest.err`
13540 # Allow CC to be a program name with arguments.
13545 for cc_temp
in $compiler""; do
13547 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
13548 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
13553 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13556 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13557 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13558 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
13559 echo "${ECHO_T}$can_build_shared" >&6; }
13561 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13562 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13563 test "$can_build_shared" = "no" && enable_shared
=no
13565 # On AIX, shared libraries and static libraries use the same namespace, and
13566 # are all built from PIC.
13569 test "$enable_shared" = yes && enable_static
=no
13570 if test -n "$RANLIB"; then
13571 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
13572 postinstall_cmds
='$RANLIB $lib'
13576 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
13577 test "$enable_shared" = yes && enable_static
=no
13581 { echo "$as_me:$LINENO: result: $enable_shared" >&5
13582 echo "${ECHO_T}$enable_shared" >&6; }
13584 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13585 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13586 # Make sure either enable_shared or enable_static is yes.
13587 test "$enable_shared" = yes || enable_static
=yes
13588 { echo "$as_me:$LINENO: result: $enable_static" >&5
13589 echo "${ECHO_T}$enable_static" >&6; }
13594 lt_prog_compiler_wl_F77
=
13595 lt_prog_compiler_pic_F77
=
13596 lt_prog_compiler_static_F77
=
13598 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13599 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13601 if test "$GCC" = yes; then
13602 lt_prog_compiler_wl_F77
='-Wl,'
13603 lt_prog_compiler_static_F77
='-static'
13607 # All AIX code is PIC.
13608 if test "$host_cpu" = ia64
; then
13609 # AIX 5 now supports IA64 processor
13610 lt_prog_compiler_static_F77
='-Bstatic'
13615 # FIXME: we need at least 68020 code to build shared libraries, but
13616 # adding the `-m68020' flag to GCC prevents building anything better,
13618 lt_prog_compiler_pic_F77
='-m68020 -resident32 -malways-restore-a4'
13621 beos
* | cygwin
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
13622 # PIC is the default for these OSes.
13625 mingw
* | pw32
* | os2
*)
13626 # This hack is so that the source file can tell whether it is being
13627 # built for inclusion in a dll (and should export symbols for example).
13628 lt_prog_compiler_pic_F77
='-DDLL_EXPORT'
13631 darwin
* | rhapsody
*)
13632 # PIC is the default on this platform
13633 # Common symbols not allowed in MH_DYLIB files
13634 lt_prog_compiler_pic_F77
='-fno-common'
13638 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13639 # Instead, we relocate shared libraries at runtime.
13643 # Just because we use GCC doesn't mean we suddenly get shared libraries
13644 # on systems that don't support them.
13645 lt_prog_compiler_can_build_shared_F77
=no
13650 if test -d /usr
/nec
; then
13651 lt_prog_compiler_pic_F77
=-Kconform_pic
13656 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13657 # not for PA HP-UX.
13663 lt_prog_compiler_pic_F77
='-fPIC'
13669 lt_prog_compiler_pic_F77
='-fPIC'
13673 # PORTME Check for flag to pass linker flags through the system compiler.
13676 lt_prog_compiler_wl_F77
='-Wl,'
13677 if test "$host_cpu" = ia64
; then
13678 # AIX 5 now supports IA64 processor
13679 lt_prog_compiler_static_F77
='-Bstatic'
13681 lt_prog_compiler_static_F77
='-bnso -bI:/lib/syscalls.exp'
13685 # PIC is the default on this platform
13686 # Common symbols not allowed in MH_DYLIB files
13687 case $cc_basename in
13689 lt_prog_compiler_pic_F77
='-qnocommon'
13690 lt_prog_compiler_wl_F77
='-Wl,'
13695 mingw
* | pw32
* | os2
*)
13696 # This hack is so that the source file can tell whether it is being
13697 # built for inclusion in a dll (and should export symbols for example).
13698 lt_prog_compiler_pic_F77
='-DDLL_EXPORT'
13701 hpux9
* | hpux10
* | hpux11
*)
13702 lt_prog_compiler_wl_F77
='-Wl,'
13703 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13704 # not for PA HP-UX.
13710 lt_prog_compiler_pic_F77
='+Z'
13713 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13714 lt_prog_compiler_static_F77
='${wl}-a ${wl}archive'
13717 irix5
* | irix6
* | nonstopux
*)
13718 lt_prog_compiler_wl_F77
='-Wl,'
13719 # PIC (with -KPIC) is the default.
13720 lt_prog_compiler_static_F77
='-non_shared'
13724 lt_prog_compiler_pic_F77
='-KPIC'
13725 lt_prog_compiler_static_F77
='-Bstatic'
13729 case $cc_basename in
13731 lt_prog_compiler_wl_F77
='-Wl,'
13732 lt_prog_compiler_pic_F77
='-KPIC'
13733 lt_prog_compiler_static_F77
='-static'
13735 pgcc
* | pgf77
* | pgf90
* | pgf95
*)
13736 # Portland Group compilers (*not* the Pentium gcc compiler,
13737 # which looks to be a dead project)
13738 lt_prog_compiler_wl_F77
='-Wl,'
13739 lt_prog_compiler_pic_F77
='-fpic'
13740 lt_prog_compiler_static_F77
='-Bstatic'
13743 lt_prog_compiler_wl_F77
='-Wl,'
13744 # All Alpha code is PIC.
13745 lt_prog_compiler_static_F77
='-non_shared'
13750 osf3
* | osf4
* | osf5
*)
13751 lt_prog_compiler_wl_F77
='-Wl,'
13752 # All OSF/1 code is PIC.
13753 lt_prog_compiler_static_F77
='-non_shared'
13757 lt_prog_compiler_pic_F77
='-KPIC'
13758 lt_prog_compiler_static_F77
='-Bstatic'
13759 case $cc_basename in
13760 f77
* | f90
* | f95
*)
13761 lt_prog_compiler_wl_F77
='-Qoption ld ';;
13763 lt_prog_compiler_wl_F77
='-Wl,';;
13768 lt_prog_compiler_wl_F77
='-Qoption ld '
13769 lt_prog_compiler_pic_F77
='-PIC'
13770 lt_prog_compiler_static_F77
='-Bstatic'
13773 sysv4 | sysv4.2uw2
* | sysv4.3
*)
13774 lt_prog_compiler_wl_F77
='-Wl,'
13775 lt_prog_compiler_pic_F77
='-KPIC'
13776 lt_prog_compiler_static_F77
='-Bstatic'
13780 if test -d /usr
/nec
;then
13781 lt_prog_compiler_pic_F77
='-Kconform_pic'
13782 lt_prog_compiler_static_F77
='-Bstatic'
13786 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
13787 lt_prog_compiler_wl_F77
='-Wl,'
13788 lt_prog_compiler_pic_F77
='-KPIC'
13789 lt_prog_compiler_static_F77
='-Bstatic'
13793 lt_prog_compiler_wl_F77
='-Wl,'
13794 lt_prog_compiler_can_build_shared_F77
=no
13798 lt_prog_compiler_pic_F77
='-pic'
13799 lt_prog_compiler_static_F77
='-Bstatic'
13803 lt_prog_compiler_can_build_shared_F77
=no
13808 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13809 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
13812 # Check to make sure the PIC flag actually works.
13814 if test -n "$lt_prog_compiler_pic_F77"; then
13816 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13817 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
13818 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13819 echo $ECHO_N "(cached) $ECHO_C" >&6
13821 lt_prog_compiler_pic_works_F77
=no
13822 ac_outfile
=conftest.
$ac_objext
13823 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
13824 lt_compiler_flag
="$lt_prog_compiler_pic_F77"
13825 # Insert the option either (1) after the last *FLAGS variable, or
13826 # (2) before a word containing "conftest.", or (3) at the end.
13827 # Note that $ac_compile itself does not contain backslashes and begins
13828 # with a dollar sign (not a hyphen), so the echo should work correctly.
13829 # The option is referenced via a variable to avoid confusing sed.
13830 lt_compile
=`echo "$ac_compile" | $SED \
13831 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13832 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13833 -e 's:$: $lt_compiler_flag:'`
13834 (eval echo "\"\$as_me:13834: $lt_compile\"" >&5)
13835 (eval "$lt_compile" 2>conftest.err
)
13837 cat conftest.err
>&5
13838 echo "$as_me:13838: \$? = $ac_status" >&5
13839 if (exit $ac_status) && test -s "$ac_outfile"; then
13840 # The compiler can only warn and ignore the option if not recognized
13841 # So say no if there are warnings other than the usual output.
13842 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
13843 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
13844 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
13845 lt_prog_compiler_pic_works_F77
=yes
13851 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13852 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
13854 if test x
"$lt_prog_compiler_pic_works_F77" = xyes
; then
13855 case $lt_prog_compiler_pic_F77 in
13857 *) lt_prog_compiler_pic_F77
=" $lt_prog_compiler_pic_F77" ;;
13860 lt_prog_compiler_pic_F77
=
13861 lt_prog_compiler_can_build_shared_F77
=no
13866 # For platforms which do not support PIC, -DPIC is meaningless:
13868 lt_prog_compiler_pic_F77
=
13871 lt_prog_compiler_pic_F77
="$lt_prog_compiler_pic_F77"
13876 # Check to make sure the static flag actually works.
13878 wl
=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_F77\"
13879 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13880 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13881 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13882 echo $ECHO_N "(cached) $ECHO_C" >&6
13884 lt_prog_compiler_static_works_F77
=no
13885 save_LDFLAGS
="$LDFLAGS"
13886 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
13887 printf "$lt_simple_link_test_code" > conftest.
$ac_ext
13888 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
13889 # The linker can only warn and ignore the option if not recognized
13890 # So say no if there are warnings
13891 if test -s conftest.err
; then
13892 # Append any errors to the config.log.
13893 cat conftest.err
1>&5
13894 $echo "X$_lt_linker_boilerplate" |
$Xsed -e '/^$/d' > conftest.exp
13895 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
13896 if diff conftest.exp conftest.er2
>/dev
/null
; then
13897 lt_prog_compiler_static_works_F77
=yes
13900 lt_prog_compiler_static_works_F77
=yes
13904 LDFLAGS
="$save_LDFLAGS"
13907 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13908 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
13910 if test x
"$lt_prog_compiler_static_works_F77" = xyes
; then
13913 lt_prog_compiler_static_F77
=
13917 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13918 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13919 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13920 echo $ECHO_N "(cached) $ECHO_C" >&6
13922 lt_cv_prog_compiler_c_o_F77
=no
13923 $rm -r conftest
2>/dev
/null
13927 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
13929 lt_compiler_flag
="-o out/conftest2.$ac_objext"
13930 # Insert the option either (1) after the last *FLAGS variable, or
13931 # (2) before a word containing "conftest.", or (3) at the end.
13932 # Note that $ac_compile itself does not contain backslashes and begins
13933 # with a dollar sign (not a hyphen), so the echo should work correctly.
13934 lt_compile
=`echo "$ac_compile" | $SED \
13935 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13936 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13937 -e 's:$: $lt_compiler_flag:'`
13938 (eval echo "\"\$as_me:13938: $lt_compile\"" >&5)
13939 (eval "$lt_compile" 2>out
/conftest.err
)
13941 cat out
/conftest.err
>&5
13942 echo "$as_me:13942: \$? = $ac_status" >&5
13943 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
13945 # The compiler can only warn and ignore the option if not recognized
13946 # So say no if there are warnings
13947 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
13948 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
13949 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
13950 lt_cv_prog_compiler_c_o_F77
=yes
13955 # SGI C++ compiler will create directory out/ii_files/ for
13956 # template instantiation
13957 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
13958 $rm out
/* && rmdir out
13964 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13965 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
13968 hard_links
="nottested"
13969 if test "$lt_cv_prog_compiler_c_o_F77" = no
&& test "$need_locks" != no
; then
13970 # do not overwrite the value of need_locks provided by the user
13971 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13972 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13975 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
13977 ln conftest.a conftest.b
2>&5 || hard_links
=no
13978 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
13979 { echo "$as_me:$LINENO: result: $hard_links" >&5
13980 echo "${ECHO_T}$hard_links" >&6; }
13981 if test "$hard_links" = no
; then
13982 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13983 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13990 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13991 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13994 allow_undefined_flag_F77
=
13995 enable_shared_with_static_runtimes_F77
=no
13997 archive_expsym_cmds_F77
=
13998 old_archive_From_new_cmds_F77
=
13999 old_archive_from_expsyms_cmds_F77
=
14000 export_dynamic_flag_spec_F77
=
14001 whole_archive_flag_spec_F77
=
14002 thread_safe_flag_spec_F77
=
14003 hardcode_libdir_flag_spec_F77
=
14004 hardcode_libdir_flag_spec_ld_F77
=
14005 hardcode_libdir_separator_F77
=
14006 hardcode_direct_F77
=no
14007 hardcode_minus_L_F77
=no
14008 hardcode_shlibpath_var_F77
=unsupported
14009 link_all_deplibs_F77
=unknown
14010 hardcode_automatic_F77
=no
14012 module_expsym_cmds_F77
=
14013 always_export_symbols_F77
=no
14014 export_symbols_cmds_F77
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14015 # include_expsyms should be a list of space-separated symbols to be *always*
14016 # included in the symbol list
14017 include_expsyms_F77
=
14018 # exclude_expsyms can be an extended regexp of symbols to exclude
14019 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14020 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14021 # as well as any symbol that contains `d'.
14022 exclude_expsyms_F77
="_GLOBAL_OFFSET_TABLE_"
14023 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14024 # platforms (ab)use it in PIC code, but their linkers get confused if
14025 # the symbol is explicitly referenced. Since portable code cannot
14026 # rely on this symbol name, it's probably fine to never include it in
14027 # preloaded symbol tables.
14028 extract_expsyms_cmds
=
14029 # Just being paranoid about ensuring that cc_basename is set.
14030 for cc_temp
in $compiler""; do
14032 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
14033 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
14038 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14041 cygwin
* | mingw
* | pw32
*)
14042 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14043 # When not using gcc, we currently assume that we are using
14044 # Microsoft Visual C++.
14045 if test "$GCC" != yes; then
14050 # we just hope/assume this is gcc and not c89 (= MSVC++)
14059 if test "$with_gnu_ld" = yes; then
14060 # If archive_cmds runs LD, not CC, wlarc should be empty
14063 # Set some defaults for GNU ld with shared library support. These
14064 # are reset later if shared libraries are not supported. Putting them
14065 # here allows them to be overridden if necessary.
14066 runpath_var
=LD_RUN_PATH
14067 hardcode_libdir_flag_spec_F77
='${wl}--rpath ${wl}$libdir'
14068 export_dynamic_flag_spec_F77
='${wl}--export-dynamic'
14069 # ancient GNU ld didn't support --whole-archive et. al.
14070 if $LD --help 2>&1 |
grep 'no-whole-archive' > /dev
/null
; then
14071 whole_archive_flag_spec_F77
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14073 whole_archive_flag_spec_F77
=
14075 supports_anon_versioning
=no
14076 case `$LD -v 2>/dev/null` in
14077 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
14078 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
14079 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
14080 *\
2.11.
*) ;; # other 2.11 versions
14081 *) supports_anon_versioning
=yes ;;
14084 # See if GNU ld supports shared libraries.
14086 aix3
* | aix4
* | aix5
*)
14087 # On AIX/PPC, the GNU linker is very broken
14088 if test "$host_cpu" != ia64
; then
14092 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14093 *** to be unable to reliably create shared libraries on AIX.
14094 *** Therefore, libtool is disabling shared libraries support. If you
14095 *** really care for shared libraries, you may want to modify your PATH
14096 *** so that a non-GNU linker is found, and then restart.
14103 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)'
14104 hardcode_libdir_flag_spec_F77
='-L$libdir'
14105 hardcode_minus_L_F77
=yes
14107 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14108 # that the semantics of dynamic libraries on AmigaOS, at least up
14109 # to version 4, is to share data among multiple programs linked
14110 # with the same dynamic library. Since this doesn't match the
14111 # behavior of shared libraries on other platforms, we can't use
14117 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
14118 allow_undefined_flag_F77
=unsupported
14119 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14120 # support --undefined. This deserves some investigation. FIXME
14121 archive_cmds_F77
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14127 cygwin
* | mingw
* | pw32
*)
14128 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14129 # as there is no search path for DLLs.
14130 hardcode_libdir_flag_spec_F77
='-L$libdir'
14131 allow_undefined_flag_F77
=unsupported
14132 always_export_symbols_F77
=no
14133 enable_shared_with_static_runtimes_F77
=yes
14134 export_symbols_cmds_F77
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14136 if $LD --help 2>&1 |
grep 'auto-import' > /dev
/null
; then
14137 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14138 # If the export-symbols file already is a .def file (1st line
14139 # is EXPORTS), use it as is; otherwise, prepend...
14140 archive_expsym_cmds_F77
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14141 cp $export_symbols $output_objdir/$soname.def;
14143 echo EXPORTS > $output_objdir/$soname.def;
14144 cat $export_symbols >> $output_objdir/$soname.def;
14146 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14153 hardcode_direct_F77
=no
14154 hardcode_shlibpath_var_F77
=no
14155 hardcode_libdir_flag_spec_F77
='${wl}-rpath,$libdir'
14156 export_dynamic_flag_spec_F77
='${wl}-E'
14157 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14158 # Instead, shared libraries are loaded at an image base (0x10000000 by
14159 # default) and relocated if they conflict, which is a slow very memory
14160 # consuming and fragmenting process. To avoid this, we pick a random,
14161 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14162 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14163 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'
14164 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'
14168 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
14170 case $cc_basename,$host_cpu in
14171 pgcc
*) # Portland Group C compiler
14172 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'
14173 tmp_addflag
=' $pic_flag'
14175 pgf77
* | pgf90
* | pgf95
*) # Portland Group f77 and f90 compilers
14176 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'
14177 tmp_addflag
=' $pic_flag -Mnomain' ;;
14178 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
14179 tmp_addflag
=' -i_dynamic' ;;
14180 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
14181 tmp_addflag
=' -i_dynamic -nofor_main' ;;
14182 ifc
* | ifort
*) # Intel Fortran compiler
14183 tmp_addflag
=' -nofor_main' ;;
14185 archive_cmds_F77
='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14187 if test $supports_anon_versioning = yes; then
14188 archive_expsym_cmds_F77
='$echo "{ global:" > $output_objdir/$libname.ver~
14189 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14190 $echo "local: *; };" >> $output_objdir/$libname.ver~
14191 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14199 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
14200 archive_cmds_F77
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14203 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14204 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14209 if $LD -v 2>&1 |
grep 'BFD 2\.8' > /dev
/null
; then
14213 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14214 *** create shared libraries on Solaris systems. Therefore, libtool
14215 *** is disabling shared libraries support. We urge you to upgrade GNU
14216 *** binutils to release 2.9.1 or newer. Another option is to modify
14217 *** your PATH or compiler configuration so that the native linker is
14218 *** used, and then restart.
14221 elif $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
14222 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14223 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14229 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
14230 case `$LD -v 2>&1` in
14231 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
14235 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14236 *** reliably create shared libraries on SCO systems. Therefore, libtool
14237 *** is disabling shared libraries support. We urge you to upgrade GNU
14238 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14239 *** your PATH or compiler configuration so that the native linker is
14240 *** used, and then restart.
14245 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
14246 hardcode_libdir_flag_spec_F77
='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14247 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14248 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14257 archive_cmds_F77
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14259 hardcode_direct_F77
=yes
14260 hardcode_shlibpath_var_F77
=no
14264 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
14265 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14266 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14273 if test "$ld_shlibs_F77" = no
; then
14275 hardcode_libdir_flag_spec_F77
=
14276 export_dynamic_flag_spec_F77
=
14277 whole_archive_flag_spec_F77
=
14280 # PORTME fill in a description of your system's linker (not GNU ld)
14283 allow_undefined_flag_F77
=unsupported
14284 always_export_symbols_F77
=yes
14285 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'
14286 # Note: this linker hardcodes the directories in LIBPATH if there
14287 # are no directories specified by -L.
14288 hardcode_minus_L_F77
=yes
14289 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14290 # Neither direct hardcoding nor static linking is supported with a
14292 hardcode_direct_F77
=unsupported
14297 if test "$host_cpu" = ia64
; then
14298 # On IA64, the linker does run time linking by default, so we don't
14299 # have to do anything special.
14300 aix_use_runtimelinking
=no
14301 exp_sym_flag
='-Bexport'
14304 # If we're using GNU nm, then we don't want the "-C" option.
14305 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14306 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
14307 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'
14309 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'
14311 aix_use_runtimelinking
=no
14313 # Test if we are trying to use run time linking or normal
14314 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14315 # need to do runtime linking.
14316 case $host_os in aix4.
[23]|aix4.
[23].
*|aix5
*)
14317 for ld_flag
in $LDFLAGS; do
14318 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
14319 aix_use_runtimelinking
=yes
14326 exp_sym_flag
='-bexport'
14327 no_entry_flag
='-bnoentry'
14330 # When large executables or shared objects are built, AIX ld can
14331 # have problems creating the table of contents. If linking a library
14332 # or program results in "error TOC overflow" add -mminimal-toc to
14333 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14334 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14336 archive_cmds_F77
=''
14337 hardcode_direct_F77
=yes
14338 hardcode_libdir_separator_F77
=':'
14339 link_all_deplibs_F77
=yes
14341 if test "$GCC" = yes; then
14342 case $host_os in aix4.
[012]|aix4.
[012].
*)
14343 # We only want to do this on AIX 4.2 and lower, the check
14344 # below for broken collect2 doesn't work under 4.3+
14345 collect2name
=`${CC} -print-prog-name=collect2`
14346 if test -f "$collect2name" && \
14347 strings "$collect2name" |
grep resolve_lib_name
>/dev
/null
14349 # We have reworked collect2
14350 hardcode_direct_F77
=yes
14352 # We have old collect2
14353 hardcode_direct_F77
=unsupported
14354 # It fails to find uninstalled libraries when the uninstalled
14355 # path is not listed in the libpath. Setting hardcode_minus_L
14356 # to unsupported forces relinking
14357 hardcode_minus_L_F77
=yes
14358 hardcode_libdir_flag_spec_F77
='-L$libdir'
14359 hardcode_libdir_separator_F77
=
14363 shared_flag
='-shared'
14364 if test "$aix_use_runtimelinking" = yes; then
14365 shared_flag
="$shared_flag "'${wl}-G'
14369 if test "$host_cpu" = ia64
; then
14370 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14371 # chokes on -Wl,-G. The following line is correct:
14374 if test "$aix_use_runtimelinking" = yes; then
14375 shared_flag
='${wl}-G'
14377 shared_flag
='${wl}-bM:SRE'
14382 # It seems that -bexpall does not export symbols beginning with
14383 # underscore (_), so it is better to generate a list of symbols to export.
14384 always_export_symbols_F77
=yes
14385 if test "$aix_use_runtimelinking" = yes; then
14386 # Warning - without using the other runtime loading flags (-brtl),
14387 # -berok will link without error, but may produce a broken library.
14388 allow_undefined_flag_F77
='-berok'
14389 # Determine the default libpath from the value encoded in an empty executable.
14390 cat >conftest.
$ac_ext <<_ACEOF
14395 rm -f conftest.
$ac_objext conftest
$ac_exeext
14396 if { (ac_try
="$ac_link"
14397 case "(($ac_try" in
14398 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14399 *) ac_try_echo=$ac_try;;
14401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14402 (eval "$ac_link") 2>conftest.er1
14404 grep -v '^ *+' conftest.er1 >conftest.err
14406 cat conftest.err >&5
14407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14408 (exit $ac_status); } && {
14409 test -z "$ac_f77_werror_flag" ||
14410 test ! -s conftest.err
14411 } && test -s conftest$ac_exeext &&
14412 $as_test_x conftest$ac_exeext; then
14414 aix_libpath=`dump
-H conftest
$ac_exeext 2>/dev
/null |
$SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14416 # Check for a 64-bit object if we didn't find anything.
14417 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; }
14420 echo "$as_me: failed program was:" >&5
14421 sed 's/^/| /' conftest.$ac_ext >&5
14426 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14427 conftest$ac_exeext conftest.$ac_ext
14428 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14430 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14431 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"
14433 if test "$host_cpu" = ia64; then
14434 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14435 allow_undefined_flag_F77="-z nodefs"
14436 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"
14438 # Determine the default libpath from the value encoded in an empty executable.
14439 cat >conftest.$ac_ext <<_ACEOF
14444 rm -f conftest.$ac_objext conftest$ac_exeext
14445 if { (ac_try="$ac_link"
14446 case "(($ac_try" in
14447 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14448 *) ac_try_echo
=$ac_try;;
14450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14451 (eval "$ac_link") 2>conftest.er1
14453 grep -v '^ *+' conftest.er1
>conftest.err
14455 cat conftest.err
>&5
14456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14457 (exit $ac_status); } && {
14458 test -z "$ac_f77_werror_flag" ||
14459 test ! -s conftest.err
14460 } && test -s conftest
$ac_exeext &&
14461 $as_test_x conftest
$ac_exeext; then
14463 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14465 # Check for a 64-bit object if we didn't find anything.
14466 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; }
14469 echo "$as_me: failed program was:" >&5
14470 sed 's/^/| /' conftest.
$ac_ext >&5
14475 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14476 conftest
$ac_exeext conftest.
$ac_ext
14477 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
14479 hardcode_libdir_flag_spec_F77
='${wl}-blibpath:$libdir:'"$aix_libpath"
14480 # Warning - without using the other run time loading flags,
14481 # -berok will link without error, but may produce a broken library.
14482 no_undefined_flag_F77
=' ${wl}-bernotok'
14483 allow_undefined_flag_F77
=' ${wl}-berok'
14484 # Exported symbols can be pulled into shared objects from archives
14485 whole_archive_flag_spec_F77
='$convenience'
14486 archive_cmds_need_lc_F77
=yes
14487 # This is similar to how AIX traditionally builds its shared libraries.
14488 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'
14494 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)'
14495 hardcode_libdir_flag_spec_F77
='-L$libdir'
14496 hardcode_minus_L_F77
=yes
14497 # see comment about different semantics on the GNU ld section
14502 export_dynamic_flag_spec_F77
=-rdynamic
14505 cygwin
* | mingw
* | pw32
*)
14506 # When not using gcc, we currently assume that we are using
14507 # Microsoft Visual C++.
14508 # hardcode_libdir_flag_spec is actually meaningless, as there is
14509 # no search path for DLLs.
14510 hardcode_libdir_flag_spec_F77
=' '
14511 allow_undefined_flag_F77
=unsupported
14512 # Tell ltmain to make .lib files, not .a files.
14514 # Tell ltmain to make .dll files, not .so files.
14516 # FIXME: Setting linknames here is a bad hack.
14517 archive_cmds_F77
='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14518 # The linker will automatically build a .lib file if we build a DLL.
14519 old_archive_From_new_cmds_F77
='true'
14520 # FIXME: Should let the user specify the lib program.
14521 old_archive_cmds_F77
='lib /OUT:$oldlib$oldobjs$old_deplibs'
14522 fix_srcfile_path_F77
='`cygpath -w "$srcfile"`'
14523 enable_shared_with_static_runtimes_F77
=yes
14526 darwin
* | rhapsody
*)
14528 rhapsody
* | darwin1.
[012])
14529 allow_undefined_flag_F77
='${wl}-undefined ${wl}suppress'
14532 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14533 allow_undefined_flag_F77
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14535 case ${MACOSX_DEPLOYMENT_TARGET} in
14537 allow_undefined_flag_F77
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14540 allow_undefined_flag_F77
='${wl}-undefined ${wl}dynamic_lookup'
14546 archive_cmds_need_lc_F77
=no
14547 hardcode_direct_F77
=no
14548 hardcode_automatic_F77
=yes
14549 hardcode_shlibpath_var_F77
=unsupported
14550 whole_archive_flag_spec_F77
=''
14551 link_all_deplibs_F77
=yes
14552 if test "$GCC" = yes ; then
14553 output_verbose_link_cmd
='echo'
14554 archive_cmds_F77
='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14555 module_cmds_F77
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14556 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14557 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}'
14558 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}'
14560 case $cc_basename in
14562 output_verbose_link_cmd
='echo'
14563 archive_cmds_F77
='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14564 module_cmds_F77
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14565 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14566 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}'
14567 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}'
14577 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14578 hardcode_libdir_flag_spec_F77
='-L$libdir'
14579 hardcode_shlibpath_var_F77
=no
14586 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14587 # support. Future versions do this automatically, but an explicit c++rt0.o
14588 # does not break anything, and helps significantly (at the cost of a little
14591 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14592 hardcode_libdir_flag_spec_F77
='-R$libdir'
14593 hardcode_direct_F77
=yes
14594 hardcode_shlibpath_var_F77
=no
14597 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14599 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14600 hardcode_direct_F77
=yes
14601 hardcode_minus_L_F77
=yes
14602 hardcode_shlibpath_var_F77
=no
14605 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14606 freebsd
* | kfreebsd
*-gnu | dragonfly
*)
14607 archive_cmds_F77
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14608 hardcode_libdir_flag_spec_F77
='-R$libdir'
14609 hardcode_direct_F77
=yes
14610 hardcode_shlibpath_var_F77
=no
14614 if test "$GCC" = yes; then
14615 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'
14617 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'
14619 hardcode_libdir_flag_spec_F77
='${wl}+b ${wl}$libdir'
14620 hardcode_libdir_separator_F77
=:
14621 hardcode_direct_F77
=yes
14623 # hardcode_minus_L: Not really in the search PATH,
14624 # but as the default location of the library.
14625 hardcode_minus_L_F77
=yes
14626 export_dynamic_flag_spec_F77
='${wl}-E'
14630 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
14631 archive_cmds_F77
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14633 archive_cmds_F77
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14635 if test "$with_gnu_ld" = no
; then
14636 hardcode_libdir_flag_spec_F77
='${wl}+b ${wl}$libdir'
14637 hardcode_libdir_separator_F77
=:
14639 hardcode_direct_F77
=yes
14640 export_dynamic_flag_spec_F77
='${wl}-E'
14642 # hardcode_minus_L: Not really in the search PATH,
14643 # but as the default location of the library.
14644 hardcode_minus_L_F77
=yes
14649 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
14652 archive_cmds_F77
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14655 archive_cmds_F77
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14658 archive_cmds_F77
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14664 archive_cmds_F77
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14667 archive_cmds_F77
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14670 archive_cmds_F77
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14674 if test "$with_gnu_ld" = no
; then
14675 hardcode_libdir_flag_spec_F77
='${wl}+b ${wl}$libdir'
14676 hardcode_libdir_separator_F77
=:
14680 hardcode_libdir_flag_spec_ld_F77
='+b $libdir'
14681 hardcode_direct_F77
=no
14682 hardcode_shlibpath_var_F77
=no
14685 hardcode_direct_F77
=yes
14686 export_dynamic_flag_spec_F77
='${wl}-E'
14688 # hardcode_minus_L: Not really in the search PATH,
14689 # but as the default location of the library.
14690 hardcode_minus_L_F77
=yes
14696 irix5
* | irix6
* | nonstopux
*)
14697 if test "$GCC" = yes; then
14698 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'
14700 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'
14701 hardcode_libdir_flag_spec_ld_F77
='-rpath $libdir'
14703 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
14704 hardcode_libdir_separator_F77
=:
14705 link_all_deplibs_F77
=yes
14709 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
14710 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14712 archive_cmds_F77
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14714 hardcode_libdir_flag_spec_F77
='-R$libdir'
14715 hardcode_direct_F77
=yes
14716 hardcode_shlibpath_var_F77
=no
14720 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14721 hardcode_direct_F77
=yes
14722 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
14723 hardcode_libdir_separator_F77
=:
14724 hardcode_shlibpath_var_F77
=no
14728 hardcode_direct_F77
=yes
14729 hardcode_shlibpath_var_F77
=no
14730 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14731 archive_cmds_F77
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14732 archive_expsym_cmds_F77
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14733 hardcode_libdir_flag_spec_F77
='${wl}-rpath,$libdir'
14734 export_dynamic_flag_spec_F77
='${wl}-E'
14737 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
14738 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14739 hardcode_libdir_flag_spec_F77
='-R$libdir'
14742 archive_cmds_F77
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14743 hardcode_libdir_flag_spec_F77
='${wl}-rpath,$libdir'
14750 hardcode_libdir_flag_spec_F77
='-L$libdir'
14751 hardcode_minus_L_F77
=yes
14752 allow_undefined_flag_F77
=unsupported
14753 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'
14754 old_archive_From_new_cmds_F77
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14758 if test "$GCC" = yes; then
14759 allow_undefined_flag_F77
=' ${wl}-expect_unresolved ${wl}\*'
14760 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'
14762 allow_undefined_flag_F77
=' -expect_unresolved \*'
14763 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'
14765 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
14766 hardcode_libdir_separator_F77
=:
14769 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
14770 if test "$GCC" = yes; then
14771 allow_undefined_flag_F77
=' ${wl}-expect_unresolved ${wl}\*'
14772 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'
14773 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
14775 allow_undefined_flag_F77
=' -expect_unresolved \*'
14776 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'
14777 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~
14778 $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'
14780 # Both c and cxx compiler support -rpath directly
14781 hardcode_libdir_flag_spec_F77
='-rpath $libdir'
14783 hardcode_libdir_separator_F77
=:
14787 no_undefined_flag_F77
=' -z text'
14788 if test "$GCC" = yes; then
14790 archive_cmds_F77
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14791 archive_expsym_cmds_F77
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14792 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14795 archive_cmds_F77
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14796 archive_expsym_cmds_F77
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14797 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14799 hardcode_libdir_flag_spec_F77
='-R$libdir'
14800 hardcode_shlibpath_var_F77
=no
14802 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
14804 # The compiler driver will combine linker options so we
14805 # cannot just pass the convience library names through
14806 # without $wl, iff we do not link with $LD.
14807 # Luckily, gcc supports the same syntax we need for Sun Studio.
14808 # Supported since Solaris 2.6 (maybe 2.5.1?)
14811 whole_archive_flag_spec_F77
='-z allextract$convenience -z defaultextract' ;;
14813 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' ;;
14816 link_all_deplibs_F77
=yes
14820 if test "x$host_vendor" = xsequent
; then
14821 # Use $CC to link under sequent, because it throws in some extra .o
14822 # files that make .init and .fini sections work.
14823 archive_cmds_F77
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14825 archive_cmds_F77
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14827 hardcode_libdir_flag_spec_F77
='-L$libdir'
14828 hardcode_direct_F77
=yes
14829 hardcode_minus_L_F77
=yes
14830 hardcode_shlibpath_var_F77
=no
14834 case $host_vendor in
14836 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14837 hardcode_direct_F77
=yes # is this really true???
14840 ## LD is ld it makes a PLAMLIB
14841 ## CC just makes a GrossModule.
14842 archive_cmds_F77
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14843 reload_cmds_F77
='$CC -r -o $output$reload_objs'
14844 hardcode_direct_F77
=no
14847 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14848 hardcode_direct_F77
=no
#Motorola manual says yes, but my tests say they lie
14851 runpath_var
='LD_RUN_PATH'
14852 hardcode_shlibpath_var_F77
=no
14856 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14857 hardcode_shlibpath_var_F77
=no
14858 export_dynamic_flag_spec_F77
='-Bexport'
14862 if test -d /usr
/nec
; then
14863 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14864 hardcode_shlibpath_var_F77
=no
14865 runpath_var
=LD_RUN_PATH
14866 hardcode_runpath_var
=yes
14871 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
*)
14872 no_undefined_flag_F77
='${wl}-z,text'
14873 archive_cmds_need_lc_F77
=no
14874 hardcode_shlibpath_var_F77
=no
14875 runpath_var
='LD_RUN_PATH'
14877 if test "$GCC" = yes; then
14878 archive_cmds_F77
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14879 archive_expsym_cmds_F77
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14881 archive_cmds_F77
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14882 archive_expsym_cmds_F77
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14886 sysv5
* | sco3.2v5
* | sco5v6
*)
14887 # Note: We can NOT use -z defs as we might desire, because we do not
14888 # link with -lc, and that would cause any symbols used from libc to
14889 # always be unresolved, which means just about no library would
14890 # ever link correctly. If we're not using GNU ld we use -z text
14891 # though, which does catch some bad symbols but isn't as heavy-handed
14893 no_undefined_flag_F77
='${wl}-z,text'
14894 allow_undefined_flag_F77
='${wl}-z,nodefs'
14895 archive_cmds_need_lc_F77
=no
14896 hardcode_shlibpath_var_F77
=no
14897 hardcode_libdir_flag_spec_F77
='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14898 hardcode_libdir_separator_F77
=':'
14899 link_all_deplibs_F77
=yes
14900 export_dynamic_flag_spec_F77
='${wl}-Bexport'
14901 runpath_var
='LD_RUN_PATH'
14903 if test "$GCC" = yes; then
14904 archive_cmds_F77
='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14905 archive_expsym_cmds_F77
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14907 archive_cmds_F77
='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14908 archive_expsym_cmds_F77
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14913 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14914 hardcode_libdir_flag_spec_F77
='-L$libdir'
14915 hardcode_shlibpath_var_F77
=no
14924 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14925 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
14926 test "$ld_shlibs_F77" = no
&& can_build_shared
=no
14929 # Do we need to explicitly link libc?
14931 case "x$archive_cmds_need_lc_F77" in
14933 # Assume -lc should be added
14934 archive_cmds_need_lc_F77
=yes
14936 if test "$enable_shared" = yes && test "$GCC" = yes; then
14937 case $archive_cmds_F77 in
14939 # FIXME: we may have to deal with multi-command sequences.
14942 # Test whether the compiler implicitly links with -lc since on some
14943 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14944 # to ld, don't add -lc before -lgcc.
14945 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14946 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14948 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
14950 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14951 (eval $ac_compile) 2>&5
14953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14954 (exit $ac_status); } 2>conftest.err
; then
14957 libobjs
=conftest.
$ac_objext
14959 wl
=$lt_prog_compiler_wl_F77
14960 pic_flag
=$lt_prog_compiler_pic_F77
14966 lt_save_allow_undefined_flag
=$allow_undefined_flag_F77
14967 allow_undefined_flag_F77
=
14968 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14969 (eval $archive_cmds_F77 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
14971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14972 (exit $ac_status); }
14974 archive_cmds_need_lc_F77
=no
14976 archive_cmds_need_lc_F77
=yes
14978 allow_undefined_flag_F77
=$lt_save_allow_undefined_flag
14980 cat conftest.err
1>&5
14983 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14984 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
14991 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14992 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
14993 library_names_spec
=
14994 libname_spec
='lib$name'
14998 postuninstall_cmds
=
15002 shlibpath_overrides_runpath
=unknown
15004 dynamic_linker
="$host_os ld.so"
15005 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
15006 if test "$GCC" = yes; then
15007 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15008 if echo "$sys_lib_search_path_spec" |
grep ';' >/dev
/null
; then
15009 # if the path contains ";" then we assume it to be the separator
15010 # otherwise default to the standard path separator (i.e. ":") - it is
15011 # assumed that no part of a normal pathname contains ";" but that should
15012 # okay in the real world where ";" in dirpaths is itself problematic.
15013 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15015 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15018 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
15020 need_lib_prefix
=unknown
15021 hardcode_into_libs
=no
15023 # when you set need_version to no, make sure it does not cause -set_version
15024 # flags to be left without arguments
15025 need_version
=unknown
15030 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
15031 shlibpath_var
=LIBPATH
15033 # AIX 3 has no versioning support, so we append a major version to the name.
15034 soname_spec
='${libname}${release}${shared_ext}$major'
15041 hardcode_into_libs
=yes
15042 if test "$host_cpu" = ia64
; then
15043 # AIX 5 supports IA64
15044 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15045 shlibpath_var
=LD_LIBRARY_PATH
15047 # With GCC up to 2.95.x, collect2 would create an import file
15048 # for dependence libraries. The import file would start with
15049 # the line `#! .'. This would cause the generated library to
15050 # depend on `.', always an invalid library. This was fixed in
15051 # development snapshots of GCC prior to 3.0.
15053 aix4 | aix4.
[01] | aix4.
[01].
*)
15054 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15056 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
15059 can_build_shared
=no
15063 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15064 # soname into executable. Probably we can add versioning support to
15065 # collect2, so additional links can be useful in future.
15066 if test "$aix_use_runtimelinking" = yes; then
15067 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15068 # instead of lib<name>.a to let people know that these are not
15069 # typical AIX shared libraries.
15070 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15072 # We preserve .a as extension for shared libraries through AIX4.2
15073 # and later when we are not doing run time linking.
15074 library_names_spec
='${libname}${release}.a $libname.a'
15075 soname_spec
='${libname}${release}${shared_ext}$major'
15077 shlibpath_var
=LIBPATH
15082 library_names_spec
='$libname.ixlibrary $libname.a'
15083 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15084 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'
15088 library_names_spec
='${libname}${shared_ext}'
15089 dynamic_linker
="$host_os ld.so"
15090 shlibpath_var
=LIBRARY_PATH
15096 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15097 soname_spec
='${libname}${release}${shared_ext}$major'
15098 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
15099 shlibpath_var
=LD_LIBRARY_PATH
15100 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15101 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
15102 # the default ld.so.conf also contains /usr/contrib/lib and
15103 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15104 # libtool to hard-code these into programs
15107 cygwin
* | mingw
* | pw32
*)
15108 version_type
=windows
15113 case $GCC,$host_os in
15114 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
15115 library_names_spec
='$libname.dll.a'
15116 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15117 postinstall_cmds
='base_file=`basename \${file}`~
15118 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15119 dldir=$destdir/`dirname \$dlpath`~
15120 test -d \$dldir || mkdir -p \$dldir~
15121 $install_prog $dir/$dlname \$dldir/$dlname~
15122 chmod a+x \$dldir/$dlname'
15123 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15124 dlpath=$dir/\$dldll~
15126 shlibpath_overrides_runpath
=yes
15130 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15131 #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
15132 soname_spec
='`echo ${libname} | sed -e 's
/^lib
//'`${shared_ext}'
15133 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
15136 # MinGW DLLs use traditional 'lib' prefix
15137 #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
15138 soname_spec
='`echo ${libname} | sed -e 's
/^lib
//'`${shared_ext}'
15139 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15140 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
15141 # It is most probably a Windows format PATH printed by
15142 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15143 # path with ; separators, and with drive letters. We can handle the
15144 # drive letters (cygwin fileutils understands them), so leave them,
15145 # especially as we might pass files found there to a mingw objdump,
15146 # which wouldn't understand a cygwinified path. Ahh.
15147 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15149 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15153 # pw32 DLLs use 'pw' prefix rather than 'lib'
15154 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15160 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15163 dynamic_linker
='Win32 ld.exe'
15164 # FIXME: first we should search . and the directory the executable is in
15168 darwin
* | rhapsody
*)
15169 dynamic_linker
="$host_os dyld"
15170 version_type
=darwin
15173 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15174 soname_spec
='${libname}${release}${major}$shared_ext'
15175 shlibpath_overrides_runpath
=yes
15176 shlibpath_var
=DYLD_LIBRARY_PATH
15177 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
15178 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15179 if test "$GCC" = yes; then
15180 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"`
15182 sys_lib_search_path_spec
='/lib /usr/lib /usr/local/lib'
15184 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
15191 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15192 soname_spec
='${libname}${release}${shared_ext}$major'
15193 shlibpath_var
=LD_LIBRARY_PATH
15204 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15205 soname_spec
='${libname}${release}${shared_ext}$major'
15206 shlibpath_var
=LD_LIBRARY_PATH
15207 shlibpath_overrides_runpath
=no
15208 hardcode_into_libs
=yes
15209 dynamic_linker
='GNU ld.so'
15212 freebsd
* | dragonfly
*)
15213 # DragonFly does not have aout. When/if they implement a new
15214 # versioning mechanism, adjust this.
15215 if test -x /usr
/bin
/objformat
; then
15216 objformat
=`/usr/bin/objformat`
15219 freebsd
[123]*) objformat
=aout
;;
15220 *) objformat
=elf
;;
15223 version_type
=freebsd-
$objformat
15224 case $version_type in
15226 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15231 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15235 shlibpath_var
=LD_LIBRARY_PATH
15238 shlibpath_overrides_runpath
=yes
15240 freebsd3.
[01]* | freebsdelf3.
[01]*)
15241 shlibpath_overrides_runpath
=yes
15242 hardcode_into_libs
=yes
15244 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
15245 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
15246 shlibpath_overrides_runpath
=no
15247 hardcode_into_libs
=yes
15249 freebsd
*) # from 4.6 on
15250 shlibpath_overrides_runpath
=yes
15251 hardcode_into_libs
=yes
15260 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15261 soname_spec
='${libname}${release}${shared_ext}$major'
15262 shlibpath_var
=LD_LIBRARY_PATH
15263 hardcode_into_libs
=yes
15266 hpux9
* | hpux10
* | hpux11
*)
15267 # Give a soname corresponding to the major version so that dld.sl refuses to
15268 # link against other versions.
15275 hardcode_into_libs
=yes
15276 dynamic_linker
="$host_os dld.so"
15277 shlibpath_var
=LD_LIBRARY_PATH
15278 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
15279 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15280 soname_spec
='${libname}${release}${shared_ext}$major'
15281 if test "X$HPUX_IA64_MODE" = X32
; then
15282 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15284 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
15286 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
15290 hardcode_into_libs
=yes
15291 dynamic_linker
="$host_os dld.sl"
15292 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
15293 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
15294 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15295 soname_spec
='${libname}${release}${shared_ext}$major'
15296 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15297 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
15301 dynamic_linker
="$host_os dld.sl"
15302 shlibpath_var
=SHLIB_PATH
15303 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
15304 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15305 soname_spec
='${libname}${release}${shared_ext}$major'
15308 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15309 postinstall_cmds
='chmod 555 $lib'
15316 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15317 soname_spec
='${libname}${release}${shared_ext}$major'
15318 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
15319 shlibpath_var
=LD_LIBRARY_PATH
15320 shlibpath_overrides_runpath
=no
15321 hardcode_into_libs
=yes
15324 irix5
* | irix6
* | nonstopux
*)
15326 nonstopux
*) version_type
=nonstopux
;;
15328 if test "$lt_cv_prog_gnu_ld" = yes; then
15336 soname_spec
='${libname}${release}${shared_ext}$major'
15337 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15339 irix5
* | nonstopux
*)
15340 libsuff
= shlibsuff
=
15343 case $LD in # libtool.m4 will add one of these switches to LD
15344 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
15345 libsuff
= shlibsuff
= libmagic
=32-bit;;
15346 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
15347 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
15348 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
15349 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
15350 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
15354 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
15355 shlibpath_overrides_runpath
=no
15356 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15357 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
15358 hardcode_into_libs
=yes
15361 # No shared lib support for Linux oldld, aout, or coff.
15362 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
15366 # This must be Linux ELF.
15371 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15372 soname_spec
='${libname}${release}${shared_ext}$major'
15373 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15374 shlibpath_var
=LD_LIBRARY_PATH
15375 shlibpath_overrides_runpath
=no
15376 # This implies no fast_install, which is unacceptable.
15377 # Some rework will be needed to allow for fast_install
15378 # before this can be enabled.
15379 hardcode_into_libs
=yes
15381 # Append ld.so.conf contents to the search path
15382 if test -f /etc
/ld.so.conf
; then
15383 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' ' '`
15384 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
15387 # We used to test for /lib/ld.so.1 and disable shared libraries on
15388 # powerpc, because MkLinux only supported shared libraries with the
15389 # GNU dynamic linker. Since this was broken with cross compilers,
15390 # most powerpc-linux boxes support dynamic linking these days and
15391 # people can always --disable-shared, the test was removed, and we
15392 # assume the GNU/Linux dynamic linker is in use.
15393 dynamic_linker
='GNU/Linux ld.so'
15400 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15401 soname_spec
='${libname}${release}${shared_ext}$major'
15402 shlibpath_var
=LD_LIBRARY_PATH
15403 shlibpath_overrides_runpath
=no
15404 hardcode_into_libs
=yes
15405 dynamic_linker
='GNU ld.so'
15412 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
15413 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15414 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15415 dynamic_linker
='NetBSD (a.out) ld.so'
15417 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15418 soname_spec
='${libname}${release}${shared_ext}$major'
15419 dynamic_linker
='NetBSD ld.elf_so'
15421 shlibpath_var
=LD_LIBRARY_PATH
15422 shlibpath_overrides_runpath
=yes
15423 hardcode_into_libs
=yes
15428 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15429 shlibpath_var
=LD_LIBRARY_PATH
15430 shlibpath_overrides_runpath
=yes
15437 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15438 soname_spec
='${libname}${release}${shared_ext}$major'
15439 shlibpath_var
=LD_LIBRARY_PATH
15440 shlibpath_overrides_runpath
=yes
15445 sys_lib_dlsearch_path_spec
="/usr/lib"
15447 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15449 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
15450 *) need_version
=no
;;
15452 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15453 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15454 shlibpath_var
=LD_LIBRARY_PATH
15455 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15457 openbsd2.
[89] | openbsd2.
[89].
*)
15458 shlibpath_overrides_runpath
=no
15461 shlibpath_overrides_runpath
=yes
15465 shlibpath_overrides_runpath
=yes
15470 libname_spec
='$name'
15473 library_names_spec
='$libname${shared_ext} $libname.a'
15474 dynamic_linker
='OS/2 ld.exe'
15475 shlibpath_var
=LIBPATH
15478 osf3
* | osf4
* | osf5
*)
15482 soname_spec
='${libname}${release}${shared_ext}$major'
15483 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15484 shlibpath_var
=LD_LIBRARY_PATH
15485 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15486 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
15493 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15494 soname_spec
='${libname}${release}${shared_ext}$major'
15495 shlibpath_var
=LD_LIBRARY_PATH
15496 shlibpath_overrides_runpath
=yes
15497 hardcode_into_libs
=yes
15498 # ldd complains unless libraries are executable
15499 postinstall_cmds
='chmod +x $lib'
15504 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15505 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15506 shlibpath_var
=LD_LIBRARY_PATH
15507 shlibpath_overrides_runpath
=yes
15508 if test "$with_gnu_ld" = yes; then
15516 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15517 soname_spec
='${libname}${release}${shared_ext}$major'
15518 shlibpath_var
=LD_LIBRARY_PATH
15519 case $host_vendor in
15521 shlibpath_overrides_runpath
=no
15523 export_dynamic_flag_spec
='${wl}-Blargedynsym'
15524 runpath_var
=LD_RUN_PATH
15532 shlibpath_overrides_runpath
=no
15533 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
15539 if test -d /usr
/nec
;then
15541 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15542 soname_spec
='$libname${shared_ext}.$major'
15543 shlibpath_var
=LD_LIBRARY_PATH
15547 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
15548 version_type
=freebsd-elf
15551 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15552 soname_spec
='${libname}${release}${shared_ext}$major'
15553 shlibpath_var
=LD_LIBRARY_PATH
15554 hardcode_into_libs
=yes
15555 if test "$with_gnu_ld" = yes; then
15556 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15557 shlibpath_overrides_runpath
=no
15559 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
15560 shlibpath_overrides_runpath
=yes
15563 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
15567 sys_lib_dlsearch_path_spec
='/usr/lib'
15572 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15573 soname_spec
='${libname}${release}${shared_ext}$major'
15574 shlibpath_var
=LD_LIBRARY_PATH
15581 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15582 echo "${ECHO_T}$dynamic_linker" >&6; }
15583 test "$dynamic_linker" = no
&& can_build_shared
=no
15585 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
15586 if test "$GCC" = yes; then
15587 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15590 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15591 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15592 hardcode_action_F77
=
15593 if test -n "$hardcode_libdir_flag_spec_F77" || \
15594 test -n "$runpath_var_F77" || \
15595 test "X$hardcode_automatic_F77" = "Xyes" ; then
15597 # We can hardcode non-existant directories.
15598 if test "$hardcode_direct_F77" != no
&&
15599 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15600 # have to relink, otherwise we might link with an installed library
15601 # when we should be linking with a yet-to-be-installed one
15602 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15603 test "$hardcode_minus_L_F77" != no
; then
15604 # Linking always hardcodes the temporary library directory.
15605 hardcode_action_F77
=relink
15607 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15608 hardcode_action_F77
=immediate
15611 # We cannot hardcode anything, or else we can only hardcode existing
15613 hardcode_action_F77
=unsupported
15615 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15616 echo "${ECHO_T}$hardcode_action_F77" >&6; }
15618 if test "$hardcode_action_F77" = relink
; then
15619 # Fast installation is not supported
15620 enable_fast_install
=no
15621 elif test "$shlibpath_overrides_runpath" = yes ||
15622 test "$enable_shared" = no
; then
15623 # Fast installation is not necessary
15624 enable_fast_install
=needless
15628 # The else clause should only fire when bootstrapping the
15629 # libtool distribution, otherwise you forgot to ship ltmain.sh
15630 # with your package, and you will get complaints that there are
15631 # no rules to generate ltmain.sh.
15632 if test -f "$ltmain"; then
15633 # See if we are running on zsh, and set the options which allow our commands through
15634 # without removal of \ escapes.
15635 if test -n "${ZSH_VERSION+set}" ; then
15636 setopt NO_GLOB_SUBST
15638 # Now quote all the things that may contain metacharacters while being
15639 # careful not to overquote the AC_SUBSTed values. We take copies of the
15640 # variables and quote the copies for generation of the libtool script.
15641 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15643 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15644 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15645 deplibs_check_method reload_flag reload_cmds need_locks \
15646 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15647 lt_cv_sys_global_symbol_to_c_name_address \
15648 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15649 old_postinstall_cmds old_postuninstall_cmds \
15653 lt_prog_compiler_wl_F77 \
15654 lt_prog_compiler_pic_F77 \
15655 lt_prog_compiler_static_F77 \
15656 lt_prog_compiler_no_builtin_flag_F77 \
15657 export_dynamic_flag_spec_F77 \
15658 thread_safe_flag_spec_F77 \
15659 whole_archive_flag_spec_F77 \
15660 enable_shared_with_static_runtimes_F77 \
15661 old_archive_cmds_F77 \
15662 old_archive_from_new_cmds_F77 \
15663 predep_objects_F77 \
15664 postdep_objects_F77 \
15667 compiler_lib_search_path_F77 \
15669 archive_expsym_cmds_F77 \
15670 postinstall_cmds_F77 \
15671 postuninstall_cmds_F77 \
15672 old_archive_from_expsyms_cmds_F77 \
15673 allow_undefined_flag_F77 \
15674 no_undefined_flag_F77 \
15675 export_symbols_cmds_F77 \
15676 hardcode_libdir_flag_spec_F77 \
15677 hardcode_libdir_flag_spec_ld_F77 \
15678 hardcode_libdir_separator_F77 \
15679 hardcode_automatic_F77 \
15681 module_expsym_cmds_F77 \
15682 lt_cv_prog_compiler_c_o_F77 \
15683 exclude_expsyms_F77 \
15684 include_expsyms_F77
; do
15687 old_archive_cmds_F77 | \
15688 old_archive_from_new_cmds_F77 | \
15689 archive_cmds_F77 | \
15690 archive_expsym_cmds_F77 | \
15691 module_cmds_F77 | \
15692 module_expsym_cmds_F77 | \
15693 old_archive_from_expsyms_cmds_F77 | \
15694 export_symbols_cmds_F77 | \
15695 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15696 postinstall_cmds | postuninstall_cmds | \
15697 old_postinstall_cmds | old_postuninstall_cmds | \
15698 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
15699 # Double-quote double-evaled strings.
15700 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15703 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15709 *'\$0 --fallback-echo"')
15710 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15716 cat <<__EOF__ >> "$cfgfile"
15717 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15719 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15721 # Shell to use when invoking shell scripts.
15724 # Whether or not to build shared libraries.
15725 build_libtool_libs=$enable_shared
15727 # Whether or not to build static libraries.
15728 build_old_libs=$enable_static
15730 # Whether or not to add -lc for building shared libraries.
15731 build_libtool_need_lc=$archive_cmds_need_lc_F77
15733 # Whether or not to disallow shared libs when runtime libs are static
15734 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15736 # Whether or not to optimize for fast installation.
15737 fast_install=$enable_fast_install
15740 host_alias=$host_alias
15744 # The build system.
15745 build_alias=$build_alias
15749 # An echo program that does not interpret backslashes.
15754 AR_FLAGS=$lt_AR_FLAGS
15759 # LTCC compiler flags.
15760 LTCFLAGS=$lt_LTCFLAGS
15762 # A language-specific compiler.
15763 CC=$lt_compiler_F77
15765 # Is the compiler the GNU C compiler?
15771 # The linker used to build libraries.
15774 # Whether we need hard or soft links.
15777 # A BSD-compatible nm program.
15780 # A symbol stripping program
15783 # Used to examine libraries when file_magic_cmd begins "file"
15784 MAGIC_CMD=$MAGIC_CMD
15786 # Used on cygwin: DLL creation program.
15789 # Used on cygwin: object dumper.
15792 # Used on cygwin: assembler.
15795 # The name of the directory that contains temporary libtool files.
15798 # How to create reloadable object files.
15799 reload_flag=$lt_reload_flag
15800 reload_cmds=$lt_reload_cmds
15802 # How to pass a linker flag through the compiler.
15803 wl=$lt_lt_prog_compiler_wl_F77
15805 # Object file suffix (normally "o").
15806 objext="$ac_objext"
15808 # Old archive suffix (normally "a").
15811 # Shared library suffix (normally ".so").
15812 shrext_cmds='$shrext_cmds'
15814 # Executable file suffix (normally "").
15817 # Additional compiler flags for building library objects.
15818 pic_flag=$lt_lt_prog_compiler_pic_F77
15821 # What is the maximum length of a command?
15822 max_cmd_len=$lt_cv_sys_max_cmd_len
15824 # Does compiler simultaneously support -c and -o options?
15825 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15827 # Must we lock files when doing compilation?
15828 need_locks=$lt_need_locks
15830 # Do we need the lib prefix for modules?
15831 need_lib_prefix=$need_lib_prefix
15833 # Do we need a version for libraries?
15834 need_version=$need_version
15836 # Whether dlopen is supported.
15837 dlopen_support=$enable_dlopen
15839 # Whether dlopen of programs is supported.
15840 dlopen_self=$enable_dlopen_self
15842 # Whether dlopen of statically linked programs is supported.
15843 dlopen_self_static=$enable_dlopen_self_static
15845 # Compiler flag to prevent dynamic linking.
15846 link_static_flag=$lt_lt_prog_compiler_static_F77
15848 # Compiler flag to turn off builtin functions.
15849 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15851 # Compiler flag to allow reflexive dlopens.
15852 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15854 # Compiler flag to generate shared objects directly from archives.
15855 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15857 # Compiler flag to generate thread-safe objects.
15858 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15860 # Library versioning type.
15861 version_type=$version_type
15863 # Format of library name prefix.
15864 libname_spec=$lt_libname_spec
15866 # List of archive names. First name is the real one, the rest are links.
15867 # The last name is the one that the linker finds with -lNAME.
15868 library_names_spec=$lt_library_names_spec
15870 # The coded name of the library, if different from the real name.
15871 soname_spec=$lt_soname_spec
15873 # Commands used to build and install an old-style archive.
15875 old_archive_cmds=$lt_old_archive_cmds_F77
15876 old_postinstall_cmds=$lt_old_postinstall_cmds
15877 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15879 # Create an old-style archive from a shared archive.
15880 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15882 # Create a temporary old-style archive to link instead of a shared archive.
15883 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15885 # Commands used to build and install a shared archive.
15886 archive_cmds=$lt_archive_cmds_F77
15887 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15888 postinstall_cmds=$lt_postinstall_cmds
15889 postuninstall_cmds=$lt_postuninstall_cmds
15891 # Commands used to build a loadable module (assumed same as above if empty)
15892 module_cmds=$lt_module_cmds_F77
15893 module_expsym_cmds=$lt_module_expsym_cmds_F77
15895 # Commands to strip libraries.
15896 old_striplib=$lt_old_striplib
15897 striplib=$lt_striplib
15899 # Dependencies to place before the objects being linked to create a
15901 predep_objects=$lt_predep_objects_F77
15903 # Dependencies to place after the objects being linked to create a
15905 postdep_objects=$lt_postdep_objects_F77
15907 # Dependencies to place before the objects being linked to create a
15909 predeps=$lt_predeps_F77
15911 # Dependencies to place after the objects being linked to create a
15913 postdeps=$lt_postdeps_F77
15915 # The library search path used internally by the compiler when linking
15916 # a shared library.
15917 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15919 # Method to check whether dependent libraries are shared objects.
15920 deplibs_check_method=$lt_deplibs_check_method
15922 # Command to use when deplibs_check_method == file_magic.
15923 file_magic_cmd=$lt_file_magic_cmd
15925 # Flag that allows shared libraries with undefined symbols to be built.
15926 allow_undefined_flag=$lt_allow_undefined_flag_F77
15928 # Flag that forces no undefined symbols.
15929 no_undefined_flag=$lt_no_undefined_flag_F77
15931 # Commands used to finish a libtool library installation in a directory.
15932 finish_cmds=$lt_finish_cmds
15934 # Same as above, but a single script fragment to be evaled but not shown.
15935 finish_eval=$lt_finish_eval
15937 # Take the output of nm and produce a listing of raw symbols and C names.
15938 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15940 # Transform the output of nm in a proper C declaration
15941 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15943 # Transform the output of nm in a C name address pair
15944 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15946 # This is the shared library runtime path variable.
15947 runpath_var=$runpath_var
15949 # This is the shared library path variable.
15950 shlibpath_var=$shlibpath_var
15952 # Is shlibpath searched before the hard-coded library search path?
15953 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15955 # How to hardcode a shared library path into an executable.
15956 hardcode_action=$hardcode_action_F77
15958 # Whether we should hardcode library paths into libraries.
15959 hardcode_into_libs=$hardcode_into_libs
15961 # Flag to hardcode \$libdir into a binary during linking.
15962 # This must work even if \$libdir does not exist.
15963 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15965 # If ld is used when linking, flag to hardcode \$libdir into
15966 # a binary during linking. This must work even if \$libdir does
15968 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15970 # Whether we need a single -rpath flag with a separated argument.
15971 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15973 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15974 # resulting binary.
15975 hardcode_direct=$hardcode_direct_F77
15977 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15978 # resulting binary.
15979 hardcode_minus_L=$hardcode_minus_L_F77
15981 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15982 # the resulting binary.
15983 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15985 # Set to yes if building a shared library automatically hardcodes DIR into the library
15986 # and all subsequent libraries and executables linked against it.
15987 hardcode_automatic=$hardcode_automatic_F77
15989 # Variables whose values should be saved in libtool wrapper scripts and
15990 # restored at relink time.
15991 variables_saved_for_relink="$variables_saved_for_relink"
15993 # Whether libtool must link a program against all its dependency libraries.
15994 link_all_deplibs=$link_all_deplibs_F77
15996 # Compile-time system search path for libraries
15997 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15999 # Run-time system search path for libraries
16000 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16002 # Fix the shell variable \$srcfile for the compiler.
16003 fix_srcfile_path="$fix_srcfile_path_F77"
16005 # Set to yes if exported symbols are required.
16006 always_export_symbols=$always_export_symbols_F77
16008 # The commands to list exported symbols.
16009 export_symbols_cmds=$lt_export_symbols_cmds_F77
16011 # The commands to extract the exported symbol list from a shared archive.
16012 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16014 # Symbols that should not be listed in the preloaded symbols.
16015 exclude_expsyms=$lt_exclude_expsyms_F77
16017 # Symbols that must always be exported.
16018 include_expsyms=$lt_include_expsyms_F77
16020 # ### END LIBTOOL TAG CONFIG: $tagname
16026 # If there is no Makefile yet, we rely on a make rule to execute
16027 # `config.status --recheck' to rerun these tests and create the
16028 # libtool script then.
16029 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16030 if test -f "$ltmain_in"; then
16031 test -f Makefile
&& make "$ltmain"
16037 ac_cpp
='$CPP $CPPFLAGS'
16038 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16039 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16040 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
16050 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16053 # Source file extension for Java test sources.
16056 # Object file extension for compiled Java test sources.
16060 # Code to be used in simple compile tests
16061 lt_simple_compile_test_code
="class foo {}\n"
16063 # Code to be used in simple link tests
16064 lt_simple_link_test_code
='public class conftest { public static void main(String[] argv) {}; }\n'
16066 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16068 # If no C compiler was specified, use CC.
16071 # If no C compiler flags were specified, use CFLAGS.
16072 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
16074 # Allow CC to be a program name with arguments.
16078 # save warnings/boilerplate of simple test code
16079 ac_outfile
=conftest.
$ac_objext
16080 printf "$lt_simple_compile_test_code" >conftest.
$ac_ext
16081 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
16082 _lt_compiler_boilerplate
=`cat conftest.err`
16085 ac_outfile
=conftest.
$ac_objext
16086 printf "$lt_simple_link_test_code" >conftest.
$ac_ext
16087 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
16088 _lt_linker_boilerplate
=`cat conftest.err`
16092 # Allow CC to be a program name with arguments.
16097 for cc_temp
in $compiler""; do
16099 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
16100 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
16105 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16108 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16109 archive_cmds_need_lc_GCJ
=no
16111 old_archive_cmds_GCJ
=$old_archive_cmds
16114 ## There is no encapsulation within the following macros, do not change
16115 ## the running order or otherwise move them around unless you know exactly
16116 ## what you are doing...
16118 lt_prog_compiler_no_builtin_flag_GCJ
=
16120 if test "$GCC" = yes; then
16121 lt_prog_compiler_no_builtin_flag_GCJ
=' -fno-builtin'
16124 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16125 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16126 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16127 echo $ECHO_N "(cached) $ECHO_C" >&6
16129 lt_cv_prog_compiler_rtti_exceptions
=no
16130 ac_outfile
=conftest.
$ac_objext
16131 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
16132 lt_compiler_flag
="-fno-rtti -fno-exceptions"
16133 # Insert the option either (1) after the last *FLAGS variable, or
16134 # (2) before a word containing "conftest.", or (3) at the end.
16135 # Note that $ac_compile itself does not contain backslashes and begins
16136 # with a dollar sign (not a hyphen), so the echo should work correctly.
16137 # The option is referenced via a variable to avoid confusing sed.
16138 lt_compile
=`echo "$ac_compile" | $SED \
16139 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16140 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16141 -e 's:$: $lt_compiler_flag:'`
16142 (eval echo "\"\$as_me:16142: $lt_compile\"" >&5)
16143 (eval "$lt_compile" 2>conftest.err
)
16145 cat conftest.err
>&5
16146 echo "$as_me:16146: \$? = $ac_status" >&5
16147 if (exit $ac_status) && test -s "$ac_outfile"; then
16148 # The compiler can only warn and ignore the option if not recognized
16149 # So say no if there are warnings other than the usual output.
16150 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
16151 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
16152 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
16153 lt_cv_prog_compiler_rtti_exceptions
=yes
16159 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16160 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16162 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
16163 lt_prog_compiler_no_builtin_flag_GCJ
="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16170 lt_prog_compiler_wl_GCJ
=
16171 lt_prog_compiler_pic_GCJ
=
16172 lt_prog_compiler_static_GCJ
=
16174 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16175 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16177 if test "$GCC" = yes; then
16178 lt_prog_compiler_wl_GCJ
='-Wl,'
16179 lt_prog_compiler_static_GCJ
='-static'
16183 # All AIX code is PIC.
16184 if test "$host_cpu" = ia64
; then
16185 # AIX 5 now supports IA64 processor
16186 lt_prog_compiler_static_GCJ
='-Bstatic'
16191 # FIXME: we need at least 68020 code to build shared libraries, but
16192 # adding the `-m68020' flag to GCC prevents building anything better,
16194 lt_prog_compiler_pic_GCJ
='-m68020 -resident32 -malways-restore-a4'
16197 beos
* | cygwin
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
16198 # PIC is the default for these OSes.
16201 mingw
* | pw32
* | os2
*)
16202 # This hack is so that the source file can tell whether it is being
16203 # built for inclusion in a dll (and should export symbols for example).
16204 lt_prog_compiler_pic_GCJ
='-DDLL_EXPORT'
16207 darwin
* | rhapsody
*)
16208 # PIC is the default on this platform
16209 # Common symbols not allowed in MH_DYLIB files
16210 lt_prog_compiler_pic_GCJ
='-fno-common'
16214 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16215 # Instead, we relocate shared libraries at runtime.
16219 # Just because we use GCC doesn't mean we suddenly get shared libraries
16220 # on systems that don't support them.
16221 lt_prog_compiler_can_build_shared_GCJ
=no
16226 if test -d /usr
/nec
; then
16227 lt_prog_compiler_pic_GCJ
=-Kconform_pic
16232 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16233 # not for PA HP-UX.
16239 lt_prog_compiler_pic_GCJ
='-fPIC'
16245 lt_prog_compiler_pic_GCJ
='-fPIC'
16249 # PORTME Check for flag to pass linker flags through the system compiler.
16252 lt_prog_compiler_wl_GCJ
='-Wl,'
16253 if test "$host_cpu" = ia64
; then
16254 # AIX 5 now supports IA64 processor
16255 lt_prog_compiler_static_GCJ
='-Bstatic'
16257 lt_prog_compiler_static_GCJ
='-bnso -bI:/lib/syscalls.exp'
16261 # PIC is the default on this platform
16262 # Common symbols not allowed in MH_DYLIB files
16263 case $cc_basename in
16265 lt_prog_compiler_pic_GCJ
='-qnocommon'
16266 lt_prog_compiler_wl_GCJ
='-Wl,'
16271 mingw
* | pw32
* | os2
*)
16272 # This hack is so that the source file can tell whether it is being
16273 # built for inclusion in a dll (and should export symbols for example).
16274 lt_prog_compiler_pic_GCJ
='-DDLL_EXPORT'
16277 hpux9
* | hpux10
* | hpux11
*)
16278 lt_prog_compiler_wl_GCJ
='-Wl,'
16279 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16280 # not for PA HP-UX.
16286 lt_prog_compiler_pic_GCJ
='+Z'
16289 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16290 lt_prog_compiler_static_GCJ
='${wl}-a ${wl}archive'
16293 irix5
* | irix6
* | nonstopux
*)
16294 lt_prog_compiler_wl_GCJ
='-Wl,'
16295 # PIC (with -KPIC) is the default.
16296 lt_prog_compiler_static_GCJ
='-non_shared'
16300 lt_prog_compiler_pic_GCJ
='-KPIC'
16301 lt_prog_compiler_static_GCJ
='-Bstatic'
16305 case $cc_basename in
16307 lt_prog_compiler_wl_GCJ
='-Wl,'
16308 lt_prog_compiler_pic_GCJ
='-KPIC'
16309 lt_prog_compiler_static_GCJ
='-static'
16311 pgcc
* | pgf77
* | pgf90
* | pgf95
*)
16312 # Portland Group compilers (*not* the Pentium gcc compiler,
16313 # which looks to be a dead project)
16314 lt_prog_compiler_wl_GCJ
='-Wl,'
16315 lt_prog_compiler_pic_GCJ
='-fpic'
16316 lt_prog_compiler_static_GCJ
='-Bstatic'
16319 lt_prog_compiler_wl_GCJ
='-Wl,'
16320 # All Alpha code is PIC.
16321 lt_prog_compiler_static_GCJ
='-non_shared'
16326 osf3
* | osf4
* | osf5
*)
16327 lt_prog_compiler_wl_GCJ
='-Wl,'
16328 # All OSF/1 code is PIC.
16329 lt_prog_compiler_static_GCJ
='-non_shared'
16333 lt_prog_compiler_pic_GCJ
='-KPIC'
16334 lt_prog_compiler_static_GCJ
='-Bstatic'
16335 case $cc_basename in
16336 f77
* | f90
* | f95
*)
16337 lt_prog_compiler_wl_GCJ
='-Qoption ld ';;
16339 lt_prog_compiler_wl_GCJ
='-Wl,';;
16344 lt_prog_compiler_wl_GCJ
='-Qoption ld '
16345 lt_prog_compiler_pic_GCJ
='-PIC'
16346 lt_prog_compiler_static_GCJ
='-Bstatic'
16349 sysv4 | sysv4.2uw2
* | sysv4.3
*)
16350 lt_prog_compiler_wl_GCJ
='-Wl,'
16351 lt_prog_compiler_pic_GCJ
='-KPIC'
16352 lt_prog_compiler_static_GCJ
='-Bstatic'
16356 if test -d /usr
/nec
;then
16357 lt_prog_compiler_pic_GCJ
='-Kconform_pic'
16358 lt_prog_compiler_static_GCJ
='-Bstatic'
16362 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
16363 lt_prog_compiler_wl_GCJ
='-Wl,'
16364 lt_prog_compiler_pic_GCJ
='-KPIC'
16365 lt_prog_compiler_static_GCJ
='-Bstatic'
16369 lt_prog_compiler_wl_GCJ
='-Wl,'
16370 lt_prog_compiler_can_build_shared_GCJ
=no
16374 lt_prog_compiler_pic_GCJ
='-pic'
16375 lt_prog_compiler_static_GCJ
='-Bstatic'
16379 lt_prog_compiler_can_build_shared_GCJ
=no
16384 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16385 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16388 # Check to make sure the PIC flag actually works.
16390 if test -n "$lt_prog_compiler_pic_GCJ"; then
16392 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16393 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16394 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16395 echo $ECHO_N "(cached) $ECHO_C" >&6
16397 lt_prog_compiler_pic_works_GCJ
=no
16398 ac_outfile
=conftest.
$ac_objext
16399 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
16400 lt_compiler_flag
="$lt_prog_compiler_pic_GCJ"
16401 # Insert the option either (1) after the last *FLAGS variable, or
16402 # (2) before a word containing "conftest.", or (3) at the end.
16403 # Note that $ac_compile itself does not contain backslashes and begins
16404 # with a dollar sign (not a hyphen), so the echo should work correctly.
16405 # The option is referenced via a variable to avoid confusing sed.
16406 lt_compile
=`echo "$ac_compile" | $SED \
16407 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16408 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16409 -e 's:$: $lt_compiler_flag:'`
16410 (eval echo "\"\$as_me:16410: $lt_compile\"" >&5)
16411 (eval "$lt_compile" 2>conftest.err
)
16413 cat conftest.err
>&5
16414 echo "$as_me:16414: \$? = $ac_status" >&5
16415 if (exit $ac_status) && test -s "$ac_outfile"; then
16416 # The compiler can only warn and ignore the option if not recognized
16417 # So say no if there are warnings other than the usual output.
16418 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
16419 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
16420 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
16421 lt_prog_compiler_pic_works_GCJ
=yes
16427 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16428 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16430 if test x
"$lt_prog_compiler_pic_works_GCJ" = xyes
; then
16431 case $lt_prog_compiler_pic_GCJ in
16433 *) lt_prog_compiler_pic_GCJ
=" $lt_prog_compiler_pic_GCJ" ;;
16436 lt_prog_compiler_pic_GCJ
=
16437 lt_prog_compiler_can_build_shared_GCJ
=no
16442 # For platforms which do not support PIC, -DPIC is meaningless:
16444 lt_prog_compiler_pic_GCJ
=
16447 lt_prog_compiler_pic_GCJ
="$lt_prog_compiler_pic_GCJ"
16452 # Check to make sure the static flag actually works.
16454 wl
=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_GCJ\"
16455 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16456 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16457 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16458 echo $ECHO_N "(cached) $ECHO_C" >&6
16460 lt_prog_compiler_static_works_GCJ
=no
16461 save_LDFLAGS
="$LDFLAGS"
16462 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
16463 printf "$lt_simple_link_test_code" > conftest.
$ac_ext
16464 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
16465 # The linker can only warn and ignore the option if not recognized
16466 # So say no if there are warnings
16467 if test -s conftest.err
; then
16468 # Append any errors to the config.log.
16469 cat conftest.err
1>&5
16470 $echo "X$_lt_linker_boilerplate" |
$Xsed -e '/^$/d' > conftest.exp
16471 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
16472 if diff conftest.exp conftest.er2
>/dev
/null
; then
16473 lt_prog_compiler_static_works_GCJ
=yes
16476 lt_prog_compiler_static_works_GCJ
=yes
16480 LDFLAGS
="$save_LDFLAGS"
16483 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16484 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16486 if test x
"$lt_prog_compiler_static_works_GCJ" = xyes
; then
16489 lt_prog_compiler_static_GCJ
=
16493 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16494 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16495 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16496 echo $ECHO_N "(cached) $ECHO_C" >&6
16498 lt_cv_prog_compiler_c_o_GCJ
=no
16499 $rm -r conftest
2>/dev
/null
16503 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
16505 lt_compiler_flag
="-o out/conftest2.$ac_objext"
16506 # Insert the option either (1) after the last *FLAGS variable, or
16507 # (2) before a word containing "conftest.", or (3) at the end.
16508 # Note that $ac_compile itself does not contain backslashes and begins
16509 # with a dollar sign (not a hyphen), so the echo should work correctly.
16510 lt_compile
=`echo "$ac_compile" | $SED \
16511 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16512 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16513 -e 's:$: $lt_compiler_flag:'`
16514 (eval echo "\"\$as_me:16514: $lt_compile\"" >&5)
16515 (eval "$lt_compile" 2>out
/conftest.err
)
16517 cat out
/conftest.err
>&5
16518 echo "$as_me:16518: \$? = $ac_status" >&5
16519 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
16521 # The compiler can only warn and ignore the option if not recognized
16522 # So say no if there are warnings
16523 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
16524 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
16525 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
16526 lt_cv_prog_compiler_c_o_GCJ
=yes
16531 # SGI C++ compiler will create directory out/ii_files/ for
16532 # template instantiation
16533 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
16534 $rm out
/* && rmdir out
16540 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16541 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16544 hard_links
="nottested"
16545 if test "$lt_cv_prog_compiler_c_o_GCJ" = no
&& test "$need_locks" != no
; then
16546 # do not overwrite the value of need_locks provided by the user
16547 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16548 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16551 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
16553 ln conftest.a conftest.b
2>&5 || hard_links
=no
16554 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
16555 { echo "$as_me:$LINENO: result: $hard_links" >&5
16556 echo "${ECHO_T}$hard_links" >&6; }
16557 if test "$hard_links" = no
; then
16558 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16559 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16566 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16567 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16570 allow_undefined_flag_GCJ
=
16571 enable_shared_with_static_runtimes_GCJ
=no
16573 archive_expsym_cmds_GCJ
=
16574 old_archive_From_new_cmds_GCJ
=
16575 old_archive_from_expsyms_cmds_GCJ
=
16576 export_dynamic_flag_spec_GCJ
=
16577 whole_archive_flag_spec_GCJ
=
16578 thread_safe_flag_spec_GCJ
=
16579 hardcode_libdir_flag_spec_GCJ
=
16580 hardcode_libdir_flag_spec_ld_GCJ
=
16581 hardcode_libdir_separator_GCJ
=
16582 hardcode_direct_GCJ
=no
16583 hardcode_minus_L_GCJ
=no
16584 hardcode_shlibpath_var_GCJ
=unsupported
16585 link_all_deplibs_GCJ
=unknown
16586 hardcode_automatic_GCJ
=no
16588 module_expsym_cmds_GCJ
=
16589 always_export_symbols_GCJ
=no
16590 export_symbols_cmds_GCJ
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16591 # include_expsyms should be a list of space-separated symbols to be *always*
16592 # included in the symbol list
16593 include_expsyms_GCJ
=
16594 # exclude_expsyms can be an extended regexp of symbols to exclude
16595 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16596 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16597 # as well as any symbol that contains `d'.
16598 exclude_expsyms_GCJ
="_GLOBAL_OFFSET_TABLE_"
16599 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16600 # platforms (ab)use it in PIC code, but their linkers get confused if
16601 # the symbol is explicitly referenced. Since portable code cannot
16602 # rely on this symbol name, it's probably fine to never include it in
16603 # preloaded symbol tables.
16604 extract_expsyms_cmds
=
16605 # Just being paranoid about ensuring that cc_basename is set.
16606 for cc_temp
in $compiler""; do
16608 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
16609 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
16614 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16617 cygwin
* | mingw
* | pw32
*)
16618 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16619 # When not using gcc, we currently assume that we are using
16620 # Microsoft Visual C++.
16621 if test "$GCC" != yes; then
16626 # we just hope/assume this is gcc and not c89 (= MSVC++)
16635 if test "$with_gnu_ld" = yes; then
16636 # If archive_cmds runs LD, not CC, wlarc should be empty
16639 # Set some defaults for GNU ld with shared library support. These
16640 # are reset later if shared libraries are not supported. Putting them
16641 # here allows them to be overridden if necessary.
16642 runpath_var
=LD_RUN_PATH
16643 hardcode_libdir_flag_spec_GCJ
='${wl}--rpath ${wl}$libdir'
16644 export_dynamic_flag_spec_GCJ
='${wl}--export-dynamic'
16645 # ancient GNU ld didn't support --whole-archive et. al.
16646 if $LD --help 2>&1 |
grep 'no-whole-archive' > /dev
/null
; then
16647 whole_archive_flag_spec_GCJ
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16649 whole_archive_flag_spec_GCJ
=
16651 supports_anon_versioning
=no
16652 case `$LD -v 2>/dev/null` in
16653 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
16654 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
16655 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
16656 *\
2.11.
*) ;; # other 2.11 versions
16657 *) supports_anon_versioning
=yes ;;
16660 # See if GNU ld supports shared libraries.
16662 aix3
* | aix4
* | aix5
*)
16663 # On AIX/PPC, the GNU linker is very broken
16664 if test "$host_cpu" != ia64
; then
16668 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16669 *** to be unable to reliably create shared libraries on AIX.
16670 *** Therefore, libtool is disabling shared libraries support. If you
16671 *** really care for shared libraries, you may want to modify your PATH
16672 *** so that a non-GNU linker is found, and then restart.
16679 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)'
16680 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
16681 hardcode_minus_L_GCJ
=yes
16683 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16684 # that the semantics of dynamic libraries on AmigaOS, at least up
16685 # to version 4, is to share data among multiple programs linked
16686 # with the same dynamic library. Since this doesn't match the
16687 # behavior of shared libraries on other platforms, we can't use
16693 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
16694 allow_undefined_flag_GCJ
=unsupported
16695 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16696 # support --undefined. This deserves some investigation. FIXME
16697 archive_cmds_GCJ
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16703 cygwin
* | mingw
* | pw32
*)
16704 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16705 # as there is no search path for DLLs.
16706 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
16707 allow_undefined_flag_GCJ
=unsupported
16708 always_export_symbols_GCJ
=no
16709 enable_shared_with_static_runtimes_GCJ
=yes
16710 export_symbols_cmds_GCJ
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16712 if $LD --help 2>&1 |
grep 'auto-import' > /dev
/null
; then
16713 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16714 # If the export-symbols file already is a .def file (1st line
16715 # is EXPORTS), use it as is; otherwise, prepend...
16716 archive_expsym_cmds_GCJ
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16717 cp $export_symbols $output_objdir/$soname.def;
16719 echo EXPORTS > $output_objdir/$soname.def;
16720 cat $export_symbols >> $output_objdir/$soname.def;
16722 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16729 hardcode_direct_GCJ
=no
16730 hardcode_shlibpath_var_GCJ
=no
16731 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath,$libdir'
16732 export_dynamic_flag_spec_GCJ
='${wl}-E'
16733 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16734 # Instead, shared libraries are loaded at an image base (0x10000000 by
16735 # default) and relocated if they conflict, which is a slow very memory
16736 # consuming and fragmenting process. To avoid this, we pick a random,
16737 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16738 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16739 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'
16740 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'
16744 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
16746 case $cc_basename,$host_cpu in
16747 pgcc
*) # Portland Group C compiler
16748 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'
16749 tmp_addflag
=' $pic_flag'
16751 pgf77
* | pgf90
* | pgf95
*) # Portland Group f77 and f90 compilers
16752 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'
16753 tmp_addflag
=' $pic_flag -Mnomain' ;;
16754 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
16755 tmp_addflag
=' -i_dynamic' ;;
16756 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
16757 tmp_addflag
=' -i_dynamic -nofor_main' ;;
16758 ifc
* | ifort
*) # Intel Fortran compiler
16759 tmp_addflag
=' -nofor_main' ;;
16761 archive_cmds_GCJ
='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16763 if test $supports_anon_versioning = yes; then
16764 archive_expsym_cmds_GCJ
='$echo "{ global:" > $output_objdir/$libname.ver~
16765 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16766 $echo "local: *; };" >> $output_objdir/$libname.ver~
16767 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16775 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
16776 archive_cmds_GCJ
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16779 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16780 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16785 if $LD -v 2>&1 |
grep 'BFD 2\.8' > /dev
/null
; then
16789 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16790 *** create shared libraries on Solaris systems. Therefore, libtool
16791 *** is disabling shared libraries support. We urge you to upgrade GNU
16792 *** binutils to release 2.9.1 or newer. Another option is to modify
16793 *** your PATH or compiler configuration so that the native linker is
16794 *** used, and then restart.
16797 elif $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
16798 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16799 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16805 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
16806 case `$LD -v 2>&1` in
16807 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
16811 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16812 *** reliably create shared libraries on SCO systems. Therefore, libtool
16813 *** is disabling shared libraries support. We urge you to upgrade GNU
16814 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16815 *** your PATH or compiler configuration so that the native linker is
16816 *** used, and then restart.
16821 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
16822 hardcode_libdir_flag_spec_GCJ
='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16823 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16824 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16833 archive_cmds_GCJ
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16835 hardcode_direct_GCJ
=yes
16836 hardcode_shlibpath_var_GCJ
=no
16840 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
16841 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16842 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16849 if test "$ld_shlibs_GCJ" = no
; then
16851 hardcode_libdir_flag_spec_GCJ
=
16852 export_dynamic_flag_spec_GCJ
=
16853 whole_archive_flag_spec_GCJ
=
16856 # PORTME fill in a description of your system's linker (not GNU ld)
16859 allow_undefined_flag_GCJ
=unsupported
16860 always_export_symbols_GCJ
=yes
16861 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'
16862 # Note: this linker hardcodes the directories in LIBPATH if there
16863 # are no directories specified by -L.
16864 hardcode_minus_L_GCJ
=yes
16865 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16866 # Neither direct hardcoding nor static linking is supported with a
16868 hardcode_direct_GCJ
=unsupported
16873 if test "$host_cpu" = ia64
; then
16874 # On IA64, the linker does run time linking by default, so we don't
16875 # have to do anything special.
16876 aix_use_runtimelinking
=no
16877 exp_sym_flag
='-Bexport'
16880 # If we're using GNU nm, then we don't want the "-C" option.
16881 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16882 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
16883 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'
16885 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'
16887 aix_use_runtimelinking
=no
16889 # Test if we are trying to use run time linking or normal
16890 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16891 # need to do runtime linking.
16892 case $host_os in aix4.
[23]|aix4.
[23].
*|aix5
*)
16893 for ld_flag
in $LDFLAGS; do
16894 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
16895 aix_use_runtimelinking
=yes
16902 exp_sym_flag
='-bexport'
16903 no_entry_flag
='-bnoentry'
16906 # When large executables or shared objects are built, AIX ld can
16907 # have problems creating the table of contents. If linking a library
16908 # or program results in "error TOC overflow" add -mminimal-toc to
16909 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16910 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16912 archive_cmds_GCJ
=''
16913 hardcode_direct_GCJ
=yes
16914 hardcode_libdir_separator_GCJ
=':'
16915 link_all_deplibs_GCJ
=yes
16917 if test "$GCC" = yes; then
16918 case $host_os in aix4.
[012]|aix4.
[012].
*)
16919 # We only want to do this on AIX 4.2 and lower, the check
16920 # below for broken collect2 doesn't work under 4.3+
16921 collect2name
=`${CC} -print-prog-name=collect2`
16922 if test -f "$collect2name" && \
16923 strings "$collect2name" |
grep resolve_lib_name
>/dev
/null
16925 # We have reworked collect2
16926 hardcode_direct_GCJ
=yes
16928 # We have old collect2
16929 hardcode_direct_GCJ
=unsupported
16930 # It fails to find uninstalled libraries when the uninstalled
16931 # path is not listed in the libpath. Setting hardcode_minus_L
16932 # to unsupported forces relinking
16933 hardcode_minus_L_GCJ
=yes
16934 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
16935 hardcode_libdir_separator_GCJ
=
16939 shared_flag
='-shared'
16940 if test "$aix_use_runtimelinking" = yes; then
16941 shared_flag
="$shared_flag "'${wl}-G'
16945 if test "$host_cpu" = ia64
; then
16946 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16947 # chokes on -Wl,-G. The following line is correct:
16950 if test "$aix_use_runtimelinking" = yes; then
16951 shared_flag
='${wl}-G'
16953 shared_flag
='${wl}-bM:SRE'
16958 # It seems that -bexpall does not export symbols beginning with
16959 # underscore (_), so it is better to generate a list of symbols to export.
16960 always_export_symbols_GCJ
=yes
16961 if test "$aix_use_runtimelinking" = yes; then
16962 # Warning - without using the other runtime loading flags (-brtl),
16963 # -berok will link without error, but may produce a broken library.
16964 allow_undefined_flag_GCJ
='-berok'
16965 # Determine the default libpath from the value encoded in an empty executable.
16966 cat >conftest.
$ac_ext <<_ACEOF
16969 cat confdefs.h
>>conftest.
$ac_ext
16970 cat >>conftest.
$ac_ext <<_ACEOF
16971 /* end confdefs.h. */
16981 rm -f conftest.
$ac_objext conftest
$ac_exeext
16982 if { (ac_try
="$ac_link"
16983 case "(($ac_try" in
16984 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16985 *) ac_try_echo=$ac_try;;
16987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16988 (eval "$ac_link") 2>conftest.er1
16990 grep -v '^ *+' conftest.er1 >conftest.err
16992 cat conftest.err >&5
16993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16994 (exit $ac_status); } && {
16995 test -z "$ac_c_werror_flag" ||
16996 test ! -s conftest.err
16997 } && test -s conftest$ac_exeext &&
16998 $as_test_x conftest$ac_exeext; then
17000 aix_libpath=`dump
-H conftest
$ac_exeext 2>/dev
/null |
$SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17002 # Check for a 64-bit object if we didn't find anything.
17003 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; }
17006 echo "$as_me: failed program was:" >&5
17007 sed 's/^/| /' conftest.$ac_ext >&5
17012 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17013 conftest$ac_exeext conftest.$ac_ext
17014 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17016 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17017 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"
17019 if test "$host_cpu" = ia64; then
17020 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17021 allow_undefined_flag_GCJ="-z nodefs"
17022 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"
17024 # Determine the default libpath from the value encoded in an empty executable.
17025 cat >conftest.$ac_ext <<_ACEOF
17028 cat confdefs.h >>conftest.$ac_ext
17029 cat >>conftest.$ac_ext <<_ACEOF
17030 /* end confdefs.h. */
17040 rm -f conftest.$ac_objext conftest$ac_exeext
17041 if { (ac_try="$ac_link"
17042 case "(($ac_try" in
17043 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17044 *) ac_try_echo
=$ac_try;;
17046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17047 (eval "$ac_link") 2>conftest.er1
17049 grep -v '^ *+' conftest.er1
>conftest.err
17051 cat conftest.err
>&5
17052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17053 (exit $ac_status); } && {
17054 test -z "$ac_c_werror_flag" ||
17055 test ! -s conftest.err
17056 } && test -s conftest
$ac_exeext &&
17057 $as_test_x conftest
$ac_exeext; then
17059 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17061 # Check for a 64-bit object if we didn't find anything.
17062 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; }
17065 echo "$as_me: failed program was:" >&5
17066 sed 's/^/| /' conftest.
$ac_ext >&5
17071 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17072 conftest
$ac_exeext conftest.
$ac_ext
17073 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
17075 hardcode_libdir_flag_spec_GCJ
='${wl}-blibpath:$libdir:'"$aix_libpath"
17076 # Warning - without using the other run time loading flags,
17077 # -berok will link without error, but may produce a broken library.
17078 no_undefined_flag_GCJ
=' ${wl}-bernotok'
17079 allow_undefined_flag_GCJ
=' ${wl}-berok'
17080 # Exported symbols can be pulled into shared objects from archives
17081 whole_archive_flag_spec_GCJ
='$convenience'
17082 archive_cmds_need_lc_GCJ
=yes
17083 # This is similar to how AIX traditionally builds its shared libraries.
17084 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'
17090 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)'
17091 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
17092 hardcode_minus_L_GCJ
=yes
17093 # see comment about different semantics on the GNU ld section
17098 export_dynamic_flag_spec_GCJ
=-rdynamic
17101 cygwin
* | mingw
* | pw32
*)
17102 # When not using gcc, we currently assume that we are using
17103 # Microsoft Visual C++.
17104 # hardcode_libdir_flag_spec is actually meaningless, as there is
17105 # no search path for DLLs.
17106 hardcode_libdir_flag_spec_GCJ
=' '
17107 allow_undefined_flag_GCJ
=unsupported
17108 # Tell ltmain to make .lib files, not .a files.
17110 # Tell ltmain to make .dll files, not .so files.
17112 # FIXME: Setting linknames here is a bad hack.
17113 archive_cmds_GCJ
='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17114 # The linker will automatically build a .lib file if we build a DLL.
17115 old_archive_From_new_cmds_GCJ
='true'
17116 # FIXME: Should let the user specify the lib program.
17117 old_archive_cmds_GCJ
='lib /OUT:$oldlib$oldobjs$old_deplibs'
17118 fix_srcfile_path_GCJ
='`cygpath -w "$srcfile"`'
17119 enable_shared_with_static_runtimes_GCJ
=yes
17122 darwin
* | rhapsody
*)
17124 rhapsody
* | darwin1.
[012])
17125 allow_undefined_flag_GCJ
='${wl}-undefined ${wl}suppress'
17128 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17129 allow_undefined_flag_GCJ
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17131 case ${MACOSX_DEPLOYMENT_TARGET} in
17133 allow_undefined_flag_GCJ
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17136 allow_undefined_flag_GCJ
='${wl}-undefined ${wl}dynamic_lookup'
17142 archive_cmds_need_lc_GCJ
=no
17143 hardcode_direct_GCJ
=no
17144 hardcode_automatic_GCJ
=yes
17145 hardcode_shlibpath_var_GCJ
=unsupported
17146 whole_archive_flag_spec_GCJ
=''
17147 link_all_deplibs_GCJ
=yes
17148 if test "$GCC" = yes ; then
17149 output_verbose_link_cmd
='echo'
17150 archive_cmds_GCJ
='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17151 module_cmds_GCJ
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17152 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17153 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}'
17154 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}'
17156 case $cc_basename in
17158 output_verbose_link_cmd
='echo'
17159 archive_cmds_GCJ
='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17160 module_cmds_GCJ
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17161 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17162 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}'
17163 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}'
17173 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17174 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
17175 hardcode_shlibpath_var_GCJ
=no
17182 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17183 # support. Future versions do this automatically, but an explicit c++rt0.o
17184 # does not break anything, and helps significantly (at the cost of a little
17187 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17188 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
17189 hardcode_direct_GCJ
=yes
17190 hardcode_shlibpath_var_GCJ
=no
17193 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17195 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17196 hardcode_direct_GCJ
=yes
17197 hardcode_minus_L_GCJ
=yes
17198 hardcode_shlibpath_var_GCJ
=no
17201 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17202 freebsd
* | kfreebsd
*-gnu | dragonfly
*)
17203 archive_cmds_GCJ
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17204 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
17205 hardcode_direct_GCJ
=yes
17206 hardcode_shlibpath_var_GCJ
=no
17210 if test "$GCC" = yes; then
17211 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'
17213 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'
17215 hardcode_libdir_flag_spec_GCJ
='${wl}+b ${wl}$libdir'
17216 hardcode_libdir_separator_GCJ
=:
17217 hardcode_direct_GCJ
=yes
17219 # hardcode_minus_L: Not really in the search PATH,
17220 # but as the default location of the library.
17221 hardcode_minus_L_GCJ
=yes
17222 export_dynamic_flag_spec_GCJ
='${wl}-E'
17226 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
17227 archive_cmds_GCJ
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17229 archive_cmds_GCJ
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17231 if test "$with_gnu_ld" = no
; then
17232 hardcode_libdir_flag_spec_GCJ
='${wl}+b ${wl}$libdir'
17233 hardcode_libdir_separator_GCJ
=:
17235 hardcode_direct_GCJ
=yes
17236 export_dynamic_flag_spec_GCJ
='${wl}-E'
17238 # hardcode_minus_L: Not really in the search PATH,
17239 # but as the default location of the library.
17240 hardcode_minus_L_GCJ
=yes
17245 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
17248 archive_cmds_GCJ
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17251 archive_cmds_GCJ
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17254 archive_cmds_GCJ
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17260 archive_cmds_GCJ
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17263 archive_cmds_GCJ
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17266 archive_cmds_GCJ
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17270 if test "$with_gnu_ld" = no
; then
17271 hardcode_libdir_flag_spec_GCJ
='${wl}+b ${wl}$libdir'
17272 hardcode_libdir_separator_GCJ
=:
17276 hardcode_libdir_flag_spec_ld_GCJ
='+b $libdir'
17277 hardcode_direct_GCJ
=no
17278 hardcode_shlibpath_var_GCJ
=no
17281 hardcode_direct_GCJ
=yes
17282 export_dynamic_flag_spec_GCJ
='${wl}-E'
17284 # hardcode_minus_L: Not really in the search PATH,
17285 # but as the default location of the library.
17286 hardcode_minus_L_GCJ
=yes
17292 irix5
* | irix6
* | nonstopux
*)
17293 if test "$GCC" = yes; then
17294 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'
17296 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'
17297 hardcode_libdir_flag_spec_ld_GCJ
='-rpath $libdir'
17299 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
17300 hardcode_libdir_separator_GCJ
=:
17301 link_all_deplibs_GCJ
=yes
17305 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
17306 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17308 archive_cmds_GCJ
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17310 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
17311 hardcode_direct_GCJ
=yes
17312 hardcode_shlibpath_var_GCJ
=no
17316 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17317 hardcode_direct_GCJ
=yes
17318 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
17319 hardcode_libdir_separator_GCJ
=:
17320 hardcode_shlibpath_var_GCJ
=no
17324 hardcode_direct_GCJ
=yes
17325 hardcode_shlibpath_var_GCJ
=no
17326 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17327 archive_cmds_GCJ
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17328 archive_expsym_cmds_GCJ
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17329 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath,$libdir'
17330 export_dynamic_flag_spec_GCJ
='${wl}-E'
17333 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
17334 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17335 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
17338 archive_cmds_GCJ
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17339 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath,$libdir'
17346 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
17347 hardcode_minus_L_GCJ
=yes
17348 allow_undefined_flag_GCJ
=unsupported
17349 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'
17350 old_archive_From_new_cmds_GCJ
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17354 if test "$GCC" = yes; then
17355 allow_undefined_flag_GCJ
=' ${wl}-expect_unresolved ${wl}\*'
17356 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'
17358 allow_undefined_flag_GCJ
=' -expect_unresolved \*'
17359 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'
17361 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
17362 hardcode_libdir_separator_GCJ
=:
17365 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
17366 if test "$GCC" = yes; then
17367 allow_undefined_flag_GCJ
=' ${wl}-expect_unresolved ${wl}\*'
17368 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'
17369 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
17371 allow_undefined_flag_GCJ
=' -expect_unresolved \*'
17372 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'
17373 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~
17374 $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'
17376 # Both c and cxx compiler support -rpath directly
17377 hardcode_libdir_flag_spec_GCJ
='-rpath $libdir'
17379 hardcode_libdir_separator_GCJ
=:
17383 no_undefined_flag_GCJ
=' -z text'
17384 if test "$GCC" = yes; then
17386 archive_cmds_GCJ
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17387 archive_expsym_cmds_GCJ
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17388 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17391 archive_cmds_GCJ
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17392 archive_expsym_cmds_GCJ
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17393 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17395 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
17396 hardcode_shlibpath_var_GCJ
=no
17398 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
17400 # The compiler driver will combine linker options so we
17401 # cannot just pass the convience library names through
17402 # without $wl, iff we do not link with $LD.
17403 # Luckily, gcc supports the same syntax we need for Sun Studio.
17404 # Supported since Solaris 2.6 (maybe 2.5.1?)
17407 whole_archive_flag_spec_GCJ
='-z allextract$convenience -z defaultextract' ;;
17409 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' ;;
17412 link_all_deplibs_GCJ
=yes
17416 if test "x$host_vendor" = xsequent
; then
17417 # Use $CC to link under sequent, because it throws in some extra .o
17418 # files that make .init and .fini sections work.
17419 archive_cmds_GCJ
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17421 archive_cmds_GCJ
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17423 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
17424 hardcode_direct_GCJ
=yes
17425 hardcode_minus_L_GCJ
=yes
17426 hardcode_shlibpath_var_GCJ
=no
17430 case $host_vendor in
17432 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17433 hardcode_direct_GCJ
=yes # is this really true???
17436 ## LD is ld it makes a PLAMLIB
17437 ## CC just makes a GrossModule.
17438 archive_cmds_GCJ
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17439 reload_cmds_GCJ
='$CC -r -o $output$reload_objs'
17440 hardcode_direct_GCJ
=no
17443 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17444 hardcode_direct_GCJ
=no
#Motorola manual says yes, but my tests say they lie
17447 runpath_var
='LD_RUN_PATH'
17448 hardcode_shlibpath_var_GCJ
=no
17452 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17453 hardcode_shlibpath_var_GCJ
=no
17454 export_dynamic_flag_spec_GCJ
='-Bexport'
17458 if test -d /usr
/nec
; then
17459 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17460 hardcode_shlibpath_var_GCJ
=no
17461 runpath_var
=LD_RUN_PATH
17462 hardcode_runpath_var
=yes
17467 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
*)
17468 no_undefined_flag_GCJ
='${wl}-z,text'
17469 archive_cmds_need_lc_GCJ
=no
17470 hardcode_shlibpath_var_GCJ
=no
17471 runpath_var
='LD_RUN_PATH'
17473 if test "$GCC" = yes; then
17474 archive_cmds_GCJ
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17475 archive_expsym_cmds_GCJ
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17477 archive_cmds_GCJ
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17478 archive_expsym_cmds_GCJ
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17482 sysv5
* | sco3.2v5
* | sco5v6
*)
17483 # Note: We can NOT use -z defs as we might desire, because we do not
17484 # link with -lc, and that would cause any symbols used from libc to
17485 # always be unresolved, which means just about no library would
17486 # ever link correctly. If we're not using GNU ld we use -z text
17487 # though, which does catch some bad symbols but isn't as heavy-handed
17489 no_undefined_flag_GCJ
='${wl}-z,text'
17490 allow_undefined_flag_GCJ
='${wl}-z,nodefs'
17491 archive_cmds_need_lc_GCJ
=no
17492 hardcode_shlibpath_var_GCJ
=no
17493 hardcode_libdir_flag_spec_GCJ
='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17494 hardcode_libdir_separator_GCJ
=':'
17495 link_all_deplibs_GCJ
=yes
17496 export_dynamic_flag_spec_GCJ
='${wl}-Bexport'
17497 runpath_var
='LD_RUN_PATH'
17499 if test "$GCC" = yes; then
17500 archive_cmds_GCJ
='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17501 archive_expsym_cmds_GCJ
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17503 archive_cmds_GCJ
='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17504 archive_expsym_cmds_GCJ
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17509 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17510 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
17511 hardcode_shlibpath_var_GCJ
=no
17520 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17521 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17522 test "$ld_shlibs_GCJ" = no
&& can_build_shared
=no
17525 # Do we need to explicitly link libc?
17527 case "x$archive_cmds_need_lc_GCJ" in
17529 # Assume -lc should be added
17530 archive_cmds_need_lc_GCJ
=yes
17532 if test "$enable_shared" = yes && test "$GCC" = yes; then
17533 case $archive_cmds_GCJ in
17535 # FIXME: we may have to deal with multi-command sequences.
17538 # Test whether the compiler implicitly links with -lc since on some
17539 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17540 # to ld, don't add -lc before -lgcc.
17541 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17542 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17544 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
17546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17547 (eval $ac_compile) 2>&5
17549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17550 (exit $ac_status); } 2>conftest.err
; then
17553 libobjs
=conftest.
$ac_objext
17555 wl
=$lt_prog_compiler_wl_GCJ
17556 pic_flag
=$lt_prog_compiler_pic_GCJ
17562 lt_save_allow_undefined_flag
=$allow_undefined_flag_GCJ
17563 allow_undefined_flag_GCJ
=
17564 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17565 (eval $archive_cmds_GCJ 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
17567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17568 (exit $ac_status); }
17570 archive_cmds_need_lc_GCJ
=no
17572 archive_cmds_need_lc_GCJ
=yes
17574 allow_undefined_flag_GCJ
=$lt_save_allow_undefined_flag
17576 cat conftest.err
1>&5
17579 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17580 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17587 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17588 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17589 library_names_spec
=
17590 libname_spec
='lib$name'
17594 postuninstall_cmds
=
17598 shlibpath_overrides_runpath
=unknown
17600 dynamic_linker
="$host_os ld.so"
17601 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
17602 if test "$GCC" = yes; then
17603 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17604 if echo "$sys_lib_search_path_spec" |
grep ';' >/dev
/null
; then
17605 # if the path contains ";" then we assume it to be the separator
17606 # otherwise default to the standard path separator (i.e. ":") - it is
17607 # assumed that no part of a normal pathname contains ";" but that should
17608 # okay in the real world where ";" in dirpaths is itself problematic.
17609 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17611 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17614 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
17616 need_lib_prefix
=unknown
17617 hardcode_into_libs
=no
17619 # when you set need_version to no, make sure it does not cause -set_version
17620 # flags to be left without arguments
17621 need_version
=unknown
17626 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
17627 shlibpath_var
=LIBPATH
17629 # AIX 3 has no versioning support, so we append a major version to the name.
17630 soname_spec
='${libname}${release}${shared_ext}$major'
17637 hardcode_into_libs
=yes
17638 if test "$host_cpu" = ia64
; then
17639 # AIX 5 supports IA64
17640 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17641 shlibpath_var
=LD_LIBRARY_PATH
17643 # With GCC up to 2.95.x, collect2 would create an import file
17644 # for dependence libraries. The import file would start with
17645 # the line `#! .'. This would cause the generated library to
17646 # depend on `.', always an invalid library. This was fixed in
17647 # development snapshots of GCC prior to 3.0.
17649 aix4 | aix4.
[01] | aix4.
[01].
*)
17650 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17652 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
17655 can_build_shared
=no
17659 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17660 # soname into executable. Probably we can add versioning support to
17661 # collect2, so additional links can be useful in future.
17662 if test "$aix_use_runtimelinking" = yes; then
17663 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17664 # instead of lib<name>.a to let people know that these are not
17665 # typical AIX shared libraries.
17666 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17668 # We preserve .a as extension for shared libraries through AIX4.2
17669 # and later when we are not doing run time linking.
17670 library_names_spec
='${libname}${release}.a $libname.a'
17671 soname_spec
='${libname}${release}${shared_ext}$major'
17673 shlibpath_var
=LIBPATH
17678 library_names_spec
='$libname.ixlibrary $libname.a'
17679 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17680 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'
17684 library_names_spec
='${libname}${shared_ext}'
17685 dynamic_linker
="$host_os ld.so"
17686 shlibpath_var
=LIBRARY_PATH
17692 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17693 soname_spec
='${libname}${release}${shared_ext}$major'
17694 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
17695 shlibpath_var
=LD_LIBRARY_PATH
17696 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17697 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
17698 # the default ld.so.conf also contains /usr/contrib/lib and
17699 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17700 # libtool to hard-code these into programs
17703 cygwin
* | mingw
* | pw32
*)
17704 version_type
=windows
17709 case $GCC,$host_os in
17710 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
17711 library_names_spec
='$libname.dll.a'
17712 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17713 postinstall_cmds
='base_file=`basename \${file}`~
17714 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17715 dldir=$destdir/`dirname \$dlpath`~
17716 test -d \$dldir || mkdir -p \$dldir~
17717 $install_prog $dir/$dlname \$dldir/$dlname~
17718 chmod a+x \$dldir/$dlname'
17719 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17720 dlpath=$dir/\$dldll~
17722 shlibpath_overrides_runpath
=yes
17726 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17727 #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
17728 soname_spec
='`echo ${libname} | sed -e 's
/^lib
//'`${shared_ext}'
17729 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
17732 # MinGW DLLs use traditional 'lib' prefix
17733 #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
17734 soname_spec
='`echo ${libname} | sed -e 's
/^lib
//'`${shared_ext}'
17735 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17736 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
17737 # It is most probably a Windows format PATH printed by
17738 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17739 # path with ; separators, and with drive letters. We can handle the
17740 # drive letters (cygwin fileutils understands them), so leave them,
17741 # especially as we might pass files found there to a mingw objdump,
17742 # which wouldn't understand a cygwinified path. Ahh.
17743 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17745 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17749 # pw32 DLLs use 'pw' prefix rather than 'lib'
17750 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17756 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17759 dynamic_linker
='Win32 ld.exe'
17760 # FIXME: first we should search . and the directory the executable is in
17764 darwin
* | rhapsody
*)
17765 dynamic_linker
="$host_os dyld"
17766 version_type
=darwin
17769 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17770 soname_spec
='${libname}${release}${major}$shared_ext'
17771 shlibpath_overrides_runpath
=yes
17772 shlibpath_var
=DYLD_LIBRARY_PATH
17773 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
17774 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17775 if test "$GCC" = yes; then
17776 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"`
17778 sys_lib_search_path_spec
='/lib /usr/lib /usr/local/lib'
17780 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
17787 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17788 soname_spec
='${libname}${release}${shared_ext}$major'
17789 shlibpath_var
=LD_LIBRARY_PATH
17800 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17801 soname_spec
='${libname}${release}${shared_ext}$major'
17802 shlibpath_var
=LD_LIBRARY_PATH
17803 shlibpath_overrides_runpath
=no
17804 hardcode_into_libs
=yes
17805 dynamic_linker
='GNU ld.so'
17808 freebsd
* | dragonfly
*)
17809 # DragonFly does not have aout. When/if they implement a new
17810 # versioning mechanism, adjust this.
17811 if test -x /usr
/bin
/objformat
; then
17812 objformat
=`/usr/bin/objformat`
17815 freebsd
[123]*) objformat
=aout
;;
17816 *) objformat
=elf
;;
17819 version_type
=freebsd-
$objformat
17820 case $version_type in
17822 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17827 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17831 shlibpath_var
=LD_LIBRARY_PATH
17834 shlibpath_overrides_runpath
=yes
17836 freebsd3.
[01]* | freebsdelf3.
[01]*)
17837 shlibpath_overrides_runpath
=yes
17838 hardcode_into_libs
=yes
17840 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
17841 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
17842 shlibpath_overrides_runpath
=no
17843 hardcode_into_libs
=yes
17845 freebsd
*) # from 4.6 on
17846 shlibpath_overrides_runpath
=yes
17847 hardcode_into_libs
=yes
17856 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17857 soname_spec
='${libname}${release}${shared_ext}$major'
17858 shlibpath_var
=LD_LIBRARY_PATH
17859 hardcode_into_libs
=yes
17862 hpux9
* | hpux10
* | hpux11
*)
17863 # Give a soname corresponding to the major version so that dld.sl refuses to
17864 # link against other versions.
17871 hardcode_into_libs
=yes
17872 dynamic_linker
="$host_os dld.so"
17873 shlibpath_var
=LD_LIBRARY_PATH
17874 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
17875 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17876 soname_spec
='${libname}${release}${shared_ext}$major'
17877 if test "X$HPUX_IA64_MODE" = X32
; then
17878 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17880 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
17882 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
17886 hardcode_into_libs
=yes
17887 dynamic_linker
="$host_os dld.sl"
17888 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
17889 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
17890 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17891 soname_spec
='${libname}${release}${shared_ext}$major'
17892 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17893 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
17897 dynamic_linker
="$host_os dld.sl"
17898 shlibpath_var
=SHLIB_PATH
17899 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
17900 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17901 soname_spec
='${libname}${release}${shared_ext}$major'
17904 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17905 postinstall_cmds
='chmod 555 $lib'
17912 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17913 soname_spec
='${libname}${release}${shared_ext}$major'
17914 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
17915 shlibpath_var
=LD_LIBRARY_PATH
17916 shlibpath_overrides_runpath
=no
17917 hardcode_into_libs
=yes
17920 irix5
* | irix6
* | nonstopux
*)
17922 nonstopux
*) version_type
=nonstopux
;;
17924 if test "$lt_cv_prog_gnu_ld" = yes; then
17932 soname_spec
='${libname}${release}${shared_ext}$major'
17933 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17935 irix5
* | nonstopux
*)
17936 libsuff
= shlibsuff
=
17939 case $LD in # libtool.m4 will add one of these switches to LD
17940 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
17941 libsuff
= shlibsuff
= libmagic
=32-bit;;
17942 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
17943 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
17944 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
17945 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
17946 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
17950 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
17951 shlibpath_overrides_runpath
=no
17952 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17953 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
17954 hardcode_into_libs
=yes
17957 # No shared lib support for Linux oldld, aout, or coff.
17958 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
17962 # This must be Linux ELF.
17967 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17968 soname_spec
='${libname}${release}${shared_ext}$major'
17969 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17970 shlibpath_var
=LD_LIBRARY_PATH
17971 shlibpath_overrides_runpath
=no
17972 # This implies no fast_install, which is unacceptable.
17973 # Some rework will be needed to allow for fast_install
17974 # before this can be enabled.
17975 hardcode_into_libs
=yes
17977 # Append ld.so.conf contents to the search path
17978 if test -f /etc
/ld.so.conf
; then
17979 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' ' '`
17980 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
17983 # We used to test for /lib/ld.so.1 and disable shared libraries on
17984 # powerpc, because MkLinux only supported shared libraries with the
17985 # GNU dynamic linker. Since this was broken with cross compilers,
17986 # most powerpc-linux boxes support dynamic linking these days and
17987 # people can always --disable-shared, the test was removed, and we
17988 # assume the GNU/Linux dynamic linker is in use.
17989 dynamic_linker
='GNU/Linux ld.so'
17996 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17997 soname_spec
='${libname}${release}${shared_ext}$major'
17998 shlibpath_var
=LD_LIBRARY_PATH
17999 shlibpath_overrides_runpath
=no
18000 hardcode_into_libs
=yes
18001 dynamic_linker
='GNU ld.so'
18008 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
18009 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18010 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18011 dynamic_linker
='NetBSD (a.out) ld.so'
18013 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18014 soname_spec
='${libname}${release}${shared_ext}$major'
18015 dynamic_linker
='NetBSD ld.elf_so'
18017 shlibpath_var
=LD_LIBRARY_PATH
18018 shlibpath_overrides_runpath
=yes
18019 hardcode_into_libs
=yes
18024 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18025 shlibpath_var
=LD_LIBRARY_PATH
18026 shlibpath_overrides_runpath
=yes
18033 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18034 soname_spec
='${libname}${release}${shared_ext}$major'
18035 shlibpath_var
=LD_LIBRARY_PATH
18036 shlibpath_overrides_runpath
=yes
18041 sys_lib_dlsearch_path_spec
="/usr/lib"
18043 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18045 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
18046 *) need_version
=no
;;
18048 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18049 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18050 shlibpath_var
=LD_LIBRARY_PATH
18051 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18053 openbsd2.
[89] | openbsd2.
[89].
*)
18054 shlibpath_overrides_runpath
=no
18057 shlibpath_overrides_runpath
=yes
18061 shlibpath_overrides_runpath
=yes
18066 libname_spec
='$name'
18069 library_names_spec
='$libname${shared_ext} $libname.a'
18070 dynamic_linker
='OS/2 ld.exe'
18071 shlibpath_var
=LIBPATH
18074 osf3
* | osf4
* | osf5
*)
18078 soname_spec
='${libname}${release}${shared_ext}$major'
18079 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18080 shlibpath_var
=LD_LIBRARY_PATH
18081 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18082 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
18089 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18090 soname_spec
='${libname}${release}${shared_ext}$major'
18091 shlibpath_var
=LD_LIBRARY_PATH
18092 shlibpath_overrides_runpath
=yes
18093 hardcode_into_libs
=yes
18094 # ldd complains unless libraries are executable
18095 postinstall_cmds
='chmod +x $lib'
18100 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18101 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18102 shlibpath_var
=LD_LIBRARY_PATH
18103 shlibpath_overrides_runpath
=yes
18104 if test "$with_gnu_ld" = yes; then
18112 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18113 soname_spec
='${libname}${release}${shared_ext}$major'
18114 shlibpath_var
=LD_LIBRARY_PATH
18115 case $host_vendor in
18117 shlibpath_overrides_runpath
=no
18119 export_dynamic_flag_spec
='${wl}-Blargedynsym'
18120 runpath_var
=LD_RUN_PATH
18128 shlibpath_overrides_runpath
=no
18129 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
18135 if test -d /usr
/nec
;then
18137 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18138 soname_spec
='$libname${shared_ext}.$major'
18139 shlibpath_var
=LD_LIBRARY_PATH
18143 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
18144 version_type
=freebsd-elf
18147 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18148 soname_spec
='${libname}${release}${shared_ext}$major'
18149 shlibpath_var
=LD_LIBRARY_PATH
18150 hardcode_into_libs
=yes
18151 if test "$with_gnu_ld" = yes; then
18152 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18153 shlibpath_overrides_runpath
=no
18155 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
18156 shlibpath_overrides_runpath
=yes
18159 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
18163 sys_lib_dlsearch_path_spec
='/usr/lib'
18168 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18169 soname_spec
='${libname}${release}${shared_ext}$major'
18170 shlibpath_var
=LD_LIBRARY_PATH
18177 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18178 echo "${ECHO_T}$dynamic_linker" >&6; }
18179 test "$dynamic_linker" = no
&& can_build_shared
=no
18181 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
18182 if test "$GCC" = yes; then
18183 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18186 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18187 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18188 hardcode_action_GCJ
=
18189 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18190 test -n "$runpath_var_GCJ" || \
18191 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18193 # We can hardcode non-existant directories.
18194 if test "$hardcode_direct_GCJ" != no
&&
18195 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18196 # have to relink, otherwise we might link with an installed library
18197 # when we should be linking with a yet-to-be-installed one
18198 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18199 test "$hardcode_minus_L_GCJ" != no
; then
18200 # Linking always hardcodes the temporary library directory.
18201 hardcode_action_GCJ
=relink
18203 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18204 hardcode_action_GCJ
=immediate
18207 # We cannot hardcode anything, or else we can only hardcode existing
18209 hardcode_action_GCJ
=unsupported
18211 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18212 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18214 if test "$hardcode_action_GCJ" = relink
; then
18215 # Fast installation is not supported
18216 enable_fast_install
=no
18217 elif test "$shlibpath_overrides_runpath" = yes ||
18218 test "$enable_shared" = no
; then
18219 # Fast installation is not necessary
18220 enable_fast_install
=needless
18224 # The else clause should only fire when bootstrapping the
18225 # libtool distribution, otherwise you forgot to ship ltmain.sh
18226 # with your package, and you will get complaints that there are
18227 # no rules to generate ltmain.sh.
18228 if test -f "$ltmain"; then
18229 # See if we are running on zsh, and set the options which allow our commands through
18230 # without removal of \ escapes.
18231 if test -n "${ZSH_VERSION+set}" ; then
18232 setopt NO_GLOB_SUBST
18234 # Now quote all the things that may contain metacharacters while being
18235 # careful not to overquote the AC_SUBSTed values. We take copies of the
18236 # variables and quote the copies for generation of the libtool script.
18237 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18239 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18240 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18241 deplibs_check_method reload_flag reload_cmds need_locks \
18242 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18243 lt_cv_sys_global_symbol_to_c_name_address \
18244 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18245 old_postinstall_cmds old_postuninstall_cmds \
18249 lt_prog_compiler_wl_GCJ \
18250 lt_prog_compiler_pic_GCJ \
18251 lt_prog_compiler_static_GCJ \
18252 lt_prog_compiler_no_builtin_flag_GCJ \
18253 export_dynamic_flag_spec_GCJ \
18254 thread_safe_flag_spec_GCJ \
18255 whole_archive_flag_spec_GCJ \
18256 enable_shared_with_static_runtimes_GCJ \
18257 old_archive_cmds_GCJ \
18258 old_archive_from_new_cmds_GCJ \
18259 predep_objects_GCJ \
18260 postdep_objects_GCJ \
18263 compiler_lib_search_path_GCJ \
18265 archive_expsym_cmds_GCJ \
18266 postinstall_cmds_GCJ \
18267 postuninstall_cmds_GCJ \
18268 old_archive_from_expsyms_cmds_GCJ \
18269 allow_undefined_flag_GCJ \
18270 no_undefined_flag_GCJ \
18271 export_symbols_cmds_GCJ \
18272 hardcode_libdir_flag_spec_GCJ \
18273 hardcode_libdir_flag_spec_ld_GCJ \
18274 hardcode_libdir_separator_GCJ \
18275 hardcode_automatic_GCJ \
18277 module_expsym_cmds_GCJ \
18278 lt_cv_prog_compiler_c_o_GCJ \
18279 exclude_expsyms_GCJ \
18280 include_expsyms_GCJ
; do
18283 old_archive_cmds_GCJ | \
18284 old_archive_from_new_cmds_GCJ | \
18285 archive_cmds_GCJ | \
18286 archive_expsym_cmds_GCJ | \
18287 module_cmds_GCJ | \
18288 module_expsym_cmds_GCJ | \
18289 old_archive_from_expsyms_cmds_GCJ | \
18290 export_symbols_cmds_GCJ | \
18291 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18292 postinstall_cmds | postuninstall_cmds | \
18293 old_postinstall_cmds | old_postuninstall_cmds | \
18294 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
18295 # Double-quote double-evaled strings.
18296 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18299 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18305 *'\$0 --fallback-echo"')
18306 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18312 cat <<__EOF__ >> "$cfgfile"
18313 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18315 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18317 # Shell to use when invoking shell scripts.
18320 # Whether or not to build shared libraries.
18321 build_libtool_libs=$enable_shared
18323 # Whether or not to build static libraries.
18324 build_old_libs=$enable_static
18326 # Whether or not to add -lc for building shared libraries.
18327 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18329 # Whether or not to disallow shared libs when runtime libs are static
18330 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18332 # Whether or not to optimize for fast installation.
18333 fast_install=$enable_fast_install
18336 host_alias=$host_alias
18340 # The build system.
18341 build_alias=$build_alias
18345 # An echo program that does not interpret backslashes.
18350 AR_FLAGS=$lt_AR_FLAGS
18355 # LTCC compiler flags.
18356 LTCFLAGS=$lt_LTCFLAGS
18358 # A language-specific compiler.
18359 CC=$lt_compiler_GCJ
18361 # Is the compiler the GNU C compiler?
18367 # The linker used to build libraries.
18370 # Whether we need hard or soft links.
18373 # A BSD-compatible nm program.
18376 # A symbol stripping program
18379 # Used to examine libraries when file_magic_cmd begins "file"
18380 MAGIC_CMD=$MAGIC_CMD
18382 # Used on cygwin: DLL creation program.
18385 # Used on cygwin: object dumper.
18388 # Used on cygwin: assembler.
18391 # The name of the directory that contains temporary libtool files.
18394 # How to create reloadable object files.
18395 reload_flag=$lt_reload_flag
18396 reload_cmds=$lt_reload_cmds
18398 # How to pass a linker flag through the compiler.
18399 wl=$lt_lt_prog_compiler_wl_GCJ
18401 # Object file suffix (normally "o").
18402 objext="$ac_objext"
18404 # Old archive suffix (normally "a").
18407 # Shared library suffix (normally ".so").
18408 shrext_cmds='$shrext_cmds'
18410 # Executable file suffix (normally "").
18413 # Additional compiler flags for building library objects.
18414 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18417 # What is the maximum length of a command?
18418 max_cmd_len=$lt_cv_sys_max_cmd_len
18420 # Does compiler simultaneously support -c and -o options?
18421 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18423 # Must we lock files when doing compilation?
18424 need_locks=$lt_need_locks
18426 # Do we need the lib prefix for modules?
18427 need_lib_prefix=$need_lib_prefix
18429 # Do we need a version for libraries?
18430 need_version=$need_version
18432 # Whether dlopen is supported.
18433 dlopen_support=$enable_dlopen
18435 # Whether dlopen of programs is supported.
18436 dlopen_self=$enable_dlopen_self
18438 # Whether dlopen of statically linked programs is supported.
18439 dlopen_self_static=$enable_dlopen_self_static
18441 # Compiler flag to prevent dynamic linking.
18442 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18444 # Compiler flag to turn off builtin functions.
18445 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18447 # Compiler flag to allow reflexive dlopens.
18448 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18450 # Compiler flag to generate shared objects directly from archives.
18451 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18453 # Compiler flag to generate thread-safe objects.
18454 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18456 # Library versioning type.
18457 version_type=$version_type
18459 # Format of library name prefix.
18460 libname_spec=$lt_libname_spec
18462 # List of archive names. First name is the real one, the rest are links.
18463 # The last name is the one that the linker finds with -lNAME.
18464 library_names_spec=$lt_library_names_spec
18466 # The coded name of the library, if different from the real name.
18467 soname_spec=$lt_soname_spec
18469 # Commands used to build and install an old-style archive.
18471 old_archive_cmds=$lt_old_archive_cmds_GCJ
18472 old_postinstall_cmds=$lt_old_postinstall_cmds
18473 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18475 # Create an old-style archive from a shared archive.
18476 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18478 # Create a temporary old-style archive to link instead of a shared archive.
18479 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18481 # Commands used to build and install a shared archive.
18482 archive_cmds=$lt_archive_cmds_GCJ
18483 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18484 postinstall_cmds=$lt_postinstall_cmds
18485 postuninstall_cmds=$lt_postuninstall_cmds
18487 # Commands used to build a loadable module (assumed same as above if empty)
18488 module_cmds=$lt_module_cmds_GCJ
18489 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18491 # Commands to strip libraries.
18492 old_striplib=$lt_old_striplib
18493 striplib=$lt_striplib
18495 # Dependencies to place before the objects being linked to create a
18497 predep_objects=$lt_predep_objects_GCJ
18499 # Dependencies to place after the objects being linked to create a
18501 postdep_objects=$lt_postdep_objects_GCJ
18503 # Dependencies to place before the objects being linked to create a
18505 predeps=$lt_predeps_GCJ
18507 # Dependencies to place after the objects being linked to create a
18509 postdeps=$lt_postdeps_GCJ
18511 # The library search path used internally by the compiler when linking
18512 # a shared library.
18513 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18515 # Method to check whether dependent libraries are shared objects.
18516 deplibs_check_method=$lt_deplibs_check_method
18518 # Command to use when deplibs_check_method == file_magic.
18519 file_magic_cmd=$lt_file_magic_cmd
18521 # Flag that allows shared libraries with undefined symbols to be built.
18522 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18524 # Flag that forces no undefined symbols.
18525 no_undefined_flag=$lt_no_undefined_flag_GCJ
18527 # Commands used to finish a libtool library installation in a directory.
18528 finish_cmds=$lt_finish_cmds
18530 # Same as above, but a single script fragment to be evaled but not shown.
18531 finish_eval=$lt_finish_eval
18533 # Take the output of nm and produce a listing of raw symbols and C names.
18534 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18536 # Transform the output of nm in a proper C declaration
18537 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18539 # Transform the output of nm in a C name address pair
18540 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18542 # This is the shared library runtime path variable.
18543 runpath_var=$runpath_var
18545 # This is the shared library path variable.
18546 shlibpath_var=$shlibpath_var
18548 # Is shlibpath searched before the hard-coded library search path?
18549 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18551 # How to hardcode a shared library path into an executable.
18552 hardcode_action=$hardcode_action_GCJ
18554 # Whether we should hardcode library paths into libraries.
18555 hardcode_into_libs=$hardcode_into_libs
18557 # Flag to hardcode \$libdir into a binary during linking.
18558 # This must work even if \$libdir does not exist.
18559 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18561 # If ld is used when linking, flag to hardcode \$libdir into
18562 # a binary during linking. This must work even if \$libdir does
18564 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18566 # Whether we need a single -rpath flag with a separated argument.
18567 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18569 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18570 # resulting binary.
18571 hardcode_direct=$hardcode_direct_GCJ
18573 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18574 # resulting binary.
18575 hardcode_minus_L=$hardcode_minus_L_GCJ
18577 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18578 # the resulting binary.
18579 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18581 # Set to yes if building a shared library automatically hardcodes DIR into the library
18582 # and all subsequent libraries and executables linked against it.
18583 hardcode_automatic=$hardcode_automatic_GCJ
18585 # Variables whose values should be saved in libtool wrapper scripts and
18586 # restored at relink time.
18587 variables_saved_for_relink="$variables_saved_for_relink"
18589 # Whether libtool must link a program against all its dependency libraries.
18590 link_all_deplibs=$link_all_deplibs_GCJ
18592 # Compile-time system search path for libraries
18593 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18595 # Run-time system search path for libraries
18596 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18598 # Fix the shell variable \$srcfile for the compiler.
18599 fix_srcfile_path="$fix_srcfile_path_GCJ"
18601 # Set to yes if exported symbols are required.
18602 always_export_symbols=$always_export_symbols_GCJ
18604 # The commands to list exported symbols.
18605 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18607 # The commands to extract the exported symbol list from a shared archive.
18608 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18610 # Symbols that should not be listed in the preloaded symbols.
18611 exclude_expsyms=$lt_exclude_expsyms_GCJ
18613 # Symbols that must always be exported.
18614 include_expsyms=$lt_include_expsyms_GCJ
18616 # ### END LIBTOOL TAG CONFIG: $tagname
18622 # If there is no Makefile yet, we rely on a make rule to execute
18623 # `config.status --recheck' to rerun these tests and create the
18624 # libtool script then.
18625 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18626 if test -f "$ltmain_in"; then
18627 test -f Makefile
&& make "$ltmain"
18633 ac_cpp
='$CPP $CPPFLAGS'
18634 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18635 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18636 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
18648 # Source file extension for RC test sources.
18651 # Object file extension for compiled RC test sources.
18655 # Code to be used in simple compile tests
18656 lt_simple_compile_test_code
='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18658 # Code to be used in simple link tests
18659 lt_simple_link_test_code
="$lt_simple_compile_test_code"
18661 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18663 # If no C compiler was specified, use CC.
18666 # If no C compiler flags were specified, use CFLAGS.
18667 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
18669 # Allow CC to be a program name with arguments.
18673 # save warnings/boilerplate of simple test code
18674 ac_outfile
=conftest.
$ac_objext
18675 printf "$lt_simple_compile_test_code" >conftest.
$ac_ext
18676 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
18677 _lt_compiler_boilerplate
=`cat conftest.err`
18680 ac_outfile
=conftest.
$ac_objext
18681 printf "$lt_simple_link_test_code" >conftest.
$ac_ext
18682 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
18683 _lt_linker_boilerplate
=`cat conftest.err`
18687 # Allow CC to be a program name with arguments.
18692 for cc_temp
in $compiler""; do
18694 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
18695 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
18700 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18702 lt_cv_prog_compiler_c_o_RC
=yes
18704 # The else clause should only fire when bootstrapping the
18705 # libtool distribution, otherwise you forgot to ship ltmain.sh
18706 # with your package, and you will get complaints that there are
18707 # no rules to generate ltmain.sh.
18708 if test -f "$ltmain"; then
18709 # See if we are running on zsh, and set the options which allow our commands through
18710 # without removal of \ escapes.
18711 if test -n "${ZSH_VERSION+set}" ; then
18712 setopt NO_GLOB_SUBST
18714 # Now quote all the things that may contain metacharacters while being
18715 # careful not to overquote the AC_SUBSTed values. We take copies of the
18716 # variables and quote the copies for generation of the libtool script.
18717 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18719 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18720 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18721 deplibs_check_method reload_flag reload_cmds need_locks \
18722 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18723 lt_cv_sys_global_symbol_to_c_name_address \
18724 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18725 old_postinstall_cmds old_postuninstall_cmds \
18729 lt_prog_compiler_wl_RC \
18730 lt_prog_compiler_pic_RC \
18731 lt_prog_compiler_static_RC \
18732 lt_prog_compiler_no_builtin_flag_RC \
18733 export_dynamic_flag_spec_RC \
18734 thread_safe_flag_spec_RC \
18735 whole_archive_flag_spec_RC \
18736 enable_shared_with_static_runtimes_RC \
18737 old_archive_cmds_RC \
18738 old_archive_from_new_cmds_RC \
18739 predep_objects_RC \
18740 postdep_objects_RC \
18743 compiler_lib_search_path_RC \
18745 archive_expsym_cmds_RC \
18746 postinstall_cmds_RC \
18747 postuninstall_cmds_RC \
18748 old_archive_from_expsyms_cmds_RC \
18749 allow_undefined_flag_RC \
18750 no_undefined_flag_RC \
18751 export_symbols_cmds_RC \
18752 hardcode_libdir_flag_spec_RC \
18753 hardcode_libdir_flag_spec_ld_RC \
18754 hardcode_libdir_separator_RC \
18755 hardcode_automatic_RC \
18757 module_expsym_cmds_RC \
18758 lt_cv_prog_compiler_c_o_RC \
18759 exclude_expsyms_RC \
18760 include_expsyms_RC
; do
18763 old_archive_cmds_RC | \
18764 old_archive_from_new_cmds_RC | \
18765 archive_cmds_RC | \
18766 archive_expsym_cmds_RC | \
18768 module_expsym_cmds_RC | \
18769 old_archive_from_expsyms_cmds_RC | \
18770 export_symbols_cmds_RC | \
18771 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18772 postinstall_cmds | postuninstall_cmds | \
18773 old_postinstall_cmds | old_postuninstall_cmds | \
18774 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
18775 # Double-quote double-evaled strings.
18776 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18779 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18785 *'\$0 --fallback-echo"')
18786 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18792 cat <<__EOF__ >> "$cfgfile"
18793 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18795 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18797 # Shell to use when invoking shell scripts.
18800 # Whether or not to build shared libraries.
18801 build_libtool_libs=$enable_shared
18803 # Whether or not to build static libraries.
18804 build_old_libs=$enable_static
18806 # Whether or not to add -lc for building shared libraries.
18807 build_libtool_need_lc=$archive_cmds_need_lc_RC
18809 # Whether or not to disallow shared libs when runtime libs are static
18810 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18812 # Whether or not to optimize for fast installation.
18813 fast_install=$enable_fast_install
18816 host_alias=$host_alias
18820 # The build system.
18821 build_alias=$build_alias
18825 # An echo program that does not interpret backslashes.
18830 AR_FLAGS=$lt_AR_FLAGS
18835 # LTCC compiler flags.
18836 LTCFLAGS=$lt_LTCFLAGS
18838 # A language-specific compiler.
18841 # Is the compiler the GNU C compiler?
18847 # The linker used to build libraries.
18850 # Whether we need hard or soft links.
18853 # A BSD-compatible nm program.
18856 # A symbol stripping program
18859 # Used to examine libraries when file_magic_cmd begins "file"
18860 MAGIC_CMD=$MAGIC_CMD
18862 # Used on cygwin: DLL creation program.
18865 # Used on cygwin: object dumper.
18868 # Used on cygwin: assembler.
18871 # The name of the directory that contains temporary libtool files.
18874 # How to create reloadable object files.
18875 reload_flag=$lt_reload_flag
18876 reload_cmds=$lt_reload_cmds
18878 # How to pass a linker flag through the compiler.
18879 wl=$lt_lt_prog_compiler_wl_RC
18881 # Object file suffix (normally "o").
18882 objext="$ac_objext"
18884 # Old archive suffix (normally "a").
18887 # Shared library suffix (normally ".so").
18888 shrext_cmds='$shrext_cmds'
18890 # Executable file suffix (normally "").
18893 # Additional compiler flags for building library objects.
18894 pic_flag=$lt_lt_prog_compiler_pic_RC
18897 # What is the maximum length of a command?
18898 max_cmd_len=$lt_cv_sys_max_cmd_len
18900 # Does compiler simultaneously support -c and -o options?
18901 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18903 # Must we lock files when doing compilation?
18904 need_locks=$lt_need_locks
18906 # Do we need the lib prefix for modules?
18907 need_lib_prefix=$need_lib_prefix
18909 # Do we need a version for libraries?
18910 need_version=$need_version
18912 # Whether dlopen is supported.
18913 dlopen_support=$enable_dlopen
18915 # Whether dlopen of programs is supported.
18916 dlopen_self=$enable_dlopen_self
18918 # Whether dlopen of statically linked programs is supported.
18919 dlopen_self_static=$enable_dlopen_self_static
18921 # Compiler flag to prevent dynamic linking.
18922 link_static_flag=$lt_lt_prog_compiler_static_RC
18924 # Compiler flag to turn off builtin functions.
18925 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18927 # Compiler flag to allow reflexive dlopens.
18928 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18930 # Compiler flag to generate shared objects directly from archives.
18931 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18933 # Compiler flag to generate thread-safe objects.
18934 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18936 # Library versioning type.
18937 version_type=$version_type
18939 # Format of library name prefix.
18940 libname_spec=$lt_libname_spec
18942 # List of archive names. First name is the real one, the rest are links.
18943 # The last name is the one that the linker finds with -lNAME.
18944 library_names_spec=$lt_library_names_spec
18946 # The coded name of the library, if different from the real name.
18947 soname_spec=$lt_soname_spec
18949 # Commands used to build and install an old-style archive.
18951 old_archive_cmds=$lt_old_archive_cmds_RC
18952 old_postinstall_cmds=$lt_old_postinstall_cmds
18953 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18955 # Create an old-style archive from a shared archive.
18956 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18958 # Create a temporary old-style archive to link instead of a shared archive.
18959 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18961 # Commands used to build and install a shared archive.
18962 archive_cmds=$lt_archive_cmds_RC
18963 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18964 postinstall_cmds=$lt_postinstall_cmds
18965 postuninstall_cmds=$lt_postuninstall_cmds
18967 # Commands used to build a loadable module (assumed same as above if empty)
18968 module_cmds=$lt_module_cmds_RC
18969 module_expsym_cmds=$lt_module_expsym_cmds_RC
18971 # Commands to strip libraries.
18972 old_striplib=$lt_old_striplib
18973 striplib=$lt_striplib
18975 # Dependencies to place before the objects being linked to create a
18977 predep_objects=$lt_predep_objects_RC
18979 # Dependencies to place after the objects being linked to create a
18981 postdep_objects=$lt_postdep_objects_RC
18983 # Dependencies to place before the objects being linked to create a
18985 predeps=$lt_predeps_RC
18987 # Dependencies to place after the objects being linked to create a
18989 postdeps=$lt_postdeps_RC
18991 # The library search path used internally by the compiler when linking
18992 # a shared library.
18993 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18995 # Method to check whether dependent libraries are shared objects.
18996 deplibs_check_method=$lt_deplibs_check_method
18998 # Command to use when deplibs_check_method == file_magic.
18999 file_magic_cmd=$lt_file_magic_cmd
19001 # Flag that allows shared libraries with undefined symbols to be built.
19002 allow_undefined_flag=$lt_allow_undefined_flag_RC
19004 # Flag that forces no undefined symbols.
19005 no_undefined_flag=$lt_no_undefined_flag_RC
19007 # Commands used to finish a libtool library installation in a directory.
19008 finish_cmds=$lt_finish_cmds
19010 # Same as above, but a single script fragment to be evaled but not shown.
19011 finish_eval=$lt_finish_eval
19013 # Take the output of nm and produce a listing of raw symbols and C names.
19014 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19016 # Transform the output of nm in a proper C declaration
19017 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19019 # Transform the output of nm in a C name address pair
19020 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19022 # This is the shared library runtime path variable.
19023 runpath_var=$runpath_var
19025 # This is the shared library path variable.
19026 shlibpath_var=$shlibpath_var
19028 # Is shlibpath searched before the hard-coded library search path?
19029 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19031 # How to hardcode a shared library path into an executable.
19032 hardcode_action=$hardcode_action_RC
19034 # Whether we should hardcode library paths into libraries.
19035 hardcode_into_libs=$hardcode_into_libs
19037 # Flag to hardcode \$libdir into a binary during linking.
19038 # This must work even if \$libdir does not exist.
19039 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19041 # If ld is used when linking, flag to hardcode \$libdir into
19042 # a binary during linking. This must work even if \$libdir does
19044 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19046 # Whether we need a single -rpath flag with a separated argument.
19047 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19049 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19050 # resulting binary.
19051 hardcode_direct=$hardcode_direct_RC
19053 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19054 # resulting binary.
19055 hardcode_minus_L=$hardcode_minus_L_RC
19057 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19058 # the resulting binary.
19059 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19061 # Set to yes if building a shared library automatically hardcodes DIR into the library
19062 # and all subsequent libraries and executables linked against it.
19063 hardcode_automatic=$hardcode_automatic_RC
19065 # Variables whose values should be saved in libtool wrapper scripts and
19066 # restored at relink time.
19067 variables_saved_for_relink="$variables_saved_for_relink"
19069 # Whether libtool must link a program against all its dependency libraries.
19070 link_all_deplibs=$link_all_deplibs_RC
19072 # Compile-time system search path for libraries
19073 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19075 # Run-time system search path for libraries
19076 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19078 # Fix the shell variable \$srcfile for the compiler.
19079 fix_srcfile_path="$fix_srcfile_path_RC"
19081 # Set to yes if exported symbols are required.
19082 always_export_symbols=$always_export_symbols_RC
19084 # The commands to list exported symbols.
19085 export_symbols_cmds=$lt_export_symbols_cmds_RC
19087 # The commands to extract the exported symbol list from a shared archive.
19088 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19090 # Symbols that should not be listed in the preloaded symbols.
19091 exclude_expsyms=$lt_exclude_expsyms_RC
19093 # Symbols that must always be exported.
19094 include_expsyms=$lt_include_expsyms_RC
19096 # ### END LIBTOOL TAG CONFIG: $tagname
19102 # If there is no Makefile yet, we rely on a make rule to execute
19103 # `config.status --recheck' to rerun these tests and create the
19104 # libtool script then.
19105 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19106 if test -f "$ltmain_in"; then
19107 test -f Makefile
&& make "$ltmain"
19113 ac_cpp
='$CPP $CPPFLAGS'
19114 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19115 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19116 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
19123 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19124 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19125 { (exit 1); exit 1; }; }
19129 # Append the new tag name to the list of available tags.
19130 if test -n "$tagname" ; then
19131 available_tags
="$available_tags $tagname"
19137 # Now substitute the updated list of available tags.
19138 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19139 mv "${ofile}T" "$ofile"
19143 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19144 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19145 { (exit 1); exit 1; }; }
19151 # This can be used to rebuild libtool when needed
19152 LIBTOOL_DEPS
="$ac_aux_dir/ltmain.sh"
19154 # Always use our own libtool.
19155 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
19157 # Prevent multiple expansion
19179 ac_cpp
='$CPP $CPPFLAGS'
19180 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19181 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19182 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
19183 if test -n "$ac_tool_prefix"; then
19184 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
19185 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
19186 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19187 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19188 if test "${ac_cv_prog_CC+set}" = set; then
19189 echo $ECHO_N "(cached) $ECHO_C" >&6
19191 if test -n "$CC"; then
19192 ac_cv_prog_CC
="$CC" # Let the user override the test.
19194 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19195 for as_dir
in $PATH
19198 test -z "$as_dir" && as_dir
=.
19199 for ac_exec_ext
in '' $ac_executable_extensions; do
19200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19201 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
19202 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19212 if test -n "$CC"; then
19213 { echo "$as_me:$LINENO: result: $CC" >&5
19214 echo "${ECHO_T}$CC" >&6; }
19216 { echo "$as_me:$LINENO: result: no" >&5
19217 echo "${ECHO_T}no" >&6; }
19222 if test -z "$ac_cv_prog_CC"; then
19224 # Extract the first word of "gcc", so it can be a program name with args.
19225 set dummy gcc
; ac_word
=$2
19226 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19227 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19228 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19229 echo $ECHO_N "(cached) $ECHO_C" >&6
19231 if test -n "$ac_ct_CC"; then
19232 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
19234 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19235 for as_dir
in $PATH
19238 test -z "$as_dir" && as_dir
=.
19239 for ac_exec_ext
in '' $ac_executable_extensions; do
19240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19241 ac_cv_prog_ac_ct_CC
="gcc"
19242 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19251 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
19252 if test -n "$ac_ct_CC"; then
19253 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19254 echo "${ECHO_T}$ac_ct_CC" >&6; }
19256 { echo "$as_me:$LINENO: result: no" >&5
19257 echo "${ECHO_T}no" >&6; }
19260 if test "x$ac_ct_CC" = x
; then
19263 case $cross_compiling:$ac_tool_warned in
19265 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19266 whose name does not start with the host triplet. If you think this
19267 configuration is useful to you, please write to autoconf@gnu.org." >&5
19268 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19269 whose name does not start with the host triplet. If you think this
19270 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19271 ac_tool_warned
=yes ;;
19276 CC
="$ac_cv_prog_CC"
19279 if test -z "$CC"; then
19280 if test -n "$ac_tool_prefix"; then
19281 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
19282 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
19283 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19284 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19285 if test "${ac_cv_prog_CC+set}" = set; then
19286 echo $ECHO_N "(cached) $ECHO_C" >&6
19288 if test -n "$CC"; then
19289 ac_cv_prog_CC
="$CC" # Let the user override the test.
19291 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19292 for as_dir
in $PATH
19295 test -z "$as_dir" && as_dir
=.
19296 for ac_exec_ext
in '' $ac_executable_extensions; do
19297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19298 ac_cv_prog_CC
="${ac_tool_prefix}cc"
19299 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19309 if test -n "$CC"; then
19310 { echo "$as_me:$LINENO: result: $CC" >&5
19311 echo "${ECHO_T}$CC" >&6; }
19313 { echo "$as_me:$LINENO: result: no" >&5
19314 echo "${ECHO_T}no" >&6; }
19320 if test -z "$CC"; then
19321 # Extract the first word of "cc", so it can be a program name with args.
19322 set dummy cc
; ac_word
=$2
19323 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19324 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19325 if test "${ac_cv_prog_CC+set}" = set; then
19326 echo $ECHO_N "(cached) $ECHO_C" >&6
19328 if test -n "$CC"; then
19329 ac_cv_prog_CC
="$CC" # Let the user override the test.
19331 ac_prog_rejected
=no
19332 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19333 for as_dir
in $PATH
19336 test -z "$as_dir" && as_dir
=.
19337 for ac_exec_ext
in '' $ac_executable_extensions; do
19338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19339 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
19340 ac_prog_rejected
=yes
19344 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19351 if test $ac_prog_rejected = yes; then
19352 # We found a bogon in the path, so make sure we never use it.
19353 set dummy
$ac_cv_prog_CC
19355 if test $# != 0; then
19356 # We chose a different compiler from the bogus one.
19357 # However, it has the same basename, so the bogon will be chosen
19358 # first if we set CC to just the basename; use the full file name.
19360 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
19366 if test -n "$CC"; then
19367 { echo "$as_me:$LINENO: result: $CC" >&5
19368 echo "${ECHO_T}$CC" >&6; }
19370 { echo "$as_me:$LINENO: result: no" >&5
19371 echo "${ECHO_T}no" >&6; }
19376 if test -z "$CC"; then
19377 if test -n "$ac_tool_prefix"; then
19378 for ac_prog
in cl.exe
19380 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19381 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
19382 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19383 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19384 if test "${ac_cv_prog_CC+set}" = set; then
19385 echo $ECHO_N "(cached) $ECHO_C" >&6
19387 if test -n "$CC"; then
19388 ac_cv_prog_CC
="$CC" # Let the user override the test.
19390 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19391 for as_dir
in $PATH
19394 test -z "$as_dir" && as_dir
=.
19395 for ac_exec_ext
in '' $ac_executable_extensions; do
19396 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19397 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
19398 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19408 if test -n "$CC"; then
19409 { echo "$as_me:$LINENO: result: $CC" >&5
19410 echo "${ECHO_T}$CC" >&6; }
19412 { echo "$as_me:$LINENO: result: no" >&5
19413 echo "${ECHO_T}no" >&6; }
19417 test -n "$CC" && break
19420 if test -z "$CC"; then
19422 for ac_prog
in cl.exe
19424 # Extract the first word of "$ac_prog", so it can be a program name with args.
19425 set dummy
$ac_prog; ac_word
=$2
19426 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19427 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19428 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19429 echo $ECHO_N "(cached) $ECHO_C" >&6
19431 if test -n "$ac_ct_CC"; then
19432 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
19434 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19435 for as_dir
in $PATH
19438 test -z "$as_dir" && as_dir
=.
19439 for ac_exec_ext
in '' $ac_executable_extensions; do
19440 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19441 ac_cv_prog_ac_ct_CC
="$ac_prog"
19442 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19451 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
19452 if test -n "$ac_ct_CC"; then
19453 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19454 echo "${ECHO_T}$ac_ct_CC" >&6; }
19456 { echo "$as_me:$LINENO: result: no" >&5
19457 echo "${ECHO_T}no" >&6; }
19461 test -n "$ac_ct_CC" && break
19464 if test "x$ac_ct_CC" = x
; then
19467 case $cross_compiling:$ac_tool_warned in
19469 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19470 whose name does not start with the host triplet. If you think this
19471 configuration is useful to you, please write to autoconf@gnu.org." >&5
19472 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19473 whose name does not start with the host triplet. If you think this
19474 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19475 ac_tool_warned
=yes ;;
19484 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
19485 See \`config.log' for more details." >&5
19486 echo "$as_me: error: no acceptable C compiler found in \$PATH
19487 See \`config.log' for more details." >&2;}
19488 { (exit 1); exit 1; }; }
19490 # Provide some information about the compiler.
19491 echo "$as_me:$LINENO: checking for C compiler version" >&5
19492 ac_compiler
=`set X $ac_compile; echo $2`
19493 { (ac_try
="$ac_compiler --version >&5"
19494 case "(($ac_try" in
19495 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19496 *) ac_try_echo=$ac_try;;
19498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19499 (eval "$ac_compiler --version >&5") 2>&5
19501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19502 (exit $ac_status); }
19503 { (ac_try="$ac_compiler -v >&5"
19504 case "(($ac_try" in
19505 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19506 *) ac_try_echo
=$ac_try;;
19508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19509 (eval "$ac_compiler -v >&5") 2>&5
19511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19512 (exit $ac_status); }
19513 { (ac_try
="$ac_compiler -V >&5"
19514 case "(($ac_try" in
19515 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19516 *) ac_try_echo=$ac_try;;
19518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19519 (eval "$ac_compiler -V >&5") 2>&5
19521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19522 (exit $ac_status); }
19524 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
19525 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
19526 if test "${ac_cv_c_compiler_gnu+set}" = set; then
19527 echo $ECHO_N "(cached) $ECHO_C" >&6
19529 cat >conftest.$ac_ext <<_ACEOF
19532 cat confdefs.h >>conftest.$ac_ext
19533 cat >>conftest.$ac_ext <<_ACEOF
19534 /* end confdefs.h. */
19547 rm -f conftest.$ac_objext
19548 if { (ac_try="$ac_compile"
19549 case "(($ac_try" in
19550 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19551 *) ac_try_echo
=$ac_try;;
19553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19554 (eval "$ac_compile") 2>conftest.er1
19556 grep -v '^ *+' conftest.er1
>conftest.err
19558 cat conftest.err
>&5
19559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19560 (exit $ac_status); } && {
19561 test -z "$ac_c_werror_flag" ||
19562 test ! -s conftest.err
19563 } && test -s conftest.
$ac_objext; then
19564 ac_compiler_gnu
=yes
19566 echo "$as_me: failed program was:" >&5
19567 sed 's/^/| /' conftest.
$ac_ext >&5
19572 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19573 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
19576 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
19577 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
19578 GCC
=`test $ac_compiler_gnu = yes && echo yes`
19579 ac_test_CFLAGS
=${CFLAGS+set}
19580 ac_save_CFLAGS
=$CFLAGS
19581 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
19582 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
19583 if test "${ac_cv_prog_cc_g+set}" = set; then
19584 echo $ECHO_N "(cached) $ECHO_C" >&6
19586 ac_save_c_werror_flag
=$ac_c_werror_flag
19587 ac_c_werror_flag
=yes
19590 cat >conftest.
$ac_ext <<_ACEOF
19593 cat confdefs.h
>>conftest.
$ac_ext
19594 cat >>conftest.
$ac_ext <<_ACEOF
19595 /* end confdefs.h. */
19605 rm -f conftest.
$ac_objext
19606 if { (ac_try
="$ac_compile"
19607 case "(($ac_try" in
19608 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19609 *) ac_try_echo=$ac_try;;
19611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19612 (eval "$ac_compile") 2>conftest.er1
19614 grep -v '^ *+' conftest.er1 >conftest.err
19616 cat conftest.err >&5
19617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19618 (exit $ac_status); } && {
19619 test -z "$ac_c_werror_flag" ||
19620 test ! -s conftest.err
19621 } && test -s conftest.$ac_objext; then
19622 ac_cv_prog_cc_g=yes
19624 echo "$as_me: failed program was:" >&5
19625 sed 's/^/| /' conftest.$ac_ext >&5
19628 cat >conftest.$ac_ext <<_ACEOF
19631 cat confdefs.h >>conftest.$ac_ext
19632 cat >>conftest.$ac_ext <<_ACEOF
19633 /* end confdefs.h. */
19643 rm -f conftest.$ac_objext
19644 if { (ac_try="$ac_compile"
19645 case "(($ac_try" in
19646 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19647 *) ac_try_echo
=$ac_try;;
19649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19650 (eval "$ac_compile") 2>conftest.er1
19652 grep -v '^ *+' conftest.er1
>conftest.err
19654 cat conftest.err
>&5
19655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19656 (exit $ac_status); } && {
19657 test -z "$ac_c_werror_flag" ||
19658 test ! -s conftest.err
19659 } && test -s conftest.
$ac_objext; then
19662 echo "$as_me: failed program was:" >&5
19663 sed 's/^/| /' conftest.
$ac_ext >&5
19665 ac_c_werror_flag
=$ac_save_c_werror_flag
19667 cat >conftest.
$ac_ext <<_ACEOF
19670 cat confdefs.h
>>conftest.
$ac_ext
19671 cat >>conftest.
$ac_ext <<_ACEOF
19672 /* end confdefs.h. */
19682 rm -f conftest.
$ac_objext
19683 if { (ac_try
="$ac_compile"
19684 case "(($ac_try" in
19685 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19686 *) ac_try_echo=$ac_try;;
19688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19689 (eval "$ac_compile") 2>conftest.er1
19691 grep -v '^ *+' conftest.er1 >conftest.err
19693 cat conftest.err >&5
19694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19695 (exit $ac_status); } && {
19696 test -z "$ac_c_werror_flag" ||
19697 test ! -s conftest.err
19698 } && test -s conftest.$ac_objext; then
19699 ac_cv_prog_cc_g=yes
19701 echo "$as_me: failed program was:" >&5
19702 sed 's/^/| /' conftest.$ac_ext >&5
19707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19714 ac_c_werror_flag=$ac_save_c_werror_flag
19716 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
19717 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
19718 if test "$ac_test_CFLAGS" = set; then
19719 CFLAGS=$ac_save_CFLAGS
19720 elif test $ac_cv_prog_cc_g = yes; then
19721 if test "$GCC" = yes; then
19727 if test "$GCC" = yes; then
19733 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
19734 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
19735 if test "${ac_cv_prog_cc_c89+set}" = set; then
19736 echo $ECHO_N "(cached) $ECHO_C" >&6
19738 ac_cv_prog_cc_c89=no
19740 cat >conftest.$ac_ext <<_ACEOF
19743 cat confdefs.h >>conftest.$ac_ext
19744 cat >>conftest.$ac_ext <<_ACEOF
19745 /* end confdefs.h. */
19746 #include <stdarg.h>
19748 #include <sys/types.h>
19749 #include <sys/stat.h>
19750 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
19751 struct buf { int x; };
19752 FILE * (*rcsopen) (struct buf *, struct stat *, int);
19753 static char *e (p, i)
19759 static char *f (char * (*g) (char **, int), char **p, ...)
19764 s = g (p, va_arg (v,int));
19769 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
19770 function prototypes and stuff, but not '\xHH' hex character constants.
19771 These don't provoke an error unfortunately, instead are silently treated
19772 as 'x'. The following induces an error, until -std is added to get
19773 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
19774 array size at least. It's necessary to write '\x00'==0 to get something
19775 that's true only with -std. */
19776 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
19778 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
19779 inside strings and character constants. */
19781 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
19783 int test (int i, double x);
19784 struct s1 {int (*f) (int a);};
19785 struct s2 {int (*f) (double a);};
19786 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
19792 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
19797 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
19798 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
19800 CC="$ac_save_CC $ac_arg"
19801 rm -f conftest.$ac_objext
19802 if { (ac_try="$ac_compile"
19803 case "(($ac_try" in
19804 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19805 *) ac_try_echo
=$ac_try;;
19807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19808 (eval "$ac_compile") 2>conftest.er1
19810 grep -v '^ *+' conftest.er1
>conftest.err
19812 cat conftest.err
>&5
19813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19814 (exit $ac_status); } && {
19815 test -z "$ac_c_werror_flag" ||
19816 test ! -s conftest.err
19817 } && test -s conftest.
$ac_objext; then
19818 ac_cv_prog_cc_c89
=$ac_arg
19820 echo "$as_me: failed program was:" >&5
19821 sed 's/^/| /' conftest.
$ac_ext >&5
19826 rm -f core conftest.err conftest.
$ac_objext
19827 test "x$ac_cv_prog_cc_c89" != "xno" && break
19829 rm -f conftest.
$ac_ext
19834 case "x$ac_cv_prog_cc_c89" in
19836 { echo "$as_me:$LINENO: result: none needed" >&5
19837 echo "${ECHO_T}none needed" >&6; } ;;
19839 { echo "$as_me:$LINENO: result: unsupported" >&5
19840 echo "${ECHO_T}unsupported" >&6; } ;;
19842 CC
="$CC $ac_cv_prog_cc_c89"
19843 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
19844 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
19849 ac_cpp
='$CPP $CPPFLAGS'
19850 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19851 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19852 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
19855 ac_cpp
='$CXXCPP $CPPFLAGS'
19856 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19857 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19858 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
19859 if test -z "$CXX"; then
19860 if test -n "$CCC"; then
19863 if test -n "$ac_tool_prefix"; then
19864 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
19866 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19867 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
19868 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19869 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19870 if test "${ac_cv_prog_CXX+set}" = set; then
19871 echo $ECHO_N "(cached) $ECHO_C" >&6
19873 if test -n "$CXX"; then
19874 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
19876 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19877 for as_dir
in $PATH
19880 test -z "$as_dir" && as_dir
=.
19881 for ac_exec_ext
in '' $ac_executable_extensions; do
19882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19883 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
19884 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19893 CXX
=$ac_cv_prog_CXX
19894 if test -n "$CXX"; then
19895 { echo "$as_me:$LINENO: result: $CXX" >&5
19896 echo "${ECHO_T}$CXX" >&6; }
19898 { echo "$as_me:$LINENO: result: no" >&5
19899 echo "${ECHO_T}no" >&6; }
19903 test -n "$CXX" && break
19906 if test -z "$CXX"; then
19908 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
19910 # Extract the first word of "$ac_prog", so it can be a program name with args.
19911 set dummy
$ac_prog; ac_word
=$2
19912 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19914 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
19915 echo $ECHO_N "(cached) $ECHO_C" >&6
19917 if test -n "$ac_ct_CXX"; then
19918 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
19920 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19921 for as_dir
in $PATH
19924 test -z "$as_dir" && as_dir
=.
19925 for ac_exec_ext
in '' $ac_executable_extensions; do
19926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19927 ac_cv_prog_ac_ct_CXX
="$ac_prog"
19928 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19937 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
19938 if test -n "$ac_ct_CXX"; then
19939 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
19940 echo "${ECHO_T}$ac_ct_CXX" >&6; }
19942 { echo "$as_me:$LINENO: result: no" >&5
19943 echo "${ECHO_T}no" >&6; }
19947 test -n "$ac_ct_CXX" && break
19950 if test "x$ac_ct_CXX" = x
; then
19953 case $cross_compiling:$ac_tool_warned in
19955 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19956 whose name does not start with the host triplet. If you think this
19957 configuration is useful to you, please write to autoconf@gnu.org." >&5
19958 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19959 whose name does not start with the host triplet. If you think this
19960 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19961 ac_tool_warned
=yes ;;
19969 # Provide some information about the compiler.
19970 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
19971 ac_compiler
=`set X $ac_compile; echo $2`
19972 { (ac_try
="$ac_compiler --version >&5"
19973 case "(($ac_try" in
19974 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19975 *) ac_try_echo=$ac_try;;
19977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19978 (eval "$ac_compiler --version >&5") 2>&5
19980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19981 (exit $ac_status); }
19982 { (ac_try="$ac_compiler -v >&5"
19983 case "(($ac_try" in
19984 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19985 *) ac_try_echo
=$ac_try;;
19987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19988 (eval "$ac_compiler -v >&5") 2>&5
19990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19991 (exit $ac_status); }
19992 { (ac_try
="$ac_compiler -V >&5"
19993 case "(($ac_try" in
19994 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19995 *) ac_try_echo=$ac_try;;
19997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19998 (eval "$ac_compiler -V >&5") 2>&5
20000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20001 (exit $ac_status); }
20003 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
20004 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
20005 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
20006 echo $ECHO_N "(cached) $ECHO_C" >&6
20008 cat >conftest.$ac_ext <<_ACEOF
20011 cat confdefs.h >>conftest.$ac_ext
20012 cat >>conftest.$ac_ext <<_ACEOF
20013 /* end confdefs.h. */
20026 rm -f conftest.$ac_objext
20027 if { (ac_try="$ac_compile"
20028 case "(($ac_try" in
20029 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20030 *) ac_try_echo
=$ac_try;;
20032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20033 (eval "$ac_compile") 2>conftest.er1
20035 grep -v '^ *+' conftest.er1
>conftest.err
20037 cat conftest.err
>&5
20038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20039 (exit $ac_status); } && {
20040 test -z "$ac_cxx_werror_flag" ||
20041 test ! -s conftest.err
20042 } && test -s conftest.
$ac_objext; then
20043 ac_compiler_gnu
=yes
20045 echo "$as_me: failed program was:" >&5
20046 sed 's/^/| /' conftest.
$ac_ext >&5
20051 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20052 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
20055 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
20056 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
20057 GXX
=`test $ac_compiler_gnu = yes && echo yes`
20058 ac_test_CXXFLAGS
=${CXXFLAGS+set}
20059 ac_save_CXXFLAGS
=$CXXFLAGS
20060 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
20061 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
20062 if test "${ac_cv_prog_cxx_g+set}" = set; then
20063 echo $ECHO_N "(cached) $ECHO_C" >&6
20065 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
20066 ac_cxx_werror_flag
=yes
20067 ac_cv_prog_cxx_g
=no
20069 cat >conftest.
$ac_ext <<_ACEOF
20072 cat confdefs.h
>>conftest.
$ac_ext
20073 cat >>conftest.
$ac_ext <<_ACEOF
20074 /* end confdefs.h. */
20084 rm -f conftest.
$ac_objext
20085 if { (ac_try
="$ac_compile"
20086 case "(($ac_try" in
20087 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20088 *) ac_try_echo=$ac_try;;
20090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20091 (eval "$ac_compile") 2>conftest.er1
20093 grep -v '^ *+' conftest.er1 >conftest.err
20095 cat conftest.err >&5
20096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20097 (exit $ac_status); } && {
20098 test -z "$ac_cxx_werror_flag" ||
20099 test ! -s conftest.err
20100 } && test -s conftest.$ac_objext; then
20101 ac_cv_prog_cxx_g=yes
20103 echo "$as_me: failed program was:" >&5
20104 sed 's/^/| /' conftest.$ac_ext >&5
20107 cat >conftest.$ac_ext <<_ACEOF
20110 cat confdefs.h >>conftest.$ac_ext
20111 cat >>conftest.$ac_ext <<_ACEOF
20112 /* end confdefs.h. */
20122 rm -f conftest.$ac_objext
20123 if { (ac_try="$ac_compile"
20124 case "(($ac_try" in
20125 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20126 *) ac_try_echo
=$ac_try;;
20128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20129 (eval "$ac_compile") 2>conftest.er1
20131 grep -v '^ *+' conftest.er1
>conftest.err
20133 cat conftest.err
>&5
20134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20135 (exit $ac_status); } && {
20136 test -z "$ac_cxx_werror_flag" ||
20137 test ! -s conftest.err
20138 } && test -s conftest.
$ac_objext; then
20141 echo "$as_me: failed program was:" >&5
20142 sed 's/^/| /' conftest.
$ac_ext >&5
20144 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
20146 cat >conftest.
$ac_ext <<_ACEOF
20149 cat confdefs.h
>>conftest.
$ac_ext
20150 cat >>conftest.
$ac_ext <<_ACEOF
20151 /* end confdefs.h. */
20161 rm -f conftest.
$ac_objext
20162 if { (ac_try
="$ac_compile"
20163 case "(($ac_try" in
20164 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20165 *) ac_try_echo=$ac_try;;
20167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20168 (eval "$ac_compile") 2>conftest.er1
20170 grep -v '^ *+' conftest.er1 >conftest.err
20172 cat conftest.err >&5
20173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20174 (exit $ac_status); } && {
20175 test -z "$ac_cxx_werror_flag" ||
20176 test ! -s conftest.err
20177 } && test -s conftest.$ac_objext; then
20178 ac_cv_prog_cxx_g=yes
20180 echo "$as_me: failed program was:" >&5
20181 sed 's/^/| /' conftest.$ac_ext >&5
20186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20193 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
20195 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
20196 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
20197 if test "$ac_test_CXXFLAGS" = set; then
20198 CXXFLAGS=$ac_save_CXXFLAGS
20199 elif test $ac_cv_prog_cxx_g = yes; then
20200 if test "$GXX" = yes; then
20206 if test "$GXX" = yes; then
20213 ac_cpp='$CPP $CPPFLAGS'
20214 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20215 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20216 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20218 # Find a good install program. We prefer a C program (faster),
20219 # so one script is as good as another. But avoid the broken or
20220 # incompatible versions:
20221 # SysV /etc/install, /usr/sbin/install
20222 # SunOS /usr/etc/install
20223 # IRIX /sbin/install
20225 # AmigaOS /C/install, which installs bootblocks on floppy discs
20226 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
20227 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
20228 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
20229 # OS/2's system install, which has a completely different semantic
20230 # ./install, which can be erroneously created by make from ./install.sh.
20231 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
20232 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
20233 if test -z "$INSTALL"; then
20234 if test "${ac_cv_path_install+set}" = set; then
20235 echo $ECHO_N "(cached) $ECHO_C" >&6
20237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20238 for as_dir in $PATH
20241 test -z "$as_dir" && as_dir=.
20242 # Account for people who put trailing slashes in PATH elements.
20244 ./ | .// | /cC/* | \
20245 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
20246 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
20249 # OSF1 and SCO ODT 3.0 have their own names for install.
20250 # Don't use installbsd from OSF since it installs stuff as root
20252 for ac_prog in ginstall scoinst install; do
20253 for ac_exec_ext in '' $ac_executable_extensions; do
20254 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
20255 if test $ac_prog = install &&
20256 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
20257 # AIX install. It has an incompatible calling convention.
20259 elif test $ac_prog = install &&
20260 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
20261 # program-specific install script used by HP pwplus--don't use.
20264 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
20277 if test "${ac_cv_path_install+set}" = set; then
20278 INSTALL=$ac_cv_path_install
20280 # As a last resort, use the slow shell script. Don't cache a
20281 # value for INSTALL within a source directory, because that will
20282 # break other packages using the cache if that directory is
20283 # removed, or if the value is a relative name.
20284 INSTALL=$ac_install_sh
20287 { echo "$as_me:$LINENO: result: $INSTALL" >&5
20288 echo "${ECHO_T}$INSTALL" >&6; }
20290 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
20291 # It thinks the first close brace ends the variable substitution.
20292 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
20294 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
20296 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
20298 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
20299 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
20300 set x ${MAKE-make}; ac_make=`echo "$2" |
sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
20301 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
20302 echo $ECHO_N "(cached) $ECHO_C" >&6
20304 cat >conftest.make <<\_ACEOF
20307 @echo '@@@%%%=$(MAKE)=@@@%%%'
20309 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
20310 case `${MAKE-make} -f conftest.
make 2>/dev
/null
` in
20311 *@@@%%%=?*=@@@%%%*)
20312 eval ac_cv_prog_make_${ac_make}_set=yes;;
20314 eval ac_cv_prog_make_${ac_make}_set=no;;
20316 rm -f conftest.make
20318 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
20319 { echo "$as_me:$LINENO: result: yes" >&5
20320 echo "${ECHO_T}yes" >&6; }
20323 { echo "$as_me:$LINENO: result: no" >&5
20324 echo "${ECHO_T}no" >&6; }
20325 SET_MAKE="MAKE=${MAKE-make}"
20328 if test -z "$host_alias"; then
20331 hostaliaswindres="$host_alias-windres"
20333 for ac_prog in windres $hostaliaswindres $host_os-windres
20335 # Extract the first word of "$ac_prog", so it can be a program name with args.
20336 set dummy $ac_prog; ac_word=$2
20337 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20338 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20339 if test "${ac_cv_prog_WINDRES+set}" = set; then
20340 echo $ECHO_N "(cached) $ECHO_C" >&6
20342 if test -n "$WINDRES"; then
20343 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
20345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20346 for as_dir in $PATH
20349 test -z "$as_dir" && as_dir=.
20350 for ac_exec_ext in '' $ac_executable_extensions; do
20351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20352 ac_cv_prog_WINDRES="$ac_prog"
20353 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20362 WINDRES=$ac_cv_prog_WINDRES
20363 if test -n "$WINDRES"; then
20364 { echo "$as_me:$LINENO: result: $WINDRES" >&5
20365 echo "${ECHO_T}$WINDRES" >&6; }
20367 { echo "$as_me:$LINENO: result: no" >&5
20368 echo "${ECHO_T}no" >&6; }
20372 test -n "$WINDRES" && break
20376 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20377 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
20378 if test "${ac_cv_c_const+set}" = set; then
20379 echo $ECHO_N "(cached) $ECHO_C" >&6
20381 cat >conftest.$ac_ext <<_ACEOF
20384 cat confdefs.h >>conftest.$ac_ext
20385 cat >>conftest.$ac_ext <<_ACEOF
20386 /* end confdefs.h. */
20391 /* FIXME: Include the comments suggested by Paul. */
20392 #ifndef __cplusplus
20393 /* Ultrix mips cc rejects this. */
20394 typedef int charset[2];
20396 /* SunOS 4.1.1 cc rejects this. */
20397 char const *const *pcpcc;
20399 /* NEC SVR4.0.2 mips cc rejects this. */
20400 struct point {int x, y;};
20401 static struct point const zero = {0,0};
20402 /* AIX XL C 1.02.0.0 rejects this.
20403 It does not let you subtract one const X* pointer from another in
20404 an arm of an if-expression whose if-part is not a constant
20406 const char *g = "string";
20407 pcpcc = &g + (g ? g-g : 0);
20408 /* HPUX 7.0 cc rejects these. */
20410 ppc = (char**) pcpcc;
20411 pcpcc = (char const *const *) ppc;
20412 { /* SCO 3.2v4 cc rejects this. */
20414 char const *s = 0 ? (char *) 0 : (char const *) 0;
20419 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20420 int x[] = {25, 17};
20421 const int *foo = &x[0];
20424 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20425 typedef const int *iptr;
20429 { /* AIX XL C 1.02.0.0 rejects this saying
20430 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20431 struct s { int j; const int *ap[3]; };
20432 struct s *b; b->j = 5;
20434 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20435 const int foo = 10;
20436 if (!foo) return 0;
20438 return !cs[0] && !zero.x;
20445 rm -f conftest.$ac_objext
20446 if { (ac_try="$ac_compile"
20447 case "(($ac_try" in
20448 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20449 *) ac_try_echo
=$ac_try;;
20451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20452 (eval "$ac_compile") 2>conftest.er1
20454 grep -v '^ *+' conftest.er1
>conftest.err
20456 cat conftest.err
>&5
20457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20458 (exit $ac_status); } && {
20459 test -z "$ac_c_werror_flag" ||
20460 test ! -s conftest.err
20461 } && test -s conftest.
$ac_objext; then
20464 echo "$as_me: failed program was:" >&5
20465 sed 's/^/| /' conftest.
$ac_ext >&5
20470 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20472 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20473 echo "${ECHO_T}$ac_cv_c_const" >&6; }
20474 if test $ac_cv_c_const = no
; then
20476 cat >>confdefs.h
<<\_ACEOF
20482 { echo "$as_me:$LINENO: checking for inline" >&5
20483 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
20484 if test "${ac_cv_c_inline+set}" = set; then
20485 echo $ECHO_N "(cached) $ECHO_C" >&6
20488 for ac_kw
in inline __inline__ __inline
; do
20489 cat >conftest.
$ac_ext <<_ACEOF
20492 cat confdefs.h
>>conftest.
$ac_ext
20493 cat >>conftest.
$ac_ext <<_ACEOF
20494 /* end confdefs.h. */
20495 #ifndef __cplusplus
20497 static $ac_kw foo_t static_foo () {return 0; }
20498 $ac_kw foo_t foo () {return 0; }
20502 rm -f conftest.
$ac_objext
20503 if { (ac_try
="$ac_compile"
20504 case "(($ac_try" in
20505 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20506 *) ac_try_echo=$ac_try;;
20508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20509 (eval "$ac_compile") 2>conftest.er1
20511 grep -v '^ *+' conftest.er1 >conftest.err
20513 cat conftest.err >&5
20514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20515 (exit $ac_status); } && {
20516 test -z "$ac_c_werror_flag" ||
20517 test ! -s conftest.err
20518 } && test -s conftest.$ac_objext; then
20519 ac_cv_c_inline=$ac_kw
20521 echo "$as_me: failed program was:" >&5
20522 sed 's/^/| /' conftest.$ac_ext >&5
20527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20528 test "$ac_cv_c_inline" != no && break
20532 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
20533 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
20536 case $ac_cv_c_inline in
20539 case $ac_cv_c_inline in
20541 *) ac_val=$ac_cv_c_inline;;
20543 cat >>confdefs.h <<_ACEOF
20544 #ifndef __cplusplus
20545 #define inline $ac_val
20551 { echo "$as_me:$LINENO: checking for working volatile" >&5
20552 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
20553 if test "${ac_cv_c_volatile+set}" = set; then
20554 echo $ECHO_N "(cached) $ECHO_C" >&6
20556 cat >conftest.$ac_ext <<_ACEOF
20559 cat confdefs.h >>conftest.$ac_ext
20560 cat >>conftest.$ac_ext <<_ACEOF
20561 /* end confdefs.h. */
20568 int * volatile y = (int *) 0;
20574 rm -f conftest.$ac_objext
20575 if { (ac_try="$ac_compile"
20576 case "(($ac_try" in
20577 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20578 *) ac_try_echo
=$ac_try;;
20580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20581 (eval "$ac_compile") 2>conftest.er1
20583 grep -v '^ *+' conftest.er1
>conftest.err
20585 cat conftest.err
>&5
20586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20587 (exit $ac_status); } && {
20588 test -z "$ac_c_werror_flag" ||
20589 test ! -s conftest.err
20590 } && test -s conftest.
$ac_objext; then
20591 ac_cv_c_volatile
=yes
20593 echo "$as_me: failed program was:" >&5
20594 sed 's/^/| /' conftest.
$ac_ext >&5
20596 ac_cv_c_volatile
=no
20599 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20601 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
20602 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
20603 if test $ac_cv_c_volatile = no
; then
20605 cat >>confdefs.h
<<\_ACEOF
20612 # Check whether --enable-libc was given.
20613 if test "${enable_libc+set}" = set; then
20614 enableval
=$enable_libc;
20619 if test x
$enable_libc = xyes
; then
20620 cat >>confdefs.h
<<\_ACEOF
20621 #define HAVE_LIBC 1
20625 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20626 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
20627 if test "${ac_cv_header_stdc+set}" = set; then
20628 echo $ECHO_N "(cached) $ECHO_C" >&6
20630 cat >conftest.
$ac_ext <<_ACEOF
20633 cat confdefs.h
>>conftest.
$ac_ext
20634 cat >>conftest.
$ac_ext <<_ACEOF
20635 /* end confdefs.h. */
20636 #include <stdlib.h>
20637 #include <stdarg.h>
20638 #include <string.h>
20649 rm -f conftest.
$ac_objext
20650 if { (ac_try
="$ac_compile"
20651 case "(($ac_try" in
20652 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20653 *) ac_try_echo=$ac_try;;
20655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20656 (eval "$ac_compile") 2>conftest.er1
20658 grep -v '^ *+' conftest.er1 >conftest.err
20660 cat conftest.err >&5
20661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20662 (exit $ac_status); } && {
20663 test -z "$ac_c_werror_flag" ||
20664 test ! -s conftest.err
20665 } && test -s conftest.$ac_objext; then
20666 ac_cv_header_stdc=yes
20668 echo "$as_me: failed program was:" >&5
20669 sed 's/^/| /' conftest.$ac_ext >&5
20671 ac_cv_header_stdc=no
20674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20676 if test $ac_cv_header_stdc = yes; then
20677 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20678 cat >conftest.$ac_ext <<_ACEOF
20681 cat confdefs.h >>conftest.$ac_ext
20682 cat >>conftest.$ac_ext <<_ACEOF
20683 /* end confdefs.h. */
20684 #include <string.h>
20687 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20688 $EGREP "memchr" >/dev/null 2>&1; then
20691 ac_cv_header_stdc=no
20697 if test $ac_cv_header_stdc = yes; then
20698 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20699 cat >conftest.$ac_ext <<_ACEOF
20702 cat confdefs.h >>conftest.$ac_ext
20703 cat >>conftest.$ac_ext <<_ACEOF
20704 /* end confdefs.h. */
20705 #include <stdlib.h>
20708 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20709 $EGREP "free" >/dev/null 2>&1; then
20712 ac_cv_header_stdc=no
20718 if test $ac_cv_header_stdc = yes; then
20719 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20720 if test "$cross_compiling" = yes; then
20723 cat >conftest.$ac_ext <<_ACEOF
20726 cat confdefs.h >>conftest.$ac_ext
20727 cat >>conftest.$ac_ext <<_ACEOF
20728 /* end confdefs.h. */
20730 #include <stdlib.h>
20731 #if ((' ' & 0x0FF) == 0x020)
20732 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20733 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20735 # define ISLOWER(c) \
20736 (('a' <= (c) && (c) <= 'i') \
20737 || ('j' <= (c) && (c) <= 'r') \
20738 || ('s' <= (c) && (c) <= 'z'))
20739 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20742 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20747 for (i = 0; i < 256; i++)
20748 if (XOR (islower (i), ISLOWER (i))
20749 || toupper (i) != TOUPPER (i))
20754 rm -f conftest$ac_exeext
20755 if { (ac_try="$ac_link"
20756 case "(($ac_try" in
20757 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20758 *) ac_try_echo
=$ac_try;;
20760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20761 (eval "$ac_link") 2>&5
20763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20764 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20765 { (case "(($ac_try" in
20766 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20767 *) ac_try_echo=$ac_try;;
20769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20770 (eval "$ac_try") 2>&5
20772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20773 (exit $ac_status); }; }; then
20776 echo "$as_me: program exited with status $ac_status" >&5
20777 echo "$as_me: failed program was:" >&5
20778 sed 's/^/| /' conftest.$ac_ext >&5
20780 ( exit $ac_status )
20781 ac_cv_header_stdc=no
20783 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20789 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20790 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
20791 if test $ac_cv_header_stdc = yes; then
20793 cat >>confdefs.h <<\_ACEOF
20794 #define STDC_HEADERS 1
20814 for ac_header in sys/types.h stdio.h stdlib.h stddef.h stdarg.h malloc.h memory.h string.h strings.h inttypes.h stdint.h ctype.h math.h iconv.h signal.h
20816 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
20817 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20818 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20819 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20820 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20821 echo $ECHO_N "(cached) $ECHO_C" >&6
20823 ac_res=`eval echo '${'$as_ac_Header'}'`
20824 { echo "$as_me:$LINENO: result: $ac_res" >&5
20825 echo "${ECHO_T}$ac_res" >&6; }
20827 # Is the header compilable?
20828 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20829 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20830 cat >conftest.$ac_ext <<_ACEOF
20833 cat confdefs.h >>conftest.$ac_ext
20834 cat >>conftest.$ac_ext <<_ACEOF
20835 /* end confdefs.h. */
20836 $ac_includes_default
20837 #include <$ac_header>
20839 rm -f conftest.$ac_objext
20840 if { (ac_try="$ac_compile"
20841 case "(($ac_try" in
20842 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20843 *) ac_try_echo
=$ac_try;;
20845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20846 (eval "$ac_compile") 2>conftest.er1
20848 grep -v '^ *+' conftest.er1
>conftest.err
20850 cat conftest.err
>&5
20851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20852 (exit $ac_status); } && {
20853 test -z "$ac_c_werror_flag" ||
20854 test ! -s conftest.err
20855 } && test -s conftest.
$ac_objext; then
20856 ac_header_compiler
=yes
20858 echo "$as_me: failed program was:" >&5
20859 sed 's/^/| /' conftest.
$ac_ext >&5
20861 ac_header_compiler
=no
20864 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20865 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20866 echo "${ECHO_T}$ac_header_compiler" >&6; }
20868 # Is the header present?
20869 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20870 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20871 cat >conftest.
$ac_ext <<_ACEOF
20874 cat confdefs.h
>>conftest.
$ac_ext
20875 cat >>conftest.
$ac_ext <<_ACEOF
20876 /* end confdefs.h. */
20877 #include <$ac_header>
20879 if { (ac_try
="$ac_cpp conftest.$ac_ext"
20880 case "(($ac_try" in
20881 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20882 *) ac_try_echo=$ac_try;;
20884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20885 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20887 grep -v '^ *+' conftest.er1 >conftest.err
20889 cat conftest.err >&5
20890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20891 (exit $ac_status); } >/dev/null && {
20892 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20893 test ! -s conftest.err
20895 ac_header_preproc=yes
20897 echo "$as_me: failed program was:" >&5
20898 sed 's/^/| /' conftest.$ac_ext >&5
20900 ac_header_preproc=no
20903 rm -f conftest.err conftest.$ac_ext
20904 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20905 echo "${ECHO_T}$ac_header_preproc" >&6; }
20907 # So? What about this header?
20908 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20910 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20911 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20912 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20913 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20914 ac_header_preproc=yes
20917 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20918 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20919 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20920 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20921 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20922 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20923 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20924 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20925 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20926 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20927 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20928 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20932 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20933 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20934 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20935 echo $ECHO_N "(cached) $ECHO_C" >&6
20937 eval "$as_ac_Header=\$ac_header_preproc"
20939 ac_res=`eval echo '${'$as_ac_Header'}'`
20940 { echo "$as_me:$LINENO: result: $ac_res" >&5
20941 echo "${ECHO_T}$ac_res" >&6; }
20944 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20945 cat >>confdefs.h <<_ACEOF
20946 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
20954 { echo "$as_me:$LINENO: checking for size_t" >&5
20955 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
20956 if test "${ac_cv_type_size_t+set}" = set; then
20957 echo $ECHO_N "(cached) $ECHO_C" >&6
20959 cat >conftest.$ac_ext <<_ACEOF
20962 cat confdefs.h >>conftest.$ac_ext
20963 cat >>conftest.$ac_ext <<_ACEOF
20964 /* end confdefs.h. */
20965 $ac_includes_default
20966 typedef size_t ac__type_new_;
20970 if ((ac__type_new_ *) 0)
20972 if (sizeof (ac__type_new_))
20978 rm -f conftest.$ac_objext
20979 if { (ac_try="$ac_compile"
20980 case "(($ac_try" in
20981 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20982 *) ac_try_echo
=$ac_try;;
20984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20985 (eval "$ac_compile") 2>conftest.er1
20987 grep -v '^ *+' conftest.er1
>conftest.err
20989 cat conftest.err
>&5
20990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20991 (exit $ac_status); } && {
20992 test -z "$ac_c_werror_flag" ||
20993 test ! -s conftest.err
20994 } && test -s conftest.
$ac_objext; then
20995 ac_cv_type_size_t
=yes
20997 echo "$as_me: failed program was:" >&5
20998 sed 's/^/| /' conftest.
$ac_ext >&5
21000 ac_cv_type_size_t
=no
21003 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21005 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21006 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
21007 if test $ac_cv_type_size_t = yes; then
21011 cat >>confdefs.h
<<_ACEOF
21012 #define size_t unsigned int
21017 if test x
$ac_cv_header_inttypes_h = xyes
-o x
$ac_cv_header_stdint_h = xyes
; then
21018 { echo "$as_me:$LINENO: checking for int64_t" >&5
21019 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
21020 if test "${ac_cv_type_int64_t+set}" = set; then
21021 echo $ECHO_N "(cached) $ECHO_C" >&6
21023 cat >conftest.
$ac_ext <<_ACEOF
21026 cat confdefs.h
>>conftest.
$ac_ext
21027 cat >>conftest.
$ac_ext <<_ACEOF
21028 /* end confdefs.h. */
21029 $ac_includes_default
21030 typedef int64_t ac__type_new_;
21034 if ((ac__type_new_ *) 0)
21036 if (sizeof (ac__type_new_))
21042 rm -f conftest.
$ac_objext
21043 if { (ac_try
="$ac_compile"
21044 case "(($ac_try" in
21045 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21046 *) ac_try_echo=$ac_try;;
21048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21049 (eval "$ac_compile") 2>conftest.er1
21051 grep -v '^ *+' conftest.er1 >conftest.err
21053 cat conftest.err >&5
21054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21055 (exit $ac_status); } && {
21056 test -z "$ac_c_werror_flag" ||
21057 test ! -s conftest.err
21058 } && test -s conftest.$ac_objext; then
21059 ac_cv_type_int64_t=yes
21061 echo "$as_me: failed program was:" >&5
21062 sed 's/^/| /' conftest.$ac_ext >&5
21064 ac_cv_type_int64_t=no
21067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21069 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
21070 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
21072 if test x$ac_cv_type_int64_t = xyes; then
21073 cat >>confdefs.h <<\_ACEOF
21074 #define SDL_HAS_64BIT_TYPE 1
21082 *-*-cygwin* | *-*-mingw32*)
21085 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
21086 # for constant arguments. Useless!
21087 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
21088 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
21089 if test "${ac_cv_working_alloca_h+set}" = set; then
21090 echo $ECHO_N "(cached) $ECHO_C" >&6
21092 cat >conftest.$ac_ext <<_ACEOF
21095 cat confdefs.h >>conftest.$ac_ext
21096 cat >>conftest.$ac_ext <<_ACEOF
21097 /* end confdefs.h. */
21098 #include <alloca.h>
21102 char *p = (char *) alloca (2 * sizeof (int));
21108 rm -f conftest.$ac_objext conftest$ac_exeext
21109 if { (ac_try="$ac_link"
21110 case "(($ac_try" in
21111 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21112 *) ac_try_echo
=$ac_try;;
21114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21115 (eval "$ac_link") 2>conftest.er1
21117 grep -v '^ *+' conftest.er1
>conftest.err
21119 cat conftest.err
>&5
21120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21121 (exit $ac_status); } && {
21122 test -z "$ac_c_werror_flag" ||
21123 test ! -s conftest.err
21124 } && test -s conftest
$ac_exeext &&
21125 $as_test_x conftest
$ac_exeext; then
21126 ac_cv_working_alloca_h
=yes
21128 echo "$as_me: failed program was:" >&5
21129 sed 's/^/| /' conftest.
$ac_ext >&5
21131 ac_cv_working_alloca_h
=no
21134 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
21135 conftest
$ac_exeext conftest.
$ac_ext
21137 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
21138 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
21139 if test $ac_cv_working_alloca_h = yes; then
21141 cat >>confdefs.h
<<\_ACEOF
21142 #define HAVE_ALLOCA_H 1
21147 { echo "$as_me:$LINENO: checking for alloca" >&5
21148 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
21149 if test "${ac_cv_func_alloca_works+set}" = set; then
21150 echo $ECHO_N "(cached) $ECHO_C" >&6
21152 cat >conftest.
$ac_ext <<_ACEOF
21155 cat confdefs.h
>>conftest.
$ac_ext
21156 cat >>conftest.
$ac_ext <<_ACEOF
21157 /* end confdefs.h. */
21159 # define alloca __builtin_alloca
21162 # include <malloc.h>
21163 # define alloca _alloca
21165 # ifdef HAVE_ALLOCA_H
21166 # include <alloca.h>
21171 # ifndef alloca /* predefined by HP cc +Olibcalls */
21182 char *p = (char *) alloca (1);
21188 rm -f conftest.
$ac_objext conftest
$ac_exeext
21189 if { (ac_try
="$ac_link"
21190 case "(($ac_try" in
21191 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21192 *) ac_try_echo=$ac_try;;
21194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21195 (eval "$ac_link") 2>conftest.er1
21197 grep -v '^ *+' conftest.er1 >conftest.err
21199 cat conftest.err >&5
21200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21201 (exit $ac_status); } && {
21202 test -z "$ac_c_werror_flag" ||
21203 test ! -s conftest.err
21204 } && test -s conftest$ac_exeext &&
21205 $as_test_x conftest$ac_exeext; then
21206 ac_cv_func_alloca_works=yes
21208 echo "$as_me: failed program was:" >&5
21209 sed 's/^/| /' conftest.$ac_ext >&5
21211 ac_cv_func_alloca_works=no
21214 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21215 conftest$ac_exeext conftest.$ac_ext
21217 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
21218 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
21220 if test $ac_cv_func_alloca_works = yes; then
21222 cat >>confdefs.h <<\_ACEOF
21223 #define HAVE_ALLOCA 1
21227 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
21228 # that cause trouble. Some versions do not even contain alloca or
21229 # contain a buggy version. If you still want to use their alloca,
21230 # use ar to extract alloca.o from them instead of compiling alloca.c.
21232 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
21234 cat >>confdefs.h <<\_ACEOF
21239 { echo "$as_me:$LINENO: checking whether \`alloca.c
' needs Cray hooks" >&5
21240 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks...
$ECHO_C" >&6; }
21241 if test "${ac_cv_os_cray+set}" = set; then
21242 echo $ECHO_N "(cached
) $ECHO_C" >&6
21244 cat >conftest.$ac_ext <<_ACEOF
21247 cat confdefs.h >>conftest.$ac_ext
21248 cat >>conftest.$ac_ext <<_ACEOF
21249 /* end confdefs.h. */
21250 #if defined CRAY && ! defined CRAY2
21257 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
21258 $EGREP "webecray
" >/dev/null 2>&1; then
21266 { echo "$as_me:$LINENO: result
: $ac_cv_os_cray" >&5
21267 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
21268 if test $ac_cv_os_cray = yes; then
21269 for ac_func in _getb67 GETB67 getb67; do
21270 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
21271 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
21272 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
21273 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
21274 echo $ECHO_N "(cached
) $ECHO_C" >&6
21276 cat >conftest.$ac_ext <<_ACEOF
21279 cat confdefs.h >>conftest.$ac_ext
21280 cat >>conftest.$ac_ext <<_ACEOF
21281 /* end confdefs.h. */
21282 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21283 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21284 #define $ac_func innocuous_$ac_func
21286 /* System header to define __stub macros and hopefully few prototypes,
21287 which can conflict with char $ac_func (); below.
21288 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21289 <limits.h> exists even on freestanding compilers. */
21292 # include <limits.h>
21294 # include <assert.h>
21299 /* Override any GCC internal prototype to avoid an error.
21300 Use char because int might match the return type of a GCC
21301 builtin and then its argument prototype would still apply. */
21306 /* The GNU C library defines this for functions which it implements
21307 to always fail with ENOSYS. Some functions are actually named
21308 something starting with __ and the normal name is an alias. */
21309 #if defined __stub_$ac_func || defined __stub___$ac_func
21316 return $ac_func ();
21321 rm -f conftest.$ac_objext conftest$ac_exeext
21322 if { (ac_try="$ac_link"
21323 case "(($ac_try" in
21324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21325 *) ac_try_echo=$ac_try;;
21327 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21328 (eval "$ac_link") 2>conftest.er1
21330 grep -v '^ *+' conftest.er1 >conftest.err
21332 cat conftest.err >&5
21333 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21334 (exit $ac_status); } && {
21335 test -z "$ac_c_werror_flag" ||
21336 test ! -s conftest.err
21337 } && test -s conftest$ac_exeext &&
21338 $as_test_x conftest$ac_exeext; then
21339 eval "$as_ac_var=yes"
21341 echo "$as_me: failed program was
:" >&5
21342 sed 's/^/| /' conftest.$ac_ext >&5
21344 eval "$as_ac_var=no
"
21347 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21348 conftest$ac_exeext conftest.$ac_ext
21350 ac_res=`eval echo '${'$as_ac_var'}'`
21351 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21352 echo "${ECHO_T}$ac_res" >&6; }
21353 if test `eval echo '${'$as_ac_var'}'` = yes; then
21355 cat >>confdefs.h <<_ACEOF
21356 #define CRAY_STACKSEG_END $ac_func
21365 { echo "$as_me:$LINENO: checking stack direction
for C alloca
" >&5
21366 echo $ECHO_N "checking stack direction
for C alloca...
$ECHO_C" >&6; }
21367 if test "${ac_cv_c_stack_direction+set}" = set; then
21368 echo $ECHO_N "(cached
) $ECHO_C" >&6
21370 if test "$cross_compiling" = yes; then
21371 ac_cv_c_stack_direction=0
21373 cat >conftest.$ac_ext <<_ACEOF
21376 cat confdefs.h >>conftest.$ac_ext
21377 cat >>conftest.$ac_ext <<_ACEOF
21378 /* end confdefs.h. */
21379 $ac_includes_default
21381 find_stack_direction ()
21383 static char *addr = 0;
21388 return find_stack_direction ();
21391 return (&dummy > addr) ? 1 : -1;
21397 return find_stack_direction () < 0;
21400 rm -f conftest$ac_exeext
21401 if { (ac_try="$ac_link"
21402 case "(($ac_try" in
21403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21404 *) ac_try_echo=$ac_try;;
21406 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21407 (eval "$ac_link") 2>&5
21409 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21410 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21411 { (case "(($ac_try" in
21412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21413 *) ac_try_echo=$ac_try;;
21415 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21416 (eval "$ac_try") 2>&5
21418 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21419 (exit $ac_status); }; }; then
21420 ac_cv_c_stack_direction=1
21422 echo "$as_me: program exited with status
$ac_status" >&5
21423 echo "$as_me: failed program was
:" >&5
21424 sed 's/^/| /' conftest.$ac_ext >&5
21426 ( exit $ac_status )
21427 ac_cv_c_stack_direction=-1
21429 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21434 { echo "$as_me:$LINENO: result
: $ac_cv_c_stack_direction" >&5
21435 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
21437 cat >>confdefs.h <<_ACEOF
21438 #define STACK_DIRECTION $ac_cv_c_stack_direction
21447 { echo "$as_me:$LINENO: checking
for working memcmp
" >&5
21448 echo $ECHO_N "checking
for working memcmp...
$ECHO_C" >&6; }
21449 if test "${ac_cv_func_memcmp_working+set}" = set; then
21450 echo $ECHO_N "(cached
) $ECHO_C" >&6
21452 if test "$cross_compiling" = yes; then
21453 ac_cv_func_memcmp_working=no
21455 cat >conftest.$ac_ext <<_ACEOF
21458 cat confdefs.h >>conftest.$ac_ext
21459 cat >>conftest.$ac_ext <<_ACEOF
21460 /* end confdefs.h. */
21461 $ac_includes_default
21466 /* Some versions of memcmp are not 8-bit clean. */
21467 char c0 = '\100', c1 = '\200', c2 = '\201';
21468 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
21471 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
21472 or more and with at least one buffer not starting on a 4-byte boundary.
21473 William Lewis provided this test program. */
21478 for (i = 0; i < 4; i++)
21482 strcpy (a, "--------01111111");
21483 strcpy (b, "--------10000000");
21484 if (memcmp (a, b, 16) >= 0)
21494 rm -f conftest$ac_exeext
21495 if { (ac_try="$ac_link"
21496 case "(($ac_try" in
21497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21498 *) ac_try_echo=$ac_try;;
21500 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21501 (eval "$ac_link") 2>&5
21503 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21504 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21505 { (case "(($ac_try" in
21506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21507 *) ac_try_echo=$ac_try;;
21509 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21510 (eval "$ac_try") 2>&5
21512 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21513 (exit $ac_status); }; }; then
21514 ac_cv_func_memcmp_working=yes
21516 echo "$as_me: program exited with status
$ac_status" >&5
21517 echo "$as_me: failed program was
:" >&5
21518 sed 's/^/| /' conftest.$ac_ext >&5
21520 ( exit $ac_status )
21521 ac_cv_func_memcmp_working=no
21523 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21528 { echo "$as_me:$LINENO: result
: $ac_cv_func_memcmp_working" >&5
21529 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
21530 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
21531 *" memcmp.
$ac_objext "* ) ;;
21532 *) LIBOBJS="$LIBOBJS memcmp.
$ac_objext"
21537 if test x$ac_cv_func_memcmp_working = xyes; then
21538 cat >>confdefs.h <<\_ACEOF
21539 #define HAVE_MEMCMP 1
21543 { echo "$as_me:$LINENO: checking
for working strtod
" >&5
21544 echo $ECHO_N "checking
for working strtod...
$ECHO_C" >&6; }
21545 if test "${ac_cv_func_strtod+set}" = set; then
21546 echo $ECHO_N "(cached
) $ECHO_C" >&6
21548 if test "$cross_compiling" = yes; then
21549 ac_cv_func_strtod=no
21551 cat >conftest.$ac_ext <<_ACEOF
21554 cat confdefs.h >>conftest.$ac_ext
21555 cat >>conftest.$ac_ext <<_ACEOF
21556 /* end confdefs.h. */
21558 $ac_includes_default
21566 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
21567 char *string = " +69";
21570 value = strtod (string, &term);
21571 if (value != 69 || term != (string + 4))
21576 /* Under Solaris 2.4, strtod returns the wrong value for the
21577 terminating character under some conditions. */
21578 char *string = "NaN
";
21580 strtod (string, &term);
21581 if (term != string && *(term - 1) == 0)
21588 rm -f conftest$ac_exeext
21589 if { (ac_try="$ac_link"
21590 case "(($ac_try" in
21591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21592 *) ac_try_echo=$ac_try;;
21594 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21595 (eval "$ac_link") 2>&5
21597 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21598 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21599 { (case "(($ac_try" in
21600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21601 *) ac_try_echo=$ac_try;;
21603 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21604 (eval "$ac_try") 2>&5
21606 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21607 (exit $ac_status); }; }; then
21608 ac_cv_func_strtod=yes
21610 echo "$as_me: program exited with status
$ac_status" >&5
21611 echo "$as_me: failed program was
:" >&5
21612 sed 's/^/| /' conftest.$ac_ext >&5
21614 ( exit $ac_status )
21615 ac_cv_func_strtod=no
21617 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21622 { echo "$as_me:$LINENO: result
: $ac_cv_func_strtod" >&5
21623 echo "${ECHO_T}$ac_cv_func_strtod" >&6; }
21624 if test $ac_cv_func_strtod = no; then
21625 case " $LIBOBJS " in
21626 *" strtod.
$ac_objext "* ) ;;
21627 *) LIBOBJS="$LIBOBJS strtod.
$ac_objext"
21631 { echo "$as_me:$LINENO: checking
for pow
" >&5
21632 echo $ECHO_N "checking
for pow...
$ECHO_C" >&6; }
21633 if test "${ac_cv_func_pow+set}" = set; then
21634 echo $ECHO_N "(cached
) $ECHO_C" >&6
21636 cat >conftest.$ac_ext <<_ACEOF
21639 cat confdefs.h >>conftest.$ac_ext
21640 cat >>conftest.$ac_ext <<_ACEOF
21641 /* end confdefs.h. */
21642 /* Define pow to an innocuous variant, in case <limits.h> declares pow.
21643 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21644 #define pow innocuous_pow
21646 /* System header to define __stub macros and hopefully few prototypes,
21647 which can conflict with char pow (); below.
21648 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21649 <limits.h> exists even on freestanding compilers. */
21652 # include <limits.h>
21654 # include <assert.h>
21659 /* Override any GCC internal prototype to avoid an error.
21660 Use char because int might match the return type of a GCC
21661 builtin and then its argument prototype would still apply. */
21666 /* The GNU C library defines this for functions which it implements
21667 to always fail with ENOSYS. Some functions are actually named
21668 something starting with __ and the normal name is an alias. */
21669 #if defined __stub_pow || defined __stub___pow
21681 rm -f conftest.$ac_objext conftest$ac_exeext
21682 if { (ac_try="$ac_link"
21683 case "(($ac_try" in
21684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21685 *) ac_try_echo=$ac_try;;
21687 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21688 (eval "$ac_link") 2>conftest.er1
21690 grep -v '^ *+' conftest.er1 >conftest.err
21692 cat conftest.err >&5
21693 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21694 (exit $ac_status); } && {
21695 test -z "$ac_c_werror_flag" ||
21696 test ! -s conftest.err
21697 } && test -s conftest$ac_exeext &&
21698 $as_test_x conftest$ac_exeext; then
21701 echo "$as_me: failed program was
:" >&5
21702 sed 's/^/| /' conftest.$ac_ext >&5
21707 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21708 conftest$ac_exeext conftest.$ac_ext
21710 { echo "$as_me:$LINENO: result
: $ac_cv_func_pow" >&5
21711 echo "${ECHO_T}$ac_cv_func_pow" >&6; }
21713 if test $ac_cv_func_pow = no; then
21714 { echo "$as_me:$LINENO: checking
for pow
in -lm" >&5
21715 echo $ECHO_N "checking
for pow
in -lm...
$ECHO_C" >&6; }
21716 if test "${ac_cv_lib_m_pow+set}" = set; then
21717 echo $ECHO_N "(cached
) $ECHO_C" >&6
21719 ac_check_lib_save_LIBS=$LIBS
21721 cat >conftest.$ac_ext <<_ACEOF
21724 cat confdefs.h >>conftest.$ac_ext
21725 cat >>conftest.$ac_ext <<_ACEOF
21726 /* end confdefs.h. */
21728 /* Override any GCC internal prototype to avoid an error.
21729 Use char because int might match the return type of a GCC
21730 builtin and then its argument prototype would still apply. */
21743 rm -f conftest.$ac_objext conftest$ac_exeext
21744 if { (ac_try="$ac_link"
21745 case "(($ac_try" in
21746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21747 *) ac_try_echo=$ac_try;;
21749 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21750 (eval "$ac_link") 2>conftest.er1
21752 grep -v '^ *+' conftest.er1 >conftest.err
21754 cat conftest.err >&5
21755 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21756 (exit $ac_status); } && {
21757 test -z "$ac_c_werror_flag" ||
21758 test ! -s conftest.err
21759 } && test -s conftest$ac_exeext &&
21760 $as_test_x conftest$ac_exeext; then
21761 ac_cv_lib_m_pow=yes
21763 echo "$as_me: failed program was
:" >&5
21764 sed 's/^/| /' conftest.$ac_ext >&5
21769 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21770 conftest$ac_exeext conftest.$ac_ext
21771 LIBS=$ac_check_lib_save_LIBS
21773 { echo "$as_me:$LINENO: result
: $ac_cv_lib_m_pow" >&5
21774 echo "${ECHO_T}$ac_cv_lib_m_pow" >&6; }
21775 if test $ac_cv_lib_m_pow = yes; then
21778 { echo "$as_me:$LINENO: WARNING
: cannot
find library containing definition of pow
" >&5
21779 echo "$as_me: WARNING
: cannot
find library containing definition of pow
" >&2;}
21786 if test x$ac_cv_func_strtod = xyes; then
21787 cat >>confdefs.h <<\_ACEOF
21788 #define HAVE_STRTOD 1
21792 { echo "$as_me:$LINENO: checking
for mprotect
" >&5
21793 echo $ECHO_N "checking
for mprotect...
$ECHO_C" >&6; }
21794 if test "${ac_cv_func_mprotect+set}" = set; then
21795 echo $ECHO_N "(cached
) $ECHO_C" >&6
21797 cat >conftest.$ac_ext <<_ACEOF
21800 cat confdefs.h >>conftest.$ac_ext
21801 cat >>conftest.$ac_ext <<_ACEOF
21802 /* end confdefs.h. */
21803 /* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
21804 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21805 #define mprotect innocuous_mprotect
21807 /* System header to define __stub macros and hopefully few prototypes,
21808 which can conflict with char mprotect (); below.
21809 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21810 <limits.h> exists even on freestanding compilers. */
21813 # include <limits.h>
21815 # include <assert.h>
21820 /* Override any GCC internal prototype to avoid an error.
21821 Use char because int might match the return type of a GCC
21822 builtin and then its argument prototype would still apply. */
21827 /* The GNU C library defines this for functions which it implements
21828 to always fail with ENOSYS. Some functions are actually named
21829 something starting with __ and the normal name is an alias. */
21830 #if defined __stub_mprotect || defined __stub___mprotect
21837 return mprotect ();
21842 rm -f conftest.$ac_objext conftest$ac_exeext
21843 if { (ac_try="$ac_link"
21844 case "(($ac_try" in
21845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21846 *) ac_try_echo=$ac_try;;
21848 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21849 (eval "$ac_link") 2>conftest.er1
21851 grep -v '^ *+' conftest.er1 >conftest.err
21853 cat conftest.err >&5
21854 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21855 (exit $ac_status); } && {
21856 test -z "$ac_c_werror_flag" ||
21857 test ! -s conftest.err
21858 } && test -s conftest$ac_exeext &&
21859 $as_test_x conftest$ac_exeext; then
21860 ac_cv_func_mprotect=yes
21862 echo "$as_me: failed program was
:" >&5
21863 sed 's/^/| /' conftest.$ac_ext >&5
21865 ac_cv_func_mprotect=no
21868 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21869 conftest$ac_exeext conftest.$ac_ext
21871 { echo "$as_me:$LINENO: result
: $ac_cv_func_mprotect" >&5
21872 echo "${ECHO_T}$ac_cv_func_mprotect" >&6; }
21873 if test $ac_cv_func_mprotect = yes; then
21874 cat >conftest.$ac_ext <<_ACEOF
21877 cat confdefs.h >>conftest.$ac_ext
21878 cat >>conftest.$ac_ext <<_ACEOF
21879 /* end confdefs.h. */
21881 #include <sys/types.h>
21882 #include <sys/mman.h>
21893 rm -f conftest.$ac_objext
21894 if { (ac_try="$ac_compile"
21895 case "(($ac_try" in
21896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21897 *) ac_try_echo=$ac_try;;
21899 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21900 (eval "$ac_compile") 2>conftest.er1
21902 grep -v '^ *+' conftest.er1 >conftest.err
21904 cat conftest.err >&5
21905 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21906 (exit $ac_status); } && {
21907 test -z "$ac_c_werror_flag" ||
21908 test ! -s conftest.err
21909 } && test -s conftest.$ac_objext; then
21911 cat >>confdefs.h <<\_ACEOF
21912 #define HAVE_MPROTECT 1
21917 echo "$as_me: failed program was
:" >&5
21918 sed 's/^/| /' conftest.$ac_ext >&5
21923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21974 for ac_func in malloc calloc realloc free getenv putenv unsetenv qsort abs bcopy memset memcpy memmove strlen strlcpy strlcat strdup _strrev _strupr _strlwr strchr strrchr strstr itoa _ltoa _uitoa _ultoa strtol strtoul _i64toa _ui64toa strtoll strtoull atoi atof strcmp strncmp _stricmp strcasecmp _strnicmp strncasecmp sscanf snprintf vsnprintf iconv sigaction setjmp nanosleep
21976 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
21977 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
21978 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
21979 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
21980 echo $ECHO_N "(cached
) $ECHO_C" >&6
21982 cat >conftest.$ac_ext <<_ACEOF
21985 cat confdefs.h >>conftest.$ac_ext
21986 cat >>conftest.$ac_ext <<_ACEOF
21987 /* end confdefs.h. */
21988 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21989 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21990 #define $ac_func innocuous_$ac_func
21992 /* System header to define __stub macros and hopefully few prototypes,
21993 which can conflict with char $ac_func (); below.
21994 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21995 <limits.h> exists even on freestanding compilers. */
21998 # include <limits.h>
22000 # include <assert.h>
22005 /* Override any GCC internal prototype to avoid an error.
22006 Use char because int might match the return type of a GCC
22007 builtin and then its argument prototype would still apply. */
22012 /* The GNU C library defines this for functions which it implements
22013 to always fail with ENOSYS. Some functions are actually named
22014 something starting with __ and the normal name is an alias. */
22015 #if defined __stub_$ac_func || defined __stub___$ac_func
22022 return $ac_func ();
22027 rm -f conftest.$ac_objext conftest$ac_exeext
22028 if { (ac_try="$ac_link"
22029 case "(($ac_try" in
22030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22031 *) ac_try_echo=$ac_try;;
22033 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22034 (eval "$ac_link") 2>conftest.er1
22036 grep -v '^ *+' conftest.er1 >conftest.err
22038 cat conftest.err >&5
22039 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22040 (exit $ac_status); } && {
22041 test -z "$ac_c_werror_flag" ||
22042 test ! -s conftest.err
22043 } && test -s conftest$ac_exeext &&
22044 $as_test_x conftest$ac_exeext; then
22045 eval "$as_ac_var=yes"
22047 echo "$as_me: failed program was
:" >&5
22048 sed 's/^/| /' conftest.$ac_ext >&5
22050 eval "$as_ac_var=no
"
22053 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22054 conftest$ac_exeext conftest.$ac_ext
22056 ac_res=`eval echo '${'$as_ac_var'}'`
22057 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22058 echo "${ECHO_T}$ac_res" >&6; }
22059 if test `eval echo '${'$as_ac_var'}'` = yes; then
22060 cat >>confdefs.h <<_ACEOF
22061 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
22068 { echo "$as_me:$LINENO: checking
for libiconv_open
in -liconv" >&5
22069 echo $ECHO_N "checking
for libiconv_open
in -liconv...
$ECHO_C" >&6; }
22070 if test "${ac_cv_lib_iconv_libiconv_open+set}" = set; then
22071 echo $ECHO_N "(cached
) $ECHO_C" >&6
22073 ac_check_lib_save_LIBS=$LIBS
22074 LIBS="-liconv $LIBS"
22075 cat >conftest.$ac_ext <<_ACEOF
22078 cat confdefs.h >>conftest.$ac_ext
22079 cat >>conftest.$ac_ext <<_ACEOF
22080 /* end confdefs.h. */
22082 /* Override any GCC internal prototype to avoid an error.
22083 Use char because int might match the return type of a GCC
22084 builtin and then its argument prototype would still apply. */
22088 char libiconv_open ();
22092 return libiconv_open ();
22097 rm -f conftest.$ac_objext conftest$ac_exeext
22098 if { (ac_try="$ac_link"
22099 case "(($ac_try" in
22100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22101 *) ac_try_echo=$ac_try;;
22103 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22104 (eval "$ac_link") 2>conftest.er1
22106 grep -v '^ *+' conftest.er1 >conftest.err
22108 cat conftest.err >&5
22109 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22110 (exit $ac_status); } && {
22111 test -z "$ac_c_werror_flag" ||
22112 test ! -s conftest.err
22113 } && test -s conftest$ac_exeext &&
22114 $as_test_x conftest$ac_exeext; then
22115 ac_cv_lib_iconv_libiconv_open=yes
22117 echo "$as_me: failed program was
:" >&5
22118 sed 's/^/| /' conftest.$ac_ext >&5
22120 ac_cv_lib_iconv_libiconv_open=no
22123 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22124 conftest$ac_exeext conftest.$ac_ext
22125 LIBS=$ac_check_lib_save_LIBS
22127 { echo "$as_me:$LINENO: result
: $ac_cv_lib_iconv_libiconv_open" >&5
22128 echo "${ECHO_T}$ac_cv_lib_iconv_libiconv_open" >&6; }
22129 if test $ac_cv_lib_iconv_libiconv_open = yes; then
22130 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"
22133 { echo "$as_me:$LINENO: checking
for pow
in -lm" >&5
22134 echo $ECHO_N "checking
for pow
in -lm...
$ECHO_C" >&6; }
22135 if test "${ac_cv_lib_m_pow+set}" = set; then
22136 echo $ECHO_N "(cached
) $ECHO_C" >&6
22138 ac_check_lib_save_LIBS=$LIBS
22140 cat >conftest.$ac_ext <<_ACEOF
22143 cat confdefs.h >>conftest.$ac_ext
22144 cat >>conftest.$ac_ext <<_ACEOF
22145 /* end confdefs.h. */
22147 /* Override any GCC internal prototype to avoid an error.
22148 Use char because int might match the return type of a GCC
22149 builtin and then its argument prototype would still apply. */
22162 rm -f conftest.$ac_objext conftest$ac_exeext
22163 if { (ac_try="$ac_link"
22164 case "(($ac_try" in
22165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22166 *) ac_try_echo=$ac_try;;
22168 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22169 (eval "$ac_link") 2>conftest.er1
22171 grep -v '^ *+' conftest.er1 >conftest.err
22173 cat conftest.err >&5
22174 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22175 (exit $ac_status); } && {
22176 test -z "$ac_c_werror_flag" ||
22177 test ! -s conftest.err
22178 } && test -s conftest$ac_exeext &&
22179 $as_test_x conftest$ac_exeext; then
22180 ac_cv_lib_m_pow=yes
22182 echo "$as_me: failed program was
:" >&5
22183 sed 's/^/| /' conftest.$ac_ext >&5
22188 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22189 conftest$ac_exeext conftest.$ac_ext
22190 LIBS=$ac_check_lib_save_LIBS
22192 { echo "$as_me:$LINENO: result
: $ac_cv_lib_m_pow" >&5
22193 echo "${ECHO_T}$ac_cv_lib_m_pow" >&6; }
22194 if test $ac_cv_lib_m_pow = yes; then
22195 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"
22200 if test x$have_inttypes != xyes; then
22201 { echo "$as_me:$LINENO: checking
for char
" >&5
22202 echo $ECHO_N "checking
for char...
$ECHO_C" >&6; }
22203 if test "${ac_cv_type_char+set}" = set; then
22204 echo $ECHO_N "(cached
) $ECHO_C" >&6
22206 cat >conftest.$ac_ext <<_ACEOF
22209 cat confdefs.h >>conftest.$ac_ext
22210 cat >>conftest.$ac_ext <<_ACEOF
22211 /* end confdefs.h. */
22212 $ac_includes_default
22213 typedef char ac__type_new_;
22217 if ((ac__type_new_ *) 0)
22219 if (sizeof (ac__type_new_))
22225 rm -f conftest.$ac_objext
22226 if { (ac_try="$ac_compile"
22227 case "(($ac_try" in
22228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22229 *) ac_try_echo=$ac_try;;
22231 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22232 (eval "$ac_compile") 2>conftest.er1
22234 grep -v '^ *+' conftest.er1 >conftest.err
22236 cat conftest.err >&5
22237 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22238 (exit $ac_status); } && {
22239 test -z "$ac_c_werror_flag" ||
22240 test ! -s conftest.err
22241 } && test -s conftest.$ac_objext; then
22242 ac_cv_type_char=yes
22244 echo "$as_me: failed program was
:" >&5
22245 sed 's/^/| /' conftest.$ac_ext >&5
22250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22252 { echo "$as_me:$LINENO: result
: $ac_cv_type_char" >&5
22253 echo "${ECHO_T}$ac_cv_type_char" >&6; }
22255 # The cast to long int works around a bug in the HP C Compiler
22256 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22257 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22258 # This bug is HP SR number 8606223364.
22259 { echo "$as_me:$LINENO: checking size of char
" >&5
22260 echo $ECHO_N "checking size of char...
$ECHO_C" >&6; }
22261 if test "${ac_cv_sizeof_char+set}" = set; then
22262 echo $ECHO_N "(cached
) $ECHO_C" >&6
22264 if test "$cross_compiling" = yes; then
22265 # Depending upon the size, compute the lo and hi bounds.
22266 cat >conftest.$ac_ext <<_ACEOF
22269 cat confdefs.h >>conftest.$ac_ext
22270 cat >>conftest.$ac_ext <<_ACEOF
22271 /* end confdefs.h. */
22272 $ac_includes_default
22273 typedef char ac__type_sizeof_;
22277 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22284 rm -f conftest.$ac_objext
22285 if { (ac_try="$ac_compile"
22286 case "(($ac_try" in
22287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22288 *) ac_try_echo=$ac_try;;
22290 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22291 (eval "$ac_compile") 2>conftest.er1
22293 grep -v '^ *+' conftest.er1 >conftest.err
22295 cat conftest.err >&5
22296 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22297 (exit $ac_status); } && {
22298 test -z "$ac_c_werror_flag" ||
22299 test ! -s conftest.err
22300 } && test -s conftest.$ac_objext; then
22303 cat >conftest.$ac_ext <<_ACEOF
22306 cat confdefs.h >>conftest.$ac_ext
22307 cat >>conftest.$ac_ext <<_ACEOF
22308 /* end confdefs.h. */
22309 $ac_includes_default
22310 typedef char ac__type_sizeof_;
22314 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22321 rm -f conftest.$ac_objext
22322 if { (ac_try="$ac_compile"
22323 case "(($ac_try" in
22324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22325 *) ac_try_echo=$ac_try;;
22327 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22328 (eval "$ac_compile") 2>conftest.er1
22330 grep -v '^ *+' conftest.er1 >conftest.err
22332 cat conftest.err >&5
22333 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22334 (exit $ac_status); } && {
22335 test -z "$ac_c_werror_flag" ||
22336 test ! -s conftest.err
22337 } && test -s conftest.$ac_objext; then
22338 ac_hi=$ac_mid; break
22340 echo "$as_me: failed program was
:" >&5
22341 sed 's/^/| /' conftest.$ac_ext >&5
22343 ac_lo=`expr $ac_mid + 1`
22344 if test $ac_lo -le $ac_mid; then
22348 ac_mid=`expr 2 '*' $ac_mid + 1`
22351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22354 echo "$as_me: failed program was
:" >&5
22355 sed 's/^/| /' conftest.$ac_ext >&5
22357 cat >conftest.$ac_ext <<_ACEOF
22360 cat confdefs.h >>conftest.$ac_ext
22361 cat >>conftest.$ac_ext <<_ACEOF
22362 /* end confdefs.h. */
22363 $ac_includes_default
22364 typedef char ac__type_sizeof_;
22368 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22375 rm -f conftest.$ac_objext
22376 if { (ac_try="$ac_compile"
22377 case "(($ac_try" in
22378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22379 *) ac_try_echo=$ac_try;;
22381 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22382 (eval "$ac_compile") 2>conftest.er1
22384 grep -v '^ *+' conftest.er1 >conftest.err
22386 cat conftest.err >&5
22387 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22388 (exit $ac_status); } && {
22389 test -z "$ac_c_werror_flag" ||
22390 test ! -s conftest.err
22391 } && test -s conftest.$ac_objext; then
22394 cat >conftest.$ac_ext <<_ACEOF
22397 cat confdefs.h >>conftest.$ac_ext
22398 cat >>conftest.$ac_ext <<_ACEOF
22399 /* end confdefs.h. */
22400 $ac_includes_default
22401 typedef char ac__type_sizeof_;
22405 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22412 rm -f conftest.$ac_objext
22413 if { (ac_try="$ac_compile"
22414 case "(($ac_try" in
22415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22416 *) ac_try_echo=$ac_try;;
22418 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22419 (eval "$ac_compile") 2>conftest.er1
22421 grep -v '^ *+' conftest.er1 >conftest.err
22423 cat conftest.err >&5
22424 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22425 (exit $ac_status); } && {
22426 test -z "$ac_c_werror_flag" ||
22427 test ! -s conftest.err
22428 } && test -s conftest.$ac_objext; then
22429 ac_lo=$ac_mid; break
22431 echo "$as_me: failed program was
:" >&5
22432 sed 's/^/| /' conftest.$ac_ext >&5
22434 ac_hi=`expr '(' $ac_mid ')' - 1`
22435 if test $ac_mid -le $ac_hi; then
22439 ac_mid=`expr 2 '*' $ac_mid`
22442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22445 echo "$as_me: failed program was
:" >&5
22446 sed 's/^/| /' conftest.$ac_ext >&5
22451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22455 # Binary search between lo and hi bounds.
22456 while test "x
$ac_lo" != "x
$ac_hi"; do
22457 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22458 cat >conftest.$ac_ext <<_ACEOF
22461 cat confdefs.h >>conftest.$ac_ext
22462 cat >>conftest.$ac_ext <<_ACEOF
22463 /* end confdefs.h. */
22464 $ac_includes_default
22465 typedef char ac__type_sizeof_;
22469 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22476 rm -f conftest.$ac_objext
22477 if { (ac_try="$ac_compile"
22478 case "(($ac_try" in
22479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22480 *) ac_try_echo=$ac_try;;
22482 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22483 (eval "$ac_compile") 2>conftest.er1
22485 grep -v '^ *+' conftest.er1 >conftest.err
22487 cat conftest.err >&5
22488 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22489 (exit $ac_status); } && {
22490 test -z "$ac_c_werror_flag" ||
22491 test ! -s conftest.err
22492 } && test -s conftest.$ac_objext; then
22495 echo "$as_me: failed program was
:" >&5
22496 sed 's/^/| /' conftest.$ac_ext >&5
22498 ac_lo=`expr '(' $ac_mid ')' + 1`
22501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22504 ?*) ac_cv_sizeof_char=$ac_lo;;
22505 '') if test "$ac_cv_type_char" = yes; then
22506 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(char
)
22507 See \
`config.log' for more details." >&5
22508 echo "$as_me: error: cannot compute sizeof (char)
22509 See \`config.log
' for more details." >&2;}
22510 { (exit 77); exit 77; }; }
22512 ac_cv_sizeof_char=0
22516 cat >conftest.$ac_ext <<_ACEOF
22519 cat confdefs.h >>conftest.$ac_ext
22520 cat >>conftest.$ac_ext <<_ACEOF
22521 /* end confdefs.h. */
22522 $ac_includes_default
22523 typedef char ac__type_sizeof_;
22524 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22525 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22527 #include <stdlib.h>
22532 FILE *f = fopen ("conftest.val", "w");
22535 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22537 long int i = longval ();
22538 if (i != ((long int) (sizeof (ac__type_sizeof_))))
22540 fprintf (f, "%ld\n", i);
22544 unsigned long int i = ulongval ();
22545 if (i != ((long int) (sizeof (ac__type_sizeof_))))
22547 fprintf (f, "%lu\n", i);
22549 return ferror (f) || fclose (f) != 0;
22555 rm -f conftest$ac_exeext
22556 if { (ac_try="$ac_link"
22557 case "(($ac_try" in
22558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22559 *) ac_try_echo=$ac_try;;
22561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22562 (eval "$ac_link") 2>&5
22564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22565 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
22566 { (case "(($ac_try" in
22567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22568 *) ac_try_echo=$ac_try;;
22570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22571 (eval "$ac_try") 2>&5
22573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22574 (exit $ac_status); }; }; then
22575 ac_cv_sizeof_char=`cat conftest.val`
22577 echo "$as_me: program exited with status $ac_status" >&5
22578 echo "$as_me: failed program was:" >&5
22579 sed 's
/^
/|
/' conftest.$ac_ext >&5
22581 ( exit $ac_status )
22582 if test "$ac_cv_type_char" = yes; then
22583 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
22584 See \`config.log' for more details.
" >&5
22585 echo "$as_me: error
: cannot compute sizeof
(char
)
22586 See \
`config.log' for more details." >&2;}
22587 { (exit 77); exit 77; }; }
22589 ac_cv_sizeof_char=0
22592 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22596 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
22597 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
22601 cat >>confdefs.h <<_ACEOF
22602 #define SIZEOF_CHAR $ac_cv_sizeof_char
22606 { echo "$as_me:$LINENO: checking for short" >&5
22607 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
22608 if test "${ac_cv_type_short+set}" = set; then
22609 echo $ECHO_N "(cached) $ECHO_C" >&6
22611 cat >conftest.$ac_ext <<_ACEOF
22614 cat confdefs.h >>conftest.$ac_ext
22615 cat >>conftest.$ac_ext <<_ACEOF
22616 /* end confdefs.h. */
22617 $ac_includes_default
22618 typedef short ac__type_new_;
22622 if ((ac__type_new_ *) 0)
22624 if (sizeof (ac__type_new_))
22630 rm -f conftest.$ac_objext
22631 if { (ac_try="$ac_compile"
22632 case "(($ac_try" in
22633 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22634 *) ac_try_echo
=$ac_try;;
22636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22637 (eval "$ac_compile") 2>conftest.er1
22639 grep -v '^ *+' conftest.er1
>conftest.err
22641 cat conftest.err
>&5
22642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22643 (exit $ac_status); } && {
22644 test -z "$ac_c_werror_flag" ||
22645 test ! -s conftest.err
22646 } && test -s conftest.
$ac_objext; then
22647 ac_cv_type_short
=yes
22649 echo "$as_me: failed program was:" >&5
22650 sed 's/^/| /' conftest.
$ac_ext >&5
22652 ac_cv_type_short
=no
22655 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22657 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
22658 echo "${ECHO_T}$ac_cv_type_short" >&6; }
22660 # The cast to long int works around a bug in the HP C Compiler
22661 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22662 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22663 # This bug is HP SR number 8606223364.
22664 { echo "$as_me:$LINENO: checking size of short" >&5
22665 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
22666 if test "${ac_cv_sizeof_short+set}" = set; then
22667 echo $ECHO_N "(cached) $ECHO_C" >&6
22669 if test "$cross_compiling" = yes; then
22670 # Depending upon the size, compute the lo and hi bounds.
22671 cat >conftest.
$ac_ext <<_ACEOF
22674 cat confdefs.h
>>conftest.
$ac_ext
22675 cat >>conftest.
$ac_ext <<_ACEOF
22676 /* end confdefs.h. */
22677 $ac_includes_default
22678 typedef short ac__type_sizeof_;
22682 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22689 rm -f conftest.
$ac_objext
22690 if { (ac_try
="$ac_compile"
22691 case "(($ac_try" in
22692 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22693 *) ac_try_echo=$ac_try;;
22695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22696 (eval "$ac_compile") 2>conftest.er1
22698 grep -v '^ *+' conftest.er1 >conftest.err
22700 cat conftest.err >&5
22701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22702 (exit $ac_status); } && {
22703 test -z "$ac_c_werror_flag" ||
22704 test ! -s conftest.err
22705 } && test -s conftest.$ac_objext; then
22708 cat >conftest.$ac_ext <<_ACEOF
22711 cat confdefs.h >>conftest.$ac_ext
22712 cat >>conftest.$ac_ext <<_ACEOF
22713 /* end confdefs.h. */
22714 $ac_includes_default
22715 typedef short ac__type_sizeof_;
22719 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22726 rm -f conftest.$ac_objext
22727 if { (ac_try="$ac_compile"
22728 case "(($ac_try" in
22729 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22730 *) ac_try_echo
=$ac_try;;
22732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22733 (eval "$ac_compile") 2>conftest.er1
22735 grep -v '^ *+' conftest.er1
>conftest.err
22737 cat conftest.err
>&5
22738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22739 (exit $ac_status); } && {
22740 test -z "$ac_c_werror_flag" ||
22741 test ! -s conftest.err
22742 } && test -s conftest.
$ac_objext; then
22743 ac_hi
=$ac_mid; break
22745 echo "$as_me: failed program was:" >&5
22746 sed 's/^/| /' conftest.
$ac_ext >&5
22748 ac_lo
=`expr $ac_mid + 1`
22749 if test $ac_lo -le $ac_mid; then
22753 ac_mid
=`expr 2 '*' $ac_mid + 1`
22756 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22759 echo "$as_me: failed program was:" >&5
22760 sed 's/^/| /' conftest.
$ac_ext >&5
22762 cat >conftest.
$ac_ext <<_ACEOF
22765 cat confdefs.h
>>conftest.
$ac_ext
22766 cat >>conftest.
$ac_ext <<_ACEOF
22767 /* end confdefs.h. */
22768 $ac_includes_default
22769 typedef short ac__type_sizeof_;
22773 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22780 rm -f conftest.
$ac_objext
22781 if { (ac_try
="$ac_compile"
22782 case "(($ac_try" in
22783 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22784 *) ac_try_echo=$ac_try;;
22786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22787 (eval "$ac_compile") 2>conftest.er1
22789 grep -v '^ *+' conftest.er1 >conftest.err
22791 cat conftest.err >&5
22792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22793 (exit $ac_status); } && {
22794 test -z "$ac_c_werror_flag" ||
22795 test ! -s conftest.err
22796 } && test -s conftest.$ac_objext; then
22799 cat >conftest.$ac_ext <<_ACEOF
22802 cat confdefs.h >>conftest.$ac_ext
22803 cat >>conftest.$ac_ext <<_ACEOF
22804 /* end confdefs.h. */
22805 $ac_includes_default
22806 typedef short ac__type_sizeof_;
22810 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22817 rm -f conftest.$ac_objext
22818 if { (ac_try="$ac_compile"
22819 case "(($ac_try" in
22820 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22821 *) ac_try_echo
=$ac_try;;
22823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22824 (eval "$ac_compile") 2>conftest.er1
22826 grep -v '^ *+' conftest.er1
>conftest.err
22828 cat conftest.err
>&5
22829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22830 (exit $ac_status); } && {
22831 test -z "$ac_c_werror_flag" ||
22832 test ! -s conftest.err
22833 } && test -s conftest.
$ac_objext; then
22834 ac_lo
=$ac_mid; break
22836 echo "$as_me: failed program was:" >&5
22837 sed 's/^/| /' conftest.
$ac_ext >&5
22839 ac_hi
=`expr '(' $ac_mid ')' - 1`
22840 if test $ac_mid -le $ac_hi; then
22844 ac_mid
=`expr 2 '*' $ac_mid`
22847 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22850 echo "$as_me: failed program was:" >&5
22851 sed 's/^/| /' conftest.
$ac_ext >&5
22856 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22859 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22860 # Binary search between lo and hi bounds.
22861 while test "x$ac_lo" != "x$ac_hi"; do
22862 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22863 cat >conftest.
$ac_ext <<_ACEOF
22866 cat confdefs.h
>>conftest.
$ac_ext
22867 cat >>conftest.
$ac_ext <<_ACEOF
22868 /* end confdefs.h. */
22869 $ac_includes_default
22870 typedef short ac__type_sizeof_;
22874 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22881 rm -f conftest.
$ac_objext
22882 if { (ac_try
="$ac_compile"
22883 case "(($ac_try" in
22884 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22885 *) ac_try_echo=$ac_try;;
22887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22888 (eval "$ac_compile") 2>conftest.er1
22890 grep -v '^ *+' conftest.er1 >conftest.err
22892 cat conftest.err >&5
22893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22894 (exit $ac_status); } && {
22895 test -z "$ac_c_werror_flag" ||
22896 test ! -s conftest.err
22897 } && test -s conftest.$ac_objext; then
22900 echo "$as_me: failed program was:" >&5
22901 sed 's/^/| /' conftest.$ac_ext >&5
22903 ac_lo=`expr '(' $ac_mid ')' + 1`
22906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22909 ?*) ac_cv_sizeof_short=$ac_lo;;
22910 '') if test "$ac_cv_type_short" = yes; then
22911 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
22912 See \`config.log
' for more details." >&5
22913 echo "$as_me: error: cannot compute sizeof (short)
22914 See \`config.log' for more details.
" >&2;}
22915 { (exit 77); exit 77; }; }
22917 ac_cv_sizeof_short=0
22921 cat >conftest.$ac_ext <<_ACEOF
22924 cat confdefs.h >>conftest.$ac_ext
22925 cat >>conftest.$ac_ext <<_ACEOF
22926 /* end confdefs.h. */
22927 $ac_includes_default
22928 typedef short ac__type_sizeof_;
22929 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22930 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22932 #include <stdlib.h>
22937 FILE *f = fopen ("conftest.val
", "w
");
22940 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22942 long int i = longval ();
22943 if (i != ((long int) (sizeof (ac__type_sizeof_))))
22945 fprintf (f, "%ld
\n", i);
22949 unsigned long int i = ulongval ();
22950 if (i != ((long int) (sizeof (ac__type_sizeof_))))
22952 fprintf (f, "%lu
\n", i);
22954 return ferror (f) || fclose (f) != 0;
22960 rm -f conftest$ac_exeext
22961 if { (ac_try="$ac_link"
22962 case "(($ac_try" in
22963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22964 *) ac_try_echo=$ac_try;;
22966 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22967 (eval "$ac_link") 2>&5
22969 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22970 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22971 { (case "(($ac_try" in
22972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22973 *) ac_try_echo=$ac_try;;
22975 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22976 (eval "$ac_try") 2>&5
22978 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22979 (exit $ac_status); }; }; then
22980 ac_cv_sizeof_short=`cat conftest.val`
22982 echo "$as_me: program exited with status
$ac_status" >&5
22983 echo "$as_me: failed program was
:" >&5
22984 sed 's/^/| /' conftest.$ac_ext >&5
22986 ( exit $ac_status )
22987 if test "$ac_cv_type_short" = yes; then
22988 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(short
)
22989 See \
`config.log' for more details." >&5
22990 echo "$as_me: error: cannot compute sizeof (short)
22991 See \`config.log
' for more details." >&2;}
22992 { (exit 77); exit 77; }; }
22994 ac_cv_sizeof_short=0
22997 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23001 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
23002 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
23006 cat >>confdefs.h <<_ACEOF
23007 #define SIZEOF_SHORT $ac_cv_sizeof_short
23011 { echo "$as_me:$LINENO: checking for int" >&5
23012 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
23013 if test "${ac_cv_type_int+set}" = set; then
23014 echo $ECHO_N "(cached) $ECHO_C" >&6
23016 cat >conftest.$ac_ext <<_ACEOF
23019 cat confdefs.h >>conftest.$ac_ext
23020 cat >>conftest.$ac_ext <<_ACEOF
23021 /* end confdefs.h. */
23022 $ac_includes_default
23023 typedef int ac__type_new_;
23027 if ((ac__type_new_ *) 0)
23029 if (sizeof (ac__type_new_))
23035 rm -f conftest.$ac_objext
23036 if { (ac_try="$ac_compile"
23037 case "(($ac_try" in
23038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23039 *) ac_try_echo=$ac_try;;
23041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23042 (eval "$ac_compile") 2>conftest.er1
23044 grep -v '^
*+' conftest.er1 >conftest.err
23046 cat conftest.err >&5
23047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23048 (exit $ac_status); } && {
23049 test -z "$ac_c_werror_flag" ||
23050 test ! -s conftest.err
23051 } && test -s conftest.$ac_objext; then
23054 echo "$as_me: failed program was:" >&5
23055 sed 's
/^
/|
/' conftest.$ac_ext >&5
23060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23062 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
23063 echo "${ECHO_T}$ac_cv_type_int" >&6; }
23065 # The cast to long int works around a bug in the HP C Compiler
23066 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23067 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23068 # This bug is HP SR number 8606223364.
23069 { echo "$as_me:$LINENO: checking size of int" >&5
23070 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
23071 if test "${ac_cv_sizeof_int+set}" = set; then
23072 echo $ECHO_N "(cached) $ECHO_C" >&6
23074 if test "$cross_compiling" = yes; then
23075 # Depending upon the size, compute the lo and hi bounds.
23076 cat >conftest.
$ac_ext <<_ACEOF
23079 cat confdefs.h
>>conftest.
$ac_ext
23080 cat >>conftest.
$ac_ext <<_ACEOF
23081 /* end confdefs.h. */
23082 $ac_includes_default
23083 typedef int ac__type_sizeof_;
23087 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
23094 rm -f conftest.
$ac_objext
23095 if { (ac_try
="$ac_compile"
23096 case "(($ac_try" in
23097 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23098 *) ac_try_echo=$ac_try;;
23100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23101 (eval "$ac_compile") 2>conftest.er1
23103 grep -v '^ *+' conftest.er1 >conftest.err
23105 cat conftest.err >&5
23106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23107 (exit $ac_status); } && {
23108 test -z "$ac_c_werror_flag" ||
23109 test ! -s conftest.err
23110 } && test -s conftest.$ac_objext; then
23113 cat >conftest.$ac_ext <<_ACEOF
23116 cat confdefs.h >>conftest.$ac_ext
23117 cat >>conftest.$ac_ext <<_ACEOF
23118 /* end confdefs.h. */
23119 $ac_includes_default
23120 typedef int ac__type_sizeof_;
23124 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23131 rm -f conftest.$ac_objext
23132 if { (ac_try="$ac_compile"
23133 case "(($ac_try" in
23134 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23135 *) ac_try_echo
=$ac_try;;
23137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23138 (eval "$ac_compile") 2>conftest.er1
23140 grep -v '^ *+' conftest.er1
>conftest.err
23142 cat conftest.err
>&5
23143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23144 (exit $ac_status); } && {
23145 test -z "$ac_c_werror_flag" ||
23146 test ! -s conftest.err
23147 } && test -s conftest.
$ac_objext; then
23148 ac_hi
=$ac_mid; break
23150 echo "$as_me: failed program was:" >&5
23151 sed 's/^/| /' conftest.
$ac_ext >&5
23153 ac_lo
=`expr $ac_mid + 1`
23154 if test $ac_lo -le $ac_mid; then
23158 ac_mid
=`expr 2 '*' $ac_mid + 1`
23161 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23164 echo "$as_me: failed program was:" >&5
23165 sed 's/^/| /' conftest.
$ac_ext >&5
23167 cat >conftest.
$ac_ext <<_ACEOF
23170 cat confdefs.h
>>conftest.
$ac_ext
23171 cat >>conftest.
$ac_ext <<_ACEOF
23172 /* end confdefs.h. */
23173 $ac_includes_default
23174 typedef int ac__type_sizeof_;
23178 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
23185 rm -f conftest.
$ac_objext
23186 if { (ac_try
="$ac_compile"
23187 case "(($ac_try" in
23188 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23189 *) ac_try_echo=$ac_try;;
23191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23192 (eval "$ac_compile") 2>conftest.er1
23194 grep -v '^ *+' conftest.er1 >conftest.err
23196 cat conftest.err >&5
23197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23198 (exit $ac_status); } && {
23199 test -z "$ac_c_werror_flag" ||
23200 test ! -s conftest.err
23201 } && test -s conftest.$ac_objext; then
23204 cat >conftest.$ac_ext <<_ACEOF
23207 cat confdefs.h >>conftest.$ac_ext
23208 cat >>conftest.$ac_ext <<_ACEOF
23209 /* end confdefs.h. */
23210 $ac_includes_default
23211 typedef int ac__type_sizeof_;
23215 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
23222 rm -f conftest.$ac_objext
23223 if { (ac_try="$ac_compile"
23224 case "(($ac_try" in
23225 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23226 *) ac_try_echo
=$ac_try;;
23228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23229 (eval "$ac_compile") 2>conftest.er1
23231 grep -v '^ *+' conftest.er1
>conftest.err
23233 cat conftest.err
>&5
23234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23235 (exit $ac_status); } && {
23236 test -z "$ac_c_werror_flag" ||
23237 test ! -s conftest.err
23238 } && test -s conftest.
$ac_objext; then
23239 ac_lo
=$ac_mid; break
23241 echo "$as_me: failed program was:" >&5
23242 sed 's/^/| /' conftest.
$ac_ext >&5
23244 ac_hi
=`expr '(' $ac_mid ')' - 1`
23245 if test $ac_mid -le $ac_hi; then
23249 ac_mid
=`expr 2 '*' $ac_mid`
23252 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23255 echo "$as_me: failed program was:" >&5
23256 sed 's/^/| /' conftest.
$ac_ext >&5
23261 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23264 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23265 # Binary search between lo and hi bounds.
23266 while test "x$ac_lo" != "x$ac_hi"; do
23267 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23268 cat >conftest.
$ac_ext <<_ACEOF
23271 cat confdefs.h
>>conftest.
$ac_ext
23272 cat >>conftest.
$ac_ext <<_ACEOF
23273 /* end confdefs.h. */
23274 $ac_includes_default
23275 typedef int ac__type_sizeof_;
23279 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23286 rm -f conftest.
$ac_objext
23287 if { (ac_try
="$ac_compile"
23288 case "(($ac_try" in
23289 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23290 *) ac_try_echo=$ac_try;;
23292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23293 (eval "$ac_compile") 2>conftest.er1
23295 grep -v '^ *+' conftest.er1 >conftest.err
23297 cat conftest.err >&5
23298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23299 (exit $ac_status); } && {
23300 test -z "$ac_c_werror_flag" ||
23301 test ! -s conftest.err
23302 } && test -s conftest.$ac_objext; then
23305 echo "$as_me: failed program was:" >&5
23306 sed 's/^/| /' conftest.$ac_ext >&5
23308 ac_lo=`expr '(' $ac_mid ')' + 1`
23311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23314 ?*) ac_cv_sizeof_int=$ac_lo;;
23315 '') if test "$ac_cv_type_int" = yes; then
23316 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
23317 See \`config.log
' for more details." >&5
23318 echo "$as_me: error: cannot compute sizeof (int)
23319 See \`config.log' for more details.
" >&2;}
23320 { (exit 77); exit 77; }; }
23326 cat >conftest.$ac_ext <<_ACEOF
23329 cat confdefs.h >>conftest.$ac_ext
23330 cat >>conftest.$ac_ext <<_ACEOF
23331 /* end confdefs.h. */
23332 $ac_includes_default
23333 typedef int ac__type_sizeof_;
23334 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23335 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23337 #include <stdlib.h>
23342 FILE *f = fopen ("conftest.val
", "w
");
23345 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23347 long int i = longval ();
23348 if (i != ((long int) (sizeof (ac__type_sizeof_))))
23350 fprintf (f, "%ld
\n", i);
23354 unsigned long int i = ulongval ();
23355 if (i != ((long int) (sizeof (ac__type_sizeof_))))
23357 fprintf (f, "%lu
\n", i);
23359 return ferror (f) || fclose (f) != 0;
23365 rm -f conftest$ac_exeext
23366 if { (ac_try="$ac_link"
23367 case "(($ac_try" in
23368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23369 *) ac_try_echo=$ac_try;;
23371 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23372 (eval "$ac_link") 2>&5
23374 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23375 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23376 { (case "(($ac_try" in
23377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23378 *) ac_try_echo=$ac_try;;
23380 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23381 (eval "$ac_try") 2>&5
23383 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23384 (exit $ac_status); }; }; then
23385 ac_cv_sizeof_int=`cat conftest.val`
23387 echo "$as_me: program exited with status
$ac_status" >&5
23388 echo "$as_me: failed program was
:" >&5
23389 sed 's/^/| /' conftest.$ac_ext >&5
23391 ( exit $ac_status )
23392 if test "$ac_cv_type_int" = yes; then
23393 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(int
)
23394 See \
`config.log' for more details." >&5
23395 echo "$as_me: error: cannot compute sizeof (int)
23396 See \`config.log
' for more details." >&2;}
23397 { (exit 77); exit 77; }; }
23402 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23406 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
23407 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
23411 cat >>confdefs.h <<_ACEOF
23412 #define SIZEOF_INT $ac_cv_sizeof_int
23416 { echo "$as_me:$LINENO: checking for long" >&5
23417 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
23418 if test "${ac_cv_type_long+set}" = set; then
23419 echo $ECHO_N "(cached) $ECHO_C" >&6
23421 cat >conftest.$ac_ext <<_ACEOF
23424 cat confdefs.h >>conftest.$ac_ext
23425 cat >>conftest.$ac_ext <<_ACEOF
23426 /* end confdefs.h. */
23427 $ac_includes_default
23428 typedef long ac__type_new_;
23432 if ((ac__type_new_ *) 0)
23434 if (sizeof (ac__type_new_))
23440 rm -f conftest.$ac_objext
23441 if { (ac_try="$ac_compile"
23442 case "(($ac_try" in
23443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23444 *) ac_try_echo=$ac_try;;
23446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23447 (eval "$ac_compile") 2>conftest.er1
23449 grep -v '^
*+' conftest.er1 >conftest.err
23451 cat conftest.err >&5
23452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23453 (exit $ac_status); } && {
23454 test -z "$ac_c_werror_flag" ||
23455 test ! -s conftest.err
23456 } && test -s conftest.$ac_objext; then
23457 ac_cv_type_long=yes
23459 echo "$as_me: failed program was:" >&5
23460 sed 's
/^
/|
/' conftest.$ac_ext >&5
23465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23467 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
23468 echo "${ECHO_T}$ac_cv_type_long" >&6; }
23470 # The cast to long int works around a bug in the HP C Compiler
23471 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23472 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23473 # This bug is HP SR number 8606223364.
23474 { echo "$as_me:$LINENO: checking size of long" >&5
23475 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
23476 if test "${ac_cv_sizeof_long+set}" = set; then
23477 echo $ECHO_N "(cached) $ECHO_C" >&6
23479 if test "$cross_compiling" = yes; then
23480 # Depending upon the size, compute the lo and hi bounds.
23481 cat >conftest.
$ac_ext <<_ACEOF
23484 cat confdefs.h
>>conftest.
$ac_ext
23485 cat >>conftest.
$ac_ext <<_ACEOF
23486 /* end confdefs.h. */
23487 $ac_includes_default
23488 typedef long ac__type_sizeof_;
23492 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
23499 rm -f conftest.
$ac_objext
23500 if { (ac_try
="$ac_compile"
23501 case "(($ac_try" in
23502 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23503 *) ac_try_echo=$ac_try;;
23505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23506 (eval "$ac_compile") 2>conftest.er1
23508 grep -v '^ *+' conftest.er1 >conftest.err
23510 cat conftest.err >&5
23511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23512 (exit $ac_status); } && {
23513 test -z "$ac_c_werror_flag" ||
23514 test ! -s conftest.err
23515 } && test -s conftest.$ac_objext; then
23518 cat >conftest.$ac_ext <<_ACEOF
23521 cat confdefs.h >>conftest.$ac_ext
23522 cat >>conftest.$ac_ext <<_ACEOF
23523 /* end confdefs.h. */
23524 $ac_includes_default
23525 typedef long ac__type_sizeof_;
23529 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23536 rm -f conftest.$ac_objext
23537 if { (ac_try="$ac_compile"
23538 case "(($ac_try" in
23539 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23540 *) ac_try_echo
=$ac_try;;
23542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23543 (eval "$ac_compile") 2>conftest.er1
23545 grep -v '^ *+' conftest.er1
>conftest.err
23547 cat conftest.err
>&5
23548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23549 (exit $ac_status); } && {
23550 test -z "$ac_c_werror_flag" ||
23551 test ! -s conftest.err
23552 } && test -s conftest.
$ac_objext; then
23553 ac_hi
=$ac_mid; break
23555 echo "$as_me: failed program was:" >&5
23556 sed 's/^/| /' conftest.
$ac_ext >&5
23558 ac_lo
=`expr $ac_mid + 1`
23559 if test $ac_lo -le $ac_mid; then
23563 ac_mid
=`expr 2 '*' $ac_mid + 1`
23566 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23569 echo "$as_me: failed program was:" >&5
23570 sed 's/^/| /' conftest.
$ac_ext >&5
23572 cat >conftest.
$ac_ext <<_ACEOF
23575 cat confdefs.h
>>conftest.
$ac_ext
23576 cat >>conftest.
$ac_ext <<_ACEOF
23577 /* end confdefs.h. */
23578 $ac_includes_default
23579 typedef long ac__type_sizeof_;
23583 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
23590 rm -f conftest.
$ac_objext
23591 if { (ac_try
="$ac_compile"
23592 case "(($ac_try" in
23593 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23594 *) ac_try_echo=$ac_try;;
23596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23597 (eval "$ac_compile") 2>conftest.er1
23599 grep -v '^ *+' conftest.er1 >conftest.err
23601 cat conftest.err >&5
23602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23603 (exit $ac_status); } && {
23604 test -z "$ac_c_werror_flag" ||
23605 test ! -s conftest.err
23606 } && test -s conftest.$ac_objext; then
23609 cat >conftest.$ac_ext <<_ACEOF
23612 cat confdefs.h >>conftest.$ac_ext
23613 cat >>conftest.$ac_ext <<_ACEOF
23614 /* end confdefs.h. */
23615 $ac_includes_default
23616 typedef long ac__type_sizeof_;
23620 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
23627 rm -f conftest.$ac_objext
23628 if { (ac_try="$ac_compile"
23629 case "(($ac_try" in
23630 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23631 *) ac_try_echo
=$ac_try;;
23633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23634 (eval "$ac_compile") 2>conftest.er1
23636 grep -v '^ *+' conftest.er1
>conftest.err
23638 cat conftest.err
>&5
23639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23640 (exit $ac_status); } && {
23641 test -z "$ac_c_werror_flag" ||
23642 test ! -s conftest.err
23643 } && test -s conftest.
$ac_objext; then
23644 ac_lo
=$ac_mid; break
23646 echo "$as_me: failed program was:" >&5
23647 sed 's/^/| /' conftest.
$ac_ext >&5
23649 ac_hi
=`expr '(' $ac_mid ')' - 1`
23650 if test $ac_mid -le $ac_hi; then
23654 ac_mid
=`expr 2 '*' $ac_mid`
23657 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23660 echo "$as_me: failed program was:" >&5
23661 sed 's/^/| /' conftest.
$ac_ext >&5
23666 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23669 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23670 # Binary search between lo and hi bounds.
23671 while test "x$ac_lo" != "x$ac_hi"; do
23672 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23673 cat >conftest.
$ac_ext <<_ACEOF
23676 cat confdefs.h
>>conftest.
$ac_ext
23677 cat >>conftest.
$ac_ext <<_ACEOF
23678 /* end confdefs.h. */
23679 $ac_includes_default
23680 typedef long ac__type_sizeof_;
23684 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23691 rm -f conftest.
$ac_objext
23692 if { (ac_try
="$ac_compile"
23693 case "(($ac_try" in
23694 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23695 *) ac_try_echo=$ac_try;;
23697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23698 (eval "$ac_compile") 2>conftest.er1
23700 grep -v '^ *+' conftest.er1 >conftest.err
23702 cat conftest.err >&5
23703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23704 (exit $ac_status); } && {
23705 test -z "$ac_c_werror_flag" ||
23706 test ! -s conftest.err
23707 } && test -s conftest.$ac_objext; then
23710 echo "$as_me: failed program was:" >&5
23711 sed 's/^/| /' conftest.$ac_ext >&5
23713 ac_lo=`expr '(' $ac_mid ')' + 1`
23716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23719 ?*) ac_cv_sizeof_long=$ac_lo;;
23720 '') if test "$ac_cv_type_long" = yes; then
23721 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
23722 See \`config.log
' for more details." >&5
23723 echo "$as_me: error: cannot compute sizeof (long)
23724 See \`config.log' for more details.
" >&2;}
23725 { (exit 77); exit 77; }; }
23727 ac_cv_sizeof_long=0
23731 cat >conftest.$ac_ext <<_ACEOF
23734 cat confdefs.h >>conftest.$ac_ext
23735 cat >>conftest.$ac_ext <<_ACEOF
23736 /* end confdefs.h. */
23737 $ac_includes_default
23738 typedef long ac__type_sizeof_;
23739 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23740 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23742 #include <stdlib.h>
23747 FILE *f = fopen ("conftest.val
", "w
");
23750 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23752 long int i = longval ();
23753 if (i != ((long int) (sizeof (ac__type_sizeof_))))
23755 fprintf (f, "%ld
\n", i);
23759 unsigned long int i = ulongval ();
23760 if (i != ((long int) (sizeof (ac__type_sizeof_))))
23762 fprintf (f, "%lu
\n", i);
23764 return ferror (f) || fclose (f) != 0;
23770 rm -f conftest$ac_exeext
23771 if { (ac_try="$ac_link"
23772 case "(($ac_try" in
23773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23774 *) ac_try_echo=$ac_try;;
23776 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23777 (eval "$ac_link") 2>&5
23779 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23780 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23781 { (case "(($ac_try" in
23782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23783 *) ac_try_echo=$ac_try;;
23785 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23786 (eval "$ac_try") 2>&5
23788 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23789 (exit $ac_status); }; }; then
23790 ac_cv_sizeof_long=`cat conftest.val`
23792 echo "$as_me: program exited with status
$ac_status" >&5
23793 echo "$as_me: failed program was
:" >&5
23794 sed 's/^/| /' conftest.$ac_ext >&5
23796 ( exit $ac_status )
23797 if test "$ac_cv_type_long" = yes; then
23798 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(long
)
23799 See \
`config.log' for more details." >&5
23800 echo "$as_me: error: cannot compute sizeof (long)
23801 See \`config.log
' for more details." >&2;}
23802 { (exit 77); exit 77; }; }
23804 ac_cv_sizeof_long=0
23807 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23811 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
23812 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
23816 cat >>confdefs.h <<_ACEOF
23817 #define SIZEOF_LONG $ac_cv_sizeof_long
23821 { echo "$as_me:$LINENO: checking for long long" >&5
23822 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
23823 if test "${ac_cv_type_long_long+set}" = set; then
23824 echo $ECHO_N "(cached) $ECHO_C" >&6
23826 cat >conftest.$ac_ext <<_ACEOF
23829 cat confdefs.h >>conftest.$ac_ext
23830 cat >>conftest.$ac_ext <<_ACEOF
23831 /* end confdefs.h. */
23832 $ac_includes_default
23833 typedef long long ac__type_new_;
23837 if ((ac__type_new_ *) 0)
23839 if (sizeof (ac__type_new_))
23845 rm -f conftest.$ac_objext
23846 if { (ac_try="$ac_compile"
23847 case "(($ac_try" in
23848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23849 *) ac_try_echo=$ac_try;;
23851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23852 (eval "$ac_compile") 2>conftest.er1
23854 grep -v '^
*+' conftest.er1 >conftest.err
23856 cat conftest.err >&5
23857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23858 (exit $ac_status); } && {
23859 test -z "$ac_c_werror_flag" ||
23860 test ! -s conftest.err
23861 } && test -s conftest.$ac_objext; then
23862 ac_cv_type_long_long=yes
23864 echo "$as_me: failed program was:" >&5
23865 sed 's
/^
/|
/' conftest.$ac_ext >&5
23867 ac_cv_type_long_long=no
23870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23872 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
23873 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
23875 # The cast to long int works around a bug in the HP C Compiler
23876 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23877 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23878 # This bug is HP SR number 8606223364.
23879 { echo "$as_me:$LINENO: checking size of long long" >&5
23880 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
23881 if test "${ac_cv_sizeof_long_long+set}" = set; then
23882 echo $ECHO_N "(cached) $ECHO_C" >&6
23884 if test "$cross_compiling" = yes; then
23885 # Depending upon the size, compute the lo and hi bounds.
23886 cat >conftest.
$ac_ext <<_ACEOF
23889 cat confdefs.h
>>conftest.
$ac_ext
23890 cat >>conftest.
$ac_ext <<_ACEOF
23891 /* end confdefs.h. */
23892 $ac_includes_default
23893 typedef long long ac__type_sizeof_;
23897 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
23904 rm -f conftest.
$ac_objext
23905 if { (ac_try
="$ac_compile"
23906 case "(($ac_try" in
23907 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23908 *) ac_try_echo=$ac_try;;
23910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23911 (eval "$ac_compile") 2>conftest.er1
23913 grep -v '^ *+' conftest.er1 >conftest.err
23915 cat conftest.err >&5
23916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23917 (exit $ac_status); } && {
23918 test -z "$ac_c_werror_flag" ||
23919 test ! -s conftest.err
23920 } && test -s conftest.$ac_objext; then
23923 cat >conftest.$ac_ext <<_ACEOF
23926 cat confdefs.h >>conftest.$ac_ext
23927 cat >>conftest.$ac_ext <<_ACEOF
23928 /* end confdefs.h. */
23929 $ac_includes_default
23930 typedef long long ac__type_sizeof_;
23934 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23941 rm -f conftest.$ac_objext
23942 if { (ac_try="$ac_compile"
23943 case "(($ac_try" in
23944 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23945 *) ac_try_echo
=$ac_try;;
23947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23948 (eval "$ac_compile") 2>conftest.er1
23950 grep -v '^ *+' conftest.er1
>conftest.err
23952 cat conftest.err
>&5
23953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23954 (exit $ac_status); } && {
23955 test -z "$ac_c_werror_flag" ||
23956 test ! -s conftest.err
23957 } && test -s conftest.
$ac_objext; then
23958 ac_hi
=$ac_mid; break
23960 echo "$as_me: failed program was:" >&5
23961 sed 's/^/| /' conftest.
$ac_ext >&5
23963 ac_lo
=`expr $ac_mid + 1`
23964 if test $ac_lo -le $ac_mid; then
23968 ac_mid
=`expr 2 '*' $ac_mid + 1`
23971 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23974 echo "$as_me: failed program was:" >&5
23975 sed 's/^/| /' conftest.
$ac_ext >&5
23977 cat >conftest.
$ac_ext <<_ACEOF
23980 cat confdefs.h
>>conftest.
$ac_ext
23981 cat >>conftest.
$ac_ext <<_ACEOF
23982 /* end confdefs.h. */
23983 $ac_includes_default
23984 typedef long long ac__type_sizeof_;
23988 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
23995 rm -f conftest.
$ac_objext
23996 if { (ac_try
="$ac_compile"
23997 case "(($ac_try" in
23998 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23999 *) ac_try_echo=$ac_try;;
24001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24002 (eval "$ac_compile") 2>conftest.er1
24004 grep -v '^ *+' conftest.er1 >conftest.err
24006 cat conftest.err >&5
24007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24008 (exit $ac_status); } && {
24009 test -z "$ac_c_werror_flag" ||
24010 test ! -s conftest.err
24011 } && test -s conftest.$ac_objext; then
24014 cat >conftest.$ac_ext <<_ACEOF
24017 cat confdefs.h >>conftest.$ac_ext
24018 cat >>conftest.$ac_ext <<_ACEOF
24019 /* end confdefs.h. */
24020 $ac_includes_default
24021 typedef long long ac__type_sizeof_;
24025 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24032 rm -f conftest.$ac_objext
24033 if { (ac_try="$ac_compile"
24034 case "(($ac_try" in
24035 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24036 *) ac_try_echo
=$ac_try;;
24038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24039 (eval "$ac_compile") 2>conftest.er1
24041 grep -v '^ *+' conftest.er1
>conftest.err
24043 cat conftest.err
>&5
24044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24045 (exit $ac_status); } && {
24046 test -z "$ac_c_werror_flag" ||
24047 test ! -s conftest.err
24048 } && test -s conftest.
$ac_objext; then
24049 ac_lo
=$ac_mid; break
24051 echo "$as_me: failed program was:" >&5
24052 sed 's/^/| /' conftest.
$ac_ext >&5
24054 ac_hi
=`expr '(' $ac_mid ')' - 1`
24055 if test $ac_mid -le $ac_hi; then
24059 ac_mid
=`expr 2 '*' $ac_mid`
24062 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24065 echo "$as_me: failed program was:" >&5
24066 sed 's/^/| /' conftest.
$ac_ext >&5
24071 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24074 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24075 # Binary search between lo and hi bounds.
24076 while test "x$ac_lo" != "x$ac_hi"; do
24077 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24078 cat >conftest.
$ac_ext <<_ACEOF
24081 cat confdefs.h
>>conftest.
$ac_ext
24082 cat >>conftest.
$ac_ext <<_ACEOF
24083 /* end confdefs.h. */
24084 $ac_includes_default
24085 typedef long long ac__type_sizeof_;
24089 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24096 rm -f conftest.
$ac_objext
24097 if { (ac_try
="$ac_compile"
24098 case "(($ac_try" in
24099 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24100 *) ac_try_echo=$ac_try;;
24102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24103 (eval "$ac_compile") 2>conftest.er1
24105 grep -v '^ *+' conftest.er1 >conftest.err
24107 cat conftest.err >&5
24108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24109 (exit $ac_status); } && {
24110 test -z "$ac_c_werror_flag" ||
24111 test ! -s conftest.err
24112 } && test -s conftest.$ac_objext; then
24115 echo "$as_me: failed program was:" >&5
24116 sed 's/^/| /' conftest.$ac_ext >&5
24118 ac_lo=`expr '(' $ac_mid ')' + 1`
24121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24124 ?*) ac_cv_sizeof_long_long=$ac_lo;;
24125 '') if test "$ac_cv_type_long_long" = yes; then
24126 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
24127 See \`config.log
' for more details." >&5
24128 echo "$as_me: error: cannot compute sizeof (long long)
24129 See \`config.log' for more details.
" >&2;}
24130 { (exit 77); exit 77; }; }
24132 ac_cv_sizeof_long_long=0
24136 cat >conftest.$ac_ext <<_ACEOF
24139 cat confdefs.h >>conftest.$ac_ext
24140 cat >>conftest.$ac_ext <<_ACEOF
24141 /* end confdefs.h. */
24142 $ac_includes_default
24143 typedef long long ac__type_sizeof_;
24144 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24145 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24147 #include <stdlib.h>
24152 FILE *f = fopen ("conftest.val
", "w
");
24155 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24157 long int i = longval ();
24158 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24160 fprintf (f, "%ld
\n", i);
24164 unsigned long int i = ulongval ();
24165 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24167 fprintf (f, "%lu
\n", i);
24169 return ferror (f) || fclose (f) != 0;
24175 rm -f conftest$ac_exeext
24176 if { (ac_try="$ac_link"
24177 case "(($ac_try" in
24178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24179 *) ac_try_echo=$ac_try;;
24181 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24182 (eval "$ac_link") 2>&5
24184 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24185 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24186 { (case "(($ac_try" in
24187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24188 *) ac_try_echo=$ac_try;;
24190 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24191 (eval "$ac_try") 2>&5
24193 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24194 (exit $ac_status); }; }; then
24195 ac_cv_sizeof_long_long=`cat conftest.val`
24197 echo "$as_me: program exited with status
$ac_status" >&5
24198 echo "$as_me: failed program was
:" >&5
24199 sed 's/^/| /' conftest.$ac_ext >&5
24201 ( exit $ac_status )
24202 if test "$ac_cv_type_long_long" = yes; then
24203 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(long long
)
24204 See \
`config.log' for more details." >&5
24205 echo "$as_me: error: cannot compute sizeof (long long)
24206 See \`config.log
' for more details." >&2;}
24207 { (exit 77); exit 77; }; }
24209 ac_cv_sizeof_long_long=0
24212 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24216 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
24217 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
24221 cat >>confdefs.h <<_ACEOF
24222 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
24226 if test x$ac_cv_sizeof_char = x1; then
24227 cat >>confdefs.h <<\_ACEOF
24228 #define int8_t signed char
24231 cat >>confdefs.h <<\_ACEOF
24232 #define uint8_t unsigned char
24236 if test x$ac_cv_sizeof_short = x2; then
24237 cat >>confdefs.h <<\_ACEOF
24238 #define int16_t signed short
24241 cat >>confdefs.h <<\_ACEOF
24242 #define uint16_t unsigned short
24246 if test x$ac_cv_sizeof_int = x2; then
24247 cat >>confdefs.h <<\_ACEOF
24248 #define int16_t signed int
24251 cat >>confdefs.h <<\_ACEOF
24252 #define uint16_t unsigned int
24257 if test x$ac_cv_sizeof_int = x4; then
24258 cat >>confdefs.h <<\_ACEOF
24259 #define int32_t signed int
24262 cat >>confdefs.h <<\_ACEOF
24263 #define uint32_t unsigned int
24267 if test x$ac_cv_sizeof_long = x4; then
24268 cat >>confdefs.h <<\_ACEOF
24269 #define int32_t signed long
24272 cat >>confdefs.h <<\_ACEOF
24273 #define uint32_t unsigned long
24278 if test x$ac_cv_sizeof_long = x8; then
24279 cat >>confdefs.h <<\_ACEOF
24280 #define int64_t signed long
24283 cat >>confdefs.h <<\_ACEOF
24284 #define uint64_t unsigned long
24287 cat >>confdefs.h <<\_ACEOF
24288 #define SDL_HAS_64BIT_TYPE 1
24292 if test x$ac_cv_sizeof_long_long = x8; then
24293 cat >>confdefs.h <<\_ACEOF
24294 #define int64_t signed long long
24297 cat >>confdefs.h <<\_ACEOF
24298 #define uint64_t unsigned long long
24301 cat >>confdefs.h <<\_ACEOF
24302 #define SDL_HAS_64BIT_TYPE 1
24307 cat >>confdefs.h <<\_ACEOF
24308 #define size_t unsigned int
24311 cat >>confdefs.h <<\_ACEOF
24312 #define uintptr_t unsigned long
24317 # Standard C sources
24318 SOURCES="$SOURCES $srcdir/src/*.c"
24319 SOURCES="$SOURCES $srcdir/src/audio/*.c"
24320 SOURCES="$SOURCES $srcdir/src/cdrom/*.c"
24321 SOURCES="$SOURCES $srcdir/src/cpuinfo/*.c"
24322 SOURCES="$SOURCES $srcdir/src/events/*.c"
24323 SOURCES="$SOURCES $srcdir/src/file/*.c"
24324 SOURCES="$SOURCES $srcdir/src/stdlib/*.c"
24325 SOURCES="$SOURCES $srcdir/src/thread/*.c"
24326 SOURCES="$SOURCES $srcdir/src/timer/*.c"
24327 SOURCES="$SOURCES $srcdir/src/video/*.c"
24330 # Check whether --enable-audio was given.
24331 if test "${enable_audio+set}" = set; then
24332 enableval=$enable_audio;
24337 if test x$enable_audio != xyes; then
24338 cat >>confdefs.h <<\_ACEOF
24339 #define SDL_AUDIO_DISABLED 1
24343 # Check whether --enable-video was given.
24344 if test "${enable_video+set}" = set; then
24345 enableval=$enable_video;
24350 if test x$enable_video != xyes; then
24351 cat >>confdefs.h <<\_ACEOF
24352 #define SDL_VIDEO_DISABLED 1
24356 # Check whether --enable-events was given.
24357 if test "${enable_events+set}" = set; then
24358 enableval=$enable_events;
24363 if test x$enable_events != xyes; then
24364 cat >>confdefs.h <<\_ACEOF
24365 #define SDL_EVENTS_DISABLED 1
24369 # Check whether --enable-joystick was given.
24370 if test "${enable_joystick+set}" = set; then
24371 enableval=$enable_joystick;
24373 enable_joystick=yes
24376 if test x$enable_joystick != xyes; then
24377 cat >>confdefs.h <<\_ACEOF
24378 #define SDL_JOYSTICK_DISABLED 1
24382 SOURCES="$SOURCES $srcdir/src/joystick/*.c"
24384 # Check whether --enable-cdrom was given.
24385 if test "${enable_cdrom+set}" = set; then
24386 enableval=$enable_cdrom;
24391 if test x$enable_cdrom != xyes; then
24392 cat >>confdefs.h <<\_ACEOF
24393 #define SDL_CDROM_DISABLED 1
24397 # Check whether --enable-threads was given.
24398 if test "${enable_threads+set}" = set; then
24399 enableval=$enable_threads;
24404 if test x$enable_threads != xyes; then
24405 cat >>confdefs.h <<\_ACEOF
24406 #define SDL_THREADS_DISABLED 1
24410 # Check whether --enable-timers was given.
24411 if test "${enable_timers+set}" = set; then
24412 enableval=$enable_timers;
24417 if test x$enable_timers != xyes; then
24418 cat >>confdefs.h <<\_ACEOF
24419 #define SDL_TIMERS_DISABLED 1
24423 # Check whether --enable-file was given.
24424 if test "${enable_file+set}" = set; then
24425 enableval=$enable_file;
24430 if test x$enable_file != xyes; then
24431 cat >>confdefs.h <<\_ACEOF
24432 #define SDL_FILE_DISABLED 1
24436 # Check whether --enable-loadso was given.
24437 if test "${enable_loadso+set}" = set; then
24438 enableval=$enable_loadso;
24443 if test x$enable_loadso != xyes; then
24444 cat >>confdefs.h <<\_ACEOF
24445 #define SDL_LOADSO_DISABLED 1
24449 # Check whether --enable-cpuinfo was given.
24450 if test "${enable_cpuinfo+set}" = set; then
24451 enableval=$enable_cpuinfo;
24456 if test x$enable_cpuinfo != xyes; then
24457 cat >>confdefs.h <<\_ACEOF
24458 #define SDL_CPUINFO_DISABLED 1
24462 # Check whether --enable-assembly was given.
24463 if test "${enable_assembly+set}" = set; then
24464 enableval=$enable_assembly;
24466 enable_assembly=yes
24469 if test x$enable_assembly = xyes; then
24470 cat >>confdefs.h <<\_ACEOF
24471 #define SDL_ASSEMBLY_ROUTINES 1
24478 # Check whether --enable-oss was given.
24479 if test "${enable_oss+set}" = set; then
24480 enableval=$enable_oss;
24485 if test x$enable_audio = xyes -a x$enable_oss = xyes; then
24486 { echo "$as_me:$LINENO: checking for OSS audio support" >&5
24487 echo $ECHO_N "checking for OSS audio support... $ECHO_C" >&6; }
24489 if test x$have_oss != xyes; then
24490 cat >conftest.$ac_ext <<_ACEOF
24493 cat confdefs.h >>conftest.$ac_ext
24494 cat >>conftest.$ac_ext <<_ACEOF
24495 /* end confdefs.h. */
24497 #include <sys/soundcard.h>
24503 int arg = SNDCTL_DSP_SETFRAGMENT;
24509 rm -f conftest.$ac_objext
24510 if { (ac_try="$ac_compile"
24511 case "(($ac_try" in
24512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24513 *) ac_try_echo=$ac_try;;
24515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24516 (eval "$ac_compile") 2>conftest.er1
24518 grep -v '^
*+' conftest.er1 >conftest.err
24520 cat conftest.err >&5
24521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24522 (exit $ac_status); } && {
24523 test -z "$ac_c_werror_flag" ||
24524 test ! -s conftest.err
24525 } && test -s conftest.$ac_objext; then
24530 echo "$as_me: failed program was:" >&5
24531 sed 's
/^
/|
/' conftest.$ac_ext >&5
24536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24538 if test x$have_oss != xyes; then
24539 cat >conftest.$ac_ext <<_ACEOF
24542 cat confdefs.h >>conftest.$ac_ext
24543 cat >>conftest.$ac_ext <<_ACEOF
24544 /* end confdefs.h. */
24546 #include <soundcard.h>
24552 int arg = SNDCTL_DSP_SETFRAGMENT;
24558 rm -f conftest.$ac_objext
24559 if { (ac_try="$ac_compile"
24560 case "(($ac_try" in
24561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24562 *) ac_try_echo=$ac_try;;
24564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24565 (eval "$ac_compile") 2>conftest.er1
24567 grep -v '^
*+' conftest.er1 >conftest.err
24569 cat conftest.err >&5
24570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24571 (exit $ac_status); } && {
24572 test -z "$ac_c_werror_flag" ||
24573 test ! -s conftest.err
24574 } && test -s conftest.$ac_objext; then
24577 cat >>confdefs.h <<\_ACEOF
24578 #define SDL_AUDIO_DRIVER_OSS_SOUNDCARD_H 1
24583 echo "$as_me: failed program was:" >&5
24584 sed 's
/^
/|
/' conftest.$ac_ext >&5
24589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24591 { echo "$as_me:$LINENO: result: $have_oss" >&5
24592 echo "${ECHO_T}$have_oss" >&6; }
24593 if test x$have_oss = xyes; then
24594 cat >>confdefs.h <<\_ACEOF
24595 #define SDL_AUDIO_DRIVER_OSS 1
24598 SOURCES="$SOURCES $srcdir/src/audio/dsp/*.c"
24599 SOURCES="$SOURCES $srcdir/src/audio/dma/*.c"
24602 # We may need to link with ossaudio emulation library
24604 *-*-openbsd*|*-*-netbsd*)
24605 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lossaudio";;
24613 # Check whether --enable-alsa was given.
24614 if test "${enable_alsa+set}" = set; then
24615 enableval=$enable_alsa;
24620 if test x$enable_audio = xyes -a x$enable_alsa = xyes; then
24621 alsa_save_CFLAGS="$CFLAGS"
24622 alsa_save_LDFLAGS="$LDFLAGS"
24623 alsa_save_LIBS="$LIBS"
24627 # Check whether --with-alsa-prefix was given.
24628 if test "${with_alsa_prefix+set}" = set; then
24629 withval=$with_alsa_prefix; alsa_prefix="$withval"
24636 # Check whether --with-alsa-inc-prefix was given.
24637 if test "${with_alsa_inc_prefix+set}" = set; then
24638 withval=$with_alsa_inc_prefix; alsa_inc_prefix="$withval"
24644 # Check whether --enable-alsatest was given.
24645 if test "${enable_alsatest+set}" = set; then
24646 enableval=$enable_alsatest; enable_alsatest="$enableval"
24648 enable_alsatest=yes
24652 { echo "$as_me:$LINENO: checking for ALSA CFLAGS" >&5
24653 echo $ECHO_N "checking for ALSA CFLAGS... $ECHO_C" >&6; }
24654 if test "$alsa_inc_prefix" != "" ; then
24655 ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
24656 CFLAGS="$CFLAGS -I$alsa_inc_prefix"
24658 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
24659 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
24661 { echo "$as_me:$LINENO: checking for ALSA LDFLAGS" >&5
24662 echo $ECHO_N "checking for ALSA LDFLAGS... $ECHO_C" >&6; }
24663 if test "$alsa_prefix" != "" ; then
24664 ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
24665 LDFLAGS="$LDFLAGS $ALSA_LIBS"
24668 ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
24669 LIBS=`echo $LIBS | sed 's
/-lm//'`
24670 LIBS=`echo $LIBS | sed 's
/-ldl//'`
24671 LIBS=`echo $LIBS | sed 's
/-lpthread//'`
24672 LIBS=`echo $LIBS | sed 's
/ //'`
24673 LIBS="$ALSA_LIBS $LIBS"
24674 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
24675 echo "${ECHO_T}$ALSA_LIBS" >&6; }
24677 min_alsa_version=0.9.0
24678 { echo "$as_me:$LINENO: checking for libasound headers version >= $min_alsa_version" >&5
24679 echo $ECHO_N "checking for libasound headers version >= $min_alsa_version... $ECHO_C" >&6; }
24681 alsa_min_major_version=`echo $min_alsa_version | \
24682 sed 's
/\
([0-9]*\
).\
([0-9]*\
).\
([0-9]*\
)/\
1/'`
24683 alsa_min_minor_version=`echo $min_alsa_version | \
24684 sed 's
/\
([0-9]*\
).\
([0-9]*\
).\
([0-9]*\
)/\
2/'`
24685 alsa_min_micro_version=`echo $min_alsa_version | \
24686 sed 's
/\
([0-9]*\
).\
([0-9]*\
).\
([0-9]*\
)/\
3/'`
24690 ac_cpp='$CPP $CPPFLAGS'
24691 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
24692 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
24693 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24695 cat >conftest.$ac_ext <<_ACEOF
24698 cat confdefs.h >>conftest.$ac_ext
24699 cat >>conftest.$ac_ext <<_ACEOF
24700 /* end confdefs.h. */
24702 #include <alsa/asoundlib.h>
24708 /* ensure backward compatibility */
24709 #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
24710 #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
24712 #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
24713 #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
24715 #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
24716 #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
24719 # if(SND_LIB_MAJOR > $alsa_min_major_version)
24722 # if(SND_LIB_MAJOR < $alsa_min_major_version)
24723 # error not present
24726 # if(SND_LIB_MINOR > $alsa_min_minor_version)
24729 # if(SND_LIB_MINOR < $alsa_min_minor_version)
24730 # error not present
24733 # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
24734 # error not present
24744 rm -f conftest.$ac_objext
24745 if { (ac_try="$ac_compile"
24746 case "(($ac_try" in
24747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24748 *) ac_try_echo=$ac_try;;
24750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24751 (eval "$ac_compile") 2>conftest.er1
24753 grep -v '^
*+' conftest.er1 >conftest.err
24755 cat conftest.err >&5
24756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24757 (exit $ac_status); } && {
24758 test -z "$ac_c_werror_flag" ||
24759 test ! -s conftest.err
24760 } && test -s conftest.$ac_objext; then
24761 { echo "$as_me:$LINENO: result: found." >&5
24762 echo "${ECHO_T}found." >&6; }
24764 echo "$as_me: failed program was:" >&5
24765 sed 's
/^
/|
/' conftest.$ac_ext >&5
24767 { echo "$as_me:$LINENO: result: not present." >&5
24768 echo "${ECHO_T}not present." >&6; }
24774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24776 ac_cpp='$CPP $CPPFLAGS'
24777 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
24778 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
24779 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24782 if test "x$enable_alsatest" = "xyes"; then
24784 { echo "$as_me:$LINENO: checking for snd_ctl_open in -lasound" >&5
24785 echo $ECHO_N "checking for snd_ctl_open in -lasound... $ECHO_C" >&6; }
24786 if test "${ac_cv_lib_asound_snd_ctl_open+set}" = set; then
24787 echo $ECHO_N "(cached) $ECHO_C" >&6
24789 ac_check_lib_save_LIBS=$LIBS
24790 LIBS="-lasound $LIBS"
24791 cat >conftest.$ac_ext <<_ACEOF
24794 cat confdefs.h >>conftest.$ac_ext
24795 cat >>conftest.$ac_ext <<_ACEOF
24796 /* end confdefs.h. */
24798 /* Override any GCC internal prototype to avoid an error.
24799 Use char because int might match the return type of a GCC
24800 builtin and then its argument prototype would still apply. */
24804 char snd_ctl_open ();
24808 return snd_ctl_open ();
24813 rm -f conftest.$ac_objext conftest$ac_exeext
24814 if { (ac_try="$ac_link"
24815 case "(($ac_try" in
24816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24817 *) ac_try_echo=$ac_try;;
24819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24820 (eval "$ac_link") 2>conftest.er1
24822 grep -v '^
*+' conftest.er1 >conftest.err
24824 cat conftest.err >&5
24825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24826 (exit $ac_status); } && {
24827 test -z "$ac_c_werror_flag" ||
24828 test ! -s conftest.err
24829 } && test -s conftest$ac_exeext &&
24830 $as_test_x conftest$ac_exeext; then
24831 ac_cv_lib_asound_snd_ctl_open=yes
24833 echo "$as_me: failed program was:" >&5
24834 sed 's
/^
/|
/' conftest.$ac_ext >&5
24836 ac_cv_lib_asound_snd_ctl_open=no
24839 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24840 conftest$ac_exeext conftest.$ac_ext
24841 LIBS=$ac_check_lib_save_LIBS
24843 { echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_ctl_open" >&5
24844 echo "${ECHO_T}$ac_cv_lib_asound_snd_ctl_open" >&6; }
24845 if test $ac_cv_lib_asound_snd_ctl_open = yes; then
24846 cat >>confdefs.h <<_ACEOF
24847 #define HAVE_LIBASOUND 1
24850 LIBS="-lasound $LIBS"
24860 if test "x$alsa_found" = "xyes" ; then
24862 LIBS=`echo $LIBS | sed 's
/-lasound//g
'`
24863 LIBS=`echo $LIBS | sed 's
/ //'`
24864 LIBS="-lasound $LIBS"
24866 if test "x$alsa_found" = "xno" ; then
24868 CFLAGS="$alsa_save_CFLAGS"
24869 LDFLAGS="$alsa_save_LDFLAGS"
24870 LIBS="$alsa_save_LIBS"
24878 # Restore all flags from before the ALSA detection runs
24879 CFLAGS="$alsa_save_CFLAGS"
24880 LDFLAGS="$alsa_save_LDFLAGS"
24881 LIBS="$alsa_save_LIBS"
24882 if test x$have_alsa = xyes; then
24883 # Check whether --enable-alsa-shared was given.
24884 if test "${enable_alsa_shared+set}" = set; then
24885 enableval=$enable_alsa_shared;
24887 enable_alsa_shared=yes
24890 if test "x`echo $ALSA_LIBS | grep -- -L`" = "x"; then
24891 if test "x`ls /lib/libasound.so.* 2> /dev/null`" != "x"; then
24892 ALSA_LIBS="-L/lib $ALSA_LIBS"
24893 elif test "x`ls /usr/lib/libasound.so.* 2> /dev/null`" != "x"; then
24894 ALSA_LIBS="-L/usr/lib $ALSA_LIBS"
24895 elif test "x`ls /usr/local/lib/libasound.so.* 2> /dev/null`" != "x"; then
24896 ALSA_LIBS="-L/usr/local/lib $ALSA_LIBS"
24899 alsa_lib_spec=`echo $ALSA_LIBS | sed 's
/.
*-L\
([^
]*\
).
*/\
1\
/libasound.so.
*/'`
24900 alsa_lib=`ls -- $alsa_lib_spec | sed 's
/.
*\
/\
(.
*\
)/\
1/; q
'`
24901 echo "-- $alsa_lib_spec -> $alsa_lib"
24903 cat >>confdefs.h <<\_ACEOF
24904 #define SDL_AUDIO_DRIVER_ALSA 1
24907 SOURCES="$SOURCES $srcdir/src/audio/alsa/*.c"
24908 EXTRA_CFLAGS="$EXTRA_CFLAGS $ALSA_CFLAGS"
24909 if test x$have_loadso != xyes && \
24910 test x$enable_alsa_shared = xyes; then
24911 { echo "$as_me:$LINENO: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&5
24912 echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&2;}
24914 if test x$have_loadso = xyes && \
24915 test x$enable_alsa_shared = xyes && test x$alsa_lib != x; then
24916 cat >>confdefs.h <<_ACEOF
24917 #define SDL_AUDIO_DRIVER_ALSA_DYNAMIC "$alsa_lib"
24921 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ALSA_LIBS"
24930 if test x$enable_audio = xyes; then
24931 { echo "$as_me:$LINENO: checking for dmedia audio support" >&5
24932 echo $ECHO_N "checking for dmedia audio support... $ECHO_C" >&6; }
24934 cat >conftest.$ac_ext <<_ACEOF
24937 cat confdefs.h >>conftest.$ac_ext
24938 cat >>conftest.$ac_ext <<_ACEOF
24939 /* end confdefs.h. */
24941 #include <dmedia/audio.h>
24953 rm -f conftest.$ac_objext
24954 if { (ac_try="$ac_compile"
24955 case "(($ac_try" in
24956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24957 *) ac_try_echo=$ac_try;;
24959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24960 (eval "$ac_compile") 2>conftest.er1
24962 grep -v '^
*+' conftest.er1 >conftest.err
24964 cat conftest.err >&5
24965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24966 (exit $ac_status); } && {
24967 test -z "$ac_c_werror_flag" ||
24968 test ! -s conftest.err
24969 } && test -s conftest.$ac_objext; then
24974 echo "$as_me: failed program was:" >&5
24975 sed 's
/^
/|
/' conftest.$ac_ext >&5
24980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24981 { echo "$as_me:$LINENO: result: $have_dmedia" >&5
24982 echo "${ECHO_T}$have_dmedia" >&6; }
24983 # Set up files for the audio library
24984 if test x$have_dmedia = xyes; then
24985 cat >>confdefs.h <<\_ACEOF
24986 #define SDL_AUDIO_DRIVER_DMEDIA 1
24989 SOURCES="$SOURCES $srcdir/src/audio/dmedia/*.c"
24990 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -laudio"
25005 if test x$enable_audio = xyes; then
25006 { echo "$as_me:$LINENO: checking for MME audio support" >&5
25007 echo $ECHO_N "checking for MME audio support... $ECHO_C" >&6; }
25008 MME_CFLAGS="-I/usr/include/mme"
25011 save_CFLAGS="$CFLAGS"
25012 CFLAGS="$CFLAGS $MME_CFLAGS"
25013 cat >conftest.$ac_ext <<_ACEOF
25016 cat confdefs.h >>conftest.$ac_ext
25017 cat >>conftest.$ac_ext <<_ACEOF
25018 /* end confdefs.h. */
25020 #include <mme_api.h>
25032 rm -f conftest.$ac_objext
25033 if { (ac_try="$ac_compile"
25034 case "(($ac_try" in
25035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25036 *) ac_try_echo=$ac_try;;
25038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25039 (eval "$ac_compile") 2>conftest.er1
25041 grep -v '^
*+' conftest.er1 >conftest.err
25043 cat conftest.err >&5
25044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25045 (exit $ac_status); } && {
25046 test -z "$ac_c_werror_flag" ||
25047 test ! -s conftest.err
25048 } && test -s conftest.$ac_objext; then
25053 echo "$as_me: failed program was:" >&5
25054 sed 's
/^
/|
/' conftest.$ac_ext >&5
25059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25060 CFLAGS="$save_CFLAGS"
25061 { echo "$as_me:$LINENO: result: $have_mme" >&5
25062 echo "${ECHO_T}$have_mme" >&6; }
25063 # Set up files for the audio library
25064 if test x$have_mme = xyes; then
25065 cat >>confdefs.h <<\_ACEOF
25066 #define SDL_AUDIO_DRIVER_MMEAUDIO 1
25069 SOURCES="$SOURCES $srcdir/src/audio/mme/*.c"
25070 EXTRA_CFLAGS="$EXTRA_CFLAGS $MME_CFLAGS"
25071 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $MME_LIBS"
25079 # Check whether --enable-esd was given.
25080 if test "${enable_esd+set}" = set; then
25081 enableval=$enable_esd;
25086 if test x$enable_audio = xyes -a x$enable_esd = xyes; then
25088 # Check whether --with-esd-prefix was given.
25089 if test "${with_esd_prefix+set}" = set; then
25090 withval=$with_esd_prefix; esd_prefix="$withval"
25096 # Check whether --with-esd-exec-prefix was given.
25097 if test "${with_esd_exec_prefix+set}" = set; then
25098 withval=$with_esd_exec_prefix; esd_exec_prefix="$withval"
25103 # Check whether --enable-esdtest was given.
25104 if test "${enable_esdtest+set}" = set; then
25105 enableval=$enable_esdtest;
25111 if test x$esd_exec_prefix != x ; then
25112 esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
25113 if test x${ESD_CONFIG+set} != xset ; then
25114 ESD_CONFIG=$esd_exec_prefix/bin/esd-config
25117 if test x$esd_prefix != x ; then
25118 esd_args="$esd_args --prefix=$esd_prefix"
25119 if test x${ESD_CONFIG+set} != xset ; then
25120 ESD_CONFIG=$esd_prefix/bin/esd-config
25124 # Extract the first word of "esd-config", so it can be a program name with args.
25125 set dummy esd-config; ac_word=$2
25126 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25127 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25128 if test "${ac_cv_path_ESD_CONFIG+set}" = set; then
25129 echo $ECHO_N "(cached) $ECHO_C" >&6
25131 case $ESD_CONFIG in
25133 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
25136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25137 for as_dir in $PATH
25140 test -z "$as_dir" && as_dir=.
25141 for ac_exec_ext in '' $ac_executable_extensions; do
25142 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25143 ac_cv_path_ESD_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25144 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25151 test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
25155 ESD_CONFIG=$ac_cv_path_ESD_CONFIG
25156 if test -n "$ESD_CONFIG"; then
25157 { echo "$as_me:$LINENO: result: $ESD_CONFIG" >&5
25158 echo "${ECHO_T}$ESD_CONFIG" >&6; }
25160 { echo "$as_me:$LINENO: result: no" >&5
25161 echo "${ECHO_T}no" >&6; }
25165 min_esd_version=0.2.8
25166 { echo "$as_me:$LINENO: checking for ESD - version >= $min_esd_version" >&5
25167 echo $ECHO_N "checking for ESD - version >= $min_esd_version... $ECHO_C" >&6; }
25169 if test "$ESD_CONFIG" = "no" ; then
25172 ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
25173 ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
25175 esd_major_version=`$ESD_CONFIG $esd_args --version | \
25176 sed 's
/\
([0-9]*\
).\
([0-9]*\
).\
([0-9]*\
)/\
1/'`
25177 esd_minor_version=`$ESD_CONFIG $esd_args --version | \
25178 sed 's
/\
([0-9]*\
).\
([0-9]*\
).\
([0-9]*\
)/\
2/'`
25179 esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
25180 sed 's
/\
([0-9]*\
).\
([0-9]*\
).\
([0-9]*\
)/\
3/'`
25181 if test "x$enable_esdtest" = "xyes" ; then
25182 ac_save_CFLAGS="$CFLAGS"
25183 ac_save_LIBS="$LIBS"
25184 CFLAGS="$CFLAGS $ESD_CFLAGS"
25185 LIBS="$LIBS $ESD_LIBS"
25187 if test "$cross_compiling" = yes; then
25188 echo $ac_n "cross compiling; assumed OK... $ac_c"
25190 cat >conftest.$ac_ext <<_ACEOF
25193 cat confdefs.h >>conftest.$ac_ext
25194 cat >>conftest.$ac_ext <<_ACEOF
25195 /* end confdefs.h. */
25198 #include <stdlib.h>
25199 #include <string.h>
25203 my_strdup (char *str)
25209 new_str = malloc ((strlen (str) + 1) * sizeof(char));
25210 strcpy (new_str, str);
25220 int major, minor, micro;
25223 system ("touch conf.esdtest");
25225 /* HP/UX 9 (%@#!) writes to sscanf strings */
25226 tmp_version = my_strdup("$min_esd_version");
25227 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
25228 printf("%s, bad version string\n", "$min_esd_version");
25232 if (($esd_major_version > major) ||
25233 (($esd_major_version == major) && ($esd_minor_version > minor)) ||
25234 (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
25240 printf("\n*** 'esd-config
--version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
25241 printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
25242 printf("*** best to upgrade to the required version.\n");
25243 printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
25244 printf("*** to point to the correct copy of esd-config, and remove the file\n");
25245 printf("*** config.cache before re-running configure\n");
25252 rm -f conftest$ac_exeext
25253 if { (ac_try="$ac_link"
25254 case "(($ac_try" in
25255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25256 *) ac_try_echo=$ac_try;;
25258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25259 (eval "$ac_link") 2>&5
25261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25262 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
25263 { (case "(($ac_try" in
25264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25265 *) ac_try_echo=$ac_try;;
25267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25268 (eval "$ac_try") 2>&5
25270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25271 (exit $ac_status); }; }; then
25274 echo "$as_me: program exited with status $ac_status" >&5
25275 echo "$as_me: failed program was:" >&5
25276 sed 's
/^
/|
/' conftest.$ac_ext >&5
25278 ( exit $ac_status )
25281 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25285 CFLAGS="$ac_save_CFLAGS"
25286 LIBS="$ac_save_LIBS"
25289 if test "x$no_esd" = x ; then
25290 { echo "$as_me:$LINENO: result: yes" >&5
25291 echo "${ECHO_T}yes" >&6; }
25294 { echo "$as_me:$LINENO: result: no" >&5
25295 echo "${ECHO_T}no" >&6; }
25296 if test "$ESD_CONFIG" = "no" ; then
25297 echo "*** The esd-config script installed by ESD could not be found"
25298 echo "*** If ESD was installed in PREFIX, make sure PREFIX/bin is in"
25299 echo "*** your path, or set the ESD_CONFIG environment variable to the"
25300 echo "*** full path to esd-config."
25302 if test -f conf.esdtest ; then
25305 echo "*** Could not run ESD test program, checking why..."
25306 CFLAGS="$CFLAGS $ESD_CFLAGS"
25307 LIBS="$LIBS $ESD_LIBS"
25308 cat >conftest.$ac_ext <<_ACEOF
25311 cat confdefs.h >>conftest.$ac_ext
25312 cat >>conftest.$ac_ext <<_ACEOF
25313 /* end confdefs.h. */
25326 rm -f conftest.$ac_objext conftest$ac_exeext
25327 if { (ac_try="$ac_link"
25328 case "(($ac_try" in
25329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25330 *) ac_try_echo=$ac_try;;
25332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25333 (eval "$ac_link") 2>conftest.er1
25335 grep -v '^
*+' conftest.er1 >conftest.err
25337 cat conftest.err >&5
25338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25339 (exit $ac_status); } && {
25340 test -z "$ac_c_werror_flag" ||
25341 test ! -s conftest.err
25342 } && test -s conftest$ac_exeext &&
25343 $as_test_x conftest$ac_exeext; then
25344 echo "*** The test program compiled, but did not run. This usually means"
25345 echo "*** that the run-time linker is not finding ESD or finding the wrong"
25346 echo "*** version of ESD. If it is not finding ESD, you'll need to
set your
"
25347 echo "*** LD_LIBRARY_PATH environment variable
, or edit
/etc
/ld.so.conf to point
"
25348 echo "*** to the installed location Also
, make sure you have run ldconfig
if that
"
25349 echo "*** is required on your system
"
25351 echo "*** If you have an old version installed
, it is best to remove it
, although
"
25352 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH
"
25354 echo "$as_me: failed program was
:" >&5
25355 sed 's/^/| /' conftest.$ac_ext >&5
25357 echo "*** The
test program failed to compile or link. See the
file config.log
for the
"
25358 echo "*** exact error that occured. This usually means ESD was incorrectly installed
"
25359 echo "*** or that you have moved ESD since it was installed. In the latter
case, you
"
25360 echo "*** may want to edit the esd-config
script: $ESD_CONFIG"
25363 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25364 conftest$ac_exeext conftest.$ac_ext
25365 CFLAGS="$ac_save_CFLAGS"
25366 LIBS="$ac_save_LIBS"
25377 if test x$have_esd = xyes; then
25378 # Check whether --enable-esd-shared was given.
25379 if test "${enable_esd_shared+set}" = set; then
25380 enableval=$enable_esd_shared;
25382 enable_esd_shared=yes
25385 esd_lib_spec=`echo $ESD_LIBS | sed 's/.*-L\([^ ]*\).*/\1\/libesd.so.*/'`
25386 esd_lib=`ls -- $esd_lib_spec | sed 's/.*\/\(.*\)/\1/; q'`
25387 echo "-- $esd_lib_spec -> $esd_lib"
25389 cat >>confdefs.h <<\_ACEOF
25390 #define SDL_AUDIO_DRIVER_ESD 1
25393 SOURCES="$SOURCES $srcdir/src
/audio
/esd
/*.c
"
25394 EXTRA_CFLAGS="$EXTRA_CFLAGS $ESD_CFLAGS"
25395 if test x$have_loadso != xyes && \
25396 test x$enable_esd_shared = xyes; then
25397 { echo "$as_me:$LINENO: WARNING
: You must have SDL_LoadObject
() support
for dynamic ESD loading
" >&5
25398 echo "$as_me: WARNING
: You must have SDL_LoadObject
() support
for dynamic ESD loading
" >&2;}
25400 if test x$have_loadso = xyes && \
25401 test x$enable_esd_shared = xyes && test x$esd_lib != x; then
25402 cat >>confdefs.h <<_ACEOF
25403 #define SDL_AUDIO_DRIVER_ESD_DYNAMIC "$esd_lib"
25407 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ESD_LIBS"
25416 # Check whether --enable-pulseaudio was given.
25417 if test "${enable_pulseaudio+set}" = set; then
25418 enableval=$enable_pulseaudio;
25423 if test x$enable_audio = xyes -a x$enable_pulse = xyes; then
25426 PULSE_REQUIRED_VERSION=0.9
25428 # Extract the first word of "pkg-config
", so it can be a program name with args.
25429 set dummy pkg-config; ac_word=$2
25430 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
25431 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
25432 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
25433 echo $ECHO_N "(cached
) $ECHO_C" >&6
25435 case $PKG_CONFIG in
25437 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
25440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25441 for as_dir in $PATH
25444 test -z "$as_dir" && as_dir=.
25445 for ac_exec_ext in '' $ac_executable_extensions; do
25446 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25447 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25448 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
25455 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no
"
25459 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
25460 if test -n "$PKG_CONFIG"; then
25461 { echo "$as_me:$LINENO: result
: $PKG_CONFIG" >&5
25462 echo "${ECHO_T}$PKG_CONFIG" >&6; }
25464 { echo "$as_me:$LINENO: result
: no
" >&5
25465 echo "${ECHO_T}no
" >&6; }
25469 { echo "$as_me:$LINENO: checking
for PulseAudio
$PULSE_REQUIRED_VERSION support
" >&5
25470 echo $ECHO_N "checking
for PulseAudio
$PULSE_REQUIRED_VERSION support...
$ECHO_C" >&6; }
25471 if test x$PKG_CONFIG != xno; then
25472 if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $PULSE_REQUIRED_VERSION libpulse-simple; then
25473 PULSE_CFLAGS=`$PKG_CONFIG --cflags libpulse-simple`
25474 PULSE_LIBS=`$PKG_CONFIG --libs libpulse-simple`
25478 { echo "$as_me:$LINENO: result
: $audio_pulse" >&5
25479 echo "${ECHO_T}$audio_pulse" >&6; }
25481 if test x$audio_pulse = xyes; then
25482 # Check whether --enable-pulseaudio-shared was given.
25483 if test "${enable_pulseaudio_shared+set}" = set; then
25484 enableval=$enable_pulseaudio_shared;
25486 enable_pulse_shared=yes
25489 if test "x
`echo $PULSE_LIBS | grep -- -L`" = "x
"; then
25490 if test "x
`ls /lib/libpulse-simple.so.* 2> /dev/null`" != "x
"; then
25491 PULSE_LIBS="-L/lib
$PULSE_LIBS"
25492 elif test "x
`ls /usr/lib/libpulse-simple.so.* 2> /dev/null`" != "x
"; then
25493 PULSE_LIBS="-L/usr
/lib
$PULSE_LIBS"
25494 elif test "x
`ls /usr/local/lib/libpulse-simple.so.* 2> /dev/null`" != "x
"; then
25495 PULSE_LIBS="-L/usr
/local
/lib
$PULSE_LIBS"
25498 pulse_lib_spec=`echo $PULSE_LIBS | sed 's/.*-L\([^ ]*\).*/\1\/libpulse-simple.so.*/'`
25499 pulse_lib=`ls -- $pulse_lib_spec | sed 's/.*\/\(.*\)/\1/; q'`
25500 echo "-- $pulse_lib_spec -> $pulse_lib"
25502 cat >>confdefs.h <<\_ACEOF
25503 #define SDL_AUDIO_DRIVER_PULSE 1
25506 SOURCES="$SOURCES $srcdir/src
/audio
/pulse
/*.c
"
25507 EXTRA_CFLAGS="$EXTRA_CFLAGS $PULSE_CFLAGS"
25508 if test x$have_loadso != xyes && \
25509 test x$enable_pulse_shared = xyes; then
25510 { echo "$as_me:$LINENO: WARNING
: You must have SDL_LoadObject
() support
for dynamic PulseAudio loading
" >&5
25511 echo "$as_me: WARNING
: You must have SDL_LoadObject
() support
for dynamic PulseAudio loading
" >&2;}
25513 if test x$have_loadso = xyes && \
25514 test x$enable_pulse_shared = xyes && test x$pulse_lib != x; then
25515 cat >>confdefs.h <<_ACEOF
25516 #define SDL_AUDIO_DRIVER_PULSE_DYNAMIC "$pulse_lib"
25520 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PULSE_LIBS"
25529 # Check whether --enable-arts was given.
25530 if test "${enable_arts+set}" = set; then
25531 enableval=$enable_arts;
25536 if test x$enable_audio = xyes -a x$enable_arts = xyes; then
25537 # Extract the first word of "artsc-config
", so it can be a program name with args.
25538 set dummy artsc-config; ac_word=$2
25539 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
25540 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
25541 if test "${ac_cv_path_ARTSCONFIG+set}" = set; then
25542 echo $ECHO_N "(cached
) $ECHO_C" >&6
25544 case $ARTSCONFIG in
25546 ac_cv_path_ARTSCONFIG="$ARTSCONFIG" # Let the user override the test with a path.
25549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25550 for as_dir in $PATH
25553 test -z "$as_dir" && as_dir=.
25554 for ac_exec_ext in '' $ac_executable_extensions; do
25555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25556 ac_cv_path_ARTSCONFIG="$as_dir/$ac_word$ac_exec_ext"
25557 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
25567 ARTSCONFIG=$ac_cv_path_ARTSCONFIG
25568 if test -n "$ARTSCONFIG"; then
25569 { echo "$as_me:$LINENO: result
: $ARTSCONFIG" >&5
25570 echo "${ECHO_T}$ARTSCONFIG" >&6; }
25572 { echo "$as_me:$LINENO: result
: no
" >&5
25573 echo "${ECHO_T}no
" >&6; }
25577 if test x$ARTSCONFIG = x -o x$ARTSCONFIG = x'"$ARTSCONFIG"'; then
25578 : # arts isn't installed
25580 ARTS_CFLAGS=`$ARTSCONFIG --cflags`
25581 ARTS_LIBS=`$ARTSCONFIG --libs`
25582 ARTS_PREFIX=`$ARTSCONFIG --arts-prefix`
25583 { echo "$as_me:$LINENO: checking
for aRts development environment
" >&5
25584 echo $ECHO_N "checking
for aRts development environment...
$ECHO_C" >&6; }
25586 save_CFLAGS="$CFLAGS"
25587 CFLAGS="$CFLAGS $ARTS_CFLAGS"
25588 cat >conftest.$ac_ext <<_ACEOF
25591 cat confdefs.h >>conftest.$ac_ext
25592 cat >>conftest.$ac_ext <<_ACEOF
25593 /* end confdefs.h. */
25601 arts_stream_t stream;
25607 rm -f conftest.$ac_objext
25608 if { (ac_try="$ac_compile"
25609 case "(($ac_try" in
25610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25611 *) ac_try_echo=$ac_try;;
25613 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25614 (eval "$ac_compile") 2>conftest.er1
25616 grep -v '^ *+' conftest.er1 >conftest.err
25618 cat conftest.err >&5
25619 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25620 (exit $ac_status); } && {
25621 test -z "$ac_c_werror_flag" ||
25622 test ! -s conftest.err
25623 } && test -s conftest.$ac_objext; then
25628 echo "$as_me: failed program was
:" >&5
25629 sed 's/^/| /' conftest.$ac_ext >&5
25634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25635 CFLAGS="$save_CFLAGS"
25636 { echo "$as_me:$LINENO: result
: $audio_arts" >&5
25637 echo "${ECHO_T}$audio_arts" >&6; }
25638 if test x$audio_arts = xyes; then
25639 # Check whether --enable-arts-shared was given.
25640 if test "${enable_arts_shared+set}" = set; then
25641 enableval=$enable_arts_shared;
25643 enable_arts_shared=yes
25646 arts_lib_spec="$ARTS_PREFIX/lib
/libartsc.so.
*"
25647 arts_lib=`ls -- $arts_lib_spec | sed 's/.*\/\(.*\)/\1/; q'`
25648 echo "-- $arts_lib_spec -> $arts_lib"
25650 cat >>confdefs.h <<\_ACEOF
25651 #define SDL_AUDIO_DRIVER_ARTS 1
25654 SOURCES="$SOURCES $srcdir/src
/audio
/arts
/*.c
"
25655 EXTRA_CFLAGS="$EXTRA_CFLAGS $ARTS_CFLAGS"
25656 if test x$have_loadso != xyes && \
25657 test x$enable_arts_shared = xyes; then
25658 { echo "$as_me:$LINENO: WARNING
: You must have SDL_LoadObject
() support
for dynamic ARTS loading
" >&5
25659 echo "$as_me: WARNING
: You must have SDL_LoadObject
() support
for dynamic ARTS loading
" >&2;}
25661 if test x$have_loadso = xyes && \
25662 test x$enable_arts_shared = xyes && test x$arts_lib != x; then
25663 cat >>confdefs.h <<_ACEOF
25664 #define SDL_AUDIO_DRIVER_ARTS_DYNAMIC "$arts_lib"
25668 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ARTS_LIBS"
25678 # Check whether --enable-nas was given.
25679 if test "${enable_nas+set}" = set; then
25680 enableval=$enable_nas;
25685 if test x$enable_audio = xyes -a x$enable_nas = xyes; then
25686 save_LDFLAGS="$LDFLAGS"
25687 LDFLAGS="$LDFLAGS -lXt -lm"
25688 if test "${ac_cv_header_audio_audiolib_h+set}" = set; then
25689 { echo "$as_me:$LINENO: checking
for audio
/audiolib.h
" >&5
25690 echo $ECHO_N "checking
for audio
/audiolib.h...
$ECHO_C" >&6; }
25691 if test "${ac_cv_header_audio_audiolib_h+set}" = set; then
25692 echo $ECHO_N "(cached
) $ECHO_C" >&6
25694 { echo "$as_me:$LINENO: result
: $ac_cv_header_audio_audiolib_h" >&5
25695 echo "${ECHO_T}$ac_cv_header_audio_audiolib_h" >&6; }
25697 # Is the header compilable?
25698 { echo "$as_me:$LINENO: checking audio
/audiolib.h usability
" >&5
25699 echo $ECHO_N "checking audio
/audiolib.h usability...
$ECHO_C" >&6; }
25700 cat >conftest.$ac_ext <<_ACEOF
25703 cat confdefs.h >>conftest.$ac_ext
25704 cat >>conftest.$ac_ext <<_ACEOF
25705 /* end confdefs.h. */
25706 $ac_includes_default
25707 #include <audio/audiolib.h>
25709 rm -f conftest.$ac_objext
25710 if { (ac_try="$ac_compile"
25711 case "(($ac_try" in
25712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25713 *) ac_try_echo=$ac_try;;
25715 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25716 (eval "$ac_compile") 2>conftest.er1
25718 grep -v '^ *+' conftest.er1 >conftest.err
25720 cat conftest.err >&5
25721 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25722 (exit $ac_status); } && {
25723 test -z "$ac_c_werror_flag" ||
25724 test ! -s conftest.err
25725 } && test -s conftest.$ac_objext; then
25726 ac_header_compiler=yes
25728 echo "$as_me: failed program was
:" >&5
25729 sed 's/^/| /' conftest.$ac_ext >&5
25731 ac_header_compiler=no
25734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25735 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
25736 echo "${ECHO_T}$ac_header_compiler" >&6; }
25738 # Is the header present?
25739 { echo "$as_me:$LINENO: checking audio
/audiolib.h presence
" >&5
25740 echo $ECHO_N "checking audio
/audiolib.h presence...
$ECHO_C" >&6; }
25741 cat >conftest.$ac_ext <<_ACEOF
25744 cat confdefs.h >>conftest.$ac_ext
25745 cat >>conftest.$ac_ext <<_ACEOF
25746 /* end confdefs.h. */
25747 #include <audio/audiolib.h>
25749 if { (ac_try="$ac_cpp conftest.
$ac_ext"
25750 case "(($ac_try" in
25751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25752 *) ac_try_echo=$ac_try;;
25754 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25755 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
25757 grep -v '^ *+' conftest.er1 >conftest.err
25759 cat conftest.err >&5
25760 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25761 (exit $ac_status); } >/dev/null && {
25762 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25763 test ! -s conftest.err
25765 ac_header_preproc=yes
25767 echo "$as_me: failed program was
:" >&5
25768 sed 's/^/| /' conftest.$ac_ext >&5
25770 ac_header_preproc=no
25773 rm -f conftest.err conftest.$ac_ext
25774 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
25775 echo "${ECHO_T}$ac_header_preproc" >&6; }
25777 # So? What about this header?
25778 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25780 { echo "$as_me:$LINENO: WARNING
: audio
/audiolib.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
25781 echo "$as_me: WARNING
: audio
/audiolib.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
25782 { echo "$as_me:$LINENO: WARNING
: audio
/audiolib.h
: proceeding with the compiler
's result" >&5
25783 echo "$as_me: WARNING: audio/audiolib.h: proceeding with the compiler's result
" >&2;}
25784 ac_header_preproc=yes
25787 { echo "$as_me:$LINENO: WARNING
: audio
/audiolib.h
: present but cannot be compiled
" >&5
25788 echo "$as_me: WARNING
: audio
/audiolib.h
: present but cannot be compiled
" >&2;}
25789 { echo "$as_me:$LINENO: WARNING
: audio
/audiolib.h
: check
for missing prerequisite headers?
" >&5
25790 echo "$as_me: WARNING
: audio
/audiolib.h
: check
for missing prerequisite headers?
" >&2;}
25791 { echo "$as_me:$LINENO: WARNING
: audio
/audiolib.h
: see the Autoconf documentation
" >&5
25792 echo "$as_me: WARNING
: audio
/audiolib.h
: see the Autoconf documentation
" >&2;}
25793 { echo "$as_me:$LINENO: WARNING
: audio
/audiolib.h
: section
\"Present But Cannot Be Compiled
\"" >&5
25794 echo "$as_me: WARNING
: audio
/audiolib.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
25795 { echo "$as_me:$LINENO: WARNING
: audio
/audiolib.h
: proceeding with the preprocessor
's result" >&5
25796 echo "$as_me: WARNING: audio/audiolib.h: proceeding with the preprocessor's result
" >&2;}
25797 { echo "$as_me:$LINENO: WARNING
: audio
/audiolib.h
: in the future
, the compiler will take precedence
" >&5
25798 echo "$as_me: WARNING
: audio
/audiolib.h
: in the future
, the compiler will take precedence
" >&2;}
25802 { echo "$as_me:$LINENO: checking
for audio
/audiolib.h
" >&5
25803 echo $ECHO_N "checking
for audio
/audiolib.h...
$ECHO_C" >&6; }
25804 if test "${ac_cv_header_audio_audiolib_h+set}" = set; then
25805 echo $ECHO_N "(cached
) $ECHO_C" >&6
25807 ac_cv_header_audio_audiolib_h=$ac_header_preproc
25809 { echo "$as_me:$LINENO: result
: $ac_cv_header_audio_audiolib_h" >&5
25810 echo "${ECHO_T}$ac_cv_header_audio_audiolib_h" >&6; }
25813 if test $ac_cv_header_audio_audiolib_h = yes; then
25818 { echo "$as_me:$LINENO: checking
for AuOpenServer
in -laudio" >&5
25819 echo $ECHO_N "checking
for AuOpenServer
in -laudio...
$ECHO_C" >&6; }
25820 if test "${ac_cv_lib_audio_AuOpenServer+set}" = set; then
25821 echo $ECHO_N "(cached
) $ECHO_C" >&6
25823 ac_check_lib_save_LIBS=$LIBS
25824 LIBS="-laudio $LIBS"
25825 cat >conftest.$ac_ext <<_ACEOF
25828 cat confdefs.h >>conftest.$ac_ext
25829 cat >>conftest.$ac_ext <<_ACEOF
25830 /* end confdefs.h. */
25832 /* Override any GCC internal prototype to avoid an error.
25833 Use char because int might match the return type of a GCC
25834 builtin and then its argument prototype would still apply. */
25838 char AuOpenServer ();
25842 return AuOpenServer ();
25847 rm -f conftest.$ac_objext conftest$ac_exeext
25848 if { (ac_try="$ac_link"
25849 case "(($ac_try" in
25850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25851 *) ac_try_echo=$ac_try;;
25853 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25854 (eval "$ac_link") 2>conftest.er1
25856 grep -v '^ *+' conftest.er1 >conftest.err
25858 cat conftest.err >&5
25859 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25860 (exit $ac_status); } && {
25861 test -z "$ac_c_werror_flag" ||
25862 test ! -s conftest.err
25863 } && test -s conftest$ac_exeext &&
25864 $as_test_x conftest$ac_exeext; then
25865 ac_cv_lib_audio_AuOpenServer=yes
25867 echo "$as_me: failed program was
:" >&5
25868 sed 's/^/| /' conftest.$ac_ext >&5
25870 ac_cv_lib_audio_AuOpenServer=no
25873 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25874 conftest$ac_exeext conftest.$ac_ext
25875 LIBS=$ac_check_lib_save_LIBS
25877 { echo "$as_me:$LINENO: result
: $ac_cv_lib_audio_AuOpenServer" >&5
25878 echo "${ECHO_T}$ac_cv_lib_audio_AuOpenServer" >&6; }
25879 if test $ac_cv_lib_audio_AuOpenServer = yes; then
25883 if test "${ac_cv_header_nas_audiolib_h+set}" = set; then
25884 { echo "$as_me:$LINENO: checking
for nas
/audiolib.h
" >&5
25885 echo $ECHO_N "checking
for nas
/audiolib.h...
$ECHO_C" >&6; }
25886 if test "${ac_cv_header_nas_audiolib_h+set}" = set; then
25887 echo $ECHO_N "(cached
) $ECHO_C" >&6
25889 { echo "$as_me:$LINENO: result
: $ac_cv_header_nas_audiolib_h" >&5
25890 echo "${ECHO_T}$ac_cv_header_nas_audiolib_h" >&6; }
25892 # Is the header compilable?
25893 { echo "$as_me:$LINENO: checking nas
/audiolib.h usability
" >&5
25894 echo $ECHO_N "checking nas
/audiolib.h usability...
$ECHO_C" >&6; }
25895 cat >conftest.$ac_ext <<_ACEOF
25898 cat confdefs.h >>conftest.$ac_ext
25899 cat >>conftest.$ac_ext <<_ACEOF
25900 /* end confdefs.h. */
25901 $ac_includes_default
25902 #include <nas/audiolib.h>
25904 rm -f conftest.$ac_objext
25905 if { (ac_try="$ac_compile"
25906 case "(($ac_try" in
25907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25908 *) ac_try_echo=$ac_try;;
25910 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25911 (eval "$ac_compile") 2>conftest.er1
25913 grep -v '^ *+' conftest.er1 >conftest.err
25915 cat conftest.err >&5
25916 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25917 (exit $ac_status); } && {
25918 test -z "$ac_c_werror_flag" ||
25919 test ! -s conftest.err
25920 } && test -s conftest.$ac_objext; then
25921 ac_header_compiler=yes
25923 echo "$as_me: failed program was
:" >&5
25924 sed 's/^/| /' conftest.$ac_ext >&5
25926 ac_header_compiler=no
25929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25930 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
25931 echo "${ECHO_T}$ac_header_compiler" >&6; }
25933 # Is the header present?
25934 { echo "$as_me:$LINENO: checking nas
/audiolib.h presence
" >&5
25935 echo $ECHO_N "checking nas
/audiolib.h presence...
$ECHO_C" >&6; }
25936 cat >conftest.$ac_ext <<_ACEOF
25939 cat confdefs.h >>conftest.$ac_ext
25940 cat >>conftest.$ac_ext <<_ACEOF
25941 /* end confdefs.h. */
25942 #include <nas/audiolib.h>
25944 if { (ac_try="$ac_cpp conftest.
$ac_ext"
25945 case "(($ac_try" in
25946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25947 *) ac_try_echo=$ac_try;;
25949 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25950 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
25952 grep -v '^ *+' conftest.er1 >conftest.err
25954 cat conftest.err >&5
25955 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25956 (exit $ac_status); } >/dev/null && {
25957 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25958 test ! -s conftest.err
25960 ac_header_preproc=yes
25962 echo "$as_me: failed program was
:" >&5
25963 sed 's/^/| /' conftest.$ac_ext >&5
25965 ac_header_preproc=no
25968 rm -f conftest.err conftest.$ac_ext
25969 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
25970 echo "${ECHO_T}$ac_header_preproc" >&6; }
25972 # So? What about this header?
25973 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25975 { echo "$as_me:$LINENO: WARNING
: nas
/audiolib.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
25976 echo "$as_me: WARNING
: nas
/audiolib.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
25977 { echo "$as_me:$LINENO: WARNING
: nas
/audiolib.h
: proceeding with the compiler
's result" >&5
25978 echo "$as_me: WARNING: nas/audiolib.h: proceeding with the compiler's result
" >&2;}
25979 ac_header_preproc=yes
25982 { echo "$as_me:$LINENO: WARNING
: nas
/audiolib.h
: present but cannot be compiled
" >&5
25983 echo "$as_me: WARNING
: nas
/audiolib.h
: present but cannot be compiled
" >&2;}
25984 { echo "$as_me:$LINENO: WARNING
: nas
/audiolib.h
: check
for missing prerequisite headers?
" >&5
25985 echo "$as_me: WARNING
: nas
/audiolib.h
: check
for missing prerequisite headers?
" >&2;}
25986 { echo "$as_me:$LINENO: WARNING
: nas
/audiolib.h
: see the Autoconf documentation
" >&5
25987 echo "$as_me: WARNING
: nas
/audiolib.h
: see the Autoconf documentation
" >&2;}
25988 { echo "$as_me:$LINENO: WARNING
: nas
/audiolib.h
: section
\"Present But Cannot Be Compiled
\"" >&5
25989 echo "$as_me: WARNING
: nas
/audiolib.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
25990 { echo "$as_me:$LINENO: WARNING
: nas
/audiolib.h
: proceeding with the preprocessor
's result" >&5
25991 echo "$as_me: WARNING: nas/audiolib.h: proceeding with the preprocessor's result
" >&2;}
25992 { echo "$as_me:$LINENO: WARNING
: nas
/audiolib.h
: in the future
, the compiler will take precedence
" >&5
25993 echo "$as_me: WARNING
: nas
/audiolib.h
: in the future
, the compiler will take precedence
" >&2;}
25997 { echo "$as_me:$LINENO: checking
for nas
/audiolib.h
" >&5
25998 echo $ECHO_N "checking
for nas
/audiolib.h...
$ECHO_C" >&6; }
25999 if test "${ac_cv_header_nas_audiolib_h+set}" = set; then
26000 echo $ECHO_N "(cached
) $ECHO_C" >&6
26002 ac_cv_header_nas_audiolib_h=$ac_header_preproc
26004 { echo "$as_me:$LINENO: result
: $ac_cv_header_nas_audiolib_h" >&5
26005 echo "${ECHO_T}$ac_cv_header_nas_audiolib_h" >&6; }
26008 if test $ac_cv_header_nas_audiolib_h = yes; then
26013 { echo "$as_me:$LINENO: checking
for AuOpenServer
in -lnas" >&5
26014 echo $ECHO_N "checking
for AuOpenServer
in -lnas...
$ECHO_C" >&6; }
26015 if test "${ac_cv_lib_nas_AuOpenServer+set}" = set; then
26016 echo $ECHO_N "(cached
) $ECHO_C" >&6
26018 ac_check_lib_save_LIBS=$LIBS
26020 cat >conftest.$ac_ext <<_ACEOF
26023 cat confdefs.h >>conftest.$ac_ext
26024 cat >>conftest.$ac_ext <<_ACEOF
26025 /* end confdefs.h. */
26027 /* Override any GCC internal prototype to avoid an error.
26028 Use char because int might match the return type of a GCC
26029 builtin and then its argument prototype would still apply. */
26033 char AuOpenServer ();
26037 return AuOpenServer ();
26042 rm -f conftest.$ac_objext conftest$ac_exeext
26043 if { (ac_try="$ac_link"
26044 case "(($ac_try" in
26045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26046 *) ac_try_echo=$ac_try;;
26048 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
26049 (eval "$ac_link") 2>conftest.er1
26051 grep -v '^ *+' conftest.er1 >conftest.err
26053 cat conftest.err >&5
26054 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
26055 (exit $ac_status); } && {
26056 test -z "$ac_c_werror_flag" ||
26057 test ! -s conftest.err
26058 } && test -s conftest$ac_exeext &&
26059 $as_test_x conftest$ac_exeext; then
26060 ac_cv_lib_nas_AuOpenServer=yes
26062 echo "$as_me: failed program was
:" >&5
26063 sed 's/^/| /' conftest.$ac_ext >&5
26065 ac_cv_lib_nas_AuOpenServer=no
26068 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26069 conftest$ac_exeext conftest.$ac_ext
26070 LIBS=$ac_check_lib_save_LIBS
26072 { echo "$as_me:$LINENO: result
: $ac_cv_lib_nas_AuOpenServer" >&5
26073 echo "${ECHO_T}$ac_cv_lib_nas_AuOpenServer" >&6; }
26074 if test $ac_cv_lib_nas_AuOpenServer = yes; then
26078 LDFLAGS="$save_LDFLAGS"
26080 { echo "$as_me:$LINENO: checking
for NAS audio support
" >&5
26081 echo $ECHO_N "checking
for NAS audio support...
$ECHO_C" >&6; }
26083 if test x$have_audio_hdr = xyes -a x$have_audio_lib = xyes; then
26085 NAS_LIBS="-laudio -lXt"
26086 elif test x$have_nas_hdr = xyes -a x$have_nas_lib = xyes; then
26088 NAS_LIBS="-lnas -lXt"
26090 { echo "$as_me:$LINENO: result
: $have_nas" >&5
26091 echo "${ECHO_T}$have_nas" >&6; }
26093 if test x$have_nas = xyes; then
26094 cat >>confdefs.h <<\_ACEOF
26095 #define SDL_AUDIO_DRIVER_NAS 1
26098 SOURCES="$SOURCES $srcdir/src
/audio
/nas
/*.c
"
26099 EXTRA_CFLAGS="$EXTRA_CFLAGS $NAS_CFLAGS"
26100 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $NAS_LIBS"
26108 # Check whether --enable-diskaudio was given.
26109 if test "${enable_diskaudio+set}" = set; then
26110 enableval=$enable_diskaudio;
26112 enable_diskaudio=yes
26115 if test x$enable_audio = xyes -a x$enable_diskaudio = xyes; then
26116 cat >>confdefs.h <<\_ACEOF
26117 #define SDL_AUDIO_DRIVER_DISK 1
26120 SOURCES="$SOURCES $srcdir/src
/audio
/disk
/*.c
"
26126 # Check whether --enable-dummyaudio was given.
26127 if test "${enable_dummyaudio+set}" = set; then
26128 enableval=$enable_dummyaudio;
26130 enable_dummyaudio=yes
26133 if test x$enable_audio = xyes -a x$enable_dummyaudio = xyes; then
26134 cat >>confdefs.h <<\_ACEOF
26135 #define SDL_AUDIO_DRIVER_DUMMY 1
26138 SOURCES="$SOURCES $srcdir/src
/audio
/dummy
/*.c
"
26144 # Check whether --enable-mintaudio was given.
26145 if test "${enable_mintaudio+set}" = set; then
26146 enableval=$enable_mintaudio;
26148 enable_mintaudio=yes
26151 if test x$enable_audio = xyes -a x$enable_mintaudio = xyes; then
26153 if test "${ac_cv_header_mint_falcon_h+set}" = set; then
26154 { echo "$as_me:$LINENO: checking
for mint
/falcon.h
" >&5
26155 echo $ECHO_N "checking
for mint
/falcon.h...
$ECHO_C" >&6; }
26156 if test "${ac_cv_header_mint_falcon_h+set}" = set; then
26157 echo $ECHO_N "(cached
) $ECHO_C" >&6
26159 { echo "$as_me:$LINENO: result
: $ac_cv_header_mint_falcon_h" >&5
26160 echo "${ECHO_T}$ac_cv_header_mint_falcon_h" >&6; }
26162 # Is the header compilable?
26163 { echo "$as_me:$LINENO: checking mint
/falcon.h usability
" >&5
26164 echo $ECHO_N "checking mint
/falcon.h usability...
$ECHO_C" >&6; }
26165 cat >conftest.$ac_ext <<_ACEOF
26168 cat confdefs.h >>conftest.$ac_ext
26169 cat >>conftest.$ac_ext <<_ACEOF
26170 /* end confdefs.h. */
26171 $ac_includes_default
26172 #include <mint/falcon.h>
26174 rm -f conftest.$ac_objext
26175 if { (ac_try="$ac_compile"
26176 case "(($ac_try" in
26177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26178 *) ac_try_echo=$ac_try;;
26180 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
26181 (eval "$ac_compile") 2>conftest.er1
26183 grep -v '^ *+' conftest.er1 >conftest.err
26185 cat conftest.err >&5
26186 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
26187 (exit $ac_status); } && {
26188 test -z "$ac_c_werror_flag" ||
26189 test ! -s conftest.err
26190 } && test -s conftest.$ac_objext; then
26191 ac_header_compiler=yes
26193 echo "$as_me: failed program was
:" >&5
26194 sed 's/^/| /' conftest.$ac_ext >&5
26196 ac_header_compiler=no
26199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26200 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
26201 echo "${ECHO_T}$ac_header_compiler" >&6; }
26203 # Is the header present?
26204 { echo "$as_me:$LINENO: checking mint
/falcon.h presence
" >&5
26205 echo $ECHO_N "checking mint
/falcon.h presence...
$ECHO_C" >&6; }
26206 cat >conftest.$ac_ext <<_ACEOF
26209 cat confdefs.h >>conftest.$ac_ext
26210 cat >>conftest.$ac_ext <<_ACEOF
26211 /* end confdefs.h. */
26212 #include <mint/falcon.h>
26214 if { (ac_try="$ac_cpp conftest.
$ac_ext"
26215 case "(($ac_try" in
26216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26217 *) ac_try_echo=$ac_try;;
26219 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
26220 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
26222 grep -v '^ *+' conftest.er1 >conftest.err
26224 cat conftest.err >&5
26225 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
26226 (exit $ac_status); } >/dev/null && {
26227 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26228 test ! -s conftest.err
26230 ac_header_preproc=yes
26232 echo "$as_me: failed program was
:" >&5
26233 sed 's/^/| /' conftest.$ac_ext >&5
26235 ac_header_preproc=no
26238 rm -f conftest.err conftest.$ac_ext
26239 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
26240 echo "${ECHO_T}$ac_header_preproc" >&6; }
26242 # So? What about this header?
26243 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26245 { echo "$as_me:$LINENO: WARNING
: mint
/falcon.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
26246 echo "$as_me: WARNING
: mint
/falcon.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
26247 { echo "$as_me:$LINENO: WARNING
: mint
/falcon.h
: proceeding with the compiler
's result" >&5
26248 echo "$as_me: WARNING: mint/falcon.h: proceeding with the compiler's result
" >&2;}
26249 ac_header_preproc=yes
26252 { echo "$as_me:$LINENO: WARNING
: mint
/falcon.h
: present but cannot be compiled
" >&5
26253 echo "$as_me: WARNING
: mint
/falcon.h
: present but cannot be compiled
" >&2;}
26254 { echo "$as_me:$LINENO: WARNING
: mint
/falcon.h
: check
for missing prerequisite headers?
" >&5
26255 echo "$as_me: WARNING
: mint
/falcon.h
: check
for missing prerequisite headers?
" >&2;}
26256 { echo "$as_me:$LINENO: WARNING
: mint
/falcon.h
: see the Autoconf documentation
" >&5
26257 echo "$as_me: WARNING
: mint
/falcon.h
: see the Autoconf documentation
" >&2;}
26258 { echo "$as_me:$LINENO: WARNING
: mint
/falcon.h
: section
\"Present But Cannot Be Compiled
\"" >&5
26259 echo "$as_me: WARNING
: mint
/falcon.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
26260 { echo "$as_me:$LINENO: WARNING
: mint
/falcon.h
: proceeding with the preprocessor
's result" >&5
26261 echo "$as_me: WARNING: mint/falcon.h: proceeding with the preprocessor's result
" >&2;}
26262 { echo "$as_me:$LINENO: WARNING
: mint
/falcon.h
: in the future
, the compiler will take precedence
" >&5
26263 echo "$as_me: WARNING
: mint
/falcon.h
: in the future
, the compiler will take precedence
" >&2;}
26267 { echo "$as_me:$LINENO: checking
for mint
/falcon.h
" >&5
26268 echo $ECHO_N "checking
for mint
/falcon.h...
$ECHO_C" >&6; }
26269 if test "${ac_cv_header_mint_falcon_h+set}" = set; then
26270 echo $ECHO_N "(cached
) $ECHO_C" >&6
26272 ac_cv_header_mint_falcon_h=$ac_header_preproc
26274 { echo "$as_me:$LINENO: result
: $ac_cv_header_mint_falcon_h" >&5
26275 echo "${ECHO_T}$ac_cv_header_mint_falcon_h" >&6; }
26278 if test $ac_cv_header_mint_falcon_h = yes; then
26279 have_mint_falcon_hdr=yes
26283 if test x$have_mint_falcon_hdr = xyes; then
26285 cat >>confdefs.h <<\_ACEOF
26286 #define SDL_AUDIO_DRIVER_MINT 1
26289 SOURCES="$SOURCES $srcdir/src
/audio
/mint
/*.c
"
26290 SOURCES="$SOURCES $srcdir/src
/audio
/mint
/*.S
"
26296 # NASM is available from: http://nasm.sourceforge.net
26303 # Nope, bail early.
26307 # Check whether --enable-nasm was given.
26308 if test "${enable_nasm+set}" = set; then
26309 enableval=$enable_nasm;
26314 if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_nasm = xyes; then
26317 # Usage: CompileNASM <filename>
26318 { echo "$as_me:$LINENO: checking to see
if $NASM supports
$1" >&5
26319 echo $ECHO_N "checking to see
if $NASM supports
$1...
$ECHO_C" >&6; }
26320 if $NASM $NASMFLAGS $1 -o $1.o >&5 2>&1; then
26321 CompileNASM_ret="yes"
26323 CompileNASM_ret="no
"
26326 { echo "$as_me:$LINENO: result
: $CompileNASM_ret" >&5
26327 echo "${ECHO_T}$CompileNASM_ret" >&6; }
26328 test "$CompileNASM_ret" = "yes"
26331 if test x"$NASMFLAGS" = x; then
26334 NASMFLAGS="-f win32
"
26337 NASMFLAGS="-f aoutb
"
26340 NASMFLAGS="-f macho
"
26348 # Extract the first word of "yasm
", so it can be a program name with args.
26349 set dummy yasm; ac_word=$2
26350 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
26351 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
26352 if test "${ac_cv_path_NASM+set}" = set; then
26353 echo $ECHO_N "(cached
) $ECHO_C" >&6
26357 ac_cv_path_NASM="$NASM" # Let the user override the test with a path.
26360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26361 for as_dir in $PATH
26364 test -z "$as_dir" && as_dir=.
26365 for ac_exec_ext in '' $ac_executable_extensions; do
26366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26367 ac_cv_path_NASM="$as_dir/$ac_word$ac_exec_ext"
26368 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
26378 NASM=$ac_cv_path_NASM
26379 if test -n "$NASM"; then
26380 { echo "$as_me:$LINENO: result
: $NASM" >&5
26381 echo "${ECHO_T}$NASM" >&6; }
26383 { echo "$as_me:$LINENO: result
: no
" >&5
26384 echo "${ECHO_T}no
" >&6; }
26388 echo "%ifidn __OUTPUT_FORMAT__
,elf
" > unquoted-sections
26389 echo "section .note.GNU-stack noalloc noexec nowrite progbits
" >> unquoted-sections
26390 echo "%endif
" >> unquoted-sections
26391 CompileNASM unquoted-sections || NASM=""
26393 if test "x
$NASM" = x -o "x
$NASM" = x'"$NASM"'; then
26394 $as_unset ac_cv_path_NASM
26395 # Extract the first word of "nasm
", so it can be a program name with args.
26396 set dummy nasm; ac_word=$2
26397 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
26398 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
26399 if test "${ac_cv_path_NASM+set}" = set; then
26400 echo $ECHO_N "(cached
) $ECHO_C" >&6
26404 ac_cv_path_NASM="$NASM" # Let the user override the test with a path.
26407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26408 for as_dir in $PATH
26411 test -z "$as_dir" && as_dir=.
26412 for ac_exec_ext in '' $ac_executable_extensions; do
26413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26414 ac_cv_path_NASM="$as_dir/$ac_word$ac_exec_ext"
26415 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
26425 NASM=$ac_cv_path_NASM
26426 if test -n "$NASM"; then
26427 { echo "$as_me:$LINENO: result
: $NASM" >&5
26428 echo "${ECHO_T}$NASM" >&6; }
26430 { echo "$as_me:$LINENO: result
: no
" >&5
26431 echo "${ECHO_T}no
" >&6; }
26436 if test "x
$NASM" != x -a "x
$NASM" != x'"$NASM"'; then
26437 cat >>confdefs.h <<\_ACEOF
26438 #define SDL_HERMES_BLITTERS 1
26441 SOURCES="$SOURCES $srcdir/src
/hermes
/*.asm
"
26442 NASMFLAGS="$NASMFLAGS -I $srcdir/src
/hermes
/"
26444 echo "GLOBAL _bar
:function hidden
" > symbol-visibility
26445 echo "_bar
:" >> symbol-visibility
26446 CompileNASM symbol-visibility && NASMFLAGS="$NASMFLAGS -DHIDDEN_VISIBILITY"
26452 # this line is needed for QNX, because it's not defined the __ELF__
26454 EXTRA_CFLAGS="$EXTRA_CFLAGS -D__ELF__";;
26456 EXTRA_CFLAGS="$EXTRA_CFLAGS -D__ELF__";;
26464 # Check whether --enable-altivec was given.
26465 if test "${enable_altivec+set}" = set; then
26466 enableval=$enable_altivec;
26471 if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_altivec = xyes; then
26472 have_altivec_h_hdr=no
26473 if test "${ac_cv_header_altivec_h+set}" = set; then
26474 { echo "$as_me:$LINENO: checking
for altivec.h
" >&5
26475 echo $ECHO_N "checking
for altivec.h...
$ECHO_C" >&6; }
26476 if test "${ac_cv_header_altivec_h+set}" = set; then
26477 echo $ECHO_N "(cached
) $ECHO_C" >&6
26479 { echo "$as_me:$LINENO: result
: $ac_cv_header_altivec_h" >&5
26480 echo "${ECHO_T}$ac_cv_header_altivec_h" >&6; }
26482 # Is the header compilable?
26483 { echo "$as_me:$LINENO: checking altivec.h usability
" >&5
26484 echo $ECHO_N "checking altivec.h usability...
$ECHO_C" >&6; }
26485 cat >conftest.$ac_ext <<_ACEOF
26488 cat confdefs.h >>conftest.$ac_ext
26489 cat >>conftest.$ac_ext <<_ACEOF
26490 /* end confdefs.h. */
26491 $ac_includes_default
26492 #include <altivec.h>
26494 rm -f conftest.$ac_objext
26495 if { (ac_try="$ac_compile"
26496 case "(($ac_try" in
26497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26498 *) ac_try_echo=$ac_try;;
26500 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
26501 (eval "$ac_compile") 2>conftest.er1
26503 grep -v '^ *+' conftest.er1 >conftest.err
26505 cat conftest.err >&5
26506 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
26507 (exit $ac_status); } && {
26508 test -z "$ac_c_werror_flag" ||
26509 test ! -s conftest.err
26510 } && test -s conftest.$ac_objext; then
26511 ac_header_compiler=yes
26513 echo "$as_me: failed program was
:" >&5
26514 sed 's/^/| /' conftest.$ac_ext >&5
26516 ac_header_compiler=no
26519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26520 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
26521 echo "${ECHO_T}$ac_header_compiler" >&6; }
26523 # Is the header present?
26524 { echo "$as_me:$LINENO: checking altivec.h presence
" >&5
26525 echo $ECHO_N "checking altivec.h presence...
$ECHO_C" >&6; }
26526 cat >conftest.$ac_ext <<_ACEOF
26529 cat confdefs.h >>conftest.$ac_ext
26530 cat >>conftest.$ac_ext <<_ACEOF
26531 /* end confdefs.h. */
26532 #include <altivec.h>
26534 if { (ac_try="$ac_cpp conftest.
$ac_ext"
26535 case "(($ac_try" in
26536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26537 *) ac_try_echo=$ac_try;;
26539 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
26540 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
26542 grep -v '^ *+' conftest.er1 >conftest.err
26544 cat conftest.err >&5
26545 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
26546 (exit $ac_status); } >/dev/null && {
26547 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26548 test ! -s conftest.err
26550 ac_header_preproc=yes
26552 echo "$as_me: failed program was
:" >&5
26553 sed 's/^/| /' conftest.$ac_ext >&5
26555 ac_header_preproc=no
26558 rm -f conftest.err conftest.$ac_ext
26559 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
26560 echo "${ECHO_T}$ac_header_preproc" >&6; }
26562 # So? What about this header?
26563 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26565 { echo "$as_me:$LINENO: WARNING
: altivec.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
26566 echo "$as_me: WARNING
: altivec.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
26567 { echo "$as_me:$LINENO: WARNING
: altivec.h
: proceeding with the compiler
's result" >&5
26568 echo "$as_me: WARNING: altivec.h: proceeding with the compiler's result
" >&2;}
26569 ac_header_preproc=yes
26572 { echo "$as_me:$LINENO: WARNING
: altivec.h
: present but cannot be compiled
" >&5
26573 echo "$as_me: WARNING
: altivec.h
: present but cannot be compiled
" >&2;}
26574 { echo "$as_me:$LINENO: WARNING
: altivec.h
: check
for missing prerequisite headers?
" >&5
26575 echo "$as_me: WARNING
: altivec.h
: check
for missing prerequisite headers?
" >&2;}
26576 { echo "$as_me:$LINENO: WARNING
: altivec.h
: see the Autoconf documentation
" >&5
26577 echo "$as_me: WARNING
: altivec.h
: see the Autoconf documentation
" >&2;}
26578 { echo "$as_me:$LINENO: WARNING
: altivec.h
: section
\"Present But Cannot Be Compiled
\"" >&5
26579 echo "$as_me: WARNING
: altivec.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
26580 { echo "$as_me:$LINENO: WARNING
: altivec.h
: proceeding with the preprocessor
's result" >&5
26581 echo "$as_me: WARNING: altivec.h: proceeding with the preprocessor's result
" >&2;}
26582 { echo "$as_me:$LINENO: WARNING
: altivec.h
: in the future
, the compiler will take precedence
" >&5
26583 echo "$as_me: WARNING
: altivec.h
: in the future
, the compiler will take precedence
" >&2;}
26587 { echo "$as_me:$LINENO: checking
for altivec.h
" >&5
26588 echo $ECHO_N "checking
for altivec.h...
$ECHO_C" >&6; }
26589 if test "${ac_cv_header_altivec_h+set}" = set; then
26590 echo $ECHO_N "(cached
) $ECHO_C" >&6
26592 ac_cv_header_altivec_h=$ac_header_preproc
26594 { echo "$as_me:$LINENO: result
: $ac_cv_header_altivec_h" >&5
26595 echo "${ECHO_T}$ac_cv_header_altivec_h" >&6; }
26598 if test $ac_cv_header_altivec_h = yes; then
26599 have_altivec_h_hdr=yes
26604 save_CFLAGS="$CFLAGS"
26605 have_gcc_altivec=no
26606 { echo "$as_me:$LINENO: checking
for Altivec with GCC
-maltivec option
" >&5
26607 echo $ECHO_N "checking
for Altivec with GCC
-maltivec option...
$ECHO_C" >&6; }
26608 altivec_CFLAGS="-maltivec"
26609 CFLAGS="$save_CFLAGS $altivec_CFLAGS"
26611 if test x$have_altivec_h_hdr = xyes; then
26612 cat >conftest.$ac_ext <<_ACEOF
26615 cat confdefs.h >>conftest.$ac_ext
26616 cat >>conftest.$ac_ext <<_ACEOF
26617 /* end confdefs.h. */
26619 #include <altivec.h>
26620 vector unsigned int vzero() {
26621 return vec_splat_u32(0);
26633 rm -f conftest.$ac_objext
26634 if { (ac_try="$ac_compile"
26635 case "(($ac_try" in
26636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26637 *) ac_try_echo=$ac_try;;
26639 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
26640 (eval "$ac_compile") 2>conftest.er1
26642 grep -v '^ *+' conftest.er1 >conftest.err
26644 cat conftest.err >&5
26645 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
26646 (exit $ac_status); } && {
26647 test -z "$ac_c_werror_flag" ||
26648 test ! -s conftest.err
26649 } && test -s conftest.$ac_objext; then
26651 have_gcc_altivec=yes
26654 echo "$as_me: failed program was
:" >&5
26655 sed 's/^/| /' conftest.$ac_ext >&5
26660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26661 { echo "$as_me:$LINENO: result
: $have_gcc_altivec" >&5
26662 echo "${ECHO_T}$have_gcc_altivec" >&6; }
26664 cat >conftest.$ac_ext <<_ACEOF
26667 cat confdefs.h >>conftest.$ac_ext
26668 cat >>conftest.$ac_ext <<_ACEOF
26669 /* end confdefs.h. */
26671 vector unsigned int vzero() {
26672 return vec_splat_u32(0);
26684 rm -f conftest.$ac_objext
26685 if { (ac_try="$ac_compile"
26686 case "(($ac_try" in
26687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26688 *) ac_try_echo=$ac_try;;
26690 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
26691 (eval "$ac_compile") 2>conftest.er1
26693 grep -v '^ *+' conftest.er1 >conftest.err
26695 cat conftest.err >&5
26696 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
26697 (exit $ac_status); } && {
26698 test -z "$ac_c_werror_flag" ||
26699 test ! -s conftest.err
26700 } && test -s conftest.$ac_objext; then
26702 have_gcc_altivec=yes
26705 echo "$as_me: failed program was
:" >&5
26706 sed 's/^/| /' conftest.$ac_ext >&5
26711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26712 { echo "$as_me:$LINENO: result
: $have_gcc_altivec" >&5
26713 echo "${ECHO_T}$have_gcc_altivec" >&6; }
26716 if test x$have_gcc_altivec = xno; then
26717 { echo "$as_me:$LINENO: checking
for Altivec with GCC
-faltivec option
" >&5
26718 echo $ECHO_N "checking
for Altivec with GCC
-faltivec option...
$ECHO_C" >&6; }
26719 altivec_CFLAGS="-faltivec"
26720 CFLAGS="$save_CFLAGS $altivec_CFLAGS"
26721 if test x$have_altivec_h_hdr = xyes; then
26722 cat >conftest.$ac_ext <<_ACEOF
26725 cat confdefs.h >>conftest.$ac_ext
26726 cat >>conftest.$ac_ext <<_ACEOF
26727 /* end confdefs.h. */
26729 #include <altivec.h>
26730 vector unsigned int vzero() {
26731 return vec_splat_u32(0);
26743 rm -f conftest.$ac_objext
26744 if { (ac_try="$ac_compile"
26745 case "(($ac_try" in
26746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26747 *) ac_try_echo=$ac_try;;
26749 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
26750 (eval "$ac_compile") 2>conftest.er1
26752 grep -v '^ *+' conftest.er1 >conftest.err
26754 cat conftest.err >&5
26755 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
26756 (exit $ac_status); } && {
26757 test -z "$ac_c_werror_flag" ||
26758 test ! -s conftest.err
26759 } && test -s conftest.$ac_objext; then
26761 have_gcc_altivec=yes
26764 echo "$as_me: failed program was
:" >&5
26765 sed 's/^/| /' conftest.$ac_ext >&5
26770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26771 { echo "$as_me:$LINENO: result
: $have_gcc_altivec" >&5
26772 echo "${ECHO_T}$have_gcc_altivec" >&6; }
26774 cat >conftest.$ac_ext <<_ACEOF
26777 cat confdefs.h >>conftest.$ac_ext
26778 cat >>conftest.$ac_ext <<_ACEOF
26779 /* end confdefs.h. */
26781 vector unsigned int vzero() {
26782 return vec_splat_u32(0);
26794 rm -f conftest.$ac_objext
26795 if { (ac_try="$ac_compile"
26796 case "(($ac_try" in
26797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26798 *) ac_try_echo=$ac_try;;
26800 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
26801 (eval "$ac_compile") 2>conftest.er1
26803 grep -v '^ *+' conftest.er1 >conftest.err
26805 cat conftest.err >&5
26806 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
26807 (exit $ac_status); } && {
26808 test -z "$ac_c_werror_flag" ||
26809 test ! -s conftest.err
26810 } && test -s conftest.$ac_objext; then
26812 have_gcc_altivec=yes
26815 echo "$as_me: failed program was
:" >&5
26816 sed 's/^/| /' conftest.$ac_ext >&5
26821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26822 { echo "$as_me:$LINENO: result
: $have_gcc_altivec" >&5
26823 echo "${ECHO_T}$have_gcc_altivec" >&6; }
26826 CFLAGS="$save_CFLAGS"
26828 if test x$have_gcc_altivec = xyes; then
26829 cat >>confdefs.h <<\_ACEOF
26830 #define SDL_ALTIVEC_BLITTERS 1
26833 if test x$have_altivec_h_hdr = xyes; then
26834 cat >>confdefs.h <<\_ACEOF
26835 #define HAVE_ALTIVEC_H 1
26839 EXTRA_CFLAGS="$EXTRA_CFLAGS $altivec_CFLAGS"
26844 CheckVisibilityHidden()
26846 { echo "$as_me:$LINENO: checking
for GCC
-fvisibility=hidden option
" >&5
26847 echo $ECHO_N "checking
for GCC
-fvisibility=hidden option...
$ECHO_C" >&6; }
26848 have_gcc_fvisibility=no
26850 visibility_CFLAGS="-fvisibility=hidden
"
26851 save_CFLAGS="$CFLAGS"
26852 CFLAGS="$save_CFLAGS $visibility_CFLAGS -Werror"
26853 cat >conftest.$ac_ext <<_ACEOF
26856 cat confdefs.h >>conftest.$ac_ext
26857 cat >>conftest.$ac_ext <<_ACEOF
26858 /* end confdefs.h. */
26860 #if !defined(__GNUC__) || __GNUC__ < 4
26861 #error SDL only uses visibility attributes in GCC 4 or newer
26873 rm -f conftest.$ac_objext
26874 if { (ac_try="$ac_compile"
26875 case "(($ac_try" in
26876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26877 *) ac_try_echo=$ac_try;;
26879 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
26880 (eval "$ac_compile") 2>conftest.er1
26882 grep -v '^ *+' conftest.er1 >conftest.err
26884 cat conftest.err >&5
26885 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
26886 (exit $ac_status); } && {
26887 test -z "$ac_c_werror_flag" ||
26888 test ! -s conftest.err
26889 } && test -s conftest.$ac_objext; then
26891 have_gcc_fvisibility=yes
26894 echo "$as_me: failed program was
:" >&5
26895 sed 's/^/| /' conftest.$ac_ext >&5
26900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26901 { echo "$as_me:$LINENO: result
: $have_gcc_fvisibility" >&5
26902 echo "${ECHO_T}$have_gcc_fvisibility" >&6; }
26903 CFLAGS="$save_CFLAGS"
26905 if test x$have_gcc_fvisibility = xyes; then
26906 EXTRA_CFLAGS="$EXTRA_CFLAGS $visibility_CFLAGS"
26913 # Check whether --enable-ipod was given.
26914 if test "${enable_ipod+set}" = set; then
26915 enableval=$enable_ipod;
26921 if test x$enable_ipod = xyes; then
26922 EXTRA_CFLAGS="$EXTRA_CFLAGS -DIPOD"
26923 cat >>confdefs.h <<\_ACEOF
26924 #define SDL_VIDEO_DRIVER_IPOD 1
26927 SOURCES="$SOURCES $srcdir/src
/video
/ipod
/*.c
"
26933 # Check whether --enable-video-nanox was given.
26934 if test "${enable_video_nanox+set}" = set; then
26935 enableval=$enable_video_nanox;
26937 enable_video_nanox=no
26941 if test x$enable_video = xyes -a x$enable_video_nanox = xyes; then
26942 # Check whether --enable-nanox-debug was given.
26943 if test "${enable_nanox_debug+set}" = set; then
26944 enableval=$enable_nanox_debug;
26946 enable_nanox_debug=no
26949 if test x$enable_nanox_debug = xyes; then
26950 EXTRA_CFLAGS="$EXTRA_CFLAGS -DENABLE_NANOX_DEBUG"
26953 # Check whether --enable-nanox-share-memory was given.
26954 if test "${enable_nanox_share_memory+set}" = set; then
26955 enableval=$enable_nanox_share_memory;
26957 enable_nanox_share_memory=no
26960 if test x$enable_nanox_share_memory = xyes; then
26961 EXTRA_CFLAGS="$EXTRA_CFLAGS -DNANOX_SHARE_MEMORY"
26964 # Check whether --enable-nanox_direct_fb was given.
26965 if test "${enable_nanox_direct_fb+set}" = set; then
26966 enableval=$enable_nanox_direct_fb;
26968 enable_nanox_direct_fb=no
26971 if test x$enable_nanox_direct_fb = xyes; then
26972 EXTRA_CFLAGS="$EXTRA_CFLAGS -DENABLE_NANOX_DIRECT_FB"
26975 cat >>confdefs.h <<\_ACEOF
26976 #define SDL_VIDEO_DRIVER_NANOX 1
26979 SOURCES="$SOURCES $srcdir/src
/video
/nanox
/*.c
"
26980 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lnano-X"
26987 # Check whether --enable-video-x11 was given.
26988 if test "${enable_video_x11+set}" = set; then
26989 enableval=$enable_video_x11;
26991 enable_video_x11=yes
26994 if test x$enable_video = xyes -a x$enable_video_x11 = xyes; then
26997 # This isn't necessary for X11, but fixes GLX detection
26998 if test "x
$x_includes" = xNONE && test "x
$x_libraries" = xNONE; then
26999 x_includes="/usr
/X11R
6/include
"
27000 x_libraries="/usr
/X11R
6/lib
"
27004 { echo "$as_me:$LINENO: checking
for X
" >&5
27005 echo $ECHO_N "checking
for X...
$ECHO_C" >&6; }
27008 # Check whether --with-x was given.
27009 if test "${with_x+set}" = set; then
27013 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
27014 if test "x
$with_x" = xno; then
27015 # The user explicitly disabled X.
27018 case $x_includes,$x_libraries in #(
27019 *\'*) { { echo "$as_me:$LINENO: error
: Cannot use X directory names containing
'" >&5
27020 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
27021 { (exit 1); exit 1; }; };; #(
27022 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
27023 echo $ECHO_N "(cached
) $ECHO_C" >&6
27025 # One or both of the vars are not set, and there is no cached value.
27026 ac_x_includes=no ac_x_libraries=no
27027 rm -f -r conftest.dir
27028 if mkdir conftest.dir; then
27030 cat >Imakefile <<'_ACEOF'
27032 @echo incroot='${INCROOT}'
27034 @echo usrlibdir='${USRLIBDIR}'
27036 @echo libdir='${LIBDIR}'
27038 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
27039 # GNU make sometimes prints "make[1]: Entering...
", which would confuse us.
27040 for ac_var in incroot usrlibdir libdir; do
27041 eval "ac_im_
$ac_var=\
`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
27043 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
27044 for ac_extension in a so sl; do
27045 if test ! -f "$ac_im_usrlibdir/libX11.
$ac_extension" &&
27046 test -f "$ac_im_libdir/libX11.
$ac_extension"; then
27047 ac_im_usrlibdir=$ac_im_libdir; break
27050 # Screen out bogus values from the imake configuration. They are
27051 # bogus both because they are the default anyway, and because
27052 # using them would break gcc on systems where it needs fixed includes.
27053 case $ac_im_incroot in
27054 /usr/include) ac_x_includes= ;;
27055 *) test -f "$ac_im_incroot/X11
/Xos.h
" && ac_x_includes=$ac_im_incroot;;
27057 case $ac_im_usrlibdir in
27058 /usr/lib | /lib) ;;
27059 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
27063 rm -f -r conftest.dir
27066 # Standard set of common directories for X headers.
27067 # Check X11 before X11Rn because it is often a symlink to the current release.
27079 /usr/local/X11/include
27080 /usr/local/X11R6/include
27081 /usr/local/X11R5/include
27082 /usr/local/X11R4/include
27084 /usr/local/include/X11
27085 /usr/local/include/X11R6
27086 /usr/local/include/X11R5
27087 /usr/local/include/X11R4
27091 /usr/XFree86/include/X11
27095 /usr/unsupported/include
27096 /usr/athena/include
27097 /usr/local/x11r5/include
27098 /usr/lpp/Xamples/include
27100 /usr/openwin/include
27101 /usr/openwin/share/include'
27103 if test "$ac_x_includes" = no; then
27104 # Guess where to find include files, by looking for Xlib.h.
27105 # First, try using that file with no special directory specified.
27106 cat >conftest.$ac_ext <<_ACEOF
27109 cat confdefs.h >>conftest.$ac_ext
27110 cat >>conftest.$ac_ext <<_ACEOF
27111 /* end confdefs.h. */
27112 #include <X11/Xlib.h>
27114 if { (ac_try="$ac_cpp conftest.
$ac_ext"
27115 case "(($ac_try" in
27116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27117 *) ac_try_echo=$ac_try;;
27119 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
27120 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
27122 grep -v '^ *+' conftest.er1 >conftest.err
27124 cat conftest.err >&5
27125 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
27126 (exit $ac_status); } >/dev/null && {
27127 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27128 test ! -s conftest.err
27130 # We can compile using X headers with no special include directory.
27133 echo "$as_me: failed program was
:" >&5
27134 sed 's/^/| /' conftest.$ac_ext >&5
27136 for ac_dir in $ac_x_header_dirs; do
27137 if test -r "$ac_dir/X11
/Xlib.h
"; then
27138 ac_x_includes=$ac_dir
27144 rm -f conftest.err conftest.$ac_ext
27145 fi # $ac_x_includes = no
27147 if test "$ac_x_libraries" = no; then
27148 # Check for the libraries.
27149 # See if we find them without any special options.
27150 # Don't add to $LIBS permanently.
27153 cat >conftest.$ac_ext <<_ACEOF
27156 cat confdefs.h >>conftest.$ac_ext
27157 cat >>conftest.$ac_ext <<_ACEOF
27158 /* end confdefs.h. */
27159 #include <X11/Xlib.h>
27168 rm -f conftest.$ac_objext conftest$ac_exeext
27169 if { (ac_try="$ac_link"
27170 case "(($ac_try" in
27171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27172 *) ac_try_echo=$ac_try;;
27174 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
27175 (eval "$ac_link") 2>conftest.er1
27177 grep -v '^ *+' conftest.er1 >conftest.err
27179 cat conftest.err >&5
27180 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
27181 (exit $ac_status); } && {
27182 test -z "$ac_c_werror_flag" ||
27183 test ! -s conftest.err
27184 } && test -s conftest$ac_exeext &&
27185 $as_test_x conftest$ac_exeext; then
27187 # We can link X programs with no special library path.
27190 echo "$as_me: failed program was
:" >&5
27191 sed 's/^/| /' conftest.$ac_ext >&5
27194 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
27196 # Don't even attempt the hair of trying to link an X program!
27197 for ac_extension in a so sl; do
27198 if test -r "$ac_dir/libX11.
$ac_extension"; then
27199 ac_x_libraries=$ac_dir
27206 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27207 conftest$ac_exeext conftest.$ac_ext
27208 fi # $ac_x_libraries = no
27210 case $ac_x_includes,$ac_x_libraries in #(
27211 no,* | *,no | *\'*)
27212 # Didn't find X, or a directory has "'" in its name.
27213 ac_cv_have_x="have_x=no";; #(
27215 # Record where we found X for the cache.
27216 ac_cv_have_x="have_x=yes\
27217 ac_x_includes='$ac_x_includes'\
27218 ac_x_libraries='$ac_x_libraries'"
27224 eval "$ac_cv_have_x"
27227 if test "$have_x" != yes; then
27228 { echo "$as_me:$LINENO: result: $have_x" >&5
27229 echo "${ECHO_T}$have_x" >&6; }
27232 # If each of the values was on the command line, it overrides each guess.
27233 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
27234 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
27235 # Update the cache value to reflect the command line values.
27236 ac_cv_have_x="have_x=yes\
27237 ac_x_includes='$x_includes'\
27238 ac_x_libraries='$x_libraries'"
27239 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
27240 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
27243 if test "$no_x" = yes; then
27244 # Not all programs may use this symbol, but it does not hurt to define it.
27246 cat >>confdefs.h <<\_ACEOF
27247 #define X_DISPLAY_MISSING 1
27250 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
27252 if test -n "$x_includes"; then
27253 X_CFLAGS="$X_CFLAGS -I$x_includes"
27256 # It would also be nice to do this for all -L options, not just this one.
27257 if test -n "$x_libraries"; then
27258 X_LIBS="$X_LIBS -L$x_libraries"
27259 # For Solaris; some versions of Sun CC require a space after -R and
27260 # others require no space. Words are not sufficient . . . .
27261 { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
27262 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
27263 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
27264 ac_xsave_c_werror_flag=$ac_c_werror_flag
27265 ac_c_werror_flag=yes
27266 cat >conftest.$ac_ext <<_ACEOF
27269 cat confdefs.h >>conftest.$ac_ext
27270 cat >>conftest.$ac_ext <<_ACEOF
27271 /* end confdefs.h. */
27281 rm -f conftest.$ac_objext conftest$ac_exeext
27282 if { (ac_try="$ac_link"
27283 case "(($ac_try" in
27284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27285 *) ac_try_echo=$ac_try;;
27287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27288 (eval "$ac_link") 2>conftest.er1
27290 grep -v '^
*+' conftest.er1 >conftest.err
27292 cat conftest.err >&5
27293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27294 (exit $ac_status); } && {
27295 test -z "$ac_c_werror_flag" ||
27296 test ! -s conftest.err
27297 } && test -s conftest$ac_exeext &&
27298 $as_test_x conftest$ac_exeext; then
27299 { echo "$as_me:$LINENO: result: no" >&5
27300 echo "${ECHO_T}no" >&6; }
27301 X_LIBS="$X_LIBS -R$x_libraries"
27303 echo "$as_me: failed program was:" >&5
27304 sed 's
/^
/|
/' conftest.$ac_ext >&5
27306 LIBS="$ac_xsave_LIBS -R $x_libraries"
27307 cat >conftest.$ac_ext <<_ACEOF
27310 cat confdefs.h >>conftest.$ac_ext
27311 cat >>conftest.$ac_ext <<_ACEOF
27312 /* end confdefs.h. */
27322 rm -f conftest.$ac_objext conftest$ac_exeext
27323 if { (ac_try="$ac_link"
27324 case "(($ac_try" in
27325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27326 *) ac_try_echo=$ac_try;;
27328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27329 (eval "$ac_link") 2>conftest.er1
27331 grep -v '^
*+' conftest.er1 >conftest.err
27333 cat conftest.err >&5
27334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27335 (exit $ac_status); } && {
27336 test -z "$ac_c_werror_flag" ||
27337 test ! -s conftest.err
27338 } && test -s conftest$ac_exeext &&
27339 $as_test_x conftest$ac_exeext; then
27340 { echo "$as_me:$LINENO: result: yes" >&5
27341 echo "${ECHO_T}yes" >&6; }
27342 X_LIBS="$X_LIBS -R $x_libraries"
27344 echo "$as_me: failed program was:" >&5
27345 sed 's
/^
/|
/' conftest.$ac_ext >&5
27347 { echo "$as_me:$LINENO: result: neither works" >&5
27348 echo "${ECHO_T}neither works" >&6; }
27351 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27352 conftest$ac_exeext conftest.$ac_ext
27355 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27356 conftest$ac_exeext conftest.$ac_ext
27357 ac_c_werror_flag=$ac_xsave_c_werror_flag
27358 LIBS=$ac_xsave_LIBS
27361 # Check for system-dependent libraries X programs must link with.
27362 # Do this before checking for the system-independent R6 libraries
27363 # (-lICE), since we may need -lsocket or whatever for X linking.
27365 if test "$ISC" = yes; then
27366 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
27368 # Martyn Johnson says this is needed for Ultrix, if the X
27369 # libraries were built with DECnet support. And Karl Berry says
27370 # the Alpha needs dnet_stub (dnet does not exist).
27371 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
27372 cat >conftest.$ac_ext <<_ACEOF
27375 cat confdefs.h >>conftest.$ac_ext
27376 cat >>conftest.$ac_ext <<_ACEOF
27377 /* end confdefs.h. */
27379 /* Override any GCC internal prototype to avoid an error.
27380 Use char because int might match the return type of a GCC
27381 builtin and then its argument prototype would still apply. */
27385 char XOpenDisplay ();
27389 return XOpenDisplay ();
27394 rm -f conftest.$ac_objext conftest$ac_exeext
27395 if { (ac_try="$ac_link"
27396 case "(($ac_try" in
27397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27398 *) ac_try_echo=$ac_try;;
27400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27401 (eval "$ac_link") 2>conftest.er1
27403 grep -v '^
*+' conftest.er1 >conftest.err
27405 cat conftest.err >&5
27406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27407 (exit $ac_status); } && {
27408 test -z "$ac_c_werror_flag" ||
27409 test ! -s conftest.err
27410 } && test -s conftest$ac_exeext &&
27411 $as_test_x conftest$ac_exeext; then
27414 echo "$as_me: failed program was:" >&5
27415 sed 's
/^
/|
/' conftest.$ac_ext >&5
27417 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
27418 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
27419 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
27420 echo $ECHO_N "(cached) $ECHO_C" >&6
27422 ac_check_lib_save_LIBS=$LIBS
27423 LIBS="-ldnet $LIBS"
27424 cat >conftest.$ac_ext <<_ACEOF
27427 cat confdefs.h >>conftest.$ac_ext
27428 cat >>conftest.$ac_ext <<_ACEOF
27429 /* end confdefs.h. */
27431 /* Override any GCC internal prototype to avoid an error.
27432 Use char because int might match the return type of a GCC
27433 builtin and then its argument prototype would still apply. */
27441 return dnet_ntoa ();
27446 rm -f conftest.$ac_objext conftest$ac_exeext
27447 if { (ac_try="$ac_link"
27448 case "(($ac_try" in
27449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27450 *) ac_try_echo=$ac_try;;
27452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27453 (eval "$ac_link") 2>conftest.er1
27455 grep -v '^
*+' conftest.er1 >conftest.err
27457 cat conftest.err >&5
27458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27459 (exit $ac_status); } && {
27460 test -z "$ac_c_werror_flag" ||
27461 test ! -s conftest.err
27462 } && test -s conftest$ac_exeext &&
27463 $as_test_x conftest$ac_exeext; then
27464 ac_cv_lib_dnet_dnet_ntoa=yes
27466 echo "$as_me: failed program was:" >&5
27467 sed 's
/^
/|
/' conftest.$ac_ext >&5
27469 ac_cv_lib_dnet_dnet_ntoa=no
27472 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27473 conftest$ac_exeext conftest.$ac_ext
27474 LIBS=$ac_check_lib_save_LIBS
27476 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
27477 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
27478 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
27479 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
27482 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
27483 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
27484 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
27485 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
27486 echo $ECHO_N "(cached) $ECHO_C" >&6
27488 ac_check_lib_save_LIBS=$LIBS
27489 LIBS="-ldnet_stub $LIBS"
27490 cat >conftest.$ac_ext <<_ACEOF
27493 cat confdefs.h >>conftest.$ac_ext
27494 cat >>conftest.$ac_ext <<_ACEOF
27495 /* end confdefs.h. */
27497 /* Override any GCC internal prototype to avoid an error.
27498 Use char because int might match the return type of a GCC
27499 builtin and then its argument prototype would still apply. */
27507 return dnet_ntoa ();
27512 rm -f conftest.$ac_objext conftest$ac_exeext
27513 if { (ac_try="$ac_link"
27514 case "(($ac_try" in
27515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27516 *) ac_try_echo=$ac_try;;
27518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27519 (eval "$ac_link") 2>conftest.er1
27521 grep -v '^
*+' conftest.er1 >conftest.err
27523 cat conftest.err >&5
27524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27525 (exit $ac_status); } && {
27526 test -z "$ac_c_werror_flag" ||
27527 test ! -s conftest.err
27528 } && test -s conftest$ac_exeext &&
27529 $as_test_x conftest$ac_exeext; then
27530 ac_cv_lib_dnet_stub_dnet_ntoa=yes
27532 echo "$as_me: failed program was:" >&5
27533 sed 's
/^
/|
/' conftest.$ac_ext >&5
27535 ac_cv_lib_dnet_stub_dnet_ntoa=no
27538 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27539 conftest$ac_exeext conftest.$ac_ext
27540 LIBS=$ac_check_lib_save_LIBS
27542 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
27543 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
27544 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
27545 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
27551 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27552 conftest$ac_exeext conftest.$ac_ext
27553 LIBS="$ac_xsave_LIBS"
27555 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
27556 # to get the SysV transport functions.
27557 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
27559 # The nsl library prevents programs from opening the X display
27560 # on Irix 5.2, according to T.E. Dickey.
27561 # The functions gethostbyname, getservbyname, and inet_addr are
27562 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
27563 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
27564 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
27565 if test "${ac_cv_func_gethostbyname+set}" = set; then
27566 echo $ECHO_N "(cached) $ECHO_C" >&6
27568 cat >conftest.$ac_ext <<_ACEOF
27571 cat confdefs.h >>conftest.$ac_ext
27572 cat >>conftest.$ac_ext <<_ACEOF
27573 /* end confdefs.h. */
27574 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
27575 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27576 #define gethostbyname innocuous_gethostbyname
27578 /* System header to define __stub macros and hopefully few prototypes,
27579 which can conflict with char gethostbyname (); below.
27580 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27581 <limits.h> exists even on freestanding compilers. */
27584 # include <limits.h>
27586 # include <assert.h>
27589 #undef gethostbyname
27591 /* Override any GCC internal prototype to avoid an error.
27592 Use char because int might match the return type of a GCC
27593 builtin and then its argument prototype would still apply. */
27597 char gethostbyname ();
27598 /* The GNU C library defines this for functions which it implements
27599 to always fail with ENOSYS. Some functions are actually named
27600 something starting with __ and the normal name is an alias. */
27601 #if defined __stub_gethostbyname || defined __stub___gethostbyname
27608 return gethostbyname ();
27613 rm -f conftest.$ac_objext conftest$ac_exeext
27614 if { (ac_try="$ac_link"
27615 case "(($ac_try" in
27616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27617 *) ac_try_echo=$ac_try;;
27619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27620 (eval "$ac_link") 2>conftest.er1
27622 grep -v '^
*+' conftest.er1 >conftest.err
27624 cat conftest.err >&5
27625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27626 (exit $ac_status); } && {
27627 test -z "$ac_c_werror_flag" ||
27628 test ! -s conftest.err
27629 } && test -s conftest$ac_exeext &&
27630 $as_test_x conftest$ac_exeext; then
27631 ac_cv_func_gethostbyname=yes
27633 echo "$as_me: failed program was:" >&5
27634 sed 's
/^
/|
/' conftest.$ac_ext >&5
27636 ac_cv_func_gethostbyname=no
27639 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27640 conftest$ac_exeext conftest.$ac_ext
27642 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
27643 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
27645 if test $ac_cv_func_gethostbyname = no; then
27646 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
27647 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
27648 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
27649 echo $ECHO_N "(cached) $ECHO_C" >&6
27651 ac_check_lib_save_LIBS=$LIBS
27653 cat >conftest.$ac_ext <<_ACEOF
27656 cat confdefs.h >>conftest.$ac_ext
27657 cat >>conftest.$ac_ext <<_ACEOF
27658 /* end confdefs.h. */
27660 /* Override any GCC internal prototype to avoid an error.
27661 Use char because int might match the return type of a GCC
27662 builtin and then its argument prototype would still apply. */
27666 char gethostbyname ();
27670 return gethostbyname ();
27675 rm -f conftest.$ac_objext conftest$ac_exeext
27676 if { (ac_try="$ac_link"
27677 case "(($ac_try" in
27678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27679 *) ac_try_echo=$ac_try;;
27681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27682 (eval "$ac_link") 2>conftest.er1
27684 grep -v '^
*+' conftest.er1 >conftest.err
27686 cat conftest.err >&5
27687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27688 (exit $ac_status); } && {
27689 test -z "$ac_c_werror_flag" ||
27690 test ! -s conftest.err
27691 } && test -s conftest$ac_exeext &&
27692 $as_test_x conftest$ac_exeext; then
27693 ac_cv_lib_nsl_gethostbyname=yes
27695 echo "$as_me: failed program was:" >&5
27696 sed 's
/^
/|
/' conftest.$ac_ext >&5
27698 ac_cv_lib_nsl_gethostbyname=no
27701 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27702 conftest$ac_exeext conftest.$ac_ext
27703 LIBS=$ac_check_lib_save_LIBS
27705 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
27706 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
27707 if test $ac_cv_lib_nsl_gethostbyname = yes; then
27708 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
27711 if test $ac_cv_lib_nsl_gethostbyname = no; then
27712 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
27713 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
27714 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
27715 echo $ECHO_N "(cached) $ECHO_C" >&6
27717 ac_check_lib_save_LIBS=$LIBS
27719 cat >conftest.$ac_ext <<_ACEOF
27722 cat confdefs.h >>conftest.$ac_ext
27723 cat >>conftest.$ac_ext <<_ACEOF
27724 /* end confdefs.h. */
27726 /* Override any GCC internal prototype to avoid an error.
27727 Use char because int might match the return type of a GCC
27728 builtin and then its argument prototype would still apply. */
27732 char gethostbyname ();
27736 return gethostbyname ();
27741 rm -f conftest.$ac_objext conftest$ac_exeext
27742 if { (ac_try="$ac_link"
27743 case "(($ac_try" in
27744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27745 *) ac_try_echo=$ac_try;;
27747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27748 (eval "$ac_link") 2>conftest.er1
27750 grep -v '^
*+' conftest.er1 >conftest.err
27752 cat conftest.err >&5
27753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27754 (exit $ac_status); } && {
27755 test -z "$ac_c_werror_flag" ||
27756 test ! -s conftest.err
27757 } && test -s conftest$ac_exeext &&
27758 $as_test_x conftest$ac_exeext; then
27759 ac_cv_lib_bsd_gethostbyname=yes
27761 echo "$as_me: failed program was:" >&5
27762 sed 's
/^
/|
/' conftest.$ac_ext >&5
27764 ac_cv_lib_bsd_gethostbyname=no
27767 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27768 conftest$ac_exeext conftest.$ac_ext
27769 LIBS=$ac_check_lib_save_LIBS
27771 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
27772 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
27773 if test $ac_cv_lib_bsd_gethostbyname = yes; then
27774 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
27780 # lieder@skyler.mavd.honeywell.com says without -lsocket,
27781 # socket/setsockopt and other routines are undefined under SCO ODT
27782 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
27783 # on later versions), says Simon Leinen: it contains gethostby*
27784 # variants that don't use the name server
(or something
).
-lsocket
27785 # must be given before -lnsl if both are needed. We assume that
27786 # if connect needs -lnsl, so does gethostbyname.
27787 { echo "$as_me:$LINENO: checking for connect" >&5
27788 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
27789 if test "${ac_cv_func_connect+set}" = set; then
27790 echo $ECHO_N "(cached) $ECHO_C" >&6
27792 cat >conftest.
$ac_ext <<_ACEOF
27795 cat confdefs.h
>>conftest.
$ac_ext
27796 cat >>conftest.
$ac_ext <<_ACEOF
27797 /* end confdefs.h. */
27798 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
27799 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27800 #define connect innocuous_connect
27802 /* System header to define __stub macros and hopefully few prototypes,
27803 which can conflict with char connect (); below.
27804 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27805 <limits.h> exists even on freestanding compilers. */
27808 # include <limits.h>
27810 # include <assert.h>
27815 /* Override any GCC internal prototype to avoid an error.
27816 Use char because int might match the return type of a GCC
27817 builtin and then its argument prototype would still apply. */
27822 /* The GNU C library defines this for functions which it implements
27823 to always fail with ENOSYS. Some functions are actually named
27824 something starting with __ and the normal name is an alias. */
27825 #if defined __stub_connect || defined __stub___connect
27837 rm -f conftest.
$ac_objext conftest
$ac_exeext
27838 if { (ac_try
="$ac_link"
27839 case "(($ac_try" in
27840 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27841 *) ac_try_echo=$ac_try;;
27843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27844 (eval "$ac_link") 2>conftest.er1
27846 grep -v '^ *+' conftest.er1 >conftest.err
27848 cat conftest.err >&5
27849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27850 (exit $ac_status); } && {
27851 test -z "$ac_c_werror_flag" ||
27852 test ! -s conftest.err
27853 } && test -s conftest$ac_exeext &&
27854 $as_test_x conftest$ac_exeext; then
27855 ac_cv_func_connect=yes
27857 echo "$as_me: failed program was:" >&5
27858 sed 's/^/| /' conftest.$ac_ext >&5
27860 ac_cv_func_connect=no
27863 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27864 conftest$ac_exeext conftest.$ac_ext
27866 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
27867 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
27869 if test $ac_cv_func_connect = no; then
27870 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
27871 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
27872 if test "${ac_cv_lib_socket_connect+set}" = set; then
27873 echo $ECHO_N "(cached) $ECHO_C" >&6
27875 ac_check_lib_save_LIBS=$LIBS
27876 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
27877 cat >conftest.$ac_ext <<_ACEOF
27880 cat confdefs.h >>conftest.$ac_ext
27881 cat >>conftest.$ac_ext <<_ACEOF
27882 /* end confdefs.h. */
27884 /* Override any GCC internal prototype to avoid an error.
27885 Use char because int might match the return type of a GCC
27886 builtin and then its argument prototype would still apply. */
27899 rm -f conftest.$ac_objext conftest$ac_exeext
27900 if { (ac_try="$ac_link"
27901 case "(($ac_try" in
27902 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27903 *) ac_try_echo
=$ac_try;;
27905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27906 (eval "$ac_link") 2>conftest.er1
27908 grep -v '^ *+' conftest.er1
>conftest.err
27910 cat conftest.err
>&5
27911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27912 (exit $ac_status); } && {
27913 test -z "$ac_c_werror_flag" ||
27914 test ! -s conftest.err
27915 } && test -s conftest
$ac_exeext &&
27916 $as_test_x conftest
$ac_exeext; then
27917 ac_cv_lib_socket_connect
=yes
27919 echo "$as_me: failed program was:" >&5
27920 sed 's/^/| /' conftest.
$ac_ext >&5
27922 ac_cv_lib_socket_connect
=no
27925 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
27926 conftest
$ac_exeext conftest.
$ac_ext
27927 LIBS
=$ac_check_lib_save_LIBS
27929 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
27930 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
27931 if test $ac_cv_lib_socket_connect = yes; then
27932 X_EXTRA_LIBS
="-lsocket $X_EXTRA_LIBS"
27937 # Guillermo Gomez says -lposix is necessary on A/UX.
27938 { echo "$as_me:$LINENO: checking for remove" >&5
27939 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
27940 if test "${ac_cv_func_remove+set}" = set; then
27941 echo $ECHO_N "(cached) $ECHO_C" >&6
27943 cat >conftest.
$ac_ext <<_ACEOF
27946 cat confdefs.h
>>conftest.
$ac_ext
27947 cat >>conftest.
$ac_ext <<_ACEOF
27948 /* end confdefs.h. */
27949 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
27950 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27951 #define remove innocuous_remove
27953 /* System header to define __stub macros and hopefully few prototypes,
27954 which can conflict with char remove (); below.
27955 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27956 <limits.h> exists even on freestanding compilers. */
27959 # include <limits.h>
27961 # include <assert.h>
27966 /* Override any GCC internal prototype to avoid an error.
27967 Use char because int might match the return type of a GCC
27968 builtin and then its argument prototype would still apply. */
27973 /* The GNU C library defines this for functions which it implements
27974 to always fail with ENOSYS. Some functions are actually named
27975 something starting with __ and the normal name is an alias. */
27976 #if defined __stub_remove || defined __stub___remove
27988 rm -f conftest.
$ac_objext conftest
$ac_exeext
27989 if { (ac_try
="$ac_link"
27990 case "(($ac_try" in
27991 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27992 *) ac_try_echo=$ac_try;;
27994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27995 (eval "$ac_link") 2>conftest.er1
27997 grep -v '^ *+' conftest.er1 >conftest.err
27999 cat conftest.err >&5
28000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28001 (exit $ac_status); } && {
28002 test -z "$ac_c_werror_flag" ||
28003 test ! -s conftest.err
28004 } && test -s conftest$ac_exeext &&
28005 $as_test_x conftest$ac_exeext; then
28006 ac_cv_func_remove=yes
28008 echo "$as_me: failed program was:" >&5
28009 sed 's/^/| /' conftest.$ac_ext >&5
28011 ac_cv_func_remove=no
28014 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28015 conftest$ac_exeext conftest.$ac_ext
28017 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
28018 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
28020 if test $ac_cv_func_remove = no; then
28021 { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
28022 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
28023 if test "${ac_cv_lib_posix_remove+set}" = set; then
28024 echo $ECHO_N "(cached) $ECHO_C" >&6
28026 ac_check_lib_save_LIBS=$LIBS
28027 LIBS="-lposix $LIBS"
28028 cat >conftest.$ac_ext <<_ACEOF
28031 cat confdefs.h >>conftest.$ac_ext
28032 cat >>conftest.$ac_ext <<_ACEOF
28033 /* end confdefs.h. */
28035 /* Override any GCC internal prototype to avoid an error.
28036 Use char because int might match the return type of a GCC
28037 builtin and then its argument prototype would still apply. */
28050 rm -f conftest.$ac_objext conftest$ac_exeext
28051 if { (ac_try="$ac_link"
28052 case "(($ac_try" in
28053 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28054 *) ac_try_echo
=$ac_try;;
28056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28057 (eval "$ac_link") 2>conftest.er1
28059 grep -v '^ *+' conftest.er1
>conftest.err
28061 cat conftest.err
>&5
28062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28063 (exit $ac_status); } && {
28064 test -z "$ac_c_werror_flag" ||
28065 test ! -s conftest.err
28066 } && test -s conftest
$ac_exeext &&
28067 $as_test_x conftest
$ac_exeext; then
28068 ac_cv_lib_posix_remove
=yes
28070 echo "$as_me: failed program was:" >&5
28071 sed 's/^/| /' conftest.
$ac_ext >&5
28073 ac_cv_lib_posix_remove
=no
28076 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
28077 conftest
$ac_exeext conftest.
$ac_ext
28078 LIBS
=$ac_check_lib_save_LIBS
28080 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
28081 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
28082 if test $ac_cv_lib_posix_remove = yes; then
28083 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lposix"
28088 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
28089 { echo "$as_me:$LINENO: checking for shmat" >&5
28090 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
28091 if test "${ac_cv_func_shmat+set}" = set; then
28092 echo $ECHO_N "(cached) $ECHO_C" >&6
28094 cat >conftest.
$ac_ext <<_ACEOF
28097 cat confdefs.h
>>conftest.
$ac_ext
28098 cat >>conftest.
$ac_ext <<_ACEOF
28099 /* end confdefs.h. */
28100 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
28101 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28102 #define shmat innocuous_shmat
28104 /* System header to define __stub macros and hopefully few prototypes,
28105 which can conflict with char shmat (); below.
28106 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28107 <limits.h> exists even on freestanding compilers. */
28110 # include <limits.h>
28112 # include <assert.h>
28117 /* Override any GCC internal prototype to avoid an error.
28118 Use char because int might match the return type of a GCC
28119 builtin and then its argument prototype would still apply. */
28124 /* The GNU C library defines this for functions which it implements
28125 to always fail with ENOSYS. Some functions are actually named
28126 something starting with __ and the normal name is an alias. */
28127 #if defined __stub_shmat || defined __stub___shmat
28139 rm -f conftest.
$ac_objext conftest
$ac_exeext
28140 if { (ac_try
="$ac_link"
28141 case "(($ac_try" in
28142 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28143 *) ac_try_echo=$ac_try;;
28145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28146 (eval "$ac_link") 2>conftest.er1
28148 grep -v '^ *+' conftest.er1 >conftest.err
28150 cat conftest.err >&5
28151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28152 (exit $ac_status); } && {
28153 test -z "$ac_c_werror_flag" ||
28154 test ! -s conftest.err
28155 } && test -s conftest$ac_exeext &&
28156 $as_test_x conftest$ac_exeext; then
28157 ac_cv_func_shmat=yes
28159 echo "$as_me: failed program was:" >&5
28160 sed 's/^/| /' conftest.$ac_ext >&5
28162 ac_cv_func_shmat=no
28165 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28166 conftest$ac_exeext conftest.$ac_ext
28168 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
28169 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
28171 if test $ac_cv_func_shmat = no; then
28172 { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
28173 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
28174 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
28175 echo $ECHO_N "(cached) $ECHO_C" >&6
28177 ac_check_lib_save_LIBS=$LIBS
28179 cat >conftest.$ac_ext <<_ACEOF
28182 cat confdefs.h >>conftest.$ac_ext
28183 cat >>conftest.$ac_ext <<_ACEOF
28184 /* end confdefs.h. */
28186 /* Override any GCC internal prototype to avoid an error.
28187 Use char because int might match the return type of a GCC
28188 builtin and then its argument prototype would still apply. */
28201 rm -f conftest.$ac_objext conftest$ac_exeext
28202 if { (ac_try="$ac_link"
28203 case "(($ac_try" in
28204 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28205 *) ac_try_echo
=$ac_try;;
28207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28208 (eval "$ac_link") 2>conftest.er1
28210 grep -v '^ *+' conftest.er1
>conftest.err
28212 cat conftest.err
>&5
28213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28214 (exit $ac_status); } && {
28215 test -z "$ac_c_werror_flag" ||
28216 test ! -s conftest.err
28217 } && test -s conftest
$ac_exeext &&
28218 $as_test_x conftest
$ac_exeext; then
28219 ac_cv_lib_ipc_shmat
=yes
28221 echo "$as_me: failed program was:" >&5
28222 sed 's/^/| /' conftest.
$ac_ext >&5
28224 ac_cv_lib_ipc_shmat
=no
28227 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
28228 conftest
$ac_exeext conftest.
$ac_ext
28229 LIBS
=$ac_check_lib_save_LIBS
28231 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
28232 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
28233 if test $ac_cv_lib_ipc_shmat = yes; then
28234 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lipc"
28240 # Check for libraries that X11R6 Xt/Xaw programs need.
28241 ac_save_LDFLAGS
=$LDFLAGS
28242 test -n "$x_libraries" && LDFLAGS
="$LDFLAGS -L$x_libraries"
28243 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
28244 # check for ICE first), but we must link in the order -lSM -lICE or
28245 # we get undefined symbols. So assume we have SM if we have ICE.
28246 # These have to be linked with before -lX11, unlike the other
28247 # libraries we check for below, so use a different variable.
28248 # John Interrante, Karl Berry
28249 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
28250 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
28251 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
28252 echo $ECHO_N "(cached) $ECHO_C" >&6
28254 ac_check_lib_save_LIBS
=$LIBS
28255 LIBS
="-lICE $X_EXTRA_LIBS $LIBS"
28256 cat >conftest.
$ac_ext <<_ACEOF
28259 cat confdefs.h
>>conftest.
$ac_ext
28260 cat >>conftest.
$ac_ext <<_ACEOF
28261 /* end confdefs.h. */
28263 /* Override any GCC internal prototype to avoid an error.
28264 Use char because int might match the return type of a GCC
28265 builtin and then its argument prototype would still apply. */
28269 char IceConnectionNumber ();
28273 return IceConnectionNumber ();
28278 rm -f conftest.
$ac_objext conftest
$ac_exeext
28279 if { (ac_try
="$ac_link"
28280 case "(($ac_try" in
28281 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28282 *) ac_try_echo=$ac_try;;
28284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28285 (eval "$ac_link") 2>conftest.er1
28287 grep -v '^ *+' conftest.er1 >conftest.err
28289 cat conftest.err >&5
28290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28291 (exit $ac_status); } && {
28292 test -z "$ac_c_werror_flag" ||
28293 test ! -s conftest.err
28294 } && test -s conftest$ac_exeext &&
28295 $as_test_x conftest$ac_exeext; then
28296 ac_cv_lib_ICE_IceConnectionNumber=yes
28298 echo "$as_me: failed program was:" >&5
28299 sed 's/^/| /' conftest.$ac_ext >&5
28301 ac_cv_lib_ICE_IceConnectionNumber=no
28304 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28305 conftest$ac_exeext conftest.$ac_ext
28306 LIBS=$ac_check_lib_save_LIBS
28308 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
28309 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
28310 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
28311 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
28314 LDFLAGS=$ac_save_LDFLAGS
28318 if test x$have_x = xyes; then
28319 # Only allow dynamically loaded X11 if the X11 function pointers
28320 # will not end up in the global namespace, which causes problems
28321 # with other libraries calling X11 functions.
28322 x11_symbols_private=$have_gcc_fvisibility
28324 # Check whether --enable-x11-shared was given.
28325 if test "${enable_x11_shared+set}" = set; then
28326 enableval=$enable_x11_shared;
28328 enable_x11_shared=maybe
28333 *-*-darwin*) # Latest Mac OS X actually ships with Xrandr/Xrender libs...
28334 x11_symbols_private=yes
28335 x11_lib='/usr/X11R6/lib/libX11.6.dylib'
28336 x11ext_lib='/usr/X11R6/lib/libXext.6.dylib'
28337 xrender_lib='/usr/X11R6/lib/libXrender.1.dylib'
28338 xrandr_lib='/usr/X11R6/lib/libXrandr.2.dylib'
28341 x11_lib='libX11.so'
28342 x11ext_lib='libXext.so'
28344 *-*-irix*) # IRIX 6.5 requires that we use /usr/lib32
28345 x11_lib='libX11.so'
28346 x11ext_lib='libXext.so'
28349 x11_lib_path=`echo $X_LIBS |
sed 's/.*-L\([^ ]*\).*/\1/'`
28350 for path in $x11_lib_path /usr/lib /usr/X11/lib /usr/X11R6/lib; do
28351 if test "x$x11_lib" = "x"; then
28352 x11_lib=`ls -- $path/libX11.so.
[0-9] 2>/dev
/null |
sort -r |
sed 's/.*\/\(.*\)/\1/; q'`
28353 if test "x$x11_lib" = "x"; then
28354 x11_lib=`ls -- $path/libX11.so.
[0-9]* 2>/dev
/null |
sort -r |
sed 's/.*\/\(.*\)/\1/; q'`
28357 if test "x$x11ext_lib" = "x"; then
28358 x11ext_lib=`ls -- $path/libXext.so.
[0-9] 2>/dev
/null |
sort -r |
sed 's/.*\/\(.*\)/\1/; q'`
28359 if test "x$x11ext_lib" = "x"; then
28360 x11ext_lib=`ls -- $path/libXext.so.
[0-9]* 2>/dev
/null |
sort -r |
sed 's/.*\/\(.*\)/\1/; q'`
28363 if test "x$xrender_lib" = "x"; then
28364 xrender_lib=`ls -- $path/libXrender.so.
[0-9] 2>/dev
/null |
sort -r |
sed 's/.*\/\(.*\)/\1/; q'`
28365 if test "x$xrender_lib" = "x"; then
28366 xrender_lib=`ls -- $path/libXrender.so.
[0-9]* 2>/dev
/null |
sort -r |
sed 's/.*\/\(.*\)/\1/; q'`
28369 if test "x$xrandr_lib" = "x"; then
28370 xrandr_lib=`ls -- $path/libXrandr.so.
[0-9] 2>/dev
/null |
sort -r |
sed 's/.*\/\(.*\)/\1/; q'`
28371 if test "x$xrandr_lib" = "x"; then
28372 xrandr_lib=`ls -- $path/libXrandr.so.
[0-9]* 2>/dev
/null |
sort -r |
sed 's/.*\/\(.*\)/\1/; q'`
28379 X_CFLAGS="$X_CFLAGS -DXTHREADS"
28380 if test x$ac_cv_func_shmat != xyes; then
28381 X_CFLAGS="$X_CFLAGS -DNO_SHARED_MEMORY"
28383 CFLAGS="$CFLAGS $X_CFLAGS"
28384 LDFLAGS="$LDFLAGS $X_LIBS"
28386 cat >>confdefs.h <<\_ACEOF
28387 #define SDL_VIDEO_DRIVER_X11 1
28390 SOURCES="$SOURCES $srcdir/src/video/x11/*.c"
28391 EXTRA_CFLAGS="$EXTRA_CFLAGS $X_CFLAGS"
28393 if test x$enable_x11_shared = xmaybe; then
28394 enable_x11_shared=$x11_symbols_private
28396 if test x$have_loadso != xyes && \
28397 test x$enable_x11_shared = xyes; then
28398 { echo "$as_me:$LINENO: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&5
28399 echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&2;}
28400 enable_x11_shared=no
28402 if test x$x11_symbols_private != xyes && \
28403 test x$enable_x11_shared = xyes; then
28404 { echo "$as_me:$LINENO: WARNING: You must have gcc4 (-fvisibility=hidden) for dynamic X11 loading" >&5
28405 echo "$as_me: WARNING: You must have gcc4 (-fvisibility=hidden) for dynamic X11 loading" >&2;}
28406 enable_x11_shared=no
28409 if test x$have_loadso = xyes && \
28410 test x$enable_x11_shared = xyes && test x$x11_lib != x && test x$x11ext_lib != x; then
28411 echo "-- dynamic libX11 -> $x11_lib"
28412 echo "-- dynamic libX11ext -> $x11ext_lib"
28413 cat >>confdefs.h <<_ACEOF
28414 #define SDL_VIDEO_DRIVER_X11_DYNAMIC "$x11_lib"
28417 cat >>confdefs.h <<_ACEOF
28418 #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT "$x11ext_lib"
28422 enable_x11_shared=no
28423 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $X_LIBS -lX11 -lXext"
28427 # Check whether --enable-dga was given.
28428 if test "${enable_dga+set}" = set; then
28429 enableval=$enable_dga;
28434 if test x$enable_dga = xyes; then
28435 SOURCES="$SOURCES $srcdir/src/video/Xext/Xxf86dga/*.c"
28437 # Check whether --enable-video-dga was given.
28438 if test "${enable_video_dga+set}" = set; then
28439 enableval=$enable_video_dga;
28441 enable_video_dga=yes
28444 if test x$enable_dga = xyes -a x$enable_video_dga = xyes; then
28445 cat >>confdefs.h <<\_ACEOF
28446 #define SDL_VIDEO_DRIVER_DGA 1
28449 SOURCES="$SOURCES $srcdir/src/video/dga/*.c"
28451 # Check whether --enable-video-x11-dgamouse was given.
28452 if test "${enable_video_x11_dgamouse+set}" = set; then
28453 enableval=$enable_video_x11_dgamouse;
28455 enable_video_x11_dgamouse=yes
28458 if test x$enable_dga = xyes -a x$enable_video_x11_dgamouse = xyes; then
28459 cat >>confdefs.h <<\_ACEOF
28460 #define SDL_VIDEO_DRIVER_X11_DGAMOUSE 1
28464 # Check whether --enable-video-x11-vm was given.
28465 if test "${enable_video_x11_vm+set}" = set; then
28466 enableval=$enable_video_x11_vm;
28468 enable_video_x11_vm=yes
28471 if test x$enable_video_x11_vm = xyes; then
28472 cat >>confdefs.h <<\_ACEOF
28473 #define SDL_VIDEO_DRIVER_X11_VIDMODE 1
28476 SOURCES="$SOURCES $srcdir/src/video/Xext/Xxf86vm/*.c"
28478 # Check whether --enable-video-x11-xv was given.
28479 if test "${enable_video_x11_xv+set}" = set; then
28480 enableval=$enable_video_x11_xv;
28482 enable_video_x11_xv=yes
28485 if test x$enable_video_x11_xv = xyes; then
28486 cat >>confdefs.h <<\_ACEOF
28487 #define SDL_VIDEO_DRIVER_X11_XV 1
28490 SOURCES="$SOURCES $srcdir/src/video/Xext/Xv/*.c"
28492 # Check whether --enable-video-x11-xinerama was given.
28493 if test "${enable_video_x11_xinerama+set}" = set; then
28494 enableval=$enable_video_x11_xinerama;
28496 enable_video_x11_xinerama=yes
28499 if test x$enable_video_x11_xinerama = xyes; then
28500 cat >>confdefs.h <<\_ACEOF
28501 #define SDL_VIDEO_DRIVER_X11_XINERAMA 1
28504 SOURCES="$SOURCES $srcdir/src/video/Xext/Xinerama/*.c"
28506 # Check whether --enable-video-x11-xme was given.
28507 if test "${enable_video_x11_xme+set}" = set; then
28508 enableval=$enable_video_x11_xme;
28510 enable_video_x11_xme=yes
28513 if test x$enable_video_x11_xme = xyes; then
28514 cat >>confdefs.h <<\_ACEOF
28515 #define SDL_VIDEO_DRIVER_X11_XME 1
28518 SOURCES="$SOURCES $srcdir/src/video/Xext/XME/*.c"
28520 # Check whether --enable-video-x11-xrandr was given.
28521 if test "${enable_video_x11_xrandr+set}" = set; then
28522 enableval=$enable_video_x11_xrandr;
28524 enable_video_x11_xrandr=yes
28527 if test x$enable_video_x11_xrandr = xyes; then
28528 definitely_enable_video_x11_xrandr=no
28529 { echo "$as_me:$LINENO: checking for X11/extensions/Xrandr.h" >&5
28530 echo $ECHO_N "checking for X11/extensions/Xrandr.h... $ECHO_C" >&6; }
28531 if test "${ac_cv_header_X11_extensions_Xrandr_h+set}" = set; then
28532 echo $ECHO_N "(cached) $ECHO_C" >&6
28534 cat >conftest.$ac_ext <<_ACEOF
28537 cat confdefs.h >>conftest.$ac_ext
28538 cat >>conftest.$ac_ext <<_ACEOF
28539 /* end confdefs.h. */
28540 #include <X11/Xlib.h>
28543 #include <X11/extensions/Xrandr.h>
28545 rm -f conftest.$ac_objext
28546 if { (ac_try="$ac_compile"
28547 case "(($ac_try" in
28548 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28549 *) ac_try_echo
=$ac_try;;
28551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28552 (eval "$ac_compile") 2>conftest.er1
28554 grep -v '^ *+' conftest.er1
>conftest.err
28556 cat conftest.err
>&5
28557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28558 (exit $ac_status); } && {
28559 test -z "$ac_c_werror_flag" ||
28560 test ! -s conftest.err
28561 } && test -s conftest.
$ac_objext; then
28562 ac_cv_header_X11_extensions_Xrandr_h
=yes
28564 echo "$as_me: failed program was:" >&5
28565 sed 's/^/| /' conftest.
$ac_ext >&5
28567 ac_cv_header_X11_extensions_Xrandr_h
=no
28570 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
28572 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_Xrandr_h" >&5
28573 echo "${ECHO_T}$ac_cv_header_X11_extensions_Xrandr_h" >&6; }
28574 if test $ac_cv_header_X11_extensions_Xrandr_h = yes; then
28575 have_xrandr_h_hdr
=yes
28577 have_xrandr_h_hdr
=no
28581 if test x
$have_xrandr_h_hdr = xyes
; then
28582 if test x
$enable_x11_shared = xyes
&& test x
$xrandr_lib != x
; then
28583 echo "-- dynamic libXrender -> $xrender_lib"
28584 echo "-- dynamic libXrandr -> $xrandr_lib"
28585 cat >>confdefs.h
<<_ACEOF
28586 #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRENDER "$xrender_lib"
28589 cat >>confdefs.h
<<_ACEOF
28590 #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR "$xrandr_lib"
28593 definitely_enable_video_x11_xrandr
=yes
28595 { echo "$as_me:$LINENO: checking for XRenderQueryExtension in -lXrender" >&5
28596 echo $ECHO_N "checking for XRenderQueryExtension in -lXrender... $ECHO_C" >&6; }
28597 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then
28598 echo $ECHO_N "(cached) $ECHO_C" >&6
28600 ac_check_lib_save_LIBS
=$LIBS
28601 LIBS
="-lXrender $LIBS"
28602 cat >conftest.
$ac_ext <<_ACEOF
28605 cat confdefs.h
>>conftest.
$ac_ext
28606 cat >>conftest.
$ac_ext <<_ACEOF
28607 /* end confdefs.h. */
28609 /* Override any GCC internal prototype to avoid an error.
28610 Use char because int might match the return type of a GCC
28611 builtin and then its argument prototype would still apply. */
28615 char XRenderQueryExtension ();
28619 return XRenderQueryExtension ();
28624 rm -f conftest.
$ac_objext conftest
$ac_exeext
28625 if { (ac_try
="$ac_link"
28626 case "(($ac_try" in
28627 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28628 *) ac_try_echo=$ac_try;;
28630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28631 (eval "$ac_link") 2>conftest.er1
28633 grep -v '^ *+' conftest.er1 >conftest.err
28635 cat conftest.err >&5
28636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28637 (exit $ac_status); } && {
28638 test -z "$ac_c_werror_flag" ||
28639 test ! -s conftest.err
28640 } && test -s conftest$ac_exeext &&
28641 $as_test_x conftest$ac_exeext; then
28642 ac_cv_lib_Xrender_XRenderQueryExtension=yes
28644 echo "$as_me: failed program was:" >&5
28645 sed 's/^/| /' conftest.$ac_ext >&5
28647 ac_cv_lib_Xrender_XRenderQueryExtension=no
28650 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28651 conftest$ac_exeext conftest.$ac_ext
28652 LIBS=$ac_check_lib_save_LIBS
28654 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
28655 echo "${ECHO_T}$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
28656 if test $ac_cv_lib_Xrender_XRenderQueryExtension = yes; then
28657 have_xrender_lib=yes
28660 { echo "$as_me:$LINENO: checking for XRRQueryExtension in -lXrandr" >&5
28661 echo $ECHO_N "checking for XRRQueryExtension in -lXrandr... $ECHO_C" >&6; }
28662 if test "${ac_cv_lib_Xrandr_XRRQueryExtension+set}" = set; then
28663 echo $ECHO_N "(cached) $ECHO_C" >&6
28665 ac_check_lib_save_LIBS=$LIBS
28666 LIBS="-lXrandr $LIBS"
28667 cat >conftest.$ac_ext <<_ACEOF
28670 cat confdefs.h >>conftest.$ac_ext
28671 cat >>conftest.$ac_ext <<_ACEOF
28672 /* end confdefs.h. */
28674 /* Override any GCC internal prototype to avoid an error.
28675 Use char because int might match the return type of a GCC
28676 builtin and then its argument prototype would still apply. */
28680 char XRRQueryExtension ();
28684 return XRRQueryExtension ();
28689 rm -f conftest.$ac_objext conftest$ac_exeext
28690 if { (ac_try="$ac_link"
28691 case "(($ac_try" in
28692 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28693 *) ac_try_echo
=$ac_try;;
28695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28696 (eval "$ac_link") 2>conftest.er1
28698 grep -v '^ *+' conftest.er1
>conftest.err
28700 cat conftest.err
>&5
28701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28702 (exit $ac_status); } && {
28703 test -z "$ac_c_werror_flag" ||
28704 test ! -s conftest.err
28705 } && test -s conftest
$ac_exeext &&
28706 $as_test_x conftest
$ac_exeext; then
28707 ac_cv_lib_Xrandr_XRRQueryExtension
=yes
28709 echo "$as_me: failed program was:" >&5
28710 sed 's/^/| /' conftest.
$ac_ext >&5
28712 ac_cv_lib_Xrandr_XRRQueryExtension
=no
28715 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
28716 conftest
$ac_exeext conftest.
$ac_ext
28717 LIBS
=$ac_check_lib_save_LIBS
28719 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
28720 echo "${ECHO_T}$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; }
28721 if test $ac_cv_lib_Xrandr_XRRQueryExtension = yes; then
28722 have_xrandr_lib
=yes
28725 if test x
$have_xrender_lib = xyes
&& test x
$have_xrandr_lib = xyes
; then
28726 EXTRA_LDFLAGS
="$EXTRA_LDFLAGS -lXrandr -lXrender"
28727 definitely_enable_video_x11_xrandr
=yes
28732 if test x
$definitely_enable_video_x11_xrandr = xyes
; then
28733 cat >>confdefs.h
<<\_ACEOF
28734 #define SDL_VIDEO_DRIVER_X11_XRANDR 1
28738 # Check whether --enable-video-x11-dpms was given.
28739 if test "${enable_video_x11_dpms+set}" = set; then
28740 enableval
=$enable_video_x11_dpms;
28742 enable_video_x11_dpms
=yes
28745 if test x
$enable_video_x11_dpms = xyes
; then
28746 { echo "$as_me:$LINENO: checking for X11/extensions/dpms.h" >&5
28747 echo $ECHO_N "checking for X11/extensions/dpms.h... $ECHO_C" >&6; }
28748 if test "${ac_cv_header_X11_extensions_dpms_h+set}" = set; then
28749 echo $ECHO_N "(cached) $ECHO_C" >&6
28751 cat >conftest.
$ac_ext <<_ACEOF
28754 cat confdefs.h
>>conftest.
$ac_ext
28755 cat >>conftest.
$ac_ext <<_ACEOF
28756 /* end confdefs.h. */
28757 #include <X11/Xlib.h>
28760 #include <X11/extensions/dpms.h>
28762 rm -f conftest.
$ac_objext
28763 if { (ac_try
="$ac_compile"
28764 case "(($ac_try" in
28765 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28766 *) ac_try_echo=$ac_try;;
28768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28769 (eval "$ac_compile") 2>conftest.er1
28771 grep -v '^ *+' conftest.er1 >conftest.err
28773 cat conftest.err >&5
28774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28775 (exit $ac_status); } && {
28776 test -z "$ac_c_werror_flag" ||
28777 test ! -s conftest.err
28778 } && test -s conftest.$ac_objext; then
28779 ac_cv_header_X11_extensions_dpms_h=yes
28781 echo "$as_me: failed program was:" >&5
28782 sed 's/^/| /' conftest.$ac_ext >&5
28784 ac_cv_header_X11_extensions_dpms_h=no
28787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28789 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_dpms_h" >&5
28790 echo "${ECHO_T}$ac_cv_header_X11_extensions_dpms_h" >&6; }
28791 if test $ac_cv_header_X11_extensions_dpms_h = yes; then
28792 have_dpms_h_hdr=yes
28798 if test x$have_dpms_h_hdr = xyes; then
28799 cat >>confdefs.h <<\_ACEOF
28800 #define SDL_VIDEO_DRIVER_X11_DPMS 1
28811 # Check whether --enable-video-photon was given.
28812 if test "${enable_video_photon+set}" = set; then
28813 enableval=$enable_video_photon;
28815 enable_video_photon=yes
28818 if test x$enable_video = xyes -a x$enable_video_photon = xyes; then
28819 { echo "$as_me:$LINENO: checking for QNX Photon support" >&5
28820 echo $ECHO_N "checking for QNX Photon support... $ECHO_C" >&6; }
28822 cat >conftest.$ac_ext <<_ACEOF
28825 cat confdefs.h >>conftest.$ac_ext
28826 cat >>conftest.$ac_ext <<_ACEOF
28827 /* end confdefs.h. */
28831 #include <photon/Pg.h>
28832 #include <photon/PdDirect.h>
28838 PgDisplaySettings_t *visual;
28844 rm -f conftest.$ac_objext
28845 if { (ac_try="$ac_compile"
28846 case "(($ac_try" in
28847 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28848 *) ac_try_echo
=$ac_try;;
28850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28851 (eval "$ac_compile") 2>conftest.er1
28853 grep -v '^ *+' conftest.er1
>conftest.err
28855 cat conftest.err
>&5
28856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28857 (exit $ac_status); } && {
28858 test -z "$ac_c_werror_flag" ||
28859 test ! -s conftest.err
28860 } && test -s conftest.
$ac_objext; then
28865 echo "$as_me: failed program was:" >&5
28866 sed 's/^/| /' conftest.
$ac_ext >&5
28871 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
28872 { echo "$as_me:$LINENO: result: $video_photon" >&5
28873 echo "${ECHO_T}$video_photon" >&6; }
28874 if test x
$video_photon = xyes
; then
28875 cat >>confdefs.h
<<\_ACEOF
28876 #define SDL_VIDEO_DRIVER_PHOTON 1
28879 SOURCES
="$SOURCES $srcdir/src/video/photon/*.c"
28880 EXTRA_LDFLAGS
="$EXTRA_LDFLAGS -lph"
28890 if test x
$enable_video = xyes
; then
28891 cat >>confdefs.h
<<\_ACEOF
28892 #define SDL_VIDEO_DRIVER_BWINDOW 1
28895 SOURCES
="$SOURCES $srcdir/src/video/bwindow/*.cc"
28902 # Check whether --enable-video-carbon was given.
28903 if test "${enable_video_carbon+set}" = set; then
28904 enableval
=$enable_video_carbon;
28906 enable_video_carbon
=no
28909 if test x
$enable_video = xyes
-a x
$enable_video_carbon = xyes
; then
28910 { echo "$as_me:$LINENO: checking for Carbon framework" >&5
28911 echo $ECHO_N "checking for Carbon framework... $ECHO_C" >&6; }
28913 cat >conftest.
$ac_ext <<_ACEOF
28916 cat confdefs.h
>>conftest.
$ac_ext
28917 cat >>conftest.
$ac_ext <<_ACEOF
28918 /* end confdefs.h. */
28920 #include <Carbon/Carbon.h>
28931 rm -f conftest.
$ac_objext
28932 if { (ac_try
="$ac_compile"
28933 case "(($ac_try" in
28934 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28935 *) ac_try_echo=$ac_try;;
28937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28938 (eval "$ac_compile") 2>conftest.er1
28940 grep -v '^ *+' conftest.er1 >conftest.err
28942 cat conftest.err >&5
28943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28944 (exit $ac_status); } && {
28945 test -z "$ac_c_werror_flag" ||
28946 test ! -s conftest.err
28947 } && test -s conftest.$ac_objext; then
28952 echo "$as_me: failed program was:" >&5
28953 sed 's/^/| /' conftest.$ac_ext >&5
28958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28959 { echo "$as_me:$LINENO: result: $have_carbon" >&5
28960 echo "${ECHO_T}$have_carbon" >&6; }
28961 if test x$have_carbon = xyes; then
28962 cat >>confdefs.h <<\_ACEOF
28963 #define SDL_VIDEO_DRIVER_TOOLBOX 1
28966 SOURCES="$SOURCES $srcdir/src/video/maccommon/*.c"
28967 SOURCES="$SOURCES $srcdir/src/video/macrom/*.c"
28975 # Check whether --enable-video-cocoa was given.
28976 if test "${enable_video_cocoa+set}" = set; then
28977 enableval=$enable_video_cocoa;
28979 enable_video_cocoa=yes
28982 if test x$enable_video = xyes -a x$enable_video_cocoa = xyes; then
28983 save_CFLAGS="$CFLAGS"
28984 CFLAGS="$CFLAGS -x objective-c"
28985 { echo "$as_me:$LINENO: checking for Cocoa framework" >&5
28986 echo $ECHO_N "checking for Cocoa framework... $ECHO_C" >&6; }
28988 cat >conftest.$ac_ext <<_ACEOF
28991 cat confdefs.h >>conftest.$ac_ext
28992 cat >>conftest.$ac_ext <<_ACEOF
28993 /* end confdefs.h. */
28995 #import <Cocoa/Cocoa.h>
29006 rm -f conftest.$ac_objext
29007 if { (ac_try="$ac_compile"
29008 case "(($ac_try" in
29009 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29010 *) ac_try_echo
=$ac_try;;
29012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29013 (eval "$ac_compile") 2>conftest.er1
29015 grep -v '^ *+' conftest.er1
>conftest.err
29017 cat conftest.err
>&5
29018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29019 (exit $ac_status); } && {
29020 test -z "$ac_c_werror_flag" ||
29021 test ! -s conftest.err
29022 } && test -s conftest.
$ac_objext; then
29027 echo "$as_me: failed program was:" >&5
29028 sed 's/^/| /' conftest.
$ac_ext >&5
29033 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
29034 { echo "$as_me:$LINENO: result: $have_cocoa" >&5
29035 echo "${ECHO_T}$have_cocoa" >&6; }
29036 CFLAGS
="$save_CFLAGS"
29037 if test x
$have_cocoa = xyes
; then
29038 cat >>confdefs.h
<<\_ACEOF
29039 #define SDL_VIDEO_DRIVER_QUARTZ 1
29042 SOURCES
="$SOURCES $srcdir/src/video/quartz/*.m"
29050 # Check whether --enable-video-fbcon was given.
29051 if test "${enable_video_fbcon+set}" = set; then
29052 enableval
=$enable_video_fbcon;
29054 enable_video_fbcon
=yes
29057 if test x
$enable_video = xyes
-a x
$enable_video_fbcon = xyes
; then
29058 { echo "$as_me:$LINENO: checking for framebuffer console support" >&5
29059 echo $ECHO_N "checking for framebuffer console support... $ECHO_C" >&6; }
29061 cat >conftest.
$ac_ext <<_ACEOF
29064 cat confdefs.h
>>conftest.
$ac_ext
29065 cat >>conftest.
$ac_ext <<_ACEOF
29066 /* end confdefs.h. */
29068 #include <linux/fb.h>
29069 #include <linux/kd.h>
29070 #include <linux/keyboard.h>
29081 rm -f conftest.
$ac_objext
29082 if { (ac_try
="$ac_compile"
29083 case "(($ac_try" in
29084 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29085 *) ac_try_echo=$ac_try;;
29087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29088 (eval "$ac_compile") 2>conftest.er1
29090 grep -v '^ *+' conftest.er1 >conftest.err
29092 cat conftest.err >&5
29093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29094 (exit $ac_status); } && {
29095 test -z "$ac_c_werror_flag" ||
29096 test ! -s conftest.err
29097 } && test -s conftest.$ac_objext; then
29102 echo "$as_me: failed program was:" >&5
29103 sed 's/^/| /' conftest.$ac_ext >&5
29108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29109 { echo "$as_me:$LINENO: result: $video_fbcon" >&5
29110 echo "${ECHO_T}$video_fbcon" >&6; }
29111 if test x$video_fbcon = xyes; then
29113 for ac_func in getpagesize
29115 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
29116 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29117 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29118 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29119 echo $ECHO_N "(cached) $ECHO_C" >&6
29121 cat >conftest.$ac_ext <<_ACEOF
29124 cat confdefs.h >>conftest.$ac_ext
29125 cat >>conftest.$ac_ext <<_ACEOF
29126 /* end confdefs.h. */
29127 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29128 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29129 #define $ac_func innocuous_$ac_func
29131 /* System header to define __stub macros and hopefully few prototypes,
29132 which can conflict with char $ac_func (); below.
29133 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29134 <limits.h> exists even on freestanding compilers. */
29137 # include <limits.h>
29139 # include <assert.h>
29144 /* Override any GCC internal prototype to avoid an error.
29145 Use char because int might match the return type of a GCC
29146 builtin and then its argument prototype would still apply. */
29151 /* The GNU C library defines this for functions which it implements
29152 to always fail with ENOSYS. Some functions are actually named
29153 something starting with __ and the normal name is an alias. */
29154 #if defined __stub_$ac_func || defined __stub___$ac_func
29161 return $ac_func ();
29166 rm -f conftest.$ac_objext conftest$ac_exeext
29167 if { (ac_try="$ac_link"
29168 case "(($ac_try" in
29169 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29170 *) ac_try_echo
=$ac_try;;
29172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29173 (eval "$ac_link") 2>conftest.er1
29175 grep -v '^ *+' conftest.er1
>conftest.err
29177 cat conftest.err
>&5
29178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29179 (exit $ac_status); } && {
29180 test -z "$ac_c_werror_flag" ||
29181 test ! -s conftest.err
29182 } && test -s conftest
$ac_exeext &&
29183 $as_test_x conftest
$ac_exeext; then
29184 eval "$as_ac_var=yes"
29186 echo "$as_me: failed program was:" >&5
29187 sed 's/^/| /' conftest.
$ac_ext >&5
29189 eval "$as_ac_var=no"
29192 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
29193 conftest
$ac_exeext conftest.
$ac_ext
29195 ac_res
=`eval echo '${'$as_ac_var'}'`
29196 { echo "$as_me:$LINENO: result: $ac_res" >&5
29197 echo "${ECHO_T}$ac_res" >&6; }
29198 if test `eval echo '${'$as_ac_var'}'` = yes; then
29199 cat >>confdefs.h
<<_ACEOF
29200 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29206 cat >>confdefs.h
<<\_ACEOF
29207 #define SDL_VIDEO_DRIVER_FBCON 1
29210 SOURCES
="$SOURCES $srcdir/src/video/fbcon/*.c"
29218 # Check whether --enable-video-directfb was given.
29219 if test "${enable_video_directfb+set}" = set; then
29220 enableval
=$enable_video_directfb;
29222 enable_video_directfb
=yes
29225 if test x
$enable_video = xyes
-a x
$enable_video_directfb = xyes
; then
29228 DIRECTFB_REQUIRED_VERSION
=0.9.15
29230 # Extract the first word of "directfb-config", so it can be a program name with args.
29231 set dummy directfb-config
; ac_word
=$2
29232 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29234 if test "${ac_cv_path_DIRECTFBCONFIG+set}" = set; then
29235 echo $ECHO_N "(cached) $ECHO_C" >&6
29237 case $DIRECTFBCONFIG in
29239 ac_cv_path_DIRECTFBCONFIG
="$DIRECTFBCONFIG" # Let the user override the test with a path.
29242 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
29243 for as_dir
in $PATH
29246 test -z "$as_dir" && as_dir
=.
29247 for ac_exec_ext
in '' $ac_executable_extensions; do
29248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29249 ac_cv_path_DIRECTFBCONFIG
="$as_dir/$ac_word$ac_exec_ext"
29250 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29257 test -z "$ac_cv_path_DIRECTFBCONFIG" && ac_cv_path_DIRECTFBCONFIG
="no"
29261 DIRECTFBCONFIG
=$ac_cv_path_DIRECTFBCONFIG
29262 if test -n "$DIRECTFBCONFIG"; then
29263 { echo "$as_me:$LINENO: result: $DIRECTFBCONFIG" >&5
29264 echo "${ECHO_T}$DIRECTFBCONFIG" >&6; }
29266 { echo "$as_me:$LINENO: result: no" >&5
29267 echo "${ECHO_T}no" >&6; }
29271 if test x
$DIRECTFBCONFIG = xno
; then
29272 # Extract the first word of "pkg-config", so it can be a program name with args.
29273 set dummy pkg-config
; ac_word
=$2
29274 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29275 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29276 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
29277 echo $ECHO_N "(cached) $ECHO_C" >&6
29279 case $PKG_CONFIG in
29281 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
29284 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
29285 for as_dir
in $PATH
29288 test -z "$as_dir" && as_dir
=.
29289 for ac_exec_ext
in '' $ac_executable_extensions; do
29290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29291 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
29292 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29299 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
29303 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
29304 if test -n "$PKG_CONFIG"; then
29305 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
29306 echo "${ECHO_T}$PKG_CONFIG" >&6; }
29308 { echo "$as_me:$LINENO: result: no" >&5
29309 echo "${ECHO_T}no" >&6; }
29313 { echo "$as_me:$LINENO: checking for DirectFB $DIRECTFB_REQUIRED_VERSION support" >&5
29314 echo $ECHO_N "checking for DirectFB $DIRECTFB_REQUIRED_VERSION support... $ECHO_C" >&6; }
29315 if test x
$PKG_CONFIG != xno
; then
29316 if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $DIRECTFB_REQUIRED_VERSION directfb
; then
29317 DIRECTFB_CFLAGS
=`$PKG_CONFIG --cflags directfb`
29318 DIRECTFB_LIBS
=`$PKG_CONFIG --libs directfb`
29322 { echo "$as_me:$LINENO: result: $video_directfb" >&5
29323 echo "${ECHO_T}$video_directfb" >&6; }
29325 { echo "$as_me:$LINENO: checking for DirectFB $DIRECTFB_REQUIRED_VERSION support" >&5
29326 echo $ECHO_N "checking for DirectFB $DIRECTFB_REQUIRED_VERSION support... $ECHO_C" >&6; }
29327 set -- `echo $DIRECTFB_REQUIRED_VERSION | sed 's/\./ /g'`
29328 NEED_VERSION
=`expr $1 \* 10000 + $2 \* 100 + $3`
29329 set -- `directfb-config --version | sed 's/\./ /g'`
29330 HAVE_VERSION
=`expr $1 \* 10000 + $2 \* 100 + $3`
29331 if test $HAVE_VERSION -ge $NEED_VERSION; then
29332 DIRECTFB_CFLAGS
=`$DIRECTFBCONFIG --cflags`
29333 DIRECTFB_LIBS
=`$DIRECTFBCONFIG --libs`
29336 { echo "$as_me:$LINENO: result: $video_directfb" >&5
29337 echo "${ECHO_T}$video_directfb" >&6; }
29340 if test x
$video_directfb = xyes
; then
29341 cat >>confdefs.h
<<\_ACEOF
29342 #define SDL_VIDEO_DRIVER_DIRECTFB 1
29345 SOURCES
="$SOURCES $srcdir/src/video/directfb/*.c"
29346 EXTRA_CFLAGS
="$EXTRA_CFLAGS $DIRECTFB_CFLAGS"
29347 EXTRA_LDFLAGS
="$EXTRA_LDFLAGS $DIRECTFB_LIBS"
29355 # Check whether --enable-video-ps2gs was given.
29356 if test "${enable_video_ps2gs+set}" = set; then
29357 enableval
=$enable_video_ps2gs;
29359 enable_video_ps2gs
=yes
29362 if test x
$enable_video = xyes
-a x
$enable_video_ps2gs = xyes
; then
29363 { echo "$as_me:$LINENO: checking for PlayStation 2 GS support" >&5
29364 echo $ECHO_N "checking for PlayStation 2 GS support... $ECHO_C" >&6; }
29366 cat >conftest.
$ac_ext <<_ACEOF
29369 cat confdefs.h
>>conftest.
$ac_ext
29370 cat >>conftest.
$ac_ext <<_ACEOF
29371 /* end confdefs.h. */
29373 #include <linux/ps2/dev.h>
29374 #include <linux/ps2/gs.h>
29385 rm -f conftest.
$ac_objext
29386 if { (ac_try
="$ac_compile"
29387 case "(($ac_try" in
29388 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29389 *) ac_try_echo=$ac_try;;
29391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29392 (eval "$ac_compile") 2>conftest.er1
29394 grep -v '^ *+' conftest.er1 >conftest.err
29396 cat conftest.err >&5
29397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29398 (exit $ac_status); } && {
29399 test -z "$ac_c_werror_flag" ||
29400 test ! -s conftest.err
29401 } && test -s conftest.$ac_objext; then
29406 echo "$as_me: failed program was:" >&5
29407 sed 's/^/| /' conftest.$ac_ext >&5
29412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29413 { echo "$as_me:$LINENO: result: $video_ps2gs" >&5
29414 echo "${ECHO_T}$video_ps2gs" >&6; }
29415 if test x$video_ps2gs = xyes; then
29416 cat >>confdefs.h <<\_ACEOF
29417 #define SDL_VIDEO_DRIVER_PS2GS 1
29420 SOURCES="$SOURCES $srcdir/src/video/ps2gs/*.c"
29428 # Check whether --enable-video-ggi was given.
29429 if test "${enable_video_ggi+set}" = set; then
29430 enableval=$enable_video_ggi;
29432 enable_video_ggi=no
29435 if test x$enable_video = xyes -a x$enable_video_ggi = xyes; then
29436 { echo "$as_me:$LINENO: checking for GGI support" >&5
29437 echo $ECHO_N "checking for GGI support... $ECHO_C" >&6; }
29439 cat >conftest.$ac_ext <<_ACEOF
29442 cat confdefs.h >>conftest.$ac_ext
29443 cat >>conftest.$ac_ext <<_ACEOF
29444 /* end confdefs.h. */
29446 #include <ggi/ggi.h>
29447 #include <ggi/gii.h>
29458 rm -f conftest.$ac_objext
29459 if { (ac_try="$ac_compile"
29460 case "(($ac_try" in
29461 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29462 *) ac_try_echo
=$ac_try;;
29464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29465 (eval "$ac_compile") 2>conftest.er1
29467 grep -v '^ *+' conftest.er1
>conftest.err
29469 cat conftest.err
>&5
29470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29471 (exit $ac_status); } && {
29472 test -z "$ac_c_werror_flag" ||
29473 test ! -s conftest.err
29474 } && test -s conftest.
$ac_objext; then
29479 echo "$as_me: failed program was:" >&5
29480 sed 's/^/| /' conftest.
$ac_ext >&5
29485 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
29486 { echo "$as_me:$LINENO: result: $video_ggi" >&5
29487 echo "${ECHO_T}$video_ggi" >&6; }
29488 if test x
$video_ggi = xyes
; then
29489 cat >>confdefs.h
<<\_ACEOF
29490 #define SDL_VIDEO_DRIVER_GGI 1
29493 SOURCES
="$SOURCES $srcdir/src/video/ggi/*.c"
29494 EXTRA_LDFLAGS
="$EXTRA_LDFLAGS -lggi -lgii -lgg"
29502 # Check whether --enable-video-svga was given.
29503 if test "${enable_video_svga+set}" = set; then
29504 enableval
=$enable_video_svga;
29506 enable_video_svga
=yes
29509 if test x
$enable_video = xyes
-a x
$enable_video_svga = xyes
; then
29510 { echo "$as_me:$LINENO: checking for SVGAlib (1.4.0+) support" >&5
29511 echo $ECHO_N "checking for SVGAlib (1.4.0+) support... $ECHO_C" >&6; }
29513 cat >conftest.
$ac_ext <<_ACEOF
29516 cat confdefs.h
>>conftest.
$ac_ext
29517 cat >>conftest.
$ac_ext <<_ACEOF
29518 /* end confdefs.h. */
29521 #include <vgamouse.h>
29522 #include <vgakeyboard.h>
29528 if ( SCANCODE_RIGHTWIN && SCANCODE_LEFTWIN ) {
29536 rm -f conftest.
$ac_objext
29537 if { (ac_try
="$ac_compile"
29538 case "(($ac_try" in
29539 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29540 *) ac_try_echo=$ac_try;;
29542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29543 (eval "$ac_compile") 2>conftest.er1
29545 grep -v '^ *+' conftest.er1 >conftest.err
29547 cat conftest.err >&5
29548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29549 (exit $ac_status); } && {
29550 test -z "$ac_c_werror_flag" ||
29551 test ! -s conftest.err
29552 } && test -s conftest.$ac_objext; then
29557 echo "$as_me: failed program was:" >&5
29558 sed 's/^/| /' conftest.$ac_ext >&5
29563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29564 { echo "$as_me:$LINENO: result: $video_svga" >&5
29565 echo "${ECHO_T}$video_svga" >&6; }
29566 if test x$video_svga = xyes; then
29567 cat >>confdefs.h <<\_ACEOF
29568 #define SDL_VIDEO_DRIVER_SVGALIB 1
29571 SOURCES="$SOURCES $srcdir/src/video/svga/*.c"
29572 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lvga"
29580 # Check whether --enable-video-vgl was given.
29581 if test "${enable_video_vgl+set}" = set; then
29582 enableval=$enable_video_vgl;
29584 enable_video_vgl=yes
29587 if test x$enable_video = xyes -a x$enable_video_vgl = xyes; then
29588 { echo "$as_me:$LINENO: checking for libVGL support" >&5
29589 echo $ECHO_N "checking for libVGL support... $ECHO_C" >&6; }
29591 cat >conftest.$ac_ext <<_ACEOF
29594 cat confdefs.h >>conftest.$ac_ext
29595 cat >>conftest.$ac_ext <<_ACEOF
29596 /* end confdefs.h. */
29598 #include <sys/fbio.h>
29599 #include <sys/consio.h>
29600 #include <sys/kbio.h>
29608 bitmap.Type = VIDBUF32;
29609 bitmap.PixelBytes = 4;
29610 exit(bitmap.Bitmap);
29616 rm -f conftest.$ac_objext
29617 if { (ac_try="$ac_compile"
29618 case "(($ac_try" in
29619 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29620 *) ac_try_echo
=$ac_try;;
29622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29623 (eval "$ac_compile") 2>conftest.er1
29625 grep -v '^ *+' conftest.er1
>conftest.err
29627 cat conftest.err
>&5
29628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29629 (exit $ac_status); } && {
29630 test -z "$ac_c_werror_flag" ||
29631 test ! -s conftest.err
29632 } && test -s conftest.
$ac_objext; then
29637 echo "$as_me: failed program was:" >&5
29638 sed 's/^/| /' conftest.
$ac_ext >&5
29643 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
29644 { echo "$as_me:$LINENO: result: $video_vgl" >&5
29645 echo "${ECHO_T}$video_vgl" >&6; }
29646 if test x
$video_vgl = xyes
; then
29647 cat >>confdefs.h
<<\_ACEOF
29648 #define SDL_VIDEO_DRIVER_VGL 1
29651 SOURCES
="$SOURCES $srcdir/src/video/vgl/*.c"
29652 EXTRA_LDFLAGS
="$EXTRA_LDFLAGS -lvgl"
29660 # Check whether --enable-video-wscons was given.
29661 if test "${enable_video_wscons+set}" = set; then
29662 enableval
=$enable_video_wscons;
29664 enable_video_wscons
=yes
29667 if test x
$enable_video = xyes
-a x
$enable_video_wscons = xyes
; then
29668 { echo "$as_me:$LINENO: checking for wscons support" >&5
29669 echo $ECHO_N "checking for wscons support... $ECHO_C" >&6; }
29671 cat >conftest.
$ac_ext <<_ACEOF
29674 cat confdefs.h
>>conftest.
$ac_ext
29675 cat >>conftest.
$ac_ext <<_ACEOF
29676 /* end confdefs.h. */
29678 #include <sys/time.h>
29679 #include <dev/wscons/wsconsio.h>
29680 #include <dev/wscons/wsdisplay_usl_io.h>
29686 int wsmode = WSDISPLAYIO_MODE_DUMBFB;
29692 rm -f conftest.
$ac_objext
29693 if { (ac_try
="$ac_compile"
29694 case "(($ac_try" in
29695 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29696 *) ac_try_echo=$ac_try;;
29698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29699 (eval "$ac_compile") 2>conftest.er1
29701 grep -v '^ *+' conftest.er1 >conftest.err
29703 cat conftest.err >&5
29704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29705 (exit $ac_status); } && {
29706 test -z "$ac_c_werror_flag" ||
29707 test ! -s conftest.err
29708 } && test -s conftest.$ac_objext; then
29713 echo "$as_me: failed program was:" >&5
29714 sed 's/^/| /' conftest.$ac_ext >&5
29719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29720 { echo "$as_me:$LINENO: result: $video_wscons" >&5
29721 echo "${ECHO_T}$video_wscons" >&6; }
29722 if test x$video_wscons = xyes; then
29723 cat >>confdefs.h <<\_ACEOF
29724 #define SDL_VIDEO_DRIVER_WSCONS 1
29727 SOURCES="$SOURCES $srcdir/src/video/wscons/*.c"
29736 # Check whether --enable-video-aalib was given.
29737 if test "${enable_video_aalib+set}" = set; then
29738 enableval=$enable_video_aalib;
29740 enable_video_aalib=no
29743 if test x$enable_video = xyes -a x$enable_video_aalib = xyes; then
29744 { echo "$as_me:$LINENO: checking for AAlib support" >&5
29745 echo $ECHO_N "checking for AAlib support... $ECHO_C" >&6; }
29747 cat >conftest.$ac_ext <<_ACEOF
29750 cat confdefs.h >>conftest.$ac_ext
29751 cat >>conftest.$ac_ext <<_ACEOF
29752 /* end confdefs.h. */
29765 rm -f conftest.$ac_objext
29766 if { (ac_try="$ac_compile"
29767 case "(($ac_try" in
29768 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29769 *) ac_try_echo
=$ac_try;;
29771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29772 (eval "$ac_compile") 2>conftest.er1
29774 grep -v '^ *+' conftest.er1
>conftest.err
29776 cat conftest.err
>&5
29777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29778 (exit $ac_status); } && {
29779 test -z "$ac_c_werror_flag" ||
29780 test ! -s conftest.err
29781 } && test -s conftest.
$ac_objext; then
29786 echo "$as_me: failed program was:" >&5
29787 sed 's/^/| /' conftest.
$ac_ext >&5
29792 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
29793 { echo "$as_me:$LINENO: result: $video_aalib" >&5
29794 echo "${ECHO_T}$video_aalib" >&6; }
29795 if test x
$video_aalib = xyes
; then
29796 cat >>confdefs.h
<<\_ACEOF
29797 #define SDL_VIDEO_DRIVER_AALIB 1
29800 SOURCES
="$SOURCES $srcdir/src/video/aalib/*.c"
29801 EXTRA_LDFLAGS
="$EXTRA_LDFLAGS -laa"
29809 # Check whether --enable-video-qtopia was given.
29810 if test "${enable_video_qtopia+set}" = set; then
29811 enableval
=$enable_video_qtopia;
29813 enable_video_qtopia
=no
29816 if test x
$enable_video = xyes
-a x
$enable_video_qtopia = xyes
; then
29817 { echo "$as_me:$LINENO: checking for Qtopia support" >&5
29818 echo $ECHO_N "checking for Qtopia support... $ECHO_C" >&6; }
29820 QTOPIA_FLAGS
="-DQT_QWS_EBX -DQT_QWS_CUSTOM -DQWS -I${QPEDIR}/include -I${QTDIR}/include/ -DNO_DEBUG -fno-rtti -fno-exceptions"
29822 ac_cpp
='$CXXCPP $CPPFLAGS'
29823 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29824 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29825 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
29827 OLD_CXX
="$CXXFLAGS"
29828 CXXFLAGS
="$QTOPIA_FLAGS"
29829 cat >conftest.
$ac_ext <<_ACEOF
29832 cat confdefs.h
>>conftest.
$ac_ext
29833 cat >>conftest.
$ac_ext <<_ACEOF
29834 /* end confdefs.h. */
29836 #include <qpe/qpeapplication.h>
29847 rm -f conftest.
$ac_objext
29848 if { (ac_try
="$ac_compile"
29849 case "(($ac_try" in
29850 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29851 *) ac_try_echo=$ac_try;;
29853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29854 (eval "$ac_compile") 2>conftest.er1
29856 grep -v '^ *+' conftest.er1 >conftest.err
29858 cat conftest.err >&5
29859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29860 (exit $ac_status); } && {
29861 test -z "$ac_cxx_werror_flag" ||
29862 test ! -s conftest.err
29863 } && test -s conftest.$ac_objext; then
29868 echo "$as_me: failed program was:" >&5
29869 sed 's/^/| /' conftest.$ac_ext >&5
29874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29875 CXXFLAGS="$OLD_CXX"
29876 { echo "$as_me:$LINENO: result: $video_qtopia" >&5
29877 echo "${ECHO_T}$video_qtopia" >&6; }
29878 if test x$video_qtopia = xyes; then
29879 cat >>confdefs.h <<\_ACEOF
29880 #define SDL_VIDEO_DRIVER_QTOPIA 1
29883 SOURCES="$SOURCES $srcdir/src/video/qtopia/*.cc"
29884 SDLMAIN_SOURCES="$srcdir/src/main/qtopia/*.cc"
29885 EXTRA_CFLAGS="$EXTRA_CFLAGS $QTOPIA_FLAGS"
29886 SDL_CFLAGS="$SDL_CFLAGS -DQWS -Dmain=SDL_main"
29887 SDL_LIBS="-lSDLmain $SDL_LIBS -L${QPEDIR}/lib -L${QTDIR}/lib/ -lqpe -lqte"
29891 ac_cpp='$CPP $CPPFLAGS'
29892 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29893 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29894 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29901 # Check whether --enable-video-picogui was given.
29902 if test "${enable_video_picogui+set}" = set; then
29903 enableval=$enable_video_picogui;
29905 enable_video_picogui=no
29908 if test x$enable_video = xyes -a x$enable_video_picogui = xyes; then
29909 { echo "$as_me:$LINENO: checking for PicoGUI support" >&5
29910 echo $ECHO_N "checking for PicoGUI support... $ECHO_C" >&6; }
29912 cat >conftest.$ac_ext <<_ACEOF
29915 cat confdefs.h >>conftest.$ac_ext
29916 cat >>conftest.$ac_ext <<_ACEOF
29917 /* end confdefs.h. */
29919 #include <picogui.h>
29930 rm -f conftest.$ac_objext
29931 if { (ac_try="$ac_compile"
29932 case "(($ac_try" in
29933 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29934 *) ac_try_echo
=$ac_try;;
29936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29937 (eval "$ac_compile") 2>conftest.er1
29939 grep -v '^ *+' conftest.er1
>conftest.err
29941 cat conftest.err
>&5
29942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29943 (exit $ac_status); } && {
29944 test -z "$ac_c_werror_flag" ||
29945 test ! -s conftest.err
29946 } && test -s conftest.
$ac_objext; then
29951 echo "$as_me: failed program was:" >&5
29952 sed 's/^/| /' conftest.
$ac_ext >&5
29957 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
29958 { echo "$as_me:$LINENO: result: $video_picogui" >&5
29959 echo "${ECHO_T}$video_picogui" >&6; }
29960 if test x
$video_picogui = xyes
; then
29961 cat >>confdefs.h
<<\_ACEOF
29962 #define SDL_VIDEO_DRIVER_PICOGUI 1
29965 SOURCES
="$SOURCES $srcdir/src/video/picogui/*.c"
29966 SDL_LIBS
="$SDL_LIBS -lpgui"
29972 CheckAtariBiosEvent
()
29974 SOURCES
="$SOURCES $srcdir/src/video/ataricommon/*.c"
29975 SOURCES
="$SOURCES $srcdir/src/video/ataricommon/*.S"
29978 CheckAtariXbiosVideo
()
29980 # Check whether --enable-xbios was given.
29981 if test "${enable_xbios+set}" = set; then
29982 enableval
=$enable_xbios;
29984 enable_video_xbios
=yes
29988 if test x
$enable_video = xyes
-a x
$enable_video_xbios = xyes
; then
29990 cat >>confdefs.h
<<\_ACEOF
29991 #define SDL_VIDEO_DRIVER_XBIOS 1
29994 SOURCES
="$SOURCES $srcdir/src/video/xbios/*.c"
29999 CheckAtariGemVideo
()
30001 # Check whether --enable-gem was given.
30002 if test "${enable_gem+set}" = set; then
30003 enableval
=$enable_gem;
30005 enable_video_gem
=yes
30008 if test x
$enable_video = xyes
-a x
$enable_video_gem = xyes
; then
30010 if test "${ac_cv_header_gem_h+set}" = set; then
30011 { echo "$as_me:$LINENO: checking for gem.h" >&5
30012 echo $ECHO_N "checking for gem.h... $ECHO_C" >&6; }
30013 if test "${ac_cv_header_gem_h+set}" = set; then
30014 echo $ECHO_N "(cached) $ECHO_C" >&6
30016 { echo "$as_me:$LINENO: result: $ac_cv_header_gem_h" >&5
30017 echo "${ECHO_T}$ac_cv_header_gem_h" >&6; }
30019 # Is the header compilable?
30020 { echo "$as_me:$LINENO: checking gem.h usability" >&5
30021 echo $ECHO_N "checking gem.h usability... $ECHO_C" >&6; }
30022 cat >conftest.
$ac_ext <<_ACEOF
30025 cat confdefs.h
>>conftest.
$ac_ext
30026 cat >>conftest.
$ac_ext <<_ACEOF
30027 /* end confdefs.h. */
30028 $ac_includes_default
30031 rm -f conftest.
$ac_objext
30032 if { (ac_try
="$ac_compile"
30033 case "(($ac_try" in
30034 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30035 *) ac_try_echo=$ac_try;;
30037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30038 (eval "$ac_compile") 2>conftest.er1
30040 grep -v '^ *+' conftest.er1 >conftest.err
30042 cat conftest.err >&5
30043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30044 (exit $ac_status); } && {
30045 test -z "$ac_c_werror_flag" ||
30046 test ! -s conftest.err
30047 } && test -s conftest.$ac_objext; then
30048 ac_header_compiler=yes
30050 echo "$as_me: failed program was:" >&5
30051 sed 's/^/| /' conftest.$ac_ext >&5
30053 ac_header_compiler=no
30056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30057 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30058 echo "${ECHO_T}$ac_header_compiler" >&6; }
30060 # Is the header present?
30061 { echo "$as_me:$LINENO: checking gem.h presence" >&5
30062 echo $ECHO_N "checking gem.h presence... $ECHO_C" >&6; }
30063 cat >conftest.$ac_ext <<_ACEOF
30066 cat confdefs.h >>conftest.$ac_ext
30067 cat >>conftest.$ac_ext <<_ACEOF
30068 /* end confdefs.h. */
30071 if { (ac_try="$ac_cpp conftest.$ac_ext"
30072 case "(($ac_try" in
30073 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30074 *) ac_try_echo
=$ac_try;;
30076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30077 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30079 grep -v '^ *+' conftest.er1
>conftest.err
30081 cat conftest.err
>&5
30082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30083 (exit $ac_status); } >/dev
/null
&& {
30084 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30085 test ! -s conftest.err
30087 ac_header_preproc
=yes
30089 echo "$as_me: failed program was:" >&5
30090 sed 's/^/| /' conftest.
$ac_ext >&5
30092 ac_header_preproc
=no
30095 rm -f conftest.err conftest.
$ac_ext
30096 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30097 echo "${ECHO_T}$ac_header_preproc" >&6; }
30099 # So? What about this header?
30100 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30102 { echo "$as_me:$LINENO: WARNING: gem.h: accepted by the compiler, rejected by the preprocessor!" >&5
30103 echo "$as_me: WARNING: gem.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30104 { echo "$as_me:$LINENO: WARNING: gem.h: proceeding with the compiler's result" >&5
30105 echo "$as_me: WARNING: gem.h: proceeding with the compiler's result" >&2;}
30106 ac_header_preproc
=yes
30109 { echo "$as_me:$LINENO: WARNING: gem.h: present but cannot be compiled" >&5
30110 echo "$as_me: WARNING: gem.h: present but cannot be compiled" >&2;}
30111 { echo "$as_me:$LINENO: WARNING: gem.h: check for missing prerequisite headers?" >&5
30112 echo "$as_me: WARNING: gem.h: check for missing prerequisite headers?" >&2;}
30113 { echo "$as_me:$LINENO: WARNING: gem.h: see the Autoconf documentation" >&5
30114 echo "$as_me: WARNING: gem.h: see the Autoconf documentation" >&2;}
30115 { echo "$as_me:$LINENO: WARNING: gem.h: section \"Present But Cannot Be Compiled\"" >&5
30116 echo "$as_me: WARNING: gem.h: section \"Present But Cannot Be Compiled\"" >&2;}
30117 { echo "$as_me:$LINENO: WARNING: gem.h: proceeding with the preprocessor's result" >&5
30118 echo "$as_me: WARNING: gem.h: proceeding with the preprocessor's result" >&2;}
30119 { echo "$as_me:$LINENO: WARNING: gem.h: in the future, the compiler will take precedence" >&5
30120 echo "$as_me: WARNING: gem.h: in the future, the compiler will take precedence" >&2;}
30124 { echo "$as_me:$LINENO: checking for gem.h" >&5
30125 echo $ECHO_N "checking for gem.h... $ECHO_C" >&6; }
30126 if test "${ac_cv_header_gem_h+set}" = set; then
30127 echo $ECHO_N "(cached) $ECHO_C" >&6
30129 ac_cv_header_gem_h
=$ac_header_preproc
30131 { echo "$as_me:$LINENO: result: $ac_cv_header_gem_h" >&5
30132 echo "${ECHO_T}$ac_cv_header_gem_h" >&6; }
30135 if test $ac_cv_header_gem_h = yes; then
30140 { echo "$as_me:$LINENO: checking for appl_init in -lgem" >&5
30141 echo $ECHO_N "checking for appl_init in -lgem... $ECHO_C" >&6; }
30142 if test "${ac_cv_lib_gem_appl_init+set}" = set; then
30143 echo $ECHO_N "(cached) $ECHO_C" >&6
30145 ac_check_lib_save_LIBS
=$LIBS
30147 cat >conftest.
$ac_ext <<_ACEOF
30150 cat confdefs.h
>>conftest.
$ac_ext
30151 cat >>conftest.
$ac_ext <<_ACEOF
30152 /* end confdefs.h. */
30154 /* Override any GCC internal prototype to avoid an error.
30155 Use char because int might match the return type of a GCC
30156 builtin and then its argument prototype would still apply. */
30164 return appl_init ();
30169 rm -f conftest.
$ac_objext conftest
$ac_exeext
30170 if { (ac_try
="$ac_link"
30171 case "(($ac_try" in
30172 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30173 *) ac_try_echo=$ac_try;;
30175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30176 (eval "$ac_link") 2>conftest.er1
30178 grep -v '^ *+' conftest.er1 >conftest.err
30180 cat conftest.err >&5
30181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30182 (exit $ac_status); } && {
30183 test -z "$ac_c_werror_flag" ||
30184 test ! -s conftest.err
30185 } && test -s conftest$ac_exeext &&
30186 $as_test_x conftest$ac_exeext; then
30187 ac_cv_lib_gem_appl_init=yes
30189 echo "$as_me: failed program was:" >&5
30190 sed 's/^/| /' conftest.$ac_ext >&5
30192 ac_cv_lib_gem_appl_init=no
30195 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30196 conftest$ac_exeext conftest.$ac_ext
30197 LIBS=$ac_check_lib_save_LIBS
30199 { echo "$as_me:$LINENO: result: $ac_cv_lib_gem_appl_init" >&5
30200 echo "${ECHO_T}$ac_cv_lib_gem_appl_init" >&6; }
30201 if test $ac_cv_lib_gem_appl_init = yes; then
30205 if test x$have_gem_hdr = xyes -a x$have_gem_lib = xyes; then
30207 cat >>confdefs.h <<\_ACEOF
30208 #define SDL_VIDEO_DRIVER_GEM 1
30211 SOURCES="$SOURCES $srcdir/src/video/gem/*.c"
30212 SDL_LIBS="$SDL_LIBS -lgem"
30220 # Check whether --enable-video-dummy was given.
30221 if test "${enable_video_dummy+set}" = set; then
30222 enableval=$enable_video_dummy;
30224 enable_video_dummy=yes
30227 if test x$enable_video_dummy = xyes; then
30228 cat >>confdefs.h <<\_ACEOF
30229 #define SDL_VIDEO_DRIVER_DUMMY 1
30232 SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
30237 # Check whether --enable-video-opengl was given.
30238 if test "${enable_video_opengl+set}" = set; then
30239 enableval=$enable_video_opengl;
30241 enable_video_opengl=yes
30247 if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
30248 { echo "$as_me:$LINENO: checking for OpenGL (GLX) support" >&5
30249 echo $ECHO_N "checking for OpenGL (GLX) support... $ECHO_C" >&6; }
30251 cat >conftest.$ac_ext <<_ACEOF
30254 cat confdefs.h >>conftest.$ac_ext
30255 cat >>conftest.$ac_ext <<_ACEOF
30256 /* end confdefs.h. */
30259 #include <GL/glx.h>
30260 #include <GL/glu.h>
30271 rm -f conftest.$ac_objext
30272 if { (ac_try="$ac_compile"
30273 case "(($ac_try" in
30274 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30275 *) ac_try_echo
=$ac_try;;
30277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30278 (eval "$ac_compile") 2>conftest.er1
30280 grep -v '^ *+' conftest.er1
>conftest.err
30282 cat conftest.err
>&5
30283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30284 (exit $ac_status); } && {
30285 test -z "$ac_c_werror_flag" ||
30286 test ! -s conftest.err
30287 } && test -s conftest.
$ac_objext; then
30292 echo "$as_me: failed program was:" >&5
30293 sed 's/^/| /' conftest.
$ac_ext >&5
30298 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
30299 { echo "$as_me:$LINENO: result: $video_opengl" >&5
30300 echo "${ECHO_T}$video_opengl" >&6; }
30301 if test x
$video_opengl = xyes
; then
30302 cat >>confdefs.h
<<\_ACEOF
30303 #define SDL_VIDEO_OPENGL 1
30306 cat >>confdefs.h
<<\_ACEOF
30307 #define SDL_VIDEO_OPENGL_GLX 1
30316 if test x
$enable_video = xyes
-a x
$enable_video_opengl = xyes
; then
30317 { echo "$as_me:$LINENO: checking for OpenGL (Photon) support" >&5
30318 echo $ECHO_N "checking for OpenGL (Photon) support... $ECHO_C" >&6; }
30320 cat >conftest.
$ac_ext <<_ACEOF
30323 cat confdefs.h
>>conftest.
$ac_ext
30324 cat >>conftest.
$ac_ext <<_ACEOF
30325 /* end confdefs.h. */
30338 rm -f conftest.
$ac_objext
30339 if { (ac_try
="$ac_compile"
30340 case "(($ac_try" in
30341 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30342 *) ac_try_echo=$ac_try;;
30344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30345 (eval "$ac_compile") 2>conftest.er1
30347 grep -v '^ *+' conftest.er1 >conftest.err
30349 cat conftest.err >&5
30350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30351 (exit $ac_status); } && {
30352 test -z "$ac_c_werror_flag" ||
30353 test ! -s conftest.err
30354 } && test -s conftest.$ac_objext; then
30359 echo "$as_me: failed program was:" >&5
30360 sed 's/^/| /' conftest.$ac_ext >&5
30365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30366 { echo "$as_me:$LINENO: result: $video_opengl" >&5
30367 echo "${ECHO_T}$video_opengl" >&6; }
30368 if test x$video_opengl = xyes; then
30369 cat >>confdefs.h <<\_ACEOF
30370 #define SDL_VIDEO_OPENGL 1
30373 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGL"
30380 if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
30381 cat >>confdefs.h <<\_ACEOF
30382 #define SDL_VIDEO_OPENGL 1
30385 cat >>confdefs.h <<\_ACEOF
30386 #define SDL_VIDEO_OPENGL_WGL 1
30394 if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
30395 cat >>confdefs.h <<\_ACEOF
30396 #define SDL_VIDEO_OPENGL 1
30399 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGL"
30405 if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
30406 cat >>confdefs.h <<\_ACEOF
30407 #define SDL_VIDEO_OPENGL 1
30412 if test x$enable_video_cocoa = xyes; then
30413 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGL"
30415 if test x$enable_video_carbon = xyes; then
30416 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AGL"
30424 if test "x$enable_video" = "xyes" -a "x$enable_video_opengl" = "xyes"; then
30425 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
30426 { echo "$as_me:$LINENO: checking for GL/osmesa.h" >&5
30427 echo $ECHO_N "checking for GL/osmesa.h... $ECHO_C" >&6; }
30428 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
30429 echo $ECHO_N "(cached) $ECHO_C" >&6
30431 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_osmesa_h" >&5
30432 echo "${ECHO_T}$ac_cv_header_GL_osmesa_h" >&6; }
30434 # Is the header compilable?
30435 { echo "$as_me:$LINENO: checking GL/osmesa.h usability" >&5
30436 echo $ECHO_N "checking GL/osmesa.h usability... $ECHO_C" >&6; }
30437 cat >conftest.$ac_ext <<_ACEOF
30440 cat confdefs.h >>conftest.$ac_ext
30441 cat >>conftest.$ac_ext <<_ACEOF
30442 /* end confdefs.h. */
30443 $ac_includes_default
30444 #include <GL/osmesa.h>
30446 rm -f conftest.$ac_objext
30447 if { (ac_try="$ac_compile"
30448 case "(($ac_try" in
30449 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30450 *) ac_try_echo
=$ac_try;;
30452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30453 (eval "$ac_compile") 2>conftest.er1
30455 grep -v '^ *+' conftest.er1
>conftest.err
30457 cat conftest.err
>&5
30458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30459 (exit $ac_status); } && {
30460 test -z "$ac_c_werror_flag" ||
30461 test ! -s conftest.err
30462 } && test -s conftest.
$ac_objext; then
30463 ac_header_compiler
=yes
30465 echo "$as_me: failed program was:" >&5
30466 sed 's/^/| /' conftest.
$ac_ext >&5
30468 ac_header_compiler
=no
30471 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
30472 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30473 echo "${ECHO_T}$ac_header_compiler" >&6; }
30475 # Is the header present?
30476 { echo "$as_me:$LINENO: checking GL/osmesa.h presence" >&5
30477 echo $ECHO_N "checking GL/osmesa.h presence... $ECHO_C" >&6; }
30478 cat >conftest.
$ac_ext <<_ACEOF
30481 cat confdefs.h
>>conftest.
$ac_ext
30482 cat >>conftest.
$ac_ext <<_ACEOF
30483 /* end confdefs.h. */
30484 #include <GL/osmesa.h>
30486 if { (ac_try
="$ac_cpp conftest.$ac_ext"
30487 case "(($ac_try" in
30488 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30489 *) ac_try_echo=$ac_try;;
30491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30492 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30494 grep -v '^ *+' conftest.er1 >conftest.err
30496 cat conftest.err >&5
30497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30498 (exit $ac_status); } >/dev/null && {
30499 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30500 test ! -s conftest.err
30502 ac_header_preproc=yes
30504 echo "$as_me: failed program was:" >&5
30505 sed 's/^/| /' conftest.$ac_ext >&5
30507 ac_header_preproc=no
30510 rm -f conftest.err conftest.$ac_ext
30511 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30512 echo "${ECHO_T}$ac_header_preproc" >&6; }
30514 # So? What about this header?
30515 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30517 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: accepted by the compiler, rejected by the preprocessor!" >&5
30518 echo "$as_me: WARNING: GL/osmesa.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30519 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: proceeding with the compiler's result" >&5
30520 echo "$as_me: WARNING: GL/osmesa.h: proceeding with the compiler's result" >&2;}
30521 ac_header_preproc=yes
30524 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: present but cannot be compiled" >&5
30525 echo "$as_me: WARNING: GL/osmesa.h: present but cannot be compiled" >&2;}
30526 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: check for missing prerequisite headers?" >&5
30527 echo "$as_me: WARNING: GL/osmesa.h: check for missing prerequisite headers?" >&2;}
30528 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: see the Autoconf documentation" >&5
30529 echo "$as_me: WARNING: GL/osmesa.h: see the Autoconf documentation" >&2;}
30530 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: section \"Present But Cannot Be Compiled\"" >&5
30531 echo "$as_me: WARNING: GL/osmesa.h: section \"Present But Cannot Be Compiled\"" >&2;}
30532 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: proceeding with the preprocessor's result" >&5
30533 echo "$as_me: WARNING: GL/osmesa.h: proceeding with the preprocessor's result" >&2;}
30534 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: in the future, the compiler will take precedence" >&5
30535 echo "$as_me: WARNING: GL/osmesa.h: in the future, the compiler will take precedence" >&2;}
30539 { echo "$as_me:$LINENO: checking for GL/osmesa.h" >&5
30540 echo $ECHO_N "checking for GL/osmesa.h... $ECHO_C" >&6; }
30541 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
30542 echo $ECHO_N "(cached) $ECHO_C" >&6
30544 ac_cv_header_GL_osmesa_h=$ac_header_preproc
30546 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_osmesa_h" >&5
30547 echo "${ECHO_T}$ac_cv_header_GL_osmesa_h" >&6; }
30550 if test $ac_cv_header_GL_osmesa_h = yes; then
30551 have_osmesa_hdr=yes
30555 { echo "$as_me:$LINENO: checking for OSMesaCreateContext in -lOSMesa" >&5
30556 echo $ECHO_N "checking for OSMesaCreateContext in -lOSMesa... $ECHO_C" >&6; }
30557 if test "${ac_cv_lib_OSMesa_OSMesaCreateContext+set}" = set; then
30558 echo $ECHO_N "(cached) $ECHO_C" >&6
30560 ac_check_lib_save_LIBS=$LIBS
30561 LIBS="-lOSMesa -lm $LIBS"
30562 cat >conftest.$ac_ext <<_ACEOF
30565 cat confdefs.h >>conftest.$ac_ext
30566 cat >>conftest.$ac_ext <<_ACEOF
30567 /* end confdefs.h. */
30569 /* Override any GCC internal prototype to avoid an error.
30570 Use char because int might match the return type of a GCC
30571 builtin and then its argument prototype would still apply. */
30575 char OSMesaCreateContext ();
30579 return OSMesaCreateContext ();
30584 rm -f conftest.$ac_objext conftest$ac_exeext
30585 if { (ac_try="$ac_link"
30586 case "(($ac_try" in
30587 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30588 *) ac_try_echo
=$ac_try;;
30590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30591 (eval "$ac_link") 2>conftest.er1
30593 grep -v '^ *+' conftest.er1
>conftest.err
30595 cat conftest.err
>&5
30596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30597 (exit $ac_status); } && {
30598 test -z "$ac_c_werror_flag" ||
30599 test ! -s conftest.err
30600 } && test -s conftest
$ac_exeext &&
30601 $as_test_x conftest
$ac_exeext; then
30602 ac_cv_lib_OSMesa_OSMesaCreateContext
=yes
30604 echo "$as_me: failed program was:" >&5
30605 sed 's/^/| /' conftest.
$ac_ext >&5
30607 ac_cv_lib_OSMesa_OSMesaCreateContext
=no
30610 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
30611 conftest
$ac_exeext conftest.
$ac_ext
30612 LIBS
=$ac_check_lib_save_LIBS
30614 { echo "$as_me:$LINENO: result: $ac_cv_lib_OSMesa_OSMesaCreateContext" >&5
30615 echo "${ECHO_T}$ac_cv_lib_OSMesa_OSMesaCreateContext" >&6; }
30616 if test $ac_cv_lib_OSMesa_OSMesaCreateContext = yes; then
30617 have_osmesa_lib
=yes
30623 # Static linking to -lOSMesa
30624 # Extract the first word of "osmesa-config", so it can be a program name with args.
30625 set dummy osmesa-config
; ac_word
=$2
30626 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30627 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30628 if test "${ac_cv_path_OSMESA_CONFIG+set}" = set; then
30629 echo $ECHO_N "(cached) $ECHO_C" >&6
30631 case $OSMESA_CONFIG in
30633 ac_cv_path_OSMESA_CONFIG
="$OSMESA_CONFIG" # Let the user override the test with a path.
30636 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
30637 for as_dir
in $PATH
30640 test -z "$as_dir" && as_dir
=.
30641 for ac_exec_ext
in '' $ac_executable_extensions; do
30642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30643 ac_cv_path_OSMESA_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
30644 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30651 test -z "$ac_cv_path_OSMESA_CONFIG" && ac_cv_path_OSMESA_CONFIG
="no"
30655 OSMESA_CONFIG
=$ac_cv_path_OSMESA_CONFIG
30656 if test -n "$OSMESA_CONFIG"; then
30657 { echo "$as_me:$LINENO: result: $OSMESA_CONFIG" >&5
30658 echo "${ECHO_T}$OSMESA_CONFIG" >&6; }
30660 { echo "$as_me:$LINENO: result: no" >&5
30661 echo "${ECHO_T}no" >&6; }
30665 if test "x$OSMESA_CONFIG" = "xno" -o "x$enable_atari_ldg" = "xno"; then
30666 # -lOSMesa is really the static library
30667 if test "x$have_osmesa_hdr" = "xyes" -a "x$have_osmesa_lib" = "xyes"; then
30668 OSMESA_LIBS
="-lOSMesa"
30671 # -lOSMesa is a loader for OSMesa.ldg
30672 OSMESA_CFLAGS
=`$OSMESA_CONFIG --cflags`
30673 OSMESA_LIBS
=`$OSMESA_CONFIG --libs`
30675 cat >>confdefs.h
<<\_ACEOF
30676 #define SDL_VIDEO_OPENGL 1
30679 cat >>confdefs.h
<<\_ACEOF
30680 #define SDL_VIDEO_OPENGL_OSMESA 1
30683 SDL_CFLAGS
="$SDL_CFLAGS $OSMESA_CFLAGS"
30684 SDL_LIBS
="$SDL_LIBS $OSMESA_LIBS"
30686 # Check whether --enable-osmesa-shared was given.
30687 if test "${enable_osmesa_shared+set}" = set; then
30688 enableval
=$enable_osmesa_shared;
30690 enable_osmesa_shared
=yes
30693 if test "x$enable_osmesa_shared" = "xyes" -a "x$enable_atari_ldg" = "xyes"; then
30695 if test "x$have_osmesa_hdr" = "xyes"; then
30696 cat >>confdefs.h
<<\_ACEOF
30697 #define SDL_VIDEO_OPENGL_OSMESA_DYNAMIC 1
30707 # Check whether --enable-input-events was given.
30708 if test "${enable_input_events+set}" = set; then
30709 enableval
=$enable_input_events;
30711 enable_input_events
=yes
30714 if test x
$enable_input_events = xyes
; then
30715 { echo "$as_me:$LINENO: checking for Linux 2.4 unified input interface" >&5
30716 echo $ECHO_N "checking for Linux 2.4 unified input interface... $ECHO_C" >&6; }
30717 use_input_events
=no
30718 cat >conftest.
$ac_ext <<_ACEOF
30721 cat confdefs.h
>>conftest.
$ac_ext
30722 cat >>conftest.
$ac_ext <<_ACEOF
30723 /* end confdefs.h. */
30725 #include <linux/input.h>
30732 #error EVIOCGNAME() ioctl not available
30739 rm -f conftest.
$ac_objext
30740 if { (ac_try
="$ac_compile"
30741 case "(($ac_try" in
30742 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30743 *) ac_try_echo=$ac_try;;
30745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30746 (eval "$ac_compile") 2>conftest.er1
30748 grep -v '^ *+' conftest.er1 >conftest.err
30750 cat conftest.err >&5
30751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30752 (exit $ac_status); } && {
30753 test -z "$ac_c_werror_flag" ||
30754 test ! -s conftest.err
30755 } && test -s conftest.$ac_objext; then
30757 use_input_events=yes
30760 echo "$as_me: failed program was:" >&5
30761 sed 's/^/| /' conftest.$ac_ext >&5
30766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30767 { echo "$as_me:$LINENO: result: $use_input_events" >&5
30768 echo "${ECHO_T}$use_input_events" >&6; }
30769 if test x$use_input_events = xyes; then
30770 cat >>confdefs.h <<\_ACEOF
30771 #define SDL_INPUT_LINUXEV 1
30780 # Check whether --enable-input-tslib was given.
30781 if test "${enable_input_tslib+set}" = set; then
30782 enableval=$enable_input_tslib;
30784 enable_input_tslib=yes
30787 if test x$enable_input_tslib = xyes; then
30788 { echo "$as_me:$LINENO: checking for Touchscreen library support" >&5
30789 echo $ECHO_N "checking for Touchscreen library support... $ECHO_C" >&6; }
30790 enable_input_tslib=no
30791 cat >conftest.$ac_ext <<_ACEOF
30794 cat confdefs.h >>conftest.$ac_ext
30795 cat >>conftest.$ac_ext <<_ACEOF
30796 /* end confdefs.h. */
30809 rm -f conftest.$ac_objext
30810 if { (ac_try="$ac_compile"
30811 case "(($ac_try" in
30812 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30813 *) ac_try_echo
=$ac_try;;
30815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30816 (eval "$ac_compile") 2>conftest.er1
30818 grep -v '^ *+' conftest.er1
>conftest.err
30820 cat conftest.err
>&5
30821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30822 (exit $ac_status); } && {
30823 test -z "$ac_c_werror_flag" ||
30824 test ! -s conftest.err
30825 } && test -s conftest.
$ac_objext; then
30827 enable_input_tslib
=yes
30830 echo "$as_me: failed program was:" >&5
30831 sed 's/^/| /' conftest.
$ac_ext >&5
30836 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
30837 { echo "$as_me:$LINENO: result: $enable_input_tslib" >&5
30838 echo "${ECHO_T}$enable_input_tslib" >&6; }
30839 if test x
$enable_input_tslib = xyes
; then
30840 cat >>confdefs.h
<<\_ACEOF
30841 #define SDL_INPUT_TSLIB 1
30844 EXTRA_LDFLAGS
="$EXTRA_LDFLAGS -lts"
30851 # Check whether --enable-pth was given.
30852 if test "${enable_pth+set}" = set; then
30853 enableval
=$enable_pth;
30858 if test x
$enable_threads = xyes
-a x
$enable_pth = xyes
; then
30859 # Extract the first word of "pth-config", so it can be a program name with args.
30860 set dummy pth-config
; ac_word
=$2
30861 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30862 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30863 if test "${ac_cv_path_PTH_CONFIG+set}" = set; then
30864 echo $ECHO_N "(cached) $ECHO_C" >&6
30866 case $PTH_CONFIG in
30868 ac_cv_path_PTH_CONFIG
="$PTH_CONFIG" # Let the user override the test with a path.
30871 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
30872 for as_dir
in $PATH
30875 test -z "$as_dir" && as_dir
=.
30876 for ac_exec_ext
in '' $ac_executable_extensions; do
30877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30878 ac_cv_path_PTH_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
30879 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30886 test -z "$ac_cv_path_PTH_CONFIG" && ac_cv_path_PTH_CONFIG
="no"
30890 PTH_CONFIG
=$ac_cv_path_PTH_CONFIG
30891 if test -n "$PTH_CONFIG"; then
30892 { echo "$as_me:$LINENO: result: $PTH_CONFIG" >&5
30893 echo "${ECHO_T}$PTH_CONFIG" >&6; }
30895 { echo "$as_me:$LINENO: result: no" >&5
30896 echo "${ECHO_T}no" >&6; }
30900 if test "$PTH_CONFIG" = "no"; then
30905 { echo "$as_me:$LINENO: checking pth" >&5
30906 echo $ECHO_N "checking pth... $ECHO_C" >&6; }
30907 { echo "$as_me:$LINENO: result: $use_pth" >&5
30908 echo "${ECHO_T}$use_pth" >&6; }
30909 if test "x$use_pth" = xyes
; then
30910 cat >>confdefs.h
<<\_ACEOF
30911 #define SDL_THREAD_PTH 1
30914 SOURCES
="$SOURCES $srcdir/src/thread/pth/*.c"
30915 SOURCES
="$SOURCES $srcdir/src/thread/generic/SDL_syssem.c"
30916 SDL_CFLAGS
="$SDL_CFLAGS `$PTH_CONFIG --cflags`"
30917 SDL_LIBS
="$SDL_LIBS `$PTH_CONFIG --libs --all`"
30925 # Check whether --enable-pthreads was given.
30926 if test "${enable_pthreads+set}" = set; then
30927 enableval
=$enable_pthreads;
30929 enable_pthreads
=yes
30932 # Check whether --enable-pthread-sem was given.
30933 if test "${enable_pthread_sem+set}" = set; then
30934 enableval
=$enable_pthread_sem;
30936 enable_pthread_sem
=yes
30940 *-*-linux*|
*-*-uclinux*)
30941 pthread_cflags
="-D_REENTRANT"
30942 pthread_lib
="-lpthread"
30945 pthread_cflags
="-D_REENTRANT -D_THREAD_SAFE"
30949 pthread_cflags
="-D_THREAD_SAFE"
30950 # causes Carbon.p complaints?
30951 # pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
30953 *-*-freebsd*|
*-*-dragonfly*)
30954 pthread_cflags
="-D_REENTRANT -D_THREAD_SAFE"
30955 pthread_lib
="-pthread"
30958 pthread_cflags
="-D_REENTRANT -D_THREAD_SAFE"
30959 pthread_lib
="-lpthread"
30962 pthread_cflags
="-D_REENTRANT"
30963 pthread_lib
="-pthread"
30966 pthread_cflags
="-D_REENTRANT"
30967 pthread_lib
="-lpthread -lposix4"
30970 pthread_cflags
="-D_REENTRANT -Kthread"
30974 pthread_cflags
="-D_SGI_MP_SOURCE"
30975 pthread_lib
="-lpthread"
30978 pthread_cflags
="-D_REENTRANT -mthreads"
30979 pthread_lib
="-lpthread"
30982 pthread_cflags
="-D_REENTRANT"
30983 pthread_lib
="-L/usr/lib -lpthread"
30990 pthread_cflags
="-D_REENTRANT"
30991 if test x
$ac_cv_c_compiler_gnu = xyes
; then
30992 pthread_lib
="-lpthread -lrt"
30994 pthread_lib
="-lpthread -lexc -lrt"
30998 pthread_cflags
="-D_REENTRANT"
30999 pthread_lib
="-lpthread"
31002 if test x
$enable_threads = xyes
-a x
$enable_pthreads = xyes
-a x
$enable_ipod != xyes
; then
31003 # Save the original compiler flags and libraries
31004 ac_save_cflags
="$CFLAGS"; ac_save_libs
="$LIBS"
31005 # Add the pthread compiler flags and libraries
31006 CFLAGS
="$CFLAGS $pthread_cflags"; LIBS
="$LIBS $pthread_lib"
31007 # Check to see if we have pthread support on this system
31008 { echo "$as_me:$LINENO: checking for pthreads" >&5
31009 echo $ECHO_N "checking for pthreads... $ECHO_C" >&6; }
31011 cat >conftest.
$ac_ext <<_ACEOF
31014 cat confdefs.h
>>conftest.
$ac_ext
31015 cat >>conftest.
$ac_ext <<_ACEOF
31016 /* end confdefs.h. */
31018 #include <pthread.h>
31024 pthread_attr_t type;
31025 pthread_attr_init(&type);
31031 rm -f conftest.
$ac_objext conftest
$ac_exeext
31032 if { (ac_try
="$ac_link"
31033 case "(($ac_try" in
31034 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31035 *) ac_try_echo=$ac_try;;
31037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31038 (eval "$ac_link") 2>conftest.er1
31040 grep -v '^ *+' conftest.er1 >conftest.err
31042 cat conftest.err >&5
31043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31044 (exit $ac_status); } && {
31045 test -z "$ac_c_werror_flag" ||
31046 test ! -s conftest.err
31047 } && test -s conftest$ac_exeext &&
31048 $as_test_x conftest$ac_exeext; then
31053 echo "$as_me: failed program was:" >&5
31054 sed 's/^/| /' conftest.$ac_ext >&5
31059 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31060 conftest$ac_exeext conftest.$ac_ext
31061 { echo "$as_me:$LINENO: result: $use_pthreads" >&5
31062 echo "${ECHO_T}$use_pthreads" >&6; }
31063 # Restore the compiler flags and libraries
31064 CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
31066 # Do futher testing if we have pthread support...
31067 if test x$use_pthreads = xyes; then
31068 cat >>confdefs.h <<\_ACEOF
31069 #define SDL_THREAD_PTHREAD 1
31072 EXTRA_CFLAGS="$EXTRA_CFLAGS $pthread_cflags"
31073 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $pthread_lib"
31074 SDL_CFLAGS="$SDL_CFLAGS $pthread_cflags"
31075 SDL_LIBS="$SDL_LIBS $pthread_lib"
31077 # Save the original compiler flags and libraries
31078 ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
31079 # Add the pthread compiler flags and libraries
31080 CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
31082 # Check to see if recursive mutexes are available
31083 { echo "$as_me:$LINENO: checking for recursive mutexes" >&5
31084 echo $ECHO_N "checking for recursive mutexes... $ECHO_C" >&6; }
31085 has_recursive_mutexes=no
31086 if test x$has_recursive_mutexes = xno; then
31087 cat >conftest.$ac_ext <<_ACEOF
31090 cat confdefs.h >>conftest.$ac_ext
31091 cat >>conftest.$ac_ext <<_ACEOF
31092 /* end confdefs.h. */
31094 #include <pthread.h>
31100 pthread_mutexattr_t attr;
31101 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
31107 rm -f conftest.$ac_objext
31108 if { (ac_try="$ac_compile"
31109 case "(($ac_try" in
31110 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31111 *) ac_try_echo
=$ac_try;;
31113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31114 (eval "$ac_compile") 2>conftest.er1
31116 grep -v '^ *+' conftest.er1
>conftest.err
31118 cat conftest.err
>&5
31119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31120 (exit $ac_status); } && {
31121 test -z "$ac_c_werror_flag" ||
31122 test ! -s conftest.err
31123 } && test -s conftest.
$ac_objext; then
31125 has_recursive_mutexes
=yes
31126 cat >>confdefs.h
<<\_ACEOF
31127 #define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1
31132 echo "$as_me: failed program was:" >&5
31133 sed 's/^/| /' conftest.
$ac_ext >&5
31138 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
31140 if test x
$has_recursive_mutexes = xno
; then
31141 cat >conftest.
$ac_ext <<_ACEOF
31144 cat confdefs.h
>>conftest.
$ac_ext
31145 cat >>conftest.
$ac_ext <<_ACEOF
31146 /* end confdefs.h. */
31148 #include <pthread.h>
31154 pthread_mutexattr_t attr;
31155 pthread_mutexattr_setkind_np(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
31161 rm -f conftest.
$ac_objext
31162 if { (ac_try
="$ac_compile"
31163 case "(($ac_try" in
31164 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31165 *) ac_try_echo=$ac_try;;
31167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31168 (eval "$ac_compile") 2>conftest.er1
31170 grep -v '^ *+' conftest.er1 >conftest.err
31172 cat conftest.err >&5
31173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31174 (exit $ac_status); } && {
31175 test -z "$ac_c_werror_flag" ||
31176 test ! -s conftest.err
31177 } && test -s conftest.$ac_objext; then
31179 has_recursive_mutexes=yes
31180 cat >>confdefs.h <<\_ACEOF
31181 #define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP 1
31186 echo "$as_me: failed program was:" >&5
31187 sed 's/^/| /' conftest.$ac_ext >&5
31192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31194 { echo "$as_me:$LINENO: result: $has_recursive_mutexes" >&5
31195 echo "${ECHO_T}$has_recursive_mutexes" >&6; }
31197 # Check to see if pthread semaphore support is missing
31198 if test x$enable_pthread_sem = xyes; then
31199 { echo "$as_me:$LINENO: checking for pthread semaphores" >&5
31200 echo $ECHO_N "checking for pthread semaphores... $ECHO_C" >&6; }
31201 have_pthread_sem=no
31202 cat >conftest.$ac_ext <<_ACEOF
31205 cat confdefs.h >>conftest.$ac_ext
31206 cat >>conftest.$ac_ext <<_ACEOF
31207 /* end confdefs.h. */
31209 #include <pthread.h>
31210 #include <semaphore.h>
31221 rm -f conftest.$ac_objext
31222 if { (ac_try="$ac_compile"
31223 case "(($ac_try" in
31224 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31225 *) ac_try_echo
=$ac_try;;
31227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31228 (eval "$ac_compile") 2>conftest.er1
31230 grep -v '^ *+' conftest.er1
>conftest.err
31232 cat conftest.err
>&5
31233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31234 (exit $ac_status); } && {
31235 test -z "$ac_c_werror_flag" ||
31236 test ! -s conftest.err
31237 } && test -s conftest.
$ac_objext; then
31239 have_pthread_sem
=yes
31242 echo "$as_me: failed program was:" >&5
31243 sed 's/^/| /' conftest.
$ac_ext >&5
31248 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
31249 { echo "$as_me:$LINENO: result: $have_pthread_sem" >&5
31250 echo "${ECHO_T}$have_pthread_sem" >&6; }
31253 # Restore the compiler flags and libraries
31254 CFLAGS
="$ac_save_cflags"; LIBS
="$ac_save_libs"
31256 # Basic thread creation functions
31257 SOURCES
="$SOURCES $srcdir/src/thread/pthread/SDL_systhread.c"
31260 # We can fake these with mutexes and condition variables if necessary
31261 if test x
$have_pthread_sem = xyes
; then
31262 SOURCES
="$SOURCES $srcdir/src/thread/pthread/SDL_syssem.c"
31264 SOURCES
="$SOURCES $srcdir/src/thread/generic/SDL_syssem.c"
31268 # We can fake these with semaphores if necessary
31269 SOURCES
="$SOURCES $srcdir/src/thread/pthread/SDL_sysmutex.c"
31271 # Condition variables
31272 # We can fake these with semaphores and mutexes if necessary
31273 SOURCES
="$SOURCES $srcdir/src/thread/pthread/SDL_syscond.c"
31284 { echo "$as_me:$LINENO: checking Win32 compiler" >&5
31285 echo $ECHO_N "checking Win32 compiler... $ECHO_C" >&6; }
31287 cat >conftest.
$ac_ext <<_ACEOF
31290 cat confdefs.h
>>conftest.
$ac_ext
31291 cat >>conftest.
$ac_ext <<_ACEOF
31292 /* end confdefs.h. */
31294 #include <windows.h>
31305 rm -f conftest.
$ac_objext
31306 if { (ac_try
="$ac_compile"
31307 case "(($ac_try" in
31308 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31309 *) ac_try_echo=$ac_try;;
31311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31312 (eval "$ac_compile") 2>conftest.er1
31314 grep -v '^ *+' conftest.er1 >conftest.err
31316 cat conftest.err >&5
31317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31318 (exit $ac_status); } && {
31319 test -z "$ac_c_werror_flag" ||
31320 test ! -s conftest.err
31321 } && test -s conftest.$ac_objext; then
31326 echo "$as_me: failed program was:" >&5
31327 sed 's/^/| /' conftest.$ac_ext >&5
31332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31333 { echo "$as_me:$LINENO: result: $have_win32_gcc" >&5
31334 echo "${ECHO_T}$have_win32_gcc" >&6; }
31335 if test x$have_win32_gcc != xyes; then
31336 { { echo "$as_me:$LINENO: error:
31337 *** Your compiler ($CC) does not produce Win32 executables!
31339 echo "$as_me: error:
31340 *** Your compiler ($CC) does not produce Win32 executables!
31342 { (exit 1); exit 1; }; }
31345 # Check whether --enable-stdio-redirect was given.
31346 if test "${enable_stdio_redirect+set}" = set; then
31347 enableval=$enable_stdio_redirect;
31349 enable_stdio_redirect=yes
31352 if test x$enable_stdio_redirect != xyes; then
31353 EXTRA_CFLAGS="$EXTRA_CFLAGS -DNO_STDIO_REDIRECT"
31356 if test x$enable_video = xyes; then
31357 cat >>confdefs.h <<\_ACEOF
31358 #define SDL_VIDEO_DRIVER_WINDIB 1
31361 SOURCES="$SOURCES $srcdir/src/video/wincommon/*.c"
31362 SOURCES="$SOURCES $srcdir/src/video/windib/*.c"
31369 # Check whether --enable-directx was given.
31370 if test "${enable_directx+set}" = set; then
31371 enableval=$enable_directx;
31376 if test x$enable_directx = xyes; then
31378 if test "${ac_cv_header_ddraw_h+set}" = set; then
31379 { echo "$as_me:$LINENO: checking for ddraw.h" >&5
31380 echo $ECHO_N "checking for ddraw.h... $ECHO_C" >&6; }
31381 if test "${ac_cv_header_ddraw_h+set}" = set; then
31382 echo $ECHO_N "(cached) $ECHO_C" >&6
31384 { echo "$as_me:$LINENO: result: $ac_cv_header_ddraw_h" >&5
31385 echo "${ECHO_T}$ac_cv_header_ddraw_h" >&6; }
31387 # Is the header compilable?
31388 { echo "$as_me:$LINENO: checking ddraw.h usability" >&5
31389 echo $ECHO_N "checking ddraw.h usability... $ECHO_C" >&6; }
31390 cat >conftest.$ac_ext <<_ACEOF
31393 cat confdefs.h >>conftest.$ac_ext
31394 cat >>conftest.$ac_ext <<_ACEOF
31395 /* end confdefs.h. */
31396 $ac_includes_default
31399 rm -f conftest.$ac_objext
31400 if { (ac_try="$ac_compile"
31401 case "(($ac_try" in
31402 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31403 *) ac_try_echo
=$ac_try;;
31405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31406 (eval "$ac_compile") 2>conftest.er1
31408 grep -v '^ *+' conftest.er1
>conftest.err
31410 cat conftest.err
>&5
31411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31412 (exit $ac_status); } && {
31413 test -z "$ac_c_werror_flag" ||
31414 test ! -s conftest.err
31415 } && test -s conftest.
$ac_objext; then
31416 ac_header_compiler
=yes
31418 echo "$as_me: failed program was:" >&5
31419 sed 's/^/| /' conftest.
$ac_ext >&5
31421 ac_header_compiler
=no
31424 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
31425 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31426 echo "${ECHO_T}$ac_header_compiler" >&6; }
31428 # Is the header present?
31429 { echo "$as_me:$LINENO: checking ddraw.h presence" >&5
31430 echo $ECHO_N "checking ddraw.h presence... $ECHO_C" >&6; }
31431 cat >conftest.
$ac_ext <<_ACEOF
31434 cat confdefs.h
>>conftest.
$ac_ext
31435 cat >>conftest.
$ac_ext <<_ACEOF
31436 /* end confdefs.h. */
31439 if { (ac_try
="$ac_cpp conftest.$ac_ext"
31440 case "(($ac_try" in
31441 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31442 *) ac_try_echo=$ac_try;;
31444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31445 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31447 grep -v '^ *+' conftest.er1 >conftest.err
31449 cat conftest.err >&5
31450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31451 (exit $ac_status); } >/dev/null && {
31452 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31453 test ! -s conftest.err
31455 ac_header_preproc=yes
31457 echo "$as_me: failed program was:" >&5
31458 sed 's/^/| /' conftest.$ac_ext >&5
31460 ac_header_preproc=no
31463 rm -f conftest.err conftest.$ac_ext
31464 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31465 echo "${ECHO_T}$ac_header_preproc" >&6; }
31467 # So? What about this header?
31468 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31470 { echo "$as_me:$LINENO: WARNING: ddraw.h: accepted by the compiler, rejected by the preprocessor!" >&5
31471 echo "$as_me: WARNING: ddraw.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31472 { echo "$as_me:$LINENO: WARNING: ddraw.h: proceeding with the compiler's result" >&5
31473 echo "$as_me: WARNING: ddraw.h: proceeding with the compiler's result" >&2;}
31474 ac_header_preproc=yes
31477 { echo "$as_me:$LINENO: WARNING: ddraw.h: present but cannot be compiled" >&5
31478 echo "$as_me: WARNING: ddraw.h: present but cannot be compiled" >&2;}
31479 { echo "$as_me:$LINENO: WARNING: ddraw.h: check for missing prerequisite headers?" >&5
31480 echo "$as_me: WARNING: ddraw.h: check for missing prerequisite headers?" >&2;}
31481 { echo "$as_me:$LINENO: WARNING: ddraw.h: see the Autoconf documentation" >&5
31482 echo "$as_me: WARNING: ddraw.h: see the Autoconf documentation" >&2;}
31483 { echo "$as_me:$LINENO: WARNING: ddraw.h: section \"Present But Cannot Be Compiled\"" >&5
31484 echo "$as_me: WARNING: ddraw.h: section \"Present But Cannot Be Compiled\"" >&2;}
31485 { echo "$as_me:$LINENO: WARNING: ddraw.h: proceeding with the preprocessor's result" >&5
31486 echo "$as_me: WARNING: ddraw.h: proceeding with the preprocessor's result" >&2;}
31487 { echo "$as_me:$LINENO: WARNING: ddraw.h: in the future, the compiler will take precedence" >&5
31488 echo "$as_me: WARNING: ddraw.h: in the future, the compiler will take precedence" >&2;}
31492 { echo "$as_me:$LINENO: checking for ddraw.h" >&5
31493 echo $ECHO_N "checking for ddraw.h... $ECHO_C" >&6; }
31494 if test "${ac_cv_header_ddraw_h+set}" = set; then
31495 echo $ECHO_N "(cached) $ECHO_C" >&6
31497 ac_cv_header_ddraw_h=$ac_header_preproc
31499 { echo "$as_me:$LINENO: result: $ac_cv_header_ddraw_h" >&5
31500 echo "${ECHO_T}$ac_cv_header_ddraw_h" >&6; }
31503 if test $ac_cv_header_ddraw_h = yes; then
31508 if test "${ac_cv_header_dsound_h+set}" = set; then
31509 { echo "$as_me:$LINENO: checking for dsound.h" >&5
31510 echo $ECHO_N "checking for dsound.h... $ECHO_C" >&6; }
31511 if test "${ac_cv_header_dsound_h+set}" = set; then
31512 echo $ECHO_N "(cached) $ECHO_C" >&6
31514 { echo "$as_me:$LINENO: result: $ac_cv_header_dsound_h" >&5
31515 echo "${ECHO_T}$ac_cv_header_dsound_h" >&6; }
31517 # Is the header compilable?
31518 { echo "$as_me:$LINENO: checking dsound.h usability" >&5
31519 echo $ECHO_N "checking dsound.h usability... $ECHO_C" >&6; }
31520 cat >conftest.$ac_ext <<_ACEOF
31523 cat confdefs.h >>conftest.$ac_ext
31524 cat >>conftest.$ac_ext <<_ACEOF
31525 /* end confdefs.h. */
31526 $ac_includes_default
31527 #include <dsound.h>
31529 rm -f conftest.$ac_objext
31530 if { (ac_try="$ac_compile"
31531 case "(($ac_try" in
31532 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31533 *) ac_try_echo
=$ac_try;;
31535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31536 (eval "$ac_compile") 2>conftest.er1
31538 grep -v '^ *+' conftest.er1
>conftest.err
31540 cat conftest.err
>&5
31541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31542 (exit $ac_status); } && {
31543 test -z "$ac_c_werror_flag" ||
31544 test ! -s conftest.err
31545 } && test -s conftest.
$ac_objext; then
31546 ac_header_compiler
=yes
31548 echo "$as_me: failed program was:" >&5
31549 sed 's/^/| /' conftest.
$ac_ext >&5
31551 ac_header_compiler
=no
31554 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
31555 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31556 echo "${ECHO_T}$ac_header_compiler" >&6; }
31558 # Is the header present?
31559 { echo "$as_me:$LINENO: checking dsound.h presence" >&5
31560 echo $ECHO_N "checking dsound.h presence... $ECHO_C" >&6; }
31561 cat >conftest.
$ac_ext <<_ACEOF
31564 cat confdefs.h
>>conftest.
$ac_ext
31565 cat >>conftest.
$ac_ext <<_ACEOF
31566 /* end confdefs.h. */
31567 #include <dsound.h>
31569 if { (ac_try
="$ac_cpp conftest.$ac_ext"
31570 case "(($ac_try" in
31571 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31572 *) ac_try_echo=$ac_try;;
31574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31575 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31577 grep -v '^ *+' conftest.er1 >conftest.err
31579 cat conftest.err >&5
31580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31581 (exit $ac_status); } >/dev/null && {
31582 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31583 test ! -s conftest.err
31585 ac_header_preproc=yes
31587 echo "$as_me: failed program was:" >&5
31588 sed 's/^/| /' conftest.$ac_ext >&5
31590 ac_header_preproc=no
31593 rm -f conftest.err conftest.$ac_ext
31594 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31595 echo "${ECHO_T}$ac_header_preproc" >&6; }
31597 # So? What about this header?
31598 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31600 { echo "$as_me:$LINENO: WARNING: dsound.h: accepted by the compiler, rejected by the preprocessor!" >&5
31601 echo "$as_me: WARNING: dsound.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31602 { echo "$as_me:$LINENO: WARNING: dsound.h: proceeding with the compiler's result" >&5
31603 echo "$as_me: WARNING: dsound.h: proceeding with the compiler's result" >&2;}
31604 ac_header_preproc=yes
31607 { echo "$as_me:$LINENO: WARNING: dsound.h: present but cannot be compiled" >&5
31608 echo "$as_me: WARNING: dsound.h: present but cannot be compiled" >&2;}
31609 { echo "$as_me:$LINENO: WARNING: dsound.h: check for missing prerequisite headers?" >&5
31610 echo "$as_me: WARNING: dsound.h: check for missing prerequisite headers?" >&2;}
31611 { echo "$as_me:$LINENO: WARNING: dsound.h: see the Autoconf documentation" >&5
31612 echo "$as_me: WARNING: dsound.h: see the Autoconf documentation" >&2;}
31613 { echo "$as_me:$LINENO: WARNING: dsound.h: section \"Present But Cannot Be Compiled\"" >&5
31614 echo "$as_me: WARNING: dsound.h: section \"Present But Cannot Be Compiled\"" >&2;}
31615 { echo "$as_me:$LINENO: WARNING: dsound.h: proceeding with the preprocessor's result" >&5
31616 echo "$as_me: WARNING: dsound.h: proceeding with the preprocessor's result" >&2;}
31617 { echo "$as_me:$LINENO: WARNING: dsound.h: in the future, the compiler will take precedence" >&5
31618 echo "$as_me: WARNING: dsound.h: in the future, the compiler will take precedence" >&2;}
31622 { echo "$as_me:$LINENO: checking for dsound.h" >&5
31623 echo $ECHO_N "checking for dsound.h... $ECHO_C" >&6; }
31624 if test "${ac_cv_header_dsound_h+set}" = set; then
31625 echo $ECHO_N "(cached) $ECHO_C" >&6
31627 ac_cv_header_dsound_h=$ac_header_preproc
31629 { echo "$as_me:$LINENO: result: $ac_cv_header_dsound_h" >&5
31630 echo "${ECHO_T}$ac_cv_header_dsound_h" >&6; }
31633 if test $ac_cv_header_dsound_h = yes; then
31638 if test "${ac_cv_header_dinput_h+set}" = set; then
31639 { echo "$as_me:$LINENO: checking for dinput.h" >&5
31640 echo $ECHO_N "checking for dinput.h... $ECHO_C" >&6; }
31641 if test "${ac_cv_header_dinput_h+set}" = set; then
31642 echo $ECHO_N "(cached) $ECHO_C" >&6
31644 { echo "$as_me:$LINENO: result: $ac_cv_header_dinput_h" >&5
31645 echo "${ECHO_T}$ac_cv_header_dinput_h" >&6; }
31647 # Is the header compilable?
31648 { echo "$as_me:$LINENO: checking dinput.h usability" >&5
31649 echo $ECHO_N "checking dinput.h usability... $ECHO_C" >&6; }
31650 cat >conftest.$ac_ext <<_ACEOF
31653 cat confdefs.h >>conftest.$ac_ext
31654 cat >>conftest.$ac_ext <<_ACEOF
31655 /* end confdefs.h. */
31656 $ac_includes_default
31657 #include <dinput.h>
31659 rm -f conftest.$ac_objext
31660 if { (ac_try="$ac_compile"
31661 case "(($ac_try" in
31662 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31663 *) ac_try_echo
=$ac_try;;
31665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31666 (eval "$ac_compile") 2>conftest.er1
31668 grep -v '^ *+' conftest.er1
>conftest.err
31670 cat conftest.err
>&5
31671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31672 (exit $ac_status); } && {
31673 test -z "$ac_c_werror_flag" ||
31674 test ! -s conftest.err
31675 } && test -s conftest.
$ac_objext; then
31676 ac_header_compiler
=yes
31678 echo "$as_me: failed program was:" >&5
31679 sed 's/^/| /' conftest.
$ac_ext >&5
31681 ac_header_compiler
=no
31684 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
31685 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31686 echo "${ECHO_T}$ac_header_compiler" >&6; }
31688 # Is the header present?
31689 { echo "$as_me:$LINENO: checking dinput.h presence" >&5
31690 echo $ECHO_N "checking dinput.h presence... $ECHO_C" >&6; }
31691 cat >conftest.
$ac_ext <<_ACEOF
31694 cat confdefs.h
>>conftest.
$ac_ext
31695 cat >>conftest.
$ac_ext <<_ACEOF
31696 /* end confdefs.h. */
31697 #include <dinput.h>
31699 if { (ac_try
="$ac_cpp conftest.$ac_ext"
31700 case "(($ac_try" in
31701 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31702 *) ac_try_echo=$ac_try;;
31704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31705 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31707 grep -v '^ *+' conftest.er1 >conftest.err
31709 cat conftest.err >&5
31710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31711 (exit $ac_status); } >/dev/null && {
31712 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31713 test ! -s conftest.err
31715 ac_header_preproc=yes
31717 echo "$as_me: failed program was:" >&5
31718 sed 's/^/| /' conftest.$ac_ext >&5
31720 ac_header_preproc=no
31723 rm -f conftest.err conftest.$ac_ext
31724 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31725 echo "${ECHO_T}$ac_header_preproc" >&6; }
31727 # So? What about this header?
31728 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31730 { echo "$as_me:$LINENO: WARNING: dinput.h: accepted by the compiler, rejected by the preprocessor!" >&5
31731 echo "$as_me: WARNING: dinput.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31732 { echo "$as_me:$LINENO: WARNING: dinput.h: proceeding with the compiler's result" >&5
31733 echo "$as_me: WARNING: dinput.h: proceeding with the compiler's result" >&2;}
31734 ac_header_preproc=yes
31737 { echo "$as_me:$LINENO: WARNING: dinput.h: present but cannot be compiled" >&5
31738 echo "$as_me: WARNING: dinput.h: present but cannot be compiled" >&2;}
31739 { echo "$as_me:$LINENO: WARNING: dinput.h: check for missing prerequisite headers?" >&5
31740 echo "$as_me: WARNING: dinput.h: check for missing prerequisite headers?" >&2;}
31741 { echo "$as_me:$LINENO: WARNING: dinput.h: see the Autoconf documentation" >&5
31742 echo "$as_me: WARNING: dinput.h: see the Autoconf documentation" >&2;}
31743 { echo "$as_me:$LINENO: WARNING: dinput.h: section \"Present But Cannot Be Compiled\"" >&5
31744 echo "$as_me: WARNING: dinput.h: section \"Present But Cannot Be Compiled\"" >&2;}
31745 { echo "$as_me:$LINENO: WARNING: dinput.h: proceeding with the preprocessor's result" >&5
31746 echo "$as_me: WARNING: dinput.h: proceeding with the preprocessor's result" >&2;}
31747 { echo "$as_me:$LINENO: WARNING: dinput.h: in the future, the compiler will take precedence" >&5
31748 echo "$as_me: WARNING: dinput.h: in the future, the compiler will take precedence" >&2;}
31752 { echo "$as_me:$LINENO: checking for dinput.h" >&5
31753 echo $ECHO_N "checking for dinput.h... $ECHO_C" >&6; }
31754 if test "${ac_cv_header_dinput_h+set}" = set; then
31755 echo $ECHO_N "(cached) $ECHO_C" >&6
31757 ac_cv_header_dinput_h=$ac_header_preproc
31759 { echo "$as_me:$LINENO: result: $ac_cv_header_dinput_h" >&5
31760 echo "${ECHO_T}$ac_cv_header_dinput_h" >&6; }
31763 if test $ac_cv_header_dinput_h = yes; then
31768 if test x$have_ddraw = xyes -a x$have_dsound = xyes -a x$use_dinput = xyes; then
31771 if test x$enable_video = xyes -a x$have_directx = xyes; then
31772 cat >>confdefs.h <<\_ACEOF
31773 #define SDL_VIDEO_DRIVER_DDRAW 1
31776 SOURCES="$SOURCES $srcdir/src/video/windx5/*.c"
31784 # Check whether --enable-sdl-dlopen was given.
31785 if test "${enable_sdl_dlopen+set}" = set; then
31786 enableval=$enable_sdl_dlopen;
31788 enable_sdl_dlopen=yes
31791 if test x$enable_sdl_dlopen = xyes; then
31792 { echo "$as_me:$LINENO: checking for dlopen" >&5
31793 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
31795 cat >conftest.$ac_ext <<_ACEOF
31798 cat confdefs.h >>conftest.$ac_ext
31799 cat >>conftest.$ac_ext <<_ACEOF
31800 /* end confdefs.h. */
31808 #if defined(MAC_OS_X_VERSION_MIN_REQUIRED) && MAC_OS_X_VERSION_MIN_REQUIRED <= 1020
31809 #error Use dlcompat for Mac OS X 10.2 compatibility
31816 rm -f conftest.$ac_objext
31817 if { (ac_try="$ac_compile"
31818 case "(($ac_try" in
31819 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31820 *) ac_try_echo
=$ac_try;;
31822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31823 (eval "$ac_compile") 2>conftest.er1
31825 grep -v '^ *+' conftest.er1
>conftest.err
31827 cat conftest.err
>&5
31828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31829 (exit $ac_status); } && {
31830 test -z "$ac_c_werror_flag" ||
31831 test ! -s conftest.err
31832 } && test -s conftest.
$ac_objext; then
31837 echo "$as_me: failed program was:" >&5
31838 sed 's/^/| /' conftest.
$ac_ext >&5
31843 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
31844 { echo "$as_me:$LINENO: result: $have_dlopen" >&5
31845 echo "${ECHO_T}$have_dlopen" >&6; }
31847 if test x
$have_dlopen = xyes
; then
31848 { echo "$as_me:$LINENO: checking for dlopen in -lc" >&5
31849 echo $ECHO_N "checking for dlopen in -lc... $ECHO_C" >&6; }
31850 if test "${ac_cv_lib_c_dlopen+set}" = set; then
31851 echo $ECHO_N "(cached) $ECHO_C" >&6
31853 ac_check_lib_save_LIBS
=$LIBS
31855 cat >conftest.
$ac_ext <<_ACEOF
31858 cat confdefs.h
>>conftest.
$ac_ext
31859 cat >>conftest.
$ac_ext <<_ACEOF
31860 /* end confdefs.h. */
31862 /* Override any GCC internal prototype to avoid an error.
31863 Use char because int might match the return type of a GCC
31864 builtin and then its argument prototype would still apply. */
31877 rm -f conftest.
$ac_objext conftest
$ac_exeext
31878 if { (ac_try
="$ac_link"
31879 case "(($ac_try" in
31880 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31881 *) ac_try_echo=$ac_try;;
31883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31884 (eval "$ac_link") 2>conftest.er1
31886 grep -v '^ *+' conftest.er1 >conftest.err
31888 cat conftest.err >&5
31889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31890 (exit $ac_status); } && {
31891 test -z "$ac_c_werror_flag" ||
31892 test ! -s conftest.err
31893 } && test -s conftest$ac_exeext &&
31894 $as_test_x conftest$ac_exeext; then
31895 ac_cv_lib_c_dlopen=yes
31897 echo "$as_me: failed program was:" >&5
31898 sed 's/^/| /' conftest.$ac_ext >&5
31900 ac_cv_lib_c_dlopen=no
31903 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31904 conftest$ac_exeext conftest.$ac_ext
31905 LIBS=$ac_check_lib_save_LIBS
31907 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_dlopen" >&5
31908 echo "${ECHO_T}$ac_cv_lib_c_dlopen" >&6; }
31909 if test $ac_cv_lib_c_dlopen = yes; then
31910 EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
31912 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
31913 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
31914 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
31915 echo $ECHO_N "(cached) $ECHO_C" >&6
31917 ac_check_lib_save_LIBS=$LIBS
31919 cat >conftest.$ac_ext <<_ACEOF
31922 cat confdefs.h >>conftest.$ac_ext
31923 cat >>conftest.$ac_ext <<_ACEOF
31924 /* end confdefs.h. */
31926 /* Override any GCC internal prototype to avoid an error.
31927 Use char because int might match the return type of a GCC
31928 builtin and then its argument prototype would still apply. */
31941 rm -f conftest.$ac_objext conftest$ac_exeext
31942 if { (ac_try="$ac_link"
31943 case "(($ac_try" in
31944 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31945 *) ac_try_echo
=$ac_try;;
31947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31948 (eval "$ac_link") 2>conftest.er1
31950 grep -v '^ *+' conftest.er1
>conftest.err
31952 cat conftest.err
>&5
31953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31954 (exit $ac_status); } && {
31955 test -z "$ac_c_werror_flag" ||
31956 test ! -s conftest.err
31957 } && test -s conftest
$ac_exeext &&
31958 $as_test_x conftest
$ac_exeext; then
31959 ac_cv_lib_dl_dlopen
=yes
31961 echo "$as_me: failed program was:" >&5
31962 sed 's/^/| /' conftest.
$ac_ext >&5
31964 ac_cv_lib_dl_dlopen
=no
31967 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
31968 conftest
$ac_exeext conftest.
$ac_ext
31969 LIBS
=$ac_check_lib_save_LIBS
31971 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
31972 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
31973 if test $ac_cv_lib_dl_dlopen = yes; then
31974 EXTRA_LDFLAGS
="$EXTRA_LDFLAGS -ldl"
31976 { echo "$as_me:$LINENO: checking for dlopen in -lltdl" >&5
31977 echo $ECHO_N "checking for dlopen in -lltdl... $ECHO_C" >&6; }
31978 if test "${ac_cv_lib_ltdl_dlopen+set}" = set; then
31979 echo $ECHO_N "(cached) $ECHO_C" >&6
31981 ac_check_lib_save_LIBS
=$LIBS
31982 LIBS
="-lltdl $LIBS"
31983 cat >conftest.
$ac_ext <<_ACEOF
31986 cat confdefs.h
>>conftest.
$ac_ext
31987 cat >>conftest.
$ac_ext <<_ACEOF
31988 /* end confdefs.h. */
31990 /* Override any GCC internal prototype to avoid an error.
31991 Use char because int might match the return type of a GCC
31992 builtin and then its argument prototype would still apply. */
32005 rm -f conftest.
$ac_objext conftest
$ac_exeext
32006 if { (ac_try
="$ac_link"
32007 case "(($ac_try" in
32008 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32009 *) ac_try_echo=$ac_try;;
32011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32012 (eval "$ac_link") 2>conftest.er1
32014 grep -v '^ *+' conftest.er1 >conftest.err
32016 cat conftest.err >&5
32017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32018 (exit $ac_status); } && {
32019 test -z "$ac_c_werror_flag" ||
32020 test ! -s conftest.err
32021 } && test -s conftest$ac_exeext &&
32022 $as_test_x conftest$ac_exeext; then
32023 ac_cv_lib_ltdl_dlopen=yes
32025 echo "$as_me: failed program was:" >&5
32026 sed 's/^/| /' conftest.$ac_ext >&5
32028 ac_cv_lib_ltdl_dlopen=no
32031 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32032 conftest$ac_exeext conftest.$ac_ext
32033 LIBS=$ac_check_lib_save_LIBS
32035 { echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_dlopen" >&5
32036 echo "${ECHO_T}$ac_cv_lib_ltdl_dlopen" >&6; }
32037 if test $ac_cv_lib_ltdl_dlopen = yes; then
32038 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lltdl"
32045 { echo "$as_me:$LINENO: checking for dlvsym in -ldl" >&5
32046 echo $ECHO_N "checking for dlvsym in -ldl... $ECHO_C" >&6; }
32047 if test "${ac_cv_lib_dl_dlvsym+set}" = set; then
32048 echo $ECHO_N "(cached) $ECHO_C" >&6
32050 ac_check_lib_save_LIBS=$LIBS
32052 cat >conftest.$ac_ext <<_ACEOF
32055 cat confdefs.h >>conftest.$ac_ext
32056 cat >>conftest.$ac_ext <<_ACEOF
32057 /* end confdefs.h. */
32059 /* Override any GCC internal prototype to avoid an error.
32060 Use char because int might match the return type of a GCC
32061 builtin and then its argument prototype would still apply. */
32074 rm -f conftest.$ac_objext conftest$ac_exeext
32075 if { (ac_try="$ac_link"
32076 case "(($ac_try" in
32077 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32078 *) ac_try_echo
=$ac_try;;
32080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32081 (eval "$ac_link") 2>conftest.er1
32083 grep -v '^ *+' conftest.er1
>conftest.err
32085 cat conftest.err
>&5
32086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32087 (exit $ac_status); } && {
32088 test -z "$ac_c_werror_flag" ||
32089 test ! -s conftest.err
32090 } && test -s conftest
$ac_exeext &&
32091 $as_test_x conftest
$ac_exeext; then
32092 ac_cv_lib_dl_dlvsym
=yes
32094 echo "$as_me: failed program was:" >&5
32095 sed 's/^/| /' conftest.
$ac_ext >&5
32097 ac_cv_lib_dl_dlvsym
=no
32100 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
32101 conftest
$ac_exeext conftest.
$ac_ext
32102 LIBS
=$ac_check_lib_save_LIBS
32104 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlvsym" >&5
32105 echo "${ECHO_T}$ac_cv_lib_dl_dlvsym" >&6; }
32106 if test $ac_cv_lib_dl_dlvsym = yes; then
32110 if test x
$have_dlvsym = xyes
; then
32111 cat >>confdefs.h
<<\_ACEOF
32112 #define HAVE_DLVSYM 1
32116 cat >>confdefs.h
<<\_ACEOF
32117 #define SDL_LOADSO_DLOPEN 1
32120 SOURCES
="$SOURCES $srcdir/src/loadso/dlopen/*.c"
32128 # Check whether --enable-atari-ldg was given.
32129 if test "${enable_atari_ldg+set}" = set; then
32130 enableval
=$enable_atari_ldg;
32132 enable_atari_ldg
=yes
32135 if test x
$video_gem = xyes
-a x
$enable_atari_ldg = xyes
; then
32136 if test "${ac_cv_header_ldg_h+set}" = set; then
32137 { echo "$as_me:$LINENO: checking for ldg.h" >&5
32138 echo $ECHO_N "checking for ldg.h... $ECHO_C" >&6; }
32139 if test "${ac_cv_header_ldg_h+set}" = set; then
32140 echo $ECHO_N "(cached) $ECHO_C" >&6
32142 { echo "$as_me:$LINENO: result: $ac_cv_header_ldg_h" >&5
32143 echo "${ECHO_T}$ac_cv_header_ldg_h" >&6; }
32145 # Is the header compilable?
32146 { echo "$as_me:$LINENO: checking ldg.h usability" >&5
32147 echo $ECHO_N "checking ldg.h usability... $ECHO_C" >&6; }
32148 cat >conftest.
$ac_ext <<_ACEOF
32151 cat confdefs.h
>>conftest.
$ac_ext
32152 cat >>conftest.
$ac_ext <<_ACEOF
32153 /* end confdefs.h. */
32154 $ac_includes_default
32157 rm -f conftest.
$ac_objext
32158 if { (ac_try
="$ac_compile"
32159 case "(($ac_try" in
32160 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32161 *) ac_try_echo=$ac_try;;
32163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32164 (eval "$ac_compile") 2>conftest.er1
32166 grep -v '^ *+' conftest.er1 >conftest.err
32168 cat conftest.err >&5
32169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32170 (exit $ac_status); } && {
32171 test -z "$ac_c_werror_flag" ||
32172 test ! -s conftest.err
32173 } && test -s conftest.$ac_objext; then
32174 ac_header_compiler=yes
32176 echo "$as_me: failed program was:" >&5
32177 sed 's/^/| /' conftest.$ac_ext >&5
32179 ac_header_compiler=no
32182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32183 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32184 echo "${ECHO_T}$ac_header_compiler" >&6; }
32186 # Is the header present?
32187 { echo "$as_me:$LINENO: checking ldg.h presence" >&5
32188 echo $ECHO_N "checking ldg.h presence... $ECHO_C" >&6; }
32189 cat >conftest.$ac_ext <<_ACEOF
32192 cat confdefs.h >>conftest.$ac_ext
32193 cat >>conftest.$ac_ext <<_ACEOF
32194 /* end confdefs.h. */
32197 if { (ac_try="$ac_cpp conftest.$ac_ext"
32198 case "(($ac_try" in
32199 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32200 *) ac_try_echo
=$ac_try;;
32202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32203 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32205 grep -v '^ *+' conftest.er1
>conftest.err
32207 cat conftest.err
>&5
32208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32209 (exit $ac_status); } >/dev
/null
&& {
32210 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32211 test ! -s conftest.err
32213 ac_header_preproc
=yes
32215 echo "$as_me: failed program was:" >&5
32216 sed 's/^/| /' conftest.
$ac_ext >&5
32218 ac_header_preproc
=no
32221 rm -f conftest.err conftest.
$ac_ext
32222 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32223 echo "${ECHO_T}$ac_header_preproc" >&6; }
32225 # So? What about this header?
32226 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32228 { echo "$as_me:$LINENO: WARNING: ldg.h: accepted by the compiler, rejected by the preprocessor!" >&5
32229 echo "$as_me: WARNING: ldg.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32230 { echo "$as_me:$LINENO: WARNING: ldg.h: proceeding with the compiler's result" >&5
32231 echo "$as_me: WARNING: ldg.h: proceeding with the compiler's result" >&2;}
32232 ac_header_preproc
=yes
32235 { echo "$as_me:$LINENO: WARNING: ldg.h: present but cannot be compiled" >&5
32236 echo "$as_me: WARNING: ldg.h: present but cannot be compiled" >&2;}
32237 { echo "$as_me:$LINENO: WARNING: ldg.h: check for missing prerequisite headers?" >&5
32238 echo "$as_me: WARNING: ldg.h: check for missing prerequisite headers?" >&2;}
32239 { echo "$as_me:$LINENO: WARNING: ldg.h: see the Autoconf documentation" >&5
32240 echo "$as_me: WARNING: ldg.h: see the Autoconf documentation" >&2;}
32241 { echo "$as_me:$LINENO: WARNING: ldg.h: section \"Present But Cannot Be Compiled\"" >&5
32242 echo "$as_me: WARNING: ldg.h: section \"Present But Cannot Be Compiled\"" >&2;}
32243 { echo "$as_me:$LINENO: WARNING: ldg.h: proceeding with the preprocessor's result" >&5
32244 echo "$as_me: WARNING: ldg.h: proceeding with the preprocessor's result" >&2;}
32245 { echo "$as_me:$LINENO: WARNING: ldg.h: in the future, the compiler will take precedence" >&5
32246 echo "$as_me: WARNING: ldg.h: in the future, the compiler will take precedence" >&2;}
32250 { echo "$as_me:$LINENO: checking for ldg.h" >&5
32251 echo $ECHO_N "checking for ldg.h... $ECHO_C" >&6; }
32252 if test "${ac_cv_header_ldg_h+set}" = set; then
32253 echo $ECHO_N "(cached) $ECHO_C" >&6
32255 ac_cv_header_ldg_h
=$ac_header_preproc
32257 { echo "$as_me:$LINENO: result: $ac_cv_header_ldg_h" >&5
32258 echo "${ECHO_T}$ac_cv_header_ldg_h" >&6; }
32261 if test $ac_cv_header_ldg_h = yes; then
32266 { echo "$as_me:$LINENO: checking for ldg_open in -lldg" >&5
32267 echo $ECHO_N "checking for ldg_open in -lldg... $ECHO_C" >&6; }
32268 if test "${ac_cv_lib_ldg_ldg_open+set}" = set; then
32269 echo $ECHO_N "(cached) $ECHO_C" >&6
32271 ac_check_lib_save_LIBS
=$LIBS
32272 LIBS
="-lldg -lgem $LIBS"
32273 cat >conftest.
$ac_ext <<_ACEOF
32276 cat confdefs.h
>>conftest.
$ac_ext
32277 cat >>conftest.
$ac_ext <<_ACEOF
32278 /* end confdefs.h. */
32280 /* Override any GCC internal prototype to avoid an error.
32281 Use char because int might match the return type of a GCC
32282 builtin and then its argument prototype would still apply. */
32290 return ldg_open ();
32295 rm -f conftest.
$ac_objext conftest
$ac_exeext
32296 if { (ac_try
="$ac_link"
32297 case "(($ac_try" in
32298 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32299 *) ac_try_echo=$ac_try;;
32301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32302 (eval "$ac_link") 2>conftest.er1
32304 grep -v '^ *+' conftest.er1 >conftest.err
32306 cat conftest.err >&5
32307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32308 (exit $ac_status); } && {
32309 test -z "$ac_c_werror_flag" ||
32310 test ! -s conftest.err
32311 } && test -s conftest$ac_exeext &&
32312 $as_test_x conftest$ac_exeext; then
32313 ac_cv_lib_ldg_ldg_open=yes
32315 echo "$as_me: failed program was:" >&5
32316 sed 's/^/| /' conftest.$ac_ext >&5
32318 ac_cv_lib_ldg_ldg_open=no
32321 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32322 conftest$ac_exeext conftest.$ac_ext
32323 LIBS=$ac_check_lib_save_LIBS
32325 { echo "$as_me:$LINENO: result: $ac_cv_lib_ldg_ldg_open" >&5
32326 echo "${ECHO_T}$ac_cv_lib_ldg_ldg_open" >&6; }
32327 if test $ac_cv_lib_ldg_ldg_open = yes; then
32333 if test x$have_ldg_hdr = xyes -a x$have_ldg_lib = xyes; then
32334 cat >>confdefs.h <<\_ACEOF
32335 #define SDL_LOADSO_LDG 1
32338 SOURCES="$SOURCES $srcdir/src/loadso/mint/*.c"
32339 SDL_LIBS="$SDL_LIBS -lldg -lgem"
32347 if test x$enable_joystick = xyes; then
32348 { echo "$as_me:$LINENO: checking for hid_init in -lusbhid" >&5
32349 echo $ECHO_N "checking for hid_init in -lusbhid... $ECHO_C" >&6; }
32350 if test "${ac_cv_lib_usbhid_hid_init+set}" = set; then
32351 echo $ECHO_N "(cached) $ECHO_C" >&6
32353 ac_check_lib_save_LIBS=$LIBS
32354 LIBS="-lusbhid $LIBS"
32355 cat >conftest.$ac_ext <<_ACEOF
32358 cat confdefs.h >>conftest.$ac_ext
32359 cat >>conftest.$ac_ext <<_ACEOF
32360 /* end confdefs.h. */
32362 /* Override any GCC internal prototype to avoid an error.
32363 Use char because int might match the return type of a GCC
32364 builtin and then its argument prototype would still apply. */
32372 return hid_init ();
32377 rm -f conftest.$ac_objext conftest$ac_exeext
32378 if { (ac_try="$ac_link"
32379 case "(($ac_try" in
32380 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32381 *) ac_try_echo
=$ac_try;;
32383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32384 (eval "$ac_link") 2>conftest.er1
32386 grep -v '^ *+' conftest.er1
>conftest.err
32388 cat conftest.err
>&5
32389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32390 (exit $ac_status); } && {
32391 test -z "$ac_c_werror_flag" ||
32392 test ! -s conftest.err
32393 } && test -s conftest
$ac_exeext &&
32394 $as_test_x conftest
$ac_exeext; then
32395 ac_cv_lib_usbhid_hid_init
=yes
32397 echo "$as_me: failed program was:" >&5
32398 sed 's/^/| /' conftest.
$ac_ext >&5
32400 ac_cv_lib_usbhid_hid_init
=no
32403 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
32404 conftest
$ac_exeext conftest.
$ac_ext
32405 LIBS
=$ac_check_lib_save_LIBS
32407 { echo "$as_me:$LINENO: result: $ac_cv_lib_usbhid_hid_init" >&5
32408 echo "${ECHO_T}$ac_cv_lib_usbhid_hid_init" >&6; }
32409 if test $ac_cv_lib_usbhid_hid_init = yes; then
32413 if test x
$have_libusbhid = xyes
; then
32414 if test "${ac_cv_header_usbhid_h+set}" = set; then
32415 { echo "$as_me:$LINENO: checking for usbhid.h" >&5
32416 echo $ECHO_N "checking for usbhid.h... $ECHO_C" >&6; }
32417 if test "${ac_cv_header_usbhid_h+set}" = set; then
32418 echo $ECHO_N "(cached) $ECHO_C" >&6
32420 { echo "$as_me:$LINENO: result: $ac_cv_header_usbhid_h" >&5
32421 echo "${ECHO_T}$ac_cv_header_usbhid_h" >&6; }
32423 # Is the header compilable?
32424 { echo "$as_me:$LINENO: checking usbhid.h usability" >&5
32425 echo $ECHO_N "checking usbhid.h usability... $ECHO_C" >&6; }
32426 cat >conftest.
$ac_ext <<_ACEOF
32429 cat confdefs.h
>>conftest.
$ac_ext
32430 cat >>conftest.
$ac_ext <<_ACEOF
32431 /* end confdefs.h. */
32432 $ac_includes_default
32433 #include <usbhid.h>
32435 rm -f conftest.
$ac_objext
32436 if { (ac_try
="$ac_compile"
32437 case "(($ac_try" in
32438 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32439 *) ac_try_echo=$ac_try;;
32441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32442 (eval "$ac_compile") 2>conftest.er1
32444 grep -v '^ *+' conftest.er1 >conftest.err
32446 cat conftest.err >&5
32447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32448 (exit $ac_status); } && {
32449 test -z "$ac_c_werror_flag" ||
32450 test ! -s conftest.err
32451 } && test -s conftest.$ac_objext; then
32452 ac_header_compiler=yes
32454 echo "$as_me: failed program was:" >&5
32455 sed 's/^/| /' conftest.$ac_ext >&5
32457 ac_header_compiler=no
32460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32461 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32462 echo "${ECHO_T}$ac_header_compiler" >&6; }
32464 # Is the header present?
32465 { echo "$as_me:$LINENO: checking usbhid.h presence" >&5
32466 echo $ECHO_N "checking usbhid.h presence... $ECHO_C" >&6; }
32467 cat >conftest.$ac_ext <<_ACEOF
32470 cat confdefs.h >>conftest.$ac_ext
32471 cat >>conftest.$ac_ext <<_ACEOF
32472 /* end confdefs.h. */
32473 #include <usbhid.h>
32475 if { (ac_try="$ac_cpp conftest.$ac_ext"
32476 case "(($ac_try" in
32477 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32478 *) ac_try_echo
=$ac_try;;
32480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32481 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32483 grep -v '^ *+' conftest.er1
>conftest.err
32485 cat conftest.err
>&5
32486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32487 (exit $ac_status); } >/dev
/null
&& {
32488 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32489 test ! -s conftest.err
32491 ac_header_preproc
=yes
32493 echo "$as_me: failed program was:" >&5
32494 sed 's/^/| /' conftest.
$ac_ext >&5
32496 ac_header_preproc
=no
32499 rm -f conftest.err conftest.
$ac_ext
32500 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32501 echo "${ECHO_T}$ac_header_preproc" >&6; }
32503 # So? What about this header?
32504 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32506 { echo "$as_me:$LINENO: WARNING: usbhid.h: accepted by the compiler, rejected by the preprocessor!" >&5
32507 echo "$as_me: WARNING: usbhid.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32508 { echo "$as_me:$LINENO: WARNING: usbhid.h: proceeding with the compiler's result" >&5
32509 echo "$as_me: WARNING: usbhid.h: proceeding with the compiler's result" >&2;}
32510 ac_header_preproc
=yes
32513 { echo "$as_me:$LINENO: WARNING: usbhid.h: present but cannot be compiled" >&5
32514 echo "$as_me: WARNING: usbhid.h: present but cannot be compiled" >&2;}
32515 { echo "$as_me:$LINENO: WARNING: usbhid.h: check for missing prerequisite headers?" >&5
32516 echo "$as_me: WARNING: usbhid.h: check for missing prerequisite headers?" >&2;}
32517 { echo "$as_me:$LINENO: WARNING: usbhid.h: see the Autoconf documentation" >&5
32518 echo "$as_me: WARNING: usbhid.h: see the Autoconf documentation" >&2;}
32519 { echo "$as_me:$LINENO: WARNING: usbhid.h: section \"Present But Cannot Be Compiled\"" >&5
32520 echo "$as_me: WARNING: usbhid.h: section \"Present But Cannot Be Compiled\"" >&2;}
32521 { echo "$as_me:$LINENO: WARNING: usbhid.h: proceeding with the preprocessor's result" >&5
32522 echo "$as_me: WARNING: usbhid.h: proceeding with the preprocessor's result" >&2;}
32523 { echo "$as_me:$LINENO: WARNING: usbhid.h: in the future, the compiler will take precedence" >&5
32524 echo "$as_me: WARNING: usbhid.h: in the future, the compiler will take precedence" >&2;}
32528 { echo "$as_me:$LINENO: checking for usbhid.h" >&5
32529 echo $ECHO_N "checking for usbhid.h... $ECHO_C" >&6; }
32530 if test "${ac_cv_header_usbhid_h+set}" = set; then
32531 echo $ECHO_N "(cached) $ECHO_C" >&6
32533 ac_cv_header_usbhid_h
=$ac_header_preproc
32535 { echo "$as_me:$LINENO: result: $ac_cv_header_usbhid_h" >&5
32536 echo "${ECHO_T}$ac_cv_header_usbhid_h" >&6; }
32539 if test $ac_cv_header_usbhid_h = yes; then
32540 USB_CFLAGS
="-DHAVE_USBHID_H"
32544 if test "${ac_cv_header_libusbhid_h+set}" = set; then
32545 { echo "$as_me:$LINENO: checking for libusbhid.h" >&5
32546 echo $ECHO_N "checking for libusbhid.h... $ECHO_C" >&6; }
32547 if test "${ac_cv_header_libusbhid_h+set}" = set; then
32548 echo $ECHO_N "(cached) $ECHO_C" >&6
32550 { echo "$as_me:$LINENO: result: $ac_cv_header_libusbhid_h" >&5
32551 echo "${ECHO_T}$ac_cv_header_libusbhid_h" >&6; }
32553 # Is the header compilable?
32554 { echo "$as_me:$LINENO: checking libusbhid.h usability" >&5
32555 echo $ECHO_N "checking libusbhid.h usability... $ECHO_C" >&6; }
32556 cat >conftest.
$ac_ext <<_ACEOF
32559 cat confdefs.h
>>conftest.
$ac_ext
32560 cat >>conftest.
$ac_ext <<_ACEOF
32561 /* end confdefs.h. */
32562 $ac_includes_default
32563 #include <libusbhid.h>
32565 rm -f conftest.
$ac_objext
32566 if { (ac_try
="$ac_compile"
32567 case "(($ac_try" in
32568 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32569 *) ac_try_echo=$ac_try;;
32571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32572 (eval "$ac_compile") 2>conftest.er1
32574 grep -v '^ *+' conftest.er1 >conftest.err
32576 cat conftest.err >&5
32577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32578 (exit $ac_status); } && {
32579 test -z "$ac_c_werror_flag" ||
32580 test ! -s conftest.err
32581 } && test -s conftest.$ac_objext; then
32582 ac_header_compiler=yes
32584 echo "$as_me: failed program was:" >&5
32585 sed 's/^/| /' conftest.$ac_ext >&5
32587 ac_header_compiler=no
32590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32591 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32592 echo "${ECHO_T}$ac_header_compiler" >&6; }
32594 # Is the header present?
32595 { echo "$as_me:$LINENO: checking libusbhid.h presence" >&5
32596 echo $ECHO_N "checking libusbhid.h presence... $ECHO_C" >&6; }
32597 cat >conftest.$ac_ext <<_ACEOF
32600 cat confdefs.h >>conftest.$ac_ext
32601 cat >>conftest.$ac_ext <<_ACEOF
32602 /* end confdefs.h. */
32603 #include <libusbhid.h>
32605 if { (ac_try="$ac_cpp conftest.$ac_ext"
32606 case "(($ac_try" in
32607 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32608 *) ac_try_echo
=$ac_try;;
32610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32611 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32613 grep -v '^ *+' conftest.er1
>conftest.err
32615 cat conftest.err
>&5
32616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32617 (exit $ac_status); } >/dev
/null
&& {
32618 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32619 test ! -s conftest.err
32621 ac_header_preproc
=yes
32623 echo "$as_me: failed program was:" >&5
32624 sed 's/^/| /' conftest.
$ac_ext >&5
32626 ac_header_preproc
=no
32629 rm -f conftest.err conftest.
$ac_ext
32630 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32631 echo "${ECHO_T}$ac_header_preproc" >&6; }
32633 # So? What about this header?
32634 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32636 { echo "$as_me:$LINENO: WARNING: libusbhid.h: accepted by the compiler, rejected by the preprocessor!" >&5
32637 echo "$as_me: WARNING: libusbhid.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32638 { echo "$as_me:$LINENO: WARNING: libusbhid.h: proceeding with the compiler's result" >&5
32639 echo "$as_me: WARNING: libusbhid.h: proceeding with the compiler's result" >&2;}
32640 ac_header_preproc
=yes
32643 { echo "$as_me:$LINENO: WARNING: libusbhid.h: present but cannot be compiled" >&5
32644 echo "$as_me: WARNING: libusbhid.h: present but cannot be compiled" >&2;}
32645 { echo "$as_me:$LINENO: WARNING: libusbhid.h: check for missing prerequisite headers?" >&5
32646 echo "$as_me: WARNING: libusbhid.h: check for missing prerequisite headers?" >&2;}
32647 { echo "$as_me:$LINENO: WARNING: libusbhid.h: see the Autoconf documentation" >&5
32648 echo "$as_me: WARNING: libusbhid.h: see the Autoconf documentation" >&2;}
32649 { echo "$as_me:$LINENO: WARNING: libusbhid.h: section \"Present But Cannot Be Compiled\"" >&5
32650 echo "$as_me: WARNING: libusbhid.h: section \"Present But Cannot Be Compiled\"" >&2;}
32651 { echo "$as_me:$LINENO: WARNING: libusbhid.h: proceeding with the preprocessor's result" >&5
32652 echo "$as_me: WARNING: libusbhid.h: proceeding with the preprocessor's result" >&2;}
32653 { echo "$as_me:$LINENO: WARNING: libusbhid.h: in the future, the compiler will take precedence" >&5
32654 echo "$as_me: WARNING: libusbhid.h: in the future, the compiler will take precedence" >&2;}
32658 { echo "$as_me:$LINENO: checking for libusbhid.h" >&5
32659 echo $ECHO_N "checking for libusbhid.h... $ECHO_C" >&6; }
32660 if test "${ac_cv_header_libusbhid_h+set}" = set; then
32661 echo $ECHO_N "(cached) $ECHO_C" >&6
32663 ac_cv_header_libusbhid_h
=$ac_header_preproc
32665 { echo "$as_me:$LINENO: result: $ac_cv_header_libusbhid_h" >&5
32666 echo "${ECHO_T}$ac_cv_header_libusbhid_h" >&6; }
32669 if test $ac_cv_header_libusbhid_h = yes; then
32670 USB_CFLAGS
="-DHAVE_LIBUSBHID_H"
32674 USB_LIBS
="$USB_LIBS -lusbhid"
32676 if test "${ac_cv_header_usb_h+set}" = set; then
32677 { echo "$as_me:$LINENO: checking for usb.h" >&5
32678 echo $ECHO_N "checking for usb.h... $ECHO_C" >&6; }
32679 if test "${ac_cv_header_usb_h+set}" = set; then
32680 echo $ECHO_N "(cached) $ECHO_C" >&6
32682 { echo "$as_me:$LINENO: result: $ac_cv_header_usb_h" >&5
32683 echo "${ECHO_T}$ac_cv_header_usb_h" >&6; }
32685 # Is the header compilable?
32686 { echo "$as_me:$LINENO: checking usb.h usability" >&5
32687 echo $ECHO_N "checking usb.h usability... $ECHO_C" >&6; }
32688 cat >conftest.
$ac_ext <<_ACEOF
32691 cat confdefs.h
>>conftest.
$ac_ext
32692 cat >>conftest.
$ac_ext <<_ACEOF
32693 /* end confdefs.h. */
32694 $ac_includes_default
32697 rm -f conftest.
$ac_objext
32698 if { (ac_try
="$ac_compile"
32699 case "(($ac_try" in
32700 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32701 *) ac_try_echo=$ac_try;;
32703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32704 (eval "$ac_compile") 2>conftest.er1
32706 grep -v '^ *+' conftest.er1 >conftest.err
32708 cat conftest.err >&5
32709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32710 (exit $ac_status); } && {
32711 test -z "$ac_c_werror_flag" ||
32712 test ! -s conftest.err
32713 } && test -s conftest.$ac_objext; then
32714 ac_header_compiler=yes
32716 echo "$as_me: failed program was:" >&5
32717 sed 's/^/| /' conftest.$ac_ext >&5
32719 ac_header_compiler=no
32722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32723 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32724 echo "${ECHO_T}$ac_header_compiler" >&6; }
32726 # Is the header present?
32727 { echo "$as_me:$LINENO: checking usb.h presence" >&5
32728 echo $ECHO_N "checking usb.h presence... $ECHO_C" >&6; }
32729 cat >conftest.$ac_ext <<_ACEOF
32732 cat confdefs.h >>conftest.$ac_ext
32733 cat >>conftest.$ac_ext <<_ACEOF
32734 /* end confdefs.h. */
32737 if { (ac_try="$ac_cpp conftest.$ac_ext"
32738 case "(($ac_try" in
32739 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32740 *) ac_try_echo
=$ac_try;;
32742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32743 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32745 grep -v '^ *+' conftest.er1
>conftest.err
32747 cat conftest.err
>&5
32748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32749 (exit $ac_status); } >/dev
/null
&& {
32750 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32751 test ! -s conftest.err
32753 ac_header_preproc
=yes
32755 echo "$as_me: failed program was:" >&5
32756 sed 's/^/| /' conftest.
$ac_ext >&5
32758 ac_header_preproc
=no
32761 rm -f conftest.err conftest.
$ac_ext
32762 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32763 echo "${ECHO_T}$ac_header_preproc" >&6; }
32765 # So? What about this header?
32766 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32768 { echo "$as_me:$LINENO: WARNING: usb.h: accepted by the compiler, rejected by the preprocessor!" >&5
32769 echo "$as_me: WARNING: usb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32770 { echo "$as_me:$LINENO: WARNING: usb.h: proceeding with the compiler's result" >&5
32771 echo "$as_me: WARNING: usb.h: proceeding with the compiler's result" >&2;}
32772 ac_header_preproc
=yes
32775 { echo "$as_me:$LINENO: WARNING: usb.h: present but cannot be compiled" >&5
32776 echo "$as_me: WARNING: usb.h: present but cannot be compiled" >&2;}
32777 { echo "$as_me:$LINENO: WARNING: usb.h: check for missing prerequisite headers?" >&5
32778 echo "$as_me: WARNING: usb.h: check for missing prerequisite headers?" >&2;}
32779 { echo "$as_me:$LINENO: WARNING: usb.h: see the Autoconf documentation" >&5
32780 echo "$as_me: WARNING: usb.h: see the Autoconf documentation" >&2;}
32781 { echo "$as_me:$LINENO: WARNING: usb.h: section \"Present But Cannot Be Compiled\"" >&5
32782 echo "$as_me: WARNING: usb.h: section \"Present But Cannot Be Compiled\"" >&2;}
32783 { echo "$as_me:$LINENO: WARNING: usb.h: proceeding with the preprocessor's result" >&5
32784 echo "$as_me: WARNING: usb.h: proceeding with the preprocessor's result" >&2;}
32785 { echo "$as_me:$LINENO: WARNING: usb.h: in the future, the compiler will take precedence" >&5
32786 echo "$as_me: WARNING: usb.h: in the future, the compiler will take precedence" >&2;}
32790 { echo "$as_me:$LINENO: checking for usb.h" >&5
32791 echo $ECHO_N "checking for usb.h... $ECHO_C" >&6; }
32792 if test "${ac_cv_header_usb_h+set}" = set; then
32793 echo $ECHO_N "(cached) $ECHO_C" >&6
32795 ac_cv_header_usb_h
=$ac_header_preproc
32797 { echo "$as_me:$LINENO: result: $ac_cv_header_usb_h" >&5
32798 echo "${ECHO_T}$ac_cv_header_usb_h" >&6; }
32801 if test $ac_cv_header_usb_h = yes; then
32802 USB_CFLAGS
="-DHAVE_USB_H"
32806 if test "${ac_cv_header_libusb_h+set}" = set; then
32807 { echo "$as_me:$LINENO: checking for libusb.h" >&5
32808 echo $ECHO_N "checking for libusb.h... $ECHO_C" >&6; }
32809 if test "${ac_cv_header_libusb_h+set}" = set; then
32810 echo $ECHO_N "(cached) $ECHO_C" >&6
32812 { echo "$as_me:$LINENO: result: $ac_cv_header_libusb_h" >&5
32813 echo "${ECHO_T}$ac_cv_header_libusb_h" >&6; }
32815 # Is the header compilable?
32816 { echo "$as_me:$LINENO: checking libusb.h usability" >&5
32817 echo $ECHO_N "checking libusb.h usability... $ECHO_C" >&6; }
32818 cat >conftest.
$ac_ext <<_ACEOF
32821 cat confdefs.h
>>conftest.
$ac_ext
32822 cat >>conftest.
$ac_ext <<_ACEOF
32823 /* end confdefs.h. */
32824 $ac_includes_default
32825 #include <libusb.h>
32827 rm -f conftest.
$ac_objext
32828 if { (ac_try
="$ac_compile"
32829 case "(($ac_try" in
32830 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32831 *) ac_try_echo=$ac_try;;
32833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32834 (eval "$ac_compile") 2>conftest.er1
32836 grep -v '^ *+' conftest.er1 >conftest.err
32838 cat conftest.err >&5
32839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32840 (exit $ac_status); } && {
32841 test -z "$ac_c_werror_flag" ||
32842 test ! -s conftest.err
32843 } && test -s conftest.$ac_objext; then
32844 ac_header_compiler=yes
32846 echo "$as_me: failed program was:" >&5
32847 sed 's/^/| /' conftest.$ac_ext >&5
32849 ac_header_compiler=no
32852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32853 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32854 echo "${ECHO_T}$ac_header_compiler" >&6; }
32856 # Is the header present?
32857 { echo "$as_me:$LINENO: checking libusb.h presence" >&5
32858 echo $ECHO_N "checking libusb.h presence... $ECHO_C" >&6; }
32859 cat >conftest.$ac_ext <<_ACEOF
32862 cat confdefs.h >>conftest.$ac_ext
32863 cat >>conftest.$ac_ext <<_ACEOF
32864 /* end confdefs.h. */
32865 #include <libusb.h>
32867 if { (ac_try="$ac_cpp conftest.$ac_ext"
32868 case "(($ac_try" in
32869 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32870 *) ac_try_echo
=$ac_try;;
32872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32873 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32875 grep -v '^ *+' conftest.er1
>conftest.err
32877 cat conftest.err
>&5
32878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32879 (exit $ac_status); } >/dev
/null
&& {
32880 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32881 test ! -s conftest.err
32883 ac_header_preproc
=yes
32885 echo "$as_me: failed program was:" >&5
32886 sed 's/^/| /' conftest.
$ac_ext >&5
32888 ac_header_preproc
=no
32891 rm -f conftest.err conftest.
$ac_ext
32892 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32893 echo "${ECHO_T}$ac_header_preproc" >&6; }
32895 # So? What about this header?
32896 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32898 { echo "$as_me:$LINENO: WARNING: libusb.h: accepted by the compiler, rejected by the preprocessor!" >&5
32899 echo "$as_me: WARNING: libusb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32900 { echo "$as_me:$LINENO: WARNING: libusb.h: proceeding with the compiler's result" >&5
32901 echo "$as_me: WARNING: libusb.h: proceeding with the compiler's result" >&2;}
32902 ac_header_preproc
=yes
32905 { echo "$as_me:$LINENO: WARNING: libusb.h: present but cannot be compiled" >&5
32906 echo "$as_me: WARNING: libusb.h: present but cannot be compiled" >&2;}
32907 { echo "$as_me:$LINENO: WARNING: libusb.h: check for missing prerequisite headers?" >&5
32908 echo "$as_me: WARNING: libusb.h: check for missing prerequisite headers?" >&2;}
32909 { echo "$as_me:$LINENO: WARNING: libusb.h: see the Autoconf documentation" >&5
32910 echo "$as_me: WARNING: libusb.h: see the Autoconf documentation" >&2;}
32911 { echo "$as_me:$LINENO: WARNING: libusb.h: section \"Present But Cannot Be Compiled\"" >&5
32912 echo "$as_me: WARNING: libusb.h: section \"Present But Cannot Be Compiled\"" >&2;}
32913 { echo "$as_me:$LINENO: WARNING: libusb.h: proceeding with the preprocessor's result" >&5
32914 echo "$as_me: WARNING: libusb.h: proceeding with the preprocessor's result" >&2;}
32915 { echo "$as_me:$LINENO: WARNING: libusb.h: in the future, the compiler will take precedence" >&5
32916 echo "$as_me: WARNING: libusb.h: in the future, the compiler will take precedence" >&2;}
32920 { echo "$as_me:$LINENO: checking for libusb.h" >&5
32921 echo $ECHO_N "checking for libusb.h... $ECHO_C" >&6; }
32922 if test "${ac_cv_header_libusb_h+set}" = set; then
32923 echo $ECHO_N "(cached) $ECHO_C" >&6
32925 ac_cv_header_libusb_h
=$ac_header_preproc
32927 { echo "$as_me:$LINENO: result: $ac_cv_header_libusb_h" >&5
32928 echo "${ECHO_T}$ac_cv_header_libusb_h" >&6; }
32931 if test $ac_cv_header_libusb_h = yes; then
32932 USB_CFLAGS
="-DHAVE_LIBUSB_H"
32936 { echo "$as_me:$LINENO: checking for hid_init in -lusb" >&5
32937 echo $ECHO_N "checking for hid_init in -lusb... $ECHO_C" >&6; }
32938 if test "${ac_cv_lib_usb_hid_init+set}" = set; then
32939 echo $ECHO_N "(cached) $ECHO_C" >&6
32941 ac_check_lib_save_LIBS
=$LIBS
32943 cat >conftest.
$ac_ext <<_ACEOF
32946 cat confdefs.h
>>conftest.
$ac_ext
32947 cat >>conftest.
$ac_ext <<_ACEOF
32948 /* end confdefs.h. */
32950 /* Override any GCC internal prototype to avoid an error.
32951 Use char because int might match the return type of a GCC
32952 builtin and then its argument prototype would still apply. */
32960 return hid_init ();
32965 rm -f conftest.
$ac_objext conftest
$ac_exeext
32966 if { (ac_try
="$ac_link"
32967 case "(($ac_try" in
32968 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32969 *) ac_try_echo=$ac_try;;
32971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32972 (eval "$ac_link") 2>conftest.er1
32974 grep -v '^ *+' conftest.er1 >conftest.err
32976 cat conftest.err >&5
32977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32978 (exit $ac_status); } && {
32979 test -z "$ac_c_werror_flag" ||
32980 test ! -s conftest.err
32981 } && test -s conftest$ac_exeext &&
32982 $as_test_x conftest$ac_exeext; then
32983 ac_cv_lib_usb_hid_init=yes
32985 echo "$as_me: failed program was:" >&5
32986 sed 's/^/| /' conftest.$ac_ext >&5
32988 ac_cv_lib_usb_hid_init=no
32991 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32992 conftest$ac_exeext conftest.$ac_ext
32993 LIBS=$ac_check_lib_save_LIBS
32995 { echo "$as_me:$LINENO: result: $ac_cv_lib_usb_hid_init" >&5
32996 echo "${ECHO_T}$ac_cv_lib_usb_hid_init" >&6; }
32997 if test $ac_cv_lib_usb_hid_init = yes; then
32998 USB_LIBS="$USB_LIBS -lusb"
33003 save_CFLAGS="$CFLAGS"
33004 CFLAGS="$CFLAGS $USB_CFLAGS"
33006 { echo "$as_me:$LINENO: checking for usbhid" >&5
33007 echo $ECHO_N "checking for usbhid... $ECHO_C" >&6; }
33009 cat >conftest.$ac_ext <<_ACEOF
33012 cat confdefs.h >>conftest.$ac_ext
33013 cat >>conftest.$ac_ext <<_ACEOF
33014 /* end confdefs.h. */
33016 #include <sys/types.h>
33017 #if defined(HAVE_USB_H)
33020 #ifdef __DragonFly__
33021 # include <bus/usb/usb.h>
33022 # include <bus/usb/usbhid.h>
33024 # include <dev/usb/usb.h>
33025 # include <dev/usb/usbhid.h>
33027 #if defined(HAVE_USBHID_H)
33028 #include <usbhid.h>
33029 #elif defined(HAVE_LIBUSB_H)
33030 #include <libusb.h>
33031 #elif defined(HAVE_LIBUSBHID_H)
33032 #include <libusbhid.h>
33039 struct report_desc *repdesc;
33040 struct usb_ctl_report *repbuf;
33041 hid_kind_t hidkind;
33047 rm -f conftest.$ac_objext
33048 if { (ac_try="$ac_compile"
33049 case "(($ac_try" in
33050 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
33051 *) ac_try_echo
=$ac_try;;
33053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33054 (eval "$ac_compile") 2>conftest.er1
33056 grep -v '^ *+' conftest.er1
>conftest.err
33058 cat conftest.err
>&5
33059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33060 (exit $ac_status); } && {
33061 test -z "$ac_c_werror_flag" ||
33062 test ! -s conftest.err
33063 } && test -s conftest.
$ac_objext; then
33068 echo "$as_me: failed program was:" >&5
33069 sed 's/^/| /' conftest.
$ac_ext >&5
33074 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
33075 { echo "$as_me:$LINENO: result: $have_usbhid" >&5
33076 echo "${ECHO_T}$have_usbhid" >&6; }
33078 if test x
$have_usbhid = xyes
; then
33079 { echo "$as_me:$LINENO: checking for ucr_data member of usb_ctl_report" >&5
33080 echo $ECHO_N "checking for ucr_data member of usb_ctl_report... $ECHO_C" >&6; }
33081 have_usbhid_ucr_data
=no
33082 cat >conftest.
$ac_ext <<_ACEOF
33085 cat confdefs.h
>>conftest.
$ac_ext
33086 cat >>conftest.
$ac_ext <<_ACEOF
33087 /* end confdefs.h. */
33089 #include <sys/types.h>
33090 #if defined(HAVE_USB_H)
33093 #ifdef __DragonFly__
33094 # include <bus/usb/usb.h>
33095 # include <bus/usb/usbhid.h>
33097 # include <dev/usb/usb.h>
33098 # include <dev/usb/usbhid.h>
33100 #if defined(HAVE_USBHID_H)
33101 #include <usbhid.h>
33102 #elif defined(HAVE_LIBUSB_H)
33103 #include <libusb.h>
33104 #elif defined(HAVE_LIBUSBHID_H)
33105 #include <libusbhid.h>
33112 struct usb_ctl_report buf;
33113 if (buf.ucr_data) { }
33119 rm -f conftest.
$ac_objext
33120 if { (ac_try
="$ac_compile"
33121 case "(($ac_try" in
33122 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
33123 *) ac_try_echo=$ac_try;;
33125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33126 (eval "$ac_compile") 2>conftest.er1
33128 grep -v '^ *+' conftest.er1 >conftest.err
33130 cat conftest.err >&5
33131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33132 (exit $ac_status); } && {
33133 test -z "$ac_c_werror_flag" ||
33134 test ! -s conftest.err
33135 } && test -s conftest.$ac_objext; then
33137 have_usbhid_ucr_data=yes
33140 echo "$as_me: failed program was:" >&5
33141 sed 's/^/| /' conftest.$ac_ext >&5
33146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33147 if test x$have_usbhid_ucr_data = xyes; then
33148 USB_CFLAGS="$USB_CFLAGS -DUSBHID_UCR_DATA"
33150 { echo "$as_me:$LINENO: result: $have_usbhid_ucr_data" >&5
33151 echo "${ECHO_T}$have_usbhid_ucr_data" >&6; }
33153 { echo "$as_me:$LINENO: checking for new usbhid API" >&5
33154 echo $ECHO_N "checking for new usbhid API... $ECHO_C" >&6; }
33156 cat >conftest.$ac_ext <<_ACEOF
33159 cat confdefs.h >>conftest.$ac_ext
33160 cat >>conftest.$ac_ext <<_ACEOF
33161 /* end confdefs.h. */
33163 #include <sys/types.h>
33164 #if defined(HAVE_USB_H)
33167 #ifdef __DragonFly__
33168 #include <bus/usb/usb.h>
33169 #include <bus/usb/usbhid.h>
33171 #include <dev/usb/usb.h>
33172 #include <dev/usb/usbhid.h>
33174 #if defined(HAVE_USBHID_H)
33175 #include <usbhid.h>
33176 #elif defined(HAVE_LIBUSB_H)
33177 #include <libusb.h>
33178 #elif defined(HAVE_LIBUSBHID_H)
33179 #include <libusbhid.h>
33187 hid_start_parse(d, 1, 1);
33193 rm -f conftest.$ac_objext
33194 if { (ac_try="$ac_compile"
33195 case "(($ac_try" in
33196 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
33197 *) ac_try_echo
=$ac_try;;
33199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33200 (eval "$ac_compile") 2>conftest.er1
33202 grep -v '^ *+' conftest.er1
>conftest.err
33204 cat conftest.err
>&5
33205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33206 (exit $ac_status); } && {
33207 test -z "$ac_c_werror_flag" ||
33208 test ! -s conftest.err
33209 } && test -s conftest.
$ac_objext; then
33211 have_usbhid_new
=yes
33214 echo "$as_me: failed program was:" >&5
33215 sed 's/^/| /' conftest.
$ac_ext >&5
33220 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
33221 if test x
$have_usbhid_new = xyes
; then
33222 USB_CFLAGS
="$USB_CFLAGS -DUSBHID_NEW"
33224 { echo "$as_me:$LINENO: result: $have_usbhid_new" >&5
33225 echo "${ECHO_T}$have_usbhid_new" >&6; }
33227 { echo "$as_me:$LINENO: checking for struct joystick in machine/joystick.h" >&5
33228 echo $ECHO_N "checking for struct joystick in machine/joystick.h... $ECHO_C" >&6; }
33229 have_machine_joystick
=no
33230 cat >conftest.
$ac_ext <<_ACEOF
33233 cat confdefs.h
>>conftest.
$ac_ext
33234 cat >>conftest.
$ac_ext <<_ACEOF
33235 /* end confdefs.h. */
33237 #include <machine/joystick.h>
33249 rm -f conftest.
$ac_objext
33250 if { (ac_try
="$ac_compile"
33251 case "(($ac_try" in
33252 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
33253 *) ac_try_echo=$ac_try;;
33255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33256 (eval "$ac_compile") 2>conftest.er1
33258 grep -v '^ *+' conftest.er1 >conftest.err
33260 cat conftest.err >&5
33261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33262 (exit $ac_status); } && {
33263 test -z "$ac_c_werror_flag" ||
33264 test ! -s conftest.err
33265 } && test -s conftest.$ac_objext; then
33267 have_machine_joystick=yes
33270 echo "$as_me: failed program was:" >&5
33271 sed 's/^/| /' conftest.$ac_ext >&5
33276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33277 if test x$have_machine_joystick = xyes; then
33278 cat >>confdefs.h <<\_ACEOF
33279 #define SDL_JOYSTICK_USBHID_MACHINE_JOYSTICK_H 1
33283 { echo "$as_me:$LINENO: result: $have_machine_joystick" >&5
33284 echo "${ECHO_T}$have_machine_joystick" >&6; }
33286 cat >>confdefs.h <<\_ACEOF
33287 #define SDL_JOYSTICK_USBHID 1
33290 SOURCES="$SOURCES $srcdir/src/joystick/bsd/*.c"
33291 EXTRA_CFLAGS="$EXTRA_CFLAGS $USB_CFLAGS"
33292 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $USB_LIBS"
33295 CFLAGS="$save_CFLAGS"
33299 CheckClockGettime()
33301 # Check whether --enable-clock_gettime was given.
33302 if test "${enable_clock_gettime+set}" = set; then
33303 enableval=$enable_clock_gettime;
33305 enable_clock_gettime=no
33308 if test x$enable_clock_gettime = xyes; then
33309 { echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
33310 echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6; }
33311 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
33312 echo $ECHO_N "(cached) $ECHO_C" >&6
33314 ac_check_lib_save_LIBS=$LIBS
33316 cat >conftest.$ac_ext <<_ACEOF
33319 cat confdefs.h >>conftest.$ac_ext
33320 cat >>conftest.$ac_ext <<_ACEOF
33321 /* end confdefs.h. */
33323 /* Override any GCC internal prototype to avoid an error.
33324 Use char because int might match the return type of a GCC
33325 builtin and then its argument prototype would still apply. */
33329 char clock_gettime ();
33333 return clock_gettime ();
33338 rm -f conftest.$ac_objext conftest$ac_exeext
33339 if { (ac_try="$ac_link"
33340 case "(($ac_try" in
33341 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
33342 *) ac_try_echo
=$ac_try;;
33344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33345 (eval "$ac_link") 2>conftest.er1
33347 grep -v '^ *+' conftest.er1
>conftest.err
33349 cat conftest.err
>&5
33350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33351 (exit $ac_status); } && {
33352 test -z "$ac_c_werror_flag" ||
33353 test ! -s conftest.err
33354 } && test -s conftest
$ac_exeext &&
33355 $as_test_x conftest
$ac_exeext; then
33356 ac_cv_lib_rt_clock_gettime
=yes
33358 echo "$as_me: failed program was:" >&5
33359 sed 's/^/| /' conftest.
$ac_ext >&5
33361 ac_cv_lib_rt_clock_gettime
=no
33364 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
33365 conftest
$ac_exeext conftest.
$ac_ext
33366 LIBS
=$ac_check_lib_save_LIBS
33368 { echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
33369 echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6; }
33370 if test $ac_cv_lib_rt_clock_gettime = yes; then
33371 have_clock_gettime
=yes
33374 if test x
$have_clock_gettime = xyes
; then
33375 cat >>confdefs.h
<<\_ACEOF
33376 #define HAVE_CLOCK_GETTIME 1
33379 EXTRA_LDFLAGS
="$EXTRA_LDFLAGS -lrt"
33384 CheckLinuxVersion
()
33386 if test "${ac_cv_header_linux_version_h+set}" = set; then
33387 { echo "$as_me:$LINENO: checking for linux/version.h" >&5
33388 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6; }
33389 if test "${ac_cv_header_linux_version_h+set}" = set; then
33390 echo $ECHO_N "(cached) $ECHO_C" >&6
33392 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
33393 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6; }
33395 # Is the header compilable?
33396 { echo "$as_me:$LINENO: checking linux/version.h usability" >&5
33397 echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6; }
33398 cat >conftest.
$ac_ext <<_ACEOF
33401 cat confdefs.h
>>conftest.
$ac_ext
33402 cat >>conftest.
$ac_ext <<_ACEOF
33403 /* end confdefs.h. */
33404 $ac_includes_default
33405 #include <linux/version.h>
33407 rm -f conftest.
$ac_objext
33408 if { (ac_try
="$ac_compile"
33409 case "(($ac_try" in
33410 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
33411 *) ac_try_echo=$ac_try;;
33413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33414 (eval "$ac_compile") 2>conftest.er1
33416 grep -v '^ *+' conftest.er1 >conftest.err
33418 cat conftest.err >&5
33419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33420 (exit $ac_status); } && {
33421 test -z "$ac_c_werror_flag" ||
33422 test ! -s conftest.err
33423 } && test -s conftest.$ac_objext; then
33424 ac_header_compiler=yes
33426 echo "$as_me: failed program was:" >&5
33427 sed 's/^/| /' conftest.$ac_ext >&5
33429 ac_header_compiler=no
33432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33433 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33434 echo "${ECHO_T}$ac_header_compiler" >&6; }
33436 # Is the header present?
33437 { echo "$as_me:$LINENO: checking linux/version.h presence" >&5
33438 echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6; }
33439 cat >conftest.$ac_ext <<_ACEOF
33442 cat confdefs.h >>conftest.$ac_ext
33443 cat >>conftest.$ac_ext <<_ACEOF
33444 /* end confdefs.h. */
33445 #include <linux/version.h>
33447 if { (ac_try="$ac_cpp conftest.$ac_ext"
33448 case "(($ac_try" in
33449 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
33450 *) ac_try_echo
=$ac_try;;
33452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33453 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33455 grep -v '^ *+' conftest.er1
>conftest.err
33457 cat conftest.err
>&5
33458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33459 (exit $ac_status); } >/dev
/null
&& {
33460 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33461 test ! -s conftest.err
33463 ac_header_preproc
=yes
33465 echo "$as_me: failed program was:" >&5
33466 sed 's/^/| /' conftest.
$ac_ext >&5
33468 ac_header_preproc
=no
33471 rm -f conftest.err conftest.
$ac_ext
33472 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33473 echo "${ECHO_T}$ac_header_preproc" >&6; }
33475 # So? What about this header?
33476 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33478 { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
33479 echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33480 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5
33481 echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;}
33482 ac_header_preproc
=yes
33485 { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
33486 echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
33487 { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5
33488 echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;}
33489 { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5
33490 echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;}
33491 { echo "$as_me:$LINENO: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&5
33492 echo "$as_me: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
33493 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
33494 echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
33495 { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5
33496 echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;}
33500 { echo "$as_me:$LINENO: checking for linux/version.h" >&5
33501 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6; }
33502 if test "${ac_cv_header_linux_version_h+set}" = set; then
33503 echo $ECHO_N "(cached) $ECHO_C" >&6
33505 ac_cv_header_linux_version_h
=$ac_header_preproc
33507 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
33508 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6; }
33511 if test $ac_cv_header_linux_version_h = yes; then
33512 have_linux_version_h
=yes
33516 if test x
$have_linux_version_h = xyes
; then
33517 EXTRA_CFLAGS
="$EXTRA_CFLAGS -DHAVE_LINUX_VERSION_H"
33523 # Check whether --enable-rpath was given.
33524 if test "${enable_rpath+set}" = set; then
33525 enableval
=$enable_rpath;
33533 arm-
*-elf*) # FIXME: Can we get more specific for iPodLinux?
33537 # Set up files for the timer library
33538 if test x
$enable_timers = xyes
; then
33539 cat >>confdefs.h
<<\_ACEOF
33540 #define SDL_TIMER_UNIX 1
33543 SOURCES
="$SOURCES $srcdir/src/timer/unix/*.c"
33547 *-*-linux*|
*-*-uclinux*|
*-*-gnu*|
*-*-k*bsd
*-gnu|
*-*-bsdi*|
*-*-freebsd*|
*-*-dragonfly*|
*-*-netbsd*|
*-*-openbsd*|
*-*-sysv5*|
*-*-solaris*|
*-*-hpux*|
*-*-irix*|
*-*-aix*|
*-*-osf*)
33549 *-*-linux*) ARCH
=linux
;;
33550 *-*-uclinux*) ARCH
=linux
;;
33551 *-*-kfreebsd*-gnu) ARCH
=kfreebsd-gnu
;;
33552 *-*-knetbsd*-gnu) ARCH
=knetbsd-gnu
;;
33553 *-*-kopenbsd*-gnu) ARCH
=kopenbsd-gnu
;;
33554 *-*-gnu*) ARCH
=gnu
;; # must be last of the gnu variants
33555 *-*-bsdi*) ARCH
=bsdi
;;
33556 *-*-freebsd*) ARCH
=freebsd
;;
33557 *-*-dragonfly*) ARCH
=freebsd
;;
33558 *-*-netbsd*) ARCH
=netbsd
;;
33559 *-*-openbsd*) ARCH
=openbsd
;;
33560 *-*-sysv5*) ARCH
=sysv5
;;
33561 *-*-solaris*) ARCH
=solaris
;;
33562 *-*-hpux*) ARCH
=hpux
;;
33563 *-*-irix*) ARCH
=irix
;;
33564 *-*-aix*) ARCH
=aix
;;
33565 *-*-osf*) ARCH
=osf
;;
33567 CheckVisibilityHidden
33602 # Set up files for the audio library
33603 if test x
$enable_audio = xyes
; then
33605 sysv5|solaris|hpux
)
33606 cat >>confdefs.h
<<\_ACEOF
33607 #define SDL_AUDIO_DRIVER_SUNAUDIO 1
33610 SOURCES
="$SOURCES $srcdir/src/audio/sun/*.c"
33614 cat >>confdefs.h
<<\_ACEOF
33615 #define SDL_AUDIO_DRIVER_BSD 1
33618 SOURCES
="$SOURCES $srcdir/src/audio/bsd/*.c"
33622 cat >>confdefs.h
<<\_ACEOF
33623 #define SDL_AUDIO_DRIVER_PAUD 1
33626 SOURCES
="$SOURCES $srcdir/src/audio/paudio/*.c"
33631 # Set up files for the joystick library
33632 if test x
$enable_joystick = xyes
; then
33635 cat >>confdefs.h
<<\_ACEOF
33636 #define SDL_JOYSTICK_LINUX 1
33639 SOURCES
="$SOURCES $srcdir/src/joystick/linux/*.c"
33644 # Set up files for the cdrom library
33645 if test x
$enable_cdrom = xyes
; then
33648 cat >>confdefs.h
<<\_ACEOF
33649 #define SDL_CDROM_LINUX 1
33652 SOURCES
="$SOURCES $srcdir/src/cdrom/linux/*.c"
33656 cat >>confdefs.h
<<\_ACEOF
33657 #define SDL_CDROM_FREEBSD 1
33660 SOURCES
="$SOURCES $srcdir/src/cdrom/freebsd/*.c"
33663 *openbsd
*|
*netbsd
*)
33664 cat >>confdefs.h
<<\_ACEOF
33665 #define SDL_CDROM_OPENBSD 1
33668 SOURCES
="$SOURCES $srcdir/src/cdrom/openbsd/*.c"
33672 cat >>confdefs.h
<<\_ACEOF
33673 #define SDL_CDROM_BSDI 1
33676 SOURCES
="$SOURCES $srcdir/src/cdrom/bsdi/*.c"
33680 cat >>confdefs.h
<<\_ACEOF
33681 #define SDL_CDROM_AIX 1
33684 SOURCES
="$SOURCES $srcdir/src/cdrom/aix/*.c"
33688 cat >>confdefs.h
<<\_ACEOF
33689 #define SDL_CDROM_OSF 1
33692 SOURCES
="$SOURCES $srcdir/src/cdrom/osf/*.c"
33697 # Set up files for the thread library
33698 if test x
$enable_threads = xyes
-a x
$use_pthreads != xyes
-a x
$use_pth != xyes
-a x
$ARCH = xirix
; then
33699 cat >>confdefs.h
<<\_ACEOF
33700 #define SDL_THREAD_SPROC 1
33703 SOURCES
="$SOURCES $srcdir/src/thread/irix/*.c"
33704 SOURCES
="$SOURCES $srcdir/src/thread/generic/SDL_sysmutex.c"
33705 SOURCES
="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
33708 # Set up files for the timer library
33709 if test x
$enable_timers = xyes
; then
33710 cat >>confdefs.h
<<\_ACEOF
33711 #define SDL_TIMER_UNIX 1
33714 SOURCES
="$SOURCES $srcdir/src/timer/unix/*.c"
33730 # Set up files for the audio library
33731 if test x
$enable_audio = xyes
; then
33732 cat >>confdefs.h
<<\_ACEOF
33733 #define SDL_AUDIO_DRIVER_QNXNTO 1
33736 SOURCES
="$SOURCES $srcdir/src/audio/nto/*.c"
33737 EXTRA_LDFLAGS
="$EXTRA_LDFLAGS -lasound"
33740 # Set up files for the cdrom library
33741 if test x
$enable_cdrom = xyes
; then
33742 cat >>confdefs.h
<<\_ACEOF
33743 #define SDL_CDROM_QNX 1
33746 SOURCES
="$SOURCES $srcdir/src/cdrom/qnx/*.c"
33749 # Set up files for the timer library
33750 if test x
$enable_timers = xyes
; then
33751 cat >>confdefs.h
<<\_ACEOF
33752 #define SDL_TIMER_UNIX 1
33755 SOURCES
="$SOURCES $srcdir/src/timer/unix/*.c"
33759 *-*-cygwin* |
*-*-mingw32*)
33761 if test "$build" != "$host"; then # cross-compiling
33762 # Default cross-compile location
33763 ac_default_prefix
=/usr
/local
/cross-tools
/i386-mingw32
33765 # Look for the location of the tools and install there
33766 if test "$BUILD_PREFIX" != ""; then
33767 ac_default_prefix
=$BUILD_PREFIX
33777 # Set up files for the audio library
33778 if test x
$enable_audio = xyes
; then
33779 cat >>confdefs.h
<<\_ACEOF
33780 #define SDL_AUDIO_DRIVER_WAVEOUT 1
33783 SOURCES
="$SOURCES $srcdir/src/audio/windib/*.c"
33784 if test x
$have_directx = xyes
; then
33785 cat >>confdefs.h
<<\_ACEOF
33786 #define SDL_AUDIO_DRIVER_DSOUND 1
33789 SOURCES
="$SOURCES $srcdir/src/audio/windx5/*.c"
33793 # Set up files for the joystick library
33794 if test x
$enable_joystick = xyes
; then
33795 cat >>confdefs.h
<<\_ACEOF
33796 #define SDL_JOYSTICK_WINMM 1
33799 SOURCES
="$SOURCES $srcdir/src/joystick/win32/*.c"
33802 # Set up files for the cdrom library
33803 if test x
$enable_cdrom = xyes
; then
33804 cat >>confdefs.h
<<\_ACEOF
33805 #define SDL_CDROM_WIN32 1
33808 SOURCES
="$SOURCES $srcdir/src/cdrom/win32/*.c"
33811 # Set up files for the thread library
33812 if test x
$enable_threads = xyes
; then
33813 cat >>confdefs.h
<<\_ACEOF
33814 #define SDL_THREAD_WIN32 1
33817 SOURCES
="$SOURCES $srcdir/src/thread/win32/SDL_sysmutex.c"
33818 SOURCES
="$SOURCES $srcdir/src/thread/win32/SDL_syssem.c"
33819 SOURCES
="$SOURCES $srcdir/src/thread/win32/SDL_systhread.c"
33820 SOURCES
="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
33823 # Set up files for the timer library
33824 if test x
$enable_timers = xyes
; then
33825 cat >>confdefs.h
<<\_ACEOF
33826 #define SDL_TIMER_WIN32 1
33829 SOURCES
="$SOURCES $srcdir/src/timer/win32/*.c"
33832 # Set up files for the shared object loading library
33833 if test x
$enable_loadso = xyes
; then
33834 cat >>confdefs.h
<<\_ACEOF
33835 #define SDL_LOADSO_WIN32 1
33838 SOURCES
="$SOURCES $srcdir/src/loadso/win32/*.c"
33841 # Set up the system libraries we need
33842 EXTRA_LDFLAGS
="$EXTRA_LDFLAGS -luser32 -lgdi32 -lwinmm"
33843 if test x
$have_directx = xyes
; then
33844 EXTRA_LDFLAGS
="$EXTRA_LDFLAGS -ldxguid"
33846 # The Win32 platform requires special setup
33847 SOURCES
="$SOURCES $srcdir/src/main/win32/*.rc"
33848 SDLMAIN_SOURCES
="$srcdir/src/main/win32/*.c"
33849 SDL_CFLAGS
="$SDL_CFLAGS -Dmain=SDL_main"
33850 SDL_LIBS
="-lmingw32 -lSDLmain $SDL_LIBS -mwindows"
33854 ac_default_prefix
=/boot
/develop
/tools
/gnupro
33861 # Set up files for the audio library
33862 if test x
$enable_audio = xyes
; then
33863 cat >>confdefs.h
<<\_ACEOF
33864 #define SDL_AUDIO_DRIVER_BAUDIO 1
33867 SOURCES
="$SOURCES $srcdir/src/audio/baudio/*.cc"
33870 # Set up files for the joystick library
33871 if test x
$enable_joystick = xyes
; then
33872 cat >>confdefs.h
<<\_ACEOF
33873 #define SDL_JOYSTICK_BEOS 1
33876 SOURCES
="$SOURCES $srcdir/src/joystick/beos/*.cc"
33879 # Set up files for the cdrom library
33880 if test x
$enable_cdrom = xyes
; then
33881 cat >>confdefs.h
<<\_ACEOF
33882 #define SDL_CDROM_BEOS 1
33885 SOURCES
="$SOURCES $srcdir/src/cdrom/beos/*.cc"
33888 # Set up files for the thread library
33889 if test x
$enable_threads = xyes
; then
33890 cat >>confdefs.h
<<\_ACEOF
33891 #define SDL_THREAD_BEOS 1
33894 SOURCES
="$SOURCES $srcdir/src/thread/beos/*.c"
33895 SOURCES
="$SOURCES $srcdir/src/thread/generic/SDL_sysmutex.c"
33896 SOURCES
="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
33899 # Set up files for the timer library
33900 if test x
$enable_timers = xyes
; then
33901 cat >>confdefs.h
<<\_ACEOF
33902 #define SDL_TIMER_BEOS 1
33905 SOURCES
="$SOURCES $srcdir/src/timer/beos/*.c"
33908 # Set up files for the shared object loading library
33909 if test x
$enable_loadso = xyes
; then
33910 cat >>confdefs.h
<<\_ACEOF
33911 #define SDL_LOADSO_BEOS 1
33914 SOURCES
="$SOURCES $srcdir/src/loadso/beos/*.c"
33917 # The BeOS platform requires special setup.
33918 SOURCES
="$srcdir/src/main/beos/*.cc $SOURCES"
33919 EXTRA_LDFLAGS
="$EXTRA_LDFLAGS -lroot -lbe -lmedia -lgame -ldevice -ltextencoding"
33922 # This could be either full "Mac OS X", or plain "Darwin" which is
33923 # just the OS X kernel sans upper layers like Carbon and Cocoa.
33924 # Next line is broken, and a few files below require Mac OS X (full)
33927 # Mac OS X builds with both the Carbon and OSX APIs at the moment
33928 EXTRA_CFLAGS
="$EXTRA_CFLAGS -DTARGET_API_MAC_CARBON"
33929 EXTRA_CFLAGS
="$EXTRA_CFLAGS -DTARGET_API_MAC_OSX"
33931 # HACK: Reset EXTRA_LDFLAGS; the only thing it contains at this point
33932 # is -lm which is not needed under Mac OS X. But for some reasons it
33933 # also tends to contain spurious -L switches, which we don't want to
33934 # use here or in sdl-config. Hence we reset it.
33937 CheckVisibilityHidden
33944 # Set up files for the shared object loading library
33945 # (this needs to be done before the dynamic X11 check)
33946 if test x
$enable_loadso = xyes
-a x
$have_dlopen != xyes
; then
33947 cat >>confdefs.h
<<\_ACEOF
33948 #define SDL_LOADSO_DLCOMPAT 1
33951 SOURCES
="$SOURCES $srcdir/src/loadso/macosx/*.c"
33963 # Need this or things might misbuild on a G3.
33964 EXTRA_CFLAGS
="$EXTRA_CFLAGS -force_cpusubtype_ALL"
33966 # Set up files for the audio library
33967 if test x
$enable_audio = xyes
; then
33968 cat >>confdefs.h
<<\_ACEOF
33969 #define SDL_AUDIO_DRIVER_COREAUDIO 1
33972 SOURCES
="$SOURCES $srcdir/src/audio/macosx/*.c"
33973 cat >>confdefs.h
<<\_ACEOF
33974 #define SDL_AUDIO_DRIVER_SNDMGR 1
33977 SOURCES
="$SOURCES $srcdir/src/audio/macrom/*.c"
33980 # Set up files for the joystick library
33981 if test x
$enable_joystick = xyes
; then
33982 cat >>confdefs.h
<<\_ACEOF
33983 #define SDL_JOYSTICK_IOKIT 1
33986 SOURCES
="$SOURCES $srcdir/src/joystick/darwin/*.c"
33988 need_iokit_framework
=yes
33990 # Set up files for the cdrom library
33991 if test x
$enable_cdrom = xyes
; then
33992 cat >>confdefs.h
<<\_ACEOF
33993 #define SDL_CDROM_MACOSX 1
33996 SOURCES
="$SOURCES $srcdir/src/cdrom/macosx/*.c"
33999 # Set up files for the timer library
34000 if test x
$enable_timers = xyes
; then
34001 cat >>confdefs.h
<<\_ACEOF
34002 #define SDL_TIMER_UNIX 1
34005 SOURCES
="$SOURCES $srcdir/src/timer/unix/*.c"
34008 # The Mac OS X platform requires special setup.
34009 SDLMAIN_SOURCES
="$srcdir/src/main/macosx/*.m"
34010 EXTRA_CFLAGS
="$EXTRA_CFLAGS -fpascal-strings"
34011 SDL_LIBS
="-lSDLmain $SDL_LIBS"
34012 if test x
$enable_video_cocoa = xyes
; then
34013 EXTRA_LDFLAGS
="$EXTRA_LDFLAGS -Wl,-framework,Cocoa"
34014 need_iokit_framework
=yes
34016 if test x
$enable_video_carbon = xyes
-o x
$enable_video_cocoa = xyes
; then
34017 # The Cocoa backend still needs Carbon, and the YUV code QuickTime
34018 EXTRA_LDFLAGS
="$EXTRA_LDFLAGS -Wl,-framework,QuickTime -Wl,-framework,ApplicationServices"
34019 EXTRA_LDFLAGS
="$EXTRA_LDFLAGS -Wl,-framework,Carbon"
34021 # If either the audio or CD driver is used, add the AudioUnit framework
34022 if test x
$enable_audio = xyes
-o x
$enable_cdrom = xyes
; then
34023 EXTRA_LDFLAGS
="$EXTRA_LDFLAGS -Wl,-framework,AudioToolbox -Wl,-framework,AudioUnit"
34025 # Some subsystems reference IOKit...
34026 if test x
$need_iokit_framework = xyes
; then
34027 EXTRA_LDFLAGS
="$EXTRA_LDFLAGS -Wl,-framework,IOKit"
34035 CheckAtariBiosEvent
34036 CheckAtariXbiosVideo
34042 # Set up files for the audio library
34043 if test x
$enable_threads = xyes
-a x
$enable_pth = xyes
; then
34044 if test x
$enable_audio = xyes
; then
34045 cat >>confdefs.h
<<\_ACEOF
34046 #define SDL_AUDIO_DRIVER_SUNAUDIO 1
34049 SOURCES
="$SOURCES $srcdir/src/audio/sun/*.c"
34053 # Set up files for the joystick library
34054 if test x
$enable_joystick = xyes
; then
34055 cat >>confdefs.h
<<\_ACEOF
34056 #define SDL_JOYSTICK_MINT 1
34059 SOURCES
="$SOURCES $srcdir/src/joystick/mint/*.c"
34062 # Set up files for the cdrom library
34063 if test x
$enable_cdrom = xyes
; then
34064 cat >>confdefs.h
<<\_ACEOF
34065 #define SDL_CDROM_MINT 1
34068 SOURCES
="$SOURCES $srcdir/src/cdrom/mint/*.c"
34071 # Set up files for the timer library
34072 if test x
$enable_timers = xyes
; then
34073 if test x
$enable_threads = xyes
-a x
$enable_pth = xyes
; then
34074 cat >>confdefs.h
<<\_ACEOF
34075 #define SDL_TIMER_UNIX 1
34078 SOURCES
="$SOURCES $srcdir/src/timer/unix/*.c"
34080 cat >>confdefs.h
<<\_ACEOF
34081 #define SDL_TIMER_MINT 1
34084 SOURCES
="$SOURCES $srcdir/src/timer/mint/*.c"
34085 SOURCES
="$SOURCES $srcdir/src/timer/mint/*.S"
34094 # Set up files for the video library
34095 if test x
$enable_video = xyes
; then
34096 cat >>confdefs.h
<<\_ACEOF
34097 #define SDL_VIDEO_DRIVER_RISCOS 1
34100 SOURCES
="$SOURCES $srcdir/src/video/riscos/*.c"
34101 SOURCES
="$SOURCES $srcdir/src/video/riscos/*.S"
34104 # Set up files for the joystick library
34105 if test x
$enable_joystick = xyes
; then
34106 cat >>confdefs.h
<<\_ACEOF
34107 #define SDL_JOYSTICK_RISCOS 1
34110 SOURCES
="$SOURCES $srcdir/src/joystick/riscos/*.c"
34113 # Set up files for the timer library
34114 if test x
$enable_timers = xyes
; then
34115 cat >>confdefs.h
<<\_ACEOF
34116 #define SDL_TIMER_RISCOS 1
34119 SOURCES
="$SOURCES $srcdir/src/timer/riscos/*.c"
34122 # The RISC OS platform requires special setup.
34123 EXTRA_LDFLAGS
="$EXTRA_LDFLAGS -ljpeg -ltiff -lpng -lz"
34126 { { echo "$as_me:$LINENO: error:
34127 *** Unsupported host: Please add to configure.in
34129 echo "$as_me: error:
34130 *** Unsupported host: Please add to configure.in
34132 { (exit 1); exit 1; }; }
34136 # Verify that we have all the platform specific files we need
34138 if test x
$enable_joystick = xyes
; then
34139 if test x
$have_joystick != xyes
; then
34140 # Wants joystick subsystem, but doesn't have a platform-specific backend...
34141 cat >>confdefs.h
<<\_ACEOF
34142 #define SDL_JOYSTICK_DUMMY 1
34145 SOURCES
="$SOURCES $srcdir/src/joystick/dummy/*.c"
34148 if test x
$have_cdrom != xyes
; then
34149 if test x
$enable_cdrom = xyes
; then
34150 cat >>confdefs.h
<<\_ACEOF
34151 #define SDL_CDROM_DISABLED 1
34155 SOURCES
="$SOURCES $srcdir/src/cdrom/dummy/*.c"
34157 if test x
$have_threads != xyes
; then
34158 if test x
$enable_threads = xyes
; then
34159 cat >>confdefs.h
<<\_ACEOF
34160 #define SDL_THREADS_DISABLED 1
34164 SOURCES
="$SOURCES $srcdir/src/thread/generic/*.c"
34166 if test x
$have_timers != xyes
; then
34167 if test x
$enable_timers = xyes
; then
34168 cat >>confdefs.h
<<\_ACEOF
34169 #define SDL_TIMERS_DISABLED 1
34173 SOURCES
="$SOURCES $srcdir/src/timer/dummy/*.c"
34175 if test x
$have_loadso != xyes
; then
34176 if test x
$enable_loadso = xyes
; then
34177 cat >>confdefs.h
<<\_ACEOF
34178 #define SDL_LOADSO_DISABLED 1
34182 SOURCES
="$SOURCES $srcdir/src/loadso/dummy/*.c"
34184 if test x
$SDLMAIN_SOURCES = x
; then
34185 SDLMAIN_SOURCES
="$srcdir/src/main/dummy/*.c"
34188 OBJECTS
=`echo $SOURCES | sed 's,[^ ]*/\([^ ]*\)\.asm,$(objects)/\1.lo,g'`
34189 OBJECTS
=`echo $OBJECTS | sed 's,[^ ]*/\([^ ]*\)\.cc,$(objects)/\1.lo,g'`
34190 OBJECTS
=`echo $OBJECTS | sed 's,[^ ]*/\([^ ]*\)\.m,$(objects)/\1.lo,g'`
34191 OBJECTS
=`echo $OBJECTS | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
34192 OBJECTS
=`echo $OBJECTS | sed 's,[^ ]*/\([^ ]*\)\.S,$(objects)/\1.lo,g'`
34193 OBJECTS
=`echo $OBJECTS | sed 's,[^ ]*/\([^ ]*\)\.rc,$(objects)/\1.o,g'`
34195 SDLMAIN_OBJECTS
=`echo $SDLMAIN_SOURCES | sed 's,[^ ]*/\([^ ]*\)\.cc,$(objects)/\1.o,g'`
34196 SDLMAIN_OBJECTS
=`echo $SDLMAIN_OBJECTS | sed 's,[^ ]*/\([^ ]*\)\.m,$(objects)/\1.o,g'`
34197 SDLMAIN_OBJECTS
=`echo $SDLMAIN_OBJECTS | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.o,g'`
34199 # Set runtime shared library paths as needed
34201 if test "x$enable_rpath" = "xyes"; then
34202 if test $ARCH = bsdi
-o $ARCH = freebsd
-o $ARCH = irix
-o $ARCH = linux
-o $ARCH = netbsd
; then
34203 SDL_RLD_FLAGS
="-Wl,-rpath,\${libdir}"
34205 if test $ARCH = solaris
; then
34206 SDL_RLD_FLAGS
="-R\${libdir}"
34214 if test x
$enable_video = xyes
-a x
$enable_video_cocoa = xyes
; then
34215 SDL_LIBS
="$SDL_LIBS -Wl,-framework,Cocoa"
34217 if test x
$enable_video = xyes
-a x
$enable_video_carbon = xyes
; then
34218 SDL_LIBS
="$SDL_LIBS -Wl,-framework,Carbon"
34220 # Evil hack to allow static linking on Mac OS X
34221 SDL_STATIC_LIBS
="\${libdir}/libSDLmain.a \${libdir}/libSDL.a $EXTRA_LDFLAGS"
34224 SDL_STATIC_LIBS
="$SDL_LIBS"
34232 if test x
$enable_shared = xyes
; then
34233 ENABLE_SHARED_TRUE
=
34234 ENABLE_SHARED_FALSE
="#"
34236 ENABLE_SHARED_TRUE
="#"
34237 ENABLE_SHARED_FALSE
=
34239 if test x
$enable_static = xyes
; then
34240 ENABLE_STATIC_TRUE
=
34241 ENABLE_STATIC_FALSE
="#"
34243 ENABLE_STATIC_TRUE
="#"
34244 ENABLE_STATIC_FALSE
=
34263 ac_config_files
="$ac_config_files Makefile sdl-config SDL.spec SDL.qpg sdl.pc"
34265 ac_config_commands
="$ac_config_commands default"
34267 cat >confcache
<<\_ACEOF
34268 # This file is a shell script that caches the results of configure
34269 # tests run on this system so they can be shared between configure
34270 # scripts and configure runs, see configure's option --config-cache.
34271 # It is not useful on other systems. If it contains results you don't
34272 # want to keep, you may remove or edit it.
34274 # config.status only pays attention to the cache file if you give it
34275 # the --recheck option to rerun configure.
34277 # `ac_cv_env_foo' variables (set or unset) will be overridden when
34278 # loading this file, other *unset* `ac_cv_foo' will be assigned the
34279 # following values.
34283 # The following way of writing the cache mishandles newlines in values,
34284 # but we know of no workaround that is simple, portable, and efficient.
34285 # So, we kill variables containing newlines.
34286 # Ultrix sh set writes to stderr and can't be redirected directly,
34287 # and sets the high bit in the cache file unless we assign to the vars.
34289 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34290 eval ac_val
=\$
$ac_var
34294 *_cv_
*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
34295 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
34298 _ | IFS | as_nl
) ;; #(
34299 *) $as_unset $ac_var ;;
34305 case $as_nl`(ac_space=' '; set) 2>&1` in #(
34306 *${as_nl}ac_space
=\
*)
34307 # `set' does not quote correctly, so add quotes (double-quote
34308 # substitution turns \\\\ into \\, and sed turns \\ into \).
34311 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
34314 # `set' quotes correctly as required by POSIX, so do not add quotes.
34315 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
34324 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34326 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34328 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
34329 if test -w "$cache_file"; then
34330 test "x$cache_file" != "x/dev/null" &&
34331 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
34332 echo "$as_me: updating cache $cache_file" >&6;}
34333 cat confcache
>$cache_file
34335 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
34336 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
34341 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
34342 # Let make expand exec_prefix.
34343 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
34345 DEFS
=-DHAVE_CONFIG_H
34349 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
34350 # 1. Remove the extension, and $U if already installed.
34351 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
34352 ac_i
=`echo "$ac_i" | sed "$ac_script"`
34353 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
34354 # will be set to the directory where LIBOBJS objects are built.
34355 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34356 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
34358 LIBOBJS
=$ac_libobjs
34360 LTLIBOBJS
=$ac_ltlibobjs
34364 : ${CONFIG_STATUS=./config.status}
34365 ac_clean_files_save
=$ac_clean_files
34366 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
34367 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
34368 echo "$as_me: creating $CONFIG_STATUS" >&6;}
34369 cat >$CONFIG_STATUS <<_ACEOF
34371 # Generated by $as_me.
34372 # Run this file to recreate the current configuration.
34373 # Compiler output produced by configure, useful for debugging
34374 # configure, is in config.log if it exists.
34377 ac_cs_recheck=false
34379 SHELL=\${CONFIG_SHELL-$SHELL}
34382 cat >>$CONFIG_STATUS <<\_ACEOF
34383 ## --------------------- ##
34384 ## M4sh Initialization. ##
34385 ## --------------------- ##
34387 # Be more Bourne compatible
34388 DUALCASE
=1; export DUALCASE
# for MKS sh
34389 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
34392 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
34393 # is contrary to our usage. Disable this feature.
34394 alias -g '${1+"$@"}'='"$@"'
34395 setopt NO_GLOB_SUBST
34397 case `(set -o) 2>/dev/null` in
34398 *posix
*) set -o posix
;;
34407 # Avoid depending upon Character Ranges.
34408 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
34409 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34410 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
34411 as_cr_digits
='0123456789'
34412 as_cr_alnum
=$as_cr_Letters$as_cr_digits
34414 # The user is always right.
34415 if test "${PATH_SEPARATOR+set}" != set; then
34416 echo "#! /bin/sh" >conf$$.sh
34417 echo "exit 0" >>conf$$.sh
34419 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
34427 # Support unset when possible.
34428 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
34436 # We need space, tab and new line, in precisely that order. Quoting is
34437 # there to prevent editors from complaining about space-tab.
34438 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
34439 # splitting by setting IFS to empty value.)
34444 # Find who we are. Look in the path if we contain no directory separator.
34446 *[\\/]* ) as_myself
=$0 ;;
34447 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
34448 for as_dir
in $PATH
34451 test -z "$as_dir" && as_dir
=.
34452 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
34458 # We did not find ourselves, most probably we were run as `sh COMMAND'
34459 # in which case we are not to be found in the path.
34460 if test "x$as_myself" = x
; then
34463 if test ! -f "$as_myself"; then
34464 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
34465 { (exit 1); exit 1; }
34468 # Work around bugs in pre-3.0 UWIN ksh.
34469 for as_var
in ENV MAIL MAILPATH
34470 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
34478 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
34479 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
34480 LC_TELEPHONE LC_TIME
34482 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
34483 eval $as_var=C
; export $as_var
34485 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
34489 # Required to use basename.
34490 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
34491 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
34497 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34498 as_basename
=basename
34504 # Name of the executable.
34505 as_me
=`$as_basename -- "$0" ||
34506 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34507 X"$0" : 'X\(//\)$' \| \
34508 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34510 sed '/^.*\/\([^/][^/]*\)\/*$/{
34529 as_lineno_1
=$LINENO
34530 as_lineno_2
=$LINENO
34531 test "x$as_lineno_1" != "x$as_lineno_2" &&
34532 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
34534 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
34535 # uniformly replaced by the line number. The first 'sed' inserts a
34536 # line-number line after each line using $LINENO; the second 'sed'
34537 # does the real work. The second script uses 'N' to pair each
34538 # line-number line with the line containing $LINENO, and appends
34539 # trailing '-' during substitution so that $LINENO is not a special
34540 # case at line end.
34541 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
34542 # scripts with optimization help from Paolo Bonzini. Blame Lee
34543 # E. McMahon (1931-1989) for sed's syntax. :-)
34555 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
34558 ' >$as_me.lineno
&&
34559 chmod +x
"$as_me.lineno" ||
34560 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
34561 { (exit 1); exit 1; }; }
34563 # Don't try to exec as it changes $[0], causing all sort of problems
34564 # (the dirname of $[0] is not the place where we might find the
34565 # original and so on. Autoconf is especially sensitive to this).
34566 .
"./$as_me.lineno"
34567 # Exit status is that of the last command.
34572 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
34578 ECHO_C
= ECHO_N
= ECHO_T
=
34579 case `echo -n x` in
34581 case `echo 'x\c'` in
34582 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
34589 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
34590 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
34596 rm -f conf$$ conf$$.exe conf$$.
file
34597 if test -d conf$$.dir
; then
34598 rm -f conf$$.dir
/conf$$.
file
34604 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
34606 # ... but there are two gotchas:
34607 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34608 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34609 # In both cases, we have to default to `cp -p'.
34610 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
34612 elif ln conf$$.
file conf$$
2>/dev
/null
; then
34617 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
34618 rmdir conf$$.dir
2>/dev
/null
34620 if mkdir
-p .
2>/dev
/null
; then
34623 test -d .
/-p && rmdir .
/-p
34627 if test -x / >/dev
/null
2>&1; then
34628 as_test_x
='test -x'
34630 if ls -dL / >/dev
/null
2>&1; then
34637 if test -d "$1"; then
34643 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
34644 ???[sx]*):;;*)false;;esac;fi
34648 as_executable_p
=$as_test_x
34650 # Sed expression to map a string onto a valid CPP name.
34651 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
34653 # Sed expression to map a string onto a valid variable name.
34654 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
34659 # Save the log message, to keep $[0] and so on meaningful, and to
34660 # report actual input values of CONFIG_FILES etc. instead of their
34661 # values after options handling.
34663 This file was extended by $as_me, which was
34664 generated by GNU Autoconf 2.61. Invocation command line was
34666 CONFIG_FILES = $CONFIG_FILES
34667 CONFIG_HEADERS = $CONFIG_HEADERS
34668 CONFIG_LINKS = $CONFIG_LINKS
34669 CONFIG_COMMANDS = $CONFIG_COMMANDS
34672 on `(hostname || uname -n) 2>/dev/null | sed 1q`
34677 cat >>$CONFIG_STATUS <<_ACEOF
34678 # Files that config.status was made for.
34679 config_files="$ac_config_files"
34680 config_headers="$ac_config_headers"
34681 config_commands="$ac_config_commands"
34685 cat >>$CONFIG_STATUS <<\_ACEOF
34687 \`$as_me' instantiates files from templates according to the
34688 current configuration.
34690 Usage: $0 [OPTIONS] [FILE]...
34692 -h, --help print this help, then exit
34693 -V, --version print version number and configuration settings, then exit
34694 -q, --quiet do not print progress messages
34695 -d, --debug don't remove temporary files
34696 --recheck update $as_me by reconfiguring in the same conditions
34697 --file=FILE[:TEMPLATE]
34698 instantiate the configuration file FILE
34699 --header=FILE[:TEMPLATE]
34700 instantiate the configuration header FILE
34702 Configuration files:
34705 Configuration headers:
34708 Configuration commands:
34711 Report bugs to <bug-autoconf@gnu.org>."
34714 cat >>$CONFIG_STATUS <<_ACEOF
34717 configured by $0, generated by GNU Autoconf 2.61,
34718 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
34720 Copyright (C) 2006 Free Software Foundation, Inc.
34721 This config.status script is free software; the Free Software Foundation
34722 gives unlimited permission to copy, distribute and modify it."
34729 cat >>$CONFIG_STATUS <<\_ACEOF
34730 # If no file are specified by the user, then we need to provide default
34731 # value. By we need to know if files were specified by the user.
34737 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
34738 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
34749 # Handling of the options.
34750 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
34752 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
34753 echo "$ac_cs_version"; exit ;;
34754 --debug |
--debu |
--deb |
--de |
--d |
-d )
34756 --file |
--fil |
--fi |
--f )
34758 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
34759 ac_need_defaults
=false
;;
34760 --header |
--heade |
--head |
--hea )
34762 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
34763 ac_need_defaults
=false
;;
34765 # Conflict between --help and --header
34766 { echo "$as_me: error: ambiguous option: $1
34767 Try \`$0 --help' for more information." >&2
34768 { (exit 1); exit 1; }; };;
34769 --help |
--hel |
-h )
34770 echo "$ac_cs_usage"; exit ;;
34771 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
34772 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
34775 # This is an error.
34776 -*) { echo "$as_me: error: unrecognized option: $1
34777 Try \`$0 --help' for more information." >&2
34778 { (exit 1); exit 1; }; } ;;
34780 *) ac_config_targets
="$ac_config_targets $1"
34781 ac_need_defaults
=false
;;
34787 ac_configure_extra_args
=
34789 if $ac_cs_silent; then
34791 ac_configure_extra_args
="$ac_configure_extra_args --silent"
34795 cat >>$CONFIG_STATUS <<_ACEOF
34796 if \$ac_cs_recheck; then
34797 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
34798 CONFIG_SHELL=$SHELL
34799 export CONFIG_SHELL
34800 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
34804 cat >>$CONFIG_STATUS <<\_ACEOF
34808 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34809 ## Running $as_me. ##
34815 cat >>$CONFIG_STATUS <<_ACEOF
34818 cat >>$CONFIG_STATUS <<\_ACEOF
34820 # Handling of arguments.
34821 for ac_config_target
in $ac_config_targets
34823 case $ac_config_target in
34824 "include/SDL_config.h") CONFIG_HEADERS
="$CONFIG_HEADERS include/SDL_config.h" ;;
34825 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
34826 "sdl-config") CONFIG_FILES
="$CONFIG_FILES sdl-config" ;;
34827 "SDL.spec") CONFIG_FILES
="$CONFIG_FILES SDL.spec" ;;
34828 "SDL.qpg") CONFIG_FILES
="$CONFIG_FILES SDL.qpg" ;;
34829 "sdl.pc") CONFIG_FILES
="$CONFIG_FILES sdl.pc" ;;
34830 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
34832 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
34833 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
34834 { (exit 1); exit 1; }; };;
34839 # If the user did not use the arguments to specify the items to instantiate,
34840 # then the envvar interface is used. Set only those that are not.
34841 # We use the long form for the default assignment because of an extremely
34842 # bizarre bug on SunOS 4.1.3.
34843 if $ac_need_defaults; then
34844 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
34845 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
34846 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
34849 # Have a temporary directory for convenience. Make it in the build tree
34850 # simply because there is no reason against having it here, and in addition,
34851 # creating and moving files from /tmp can sometimes cause problems.
34852 # Hook for its removal unless debugging.
34853 # Note that there is a small window in which the directory will not be cleaned:
34854 # after its creation but before its name has been assigned to `$tmp'.
34858 trap 'exit_status=$?
34859 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
34861 trap '{ (exit 1); exit 1; }' 1 2 13 15
34863 # Create a (secure) tmp directory for tmp files.
34866 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
34867 test -n "$tmp" && test -d "$tmp"
34870 tmp
=.
/conf$$
-$RANDOM
34871 (umask 077 && mkdir
"$tmp")
34874 echo "$me: cannot create a temporary directory in ." >&2
34875 { (exit 1); exit 1; }
34879 # Set up the sed scripts for CONFIG_FILES section.
34882 # No need to generate the scripts if there are no CONFIG_FILES.
34883 # This happens for instance when ./config.status config.h
34884 if test -n "$CONFIG_FILES"; then
34891 for ac_last_try
in false false false false false
:; do
34892 cat >conf$
$subs.
sed <<_ACEOF
34893 SHELL!$SHELL$ac_delim
34894 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
34895 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
34896 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
34897 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
34898 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
34899 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
34900 exec_prefix!$exec_prefix$ac_delim
34901 prefix!$prefix$ac_delim
34902 program_transform_name!$program_transform_name$ac_delim
34903 bindir!$bindir$ac_delim
34904 sbindir!$sbindir$ac_delim
34905 libexecdir!$libexecdir$ac_delim
34906 datarootdir!$datarootdir$ac_delim
34907 datadir!$datadir$ac_delim
34908 sysconfdir!$sysconfdir$ac_delim
34909 sharedstatedir!$sharedstatedir$ac_delim
34910 localstatedir!$localstatedir$ac_delim
34911 includedir!$includedir$ac_delim
34912 oldincludedir!$oldincludedir$ac_delim
34913 docdir!$docdir$ac_delim
34914 infodir!$infodir$ac_delim
34915 htmldir!$htmldir$ac_delim
34916 dvidir!$dvidir$ac_delim
34917 pdfdir!$pdfdir$ac_delim
34918 psdir!$psdir$ac_delim
34919 libdir!$libdir$ac_delim
34920 localedir!$localedir$ac_delim
34921 mandir!$mandir$ac_delim
34922 DEFS!$DEFS$ac_delim
34923 ECHO_C!$ECHO_C$ac_delim
34924 ECHO_N!$ECHO_N$ac_delim
34925 ECHO_T!$ECHO_T$ac_delim
34926 LIBS!$LIBS$ac_delim
34927 build_alias!$build_alias$ac_delim
34928 host_alias!$host_alias$ac_delim
34929 target_alias!$target_alias$ac_delim
34930 SDL_MAJOR_VERSION!$SDL_MAJOR_VERSION$ac_delim
34931 SDL_MINOR_VERSION!$SDL_MINOR_VERSION$ac_delim
34932 SDL_MICRO_VERSION!$SDL_MICRO_VERSION$ac_delim
34933 SDL_INTERFACE_AGE!$SDL_INTERFACE_AGE$ac_delim
34934 SDL_BINARY_AGE!$SDL_BINARY_AGE$ac_delim
34935 SDL_VERSION!$SDL_VERSION$ac_delim
34936 LT_RELEASE!$LT_RELEASE$ac_delim
34937 LT_CURRENT!$LT_CURRENT$ac_delim
34938 LT_REVISION!$LT_REVISION$ac_delim
34939 LT_AGE!$LT_AGE$ac_delim
34940 build!$build$ac_delim
34941 build_cpu!$build_cpu$ac_delim
34942 build_vendor!$build_vendor$ac_delim
34943 build_os!$build_os$ac_delim
34944 host!$host$ac_delim
34945 host_cpu!$host_cpu$ac_delim
34946 host_vendor!$host_vendor$ac_delim
34947 host_os!$host_os$ac_delim
34949 CFLAGS!$CFLAGS$ac_delim
34950 LDFLAGS!$LDFLAGS$ac_delim
34951 CPPFLAGS!$CPPFLAGS$ac_delim
34952 ac_ct_CC!$ac_ct_CC$ac_delim
34953 EXEEXT!$EXEEXT$ac_delim
34954 OBJEXT!$OBJEXT$ac_delim
34956 GREP!$GREP$ac_delim
34957 EGREP!$EGREP$ac_delim
34958 LN_S!$LN_S$ac_delim
34959 ECHO!$ECHO$ac_delim
34961 RANLIB!$RANLIB$ac_delim
34962 STRIP!$STRIP$ac_delim
34963 DLLTOOL!$DLLTOOL$ac_delim
34965 OBJDUMP!$OBJDUMP$ac_delim
34967 CXXFLAGS!$CXXFLAGS$ac_delim
34968 ac_ct_CXX!$ac_ct_CXX$ac_delim
34969 CXXCPP!$CXXCPP$ac_delim
34971 FFLAGS!$FFLAGS$ac_delim
34972 ac_ct_F77!$ac_ct_F77$ac_delim
34973 LIBTOOL!$LIBTOOL$ac_delim
34974 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
34975 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
34976 INSTALL_DATA!$INSTALL_DATA$ac_delim
34977 SET_MAKE!$SET_MAKE$ac_delim
34978 WINDRES!$WINDRES$ac_delim
34979 ALLOCA!$ALLOCA$ac_delim
34980 LIBOBJS!$LIBOBJS$ac_delim
34981 POW_LIB!$POW_LIB$ac_delim
34982 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
34983 ALSA_LIBS!$ALSA_LIBS$ac_delim
34984 ESD_CONFIG!$ESD_CONFIG$ac_delim
34985 ESD_CFLAGS!$ESD_CFLAGS$ac_delim
34986 ESD_LIBS!$ESD_LIBS$ac_delim
34987 PKG_CONFIG!$PKG_CONFIG$ac_delim
34988 ARTSCONFIG!$ARTSCONFIG$ac_delim
34989 NASM!$NASM$ac_delim
34992 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
34994 elif $ac_last_try; then
34995 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34996 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34997 { (exit 1); exit 1; }; }
34999 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
35003 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35004 if test -n "$ac_eof"; then
35005 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
35006 ac_eof
=`expr $ac_eof + 1`
35009 cat >>$CONFIG_STATUS <<_ACEOF
35010 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
35011 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35014 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35015 s/^/s,@/; s/!/@,|#_!!_#|/
35018 s/'"$ac_delim"'$/,g/; t
35020 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35021 ' >>$CONFIG_STATUS <conf$
$subs.
sed
35022 rm -f conf$
$subs.
sed
35023 cat >>$CONFIG_STATUS <<_ACEOF
35029 for ac_last_try
in false false false false false
:; do
35030 cat >conf$
$subs.
sed <<_ACEOF
35031 NASMFLAGS!$NASMFLAGS$ac_delim
35032 XMKMF!$XMKMF$ac_delim
35033 X_CFLAGS!$X_CFLAGS$ac_delim
35034 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
35035 X_LIBS!$X_LIBS$ac_delim
35036 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
35037 DIRECTFBCONFIG!$DIRECTFBCONFIG$ac_delim
35038 OSMESA_CONFIG!$OSMESA_CONFIG$ac_delim
35039 PTH_CONFIG!$PTH_CONFIG$ac_delim
35040 SDL_CFLAGS!$SDL_CFLAGS$ac_delim
35041 SDL_LIBS!$SDL_LIBS$ac_delim
35042 SDL_STATIC_LIBS!$SDL_STATIC_LIBS$ac_delim
35043 SDL_RLD_FLAGS!$SDL_RLD_FLAGS$ac_delim
35044 ENABLE_SHARED_TRUE!$ENABLE_SHARED_TRUE$ac_delim
35045 ENABLE_SHARED_FALSE!$ENABLE_SHARED_FALSE$ac_delim
35046 ENABLE_STATIC_TRUE!$ENABLE_STATIC_TRUE$ac_delim
35047 ENABLE_STATIC_FALSE!$ENABLE_STATIC_FALSE$ac_delim
35048 ac_aux_dir!$ac_aux_dir$ac_delim
35049 INCLUDE!$INCLUDE$ac_delim
35050 SOURCES!$SOURCES$ac_delim
35051 OBJECTS!$OBJECTS$ac_delim
35052 SDLMAIN_SOURCES!$SDLMAIN_SOURCES$ac_delim
35053 SDLMAIN_OBJECTS!$SDLMAIN_OBJECTS$ac_delim
35054 BUILD_CFLAGS!$BUILD_CFLAGS$ac_delim
35055 EXTRA_CFLAGS!$EXTRA_CFLAGS$ac_delim
35056 BUILD_LDFLAGS!$BUILD_LDFLAGS$ac_delim
35057 EXTRA_LDFLAGS!$EXTRA_LDFLAGS$ac_delim
35058 LTLIBOBJS!$LTLIBOBJS$ac_delim
35061 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 28; then
35063 elif $ac_last_try; then
35064 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35065 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35066 { (exit 1); exit 1; }; }
35068 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
35072 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35073 if test -n "$ac_eof"; then
35074 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
35075 ac_eof
=`expr $ac_eof + 1`
35078 cat >>$CONFIG_STATUS <<_ACEOF
35079 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
35080 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
35083 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35084 s/^/s,@/; s/!/@,|#_!!_#|/
35087 s/'"$ac_delim"'$/,g/; t
35089 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35090 ' >>$CONFIG_STATUS <conf$
$subs.
sed
35091 rm -f conf$
$subs.
sed
35092 cat >>$CONFIG_STATUS <<_ACEOF
35099 # VPATH may cause trouble with some makes, so we remove $(srcdir),
35100 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
35101 # trailing colons and then remove the whole line if VPATH becomes empty
35102 # (actually we leave an empty line to preserve line numbers).
35103 if test "x$srcdir" = x.
; then
35104 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
35105 s/:*\$(srcdir):*/:/
35106 s/:*\${srcdir}:*/:/
35108 s/^\([^=]*=[ ]*\):*/\1/
35114 cat >>$CONFIG_STATUS <<\_ACEOF
35115 fi # test -n "$CONFIG_FILES"
35118 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS :C
$CONFIG_COMMANDS
35121 :[FHLC
]) ac_mode
=$ac_tag; continue;;
35123 case $ac_mode$ac_tag in
35125 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
35126 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
35127 { (exit 1); exit 1; }; };;
35128 :[FH
]-) ac_tag
=-:-;;
35129 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
35146 -) ac_f
="$tmp/stdin";;
35147 *) # Look for the file first in the build tree, then in the source tree
35148 # (if the path is not absolute). The absolute path cannot be DOS-style,
35149 # because $ac_f cannot contain `:'.
35153 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
35155 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
35156 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
35157 { (exit 1); exit 1; }; };;
35159 ac_file_inputs
="$ac_file_inputs $ac_f"
35162 # Let's still pretend it is `configure' which instantiates (i.e., don't
35163 # use $as_me), people would be surprised to read:
35164 # /* config.h. Generated by config.status. */
35165 configure_input
="Generated from "`IFS=:
35166 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
35167 if test x
"$ac_file" != x-
; then
35168 configure_input
="$ac_file. $configure_input"
35169 { echo "$as_me:$LINENO: creating $ac_file" >&5
35170 echo "$as_me: creating $ac_file" >&6;}
35174 *:-:* |
*:-) cat >"$tmp/stdin";;
35179 ac_dir
=`$as_dirname -- "$ac_file" ||
35180 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35181 X"$ac_file" : 'X\(//\)[^/]' \| \
35182 X"$ac_file" : 'X\(//\)$' \| \
35183 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
35185 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35189 /^X\(\/\/\)[^/].*/{
35204 -*) as_dir
=.
/$as_dir;;
35206 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
35210 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35211 *) as_qdir
=$as_dir;;
35213 as_dirs
="'$as_qdir' $as_dirs"
35214 as_dir
=`$as_dirname -- "$as_dir" ||
35215 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35216 X"$as_dir" : 'X\(//\)[^/]' \| \
35217 X"$as_dir" : 'X\(//\)$' \| \
35218 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35220 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35224 /^X\(\/\/\)[^/].*/{
35237 test -d "$as_dir" && break
35239 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
35240 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35241 echo "$as_me: error: cannot create directory $as_dir" >&2;}
35242 { (exit 1); exit 1; }; }; }
35246 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
35248 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35249 # A ".." for each directory in $ac_dir_suffix.
35250 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35251 case $ac_top_builddir_sub in
35252 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
35253 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
35256 ac_abs_top_builddir
=$ac_pwd
35257 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
35258 # for backward compatibility:
35259 ac_top_builddir
=$ac_top_build_prefix
35262 .
) # We are building in place.
35264 ac_top_srcdir
=$ac_top_builddir_sub
35265 ac_abs_top_srcdir
=$ac_pwd ;;
35266 [\\/]* | ?
:[\\/]* ) # Absolute name.
35267 ac_srcdir
=$srcdir$ac_dir_suffix;
35268 ac_top_srcdir
=$srcdir
35269 ac_abs_top_srcdir
=$srcdir ;;
35270 *) # Relative name.
35271 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
35272 ac_top_srcdir
=$ac_top_build_prefix$srcdir
35273 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
35275 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
35285 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
35286 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
35290 cat >>$CONFIG_STATUS <<\_ACEOF
35291 # If the template does not know about datarootdir, expand it.
35292 # FIXME: This hack should be removed a few years after 2.60.
35293 ac_datarootdir_hack
=; ac_datarootdir_seen
=
35295 case `sed -n '/datarootdir/ {
35304 ' $ac_file_inputs` in
35305 *datarootdir
*) ac_datarootdir_seen
=yes;;
35306 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
35307 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
35308 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35310 cat >>$CONFIG_STATUS <<_ACEOF
35311 ac_datarootdir_hack='
35312 s&@datadir@&$datadir&g
35313 s&@docdir@&$docdir&g
35314 s&@infodir@&$infodir&g
35315 s&@localedir@&$localedir&g
35316 s&@mandir@&$mandir&g
35317 s&\\\${datarootdir}&$datarootdir&g' ;;
35321 # Neutralize VPATH when `$srcdir' = `.'.
35322 # Shell code in configure.ac might set extrasub.
35323 # FIXME: do we really want to maintain this feature?
35324 cat >>$CONFIG_STATUS <<_ACEOF
35328 cat >>$CONFIG_STATUS <<\_ACEOF
35330 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
35331 s
&@configure_input@
&$configure_input&;t t
35332 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
35333 s
&@srcdir@
&$ac_srcdir&;t t
35334 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
35335 s
&@top_srcdir@
&$ac_top_srcdir&;t t
35336 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
35337 s
&@builddir@
&$ac_builddir&;t t
35338 s
&@abs_builddir@
&$ac_abs_builddir&;t t
35339 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
35340 s
&@INSTALL@
&$ac_INSTALL&;t t
35341 $ac_datarootdir_hack
35342 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
35344 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
35345 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
35346 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
35347 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
35348 which seems to be undefined. Please make sure it is defined." >&5
35349 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
35350 which seems to be undefined. Please make sure it is defined." >&2;}
35354 -) cat "$tmp/out"; rm -f "$tmp/out";;
35355 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
35364 # Transform confdefs.h into a sed script `conftest.defines', that
35365 # substitutes the proper values into config.h.in to produce config.h.
35366 rm -f conftest.defines conftest.
tail
35367 # First, append a space to every undef/define line, to ease matching.
35368 echo 's/$/ /' >conftest.defines
35369 # Then, protect against being on the right side of a sed subst, or in
35370 # an unquoted here document, in config.status. If some macros were
35371 # called several times there might be several #defines for the same
35372 # symbol, which is useless. But do not sort them, since the last
35373 # AC_DEFINE must be honored.
35374 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
35375 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
35376 # NAME is the cpp macro being defined, VALUE is the value it is being given.
35377 # PARAMS is the parameter list in the macro definition--in most cases, it's
35378 # just an empty string.
35379 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
35380 ac_dB
='\\)[ (].*,\\1define\\2'
35388 s/^[ ]*#[ ]*define[ ][ ]*//
35393 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
35394 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
35395 ' >>conftest.defines
35397 # Remove the space that was appended to ease matching.
35398 # Then replace #undef with comments. This is necessary, for
35399 # example, in the case of _POSIX_SOURCE, which is predefined and required
35400 # on some systems where configure will not decide to define it.
35401 # (The regexp can be short, since the line contains either #define or #undef.)
35403 s,^[ #]*u.*,/* & */,' >>conftest.defines
35405 # Break up conftest.defines:
35406 ac_max_sed_lines
=50
35408 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
35409 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
35410 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
35412 ac_in
='$ac_file_inputs'
35413 ac_out
='"$tmp/out1"'
35414 ac_nxt
='"$tmp/out2"'
35418 # Write a here document:
35419 cat >>$CONFIG_STATUS <<_ACEOF
35420 # First, check the format of the line:
35421 cat >"\$tmp/defines.sed" <<\\CEOF
35422 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
35423 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
35427 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
35429 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
35430 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
35431 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
35432 grep . conftest.
tail >/dev
/null ||
break
35433 rm -f conftest.defines
35434 mv conftest.
tail conftest.defines
35436 rm -f conftest.defines conftest.
tail
35438 echo "ac_result=$ac_in" >>$CONFIG_STATUS
35439 cat >>$CONFIG_STATUS <<\_ACEOF
35440 if test x
"$ac_file" != x-
; then
35441 echo "/* $configure_input */" >"$tmp/config.h"
35442 cat "$ac_result" >>"$tmp/config.h"
35443 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
35444 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
35445 echo "$as_me: $ac_file is unchanged" >&6;}
35448 mv "$tmp/config.h" $ac_file
35451 echo "/* $configure_input */"
35457 :C
) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
35458 echo "$as_me: executing $ac_file commands" >&6;}
35463 case $ac_file$ac_mode in
35466 if test x
"$MAKE" = x
; then MAKE
=make; fi; $MAKE depend
35473 { (exit 0); exit 0; }
35475 chmod +x
$CONFIG_STATUS
35476 ac_clean_files
=$ac_clean_files_save
35479 # configure is writing to config.log, and then calls config.status.
35480 # config.status does its own redirection, appending to config.log.
35481 # Unfortunately, on DOS this fails, as config.log is still kept open
35482 # by configure, so config.status won't be able to write to it; its
35483 # output is simply discarded. So we exec the FD to /dev/null,
35484 # effectively closing config.log, so it can be properly (re)opened and
35485 # appended to by config.status. When coming back to configure, we
35486 # need to make the FD available again.
35487 if test "$no_create" != yes; then
35489 ac_config_status_args
=
35490 test "$silent" = yes &&
35491 ac_config_status_args
="$ac_config_status_args --quiet"
35493 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
35495 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35496 # would make configure fail if this is the last instruction.
35497 $ac_cs_success ||
{ (exit 1); exit 1; }