2 # From configure.in Id: configure.in,v 1.374 2008/10/01 09:44:40 sshwarts Exp .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
14 # Be more Bourne compatible
15 DUALCASE
=1; export DUALCASE
# for MKS sh
16 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
24 case `(set -o) 2>/dev/null` in
25 *posix
*) set -o posix
;;
34 # Avoid depending upon Character Ranges.
35 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
36 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
37 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
38 as_cr_digits
='0123456789'
39 as_cr_alnum
=$as_cr_Letters$as_cr_digits
41 # The user is always right.
42 if test "${PATH_SEPARATOR+set}" != set; then
43 echo "#! /bin/sh" >conf$$.sh
44 echo "exit 0" >>conf$$.sh
46 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
54 # Support unset when possible.
55 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
63 # We need space, tab and new line, in precisely that order. Quoting is
64 # there to prevent editors from complaining about space-tab.
65 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
66 # splitting by setting IFS to empty value.)
71 # Find who we are. Look in the path if we contain no directory separator.
73 *[\\/]* ) as_myself
=$0 ;;
74 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
78 test -z "$as_dir" && as_dir
=.
79 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
85 # We did not find ourselves, most probably we were run as `sh COMMAND'
86 # in which case we are not to be found in the path.
87 if test "x$as_myself" = x
; then
90 if test ! -f "$as_myself"; then
91 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
95 # Work around bugs in pre-3.0 UWIN ksh.
96 for as_var
in ENV MAIL MAILPATH
97 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
105 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
106 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
109 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
110 eval $as_var=C
; export $as_var
112 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
116 # Required to use basename.
117 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
118 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
124 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
131 # Name of the executable.
132 as_me
=`$as_basename -- "$0" ||
133 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
134 X"$0" : 'X\(//\)$' \| \
135 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137 sed '/^.*\/\([^/][^/]*\)\/*$/{
155 if test "x$CONFIG_SHELL" = x
; then
156 if (eval ":") 2>/dev
/null
; then
162 if test $as_have_required = yes && (eval ":
172 as_func_ret_success () {
175 as_func_ret_failure () {
180 if as_func_success; then
184 echo as_func_success failed.
187 if as_func_failure; then
189 echo as_func_failure succeeded.
192 if as_func_ret_success; then
196 echo as_func_ret_success failed.
199 if as_func_ret_failure; then
201 echo as_func_ret_failure succeeded.
204 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
208 echo positional parameters were not saved.
211 test \$exitcode = 0) || { (exit 1); exit 1; }
216 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
217 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
218 ") 2> /dev
/null
; then
222 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
223 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
226 test -z "$as_dir" && as_dir
=.
229 for as_base
in sh bash ksh sh5
; do
230 as_candidate_shells
="$as_candidate_shells $as_dir/$as_base"
237 for as_shell
in $as_candidate_shells $SHELL; do
238 # Try only shells that exist, to save several forks.
239 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
240 { ("$as_shell") 2> /dev
/null
<<\_ASEOF
241 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
249 case `(set -o) 2>/dev/null` in
250 *posix
*) set -o posix
;;
259 CONFIG_SHELL
=$as_shell
261 if { "$as_shell" 2> /dev
/null
<<\_ASEOF
262 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
265 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
266 # is contrary to our usage. Disable this feature.
267 alias -g '${1+"$@"}'='"$@"'
270 case `(set -o) 2>/dev/null` in
271 *posix
*) set -o posix
;;
287 as_func_ret_success
() {
290 as_func_ret_failure
() {
295 if as_func_success
; then
299 echo as_func_success failed.
302 if as_func_failure
; then
304 echo as_func_failure succeeded.
307 if as_func_ret_success
; then
311 echo as_func_ret_success failed.
314 if as_func_ret_failure
; then
316 echo as_func_ret_failure succeeded.
319 if ( set x
; as_func_ret_success y
&& test x
= "$1" ); then
323 echo positional parameters were not saved.
326 test $exitcode = 0) ||
{ (exit 1); exit 1; }
331 test "x$as_lineno_1" != "x$as_lineno_2" &&
332 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") ||
{ (exit 1); exit 1; }
343 if test "x$CONFIG_SHELL" != x
; then
344 for as_var
in BASH_ENV ENV
345 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
348 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
352 if test $as_have_required = no
; then
353 echo This
script requires a shell
more modern than all the
354 echo shells that I found on your system. Please
install a
355 echo modern shell
, or manually run the
script under such a
356 echo shell
if you
do have one.
357 { (exit 1); exit 1; }
367 (eval "as_func_return () {
376 as_func_ret_success () {
379 as_func_ret_failure () {
384 if as_func_success; then
388 echo as_func_success failed.
391 if as_func_failure; then
393 echo as_func_failure succeeded.
396 if as_func_ret_success; then
400 echo as_func_ret_success failed.
403 if as_func_ret_failure; then
405 echo as_func_ret_failure succeeded.
408 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
412 echo positional parameters were not saved.
415 test \$exitcode = 0") ||
{
416 echo No shell found that supports shell functions.
417 echo Please tell autoconf@gnu.org about your system
,
418 echo including any error possibly output before this
426 test "x$as_lineno_1" != "x$as_lineno_2" &&
427 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
429 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
430 # uniformly replaced by the line number. The first 'sed' inserts a
431 # line-number line after each line using $LINENO; the second 'sed'
432 # does the real work. The second script uses 'N' to pair each
433 # line-number line with the line containing $LINENO, and appends
434 # trailing '-' during substitution so that $LINENO is not a special
436 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
437 # scripts with optimization help from Paolo Bonzini. Blame Lee
438 # E. McMahon (1931-1989) for sed's syntax. :-)
450 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
454 chmod +x
"$as_me.lineno" ||
455 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
456 { (exit 1); exit 1; }; }
458 # Don't try to exec as it changes $[0], causing all sort of problems
459 # (the dirname of $[0] is not the place where we might find the
460 # original and so on. Autoconf is especially sensitive to this).
462 # Exit status is that of the last command.
467 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
473 ECHO_C
= ECHO_N
= ECHO_T
=
477 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
484 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
485 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
491 rm -f conf$$ conf$$.exe conf$$.
file
492 if test -d conf$$.dir
; then
493 rm -f conf$$.dir
/conf$$.
file
499 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
501 # ... but there are two gotchas:
502 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
503 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
504 # In both cases, we have to default to `cp -p'.
505 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
507 elif ln conf$$.
file conf$$
2>/dev
/null
; then
512 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
513 rmdir conf$$.dir
2>/dev
/null
515 if mkdir
-p .
2>/dev
/null
; then
518 test -d .
/-p && rmdir .
/-p
522 if test -x / >/dev
/null
2>&1; then
525 if ls -dL / >/dev
/null
2>&1; then
532 if test -d "$1"; then
538 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
539 ???[sx]*):;;*)false;;esac;fi
543 as_executable_p
=$as_test_x
545 # Sed expression to map a string onto a valid CPP name.
546 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
548 # Sed expression to map a string onto a valid variable name.
549 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
554 # Check that we are running under the correct shell.
555 SHELL
=${CONFIG_SHELL-/bin/sh}
559 # Remove one level of quotation (which was required for Make).
560 ECHO
=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
565 if test "X$1" = X--no-reexec
; then
566 # Discard the --no-reexec flag, and continue.
568 elif test "X$1" = X--fallback-echo
; then
569 # Avoid inline document here, it may be left over
571 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
572 # Yippee, $echo works!
575 # Restart under the correct shell.
576 exec $SHELL "$0" --no-reexec ${1+"$@"}
579 if test "X$1" = X--fallback-echo
; then
580 # used as fallback echo
588 # The HP-UX ksh and POSIX shell print the target directory to stdout
590 if test "X${CDPATH+set}" = Xset
; then CDPATH
=:; export CDPATH
; fi
592 if test -z "$ECHO"; then
593 if test "X${echo_test_string+set}" != Xset
; then
594 # find a string as large as possible, as long as the shell can cope with it
595 for cmd
in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
596 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
597 if (echo_test_string
="`eval $cmd`") 2>/dev
/null
&&
598 echo_test_string
="`eval $cmd`" &&
599 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev
/null
606 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
607 echo_testing_string
=`($echo "$echo_test_string") 2>/dev/null` &&
608 test "X$echo_testing_string" = "X$echo_test_string"; then
611 # The Solaris, AIX, and Digital Unix default echo programs unquote
612 # backslashes. This makes it impossible to quote backslashes using
613 # echo "$something" | sed 's/\\/\\\\/g'
615 # So, first we look for a working echo in the user's PATH.
617 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
618 for dir
in $PATH /usr
/ucb
; do
620 if (test -f $dir/echo ||
test -f $dir/echo$ac_exeext) &&
621 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
622 echo_testing_string
=`($dir/echo "$echo_test_string") 2>/dev/null` &&
623 test "X$echo_testing_string" = "X$echo_test_string"; then
630 if test "X$echo" = Xecho
; then
631 # We didn't find a better echo, so look for alternatives.
632 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
633 echo_testing_string
=`(print -r "$echo_test_string") 2>/dev/null` &&
634 test "X$echo_testing_string" = "X$echo_test_string"; then
635 # This shell has a builtin print -r that does the trick.
637 elif (test -f /bin
/ksh ||
test -f /bin
/ksh
$ac_exeext) &&
638 test "X$CONFIG_SHELL" != X
/bin
/ksh
; then
639 # If we have ksh, try running configure again with it.
640 ORIGINAL_CONFIG_SHELL
=${CONFIG_SHELL-/bin/sh}
641 export ORIGINAL_CONFIG_SHELL
642 CONFIG_SHELL
=/bin
/ksh
644 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
648 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
649 echo_testing_string
=`($echo "$echo_test_string") 2>/dev/null` &&
650 test "X$echo_testing_string" = "X$echo_test_string"; then
653 elif echo_testing_string
=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
654 test "X$echo_testing_string" = 'X\t' &&
655 echo_testing_string
=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
656 test "X$echo_testing_string" = "X$echo_test_string"; then
657 CONFIG_SHELL
=$ORIGINAL_CONFIG_SHELL
659 SHELL
="$CONFIG_SHELL"
661 echo="$CONFIG_SHELL $0 --fallback-echo"
662 elif echo_testing_string
=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
663 test "X$echo_testing_string" = 'X\t' &&
664 echo_testing_string
=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
665 test "X$echo_testing_string" = "X$echo_test_string"; then
666 echo="$CONFIG_SHELL $0 --fallback-echo"
668 # maybe with a smaller string...
671 for cmd
in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
672 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev
/null
679 if test "$prev" != 'sed 50q "$0"'; then
680 echo_test_string
=`eval $prev`
681 export echo_test_string
682 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
684 # Oops. We lost completely, so just stick with echo.
693 # Copy echo and quote the copy suitably for passing to libtool from
694 # the Makefile, instead of quoting the original, which is used later.
696 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
697 ECHO
="$CONFIG_SHELL \\\$\$0 --fallback-echo"
703 tagnames
=${tagnames+${tagnames},}CXX
705 tagnames
=${tagnames+${tagnames},}F77
707 exec 7<&0 </dev
/null
6>&1
710 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
711 # so uname gets run too.
712 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
717 ac_default_prefix
=/usr
/local
719 ac_config_libobj_dir
=.
725 SHELL
=${CONFIG_SHELL-/bin/sh}
727 # Identity of this package.
734 ac_unique_file
="bochs.h"
735 # Factoring default headers for most tests.
736 ac_includes_default
="\
738 #ifdef HAVE_SYS_TYPES_H
739 # include <sys/types.h>
741 #ifdef HAVE_SYS_STAT_H
742 # include <sys/stat.h>
748 # ifdef HAVE_STDLIB_H
753 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
758 #ifdef HAVE_STRINGS_H
759 # include <strings.h>
761 #ifdef HAVE_INTTYPES_H
762 # include <inttypes.h>
780 program_transform_name
852 NONPLUGIN_GUI_LINK_OPTS
855 BX_COMPRESSED_HD_SUPPORT
864 PCIDEV_MODULE_MAKE_ALL
910 INSTALL_LIST_FOR_PLATFORM
929 PLUGIN_LIBNAME_TRANSFORMATION
941 IODEV_NON_PLUGIN_OBJS
951 ac_precious_vars
='build_alias
972 # Initialize some variables set by options.
974 ac_init_version
=false
975 # The variables have the same names as the options, with
976 # dashes changed to underlines.
984 program_transform_name
=s
,x
,x
,
992 # Installation directory options.
993 # These are left unexpanded so users can "make install exec_prefix=/foo"
994 # and all the variables that are supposed to be based on exec_prefix
995 # by default will actually change.
996 # Use braces instead of parens because sh, perl, etc. also accept them.
997 # (The list follows the same order as the GNU Coding Standards.)
998 bindir
='${exec_prefix}/bin'
999 sbindir
='${exec_prefix}/sbin'
1000 libexecdir
='${exec_prefix}/libexec'
1001 datarootdir
='${prefix}/share'
1002 datadir
='${datarootdir}'
1003 sysconfdir
='${prefix}/etc'
1004 sharedstatedir
='${prefix}/com'
1005 localstatedir
='${prefix}/var'
1006 includedir
='${prefix}/include'
1007 oldincludedir
='/usr/include'
1008 docdir
='${datarootdir}/doc/${PACKAGE}'
1009 infodir
='${datarootdir}/info'
1014 libdir
='${exec_prefix}/lib'
1015 localedir
='${datarootdir}/locale'
1016 mandir
='${datarootdir}/man'
1022 # If the previous option needs an argument, assign it.
1023 if test -n "$ac_prev"; then
1024 eval $ac_prev=\
$ac_option
1030 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1034 # Accept the important Cygnus configure options, so we can diagnose typos.
1036 case $ac_dashdash$ac_option in
1040 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1042 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1043 bindir
=$ac_optarg ;;
1045 -build |
--build |
--buil |
--bui |
--bu)
1046 ac_prev
=build_alias
;;
1047 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1048 build_alias
=$ac_optarg ;;
1050 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1051 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1052 ac_prev
=cache_file
;;
1053 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1054 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1055 cache_file
=$ac_optarg ;;
1057 --config-cache |
-C)
1058 cache_file
=config.cache
;;
1060 -datadir |
--datadir |
--datadi |
--datad)
1062 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1063 datadir
=$ac_optarg ;;
1065 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1066 |
--dataroo |
--dataro |
--datar)
1067 ac_prev
=datarootdir
;;
1068 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1069 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1070 datarootdir
=$ac_optarg ;;
1072 -disable-* |
--disable-*)
1073 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1074 # Reject names that are not valid shell variable names.
1075 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1076 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1077 { (exit 1); exit 1; }; }
1078 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
1079 eval enable_
$ac_feature=no
;;
1081 -docdir |
--docdir |
--docdi |
--doc |
--do)
1083 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1084 docdir
=$ac_optarg ;;
1086 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1088 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1089 dvidir
=$ac_optarg ;;
1091 -enable-* |
--enable-*)
1092 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1093 # Reject names that are not valid shell variable names.
1094 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1095 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1096 { (exit 1); exit 1; }; }
1097 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
1098 eval enable_
$ac_feature=\
$ac_optarg ;;
1100 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1101 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1102 |
--exec |
--exe |
--ex)
1103 ac_prev
=exec_prefix
;;
1104 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1105 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1106 |
--exec=* |
--exe=* |
--ex=*)
1107 exec_prefix
=$ac_optarg ;;
1109 -gas |
--gas |
--ga |
--g)
1110 # Obsolete; use --with-gas.
1113 -help |
--help |
--hel |
--he |
-h)
1114 ac_init_help
=long
;;
1115 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1116 ac_init_help
=recursive
;;
1117 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1118 ac_init_help
=short
;;
1120 -host |
--host |
--hos |
--ho)
1121 ac_prev
=host_alias
;;
1122 -host=* |
--host=* |
--hos=* |
--ho=*)
1123 host_alias
=$ac_optarg ;;
1125 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1127 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1129 htmldir
=$ac_optarg ;;
1131 -includedir |
--includedir |
--includedi |
--included |
--include \
1132 |
--includ |
--inclu |
--incl |
--inc)
1133 ac_prev
=includedir
;;
1134 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1135 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1136 includedir
=$ac_optarg ;;
1138 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1140 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1141 infodir
=$ac_optarg ;;
1143 -libdir |
--libdir |
--libdi |
--libd)
1145 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1146 libdir
=$ac_optarg ;;
1148 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1149 |
--libexe |
--libex |
--libe)
1150 ac_prev
=libexecdir
;;
1151 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1152 |
--libexe=* |
--libex=* |
--libe=*)
1153 libexecdir
=$ac_optarg ;;
1155 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1156 ac_prev
=localedir
;;
1157 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1158 localedir
=$ac_optarg ;;
1160 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1161 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1162 ac_prev
=localstatedir
;;
1163 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1164 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1165 localstatedir
=$ac_optarg ;;
1167 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1169 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1170 mandir
=$ac_optarg ;;
1172 -nfp |
--nfp |
--nf)
1173 # Obsolete; use --without-fp.
1176 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1177 |
--no-cr |
--no-c |
-n)
1180 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1181 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1184 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1185 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1186 |
--oldin |
--oldi |
--old |
--ol |
--o)
1187 ac_prev
=oldincludedir
;;
1188 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1189 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1190 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1191 oldincludedir
=$ac_optarg ;;
1193 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1195 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1196 prefix
=$ac_optarg ;;
1198 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1199 |
--program-pre |
--program-pr |
--program-p)
1200 ac_prev
=program_prefix
;;
1201 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1202 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1203 program_prefix
=$ac_optarg ;;
1205 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1206 |
--program-suf |
--program-su |
--program-s)
1207 ac_prev
=program_suffix
;;
1208 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1209 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1210 program_suffix
=$ac_optarg ;;
1212 -program-transform-name |
--program-transform-name \
1213 |
--program-transform-nam |
--program-transform-na \
1214 |
--program-transform-n |
--program-transform- \
1215 |
--program-transform |
--program-transfor \
1216 |
--program-transfo |
--program-transf \
1217 |
--program-trans |
--program-tran \
1218 |
--progr-tra |
--program-tr |
--program-t)
1219 ac_prev
=program_transform_name
;;
1220 -program-transform-name=* |
--program-transform-name=* \
1221 |
--program-transform-nam=* |
--program-transform-na=* \
1222 |
--program-transform-n=* |
--program-transform-=* \
1223 |
--program-transform=* |
--program-transfor=* \
1224 |
--program-transfo=* |
--program-transf=* \
1225 |
--program-trans=* |
--program-tran=* \
1226 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1227 program_transform_name
=$ac_optarg ;;
1229 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1231 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1232 pdfdir
=$ac_optarg ;;
1234 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1236 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1239 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1240 |
-silent |
--silent |
--silen |
--sile |
--sil)
1243 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1245 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1247 sbindir
=$ac_optarg ;;
1249 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1250 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1251 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1253 ac_prev
=sharedstatedir
;;
1254 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1255 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1256 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1258 sharedstatedir
=$ac_optarg ;;
1260 -site |
--site |
--sit)
1262 -site=* |
--site=* |
--sit=*)
1265 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1267 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1268 srcdir
=$ac_optarg ;;
1270 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1271 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1272 ac_prev
=sysconfdir
;;
1273 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1274 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1275 sysconfdir
=$ac_optarg ;;
1277 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1278 ac_prev
=target_alias
;;
1279 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1280 target_alias
=$ac_optarg ;;
1282 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1285 -version |
--version |
--versio |
--versi |
--vers |
-V)
1286 ac_init_version
=: ;;
1289 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1290 # Reject names that are not valid shell variable names.
1291 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1292 { echo "$as_me: error: invalid package name: $ac_package" >&2
1293 { (exit 1); exit 1; }; }
1294 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1295 eval with_
$ac_package=\
$ac_optarg ;;
1297 -without-* |
--without-*)
1298 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1299 # Reject names that are not valid shell variable names.
1300 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1301 { echo "$as_me: error: invalid package name: $ac_package" >&2
1302 { (exit 1); exit 1; }; }
1303 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1304 eval with_
$ac_package=no
;;
1307 # Obsolete; use --with-x.
1310 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1311 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1312 ac_prev
=x_includes
;;
1313 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1314 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1315 x_includes
=$ac_optarg ;;
1317 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1318 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1319 ac_prev
=x_libraries
;;
1320 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1321 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1322 x_libraries
=$ac_optarg ;;
1324 -*) { echo "$as_me: error: unrecognized option: $ac_option
1325 Try \`$0 --help' for more information." >&2
1326 { (exit 1); exit 1; }; }
1330 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1331 # Reject names that are not valid shell variable names.
1332 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1333 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1334 { (exit 1); exit 1; }; }
1335 eval $ac_envvar=\
$ac_optarg
1336 export $ac_envvar ;;
1339 # FIXME: should be removed in autoconf 3.0.
1340 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1341 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1342 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1343 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1349 if test -n "$ac_prev"; then
1350 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1351 { echo "$as_me: error: missing argument to $ac_option" >&2
1352 { (exit 1); exit 1; }; }
1355 # Be sure to have absolute directory names.
1356 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1357 datadir sysconfdir sharedstatedir localstatedir includedir \
1358 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1359 libdir localedir mandir
1361 eval ac_val
=\$
$ac_var
1363 [\\/$
]* | ?
:[\\/]* ) continue;;
1364 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1366 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1367 { (exit 1); exit 1; }; }
1370 # There might be people who depend on the old broken behavior: `$host'
1371 # used to hold the argument of --host etc.
1372 # FIXME: To remove some day.
1375 target
=$target_alias
1377 # FIXME: To remove some day.
1378 if test "x$host_alias" != x
; then
1379 if test "x$build_alias" = x
; then
1380 cross_compiling
=maybe
1381 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1382 If a cross compiler is detected then cross compile mode will be used." >&2
1383 elif test "x$build_alias" != "x$host_alias"; then
1389 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1391 test "$silent" = yes && exec 6>/dev
/null
1394 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1395 ac_ls_di
=`ls -di .` &&
1396 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1397 { echo "$as_me: error: Working directory cannot be determined" >&2
1398 { (exit 1); exit 1; }; }
1399 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1400 { echo "$as_me: error: pwd does not report name of working directory" >&2
1401 { (exit 1); exit 1; }; }
1404 # Find the source files, if location was not specified.
1405 if test -z "$srcdir"; then
1406 ac_srcdir_defaulted
=yes
1407 # Try the directory containing this script, then the parent directory.
1408 ac_confdir
=`$as_dirname -- "$0" ||
1409 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1410 X"$0" : 'X\(//\)[^/]' \| \
1411 X"$0" : 'X\(//\)$' \| \
1412 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1414 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1432 if test ! -r "$srcdir/$ac_unique_file"; then
1436 ac_srcdir_defaulted
=no
1438 if test ! -r "$srcdir/$ac_unique_file"; then
1439 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1440 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1441 { (exit 1); exit 1; }; }
1443 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1445 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1446 { (exit 1); exit 1; }; }
1448 # When building in place, set srcdir=.
1449 if test "$ac_abs_confdir" = "$ac_pwd"; then
1452 # Remove unnecessary trailing slashes from srcdir.
1453 # Double slashes in file names in object file debugging info
1454 # mess up M-x gdb in Emacs.
1456 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1458 for ac_var
in $ac_precious_vars; do
1459 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1460 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1461 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1462 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1466 # Report the --help message.
1468 if test "$ac_init_help" = "long"; then
1469 # Omit some internal or obsolete options to make the list less imposing.
1470 # This message is too long to be a string in the A/UX 3.1 sh.
1472 \`configure' configures this package to adapt to many kinds of systems.
1474 Usage: $0 [OPTION]... [VAR=VALUE]...
1476 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1477 VAR=VALUE. See below for descriptions of some of the useful variables.
1479 Defaults for the options are specified in brackets.
1482 -h, --help display this help and exit
1483 --help=short display options specific to this package
1484 --help=recursive display the short help of all the included packages
1485 -V, --version display version information and exit
1486 -q, --quiet, --silent do not print \`checking...' messages
1487 --cache-file=FILE cache test results in FILE [disabled]
1488 -C, --config-cache alias for \`--cache-file=config.cache'
1489 -n, --no-create do not create output files
1490 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1492 Installation directories:
1493 --prefix=PREFIX install architecture-independent files in PREFIX
1494 [$ac_default_prefix]
1495 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1498 By default, \`make install' will install all the files in
1499 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1500 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1501 for instance \`--prefix=\$HOME'.
1503 For better control, use the options below.
1505 Fine tuning of the installation directories:
1506 --bindir=DIR user executables [EPREFIX/bin]
1507 --sbindir=DIR system admin executables [EPREFIX/sbin]
1508 --libexecdir=DIR program executables [EPREFIX/libexec]
1509 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1510 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1511 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1512 --libdir=DIR object code libraries [EPREFIX/lib]
1513 --includedir=DIR C header files [PREFIX/include]
1514 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1515 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1516 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1517 --infodir=DIR info documentation [DATAROOTDIR/info]
1518 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1519 --mandir=DIR man documentation [DATAROOTDIR/man]
1520 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1521 --htmldir=DIR html documentation [DOCDIR]
1522 --dvidir=DIR dvi documentation [DOCDIR]
1523 --pdfdir=DIR pdf documentation [DOCDIR]
1524 --psdir=DIR ps documentation [DOCDIR]
1530 --x-includes=DIR X include files are
in DIR
1531 --x-libraries=DIR X library files are
in DIR
1534 --build=BUILD configure
for building on BUILD
[guessed
]
1535 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1536 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1540 if test -n "$ac_init_help"; then
1545 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1546 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1547 --enable-static[=PKGS
] build static libraries
[default
=no
]
1548 --enable-shared[=PKGS
] build shared libraries
[default
=yes]
1549 --enable-fast-install[=PKGS
]
1550 optimize
for fast installation
[default
=yes]
1551 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1552 --enable-ltdl-install install libltdl
1553 --disable-largefile omit support
for large files
1554 --enable-idle-hack use Roland Mainz
's idle hack
1555 --enable-plugins enable plugins
1556 --enable-x86-64 compile in support for x86-64 instructions
1557 --enable-smp compile in support for SMP configurations
1558 --enable-cpu-level select cpu level (3,4,5,6)
1559 --enable-apic enable APIC support
1560 --enable-compressed-hd allows compressed (zlib) hard disk image (not implemented yet)
1561 --enable-ne2000 enable limited ne2000 support
1562 --enable-acpi enable ACPI support
1563 --enable-pci enable limited i440FX PCI support
1564 --enable-pcidev enable PCI host device mapping support (linux host only)
1565 --enable-usb enable limited USB support
1566 --enable-pnic enable PCI pseudo NIC support
1567 --enable-large-pages support for large pages (2M/4M pages)
1568 --enable-pae support Physical Address Extensions
1569 --enable-global-pages support for global pages in PDE/PTE
1570 --enable-mtrr support for MTRRs
1571 --enable-guest2host-tlb support guest to host addr TLB for speed
1572 --enable-repeat-speedups support repeated IO and mem copy speedups
1573 --enable-trace-cache support instruction trace cache
1574 --enable-icache support instruction cache
1575 --enable-fast-function-calls support for fast function calls (gcc on x86 only)
1576 --enable-host-specific-asms support for host specific inline assembly
1577 --enable-ignore-bad-msr ignore bad MSR references
1578 --enable-port-e9-hack writes to port e9 go to console
1579 --enable-show-ips show IPS in Bochs log file
1580 --enable-cpp use .cpp as C++ suffix
1581 --enable-debugger compile in support for Bochs internal debugger
1582 --enable-disasm compile in support for disassembler
1583 --enable-all-optimizations compile in all possible optimizations
1584 --enable-readline use readline library, if available
1585 --enable-instrumentation compile in support for instrumentation
1586 --enable-logging enable logging
1587 --enable-assert-checks enable BX_ASSERT checks
1588 --enable-raw-serial use raw serial port access
1589 --enable-vbe use VESA BIOS extensions
1590 --enable-clgd54xx enable CLGD54XX emulation
1591 --enable-fpu compile in FPU emulation
1592 --enable-vme virtual 8086 mode extensions
1593 --enable-mmx MMX support
1594 --enable-3dnow 3DNow! support (incomplete)
1595 --enable-sse SSE support (--enable-sse=no|1|2|3|4)
1596 --enable-sse-extension support for SSE extensions
1597 --enable-daz denormals-are-zeroes support
1598 --enable-xsave support for XSAVE/XRSTOR extensions
1599 --enable-aes support for AES instructions
1600 --enable-alignment-check alignment check (#AC) support
1601 --enable-misaligned-sse misaligned SSE support
1602 --enable-sep SYSENTER/SYSEXIT support
1603 --enable-popcnt support for POPCNT instruction
1604 --enable-movbe support for MOVBE Intel Atom(R) instruction
1605 --enable-monitor-mwait support for MONITOR/MWAIT instructions (experimental)
1606 --enable-x86-debugger x86 debugger support
1607 --enable-cdrom CDROM support
1608 --enable-sb16=xxx Sound Blaster 16 Support (xxx=dummy|win|linux|freebsd|osx)
1609 --enable-gameport enable standard PC gameport support
1610 --enable-gdb-stub enable gdb stub support
1611 --enable-iodebug enable I/O interface to debugger
1612 --enable-docbook build the Docbook documentation
1613 --enable-xpm enable the check for XPM support
1614 --enable-external-debugger enables external debugger interface (deprecated)
1615 --enable-magic-breakpoints enables magic breakpoints (deprecated)
1616 --enable-save-restore enables save/restore (deprecated)
1619 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1620 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1621 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1622 --with-pic try to use only PIC/non-PIC objects [default=use
1624 --with-tags[=TAGS] include additional configurations [automatic]
1625 --with-x use the X Window System
1626 --with-x11 use X11 GUI
1627 --with-beos use BeOS GUI
1628 --with-win32 use Win32 GUI
1629 --with-macos use Macintosh/CodeWarrior environment
1630 --with-carbon compile for MacOS X with Carbon GUI
1631 --with-nogui no native GUI, just use blank stubs
1632 --with-term textmode terminal environment
1633 --with-rfb use RFB protocol, works with VNC viewer
1634 --with-amigaos use AmigaOS (or MorphOS) GUI
1635 --with-sdl use SDL libraries
1636 --with-svga use SVGALib libraries
1637 --with-wx use wxWidgets libraries
1638 --with-all-libs compile all guis that Bochs supports
1640 Some influential environment variables:
1641 CC C compiler command
1642 CFLAGS C compiler flags
1643 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1644 nonstandard directory <lib dir>
1645 LIBS libraries to pass to the linker, e.g. -l<library>
1646 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1647 you have headers in a nonstandard directory <include dir>
1648 CXX C++ compiler command
1649 CXXFLAGS C++ compiler flags
1651 CXXCPP C++ preprocessor
1652 F77 Fortran 77 compiler command
1653 FFLAGS Fortran 77 compiler flags
1654 XMKMF Path to xmkmf, Makefile generator for X Window System
1655 PKG_CONFIG path to pkg-config utility
1656 GTK_CFLAGS C compiler flags for GTK, overriding pkg-config
1657 GTK_LIBS linker flags for GTK, overriding pkg-config
1659 Use these variables to override the choices made by `configure' or to
help
1660 it to
find libraries and programs with nonstandard names
/locations.
1666 if test "$ac_init_help" = "recursive"; then
1667 # If there are subdirs, report their specific --help.
1668 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1669 test -d "$ac_dir" ||
continue
1673 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1675 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1676 # A ".." for each directory in $ac_dir_suffix.
1677 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1678 case $ac_top_builddir_sub in
1679 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1680 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1683 ac_abs_top_builddir
=$ac_pwd
1684 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1685 # for backward compatibility:
1686 ac_top_builddir
=$ac_top_build_prefix
1689 .
) # We are building in place.
1691 ac_top_srcdir
=$ac_top_builddir_sub
1692 ac_abs_top_srcdir
=$ac_pwd ;;
1693 [\\/]* | ?
:[\\/]* ) # Absolute name.
1694 ac_srcdir
=$srcdir$ac_dir_suffix;
1695 ac_top_srcdir
=$srcdir
1696 ac_abs_top_srcdir
=$srcdir ;;
1698 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1699 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1700 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1702 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1704 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1705 # Check for guested configure.
1706 if test -f "$ac_srcdir/configure.gnu"; then
1708 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1709 elif test -f "$ac_srcdir/configure"; then
1711 $SHELL "$ac_srcdir/configure" --help=recursive
1713 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1715 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1719 test -n "$ac_init_help" && exit $ac_status
1720 if $ac_init_version; then
1723 generated by GNU Autoconf
2.61
1725 Copyright
(C
) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1726 2002, 2003, 2004, 2005, 2006 Free Software Foundation
, Inc.
1727 This configure
script is free software
; the Free Software Foundation
1728 gives unlimited permission to copy
, distribute and modify it.
1732 cat >config.log
<<_ACEOF
1733 This file contains any messages produced by compilers while
1734 running configure, to aid debugging if configure makes a mistake.
1736 It was created by $as_me, which was
1737 generated by GNU Autoconf 2.61. Invocation command line was
1749 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1750 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1751 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1752 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1753 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1755 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1756 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1758 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1759 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1760 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1761 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1762 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1763 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1764 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1768 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1772 test -z "$as_dir" && as_dir
=.
1773 echo "PATH: $as_dir"
1789 # Keep a trace of the command line.
1790 # Strip out --no-create and --no-recursion so they do not pile up.
1791 # Strip out --silent because we don't want to record it for future runs.
1792 # Also quote any args containing shell meta-characters.
1793 # Make two passes to allow for proper duplicate-argument suppression.
1797 ac_must_keep_next
=false
1803 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
1804 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1805 |
-silent |
--silent |
--silen |
--sile |
--sil)
1808 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1811 1) ac_configure_args0
="$ac_configure_args0 '$ac_arg'" ;;
1813 ac_configure_args1
="$ac_configure_args1 '$ac_arg'"
1814 if test $ac_must_keep_next = true
; then
1815 ac_must_keep_next
=false
# Got value, back to normal.
1818 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
1819 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
1820 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
1821 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
1822 case "$ac_configure_args0 " in
1823 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1826 -* ) ac_must_keep_next
=true
;;
1829 ac_configure_args
="$ac_configure_args '$ac_arg'"
1834 $as_unset ac_configure_args0 ||
test "${ac_configure_args0+set}" != set ||
{ ac_configure_args0
=; export ac_configure_args0
; }
1835 $as_unset ac_configure_args1 ||
test "${ac_configure_args1+set}" != set ||
{ ac_configure_args1
=; export ac_configure_args1
; }
1837 # When interrupted or exit'd, cleanup temporary files, and complete
1838 # config.log. We remove comments because anyway the quotes in there
1839 # would cause problems or look ugly.
1840 # WARNING: Use '\'' to represent an apostrophe within the trap.
1841 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1842 trap 'exit_status=$?
1843 # Save into config.log some information that might help in debugging.
1848 ## ---------------- ##
1849 ## Cache variables. ##
1850 ## ---------------- ##
1853 # The following way of writing the cache mishandles newlines in values,
1855 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1856 eval ac_val=\$$ac_var
1860 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1861 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1864 _ | IFS | as_nl) ;; #(
1865 *) $as_unset $ac_var ;;
1870 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1871 *${as_nl}ac_space=\ *)
1873 "s/'\''/'\''\\\\'\'''\''/g;
1874 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1877 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1885 ## ----------------- ##
1886 ## Output variables. ##
1887 ## ----------------- ##
1890 for ac_var in $ac_subst_vars
1892 eval ac_val=\$$ac_var
1894 *\'\''*) ac_val
=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1896 echo "$ac_var='\''$ac_val'\''"
1900 if test -n "$ac_subst_files"; then
1902 ## ------------------- ##
1903 ## File substitutions. ##
1904 ## ------------------- ##
1907 for ac_var
in $ac_subst_files
1909 eval ac_val
=\$
$ac_var
1911 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1913 echo "$ac_var='\''$ac_val'\''"
1918 if test -s confdefs.h; then
1928 test "$ac_signal" != 0 &&
1929 echo "$as_me: caught signal $ac_signal"
1930 echo "$as_me: exit $exit_status"
1932 rm -f core *.core core.conftest.* &&
1933 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1936 for ac_signal
in 1 2 13 15; do
1937 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1941 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1942 rm -f -r conftest
* confdefs.h
1944 # Predefined preprocessor variables.
1946 cat >>confdefs.h
<<_ACEOF
1947 #define PACKAGE_NAME "$PACKAGE_NAME"
1951 cat >>confdefs.h
<<_ACEOF
1952 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1956 cat >>confdefs.h
<<_ACEOF
1957 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1961 cat >>confdefs.h
<<_ACEOF
1962 #define PACKAGE_STRING "$PACKAGE_STRING"
1966 cat >>confdefs.h
<<_ACEOF
1967 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1971 # Let the site file select an alternate cache file if it wants to.
1972 # Prefer explicitly selected file to automatically selected ones.
1973 if test -n "$CONFIG_SITE"; then
1974 set x
"$CONFIG_SITE"
1975 elif test "x$prefix" != xNONE
; then
1976 set x
"$prefix/share/config.site" "$prefix/etc/config.site"
1978 set x
"$ac_default_prefix/share/config.site" \
1979 "$ac_default_prefix/etc/config.site"
1984 if test -r "$ac_site_file"; then
1985 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1986 echo "$as_me: loading site script $ac_site_file" >&6;}
1987 sed 's/^/| /' "$ac_site_file" >&5
1992 if test -r "$cache_file"; then
1993 # Some versions of bash will fail to source /dev/null (special
1994 # files actually), so we avoid doing that.
1995 if test -f "$cache_file"; then
1996 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1997 echo "$as_me: loading cache $cache_file" >&6;}
1999 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2000 *) .
"./$cache_file";;
2004 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2005 echo "$as_me: creating cache $cache_file" >&6;}
2009 # Check that the precious variables saved in the cache have kept the same
2011 ac_cache_corrupted
=false
2012 for ac_var
in $ac_precious_vars; do
2013 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2014 eval ac_new_set
=\
$ac_env_${ac_var}_set
2015 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2016 eval ac_new_val
=\
$ac_env_${ac_var}_value
2017 case $ac_old_set,$ac_new_set in
2019 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2020 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2021 ac_cache_corrupted
=: ;;
2023 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2024 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2025 ac_cache_corrupted
=: ;;
2028 if test "x$ac_old_val" != "x$ac_new_val"; then
2029 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2030 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2031 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
2032 echo "$as_me: former value: $ac_old_val" >&2;}
2033 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
2034 echo "$as_me: current value: $ac_new_val" >&2;}
2035 ac_cache_corrupted
=:
2038 # Pass precious variables to config.status.
2039 if test "$ac_new_set" = set; then
2041 *\'*) ac_arg
=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2042 *) ac_arg
=$ac_var=$ac_new_val ;;
2044 case " $ac_configure_args " in
2045 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2046 *) ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
2050 if $ac_cache_corrupted; then
2051 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2052 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2053 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2054 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2055 { (exit 1); exit 1; }; }
2075 ac_cpp
='$CPP $CPPFLAGS'
2076 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2077 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2078 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2082 ac_config_headers
="$ac_config_headers config.h"
2084 ac_config_headers
="$ac_config_headers ltdlconf.h"
2088 VER_STRING
="2.3.7.cvs"
2089 WIN_VER_STRING
="2, 3, 7, 1"
2090 REL_STRING
="Build from CVS snapshot, after release 2.3.7"
2096 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2097 if test -f "$ac_dir/install-sh"; then
2099 ac_install_sh
="$ac_aux_dir/install-sh -c"
2101 elif test -f "$ac_dir/install.sh"; then
2103 ac_install_sh
="$ac_aux_dir/install.sh -c"
2105 elif test -f "$ac_dir/shtool"; then
2107 ac_install_sh
="$ac_aux_dir/shtool install -c"
2111 if test -z "$ac_aux_dir"; then
2112 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2113 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2114 { (exit 1); exit 1; }; }
2117 # These three variables are undocumented and unsupported,
2118 # and are intended to be withdrawn in a future Autoconf release.
2119 # They can cause serious problems if a builder's source tree is in a directory
2120 # whose full name contains unusual characters.
2121 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2122 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2123 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2126 # Make sure we can run config.sub.
2127 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2128 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2129 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2130 { (exit 1); exit 1; }; }
2132 { echo "$as_me:$LINENO: checking build system type" >&5
2133 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2134 if test "${ac_cv_build+set}" = set; then
2135 echo $ECHO_N "(cached) $ECHO_C" >&6
2137 ac_build_alias
=$build_alias
2138 test "x$ac_build_alias" = x
&&
2139 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2140 test "x$ac_build_alias" = x
&&
2141 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2142 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2143 { (exit 1); exit 1; }; }
2144 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2145 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2146 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2147 { (exit 1); exit 1; }; }
2150 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2151 echo "${ECHO_T}$ac_cv_build" >&6; }
2152 case $ac_cv_build in
2154 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2155 echo "$as_me: error: invalid value of canonical build" >&2;}
2156 { (exit 1); exit 1; }; };;
2159 ac_save_IFS
=$IFS; IFS
='-'
2165 # Remember, the first character of IFS is used to create $*,
2166 # except with old shells:
2169 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2172 { echo "$as_me:$LINENO: checking host system type" >&5
2173 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2174 if test "${ac_cv_host+set}" = set; then
2175 echo $ECHO_N "(cached) $ECHO_C" >&6
2177 if test "x$host_alias" = x
; then
2178 ac_cv_host
=$ac_cv_build
2180 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2181 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2182 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2183 { (exit 1); exit 1; }; }
2187 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2188 echo "${ECHO_T}$ac_cv_host" >&6; }
2191 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2192 echo "$as_me: error: invalid value of canonical host" >&2;}
2193 { (exit 1); exit 1; }; };;
2196 ac_save_IFS
=$IFS; IFS
='-'
2202 # Remember, the first character of IFS is used to create $*,
2203 # except with old shells:
2206 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2209 { echo "$as_me:$LINENO: checking target system type" >&5
2210 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2211 if test "${ac_cv_target+set}" = set; then
2212 echo $ECHO_N "(cached) $ECHO_C" >&6
2214 if test "x$target_alias" = x
; then
2215 ac_cv_target
=$ac_cv_host
2217 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2218 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2219 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2220 { (exit 1); exit 1; }; }
2224 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2225 echo "${ECHO_T}$ac_cv_target" >&6; }
2226 case $ac_cv_target in
2228 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2229 echo "$as_me: error: invalid value of canonical target" >&2;}
2230 { (exit 1); exit 1; }; };;
2232 target
=$ac_cv_target
2233 ac_save_IFS
=$IFS; IFS
='-'
2239 # Remember, the first character of IFS is used to create $*,
2240 # except with old shells:
2243 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
2246 # The aliases save the names the user supplied, while $host etc.
2247 # will get canonicalized.
2248 test -n "$target_alias" &&
2249 test "$program_prefix$program_suffix$program_transform_name" = \
2251 program_prefix
=${target_alias}-
2253 { echo "$as_me:$LINENO: checking if you are configuring for another platform" >&5
2254 echo $ECHO_N "checking if you are configuring for another platform... $ECHO_C" >&6; }
2255 if test "$cross_compiling" = yes -o "$target_os" = "windows"; then
2256 { echo "$as_me:$LINENO: result: yes" >&5
2257 echo "${ECHO_T}yes" >&6; }
2260 { echo "$as_me:$LINENO: result: no" >&5
2261 echo "${ECHO_T}no" >&6; }
2265 # this case statement defines the compile flags which are needed to
2266 # compile bochs on a platform. Don't put things like optimization settings
2267 # into the configure.in file, since people will want to be able to change
2268 # those settings by defining CFLAGS and CXXFLAGS before running configure.
2270 need_dlcompat_for_plugins
=0
2272 *-pc-windows* |
*-pc-winnt*)
2273 DEFAULT_GUI
=win32
# default to win32 gui
2275 *-pc-cygwin* |
*-pc-mingw32*)
2276 NO_LT
=1 # do not use libtool at all on cygwin
2277 if test "$with_term" = yes; then
2278 # ncurses won't compile with -mno-cygwin or -DWIN32
2279 # also, I can't get it to link without this -DBROKEN_LINKER=1 hack.
2280 # see /usr/include/curses.h for details.
2281 ADD_FLAGS
="-DBROKEN_LINKER=1"
2284 ADD_FLAGS
="-mno-cygwin -DWIN32" # required for cygwin compile+win32 gui
2285 DEFAULT_GUI
=win32
# default to win32 gui
2288 *-macosx* |
*-darwin*)
2289 ADD_FLAGS
="-fpascal-strings -fno-common -Wno-four-char-constants -Wno-unknown-pragmas -Dmacintosh" # required for macosx compile
2290 DEFAULT_GUI
=carbon
# default to carbon
2291 need_dlcompat_for_plugins
=1
2294 DEFAULT_GUI
=macos
# macos defaults to macos
2297 ADD_FLAGS
="-Wno-multichar"
2298 DEFAULT_GUI
=beos
# beos defaults to beos
2300 *-amigaos* |
*-morphos*)
2301 DEFAULT_GUI
=amigaos
# amigaos or morphos defaults to amigaos gui
2304 ADD_FLAGS
="-D_XOPEN_SOURCE_EXTENDED=1 -D__EXTENSIONS__" # required for correct function prototypes
2305 LIBS
="$LIBS -lsocket -lnsl"
2312 if test "${ADD_FLAGS:+set}" = set; then
2313 CFLAGS
="$CFLAGS $ADD_FLAGS"
2314 CXXFLAGS
="$CXXFLAGS $ADD_FLAGS"
2315 CPPFLAGS
="$CPPFLAGS $ADD_FLAGS"
2318 { echo "$as_me:$LINENO: checking for standard CFLAGS on this platform" >&5
2319 echo $ECHO_N "checking for standard CFLAGS on this platform... $ECHO_C" >&6; }
2320 { echo "$as_me:$LINENO: result: $ADD_FLAGS" >&5
2321 echo "${ECHO_T}$ADD_FLAGS" >&6; }
2323 if (test "$with_sdl" != yes) && \
2324 (test "$with_svga" != yes) && \
2325 (test "$with_x11" != yes) && \
2326 (test "$with_beos" != yes) && \
2327 (test "$with_win32" != yes) && \
2328 (test "$with_nogui" != yes) && \
2329 (test "$with_term" != yes) && \
2330 (test "$with_rfb" != yes) && \
2331 (test "$with_amigaos" != yes) && \
2332 (test "$with_carbon" != yes) && \
2333 (test "$with_wx" != yes) && \
2334 (test "$with_macos" != yes); then
2335 # use DEFAULT_GUI. Set the appropriate variable.
2336 # DEFAULT_GUI must be set to one of the names above. Otherwise, no
2337 # valid $with_* variable will be set and who knows what will happen?
2338 eval "with_${DEFAULT_GUI}=yes"
2342 ac_cpp
='$CPP $CPPFLAGS'
2343 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2344 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2345 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2346 if test -n "$ac_tool_prefix"; then
2347 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2348 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2349 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2350 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2351 if test "${ac_cv_prog_CC+set}" = set; then
2352 echo $ECHO_N "(cached) $ECHO_C" >&6
2354 if test -n "$CC"; then
2355 ac_cv_prog_CC
="$CC" # Let the user override the test.
2357 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2361 test -z "$as_dir" && as_dir
=.
2362 for ac_exec_ext
in '' $ac_executable_extensions; do
2363 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2364 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2365 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2375 if test -n "$CC"; then
2376 { echo "$as_me:$LINENO: result: $CC" >&5
2377 echo "${ECHO_T}$CC" >&6; }
2379 { echo "$as_me:$LINENO: result: no" >&5
2380 echo "${ECHO_T}no" >&6; }
2385 if test -z "$ac_cv_prog_CC"; then
2387 # Extract the first word of "gcc", so it can be a program name with args.
2388 set dummy gcc
; ac_word
=$2
2389 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2390 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2391 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2392 echo $ECHO_N "(cached) $ECHO_C" >&6
2394 if test -n "$ac_ct_CC"; then
2395 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2397 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2401 test -z "$as_dir" && as_dir
=.
2402 for ac_exec_ext
in '' $ac_executable_extensions; do
2403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2404 ac_cv_prog_ac_ct_CC
="gcc"
2405 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2414 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2415 if test -n "$ac_ct_CC"; then
2416 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2417 echo "${ECHO_T}$ac_ct_CC" >&6; }
2419 { echo "$as_me:$LINENO: result: no" >&5
2420 echo "${ECHO_T}no" >&6; }
2423 if test "x$ac_ct_CC" = x
; then
2426 case $cross_compiling:$ac_tool_warned in
2428 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2429 whose name does not start with the host triplet. If you think this
2430 configuration is useful to you, please write to autoconf@gnu.org." >&5
2431 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2432 whose name does not start with the host triplet. If you think this
2433 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2434 ac_tool_warned
=yes ;;
2442 if test -z "$CC"; then
2443 if test -n "$ac_tool_prefix"; then
2444 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2445 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2446 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2447 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2448 if test "${ac_cv_prog_CC+set}" = set; then
2449 echo $ECHO_N "(cached) $ECHO_C" >&6
2451 if test -n "$CC"; then
2452 ac_cv_prog_CC
="$CC" # Let the user override the test.
2454 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2458 test -z "$as_dir" && as_dir
=.
2459 for ac_exec_ext
in '' $ac_executable_extensions; do
2460 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2461 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2462 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2472 if test -n "$CC"; then
2473 { echo "$as_me:$LINENO: result: $CC" >&5
2474 echo "${ECHO_T}$CC" >&6; }
2476 { echo "$as_me:$LINENO: result: no" >&5
2477 echo "${ECHO_T}no" >&6; }
2483 if test -z "$CC"; then
2484 # Extract the first word of "cc", so it can be a program name with args.
2485 set dummy cc
; ac_word
=$2
2486 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2487 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2488 if test "${ac_cv_prog_CC+set}" = set; then
2489 echo $ECHO_N "(cached) $ECHO_C" >&6
2491 if test -n "$CC"; then
2492 ac_cv_prog_CC
="$CC" # Let the user override the test.
2495 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2499 test -z "$as_dir" && as_dir
=.
2500 for ac_exec_ext
in '' $ac_executable_extensions; do
2501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2502 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2503 ac_prog_rejected
=yes
2507 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2514 if test $ac_prog_rejected = yes; then
2515 # We found a bogon in the path, so make sure we never use it.
2516 set dummy
$ac_cv_prog_CC
2518 if test $# != 0; then
2519 # We chose a different compiler from the bogus one.
2520 # However, it has the same basename, so the bogon will be chosen
2521 # first if we set CC to just the basename; use the full file name.
2523 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2529 if test -n "$CC"; then
2530 { echo "$as_me:$LINENO: result: $CC" >&5
2531 echo "${ECHO_T}$CC" >&6; }
2533 { echo "$as_me:$LINENO: result: no" >&5
2534 echo "${ECHO_T}no" >&6; }
2539 if test -z "$CC"; then
2540 if test -n "$ac_tool_prefix"; then
2541 for ac_prog
in cl.exe
2543 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2544 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2545 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2546 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2547 if test "${ac_cv_prog_CC+set}" = set; then
2548 echo $ECHO_N "(cached) $ECHO_C" >&6
2550 if test -n "$CC"; then
2551 ac_cv_prog_CC
="$CC" # Let the user override the test.
2553 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2557 test -z "$as_dir" && as_dir
=.
2558 for ac_exec_ext
in '' $ac_executable_extensions; do
2559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2560 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2561 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2571 if test -n "$CC"; then
2572 { echo "$as_me:$LINENO: result: $CC" >&5
2573 echo "${ECHO_T}$CC" >&6; }
2575 { echo "$as_me:$LINENO: result: no" >&5
2576 echo "${ECHO_T}no" >&6; }
2580 test -n "$CC" && break
2583 if test -z "$CC"; then
2585 for ac_prog
in cl.exe
2587 # Extract the first word of "$ac_prog", so it can be a program name with args.
2588 set dummy
$ac_prog; ac_word
=$2
2589 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2590 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2591 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2592 echo $ECHO_N "(cached) $ECHO_C" >&6
2594 if test -n "$ac_ct_CC"; then
2595 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2597 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2601 test -z "$as_dir" && as_dir
=.
2602 for ac_exec_ext
in '' $ac_executable_extensions; do
2603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2604 ac_cv_prog_ac_ct_CC
="$ac_prog"
2605 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2614 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2615 if test -n "$ac_ct_CC"; then
2616 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2617 echo "${ECHO_T}$ac_ct_CC" >&6; }
2619 { echo "$as_me:$LINENO: result: no" >&5
2620 echo "${ECHO_T}no" >&6; }
2624 test -n "$ac_ct_CC" && break
2627 if test "x$ac_ct_CC" = x
; then
2630 case $cross_compiling:$ac_tool_warned in
2632 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2633 whose name does not start with the host triplet. If you think this
2634 configuration is useful to you, please write to autoconf@gnu.org." >&5
2635 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2636 whose name does not start with the host triplet. If you think this
2637 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2638 ac_tool_warned
=yes ;;
2647 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2648 See \`config.log' for more details." >&5
2649 echo "$as_me: error: no acceptable C compiler found in \$PATH
2650 See \`config.log' for more details." >&2;}
2651 { (exit 1); exit 1; }; }
2653 # Provide some information about the compiler.
2654 echo "$as_me:$LINENO: checking for C compiler version" >&5
2655 ac_compiler
=`set X $ac_compile; echo $2`
2656 { (ac_try
="$ac_compiler --version >&5"
2658 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2659 *) ac_try_echo=$ac_try;;
2661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2662 (eval "$ac_compiler --version >&5") 2>&5
2664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2665 (exit $ac_status); }
2666 { (ac_try="$ac_compiler -v >&5"
2668 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2669 *) ac_try_echo
=$ac_try;;
2671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2672 (eval "$ac_compiler -v >&5") 2>&5
2674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2675 (exit $ac_status); }
2676 { (ac_try
="$ac_compiler -V >&5"
2678 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2679 *) ac_try_echo=$ac_try;;
2681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2682 (eval "$ac_compiler -V >&5") 2>&5
2684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2685 (exit $ac_status); }
2687 cat >conftest.$ac_ext <<_ACEOF
2690 cat confdefs.h >>conftest.$ac_ext
2691 cat >>conftest.$ac_ext <<_ACEOF
2692 /* end confdefs.h. */
2702 ac_clean_files_save=$ac_clean_files
2703 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2704 # Try to create an executable without -o first, disregard a.out.
2705 # It will help us diagnose broken compilers, and finding out an intuition
2707 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2708 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2709 ac_link_default=`echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
2711 # List of possible output files, starting from the most likely.
2712 # The algorithm is not robust to junk in `.
', hence go to wildcards (a.*)
2713 # only as a last resort. b.out is created by i960 compilers.
2714 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
'
2716 # The IRIX 6 linker writes into existing files which may not be
2717 # executable, retaining their permissions. Remove them first so a
2718 # subsequent execution test works.
2720 for ac_file in $ac_files
2723 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2724 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2729 if { (ac_try="$ac_link_default"
2731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2732 *) ac_try_echo=$ac_try;;
2734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2735 (eval "$ac_link_default") 2>&5
2737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2738 (exit $ac_status); }; then
2739 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2740 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2741 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2742 # so that the user can short-circuit this test for compilers unknown to
2744 for ac_file
in $ac_files ''
2746 test -f "$ac_file" ||
continue
2748 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
)
2751 # We found the default executable, but exeext='' is most
2755 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
2757 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2759 # We set ac_cv_exeext here because the later test for it is not
2760 # safe: cross compilers may not add the suffix if given an `-o'
2761 # argument, so we may need to know it at that point already.
2762 # Even if this section looks crufty: it has the advantage of
2769 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
2775 { echo "$as_me:$LINENO: result: $ac_file" >&5
2776 echo "${ECHO_T}$ac_file" >&6; }
2777 if test -z "$ac_file"; then
2778 echo "$as_me: failed program was:" >&5
2779 sed 's/^/| /' conftest.
$ac_ext >&5
2781 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2782 See \`config.log' for more details." >&5
2783 echo "$as_me: error: C compiler cannot create executables
2784 See \`config.log' for more details." >&2;}
2785 { (exit 77); exit 77; }; }
2788 ac_exeext
=$ac_cv_exeext
2790 # Check that the compiler produces executables we can run. If not, either
2791 # the compiler is broken, or we cross compile.
2792 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2793 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2794 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2795 # If not cross compiling, check that we can run a simple program.
2796 if test "$cross_compiling" != yes; then
2797 if { ac_try
='./$ac_file'
2798 { (case "(($ac_try" in
2799 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2800 *) ac_try_echo=$ac_try;;
2802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2803 (eval "$ac_try") 2>&5
2805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2806 (exit $ac_status); }; }; then
2809 if test "$cross_compiling" = maybe; then
2812 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2813 If you meant to cross compile, use \`--host'.
2814 See \`config.log' for more details.
" >&5
2815 echo "$as_me: error
: cannot run C compiled programs.
2816 If you meant to cross compile
, use \
`--host'.
2817 See \`config.log
' for more details." >&2;}
2818 { (exit 1); exit 1; }; }
2822 { echo "$as_me:$LINENO: result: yes" >&5
2823 echo "${ECHO_T}yes" >&6; }
2825 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2826 ac_clean_files=$ac_clean_files_save
2827 # Check that the compiler produces executables we can run. If not, either
2828 # the compiler is broken, or we cross compile.
2829 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2830 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2831 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2832 echo "${ECHO_T}$cross_compiling" >&6; }
2834 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2835 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2836 if { (ac_try="$ac_link"
2838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2839 *) ac_try_echo=$ac_try;;
2841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2842 (eval "$ac_link") 2>&5
2844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2845 (exit $ac_status); }; then
2846 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
2847 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
2848 # work properly (i.e., refer to `conftest.exe
'), while it won't with
2850 for ac_file
in conftest.exe conftest conftest.
*; do
2851 test -f "$ac_file" ||
continue
2853 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
) ;;
2854 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2860 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2861 See \`config.log' for more details." >&5
2862 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2863 See \`config.log' for more details." >&2;}
2864 { (exit 1); exit 1; }; }
2867 rm -f conftest
$ac_cv_exeext
2868 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2869 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2871 rm -f conftest.
$ac_ext
2872 EXEEXT
=$ac_cv_exeext
2874 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2875 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2876 if test "${ac_cv_objext+set}" = set; then
2877 echo $ECHO_N "(cached) $ECHO_C" >&6
2879 cat >conftest.
$ac_ext <<_ACEOF
2882 cat confdefs.h
>>conftest.
$ac_ext
2883 cat >>conftest.
$ac_ext <<_ACEOF
2884 /* end confdefs.h. */
2894 rm -f conftest.o conftest.obj
2895 if { (ac_try
="$ac_compile"
2897 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2898 *) ac_try_echo=$ac_try;;
2900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2901 (eval "$ac_compile") 2>&5
2903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2904 (exit $ac_status); }; then
2905 for ac_file in conftest.o conftest.obj conftest.*; do
2906 test -f "$ac_file" || continue;
2908 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2909 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2914 echo "$as_me: failed program was:" >&5
2915 sed 's/^/| /' conftest.$ac_ext >&5
2917 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2918 See \`config.log
' for more details." >&5
2919 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2920 See \`config.log' for more details.
" >&2;}
2921 { (exit 1); exit 1; }; }
2924 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2926 { echo "$as_me:$LINENO: result
: $ac_cv_objext" >&5
2927 echo "${ECHO_T}$ac_cv_objext" >&6; }
2928 OBJEXT=$ac_cv_objext
2930 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
2931 echo $ECHO_N "checking whether we are using the GNU C compiler...
$ECHO_C" >&6; }
2932 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2933 echo $ECHO_N "(cached
) $ECHO_C" >&6
2935 cat >conftest.$ac_ext <<_ACEOF
2938 cat confdefs.h >>conftest.$ac_ext
2939 cat >>conftest.$ac_ext <<_ACEOF
2940 /* end confdefs.h. */
2953 rm -f conftest.$ac_objext
2954 if { (ac_try="$ac_compile"
2956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2957 *) ac_try_echo=$ac_try;;
2959 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2960 (eval "$ac_compile") 2>conftest.er1
2962 grep -v '^ *+' conftest.er1 >conftest.err
2964 cat conftest.err >&5
2965 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2966 (exit $ac_status); } && {
2967 test -z "$ac_c_werror_flag" ||
2968 test ! -s conftest.err
2969 } && test -s conftest.$ac_objext; then
2972 echo "$as_me: failed program was
:" >&5
2973 sed 's/^/| /' conftest.$ac_ext >&5
2978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2979 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2982 { echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
2983 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2984 GCC=`test $ac_compiler_gnu = yes && echo yes`
2985 ac_test_CFLAGS=${CFLAGS+set}
2986 ac_save_CFLAGS=$CFLAGS
2987 { echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
2988 echo $ECHO_N "checking whether
$CC accepts
-g...
$ECHO_C" >&6; }
2989 if test "${ac_cv_prog_cc_g+set}" = set; then
2990 echo $ECHO_N "(cached
) $ECHO_C" >&6
2992 ac_save_c_werror_flag=$ac_c_werror_flag
2993 ac_c_werror_flag=yes
2996 cat >conftest.$ac_ext <<_ACEOF
2999 cat confdefs.h >>conftest.$ac_ext
3000 cat >>conftest.$ac_ext <<_ACEOF
3001 /* end confdefs.h. */
3011 rm -f conftest.$ac_objext
3012 if { (ac_try="$ac_compile"
3014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3015 *) ac_try_echo=$ac_try;;
3017 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3018 (eval "$ac_compile") 2>conftest.er1
3020 grep -v '^ *+' conftest.er1 >conftest.err
3022 cat conftest.err >&5
3023 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3024 (exit $ac_status); } && {
3025 test -z "$ac_c_werror_flag" ||
3026 test ! -s conftest.err
3027 } && test -s conftest.$ac_objext; then
3030 echo "$as_me: failed program was
:" >&5
3031 sed 's/^/| /' conftest.$ac_ext >&5
3034 cat >conftest.$ac_ext <<_ACEOF
3037 cat confdefs.h >>conftest.$ac_ext
3038 cat >>conftest.$ac_ext <<_ACEOF
3039 /* end confdefs.h. */
3049 rm -f conftest.$ac_objext
3050 if { (ac_try="$ac_compile"
3052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3053 *) ac_try_echo=$ac_try;;
3055 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3056 (eval "$ac_compile") 2>conftest.er1
3058 grep -v '^ *+' conftest.er1 >conftest.err
3060 cat conftest.err >&5
3061 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3062 (exit $ac_status); } && {
3063 test -z "$ac_c_werror_flag" ||
3064 test ! -s conftest.err
3065 } && test -s conftest.$ac_objext; then
3068 echo "$as_me: failed program was
:" >&5
3069 sed 's/^/| /' conftest.$ac_ext >&5
3071 ac_c_werror_flag=$ac_save_c_werror_flag
3073 cat >conftest.$ac_ext <<_ACEOF
3076 cat confdefs.h >>conftest.$ac_ext
3077 cat >>conftest.$ac_ext <<_ACEOF
3078 /* end confdefs.h. */
3088 rm -f conftest.$ac_objext
3089 if { (ac_try="$ac_compile"
3091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3092 *) ac_try_echo=$ac_try;;
3094 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3095 (eval "$ac_compile") 2>conftest.er1
3097 grep -v '^ *+' conftest.er1 >conftest.err
3099 cat conftest.err >&5
3100 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3101 (exit $ac_status); } && {
3102 test -z "$ac_c_werror_flag" ||
3103 test ! -s conftest.err
3104 } && test -s conftest.$ac_objext; then
3107 echo "$as_me: failed program was
:" >&5
3108 sed 's/^/| /' conftest.$ac_ext >&5
3113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3120 ac_c_werror_flag=$ac_save_c_werror_flag
3122 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
3123 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3124 if test "$ac_test_CFLAGS" = set; then
3125 CFLAGS=$ac_save_CFLAGS
3126 elif test $ac_cv_prog_cc_g = yes; then
3127 if test "$GCC" = yes; then
3133 if test "$GCC" = yes; then
3139 { echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
3140 echo $ECHO_N "checking
for $CC option to accept ISO C89...
$ECHO_C" >&6; }
3141 if test "${ac_cv_prog_cc_c89+set}" = set; then
3142 echo $ECHO_N "(cached
) $ECHO_C" >&6
3144 ac_cv_prog_cc_c89=no
3146 cat >conftest.$ac_ext <<_ACEOF
3149 cat confdefs.h >>conftest.$ac_ext
3150 cat >>conftest.$ac_ext <<_ACEOF
3151 /* end confdefs.h. */
3154 #include <sys/types.h>
3155 #include <sys/stat.h>
3156 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3157 struct buf { int x; };
3158 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3159 static char *e (p, i)
3165 static char *f (char * (*g) (char **, int), char **p, ...)
3170 s = g (p, va_arg (v,int));
3175 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3176 function prototypes and stuff, but not '\xHH' hex character constants.
3177 These don't provoke an error unfortunately, instead are silently treated
3178 as 'x'. The following induces an error, until -std is added to get
3179 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3180 array size at least. It's necessary to write '\x00'==0 to get something
3181 that's true only with -std. */
3182 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3184 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3185 inside strings and character constants. */
3187 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3189 int test (int i, double x);
3190 struct s1 {int (*f) (int a);};
3191 struct s2 {int (*f) (double a);};
3192 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3198 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3203 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3204 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3206 CC="$ac_save_CC $ac_arg"
3207 rm -f conftest.$ac_objext
3208 if { (ac_try="$ac_compile"
3210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3211 *) ac_try_echo=$ac_try;;
3213 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3214 (eval "$ac_compile") 2>conftest.er1
3216 grep -v '^ *+' conftest.er1 >conftest.err
3218 cat conftest.err >&5
3219 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3220 (exit $ac_status); } && {
3221 test -z "$ac_c_werror_flag" ||
3222 test ! -s conftest.err
3223 } && test -s conftest.$ac_objext; then
3224 ac_cv_prog_cc_c89=$ac_arg
3226 echo "$as_me: failed program was
:" >&5
3227 sed 's/^/| /' conftest.$ac_ext >&5
3232 rm -f core conftest.err conftest.$ac_objext
3233 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
3235 rm -f conftest.$ac_ext
3240 case "x
$ac_cv_prog_cc_c89" in
3242 { echo "$as_me:$LINENO: result
: none needed
" >&5
3243 echo "${ECHO_T}none needed
" >&6; } ;;
3245 { echo "$as_me:$LINENO: result
: unsupported
" >&5
3246 echo "${ECHO_T}unsupported
" >&6; } ;;
3248 CC="$CC $ac_cv_prog_cc_c89"
3249 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
3250 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3255 ac_cpp='$CPP $CPPFLAGS'
3256 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3257 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3258 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3261 ac_cpp='$CXXCPP $CPPFLAGS'
3262 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3263 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3264 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3265 if test -z "$CXX"; then
3266 if test -n "$CCC"; then
3269 if test -n "$ac_tool_prefix"; then
3270 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3272 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3273 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3274 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
3275 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
3276 if test "${ac_cv_prog_CXX+set}" = set; then
3277 echo $ECHO_N "(cached
) $ECHO_C" >&6
3279 if test -n "$CXX"; then
3280 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3286 test -z "$as_dir" && as_dir=.
3287 for ac_exec_ext in '' $ac_executable_extensions; do
3288 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3289 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3290 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
3300 if test -n "$CXX"; then
3301 { echo "$as_me:$LINENO: result
: $CXX" >&5
3302 echo "${ECHO_T}$CXX" >&6; }
3304 { echo "$as_me:$LINENO: result
: no
" >&5
3305 echo "${ECHO_T}no
" >&6; }
3309 test -n "$CXX" && break
3312 if test -z "$CXX"; then
3314 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3316 # Extract the first word of "$ac_prog", so it can be a program name with args.
3317 set dummy $ac_prog; ac_word=$2
3318 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
3319 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
3320 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3321 echo $ECHO_N "(cached
) $ECHO_C" >&6
3323 if test -n "$ac_ct_CXX"; then
3324 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3330 test -z "$as_dir" && as_dir=.
3331 for ac_exec_ext in '' $ac_executable_extensions; do
3332 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3333 ac_cv_prog_ac_ct_CXX="$ac_prog"
3334 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
3343 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3344 if test -n "$ac_ct_CXX"; then
3345 { echo "$as_me:$LINENO: result
: $ac_ct_CXX" >&5
3346 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3348 { echo "$as_me:$LINENO: result
: no
" >&5
3349 echo "${ECHO_T}no
" >&6; }
3353 test -n "$ac_ct_CXX" && break
3356 if test "x
$ac_ct_CXX" = x; then
3359 case $cross_compiling:$ac_tool_warned in
3361 { echo "$as_me:$LINENO: WARNING
: In the future
, Autoconf will not detect cross-tools
3362 whose name does not start with the
host triplet. If you think this
3363 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&5
3364 echo "$as_me: WARNING
: In the future
, Autoconf will not detect cross-tools
3365 whose name does not start with the
host triplet. If you think this
3366 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&2;}
3367 ac_tool_warned=yes ;;
3375 # Provide some information about the compiler.
3376 echo "$as_me:$LINENO: checking
for C
++ compiler version
" >&5
3377 ac_compiler=`set X $ac_compile; echo $2`
3378 { (ac_try="$ac_compiler --version >&5"
3380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3381 *) ac_try_echo=$ac_try;;
3383 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3384 (eval "$ac_compiler --version >&5") 2>&5
3386 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3387 (exit $ac_status); }
3388 { (ac_try="$ac_compiler -v >&5"
3390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3391 *) ac_try_echo=$ac_try;;
3393 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3394 (eval "$ac_compiler -v >&5") 2>&5
3396 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3397 (exit $ac_status); }
3398 { (ac_try="$ac_compiler -V >&5"
3400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3401 *) ac_try_echo=$ac_try;;
3403 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3404 (eval "$ac_compiler -V >&5") 2>&5
3406 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3407 (exit $ac_status); }
3409 { echo "$as_me:$LINENO: checking whether we are using the GNU C
++ compiler
" >&5
3410 echo $ECHO_N "checking whether we are using the GNU C
++ compiler...
$ECHO_C" >&6; }
3411 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3412 echo $ECHO_N "(cached
) $ECHO_C" >&6
3414 cat >conftest.$ac_ext <<_ACEOF
3417 cat confdefs.h >>conftest.$ac_ext
3418 cat >>conftest.$ac_ext <<_ACEOF
3419 /* end confdefs.h. */
3432 rm -f conftest.$ac_objext
3433 if { (ac_try="$ac_compile"
3435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3436 *) ac_try_echo=$ac_try;;
3438 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3439 (eval "$ac_compile") 2>conftest.er1
3441 grep -v '^ *+' conftest.er1 >conftest.err
3443 cat conftest.err >&5
3444 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3445 (exit $ac_status); } && {
3446 test -z "$ac_cxx_werror_flag" ||
3447 test ! -s conftest.err
3448 } && test -s conftest.$ac_objext; then
3451 echo "$as_me: failed program was
:" >&5
3452 sed 's/^/| /' conftest.$ac_ext >&5
3457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3458 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3461 { echo "$as_me:$LINENO: result
: $ac_cv_cxx_compiler_gnu" >&5
3462 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3463 GXX=`test $ac_compiler_gnu = yes && echo yes`
3464 ac_test_CXXFLAGS=${CXXFLAGS+set}
3465 ac_save_CXXFLAGS=$CXXFLAGS
3466 { echo "$as_me:$LINENO: checking whether
$CXX accepts
-g" >&5
3467 echo $ECHO_N "checking whether
$CXX accepts
-g...
$ECHO_C" >&6; }
3468 if test "${ac_cv_prog_cxx_g+set}" = set; then
3469 echo $ECHO_N "(cached
) $ECHO_C" >&6
3471 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3472 ac_cxx_werror_flag=yes
3475 cat >conftest.$ac_ext <<_ACEOF
3478 cat confdefs.h >>conftest.$ac_ext
3479 cat >>conftest.$ac_ext <<_ACEOF
3480 /* end confdefs.h. */
3490 rm -f conftest.$ac_objext
3491 if { (ac_try="$ac_compile"
3493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3494 *) ac_try_echo=$ac_try;;
3496 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3497 (eval "$ac_compile") 2>conftest.er1
3499 grep -v '^ *+' conftest.er1 >conftest.err
3501 cat conftest.err >&5
3502 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3503 (exit $ac_status); } && {
3504 test -z "$ac_cxx_werror_flag" ||
3505 test ! -s conftest.err
3506 } && test -s conftest.$ac_objext; then
3507 ac_cv_prog_cxx_g=yes
3509 echo "$as_me: failed program was
:" >&5
3510 sed 's/^/| /' conftest.$ac_ext >&5
3513 cat >conftest.$ac_ext <<_ACEOF
3516 cat confdefs.h >>conftest.$ac_ext
3517 cat >>conftest.$ac_ext <<_ACEOF
3518 /* end confdefs.h. */
3528 rm -f conftest.$ac_objext
3529 if { (ac_try="$ac_compile"
3531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3532 *) ac_try_echo=$ac_try;;
3534 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3535 (eval "$ac_compile") 2>conftest.er1
3537 grep -v '^ *+' conftest.er1 >conftest.err
3539 cat conftest.err >&5
3540 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3541 (exit $ac_status); } && {
3542 test -z "$ac_cxx_werror_flag" ||
3543 test ! -s conftest.err
3544 } && test -s conftest.$ac_objext; then
3547 echo "$as_me: failed program was
:" >&5
3548 sed 's/^/| /' conftest.$ac_ext >&5
3550 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3552 cat >conftest.$ac_ext <<_ACEOF
3555 cat confdefs.h >>conftest.$ac_ext
3556 cat >>conftest.$ac_ext <<_ACEOF
3557 /* end confdefs.h. */
3567 rm -f conftest.$ac_objext
3568 if { (ac_try="$ac_compile"
3570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3571 *) ac_try_echo=$ac_try;;
3573 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3574 (eval "$ac_compile") 2>conftest.er1
3576 grep -v '^ *+' conftest.er1 >conftest.err
3578 cat conftest.err >&5
3579 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3580 (exit $ac_status); } && {
3581 test -z "$ac_cxx_werror_flag" ||
3582 test ! -s conftest.err
3583 } && test -s conftest.$ac_objext; then
3584 ac_cv_prog_cxx_g=yes
3586 echo "$as_me: failed program was
:" >&5
3587 sed 's/^/| /' conftest.$ac_ext >&5
3592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3599 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3601 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cxx_g" >&5
3602 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3603 if test "$ac_test_CXXFLAGS" = set; then
3604 CXXFLAGS=$ac_save_CXXFLAGS
3605 elif test $ac_cv_prog_cxx_g = yes; then
3606 if test "$GXX" = yes; then
3612 if test "$GXX" = yes; then
3619 ac_cpp='$CPP $CPPFLAGS'
3620 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3621 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3622 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3624 { echo "$as_me:$LINENO: checking whether
${MAKE-make} sets \$
(MAKE
)" >&5
3625 echo $ECHO_N "checking whether
${MAKE-make} sets \$
(MAKE
)...
$ECHO_C" >&6; }
3626 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3627 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3628 echo $ECHO_N "(cached
) $ECHO_C" >&6
3630 cat >conftest.make <<\_ACEOF
3633 @echo '@@@%%%=$(MAKE)=@@@%%%'
3635 # GNU make sometimes prints "make[1]: Entering...
", which would confuse us.
3636 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3638 eval ac_cv_prog_make_${ac_make}_set=yes;;
3640 eval ac_cv_prog_make_${ac_make}_set=no;;
3644 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3645 { echo "$as_me:$LINENO: result
: yes" >&5
3646 echo "${ECHO_T}yes" >&6; }
3649 { echo "$as_me:$LINENO: result
: no
" >&5
3650 echo "${ECHO_T}no
" >&6; }
3651 SET_MAKE="MAKE
=${MAKE-make}"
3655 # Check whether --enable-static was given.
3656 if test "${enable_static+set}" = set; then
3657 enableval=$enable_static; p=${PACKAGE-default}
3659 yes) enable_static=yes ;;
3660 no) enable_static=no ;;
3663 # Look at the argument we got. We use all the common list separators.
3664 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3665 for pkg in $enableval; do
3667 if test "X
$pkg" = "X
$p"; then
3682 # Check whether --enable-shared was given.
3683 if test "${enable_shared+set}" = set; then
3684 enableval=$enable_shared; p=${PACKAGE-default}
3686 yes) enable_shared=yes ;;
3687 no) enable_shared=no ;;
3690 # Look at the argument we got. We use all the common list separators.
3691 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3692 for pkg in $enableval; do
3694 if test "X
$pkg" = "X
$p"; then
3706 # Check whether --enable-fast-install was given.
3707 if test "${enable_fast_install+set}" = set; then
3708 enableval=$enable_fast_install; p=${PACKAGE-default}
3710 yes) enable_fast_install=yes ;;
3711 no) enable_fast_install=no ;;
3713 enable_fast_install=no
3714 # Look at the argument we got. We use all the common list separators.
3715 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3716 for pkg in $enableval; do
3718 if test "X
$pkg" = "X
$p"; then
3719 enable_fast_install=yes
3726 enable_fast_install=yes
3730 { echo "$as_me:$LINENO: checking
for a
sed that does not truncate output
" >&5
3731 echo $ECHO_N "checking
for a
sed that does not truncate output...
$ECHO_C" >&6; }
3732 if test "${lt_cv_path_SED+set}" = set; then
3733 echo $ECHO_N "(cached
) $ECHO_C" >&6
3735 # Loop through the user's path and test for sed and gsed.
3736 # Then use that list of sed's as ones to test for truncation.
3737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3741 test -z "$as_dir" && as_dir=.
3742 for lt_ac_prog in sed gsed; do
3743 for ac_exec_ext in '' $ac_executable_extensions; do
3744 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3745 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3752 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3753 # along with /bin/sed that truncates output.
3754 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3755 test ! -f $lt_ac_sed && break
3756 cat /dev/null > conftest.in
3758 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3759 # Check for GNU sed and select it if it is found.
3760 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3761 lt_cv_path_SED=$lt_ac_sed
3765 cat conftest.in conftest.in >conftest.tmp
3766 mv conftest.tmp conftest.in
3767 cp conftest.in conftest.nl
3769 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3770 cmp -s conftest.out conftest.nl || break
3771 # 10000 chars as input seems more than enough
3772 test $lt_ac_count -gt 10 && break
3773 lt_ac_count=`expr $lt_ac_count + 1`
3774 if test $lt_ac_count -gt $lt_ac_max; then
3775 lt_ac_max=$lt_ac_count
3776 lt_cv_path_SED=$lt_ac_sed
3784 { echo "$as_me:$LINENO: result
: $SED" >&5
3785 echo "${ECHO_T}$SED" >&6; }
3787 { echo "$as_me:$LINENO: checking
for grep that handles long lines and
-e" >&5
3788 echo $ECHO_N "checking
for grep that handles long lines and
-e...
$ECHO_C" >&6; }
3789 if test "${ac_cv_path_GREP+set}" = set; then
3790 echo $ECHO_N "(cached
) $ECHO_C" >&6
3792 # Extract the first word of "grep ggrep
" to use in msg output
3793 if test -z "$GREP"; then
3794 set dummy grep ggrep; ac_prog_name=$2
3795 if test "${ac_cv_path_GREP+set}" = set; then
3796 echo $ECHO_N "(cached
) $ECHO_C" >&6
3798 ac_path_GREP_found=false
3799 # Loop through the user's path and test for each of PROGNAME-LIST
3800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3801 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3804 test -z "$as_dir" && as_dir=.
3805 for ac_prog in grep ggrep; do
3806 for ac_exec_ext in '' $ac_executable_extensions; do
3807 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3808 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3809 # Check for GNU ac_path_GREP and select it if it is found.
3810 # Check for GNU $ac_path_GREP
3811 case `"$ac_path_GREP" --version 2>&1` in
3813 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3816 echo $ECHO_N "0123456789$ECHO_C" >"conftest.
in"
3819 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
3820 mv "conftest.tmp
" "conftest.
in"
3821 cp "conftest.
in" "conftest.
nl"
3822 echo 'GREP' >> "conftest.
nl"
3823 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
3824 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
3825 ac_count=`expr $ac_count + 1`
3826 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3827 # Best one so far, save it but keep looking for a better one
3828 ac_cv_path_GREP="$ac_path_GREP"
3829 ac_path_GREP_max=$ac_count
3831 # 10*(2^10) chars as input seems more than enough
3832 test $ac_count -gt 10 && break
3834 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3838 $ac_path_GREP_found && break 3
3848 GREP="$ac_cv_path_GREP"
3849 if test -z "$GREP"; then
3850 { { echo "$as_me:$LINENO: error
: no acceptable
$ac_prog_name could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" >&5
3851 echo "$as_me: error
: no acceptable
$ac_prog_name could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" >&2;}
3852 { (exit 1); exit 1; }; }
3856 ac_cv_path_GREP=$GREP
3861 { echo "$as_me:$LINENO: result
: $ac_cv_path_GREP" >&5
3862 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3863 GREP="$ac_cv_path_GREP"
3866 { echo "$as_me:$LINENO: checking
for egrep" >&5
3867 echo $ECHO_N "checking
for egrep...
$ECHO_C" >&6; }
3868 if test "${ac_cv_path_EGREP+set}" = set; then
3869 echo $ECHO_N "(cached
) $ECHO_C" >&6
3871 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3872 then ac_cv_path_EGREP="$GREP -E"
3874 # Extract the first word of "egrep" to use in msg output
3875 if test -z "$EGREP"; then
3876 set dummy egrep; ac_prog_name=$2
3877 if test "${ac_cv_path_EGREP+set}" = set; then
3878 echo $ECHO_N "(cached
) $ECHO_C" >&6
3880 ac_path_EGREP_found=false
3881 # Loop through the user's path and test for each of PROGNAME-LIST
3882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3883 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3886 test -z "$as_dir" && as_dir=.
3887 for ac_prog in egrep; do
3888 for ac_exec_ext in '' $ac_executable_extensions; do
3889 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3890 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3891 # Check for GNU ac_path_EGREP and select it if it is found.
3892 # Check for GNU $ac_path_EGREP
3893 case `"$ac_path_EGREP" --version 2>&1` in
3895 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3898 echo $ECHO_N "0123456789$ECHO_C" >"conftest.
in"
3901 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
3902 mv "conftest.tmp
" "conftest.
in"
3903 cp "conftest.
in" "conftest.
nl"
3904 echo 'EGREP' >> "conftest.
nl"
3905 "$ac_path_EGREP" 'EGREP$' < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
3906 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
3907 ac_count=`expr $ac_count + 1`
3908 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3909 # Best one so far, save it but keep looking for a better one
3910 ac_cv_path_EGREP="$ac_path_EGREP"
3911 ac_path_EGREP_max=$ac_count
3913 # 10*(2^10) chars as input seems more than enough
3914 test $ac_count -gt 10 && break
3916 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3920 $ac_path_EGREP_found && break 3
3930 EGREP="$ac_cv_path_EGREP"
3931 if test -z "$EGREP"; then
3932 { { echo "$as_me:$LINENO: error
: no acceptable
$ac_prog_name could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" >&5
3933 echo "$as_me: error
: no acceptable
$ac_prog_name could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" >&2;}
3934 { (exit 1); exit 1; }; }
3938 ac_cv_path_EGREP=$EGREP
3944 { echo "$as_me:$LINENO: result
: $ac_cv_path_EGREP" >&5
3945 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3946 EGREP="$ac_cv_path_EGREP"
3950 # Check whether --with-gnu-ld was given.
3951 if test "${with_gnu_ld+set}" = set; then
3952 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3958 if test "$GCC" = yes; then
3959 # Check if gcc -print-prog-name=ld gives a path.
3960 { echo "$as_me:$LINENO: checking
for ld used by
$CC" >&5
3961 echo $ECHO_N "checking
for ld used by
$CC...
$ECHO_C" >&6; }
3964 # gcc leaves a trailing carriage return which upsets mingw
3965 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3967 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3970 # Accept absolute paths.
3972 re_direlt='/[^/][^/]*/\.\./'
3973 # Canonicalize the pathname of ld
3974 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3975 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3976 ac_prog=`echo $ac_prog| $SED "s
%$re_direlt%/%"`
3978 test -z "$LD" && LD="$ac_prog"
3981 # If it fails, then pretend we aren't using GCC.
3985 # If it is relative, then search for the first ld in PATH.
3989 elif test "$with_gnu_ld" = yes; then
3990 { echo "$as_me:$LINENO: checking
for GNU ld
" >&5
3991 echo $ECHO_N "checking
for GNU ld...
$ECHO_C" >&6; }
3993 { echo "$as_me:$LINENO: checking
for non-GNU ld
" >&5
3994 echo $ECHO_N "checking
for non-GNU ld...
$ECHO_C" >&6; }
3996 if test "${lt_cv_path_LD+set}" = set; then
3997 echo $ECHO_N "(cached
) $ECHO_C" >&6
3999 if test -z "$LD"; then
4000 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4001 for ac_dir in $PATH; do
4003 test -z "$ac_dir" && ac_dir=.
4004 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4005 lt_cv_path_LD="$ac_dir/$ac_prog"
4006 # Check to see if the program is GNU ld. I'd rather use --version,
4007 # but apparently some GNU ld's only accept -v.
4008 # Break only if it was the GNU/non-GNU ld that we prefer.
4009 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4010 *GNU* | *'with BFD'*)
4011 test "$with_gnu_ld" != no && break
4014 test "$with_gnu_ld" != yes && break
4021 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4026 if test -n "$LD"; then
4027 { echo "$as_me:$LINENO: result
: $LD" >&5
4028 echo "${ECHO_T}$LD" >&6; }
4030 { echo "$as_me:$LINENO: result
: no
" >&5
4031 echo "${ECHO_T}no
" >&6; }
4033 test -z "$LD" && { { echo "$as_me:$LINENO: error
: no acceptable ld found
in \
$PATH" >&5
4034 echo "$as_me: error
: no acceptable ld found
in \
$PATH" >&2;}
4035 { (exit 1); exit 1; }; }
4036 { echo "$as_me:$LINENO: checking
if the linker
($LD) is GNU ld
" >&5
4037 echo $ECHO_N "checking
if the linker
($LD) is GNU ld...
$ECHO_C" >&6; }
4038 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4039 echo $ECHO_N "(cached
) $ECHO_C" >&6
4041 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4042 case `$LD -v 2>&1 </dev/null` in
4043 *GNU* | *'with BFD'*)
4044 lt_cv_prog_gnu_ld=yes
4047 lt_cv_prog_gnu_ld=no
4051 { echo "$as_me:$LINENO: result
: $lt_cv_prog_gnu_ld" >&5
4052 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4053 with_gnu_ld=$lt_cv_prog_gnu_ld
4056 { echo "$as_me:$LINENO: checking
for $LD option to reload object files
" >&5
4057 echo $ECHO_N "checking
for $LD option to reload object files...
$ECHO_C" >&6; }
4058 if test "${lt_cv_ld_reload_flag+set}" = set; then
4059 echo $ECHO_N "(cached
) $ECHO_C" >&6
4061 lt_cv_ld_reload_flag='-r'
4063 { echo "$as_me:$LINENO: result
: $lt_cv_ld_reload_flag" >&5
4064 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4065 reload_flag=$lt_cv_ld_reload_flag
4066 case $reload_flag in
4068 *) reload_flag=" $reload_flag" ;;
4070 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4072 { echo "$as_me:$LINENO: checking
for BSD-compatible nm
" >&5
4073 echo $ECHO_N "checking
for BSD-compatible nm...
$ECHO_C" >&6; }
4074 if test "${lt_cv_path_NM+set}" = set; then
4075 echo $ECHO_N "(cached
) $ECHO_C" >&6
4077 if test -n "$NM"; then
4078 # Let the user override the test.
4081 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4082 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4084 test -z "$ac_dir" && ac_dir=.
4085 tmp_nm="$ac_dir/${ac_tool_prefix}nm
"
4086 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4087 # Check to see if the nm accepts a BSD-compat flag.
4088 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4089 # nm: unknown option "B
" ignored
4090 # Tru64's nm complains that /dev/null is an invalid object file
4091 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4092 */dev/null* | *'Invalid file or object type'*)
4093 lt_cv_path_NM="$tmp_nm -B"
4097 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4099 lt_cv_path_NM="$tmp_nm -p"
4103 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4104 continue # so that we can try to find one that supports BSD flags
4111 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4114 { echo "$as_me:$LINENO: result
: $lt_cv_path_NM" >&5
4115 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4118 { echo "$as_me:$LINENO: checking whether
ln -s works
" >&5
4119 echo $ECHO_N "checking whether
ln -s works...
$ECHO_C" >&6; }
4121 if test "$LN_S" = "ln -s"; then
4122 { echo "$as_me:$LINENO: result
: yes" >&5
4123 echo "${ECHO_T}yes" >&6; }
4125 { echo "$as_me:$LINENO: result
: no
, using
$LN_S" >&5
4126 echo "${ECHO_T}no
, using
$LN_S" >&6; }
4129 { echo "$as_me:$LINENO: checking how to recognise dependent libraries
" >&5
4130 echo $ECHO_N "checking how to recognise dependent libraries...
$ECHO_C" >&6; }
4131 if test "${lt_cv_deplibs_check_method+set}" = set; then
4132 echo $ECHO_N "(cached
) $ECHO_C" >&6
4134 lt_cv_file_magic_cmd='$MAGIC_CMD'
4135 lt_cv_file_magic_test_file=
4136 lt_cv_deplibs_check_method='unknown'
4137 # Need to set the preceding variable on all platforms that support
4138 # interlibrary dependencies.
4139 # 'none' -- dependencies not supported.
4140 # `unknown' -- same as none, but documents that we really don't know.
4141 # 'pass_all' -- all dependencies passed with no checks.
4142 # 'test_compile' -- check by making test program.
4143 # 'file_magic [[regex]]' -- check by looking for files in library path
4144 # which responds to the $file_magic_cmd with a given extended regex.
4145 # If you have `file' or equivalent on your system and you're not sure
4146 # whether `pass_all' will *always* work, you probably want this one.
4150 lt_cv_deplibs_check_method=pass_all
4154 lt_cv_deplibs_check_method=pass_all
4158 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4159 lt_cv_file_magic_cmd='/usr/bin/file -L'
4160 lt_cv_file_magic_test_file=/shlib/libc.so
4163 cygwin* | mingw* | pw32*)
4164 # win32_libid is a shell function defined in ltmain.sh
4165 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4166 lt_cv_file_magic_cmd='win32_libid'
4169 darwin* | rhapsody*)
4170 # this will be overwritten by pass_all, but leave it in just in case
4171 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4172 lt_cv_file_magic_cmd='/usr/bin/file -L'
4174 rhapsody* | darwin1.[012])
4175 lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
4178 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4181 lt_cv_deplibs_check_method=pass_all
4184 freebsd* | kfreebsd*-gnu)
4185 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4188 # Not sure whether the presence of OpenBSD here was a mistake.
4189 # Let's accept both of them until this is cleared up.
4190 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4191 lt_cv_file_magic_cmd=/usr/bin/file
4192 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4196 lt_cv_deplibs_check_method=pass_all
4201 lt_cv_deplibs_check_method=pass_all
4204 hpux10.20* | hpux11*)
4205 lt_cv_file_magic_cmd=/usr/bin/file
4208 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4209 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4212 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]'
4213 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4216 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4217 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4222 irix5* | irix6* | nonstopux*)
4224 irix5* | nonstopux*)
4225 # this will be overridden with pass_all, but let us keep it just in case
4226 lt_cv_deplibs_check_method="file_magic ELF
32-bit MSB dynamic lib MIPS
- version
1"
4230 *-32|*"-32 ") libmagic=32-bit;;
4231 *-n32|*"-n32 ") libmagic=N32;;
4232 *-64|*"-64 ") libmagic=64-bit;;
4233 *) libmagic=never-match;;
4235 # this will be overridden with pass_all, but let us keep it just in case
4236 lt_cv_deplibs_check_method="file_magic ELF
${libmagic} MSB mips-
[1234] dynamic lib MIPS
- version
1"
4239 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4240 lt_cv_deplibs_check_method=pass_all
4243 # This must be Linux ELF.
4246 alpha* | hppa* | i*86 | ia64* | m68* | mips* | powerpc* | sparc* | s390* | sh*)
4247 lt_cv_deplibs_check_method=pass_all ;;
4249 # glibc up to 2.1.1 does not perform some relocations on ARM
4250 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4252 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4256 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4257 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4259 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4264 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4265 lt_cv_file_magic_cmd=/usr/bin/file
4266 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4270 lt_cv_deplibs_check_method=unknown
4274 lt_cv_file_magic_cmd=/usr/bin/file
4275 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4276 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
4277 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4279 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4283 osf3* | osf4* | osf5*)
4284 # this will be overridden with pass_all, but let us keep it just in case
4285 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4286 lt_cv_file_magic_test_file=/shlib/libc.so
4287 lt_cv_deplibs_check_method=pass_all
4291 lt_cv_deplibs_check_method=pass_all
4295 lt_cv_deplibs_check_method=pass_all
4296 lt_cv_file_magic_test_file=/lib/libc.so
4299 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4300 case $host_vendor in
4302 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]'
4303 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4306 lt_cv_deplibs_check_method=pass_all
4309 lt_cv_file_magic_cmd='/bin/file'
4310 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4313 lt_cv_file_magic_cmd='/bin/file'
4314 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
4315 lt_cv_file_magic_test_file=/lib/libc.so
4318 lt_cv_deplibs_check_method=pass_all
4323 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4324 lt_cv_deplibs_check_method=pass_all
4329 { echo "$as_me:$LINENO: result
: $lt_cv_deplibs_check_method" >&5
4330 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4331 file_magic_cmd=$lt_cv_file_magic_cmd
4332 deplibs_check_method=$lt_cv_deplibs_check_method
4333 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4338 # If no C compiler was specified, use CC.
4341 # Allow CC to be a program name with arguments.
4345 # Check whether --enable-libtool-lock was given.
4346 if test "${enable_libtool_lock+set}" = set; then
4347 enableval=$enable_libtool_lock;
4350 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
4352 # Some flags need to be propagated to the compiler or linker for good
4356 # Find out which ABI we are using.
4357 echo 'int i;' > conftest.$ac_ext
4358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4359 (eval $ac_compile) 2>&5
4361 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4362 (exit $ac_status); }; then
4363 case `/usr/bin/file conftest.$ac_objext` in
4375 # Find out which ABI we are using.
4376 echo '#line 4376 "configure
"' > conftest.$ac_ext
4377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4378 (eval $ac_compile) 2>&5
4380 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4381 (exit $ac_status); }; then
4382 if test "$lt_cv_prog_gnu_ld" = yes; then
4383 case `/usr/bin/file conftest.$ac_objext` in
4385 LD="${LD-ld} -melf32bsmip"
4388 LD="${LD-ld} -melf32bmipn32"
4391 LD="${LD-ld} -melf64bmip"
4395 case `/usr/bin/file conftest.$ac_objext` in
4411 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4412 # Find out which ABI we are using.
4413 echo 'int i;' > conftest.$ac_ext
4414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4415 (eval $ac_compile) 2>&5
4417 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4418 (exit $ac_status); }; then
4419 case "`/usr/bin/file conftest.o`" in
4423 LD="${LD-ld} -m elf_i386
"
4425 ppc64-*linux*|powerpc64-*linux*)
4426 LD="${LD-ld} -m elf32ppclinux
"
4429 LD="${LD-ld} -m elf_s390
"
4432 LD="${LD-ld} -m elf32_sparc
"
4439 LD="${LD-ld} -m elf_x86_64
"
4441 ppc*-*linux*|powerpc*-*linux*)
4442 LD="${LD-ld} -m elf64ppc
"
4445 LD="${LD-ld} -m elf64_s390
"
4448 LD="${LD-ld} -m elf64_sparc
"
4458 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4459 SAVE_CFLAGS="$CFLAGS"
4460 CFLAGS="$CFLAGS -belf"
4461 { echo "$as_me:$LINENO: checking whether the C compiler needs
-belf" >&5
4462 echo $ECHO_N "checking whether the C compiler needs
-belf...
$ECHO_C" >&6; }
4463 if test "${lt_cv_cc_needs_belf+set}" = set; then
4464 echo $ECHO_N "(cached
) $ECHO_C" >&6
4467 ac_cpp='$CPP $CPPFLAGS'
4468 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4469 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4470 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4472 cat >conftest.$ac_ext <<_ACEOF
4475 cat confdefs.h >>conftest.$ac_ext
4476 cat >>conftest.$ac_ext <<_ACEOF
4477 /* end confdefs.h. */
4487 rm -f conftest.$ac_objext conftest$ac_exeext
4488 if { (ac_try="$ac_link"
4490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4491 *) ac_try_echo=$ac_try;;
4493 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4494 (eval "$ac_link") 2>conftest.er1
4496 grep -v '^ *+' conftest.er1 >conftest.err
4498 cat conftest.err >&5
4499 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4500 (exit $ac_status); } && {
4501 test -z "$ac_c_werror_flag" ||
4502 test ! -s conftest.err
4503 } && test -s conftest$ac_exeext &&
4504 $as_test_x conftest$ac_exeext; then
4505 lt_cv_cc_needs_belf=yes
4507 echo "$as_me: failed program was
:" >&5
4508 sed 's/^/| /' conftest.$ac_ext >&5
4510 lt_cv_cc_needs_belf=no
4513 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4514 conftest$ac_exeext conftest.$ac_ext
4516 ac_cpp='$CPP $CPPFLAGS'
4517 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4518 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4519 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4522 { echo "$as_me:$LINENO: result
: $lt_cv_cc_needs_belf" >&5
4523 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4524 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4525 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4526 CFLAGS="$SAVE_CFLAGS"
4532 need_locks="$enable_libtool_lock"
4536 ac_cpp='$CPP $CPPFLAGS'
4537 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4538 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4539 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4540 { echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
4541 echo $ECHO_N "checking how to run the C preprocessor...
$ECHO_C" >&6; }
4542 # On Suns, sometimes $CPP names a directory.
4543 if test -n "$CPP" && test -d "$CPP"; then
4546 if test -z "$CPP"; then
4547 if test "${ac_cv_prog_CPP+set}" = set; then
4548 echo $ECHO_N "(cached
) $ECHO_C" >&6
4550 # Double quotes because CPP needs to be expanded
4551 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
4554 for ac_c_preproc_warn_flag in '' yes
4556 # Use a header file that comes with gcc, so configuring glibc
4557 # with a fresh cross-compiler works.
4558 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4559 # <limits.h> exists even on freestanding compilers.
4560 # On the NeXT, cc -E runs the code through the compiler's parser,
4561 # not just through cpp. "Syntax error
" is here to catch this case.
4562 cat >conftest.$ac_ext <<_ACEOF
4565 cat confdefs.h >>conftest.$ac_ext
4566 cat >>conftest.$ac_ext <<_ACEOF
4567 /* end confdefs.h. */
4569 # include <limits.h>
4571 # include <assert.h>
4575 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4578 *) ac_try_echo=$ac_try;;
4580 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4581 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4583 grep -v '^ *+' conftest.er1 >conftest.err
4585 cat conftest.err >&5
4586 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4587 (exit $ac_status); } >/dev/null && {
4588 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4589 test ! -s conftest.err
4593 echo "$as_me: failed program was
:" >&5
4594 sed 's/^/| /' conftest.$ac_ext >&5
4596 # Broken: fails on valid input.
4600 rm -f conftest.err conftest.$ac_ext
4602 # OK, works on sane cases. Now check whether nonexistent headers
4603 # can be detected and how.
4604 cat >conftest.$ac_ext <<_ACEOF
4607 cat confdefs.h >>conftest.$ac_ext
4608 cat >>conftest.$ac_ext <<_ACEOF
4609 /* end confdefs.h. */
4610 #include <ac_nonexistent.h>
4612 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4615 *) ac_try_echo=$ac_try;;
4617 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4618 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4620 grep -v '^ *+' conftest.er1 >conftest.err
4622 cat conftest.err >&5
4623 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4624 (exit $ac_status); } >/dev/null && {
4625 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4626 test ! -s conftest.err
4628 # Broken: success on invalid input.
4631 echo "$as_me: failed program was
:" >&5
4632 sed 's/^/| /' conftest.$ac_ext >&5
4634 # Passes both tests.
4639 rm -f conftest.err conftest.$ac_ext
4642 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4643 rm -f conftest.err conftest.$ac_ext
4644 if $ac_preproc_ok; then
4656 { echo "$as_me:$LINENO: result
: $CPP" >&5
4657 echo "${ECHO_T}$CPP" >&6; }
4659 for ac_c_preproc_warn_flag in '' yes
4661 # Use a header file that comes with gcc, so configuring glibc
4662 # with a fresh cross-compiler works.
4663 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4664 # <limits.h> exists even on freestanding compilers.
4665 # On the NeXT, cc -E runs the code through the compiler's parser,
4666 # not just through cpp. "Syntax error
" is here to catch this case.
4667 cat >conftest.$ac_ext <<_ACEOF
4670 cat confdefs.h >>conftest.$ac_ext
4671 cat >>conftest.$ac_ext <<_ACEOF
4672 /* end confdefs.h. */
4674 # include <limits.h>
4676 # include <assert.h>
4680 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4683 *) ac_try_echo=$ac_try;;
4685 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4686 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4688 grep -v '^ *+' conftest.er1 >conftest.err
4690 cat conftest.err >&5
4691 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4692 (exit $ac_status); } >/dev/null && {
4693 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4694 test ! -s conftest.err
4698 echo "$as_me: failed program was
:" >&5
4699 sed 's/^/| /' conftest.$ac_ext >&5
4701 # Broken: fails on valid input.
4705 rm -f conftest.err conftest.$ac_ext
4707 # OK, works on sane cases. Now check whether nonexistent headers
4708 # can be detected and how.
4709 cat >conftest.$ac_ext <<_ACEOF
4712 cat confdefs.h >>conftest.$ac_ext
4713 cat >>conftest.$ac_ext <<_ACEOF
4714 /* end confdefs.h. */
4715 #include <ac_nonexistent.h>
4717 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4720 *) ac_try_echo=$ac_try;;
4722 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4723 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4725 grep -v '^ *+' conftest.er1 >conftest.err
4727 cat conftest.err >&5
4728 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4729 (exit $ac_status); } >/dev/null && {
4730 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4731 test ! -s conftest.err
4733 # Broken: success on invalid input.
4736 echo "$as_me: failed program was
:" >&5
4737 sed 's/^/| /' conftest.$ac_ext >&5
4739 # Passes both tests.
4744 rm -f conftest.err conftest.$ac_ext
4747 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4748 rm -f conftest.err conftest.$ac_ext
4749 if $ac_preproc_ok; then
4752 { { echo "$as_me:$LINENO: error
: C preprocessor
\"$CPP\" fails sanity check
4753 See \
`config.log' for more details." >&5
4754 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4755 See \`config.log
' for more details." >&2;}
4756 { (exit 1); exit 1; }; }
4760 ac_cpp='$CPP $CPPFLAGS'
4761 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
4762 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
4763 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4766 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4767 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4768 if test "${ac_cv_header_stdc+set}" = set; then
4769 echo $ECHO_N "(cached) $ECHO_C" >&6
4771 cat >conftest.$ac_ext <<_ACEOF
4774 cat confdefs.h >>conftest.$ac_ext
4775 cat >>conftest.$ac_ext <<_ACEOF
4776 /* end confdefs.h. */
4790 rm -f conftest.$ac_objext
4791 if { (ac_try="$ac_compile"
4793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4794 *) ac_try_echo=$ac_try;;
4796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4797 (eval "$ac_compile") 2>conftest.er1
4799 grep -v '^
*+' conftest.er1 >conftest.err
4801 cat conftest.err >&5
4802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4803 (exit $ac_status); } && {
4804 test -z "$ac_c_werror_flag" ||
4805 test ! -s conftest.err
4806 } && test -s conftest.$ac_objext; then
4807 ac_cv_header_stdc=yes
4809 echo "$as_me: failed program was:" >&5
4810 sed 's
/^
/|
/' conftest.$ac_ext >&5
4812 ac_cv_header_stdc=no
4815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4817 if test $ac_cv_header_stdc = yes; then
4818 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4819 cat >conftest.$ac_ext <<_ACEOF
4822 cat confdefs.h >>conftest.$ac_ext
4823 cat >>conftest.$ac_ext <<_ACEOF
4824 /* end confdefs.h. */
4828 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4829 $EGREP "memchr" >/dev/null 2>&1; then
4832 ac_cv_header_stdc=no
4838 if test $ac_cv_header_stdc = yes; then
4839 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4840 cat >conftest.$ac_ext <<_ACEOF
4843 cat confdefs.h >>conftest.$ac_ext
4844 cat >>conftest.$ac_ext <<_ACEOF
4845 /* end confdefs.h. */
4849 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4850 $EGREP "free" >/dev/null 2>&1; then
4853 ac_cv_header_stdc=no
4859 if test $ac_cv_header_stdc = yes; then
4860 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4861 if test "$cross_compiling" = yes; then
4864 cat >conftest.$ac_ext <<_ACEOF
4867 cat confdefs.h >>conftest.$ac_ext
4868 cat >>conftest.$ac_ext <<_ACEOF
4869 /* end confdefs.h. */
4872 #if ((' ' & 0x0FF) == 0x020)
4873 # define ISLOWER(c) ('a
' <= (c) && (c) <= 'z
')
4874 # define TOUPPER(c) (ISLOWER(c) ? 'A
' + ((c) - 'a
') : (c))
4876 # define ISLOWER(c) \
4877 (('a
' <= (c) && (c) <= 'i
') \
4878 || ('j
' <= (c) && (c) <= 'r
') \
4879 || ('s
' <= (c) && (c) <= 'z
'))
4880 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4883 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4888 for (i = 0; i < 256; i++)
4889 if (XOR (islower (i), ISLOWER (i))
4890 || toupper (i) != TOUPPER (i))
4895 rm -f conftest$ac_exeext
4896 if { (ac_try="$ac_link"
4898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4899 *) ac_try_echo=$ac_try;;
4901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4902 (eval "$ac_link") 2>&5
4904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4905 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
4906 { (case "(($ac_try" in
4907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4908 *) ac_try_echo=$ac_try;;
4910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4911 (eval "$ac_try") 2>&5
4913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4914 (exit $ac_status); }; }; then
4917 echo "$as_me: program exited with status $ac_status" >&5
4918 echo "$as_me: failed program was:" >&5
4919 sed 's
/^
/|
/' conftest.$ac_ext >&5
4922 ac_cv_header_stdc=no
4924 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4930 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4931 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4932 if test $ac_cv_header_stdc = yes; then
4934 cat >>confdefs.h <<\_ACEOF
4935 #define STDC_HEADERS 1
4940 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4950 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4951 inttypes.h stdint.h unistd.h
4953 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4954 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4955 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4956 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4957 echo $ECHO_N "(cached) $ECHO_C" >&6
4959 cat >conftest.$ac_ext <<_ACEOF
4962 cat confdefs.h >>conftest.$ac_ext
4963 cat >>conftest.$ac_ext <<_ACEOF
4964 /* end confdefs.h. */
4965 $ac_includes_default
4967 #include <$ac_header>
4969 rm -f conftest.$ac_objext
4970 if { (ac_try="$ac_compile"
4972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4973 *) ac_try_echo=$ac_try;;
4975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4976 (eval "$ac_compile") 2>conftest.er1
4978 grep -v '^
*+' conftest.er1 >conftest.err
4980 cat conftest.err >&5
4981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4982 (exit $ac_status); } && {
4983 test -z "$ac_c_werror_flag" ||
4984 test ! -s conftest.err
4985 } && test -s conftest.$ac_objext; then
4986 eval "$as_ac_Header=yes"
4988 echo "$as_me: failed program was:" >&5
4989 sed 's
/^
/|
/' conftest.$ac_ext >&5
4991 eval "$as_ac_Header=no"
4994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4996 ac_res=`eval echo '${'$as_ac_Header'}'`
4997 { echo "$as_me:$LINENO: result: $ac_res" >&5
4998 echo "${ECHO_T}$ac_res" >&6; }
4999 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5000 cat >>confdefs.h <<_ACEOF
5001 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5010 for ac_header in dlfcn.h
5012 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5013 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5014 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5015 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5016 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5017 echo $ECHO_N "(cached) $ECHO_C" >&6
5019 ac_res=`eval echo '${'$as_ac_Header'}'`
5020 { echo "$as_me:$LINENO: result: $ac_res" >&5
5021 echo "${ECHO_T}$ac_res" >&6; }
5023 # Is the header compilable?
5024 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5025 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5026 cat >conftest.$ac_ext <<_ACEOF
5029 cat confdefs.h >>conftest.$ac_ext
5030 cat >>conftest.$ac_ext <<_ACEOF
5031 /* end confdefs.h. */
5032 $ac_includes_default
5033 #include <$ac_header>
5035 rm -f conftest.$ac_objext
5036 if { (ac_try="$ac_compile"
5038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5039 *) ac_try_echo=$ac_try;;
5041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5042 (eval "$ac_compile") 2>conftest.er1
5044 grep -v '^
*+' conftest.er1 >conftest.err
5046 cat conftest.err >&5
5047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5048 (exit $ac_status); } && {
5049 test -z "$ac_c_werror_flag" ||
5050 test ! -s conftest.err
5051 } && test -s conftest.$ac_objext; then
5052 ac_header_compiler=yes
5054 echo "$as_me: failed program was:" >&5
5055 sed 's
/^
/|
/' conftest.$ac_ext >&5
5057 ac_header_compiler=no
5060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5061 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5062 echo "${ECHO_T}$ac_header_compiler" >&6; }
5064 # Is the header present?
5065 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5066 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5067 cat >conftest.$ac_ext <<_ACEOF
5070 cat confdefs.h >>conftest.$ac_ext
5071 cat >>conftest.$ac_ext <<_ACEOF
5072 /* end confdefs.h. */
5073 #include <$ac_header>
5075 if { (ac_try="$ac_cpp conftest.$ac_ext"
5077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5078 *) ac_try_echo=$ac_try;;
5080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5081 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5083 grep -v '^
*+' conftest.er1 >conftest.err
5085 cat conftest.err >&5
5086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5087 (exit $ac_status); } >/dev/null && {
5088 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5089 test ! -s conftest.err
5091 ac_header_preproc=yes
5093 echo "$as_me: failed program was:" >&5
5094 sed 's
/^
/|
/' conftest.$ac_ext >&5
5096 ac_header_preproc=no
5099 rm -f conftest.err conftest.$ac_ext
5100 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5101 echo "${ECHO_T}$ac_header_preproc" >&6; }
5103 # So? What about this header?
5104 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5106 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5107 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5108 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result
" >&5
5109 echo "$as_me: WARNING
: $ac_header: proceeding with the compiler
's result" >&2;}
5110 ac_header_preproc=yes
5113 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5114 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5115 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5116 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5117 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5118 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5119 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5120 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5121 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result
" >&5
5122 echo "$as_me: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&2;}
5123 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5124 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5128 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5129 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5130 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5131 echo $ECHO_N "(cached) $ECHO_C" >&6
5133 eval "$as_ac_Header=\$ac_header_preproc"
5135 ac_res=`eval echo '${'$as_ac_Header'}'`
5136 { echo "$as_me:$LINENO: result: $ac_res" >&5
5137 echo "${ECHO_T}$ac_res" >&6; }
5140 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5141 cat >>confdefs.h <<_ACEOF
5142 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5150 ac_cpp='$CXXCPP $CPPFLAGS'
5151 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
5152 ac_link='$CXX -o conftest
$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
5153 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5154 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5155 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5156 if test -z "$CXXCPP"; then
5157 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5158 echo $ECHO_N "(cached) $ECHO_C" >&6
5160 # Double quotes because CXXCPP needs to be expanded
5161 for CXXCPP in "$CXX -E" "/lib/cpp"
5164 for ac_cxx_preproc_warn_flag in '' yes
5166 # Use a header file that comes with gcc, so configuring glibc
5167 # with a fresh cross-compiler works.
5168 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5169 # <limits.h> exists even on freestanding compilers.
5170 # On the NeXT, cc -E runs the code through the compiler's parser
,
5171 # not just through cpp. "Syntax error" is here to catch this case.
5172 cat >conftest.
$ac_ext <<_ACEOF
5175 cat confdefs.h
>>conftest.
$ac_ext
5176 cat >>conftest.
$ac_ext <<_ACEOF
5177 /* end confdefs.h. */
5179 # include <limits.h>
5181 # include <assert.h>
5185 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5187 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5188 *) ac_try_echo=$ac_try;;
5190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5191 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5193 grep -v '^ *+' conftest.er1 >conftest.err
5195 cat conftest.err >&5
5196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5197 (exit $ac_status); } >/dev/null && {
5198 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5199 test ! -s conftest.err
5203 echo "$as_me: failed program was:" >&5
5204 sed 's/^/| /' conftest.$ac_ext >&5
5206 # Broken: fails on valid input.
5210 rm -f conftest.err conftest.$ac_ext
5212 # OK, works on sane cases. Now check whether nonexistent headers
5213 # can be detected and how.
5214 cat >conftest.$ac_ext <<_ACEOF
5217 cat confdefs.h >>conftest.$ac_ext
5218 cat >>conftest.$ac_ext <<_ACEOF
5219 /* end confdefs.h. */
5220 #include <ac_nonexistent.h>
5222 if { (ac_try="$ac_cpp conftest.$ac_ext"
5224 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5225 *) ac_try_echo
=$ac_try;;
5227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5228 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5230 grep -v '^ *+' conftest.er1
>conftest.err
5232 cat conftest.err
>&5
5233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5234 (exit $ac_status); } >/dev
/null
&& {
5235 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5236 test ! -s conftest.err
5238 # Broken: success on invalid input.
5241 echo "$as_me: failed program was:" >&5
5242 sed 's/^/| /' conftest.
$ac_ext >&5
5244 # Passes both tests.
5249 rm -f conftest.err conftest.
$ac_ext
5252 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5253 rm -f conftest.err conftest.
$ac_ext
5254 if $ac_preproc_ok; then
5259 ac_cv_prog_CXXCPP
=$CXXCPP
5262 CXXCPP
=$ac_cv_prog_CXXCPP
5264 ac_cv_prog_CXXCPP
=$CXXCPP
5266 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5267 echo "${ECHO_T}$CXXCPP" >&6; }
5269 for ac_cxx_preproc_warn_flag
in '' yes
5271 # Use a header file that comes with gcc, so configuring glibc
5272 # with a fresh cross-compiler works.
5273 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5274 # <limits.h> exists even on freestanding compilers.
5275 # On the NeXT, cc -E runs the code through the compiler's parser,
5276 # not just through cpp. "Syntax error" is here to catch this case.
5277 cat >conftest.
$ac_ext <<_ACEOF
5280 cat confdefs.h
>>conftest.
$ac_ext
5281 cat >>conftest.
$ac_ext <<_ACEOF
5282 /* end confdefs.h. */
5284 # include <limits.h>
5286 # include <assert.h>
5290 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5292 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5293 *) ac_try_echo=$ac_try;;
5295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5296 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5298 grep -v '^ *+' conftest.er1 >conftest.err
5300 cat conftest.err >&5
5301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5302 (exit $ac_status); } >/dev/null && {
5303 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5304 test ! -s conftest.err
5308 echo "$as_me: failed program was:" >&5
5309 sed 's/^/| /' conftest.$ac_ext >&5
5311 # Broken: fails on valid input.
5315 rm -f conftest.err conftest.$ac_ext
5317 # OK, works on sane cases. Now check whether nonexistent headers
5318 # can be detected and how.
5319 cat >conftest.$ac_ext <<_ACEOF
5322 cat confdefs.h >>conftest.$ac_ext
5323 cat >>conftest.$ac_ext <<_ACEOF
5324 /* end confdefs.h. */
5325 #include <ac_nonexistent.h>
5327 if { (ac_try="$ac_cpp conftest.$ac_ext"
5329 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5330 *) ac_try_echo
=$ac_try;;
5332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5333 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5335 grep -v '^ *+' conftest.er1
>conftest.err
5337 cat conftest.err
>&5
5338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5339 (exit $ac_status); } >/dev
/null
&& {
5340 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5341 test ! -s conftest.err
5343 # Broken: success on invalid input.
5346 echo "$as_me: failed program was:" >&5
5347 sed 's/^/| /' conftest.
$ac_ext >&5
5349 # Passes both tests.
5354 rm -f conftest.err conftest.
$ac_ext
5357 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5358 rm -f conftest.err conftest.
$ac_ext
5359 if $ac_preproc_ok; then
5362 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5363 See \`config.log' for more details." >&5
5364 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5365 See \`config.log' for more details." >&2;}
5366 { (exit 1); exit 1; }; }
5370 ac_cpp
='$CXXCPP $CPPFLAGS'
5371 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5372 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5373 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5377 ac_compile
='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5378 ac_link
='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5379 ac_compiler_gnu
=$ac_cv_f77_compiler_gnu
5380 if test -n "$ac_tool_prefix"; then
5381 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
5383 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5384 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
5385 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5386 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5387 if test "${ac_cv_prog_F77+set}" = set; then
5388 echo $ECHO_N "(cached) $ECHO_C" >&6
5390 if test -n "$F77"; then
5391 ac_cv_prog_F77
="$F77" # Let the user override the test.
5393 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5397 test -z "$as_dir" && as_dir
=.
5398 for ac_exec_ext
in '' $ac_executable_extensions; do
5399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5400 ac_cv_prog_F77
="$ac_tool_prefix$ac_prog"
5401 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5411 if test -n "$F77"; then
5412 { echo "$as_me:$LINENO: result: $F77" >&5
5413 echo "${ECHO_T}$F77" >&6; }
5415 { echo "$as_me:$LINENO: result: no" >&5
5416 echo "${ECHO_T}no" >&6; }
5420 test -n "$F77" && break
5423 if test -z "$F77"; then
5425 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
5427 # Extract the first word of "$ac_prog", so it can be a program name with args.
5428 set dummy
$ac_prog; ac_word
=$2
5429 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5430 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5431 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5432 echo $ECHO_N "(cached) $ECHO_C" >&6
5434 if test -n "$ac_ct_F77"; then
5435 ac_cv_prog_ac_ct_F77
="$ac_ct_F77" # Let the user override the test.
5437 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5441 test -z "$as_dir" && as_dir
=.
5442 for ac_exec_ext
in '' $ac_executable_extensions; do
5443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5444 ac_cv_prog_ac_ct_F77
="$ac_prog"
5445 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5454 ac_ct_F77
=$ac_cv_prog_ac_ct_F77
5455 if test -n "$ac_ct_F77"; then
5456 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5457 echo "${ECHO_T}$ac_ct_F77" >&6; }
5459 { echo "$as_me:$LINENO: result: no" >&5
5460 echo "${ECHO_T}no" >&6; }
5464 test -n "$ac_ct_F77" && break
5467 if test "x$ac_ct_F77" = x
; then
5470 case $cross_compiling:$ac_tool_warned in
5472 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5473 whose name does not start with the host triplet. If you think this
5474 configuration is useful to you, please write to autoconf@gnu.org." >&5
5475 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5476 whose name does not start with the host triplet. If you think this
5477 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5478 ac_tool_warned
=yes ;;
5485 # Provide some information about the compiler.
5486 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
5487 ac_compiler
=`set X $ac_compile; echo $2`
5488 { (ac_try
="$ac_compiler --version >&5"
5490 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5491 *) ac_try_echo=$ac_try;;
5493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5494 (eval "$ac_compiler --version >&5") 2>&5
5496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5497 (exit $ac_status); }
5498 { (ac_try="$ac_compiler -v >&5"
5500 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5501 *) ac_try_echo
=$ac_try;;
5503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5504 (eval "$ac_compiler -v >&5") 2>&5
5506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5507 (exit $ac_status); }
5508 { (ac_try
="$ac_compiler -V >&5"
5510 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5511 *) ac_try_echo=$ac_try;;
5513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5514 (eval "$ac_compiler -V >&5") 2>&5
5516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5517 (exit $ac_status); }
5520 # If we don't use `.F
' as extension, the preprocessor is not run on the
5521 # input file. (Note that this only needs to work for GNU compilers.)
5524 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5525 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
5526 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5527 echo $ECHO_N "(cached) $ECHO_C" >&6
5529 cat >conftest.$ac_ext <<_ACEOF
5537 rm -f conftest.$ac_objext
5538 if { (ac_try="$ac_compile"
5540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5541 *) ac_try_echo=$ac_try;;
5543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5544 (eval "$ac_compile") 2>conftest.er1
5546 grep -v '^
*+' conftest.er1 >conftest.err
5548 cat conftest.err >&5
5549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5550 (exit $ac_status); } && {
5551 test -z "$ac_f77_werror_flag" ||
5552 test ! -s conftest.err
5553 } && test -s conftest.$ac_objext; then
5556 echo "$as_me: failed program was:" >&5
5557 sed 's
/^
/|
/' conftest.$ac_ext >&5
5562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5563 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5566 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5567 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
5569 ac_test_FFLAGS=${FFLAGS+set}
5570 ac_save_FFLAGS=$FFLAGS
5572 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5573 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
5574 if test "${ac_cv_prog_f77_g+set}" = set; then
5575 echo $ECHO_N "(cached) $ECHO_C" >&6
5578 cat >conftest.$ac_ext <<_ACEOF
5583 rm -f conftest.$ac_objext
5584 if { (ac_try="$ac_compile"
5586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5587 *) ac_try_echo=$ac_try;;
5589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5590 (eval "$ac_compile") 2>conftest.er1
5592 grep -v '^
*+' conftest.er1 >conftest.err
5594 cat conftest.err >&5
5595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5596 (exit $ac_status); } && {
5597 test -z "$ac_f77_werror_flag" ||
5598 test ! -s conftest.err
5599 } && test -s conftest.$ac_objext; then
5600 ac_cv_prog_f77_g=yes
5602 echo "$as_me: failed program was:" >&5
5603 sed 's
/^
/|
/' conftest.$ac_ext >&5
5608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5611 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5612 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
5613 if test "$ac_test_FFLAGS" = set; then
5614 FFLAGS=$ac_save_FFLAGS
5615 elif test $ac_cv_prog_f77_g = yes; then
5616 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5622 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5629 G77=`test $ac_compiler_gnu = yes && echo yes`
5631 ac_cpp='$CPP $CPPFLAGS'
5632 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
5633 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
5634 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5638 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works
for C compilers
!
5640 # find the maximum length of command line arguments
5641 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5642 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
5643 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5644 echo $ECHO_N "(cached) $ECHO_C" >&6
5651 # On DJGPP, this test can blow up pretty badly due to problems in libc
5652 # (any single argument exceeding 2000 bytes causes a buffer overrun
5653 # during glob expansion). Even if it were fixed, the result of this
5654 # check would be larger than it should be.
5655 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
5659 # Under GNU Hurd, this test is not required because there is
5660 # no limit to the length of command line arguments.
5661 # Libtool will interpret -1 as no limit whatsoever
5662 lt_cv_sys_max_cmd_len
=-1;
5666 # On Win9x/ME, this test blows up -- it succeeds, but takes
5667 # about 5 minutes as the teststring grows exponentially.
5668 # Worse, since 9x/ME are not pre-emptively multitasking,
5669 # you end up with a "frozen" computer, even though with patience
5670 # the test eventually succeeds (with a max line length of 256k).
5671 # Instead, let's just punt: use the minimum linelength reported by
5672 # all of the supported platforms: 8192 (on NT/2K/XP).
5673 lt_cv_sys_max_cmd_len
=8192;
5676 amigaos
* | morphos
*)
5677 # On AmigaOS with pdksh, this test takes hours, literally.
5678 # So we just punt and use a minimum line length of 8192.
5679 lt_cv_sys_max_cmd_len
=8192;
5683 # If test is not a shell built-in, we'll probably end up computing a
5684 # maximum length that is only half of the actual maximum length, but
5686 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5687 = "XX$testring") >/dev
/null
2>&1 &&
5688 new_result
=`expr "X$testring" : ".*" 2>&1` &&
5689 lt_cv_sys_max_cmd_len
=$new_result &&
5690 test $i != 17 # 1/2 MB should be enough
5693 testring
=$testring$testring
5696 # Add a significant safety factor because C++ compilers can tack on massive
5697 # amounts of additional arguments before passing them to the linker.
5698 # It appears as though 1/2 is a usable value.
5699 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
5705 if test -n $lt_cv_sys_max_cmd_len ; then
5706 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5707 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
5709 { echo "$as_me:$LINENO: result: none" >&5
5710 echo "${ECHO_T}none" >&6; }
5716 # Check for command to grab the raw symbol name followed by C symbol from nm.
5717 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5718 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
5719 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5720 echo $ECHO_N "(cached) $ECHO_C" >&6
5723 # These are sane defaults that work on at least a few old systems.
5724 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5726 # Character class describing NM global symbol codes.
5727 symcode
='[BCDEGRST]'
5729 # Regexp to match symbols that can be accessed directly from C.
5730 sympat
='\([_A-Za-z][_A-Za-z0-9]*\)'
5732 # Transform the above into a raw symbol and a C symbol.
5733 symxfrm
='\1 \2\3 \3'
5735 # Transform an extracted symbol line into a proper C declaration
5736 lt_cv_sys_global_symbol_to_cdecl
="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5738 # Transform an extracted symbol line into symbol name and symbol address
5739 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'"
5741 # Define system-specific variables.
5746 cygwin
* | mingw
* | pw32
*)
5747 symcode
='[ABCDGISTW]'
5749 hpux
*) # Its linker distinguishes data from code symbols
5750 if test "$host_cpu" = ia64
; then
5751 symcode
='[ABCDEGRST]'
5753 lt_cv_sys_global_symbol_to_cdecl
="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5754 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'"
5757 symcode
='[BCDEGRST]'
5760 symcode
='[BCDEGQRST]'
5770 # Handle CRLF in mingw tool chain
5774 opt_cr
=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5778 # If we're using GNU nm, then use its standard symbol codes.
5779 case `$NM -V 2>&1` in
5780 *GNU
* |
*'with BFD'*)
5781 symcode
='[ABCDGIRSTW]' ;;
5784 # Try without a prefix undercore, then with it.
5785 for ac_symprfx
in "" "_"; do
5787 # Write the raw and C identifiers.
5788 lt_cv_sys_global_symbol_pipe
="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5790 # Check to see that the pipe works correctly.
5794 cat > conftest.
$ac_ext <<EOF
5799 void nm_test_func(){}
5803 int main(){nm_test_var='a';nm_test_func();return(0);}
5806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5807 (eval $ac_compile) 2>&5
5809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5810 (exit $ac_status); }; then
5811 # Now try to grab the symbols.
5813 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5814 (eval $NM conftest.
$ac_objext \|
$lt_cv_sys_global_symbol_pipe \
> $nlist) 2>&5
5816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5817 (exit $ac_status); } && test -s "$nlist"; then
5818 # Try sorting and uniquifying the output.
5819 if sort "$nlist" |
uniq > "$nlist"T
; then
5820 mv -f "$nlist"T
"$nlist"
5825 # Make sure that we snagged all the symbols we need.
5826 if grep ' nm_test_var$' "$nlist" >/dev
/null
; then
5827 if grep ' nm_test_func$' "$nlist" >/dev
/null
; then
5828 cat <<EOF > conftest.$ac_ext
5834 # Now generate the symbol file.
5835 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5837 cat <<EOF >> conftest.$ac_ext
5838 #if defined (__STDC__) && __STDC__
5839 # define lt_ptr_t void *
5841 # define lt_ptr_t char *
5845 /* The mapping between symbol names and symbols. */
5850 lt_preloaded_symbols[] =
5853 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" |
grep -v main
>> conftest.
$ac_ext
5854 cat <<\EOF
>> conftest.
$ac_ext
5862 # Now try linking the two files.
5863 mv conftest.
$ac_objext conftstm.
$ac_objext
5864 lt_save_LIBS
="$LIBS"
5865 lt_save_CFLAGS
="$CFLAGS"
5866 LIBS
="conftstm.$ac_objext"
5867 CFLAGS
="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5868 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5869 (eval $ac_link) 2>&5
5871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5872 (exit $ac_status); } && test -s conftest
${ac_exeext}; then
5875 LIBS
="$lt_save_LIBS"
5876 CFLAGS
="$lt_save_CFLAGS"
5878 echo "cannot find nm_test_func in $nlist" >&5
5881 echo "cannot find nm_test_var in $nlist" >&5
5884 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5887 echo "$progname: failed program was:" >&5
5888 cat conftest.
$ac_ext >&5
5890 rm -f conftest
* conftst
*
5892 # Do not use the global_symbol_pipe unless it works.
5893 if test "$pipe_works" = yes; then
5896 lt_cv_sys_global_symbol_pipe
=
5902 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5903 lt_cv_sys_global_symbol_to_cdecl
=
5905 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5906 { echo "$as_me:$LINENO: result: failed" >&5
5907 echo "${ECHO_T}failed" >&6; }
5909 { echo "$as_me:$LINENO: result: ok" >&5
5910 echo "${ECHO_T}ok" >&6; }
5913 { echo "$as_me:$LINENO: checking for objdir" >&5
5914 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
5915 if test "${lt_cv_objdir+set}" = set; then
5916 echo $ECHO_N "(cached) $ECHO_C" >&6
5918 rm -f .libs
2>/dev
/null
5919 mkdir .libs
2>/dev
/null
5920 if test -d .libs
; then
5923 # MS-DOS does not allow filenames that begin with a dot.
5926 rmdir .libs
2>/dev
/null
5928 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5929 echo "${ECHO_T}$lt_cv_objdir" >&6; }
5930 objdir
=$lt_cv_objdir
5938 # AIX sometimes has problems with the GCC collect2 program. For some
5939 # reason, if we set the COLLECT_NAMES environment variable, the problems
5940 # vanish in a puff of smoke.
5941 if test "X${COLLECT_NAMES+set}" != Xset
; then
5943 export COLLECT_NAMES
5948 # Sed substitution that helps us do robust quoting. It backslashifies
5949 # metacharacters that are still active within double-quoted strings.
5950 Xsed
='sed -e s/^X//'
5951 sed_quote_subst
='s/\([\\"\\`$\\\\]\)/\\\1/g'
5953 # Same as above, but do not quote variable references.
5954 double_quote_subst
='s/\([\\"\\`\\\\]\)/\\\1/g'
5956 # Sed substitution to delay expansion of an escaped shell variable in a
5957 # double_quote_subst'ed string.
5958 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
5960 # Sed substitution to avoid accidental globbing in evaled expressions
5961 no_glob_subst
='s/\*/\\\*/g'
5967 default_ofile
=libtool
5968 can_build_shared
=yes
5970 # All known linkers require a `.a' archive for static linking (except M$VC,
5971 # which needs '.lib').
5973 ltmain
="$ac_aux_dir/ltmain.sh"
5974 ofile
="$default_ofile"
5975 with_gnu_ld
="$lt_cv_prog_gnu_ld"
5977 if test -n "$ac_tool_prefix"; then
5978 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5979 set dummy
${ac_tool_prefix}ar; ac_word
=$2
5980 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5981 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5982 if test "${ac_cv_prog_AR+set}" = set; then
5983 echo $ECHO_N "(cached) $ECHO_C" >&6
5985 if test -n "$AR"; then
5986 ac_cv_prog_AR
="$AR" # Let the user override the test.
5988 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5992 test -z "$as_dir" && as_dir
=.
5993 for ac_exec_ext
in '' $ac_executable_extensions; do
5994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5995 ac_cv_prog_AR
="${ac_tool_prefix}ar"
5996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6006 if test -n "$AR"; then
6007 { echo "$as_me:$LINENO: result: $AR" >&5
6008 echo "${ECHO_T}$AR" >&6; }
6010 { echo "$as_me:$LINENO: result: no" >&5
6011 echo "${ECHO_T}no" >&6; }
6016 if test -z "$ac_cv_prog_AR"; then
6018 # Extract the first word of "ar", so it can be a program name with args.
6019 set dummy
ar; ac_word
=$2
6020 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6021 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6022 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6023 echo $ECHO_N "(cached) $ECHO_C" >&6
6025 if test -n "$ac_ct_AR"; then
6026 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
6028 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6032 test -z "$as_dir" && as_dir
=.
6033 for ac_exec_ext
in '' $ac_executable_extensions; do
6034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6035 ac_cv_prog_ac_ct_AR
="ar"
6036 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6045 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
6046 if test -n "$ac_ct_AR"; then
6047 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6048 echo "${ECHO_T}$ac_ct_AR" >&6; }
6050 { echo "$as_me:$LINENO: result: no" >&5
6051 echo "${ECHO_T}no" >&6; }
6054 if test "x$ac_ct_AR" = x
; then
6057 case $cross_compiling:$ac_tool_warned in
6059 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6060 whose name does not start with the host triplet. If you think this
6061 configuration is useful to you, please write to autoconf@gnu.org." >&5
6062 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6063 whose name does not start with the host triplet. If you think this
6064 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6065 ac_tool_warned
=yes ;;
6073 if test -n "$ac_tool_prefix"; then
6074 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6075 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
6076 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6077 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6078 if test "${ac_cv_prog_RANLIB+set}" = set; then
6079 echo $ECHO_N "(cached) $ECHO_C" >&6
6081 if test -n "$RANLIB"; then
6082 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
6084 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6088 test -z "$as_dir" && as_dir
=.
6089 for ac_exec_ext
in '' $ac_executable_extensions; do
6090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6091 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
6092 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6101 RANLIB
=$ac_cv_prog_RANLIB
6102 if test -n "$RANLIB"; then
6103 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6104 echo "${ECHO_T}$RANLIB" >&6; }
6106 { echo "$as_me:$LINENO: result: no" >&5
6107 echo "${ECHO_T}no" >&6; }
6112 if test -z "$ac_cv_prog_RANLIB"; then
6113 ac_ct_RANLIB
=$RANLIB
6114 # Extract the first word of "ranlib", so it can be a program name with args.
6115 set dummy ranlib
; ac_word
=$2
6116 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6117 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6118 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6119 echo $ECHO_N "(cached) $ECHO_C" >&6
6121 if test -n "$ac_ct_RANLIB"; then
6122 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
6124 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6128 test -z "$as_dir" && as_dir
=.
6129 for ac_exec_ext
in '' $ac_executable_extensions; do
6130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6131 ac_cv_prog_ac_ct_RANLIB
="ranlib"
6132 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6141 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
6142 if test -n "$ac_ct_RANLIB"; then
6143 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6144 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6146 { echo "$as_me:$LINENO: result: no" >&5
6147 echo "${ECHO_T}no" >&6; }
6150 if test "x$ac_ct_RANLIB" = x
; then
6153 case $cross_compiling:$ac_tool_warned in
6155 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6156 whose name does not start with the host triplet. If you think this
6157 configuration is useful to you, please write to autoconf@gnu.org." >&5
6158 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6159 whose name does not start with the host triplet. If you think this
6160 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6161 ac_tool_warned
=yes ;;
6163 RANLIB
=$ac_ct_RANLIB
6166 RANLIB
="$ac_cv_prog_RANLIB"
6169 if test -n "$ac_tool_prefix"; then
6170 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6171 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
6172 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6173 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6174 if test "${ac_cv_prog_STRIP+set}" = set; then
6175 echo $ECHO_N "(cached) $ECHO_C" >&6
6177 if test -n "$STRIP"; then
6178 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
6180 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6184 test -z "$as_dir" && as_dir
=.
6185 for ac_exec_ext
in '' $ac_executable_extensions; do
6186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6187 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
6188 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6197 STRIP
=$ac_cv_prog_STRIP
6198 if test -n "$STRIP"; then
6199 { echo "$as_me:$LINENO: result: $STRIP" >&5
6200 echo "${ECHO_T}$STRIP" >&6; }
6202 { echo "$as_me:$LINENO: result: no" >&5
6203 echo "${ECHO_T}no" >&6; }
6208 if test -z "$ac_cv_prog_STRIP"; then
6210 # Extract the first word of "strip", so it can be a program name with args.
6211 set dummy strip
; ac_word
=$2
6212 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6213 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6214 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6215 echo $ECHO_N "(cached) $ECHO_C" >&6
6217 if test -n "$ac_ct_STRIP"; then
6218 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
6220 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6224 test -z "$as_dir" && as_dir
=.
6225 for ac_exec_ext
in '' $ac_executable_extensions; do
6226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6227 ac_cv_prog_ac_ct_STRIP
="strip"
6228 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6237 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
6238 if test -n "$ac_ct_STRIP"; then
6239 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6240 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6242 { echo "$as_me:$LINENO: result: no" >&5
6243 echo "${ECHO_T}no" >&6; }
6246 if test "x$ac_ct_STRIP" = x
; then
6249 case $cross_compiling:$ac_tool_warned in
6251 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6252 whose name does not start with the host triplet. If you think this
6253 configuration is useful to you, please write to autoconf@gnu.org." >&5
6254 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6255 whose name does not start with the host triplet. If you think this
6256 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6257 ac_tool_warned
=yes ;;
6262 STRIP
="$ac_cv_prog_STRIP"
6267 old_CFLAGS
="$CFLAGS"
6269 # Set sane defaults for various variables
6270 test -z "$AR" && AR
=ar
6271 test -z "$AR_FLAGS" && AR_FLAGS
=cru
6272 test -z "$AS" && AS
=as
6273 test -z "$CC" && CC
=cc
6274 test -z "$LTCC" && LTCC
=$CC
6275 test -z "$DLLTOOL" && DLLTOOL
=dlltool
6276 test -z "$LD" && LD
=ld
6277 test -z "$LN_S" && LN_S
="ln -s"
6278 test -z "$MAGIC_CMD" && MAGIC_CMD
=file
6279 test -z "$NM" && NM
=nm
6280 test -z "$SED" && SED
=sed
6281 test -z "$OBJDUMP" && OBJDUMP
=objdump
6282 test -z "$RANLIB" && RANLIB
=:
6283 test -z "$STRIP" && STRIP
=:
6284 test -z "$ac_objext" && ac_objext
=o
6286 # Determine commands to create old-style static archives.
6287 old_archive_cmds
='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6288 old_postinstall_cmds
='chmod 644 $oldlib'
6289 old_postuninstall_cmds
=
6291 if test -n "$RANLIB"; then
6294 old_postinstall_cmds
="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6297 old_postinstall_cmds
="\$RANLIB \$oldlib~$old_postinstall_cmds"
6300 old_archive_cmds
="$old_archive_cmds~\$RANLIB \$oldlib"
6303 # Only perform the check for file, if the check method requires it
6304 case $deplibs_check_method in
6306 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6307 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6308 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6309 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6310 echo $ECHO_N "(cached) $ECHO_C" >&6
6314 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
6317 lt_save_MAGIC_CMD
="$MAGIC_CMD"
6318 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
6319 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
6320 for ac_dir
in $ac_dummy; do
6322 test -z "$ac_dir" && ac_dir
=.
6323 if test -f $ac_dir/${ac_tool_prefix}file; then
6324 lt_cv_path_MAGIC_CMD
="$ac_dir/${ac_tool_prefix}file"
6325 if test -n "$file_magic_test_file"; then
6326 case $deplibs_check_method in
6328 file_magic_regex
="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6329 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
6330 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
6331 $EGREP "$file_magic_regex" > /dev
/null
; then
6336 *** Warning: the command libtool uses to detect shared libraries,
6337 *** $file_magic_cmd, produces output that libtool cannot recognize.
6338 *** The result is that libtool may fail to recognize shared libraries
6339 *** as such. This will affect the creation of libtool libraries that
6340 *** depend on shared libraries, but programs linked with such libtool
6341 *** libraries will work regardless of this problem. Nevertheless, you
6342 *** may want to report the problem to your system manager and/or to
6343 *** bug-libtool@gnu.org
6353 MAGIC_CMD
="$lt_save_MAGIC_CMD"
6358 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
6359 if test -n "$MAGIC_CMD"; then
6360 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6361 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6363 { echo "$as_me:$LINENO: result: no" >&5
6364 echo "${ECHO_T}no" >&6; }
6367 if test -z "$lt_cv_path_MAGIC_CMD"; then
6368 if test -n "$ac_tool_prefix"; then
6369 { echo "$as_me:$LINENO: checking for file" >&5
6370 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6371 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6372 echo $ECHO_N "(cached) $ECHO_C" >&6
6376 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
6379 lt_save_MAGIC_CMD
="$MAGIC_CMD"
6380 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
6381 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
6382 for ac_dir
in $ac_dummy; do
6384 test -z "$ac_dir" && ac_dir
=.
6385 if test -f $ac_dir/file; then
6386 lt_cv_path_MAGIC_CMD
="$ac_dir/file"
6387 if test -n "$file_magic_test_file"; then
6388 case $deplibs_check_method in
6390 file_magic_regex
="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6391 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
6392 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
6393 $EGREP "$file_magic_regex" > /dev
/null
; then
6398 *** Warning: the command libtool uses to detect shared libraries,
6399 *** $file_magic_cmd, produces output that libtool cannot recognize.
6400 *** The result is that libtool may fail to recognize shared libraries
6401 *** as such. This will affect the creation of libtool libraries that
6402 *** depend on shared libraries, but programs linked with such libtool
6403 *** libraries will work regardless of this problem. Nevertheless, you
6404 *** may want to report the problem to your system manager and/or to
6405 *** bug-libtool@gnu.org
6415 MAGIC_CMD
="$lt_save_MAGIC_CMD"
6420 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
6421 if test -n "$MAGIC_CMD"; then
6422 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6423 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6425 { echo "$as_me:$LINENO: result: no" >&5
6426 echo "${ECHO_T}no" >&6; }
6441 # Check whether --enable-libtool-lock was given.
6442 if test "${enable_libtool_lock+set}" = set; then
6443 enableval
=$enable_libtool_lock;
6446 test "x$enable_libtool_lock" != xno
&& enable_libtool_lock
=yes
6449 # Check whether --with-pic was given.
6450 if test "${with_pic+set}" = set; then
6451 withval
=$with_pic; pic_mode
="$withval"
6456 test -z "$pic_mode" && pic_mode
=default
6458 # Use C for the default configuration in the libtool script
6462 ac_cpp
='$CPP $CPPFLAGS'
6463 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6464 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6465 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6468 # Source file extension for C test sources.
6471 # Object file extension for compiled C test sources.
6475 # Code to be used in simple compile tests
6476 lt_simple_compile_test_code
="int some_variable = 0;\n"
6478 # Code to be used in simple link tests
6479 lt_simple_link_test_code
='int main(){return(0);}\n'
6482 # If no C compiler was specified, use CC.
6485 # Allow CC to be a program name with arguments.
6490 # Check for any special shared library compilation flags.
6493 if test "$GCC" = no
; then
6496 lt_prog_cc_shlib
='-belf'
6500 if test -n "$lt_prog_cc_shlib"; then
6501 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6502 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6503 if echo "$old_CC $old_CFLAGS " |
grep "[ ]$lt_prog_cc_shlib[ ]" >/dev
/null
; then :
6505 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6506 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6507 lt_cv_prog_cc_can_build_shared
=no
6513 # Check to make sure the static flag actually works.
6515 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6516 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6; }
6517 if test "${lt_prog_compiler_static_works+set}" = set; then
6518 echo $ECHO_N "(cached) $ECHO_C" >&6
6520 lt_prog_compiler_static_works
=no
6521 save_LDFLAGS
="$LDFLAGS"
6522 LDFLAGS
="$LDFLAGS $lt_prog_compiler_static"
6523 printf "$lt_simple_link_test_code" > conftest.
$ac_ext
6524 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
6525 # The compiler can only warn and ignore the option if not recognized
6526 # So say no if there are warnings
6527 if test -s conftest.err
; then
6528 # Append any errors to the config.log.
6529 cat conftest.err
1>&5
6531 lt_prog_compiler_static_works
=yes
6535 LDFLAGS
="$save_LDFLAGS"
6538 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6539 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
6541 if test x
"$lt_prog_compiler_static_works" = xyes
; then
6544 lt_prog_compiler_static
=
6550 ## There is no encapsulation within the following macros, do not change
6551 ## the running order or otherwise move them around unless you know exactly
6552 ## what you are doing...
6554 lt_prog_compiler_no_builtin_flag
=
6556 if test "$GCC" = yes; then
6557 lt_prog_compiler_no_builtin_flag
=' -fno-builtin'
6560 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6561 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
6562 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6563 echo $ECHO_N "(cached) $ECHO_C" >&6
6565 lt_cv_prog_compiler_rtti_exceptions
=no
6566 ac_outfile
=conftest.
$ac_objext
6567 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
6568 lt_compiler_flag
="-fno-rtti -fno-exceptions"
6569 # Insert the option either (1) after the last *FLAGS variable, or
6570 # (2) before a word containing "conftest.", or (3) at the end.
6571 # Note that $ac_compile itself does not contain backslashes and begins
6572 # with a dollar sign (not a hyphen), so the echo should work correctly.
6573 # The option is referenced via a variable to avoid confusing sed.
6574 lt_compile
=`echo "$ac_compile" | $SED \
6575 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6576 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6577 -e 's:$: $lt_compiler_flag:'`
6578 (eval echo "\"\$as_me:6578: $lt_compile\"" >&5)
6579 (eval "$lt_compile" 2>conftest.err
)
6581 cat conftest.err
>&5
6582 echo "$as_me:6582: \$? = $ac_status" >&5
6583 if (exit $ac_status) && test -s "$ac_outfile"; then
6584 # The compiler can only warn and ignore the option if not recognized
6585 # So say no if there are warnings
6586 if test ! -s conftest.err
; then
6587 lt_cv_prog_compiler_rtti_exceptions
=yes
6593 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6594 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
6596 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
6597 lt_prog_compiler_no_builtin_flag
="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6604 lt_prog_compiler_wl
=
6605 lt_prog_compiler_pic
=
6606 lt_prog_compiler_static
=
6608 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6609 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
6611 if test "$GCC" = yes; then
6612 lt_prog_compiler_wl
='-Wl,'
6613 lt_prog_compiler_static
='-static'
6617 # All AIX code is PIC.
6618 if test "$host_cpu" = ia64
; then
6619 # AIX 5 now supports IA64 processor
6620 lt_prog_compiler_static
='-Bstatic'
6625 # FIXME: we need at least 68020 code to build shared libraries, but
6626 # adding the `-m68020' flag to GCC prevents building anything better,
6628 lt_prog_compiler_pic
='-m68020 -resident32 -malways-restore-a4'
6631 beos
* | cygwin
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
6632 # PIC is the default for these OSes.
6635 mingw
* | pw32
* | os2
*)
6636 # This hack is so that the source file can tell whether it is being
6637 # built for inclusion in a dll (and should export symbols for example).
6638 lt_prog_compiler_pic
='-DDLL_EXPORT'
6641 darwin
* | rhapsody
*)
6642 # PIC is the default on this platform
6643 # Common symbols not allowed in MH_DYLIB files
6644 lt_prog_compiler_pic
='-fno-common'
6648 # Just because we use GCC doesn't mean we suddenly get shared libraries
6649 # on systems that don't support them.
6650 lt_prog_compiler_can_build_shared
=no
6655 if test -d /usr
/nec
; then
6656 lt_prog_compiler_pic
=-Kconform_pic
6661 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6668 lt_prog_compiler_pic
='-fPIC'
6674 lt_prog_compiler_pic
='-fPIC'
6678 # PORTME Check for flag to pass linker flags through the system compiler.
6681 lt_prog_compiler_wl
='-Wl,'
6682 if test "$host_cpu" = ia64
; then
6683 # AIX 5 now supports IA64 processor
6684 lt_prog_compiler_static
='-Bstatic'
6686 lt_prog_compiler_static
='-bnso -bI:/lib/syscalls.exp'
6690 mingw
* | pw32
* | os2
*)
6691 # This hack is so that the source file can tell whether it is being
6692 # built for inclusion in a dll (and should export symbols for example).
6693 lt_prog_compiler_pic
='-DDLL_EXPORT'
6696 hpux9
* | hpux10
* | hpux11
*)
6697 lt_prog_compiler_wl
='-Wl,'
6698 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6705 lt_prog_compiler_pic
='+Z'
6708 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6709 lt_prog_compiler_static
='${wl}-a ${wl}archive'
6712 irix5
* | irix6
* | nonstopux
*)
6713 lt_prog_compiler_wl
='-Wl,'
6714 # PIC (with -KPIC) is the default.
6715 lt_prog_compiler_static
='-non_shared'
6719 lt_prog_compiler_pic
='-KPIC'
6720 lt_prog_compiler_static
='-Bstatic'
6726 lt_prog_compiler_wl
='-Wl,'
6727 lt_prog_compiler_pic
='-KPIC'
6728 lt_prog_compiler_static
='-static'
6731 lt_prog_compiler_wl
='-Wl,'
6732 # All Alpha code is PIC.
6733 lt_prog_compiler_static
='-non_shared'
6738 osf3
* | osf4
* | osf5
*)
6739 lt_prog_compiler_wl
='-Wl,'
6740 # All OSF/1 code is PIC.
6741 lt_prog_compiler_static
='-non_shared'
6745 lt_prog_compiler_pic
='-Kpic'
6746 lt_prog_compiler_static
='-dn'
6750 lt_prog_compiler_wl
='-Wl,'
6751 lt_prog_compiler_pic
='-KPIC'
6752 lt_prog_compiler_static
='-Bstatic'
6756 lt_prog_compiler_wl
='-Qoption ld '
6757 lt_prog_compiler_pic
='-PIC'
6758 lt_prog_compiler_static
='-Bstatic'
6761 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
6762 lt_prog_compiler_wl
='-Wl,'
6763 lt_prog_compiler_pic
='-KPIC'
6764 lt_prog_compiler_static
='-Bstatic'
6768 if test -d /usr
/nec
;then
6769 lt_prog_compiler_pic
='-Kconform_pic'
6770 lt_prog_compiler_static
='-Bstatic'
6775 lt_prog_compiler_pic
='-pic'
6776 lt_prog_compiler_static
='-Bstatic'
6780 lt_prog_compiler_can_build_shared
=no
6785 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6786 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
6789 # Check to make sure the PIC flag actually works.
6791 if test -n "$lt_prog_compiler_pic"; then
6793 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6794 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
6795 if test "${lt_prog_compiler_pic_works+set}" = set; then
6796 echo $ECHO_N "(cached) $ECHO_C" >&6
6798 lt_prog_compiler_pic_works
=no
6799 ac_outfile
=conftest.
$ac_objext
6800 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
6801 lt_compiler_flag
="$lt_prog_compiler_pic -DPIC"
6802 # Insert the option either (1) after the last *FLAGS variable, or
6803 # (2) before a word containing "conftest.", or (3) at the end.
6804 # Note that $ac_compile itself does not contain backslashes and begins
6805 # with a dollar sign (not a hyphen), so the echo should work correctly.
6806 # The option is referenced via a variable to avoid confusing sed.
6807 lt_compile
=`echo "$ac_compile" | $SED \
6808 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6809 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6810 -e 's:$: $lt_compiler_flag:'`
6811 (eval echo "\"\$as_me:6811: $lt_compile\"" >&5)
6812 (eval "$lt_compile" 2>conftest.err
)
6814 cat conftest.err
>&5
6815 echo "$as_me:6815: \$? = $ac_status" >&5
6816 if (exit $ac_status) && test -s "$ac_outfile"; then
6817 # The compiler can only warn and ignore the option if not recognized
6818 # So say no if there are warnings
6819 if test ! -s conftest.err
; then
6820 lt_prog_compiler_pic_works
=yes
6826 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6827 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
6829 if test x
"$lt_prog_compiler_pic_works" = xyes
; then
6830 case $lt_prog_compiler_pic in
6832 *) lt_prog_compiler_pic
=" $lt_prog_compiler_pic" ;;
6835 lt_prog_compiler_pic
=
6836 lt_prog_compiler_can_build_shared
=no
6841 # For platforms which do not support PIC, -DPIC is meaningless:
6843 lt_prog_compiler_pic
=
6846 lt_prog_compiler_pic
="$lt_prog_compiler_pic -DPIC"
6850 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6851 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
6852 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6853 echo $ECHO_N "(cached) $ECHO_C" >&6
6855 lt_cv_prog_compiler_c_o
=no
6856 $rm -r conftest
2>/dev
/null
6860 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
6862 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6863 # that will create temporary files in the current directory regardless of
6864 # the output directory. Thus, making CWD read-only will cause this test
6865 # to fail, enabling locking or at least warning the user not to do parallel
6869 lt_compiler_flag
="-o out/conftest2.$ac_objext"
6870 # Insert the option either (1) after the last *FLAGS variable, or
6871 # (2) before a word containing "conftest.", or (3) at the end.
6872 # Note that $ac_compile itself does not contain backslashes and begins
6873 # with a dollar sign (not a hyphen), so the echo should work correctly.
6874 lt_compile
=`echo "$ac_compile" | $SED \
6875 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6876 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6877 -e 's:$: $lt_compiler_flag:'`
6878 (eval echo "\"\$as_me:6878: $lt_compile\"" >&5)
6879 (eval "$lt_compile" 2>out
/conftest.err
)
6881 cat out
/conftest.err
>&5
6882 echo "$as_me:6882: \$? = $ac_status" >&5
6883 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
6885 # The compiler can only warn and ignore the option if not recognized
6886 # So say no if there are warnings
6887 if test ! -s out
/conftest.err
; then
6888 lt_cv_prog_compiler_c_o
=yes
6893 # SGI C++ compiler will create directory out/ii_files/ for
6894 # template instantiation
6895 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
6896 $rm out
/* && rmdir out
6902 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6903 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
6906 hard_links
="nottested"
6907 if test "$lt_cv_prog_compiler_c_o" = no
&& test "$need_locks" != no
; then
6908 # do not overwrite the value of need_locks provided by the user
6909 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6910 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
6913 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
6915 ln conftest.a conftest.b
2>&5 || hard_links
=no
6916 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
6917 { echo "$as_me:$LINENO: result: $hard_links" >&5
6918 echo "${ECHO_T}$hard_links" >&6; }
6919 if test "$hard_links" = no
; then
6920 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6921 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6928 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6929 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
6932 allow_undefined_flag
=
6933 enable_shared_with_static_runtimes
=no
6935 archive_expsym_cmds
=
6936 old_archive_From_new_cmds
=
6937 old_archive_from_expsyms_cmds
=
6938 export_dynamic_flag_spec
=
6939 whole_archive_flag_spec
=
6940 thread_safe_flag_spec
=
6941 hardcode_libdir_flag_spec
=
6942 hardcode_libdir_flag_spec_ld
=
6943 hardcode_libdir_separator
=
6946 hardcode_shlibpath_var
=unsupported
6947 link_all_deplibs
=unknown
6948 hardcode_automatic
=no
6951 always_export_symbols
=no
6952 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6953 # include_expsyms should be a list of space-separated symbols to be *always*
6954 # included in the symbol list
6956 # exclude_expsyms can be an extended regexp of symbols to exclude
6957 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6958 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6959 # as well as any symbol that contains `d'.
6960 exclude_expsyms
="_GLOBAL_OFFSET_TABLE_"
6961 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6962 # platforms (ab)use it in PIC code, but their linkers get confused if
6963 # the symbol is explicitly referenced. Since portable code cannot
6964 # rely on this symbol name, it's probably fine to never include it in
6965 # preloaded symbol tables.
6966 extract_expsyms_cmds
=
6969 cygwin
* | mingw
* | pw32
*)
6970 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6971 # When not using gcc, we currently assume that we are using
6972 # Microsoft Visual C++.
6973 if test "$GCC" != yes; then
6983 if test "$with_gnu_ld" = yes; then
6984 # If archive_cmds runs LD, not CC, wlarc should be empty
6987 # See if GNU ld supports shared libraries.
6989 aix3
* | aix4
* | aix5
*)
6990 # On AIX/PPC, the GNU linker is very broken
6991 if test "$host_cpu" != ia64
; then
6995 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6996 *** to be unable to reliably create shared libraries on AIX.
6997 *** Therefore, libtool is disabling shared libraries support. If you
6998 *** really care for shared libraries, you may want to modify your PATH
6999 *** so that a non-GNU linker is found, and then restart.
7006 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)'
7007 hardcode_libdir_flag_spec
='-L$libdir'
7008 hardcode_minus_L
=yes
7010 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7011 # that the semantics of dynamic libraries on AmigaOS, at least up
7012 # to version 4, is to share data among multiple programs linked
7013 # with the same dynamic library. Since this doesn't match the
7014 # behavior of shared libraries on other platforms, we can't use
7020 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
7021 allow_undefined_flag
=unsupported
7022 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7023 # support --undefined. This deserves some investigation. FIXME
7024 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7030 cygwin
* | mingw
* | pw32
*)
7031 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7032 # as there is no search path for DLLs.
7033 hardcode_libdir_flag_spec
='-L$libdir'
7034 allow_undefined_flag
=unsupported
7035 always_export_symbols
=no
7036 enable_shared_with_static_runtimes
=yes
7037 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7039 if $LD --help 2>&1 |
grep 'auto-import' > /dev
/null
; then
7040 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7041 # If the export-symbols file already is a .def file (1st line
7042 # is EXPORTS), use it as is; otherwise, prepend...
7043 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7044 cp $export_symbols $output_objdir/$soname.def;
7046 echo EXPORTS > $output_objdir/$soname.def;
7047 cat $export_symbols >> $output_objdir/$soname.def;
7049 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7056 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
7057 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7060 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7061 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7066 if $LD -v 2>&1 |
grep 'BFD 2\.8' > /dev
/null
; then
7070 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7071 *** create shared libraries on Solaris systems. Therefore, libtool
7072 *** is disabling shared libraries support. We urge you to upgrade GNU
7073 *** binutils to release 2.9.1 or newer. Another option is to modify
7074 *** your PATH or compiler configuration so that the native linker is
7075 *** used, and then restart.
7078 elif $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
7079 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7080 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7087 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7090 hardcode_shlibpath_var
=no
7094 if $LD --help 2>&1 |
egrep ': supported targets:.* elf' > /dev
/null
; then
7095 tmp_archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7096 archive_cmds
="$tmp_archive_cmds"
7097 supports_anon_versioning
=no
7098 case `$LD -v 2>/dev/null` in
7099 *\
01.
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
7100 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
7101 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
7102 *\
2.11.
*) ;; # other 2.11 versions
7103 *) supports_anon_versioning
=yes ;;
7105 if test $supports_anon_versioning = yes; then
7106 archive_expsym_cmds
='$echo "{ global:" > $output_objdir/$libname.ver~
7107 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7108 $echo "local: *; };" >> $output_objdir/$libname.ver~
7109 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7111 archive_expsym_cmds
="$tmp_archive_cmds"
7119 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
7120 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7121 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7128 if test "$ld_shlibs" = yes; then
7129 runpath_var
=LD_RUN_PATH
7130 hardcode_libdir_flag_spec
='${wl}--rpath ${wl}$libdir'
7131 export_dynamic_flag_spec
='${wl}--export-dynamic'
7132 # ancient GNU ld didn't support --whole-archive et. al.
7133 if $LD --help 2>&1 |
grep 'no-whole-archive' > /dev
/null
; then
7134 whole_archive_flag_spec
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7136 whole_archive_flag_spec
=
7140 # PORTME fill in a description of your system's linker (not GNU ld)
7143 allow_undefined_flag
=unsupported
7144 always_export_symbols
=yes
7145 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'
7146 # Note: this linker hardcodes the directories in LIBPATH if there
7147 # are no directories specified by -L.
7148 hardcode_minus_L
=yes
7149 if test "$GCC" = yes && test -z "$link_static_flag"; then
7150 # Neither direct hardcoding nor static linking is supported with a
7152 hardcode_direct
=unsupported
7157 if test "$host_cpu" = ia64
; then
7158 # On IA64, the linker does run time linking by default, so we don't
7159 # have to do anything special.
7160 aix_use_runtimelinking
=no
7161 exp_sym_flag
='-Bexport'
7164 # If we're using GNU nm, then we don't want the "-C" option.
7165 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7166 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
7167 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'
7169 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'
7171 aix_use_runtimelinking
=no
7173 # Test if we are trying to use run time linking or normal
7174 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7175 # need to do runtime linking.
7176 case $host_os in aix4.
[23]|aix4.
[23].
*|aix5
*)
7177 for ld_flag
in $LDFLAGS; do
7178 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
7179 aix_use_runtimelinking
=yes
7185 exp_sym_flag
='-bexport'
7186 no_entry_flag
='-bnoentry'
7189 # When large executables or shared objects are built, AIX ld can
7190 # have problems creating the table of contents. If linking a library
7191 # or program results in "error TOC overflow" add -mminimal-toc to
7192 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7193 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7197 hardcode_libdir_separator
=':'
7198 link_all_deplibs
=yes
7200 if test "$GCC" = yes; then
7201 case $host_os in aix4.012|aix4.012.
*)
7202 # We only want to do this on AIX 4.2 and lower, the check
7203 # below for broken collect2 doesn't work under 4.3+
7204 collect2name
=`${CC} -print-prog-name=collect2`
7205 if test -f "$collect2name" && \
7206 strings "$collect2name" |
grep resolve_lib_name
>/dev
/null
7208 # We have reworked collect2
7211 # We have old collect2
7212 hardcode_direct
=unsupported
7213 # It fails to find uninstalled libraries when the uninstalled
7214 # path is not listed in the libpath. Setting hardcode_minus_L
7215 # to unsupported forces relinking
7216 hardcode_minus_L
=yes
7217 hardcode_libdir_flag_spec
='-L$libdir'
7218 hardcode_libdir_separator
=
7221 shared_flag
='-shared'
7224 if test "$host_cpu" = ia64
; then
7225 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7226 # chokes on -Wl,-G. The following line is correct:
7229 if test "$aix_use_runtimelinking" = yes; then
7230 shared_flag
='${wl}-G'
7232 shared_flag
='${wl}-bM:SRE'
7237 # It seems that -bexpall does not export symbols beginning with
7238 # underscore (_), so it is better to generate a list of symbols to export.
7239 always_export_symbols
=yes
7240 if test "$aix_use_runtimelinking" = yes; then
7241 # Warning - without using the other runtime loading flags (-brtl),
7242 # -berok will link without error, but may produce a broken library.
7243 allow_undefined_flag
='-berok'
7244 # Determine the default libpath from the value encoded in an empty executable.
7245 cat >conftest.
$ac_ext <<_ACEOF
7248 cat confdefs.h
>>conftest.
$ac_ext
7249 cat >>conftest.
$ac_ext <<_ACEOF
7250 /* end confdefs.h. */
7260 rm -f conftest.
$ac_objext conftest
$ac_exeext
7261 if { (ac_try
="$ac_link"
7263 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7264 *) ac_try_echo=$ac_try;;
7266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7267 (eval "$ac_link") 2>conftest.er1
7269 grep -v '^ *+' conftest.er1 >conftest.err
7271 cat conftest.err >&5
7272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7273 (exit $ac_status); } && {
7274 test -z "$ac_c_werror_flag" ||
7275 test ! -s conftest.err
7276 } && test -s conftest$ac_exeext &&
7277 $as_test_x conftest$ac_exeext; then
7279 aix_libpath=`dump
-H conftest
$ac_exeext 2>/dev
/null |
$SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7281 # Check for a 64-bit object if we didn't find anything.
7282 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; }
7285 echo "$as_me: failed program was:" >&5
7286 sed 's/^/| /' conftest.$ac_ext >&5
7291 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7292 conftest$ac_exeext conftest.$ac_ext
7293 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7295 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7296 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7298 if test "$host_cpu" = ia64
; then
7299 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
7300 allow_undefined_flag
="-z nodefs"
7301 archive_expsym_cmds
="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
7303 # Determine the default libpath from the value encoded in an empty executable.
7304 cat >conftest.$ac_ext <<_ACEOF
7307 cat confdefs.h >>conftest.$ac_ext
7308 cat >>conftest.$ac_ext <<_ACEOF
7309 /* end confdefs.h. */
7319 rm -f conftest.$ac_objext conftest$ac_exeext
7320 if { (ac_try="$ac_link"
7322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7323 *) ac_try_echo=$ac_try;;
7325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7326 (eval "$ac_link") 2>conftest.er1
7328 grep -v '^
*+' conftest.er1 >conftest.err
7330 cat conftest.err >&5
7331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7332 (exit $ac_status); } && {
7333 test -z "$ac_c_werror_flag" ||
7334 test ! -s conftest.err
7335 } && test -s conftest$ac_exeext &&
7336 $as_test_x conftest$ac_exeext; then
7338 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings
/,/^$
/ { /^
0/ { s
/^
0 *\
(.
*\
)$
/\
1/; p
; }
7340 # Check for a 64-bit object if we didn't
find anything.
7341 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; }
7344 echo "$as_me: failed program was:" >&5
7345 sed 's/^/| /' conftest.
$ac_ext >&5
7350 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7351 conftest
$ac_exeext conftest.
$ac_ext
7352 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
7354 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
7355 # Warning - without using the other run time loading flags,
7356 # -berok will link without error, but may produce a broken library.
7357 no_undefined_flag
=' ${wl}-bernotok'
7358 allow_undefined_flag
=' ${wl}-berok'
7359 # -bexpall does not export symbols beginning with underscore (_)
7360 always_export_symbols
=yes
7361 # Exported symbols can be pulled into shared objects from archives
7362 whole_archive_flag_spec
=' '
7363 archive_cmds_need_lc
=yes
7364 # This is similar to how AIX traditionally builds it's shared libraries.
7365 archive_expsym_cmds
="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7371 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)'
7372 hardcode_libdir_flag_spec
='-L$libdir'
7373 hardcode_minus_L
=yes
7374 # see comment about different semantics on the GNU ld section
7379 export_dynamic_flag_spec
=-rdynamic
7382 cygwin
* | mingw
* | pw32
*)
7383 # When not using gcc, we currently assume that we are using
7384 # Microsoft Visual C++.
7385 # hardcode_libdir_flag_spec is actually meaningless, as there is
7386 # no search path for DLLs.
7387 hardcode_libdir_flag_spec
=' '
7388 allow_undefined_flag
=unsupported
7389 # Tell ltmain to make .lib files, not .a files.
7391 # Tell ltmain to make .dll files, not .so files.
7393 # FIXME: Setting linknames here is a bad hack.
7394 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7395 # The linker will automatically build a .lib file if we build a DLL.
7396 old_archive_From_new_cmds
='true'
7397 # FIXME: Should let the user specify the lib program.
7398 old_archive_cmds
='lib /OUT:$oldlib$oldobjs$old_deplibs'
7399 fix_srcfile_path
='`cygpath -w "$srcfile"`'
7400 enable_shared_with_static_runtimes
=yes
7403 darwin
* | rhapsody
*)
7404 if test "$GXX" = yes ; then
7405 archive_cmds_need_lc
=no
7407 rhapsody
* | darwin1.
[012])
7408 allow_undefined_flag
='-undefined suppress'
7411 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7412 allow_undefined_flag
='-flat_namespace -undefined suppress'
7414 case ${MACOSX_DEPLOYMENT_TARGET} in
7416 allow_undefined_flag
='-flat_namespace -undefined suppress'
7419 allow_undefined_flag
='-undefined dynamic_lookup'
7425 lt_int_apple_cc_single_mod
=no
7426 output_verbose_link_cmd
='echo'
7427 if $CC -dumpspecs 2>&1 |
grep 'single_module' >/dev
/null
; then
7428 lt_int_apple_cc_single_mod
=yes
7430 if test "X$lt_int_apple_cc_single_mod" = Xyes
; then
7431 archive_cmds
='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7433 archive_cmds
='$CC -r ${wl}-bind_at_load -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'
7435 module_cmds
='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7436 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7437 if test "X$lt_int_apple_cc_single_mod" = Xyes
; then
7438 archive_expsym_cmds
='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}'
7440 archive_expsym_cmds
='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
7442 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}'
7444 hardcode_automatic
=yes
7445 hardcode_shlibpath_var
=unsupported
7446 whole_archive_flag_spec
='-all_load $convenience'
7447 link_all_deplibs
=yes
7454 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7455 hardcode_libdir_flag_spec
='-L$libdir'
7456 hardcode_shlibpath_var
=no
7463 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7464 # support. Future versions do this automatically, but an explicit c++rt0.o
7465 # does not break anything, and helps significantly (at the cost of a little
7468 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7469 hardcode_libdir_flag_spec
='-R$libdir'
7471 hardcode_shlibpath_var
=no
7474 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7476 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7478 hardcode_minus_L
=yes
7479 hardcode_shlibpath_var
=no
7482 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7483 freebsd
* | kfreebsd
*-gnu)
7484 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7485 hardcode_libdir_flag_spec
='-R$libdir'
7487 hardcode_shlibpath_var
=no
7491 if test "$GCC" = yes; then
7492 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'
7494 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'
7496 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
7497 hardcode_libdir_separator
=:
7500 # hardcode_minus_L: Not really in the search PATH,
7501 # but as the default location of the library.
7502 hardcode_minus_L
=yes
7503 export_dynamic_flag_spec
='${wl}-E'
7507 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
7510 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7513 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7519 archive_cmds
='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7522 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7526 if test "$with_gnu_ld" = no
; then
7529 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
7530 hardcode_libdir_flag_spec_ld
='+b $libdir'
7531 hardcode_libdir_separator
=:
7533 hardcode_shlibpath_var
=no
7536 hardcode_libdir_flag_spec
='-L$libdir'
7538 hardcode_shlibpath_var
=no
7540 # hardcode_minus_L: Not really in the search PATH,
7541 # but as the default location of the library.
7542 hardcode_minus_L
=yes
7545 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
7546 hardcode_libdir_separator
=:
7548 export_dynamic_flag_spec
='${wl}-E'
7550 # hardcode_minus_L: Not really in the search PATH,
7551 # but as the default location of the library.
7552 hardcode_minus_L
=yes
7558 irix5
* | irix6
* | nonstopux
*)
7559 if test "$GCC" = yes; then
7560 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'
7562 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'
7563 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
7565 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
7566 hardcode_libdir_separator
=:
7567 link_all_deplibs
=yes
7571 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
7572 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7574 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7576 hardcode_libdir_flag_spec
='-R$libdir'
7578 hardcode_shlibpath_var
=no
7582 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7584 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
7585 hardcode_libdir_separator
=:
7586 hardcode_shlibpath_var
=no
7591 hardcode_shlibpath_var
=no
7592 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7593 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7594 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
7595 export_dynamic_flag_spec
='${wl}-E'
7598 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
7599 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7600 hardcode_libdir_flag_spec
='-R$libdir'
7603 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7604 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
7611 hardcode_libdir_flag_spec
='-L$libdir'
7612 hardcode_minus_L
=yes
7613 allow_undefined_flag
=unsupported
7614 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'
7615 old_archive_From_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7619 if test "$GCC" = yes; then
7620 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
7621 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'
7623 allow_undefined_flag
=' -expect_unresolved \*'
7624 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'
7626 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
7627 hardcode_libdir_separator
=:
7630 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
7631 if test "$GCC" = yes; then
7632 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
7633 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'
7634 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
7636 allow_undefined_flag
=' -expect_unresolved \*'
7637 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'
7638 archive_expsym_cmds
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7639 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
7641 # Both c and cxx compiler support -rpath directly
7642 hardcode_libdir_flag_spec
='-rpath $libdir'
7644 hardcode_libdir_separator
=:
7648 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7649 hardcode_shlibpath_var
=no
7650 export_dynamic_flag_spec
='${wl}-Bexport'
7651 runpath_var
=LD_RUN_PATH
7652 hardcode_runpath_var
=yes
7656 no_undefined_flag
=' -z text'
7657 if test "$GCC" = yes; then
7658 archive_cmds
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7659 archive_expsym_cmds
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7660 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7662 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7663 archive_expsym_cmds
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7664 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7666 hardcode_libdir_flag_spec
='-R$libdir'
7667 hardcode_shlibpath_var
=no
7669 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
7670 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7671 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract' ;;
7673 link_all_deplibs
=yes
7677 if test "x$host_vendor" = xsequent
; then
7678 # Use $CC to link under sequent, because it throws in some extra .o
7679 # files that make .init and .fini sections work.
7680 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7682 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7684 hardcode_libdir_flag_spec
='-L$libdir'
7686 hardcode_minus_L
=yes
7687 hardcode_shlibpath_var
=no
7691 case $host_vendor in
7693 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7694 hardcode_direct
=yes # is this really true???
7697 ## LD is ld it makes a PLAMLIB
7698 ## CC just makes a GrossModule.
7699 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7700 reload_cmds
='$CC -r -o $output$reload_objs'
7704 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7705 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
7708 runpath_var
='LD_RUN_PATH'
7709 hardcode_shlibpath_var
=no
7713 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7714 hardcode_shlibpath_var
=no
7715 export_dynamic_flag_spec
='-Bexport'
7719 if test -d /usr
/nec
; then
7720 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7721 hardcode_shlibpath_var
=no
7722 runpath_var
=LD_RUN_PATH
7723 hardcode_runpath_var
=yes
7729 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7732 hardcode_shlibpath_var
=no
7733 hardcode_runpath_var
=yes
7734 runpath_var
=LD_RUN_PATH
7737 sysv5OpenUNIX8
* | sysv5UnixWare7
* | sysv5uw
[78]* | unixware7
*)
7738 no_undefined_flag
='${wl}-z ${wl}text'
7739 if test "$GCC" = yes; then
7740 archive_cmds
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7742 archive_cmds
='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7744 runpath_var
='LD_RUN_PATH'
7745 hardcode_shlibpath_var
=no
7749 no_undefined_flag
=' -z text'
7750 # $CC -shared without GNU ld will not create a library from C++
7751 # object files and a static libstdc++, better avoid it by now
7752 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7753 archive_expsym_cmds
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7754 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7755 hardcode_libdir_flag_spec
=
7756 hardcode_shlibpath_var
=no
7757 runpath_var
='LD_RUN_PATH'
7761 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7762 hardcode_libdir_flag_spec
='-L$libdir'
7763 hardcode_shlibpath_var
=no
7772 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7773 echo "${ECHO_T}$ld_shlibs" >&6; }
7774 test "$ld_shlibs" = no
&& can_build_shared
=no
7776 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
7777 if test "$GCC" = yes; then
7778 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7782 # Do we need to explicitly link libc?
7784 case "x$archive_cmds_need_lc" in
7786 # Assume -lc should be added
7787 archive_cmds_need_lc
=yes
7789 if test "$enable_shared" = yes && test "$GCC" = yes; then
7790 case $archive_cmds in
7792 # FIXME: we may have to deal with multi-command sequences.
7795 # Test whether the compiler implicitly links with -lc since on some
7796 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7797 # to ld, don't add -lc before -lgcc.
7798 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7799 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
7801 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
7803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7804 (eval $ac_compile) 2>&5
7806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7807 (exit $ac_status); } 2>conftest.err
; then
7810 libobjs
=conftest.
$ac_objext
7812 wl
=$lt_prog_compiler_wl
7818 lt_save_allow_undefined_flag
=$allow_undefined_flag
7819 allow_undefined_flag
=
7820 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7821 (eval $archive_cmds 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
7823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7824 (exit $ac_status); }
7826 archive_cmds_need_lc
=no
7828 archive_cmds_need_lc
=yes
7830 allow_undefined_flag
=$lt_save_allow_undefined_flag
7832 cat conftest.err
1>&5
7835 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7836 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
7843 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7844 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
7846 libname_spec
='lib$name'
7854 shlibpath_overrides_runpath
=unknown
7856 dynamic_linker
="$host_os ld.so"
7857 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
7858 if test "$GCC" = yes; then
7859 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7860 if echo "$sys_lib_search_path_spec" |
grep ';' >/dev
/null
; then
7861 # if the path contains ";" then we assume it to be the separator
7862 # otherwise default to the standard path separator (i.e. ":") - it is
7863 # assumed that no part of a normal pathname contains ";" but that should
7864 # okay in the real world where ";" in dirpaths is itself problematic.
7865 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7867 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7870 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
7872 need_lib_prefix
=unknown
7873 hardcode_into_libs
=no
7875 # when you set need_version to no, make sure it does not cause -set_version
7876 # flags to be left without arguments
7877 need_version
=unknown
7882 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
7883 shlibpath_var
=LIBPATH
7885 # AIX 3 has no versioning support, so we append a major version to the name.
7886 soname_spec
='${libname}${release}${shared_ext}$major'
7893 hardcode_into_libs
=yes
7894 if test "$host_cpu" = ia64
; then
7895 # AIX 5 supports IA64
7896 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7897 shlibpath_var
=LD_LIBRARY_PATH
7899 # With GCC up to 2.95.x, collect2 would create an import file
7900 # for dependence libraries. The import file would start with
7901 # the line `#! .'. This would cause the generated library to
7902 # depend on `.', always an invalid library. This was fixed in
7903 # development snapshots of GCC prior to 3.0.
7905 aix4 | aix4.
[01] | aix4.
[01].
*)
7906 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7908 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
7915 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7916 # soname into executable. Probably we can add versioning support to
7917 # collect2, so additional links can be useful in future.
7918 if test "$aix_use_runtimelinking" = yes; then
7919 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7920 # instead of lib<name>.a to let people know that these are not
7921 # typical AIX shared libraries.
7922 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7924 # We preserve .a as extension for shared libraries through AIX4.2
7925 # and later when we are not doing run time linking.
7926 library_names_spec
='${libname}${release}.a $libname.a'
7927 soname_spec
='${libname}${release}${shared_ext}$major'
7929 shlibpath_var
=LIBPATH
7934 library_names_spec
='$libname.ixlibrary $libname.a'
7935 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7936 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'
7940 library_names_spec
='${libname}${shared_ext}'
7941 dynamic_linker
="$host_os ld.so"
7942 shlibpath_var
=LIBRARY_PATH
7948 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7949 soname_spec
='${libname}${release}${shared_ext}$major'
7950 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
7951 shlibpath_var
=LD_LIBRARY_PATH
7952 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7953 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
7954 # the default ld.so.conf also contains /usr/contrib/lib and
7955 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7956 # libtool to hard-code these into programs
7959 cygwin
* | mingw
* | pw32
*)
7960 version_type
=windows
7965 case $GCC,$host_os in
7966 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
7967 library_names_spec
='$libname.dll.a'
7968 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7969 postinstall_cmds
='base_file=`basename \${file}`~
7970 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7971 dldir=$destdir/`dirname \$dlpath`~
7972 test -d \$dldir || mkdir -p \$dldir~
7973 $install_prog $dir/$dlname \$dldir/$dlname'
7974 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7975 dlpath=$dir/\$dldll~
7977 shlibpath_overrides_runpath
=yes
7981 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7982 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7983 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
7986 # MinGW DLLs use traditional 'lib' prefix
7987 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7988 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7989 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
7990 # It is most probably a Windows format PATH printed by
7991 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7992 # path with ; separators, and with drive letters. We can handle the
7993 # drive letters (cygwin fileutils understands them), so leave them,
7994 # especially as we might pass files found there to a mingw objdump,
7995 # which wouldn't understand a cygwinified path. Ahh.
7996 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7998 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8002 # pw32 DLLs use 'pw' prefix rather than 'lib'
8003 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
8009 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8012 dynamic_linker
='Win32 ld.exe'
8013 # FIXME: first we should search . and the directory the executable is in
8017 darwin
* | rhapsody
*)
8018 dynamic_linker
="$host_os dyld"
8022 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8023 soname_spec
='${libname}${release}${major}$shared_ext'
8024 shlibpath_overrides_runpath
=yes
8025 shlibpath_var
=DYLD_LIBRARY_PATH
8026 shrext
='$(test .$module = .yes && echo .so || echo .dylib)'
8027 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8028 if test "$GCC" = yes; then
8029 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"`
8031 sys_lib_search_path_spec
='/lib /usr/lib /usr/local/lib'
8033 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
8040 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8041 soname_spec
='${libname}${release}${shared_ext}$major'
8042 shlibpath_var
=LD_LIBRARY_PATH
8053 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8054 soname_spec
='${libname}${release}${shared_ext}$major'
8055 shlibpath_var
=LD_LIBRARY_PATH
8056 shlibpath_overrides_runpath
=no
8057 hardcode_into_libs
=yes
8058 dynamic_linker
='GNU ld.so'
8062 objformat
=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
8063 version_type
=freebsd-
$objformat
8064 case $version_type in
8066 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8071 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8075 shlibpath_var
=LD_LIBRARY_PATH
8078 shlibpath_overrides_runpath
=yes
8080 freebsd3.01
* | freebsdelf3.01
*)
8081 shlibpath_overrides_runpath
=yes
8082 hardcode_into_libs
=yes
8085 shlibpath_overrides_runpath
=no
8086 hardcode_into_libs
=yes
8095 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8096 soname_spec
='${libname}${release}${shared_ext}$major'
8097 shlibpath_var
=LD_LIBRARY_PATH
8098 hardcode_into_libs
=yes
8101 hpux9
* | hpux10
* | hpux11
*)
8102 # Give a soname corresponding to the major version so that dld.sl refuses to
8103 # link against other versions.
8110 hardcode_into_libs
=yes
8111 dynamic_linker
="$host_os dld.so"
8112 shlibpath_var
=LD_LIBRARY_PATH
8113 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
8114 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8115 soname_spec
='${libname}${release}${shared_ext}$major'
8116 if test "X$HPUX_IA64_MODE" = X32
; then
8117 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8119 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
8121 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
8125 hardcode_into_libs
=yes
8126 dynamic_linker
="$host_os dld.sl"
8127 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
8128 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
8129 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8130 soname_spec
='${libname}${release}${shared_ext}$major'
8131 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8132 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
8136 dynamic_linker
="$host_os dld.sl"
8137 shlibpath_var
=SHLIB_PATH
8138 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
8139 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8140 soname_spec
='${libname}${release}${shared_ext}$major'
8143 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8144 postinstall_cmds
='chmod 555 $lib'
8147 irix5
* | irix6
* | nonstopux
*)
8149 nonstopux
*) version_type
=nonstopux
;;
8151 if test "$lt_cv_prog_gnu_ld" = yes; then
8159 soname_spec
='${libname}${release}${shared_ext}$major'
8160 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8162 irix5
* | nonstopux
*)
8166 case $LD in # libtool.m4 will add one of these switches to LD
8167 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
8168 libsuff
= shlibsuff
= libmagic
=32-bit;;
8169 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
8170 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
8171 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
8172 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
8173 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
8177 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
8178 shlibpath_overrides_runpath
=no
8179 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8180 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
8181 hardcode_into_libs
=yes
8184 # No shared lib support for Linux oldld, aout, or coff.
8185 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
8189 # This must be Linux ELF.
8194 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8195 soname_spec
='${libname}${release}${shared_ext}$major'
8196 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8197 shlibpath_var
=LD_LIBRARY_PATH
8198 shlibpath_overrides_runpath
=no
8199 # This implies no fast_install, which is unacceptable.
8200 # Some rework will be needed to allow for fast_install
8201 # before this can be enabled.
8202 hardcode_into_libs
=yes
8204 # We used to test for /lib/ld.so.1 and disable shared libraries on
8205 # powerpc, because MkLinux only supported shared libraries with the
8206 # GNU dynamic linker. Since this was broken with cross compilers,
8207 # most powerpc-linux boxes support dynamic linking these days and
8208 # people can always --disable-shared, the test was removed, and we
8209 # assume the GNU/Linux dynamic linker is in use.
8210 dynamic_linker
='GNU/Linux ld.so'
8217 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
8218 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8219 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8220 dynamic_linker
='NetBSD (a.out) ld.so'
8222 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
8223 soname_spec
='${libname}${release}${shared_ext}$major'
8224 dynamic_linker
='NetBSD ld.elf_so'
8226 shlibpath_var
=LD_LIBRARY_PATH
8227 shlibpath_overrides_runpath
=yes
8228 hardcode_into_libs
=yes
8233 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8234 shlibpath_var
=LD_LIBRARY_PATH
8235 shlibpath_overrides_runpath
=yes
8242 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8243 soname_spec
='${libname}${release}${shared_ext}$major'
8244 shlibpath_var
=LD_LIBRARY_PATH
8245 shlibpath_overrides_runpath
=yes
8252 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8253 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8254 shlibpath_var
=LD_LIBRARY_PATH
8255 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8257 openbsd2.
[89] | openbsd2.
[89].
*)
8258 shlibpath_overrides_runpath
=no
8261 shlibpath_overrides_runpath
=yes
8265 shlibpath_overrides_runpath
=yes
8270 libname_spec
='$name'
8273 library_names_spec
='$libname${shared_ext} $libname.a'
8274 dynamic_linker
='OS/2 ld.exe'
8275 shlibpath_var
=LIBPATH
8278 osf3
* | osf4
* | osf5
*)
8282 soname_spec
='${libname}${release}${shared_ext}$major'
8283 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8284 shlibpath_var
=LD_LIBRARY_PATH
8285 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8286 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
8291 soname_spec
='${libname}${release}${shared_ext}$major'
8292 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8293 shlibpath_var
=LD_LIBRARY_PATH
8300 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8301 soname_spec
='${libname}${release}${shared_ext}$major'
8302 shlibpath_var
=LD_LIBRARY_PATH
8303 shlibpath_overrides_runpath
=yes
8304 hardcode_into_libs
=yes
8305 # ldd complains unless libraries are executable
8306 postinstall_cmds
='chmod +x $lib'
8311 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8312 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8313 shlibpath_var
=LD_LIBRARY_PATH
8314 shlibpath_overrides_runpath
=yes
8315 if test "$with_gnu_ld" = yes; then
8321 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
8323 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8324 soname_spec
='${libname}${release}${shared_ext}$major'
8325 shlibpath_var
=LD_LIBRARY_PATH
8326 case $host_vendor in
8328 shlibpath_overrides_runpath
=no
8330 export_dynamic_flag_spec
='${wl}-Blargedynsym'
8331 runpath_var
=LD_RUN_PATH
8339 shlibpath_overrides_runpath
=no
8340 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
8346 if test -d /usr
/nec
;then
8348 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8349 soname_spec
='$libname${shared_ext}.$major'
8350 shlibpath_var
=LD_LIBRARY_PATH
8356 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8357 soname_spec
='${libname}${release}${shared_ext}$major'
8358 shlibpath_var
=LD_LIBRARY_PATH
8365 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8366 echo "${ECHO_T}$dynamic_linker" >&6; }
8367 test "$dynamic_linker" = no
&& can_build_shared
=no
8369 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8370 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
8372 if test -n "$hardcode_libdir_flag_spec" || \
8373 test -n "$runpath_var " || \
8374 test "X$hardcode_automatic"="Xyes" ; then
8376 # We can hardcode non-existant directories.
8377 if test "$hardcode_direct" != no
&&
8378 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8379 # have to relink, otherwise we might link with an installed library
8380 # when we should be linking with a yet-to-be-installed one
8381 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8382 test "$hardcode_minus_L" != no
; then
8383 # Linking always hardcodes the temporary library directory.
8384 hardcode_action
=relink
8386 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8387 hardcode_action
=immediate
8390 # We cannot hardcode anything, or else we can only hardcode existing
8392 hardcode_action
=unsupported
8394 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
8395 echo "${ECHO_T}$hardcode_action" >&6; }
8397 if test "$hardcode_action" = relink
; then
8398 # Fast installation is not supported
8399 enable_fast_install
=no
8400 elif test "$shlibpath_overrides_runpath" = yes ||
8401 test "$enable_shared" = no
; then
8402 # Fast installation is not necessary
8403 enable_fast_install
=needless
8408 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8409 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
8410 if test -n "$STRIP" && $STRIP -V 2>&1 |
grep "GNU strip" >/dev
/null
; then
8411 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
8412 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
8413 { echo "$as_me:$LINENO: result: yes" >&5
8414 echo "${ECHO_T}yes" >&6; }
8416 # FIXME - insert some real tests, host_os isn't really good enough
8419 if test -n "$STRIP" ; then
8420 striplib
="$STRIP -x"
8421 { echo "$as_me:$LINENO: result: yes" >&5
8422 echo "${ECHO_T}yes" >&6; }
8424 { echo "$as_me:$LINENO: result: no" >&5
8425 echo "${ECHO_T}no" >&6; }
8429 { echo "$as_me:$LINENO: result: no" >&5
8430 echo "${ECHO_T}no" >&6; }
8435 if test "x$enable_dlopen" != xyes
; then
8436 enable_dlopen
=unknown
8437 enable_dlopen_self
=unknown
8438 enable_dlopen_self_static
=unknown
8445 lt_cv_dlopen
="load_add_on"
8447 lt_cv_dlopen_self
=yes
8451 lt_cv_dlopen
="LoadLibrary"
8456 lt_cv_dlopen
="dlopen"
8461 # if libdl is installed we need to link against it
8462 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8463 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
8464 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8465 echo $ECHO_N "(cached) $ECHO_C" >&6
8467 ac_check_lib_save_LIBS
=$LIBS
8469 cat >conftest.
$ac_ext <<_ACEOF
8472 cat confdefs.h
>>conftest.
$ac_ext
8473 cat >>conftest.
$ac_ext <<_ACEOF
8474 /* end confdefs.h. */
8476 /* Override any GCC internal prototype to avoid an error.
8477 Use char because int might match the return type of a GCC
8478 builtin and then its argument prototype would still apply. */
8491 rm -f conftest.
$ac_objext conftest
$ac_exeext
8492 if { (ac_try
="$ac_link"
8494 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8495 *) ac_try_echo=$ac_try;;
8497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8498 (eval "$ac_link") 2>conftest.er1
8500 grep -v '^ *+' conftest.er1 >conftest.err
8502 cat conftest.err >&5
8503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8504 (exit $ac_status); } && {
8505 test -z "$ac_c_werror_flag" ||
8506 test ! -s conftest.err
8507 } && test -s conftest$ac_exeext &&
8508 $as_test_x conftest$ac_exeext; then
8509 ac_cv_lib_dl_dlopen=yes
8511 echo "$as_me: failed program was:" >&5
8512 sed 's/^/| /' conftest.$ac_ext >&5
8514 ac_cv_lib_dl_dlopen=no
8517 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8518 conftest$ac_exeext conftest.$ac_ext
8519 LIBS=$ac_check_lib_save_LIBS
8521 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8522 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
8523 if test $ac_cv_lib_dl_dlopen = yes; then
8524 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8529 lt_cv_dlopen_self=yes
8536 { echo "$as_me:$LINENO: checking for shl_load" >&5
8537 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
8538 if test "${ac_cv_func_shl_load+set}" = set; then
8539 echo $ECHO_N "(cached) $ECHO_C" >&6
8541 cat >conftest.$ac_ext <<_ACEOF
8544 cat confdefs.h >>conftest.$ac_ext
8545 cat >>conftest.$ac_ext <<_ACEOF
8546 /* end confdefs.h. */
8547 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8548 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8549 #define shl_load innocuous_shl_load
8551 /* System header to define __stub macros and hopefully few prototypes,
8552 which can conflict with char shl_load (); below.
8553 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8554 <limits.h> exists even on freestanding compilers. */
8557 # include <limits.h>
8559 # include <assert.h>
8564 /* Override any GCC internal prototype to avoid an error.
8565 Use char because int might match the return type of a GCC
8566 builtin and then its argument prototype would still apply. */
8571 /* The GNU C library defines this for functions which it implements
8572 to always fail with ENOSYS. Some functions are actually named
8573 something starting with __ and the normal name is an alias. */
8574 #if defined __stub_shl_load || defined __stub___shl_load
8586 rm -f conftest.$ac_objext conftest$ac_exeext
8587 if { (ac_try="$ac_link"
8589 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8590 *) ac_try_echo
=$ac_try;;
8592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8593 (eval "$ac_link") 2>conftest.er1
8595 grep -v '^ *+' conftest.er1
>conftest.err
8597 cat conftest.err
>&5
8598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8599 (exit $ac_status); } && {
8600 test -z "$ac_c_werror_flag" ||
8601 test ! -s conftest.err
8602 } && test -s conftest
$ac_exeext &&
8603 $as_test_x conftest
$ac_exeext; then
8604 ac_cv_func_shl_load
=yes
8606 echo "$as_me: failed program was:" >&5
8607 sed 's/^/| /' conftest.
$ac_ext >&5
8609 ac_cv_func_shl_load
=no
8612 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8613 conftest
$ac_exeext conftest.
$ac_ext
8615 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8616 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
8617 if test $ac_cv_func_shl_load = yes; then
8618 lt_cv_dlopen
="shl_load"
8620 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8621 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
8622 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8623 echo $ECHO_N "(cached) $ECHO_C" >&6
8625 ac_check_lib_save_LIBS
=$LIBS
8627 cat >conftest.
$ac_ext <<_ACEOF
8630 cat confdefs.h
>>conftest.
$ac_ext
8631 cat >>conftest.
$ac_ext <<_ACEOF
8632 /* end confdefs.h. */
8634 /* Override any GCC internal prototype to avoid an error.
8635 Use char because int might match the return type of a GCC
8636 builtin and then its argument prototype would still apply. */
8649 rm -f conftest.
$ac_objext conftest
$ac_exeext
8650 if { (ac_try
="$ac_link"
8652 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8653 *) ac_try_echo=$ac_try;;
8655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8656 (eval "$ac_link") 2>conftest.er1
8658 grep -v '^ *+' conftest.er1 >conftest.err
8660 cat conftest.err >&5
8661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8662 (exit $ac_status); } && {
8663 test -z "$ac_c_werror_flag" ||
8664 test ! -s conftest.err
8665 } && test -s conftest$ac_exeext &&
8666 $as_test_x conftest$ac_exeext; then
8667 ac_cv_lib_dld_shl_load=yes
8669 echo "$as_me: failed program was:" >&5
8670 sed 's/^/| /' conftest.$ac_ext >&5
8672 ac_cv_lib_dld_shl_load=no
8675 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8676 conftest$ac_exeext conftest.$ac_ext
8677 LIBS=$ac_check_lib_save_LIBS
8679 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8680 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
8681 if test $ac_cv_lib_dld_shl_load = yes; then
8682 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8684 { echo "$as_me:$LINENO: checking for dlopen" >&5
8685 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
8686 if test "${ac_cv_func_dlopen+set}" = set; then
8687 echo $ECHO_N "(cached) $ECHO_C" >&6
8689 cat >conftest.$ac_ext <<_ACEOF
8692 cat confdefs.h >>conftest.$ac_ext
8693 cat >>conftest.$ac_ext <<_ACEOF
8694 /* end confdefs.h. */
8695 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8696 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8697 #define dlopen innocuous_dlopen
8699 /* System header to define __stub macros and hopefully few prototypes,
8700 which can conflict with char dlopen (); below.
8701 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8702 <limits.h> exists even on freestanding compilers. */
8705 # include <limits.h>
8707 # include <assert.h>
8712 /* Override any GCC internal prototype to avoid an error.
8713 Use char because int might match the return type of a GCC
8714 builtin and then its argument prototype would still apply. */
8719 /* The GNU C library defines this for functions which it implements
8720 to always fail with ENOSYS. Some functions are actually named
8721 something starting with __ and the normal name is an alias. */
8722 #if defined __stub_dlopen || defined __stub___dlopen
8734 rm -f conftest.$ac_objext conftest$ac_exeext
8735 if { (ac_try="$ac_link"
8737 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8738 *) ac_try_echo
=$ac_try;;
8740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8741 (eval "$ac_link") 2>conftest.er1
8743 grep -v '^ *+' conftest.er1
>conftest.err
8745 cat conftest.err
>&5
8746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8747 (exit $ac_status); } && {
8748 test -z "$ac_c_werror_flag" ||
8749 test ! -s conftest.err
8750 } && test -s conftest
$ac_exeext &&
8751 $as_test_x conftest
$ac_exeext; then
8752 ac_cv_func_dlopen
=yes
8754 echo "$as_me: failed program was:" >&5
8755 sed 's/^/| /' conftest.
$ac_ext >&5
8757 ac_cv_func_dlopen
=no
8760 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8761 conftest
$ac_exeext conftest.
$ac_ext
8763 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8764 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
8765 if test $ac_cv_func_dlopen = yes; then
8766 lt_cv_dlopen
="dlopen"
8768 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8769 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
8770 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8771 echo $ECHO_N "(cached) $ECHO_C" >&6
8773 ac_check_lib_save_LIBS
=$LIBS
8775 cat >conftest.
$ac_ext <<_ACEOF
8778 cat confdefs.h
>>conftest.
$ac_ext
8779 cat >>conftest.
$ac_ext <<_ACEOF
8780 /* end confdefs.h. */
8782 /* Override any GCC internal prototype to avoid an error.
8783 Use char because int might match the return type of a GCC
8784 builtin and then its argument prototype would still apply. */
8797 rm -f conftest.
$ac_objext conftest
$ac_exeext
8798 if { (ac_try
="$ac_link"
8800 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8801 *) ac_try_echo=$ac_try;;
8803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8804 (eval "$ac_link") 2>conftest.er1
8806 grep -v '^ *+' conftest.er1 >conftest.err
8808 cat conftest.err >&5
8809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8810 (exit $ac_status); } && {
8811 test -z "$ac_c_werror_flag" ||
8812 test ! -s conftest.err
8813 } && test -s conftest$ac_exeext &&
8814 $as_test_x conftest$ac_exeext; then
8815 ac_cv_lib_dl_dlopen=yes
8817 echo "$as_me: failed program was:" >&5
8818 sed 's/^/| /' conftest.$ac_ext >&5
8820 ac_cv_lib_dl_dlopen=no
8823 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8824 conftest$ac_exeext conftest.$ac_ext
8825 LIBS=$ac_check_lib_save_LIBS
8827 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8828 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
8829 if test $ac_cv_lib_dl_dlopen = yes; then
8830 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8832 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8833 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
8834 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8835 echo $ECHO_N "(cached) $ECHO_C" >&6
8837 ac_check_lib_save_LIBS=$LIBS
8839 cat >conftest.$ac_ext <<_ACEOF
8842 cat confdefs.h >>conftest.$ac_ext
8843 cat >>conftest.$ac_ext <<_ACEOF
8844 /* end confdefs.h. */
8846 /* Override any GCC internal prototype to avoid an error.
8847 Use char because int might match the return type of a GCC
8848 builtin and then its argument prototype would still apply. */
8861 rm -f conftest.$ac_objext conftest$ac_exeext
8862 if { (ac_try="$ac_link"
8864 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8865 *) ac_try_echo
=$ac_try;;
8867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8868 (eval "$ac_link") 2>conftest.er1
8870 grep -v '^ *+' conftest.er1
>conftest.err
8872 cat conftest.err
>&5
8873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8874 (exit $ac_status); } && {
8875 test -z "$ac_c_werror_flag" ||
8876 test ! -s conftest.err
8877 } && test -s conftest
$ac_exeext &&
8878 $as_test_x conftest
$ac_exeext; then
8879 ac_cv_lib_svld_dlopen
=yes
8881 echo "$as_me: failed program was:" >&5
8882 sed 's/^/| /' conftest.
$ac_ext >&5
8884 ac_cv_lib_svld_dlopen
=no
8887 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8888 conftest
$ac_exeext conftest.
$ac_ext
8889 LIBS
=$ac_check_lib_save_LIBS
8891 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8892 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
8893 if test $ac_cv_lib_svld_dlopen = yes; then
8894 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
8896 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8897 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
8898 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8899 echo $ECHO_N "(cached) $ECHO_C" >&6
8901 ac_check_lib_save_LIBS
=$LIBS
8903 cat >conftest.
$ac_ext <<_ACEOF
8906 cat confdefs.h
>>conftest.
$ac_ext
8907 cat >>conftest.
$ac_ext <<_ACEOF
8908 /* end confdefs.h. */
8910 /* Override any GCC internal prototype to avoid an error.
8911 Use char because int might match the return type of a GCC
8912 builtin and then its argument prototype would still apply. */
8925 rm -f conftest.
$ac_objext conftest
$ac_exeext
8926 if { (ac_try
="$ac_link"
8928 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8929 *) ac_try_echo=$ac_try;;
8931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8932 (eval "$ac_link") 2>conftest.er1
8934 grep -v '^ *+' conftest.er1 >conftest.err
8936 cat conftest.err >&5
8937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8938 (exit $ac_status); } && {
8939 test -z "$ac_c_werror_flag" ||
8940 test ! -s conftest.err
8941 } && test -s conftest$ac_exeext &&
8942 $as_test_x conftest$ac_exeext; then
8943 ac_cv_lib_dld_dld_link=yes
8945 echo "$as_me: failed program was:" >&5
8946 sed 's/^/| /' conftest.$ac_ext >&5
8948 ac_cv_lib_dld_dld_link=no
8951 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8952 conftest$ac_exeext conftest.$ac_ext
8953 LIBS=$ac_check_lib_save_LIBS
8955 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8956 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
8957 if test $ac_cv_lib_dld_dld_link = yes; then
8958 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8979 if test "x$lt_cv_dlopen" != xno; then
8985 case $lt_cv_dlopen in
8987 save_CPPFLAGS="$CPPFLAGS"
8988 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8990 save_LDFLAGS="$LDFLAGS"
8991 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8994 LIBS="$lt_cv_dlopen_libs $LIBS"
8996 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8997 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
8998 if test "${lt_cv_dlopen_self+set}" = set; then
8999 echo $ECHO_N "(cached) $ECHO_C" >&6
9001 if test "$cross_compiling" = yes; then :
9002 lt_cv_dlopen_self=cross
9004 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9005 lt_status=$lt_dlunknown
9006 cat > conftest.$ac_ext <<EOF
9007 #line 9007 "configure"
9008 #include "confdefs.h"
9017 # define LT_DLGLOBAL RTLD_GLOBAL
9020 # define LT_DLGLOBAL DL_GLOBAL
9022 # define LT_DLGLOBAL 0
9026 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9027 find out it does not work in some platform. */
9028 #ifndef LT_DLLAZY_OR_NOW
9030 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9033 # define LT_DLLAZY_OR_NOW DL_LAZY
9036 # define LT_DLLAZY_OR_NOW RTLD_NOW
9039 # define LT_DLLAZY_OR_NOW DL_NOW
9041 # define LT_DLLAZY_OR_NOW 0
9049 extern "C" void exit (int);
9052 void fnord() { int i=42;}
9055 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9056 int status = $lt_dlunknown;
9060 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9061 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9062 /* dlclose (self); */
9068 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9069 (eval $ac_link) 2>&5
9071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9072 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9073 (./conftest; exit; ) 2>/dev/null
9076 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9077 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9078 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
9081 # compilation failed
9082 lt_cv_dlopen_self=no
9089 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9090 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
9092 if test "x$lt_cv_dlopen_self" = xyes; then
9093 LDFLAGS="$LDFLAGS $link_static_flag"
9094 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9095 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
9096 if test "${lt_cv_dlopen_self_static+set}" = set; then
9097 echo $ECHO_N "(cached) $ECHO_C" >&6
9099 if test "$cross_compiling" = yes; then :
9100 lt_cv_dlopen_self_static=cross
9102 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9103 lt_status=$lt_dlunknown
9104 cat > conftest.$ac_ext <<EOF
9105 #line 9105 "configure"
9106 #include "confdefs.h"
9115 # define LT_DLGLOBAL RTLD_GLOBAL
9118 # define LT_DLGLOBAL DL_GLOBAL
9120 # define LT_DLGLOBAL 0
9124 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9125 find out it does not work in some platform. */
9126 #ifndef LT_DLLAZY_OR_NOW
9128 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9131 # define LT_DLLAZY_OR_NOW DL_LAZY
9134 # define LT_DLLAZY_OR_NOW RTLD_NOW
9137 # define LT_DLLAZY_OR_NOW DL_NOW
9139 # define LT_DLLAZY_OR_NOW 0
9147 extern "C" void exit (int);
9150 void fnord() { int i=42;}
9153 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9154 int status = $lt_dlunknown;
9158 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9159 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9160 /* dlclose (self); */
9166 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9167 (eval $ac_link) 2>&5
9169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9170 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9171 (./conftest; exit; ) 2>/dev/null
9174 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9175 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9176 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
9179 # compilation failed
9180 lt_cv_dlopen_self_static=no
9187 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9188 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
9191 CPPFLAGS="$save_CPPFLAGS"
9192 LDFLAGS="$save_LDFLAGS"
9197 case $lt_cv_dlopen_self in
9198 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9199 *) enable_dlopen_self=unknown ;;
9202 case $lt_cv_dlopen_self_static in
9203 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9204 *) enable_dlopen_self_static=unknown ;;
9209 # Report which librarie types wil actually be built
9210 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9211 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
9212 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
9213 echo "${ECHO_T}$can_build_shared" >&6; }
9215 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9216 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
9217 test "$can_build_shared" = "no" && enable_shared=no
9219 # On AIX, shared libraries and static libraries use the same namespace, and
9220 # are all built from PIC.
9223 test "$enable_shared" = yes && enable_static=no
9224 if test -n "$RANLIB"; then
9225 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9226 postinstall_cmds='$RANLIB $lib'
9231 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9232 test "$enable_shared" = yes && enable_static=no
9235 darwin* | rhapsody*)
9236 if test "$GCC" = yes; then
9237 archive_cmds_need_lc=no
9239 rhapsody* | darwin1.[012])
9240 allow_undefined_flag='-undefined suppress'
9243 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9244 allow_undefined_flag='-flat_namespace -undefined suppress'
9246 case ${MACOSX_DEPLOYMENT_TARGET} in
9248 allow_undefined_flag='-flat_namespace -undefined suppress'
9251 allow_undefined_flag='-undefined dynamic_lookup'
9257 output_verbose_link_cmd='echo'
9258 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
9259 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9260 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9261 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}'
9262 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}'
9264 hardcode_automatic=yes
9265 hardcode_shlibpath_var=unsupported
9266 whole_archive_flag_spec='-all_load $convenience'
9267 link_all_deplibs=yes
9273 { echo "$as_me:$LINENO: result: $enable_shared" >&5
9274 echo "${ECHO_T}$enable_shared" >&6; }
9276 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9277 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
9278 # Make sure either enable_shared or enable_static is yes.
9279 test "$enable_shared" = yes || enable_static=yes
9280 { echo "$as_me:$LINENO: result: $enable_static" >&5
9281 echo "${ECHO_T}$enable_static" >&6; }
9283 # The else clause should only fire when bootstrapping the
9284 # libtool distribution, otherwise you forgot to ship ltmain.sh
9285 # with your package, and you will get complaints that there are
9286 # no rules to generate ltmain.sh.
9287 if test -f "$ltmain"; then
9288 # See if we are running on zsh, and set the options which allow our commands through
9289 # without removal of \ escapes.
9290 if test -n "${ZSH_VERSION+set}" ; then
9291 setopt NO_GLOB_SUBST
9293 # Now quote all the things that may contain metacharacters while being
9294 # careful not to overquote the AC_SUBSTed values. We take copies of the
9295 # variables and quote the copies for generation of the libtool script.
9296 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
9297 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9298 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9299 deplibs_check_method reload_flag reload_cmds need_locks \
9300 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9301 lt_cv_sys_global_symbol_to_c_name_address \
9302 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9303 old_postinstall_cmds old_postuninstall_cmds \
9307 lt_prog_compiler_wl \
9308 lt_prog_compiler_pic \
9309 lt_prog_compiler_static \
9310 lt_prog_compiler_no_builtin_flag \
9311 export_dynamic_flag_spec \
9312 thread_safe_flag_spec \
9313 whole_archive_flag_spec \
9314 enable_shared_with_static_runtimes \
9316 old_archive_from_new_cmds \
9321 compiler_lib_search_path \
9323 archive_expsym_cmds \
9325 postuninstall_cmds \
9326 old_archive_from_expsyms_cmds \
9327 allow_undefined_flag \
9329 export_symbols_cmds \
9330 hardcode_libdir_flag_spec \
9331 hardcode_libdir_flag_spec_ld \
9332 hardcode_libdir_separator \
9333 hardcode_automatic \
9335 module_expsym_cmds \
9336 lt_cv_prog_compiler_c_o \
9341 old_archive_cmds | \
9342 old_archive_from_new_cmds | \
9344 archive_expsym_cmds | \
9346 module_expsym_cmds | \
9347 old_archive_from_expsyms_cmds | \
9348 export_symbols_cmds | \
9349 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9350 postinstall_cmds | postuninstall_cmds | \
9351 old_postinstall_cmds | old_postuninstall_cmds | \
9352 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9353 # Double-quote double-evaled strings.
9354 eval "lt_$var=\\\"\`\
$echo \"X\$
$var\" | \
$Xsed -e \"\
$double_quote_subst\" -e \"\
$sed_quote_subst\" -e \"\
$delay_variable_subst\"\
`\\\""
9357 eval "lt_$var=\\\"\`\
$echo \"X\$
$var\" | \
$Xsed -e \"\
$sed_quote_subst\"\
`\\\""
9363 *'\$0 --fallback-echo"')
9364 lt_echo=`$echo "X$lt_echo" |
$Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9369 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9371 { echo "$as_me:$LINENO: creating $ofile" >&5
9372 echo "$as_me: creating $ofile" >&6;}
9374 cat <<__EOF__ >> "$cfgfile"
9377 # `$echo "$cfgfile" |
sed 's%^.*/%%'` - Provide generalized library-building support services.
9378 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9379 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9381 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9382 # Free Software Foundation, Inc.
9384 # This file is part of GNU Libtool:
9385 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9387 # This program is free software; you can redistribute it and/or modify
9388 # it under the terms of the GNU General Public License as published by
9389 # the Free Software Foundation; either version 2 of the License, or
9390 # (at your option) any later version.
9392 # This program is distributed in the hope that it will be useful, but
9393 # WITHOUT ANY WARRANTY; without even the implied warranty of
9394 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9395 # General Public License for more details.
9397 # You should have received a copy of the GNU General Public License
9398 # along with this program; if not, write to the Free Software
9399 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9401 # As a special exception to the GNU General Public License, if you
9402 # distribute this file as part of a program that contains a
9403 # configuration script generated by Autoconf, you may include it under
9404 # the same distribution terms that you use for the rest of that program.
9406 # A sed program that does not truncate output.
9409 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9410 Xsed="$SED -e s/^X//"
9412 # The HP-UX ksh and POSIX shell print the target directory to stdout
9414 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
9416 # The names of the tagged configurations supported by this script.
9419 # ### BEGIN LIBTOOL CONFIG
9421 # Libtool was configured on host `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`:
9423 # Shell to use when invoking shell scripts.
9426 # Whether or not to build shared libraries.
9427 build_libtool_libs=$enable_shared
9429 # Whether or not to build static libraries.
9430 build_old_libs=$enable_static
9432 # Whether or not to add -lc for building shared libraries.
9433 build_libtool_need_lc=$archive_cmds_need_lc
9435 # Whether or not to disallow shared libs when runtime libs are static
9436 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9438 # Whether or not to optimize for fast installation.
9439 fast_install=$enable_fast_install
9442 host_alias=$host_alias
9445 # An echo program that does not interpret backslashes.
9450 AR_FLAGS=$lt_AR_FLAGS
9455 # A language-specific compiler.
9458 # Is the compiler the GNU C compiler?
9464 # The linker used to build libraries.
9467 # Whether we need hard or soft links.
9470 # A BSD-compatible nm program.
9473 # A symbol stripping program
9476 # Used to examine libraries when file_magic_cmd begins "file"
9477 MAGIC_CMD=$MAGIC_CMD
9479 # Used on cygwin: DLL creation program.
9482 # Used on cygwin: object dumper.
9485 # Used on cygwin: assembler.
9488 # The name of the directory that contains temporary libtool files.
9491 # How to create reloadable object files.
9492 reload_flag=$lt_reload_flag
9493 reload_cmds=$lt_reload_cmds
9495 # How to pass a linker flag through the compiler.
9496 wl=$lt_lt_prog_compiler_wl
9498 # Object file suffix (normally "o").
9501 # Old archive suffix (normally "a").
9504 # Shared library suffix (normally ".so").
9507 # Executable file suffix (normally "").
9510 # Additional compiler flags for building library objects.
9511 pic_flag=$lt_lt_prog_compiler_pic
9514 # What is the maximum length of a command?
9515 max_cmd_len=$lt_cv_sys_max_cmd_len
9517 # Does compiler simultaneously support -c and -o options?
9518 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9520 # Must we lock files when doing compilation ?
9521 need_locks=$lt_need_locks
9523 # Do we need the lib prefix for modules?
9524 need_lib_prefix=$need_lib_prefix
9526 # Do we need a version for libraries?
9527 need_version=$need_version
9529 # Whether dlopen is supported.
9530 dlopen_support=$enable_dlopen
9532 # Whether dlopen of programs is supported.
9533 dlopen_self=$enable_dlopen_self
9535 # Whether dlopen of statically linked programs is supported.
9536 dlopen_self_static=$enable_dlopen_self_static
9538 # Compiler flag to prevent dynamic linking.
9539 link_static_flag=$lt_lt_prog_compiler_static
9541 # Compiler flag to turn off builtin functions.
9542 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9544 # Compiler flag to allow reflexive dlopens.
9545 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9547 # Compiler flag to generate shared objects directly from archives.
9548 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9550 # Compiler flag to generate thread-safe objects.
9551 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9553 # Library versioning type.
9554 version_type=$version_type
9556 # Format of library name prefix.
9557 libname_spec=$lt_libname_spec
9559 # List of archive names. First name is the real one, the rest are links.
9560 # The last name is the one that the linker finds with -lNAME.
9561 library_names_spec=$lt_library_names_spec
9563 # The coded name of the library, if different from the real name.
9564 soname_spec=$lt_soname_spec
9566 # Commands used to build and install an old-style archive.
9568 old_archive_cmds=$lt_old_archive_cmds
9569 old_postinstall_cmds=$lt_old_postinstall_cmds
9570 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9572 # Create an old-style archive from a shared archive.
9573 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9575 # Create a temporary old-style archive to link instead of a shared archive.
9576 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9578 # Commands used to build and install a shared archive.
9579 archive_cmds=$lt_archive_cmds
9580 archive_expsym_cmds=$lt_archive_expsym_cmds
9581 postinstall_cmds=$lt_postinstall_cmds
9582 postuninstall_cmds=$lt_postuninstall_cmds
9584 # Commands used to build a loadable module (assumed same as above if empty)
9585 module_cmds=$lt_module_cmds
9586 module_expsym_cmds=$lt_module_expsym_cmds
9588 # Commands to strip libraries.
9589 old_striplib=$lt_old_striplib
9590 striplib=$lt_striplib
9592 # Dependencies to place before the objects being linked to create a
9594 predep_objects=$lt_predep_objects
9596 # Dependencies to place after the objects being linked to create a
9598 postdep_objects=$lt_postdep_objects
9600 # Dependencies to place before the objects being linked to create a
9604 # Dependencies to place after the objects being linked to create a
9606 postdeps=$lt_postdeps
9608 # The library search path used internally by the compiler when linking
9610 compiler_lib_search_path=$lt_compiler_lib_search_path
9612 # Method to check whether dependent libraries are shared objects.
9613 deplibs_check_method=$lt_deplibs_check_method
9615 # Command to use when deplibs_check_method == file_magic.
9616 file_magic_cmd=$lt_file_magic_cmd
9618 # Flag that allows shared libraries with undefined symbols to be built.
9619 allow_undefined_flag=$lt_allow_undefined_flag
9621 # Flag that forces no undefined symbols.
9622 no_undefined_flag=$lt_no_undefined_flag
9624 # Commands used to finish a libtool library installation in a directory.
9625 finish_cmds=$lt_finish_cmds
9627 # Same as above, but a single script fragment to be evaled but not shown.
9628 finish_eval=$lt_finish_eval
9630 # Take the output of nm and produce a listing of raw symbols and C names.
9631 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9633 # Transform the output of nm in a proper C declaration
9634 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9636 # Transform the output of nm in a C name address pair
9637 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9639 # This is the shared library runtime path variable.
9640 runpath_var=$runpath_var
9642 # This is the shared library path variable.
9643 shlibpath_var=$shlibpath_var
9645 # Is shlibpath searched before the hard-coded library search path?
9646 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9648 # How to hardcode a shared library path into an executable.
9649 hardcode_action=$hardcode_action
9651 # Whether we should hardcode library paths into libraries.
9652 hardcode_into_libs=$hardcode_into_libs
9654 # Flag to hardcode \$libdir into a binary during linking.
9655 # This must work even if \$libdir does not exist.
9656 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9658 # If ld is used when linking, flag to hardcode \$libdir into
9659 # a binary during linking. This must work even if \$libdir does
9661 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9663 # Whether we need a single -rpath flag with a separated argument.
9664 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9666 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9668 hardcode_direct=$hardcode_direct
9670 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9672 hardcode_minus_L=$hardcode_minus_L
9674 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9675 # the resulting binary.
9676 hardcode_shlibpath_var=$hardcode_shlibpath_var
9678 # Set to yes if building a shared library automatically hardcodes DIR into the library
9679 # and all subsequent libraries and executables linked against it.
9680 hardcode_automatic=$hardcode_automatic
9682 # Variables whose values should be saved in libtool wrapper scripts and
9683 # restored at relink time.
9684 variables_saved_for_relink="$variables_saved_for_relink"
9686 # Whether libtool must link a program against all its dependency libraries.
9687 link_all_deplibs=$link_all_deplibs
9689 # Compile-time system search path for libraries
9690 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9692 # Run-time system search path for libraries
9693 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9695 # Fix the shell variable \$srcfile for the compiler.
9696 fix_srcfile_path="$fix_srcfile_path"
9698 # Set to yes if exported symbols are required.
9699 always_export_symbols=$always_export_symbols
9701 # The commands to list exported symbols.
9702 export_symbols_cmds=$lt_export_symbols_cmds
9704 # The commands to extract the exported symbol list from a shared archive.
9705 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9707 # Symbols that should not be listed in the preloaded symbols.
9708 exclude_expsyms=$lt_exclude_expsyms
9710 # Symbols that must always be exported.
9711 include_expsyms=$lt_include_expsyms
9713 # ### END LIBTOOL CONFIG
9720 cat <<\EOF >> "$cfgfile"
9722 # AIX sometimes has problems with the GCC collect2 program. For some
9723 # reason, if we set the COLLECT_NAMES environment variable, the problems
9724 # vanish in a puff of smoke.
9725 if test "X${COLLECT_NAMES+set}" != Xset; then
9727 export COLLECT_NAMES
9733 # We use sed instead of cat because bash on DJGPP gets confused if
9734 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9735 # text mode, it properly converts lines to CR/LF. This bash problem
9736 # is reportedly fixed, but why not run on old versions too?
9737 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9739 mv -f "$cfgfile" "$ofile" || \
9740 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9744 # If there is no Makefile yet, we rely on a make rule to execute
9745 # `config.status
--recheck' to rerun these tests and create the
9746 # libtool script then.
9747 test -f Makefile && make "$ltmain"
9752 ac_cpp='$CPP $CPPFLAGS'
9753 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
9754 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
9755 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9760 # Check whether --with-tags was given.
9761 if test "${with_tags+set}" = set; then
9762 withval=$with_tags; tagnames="$withval"
9766 if test -f "$ltmain" && test -n "$tagnames"; then
9767 if test ! -f "${ofile}"; then
9768 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist
" >&5
9769 echo "$as_me: WARNING
: output
file \
`$ofile' does not exist" >&2;}
9772 if test -z "$LTCC"; then
9773 eval "`$SHELL ${ofile} --config |
grep '^LTCC='`"
9774 if test -z "$LTCC"; then
9775 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9776 echo "$as_me: WARNING: output file \`$ofile' does not
look like a libtool
script" >&2;}
9778 { echo "$as_me:$LINENO: WARNING
: using \
`LTCC=$LTCC', extracted from \`$ofile'" >&5
9779 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \
`$ofile'" >&2;}
9783 # Extract list of available tagged configurations in $ofile.
9784 # Note that this assumes the entire list is on one line.
9785 available_tags=`grep "^available_tags=" "${ofile}" |
$SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9787 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9788 for tagname in $tagnames; do
9790 # Check whether tagname contains only valid characters
9791 case `$echo "X$tagname" |
$Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9793 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9794 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9795 { (exit 1); exit 1; }; }
9799 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9801 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9802 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9803 { (exit 1); exit 1; }; }
9806 # Update the list of available tags.
9807 if test -n "$tagname"; then
9808 echo appending configuration tag \"$tagname\" to $ofile
9812 if test -n "$CXX" && test "X$CXX" != "Xno"; then
9814 ac_cpp='$CXXCPP $CPPFLAGS'
9815 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9816 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9817 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9822 archive_cmds_need_lc_CXX=no
9823 allow_undefined_flag_CXX=
9824 always_export_symbols_CXX=no
9825 archive_expsym_cmds_CXX=
9826 export_dynamic_flag_spec_CXX=
9827 hardcode_direct_CXX=no
9828 hardcode_libdir_flag_spec_CXX=
9829 hardcode_libdir_flag_spec_ld_CXX=
9830 hardcode_libdir_separator_CXX=
9831 hardcode_minus_L_CXX=no
9832 hardcode_automatic_CXX=no
9834 module_expsym_cmds_CXX=
9835 link_all_deplibs_CXX=unknown
9836 old_archive_cmds_CXX=$old_archive_cmds
9837 no_undefined_flag_CXX=
9838 whole_archive_flag_spec_CXX=
9839 enable_shared_with_static_runtimes_CXX=no
9841 # Dependencies to place before and after the object being linked:
9843 postdep_objects_CXX=
9846 compiler_lib_search_path_CXX=
9848 # Source file extension for C++ test sources.
9851 # Object file extension for compiled C++ test sources.
9855 # Code to be used in simple compile tests
9856 lt_simple_compile_test_code="int some_variable = 0;\n"
9858 # Code to be used in simple link tests
9859 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9861 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9863 # If no C compiler was specified, use CC.
9866 # Allow CC to be a program name with arguments.
9870 # Allow CC to be a program name with arguments.
9875 lt_save_with_gnu_ld=$with_gnu_ld
9876 lt_save_path_LD=$lt_cv_path_LD
9877 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9878 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9880 unset lt_cv_prog_gnu_ld
9882 if test -n "${lt_cv_path_LDCXX+set}"; then
9883 lt_cv_path_LD=$lt_cv_path_LDCXX
9887 test -z "${LDCXX+set}" || LD=$LDCXX
9891 cc_basename=`$echo X
"$compiler" |
$Xsed -e 's%^.*/%%'`
9893 # We don't want -fno-exception wen compiling C++ code, so set the
9894 # no_builtin_flag separately
9895 if test "$GXX" = yes; then
9896 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9898 lt_prog_compiler_no_builtin_flag_CXX=
9901 if test "$GXX" = yes; then
9902 # Set up default GNU C++ configuration
9905 # Check whether --with-gnu-ld was given.
9906 if test "${with_gnu_ld+set}" = set; then
9907 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9913 if test "$GCC" = yes; then
9914 # Check if gcc -print-prog-name=ld gives a path.
9915 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9916 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
9919 # gcc leaves a trailing carriage return which upsets mingw
9920 ac_prog=`($CC -print-prog-name=ld
) 2>&5 |
tr -d '\015'` ;;
9922 ac_prog=`($CC -print-prog-name=ld
) 2>&5` ;;
9925 # Accept absolute paths.
9927 re_direlt='/[^/][^/]*/\.\./'
9928 # Canonicalize the pathname of ld
9929 ac_prog=`echo $ac_prog|
$SED 's%\\\\%/%g'`
9930 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9931 ac_prog=`echo $ac_prog|
$SED "s%$re_direlt%/%"`
9933 test -z "$LD" && LD="$ac_prog"
9936 # If it fails, then pretend we aren't using GCC.
9940 # If it is relative, then search for the first ld in PATH.
9944 elif test "$with_gnu_ld" = yes; then
9945 { echo "$as_me:$LINENO: checking for GNU ld" >&5
9946 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
9948 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9949 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
9951 if test "${lt_cv_path_LD+set}" = set; then
9952 echo $ECHO_N "(cached) $ECHO_C" >&6
9954 if test -z "$LD"; then
9955 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9956 for ac_dir in $PATH; do
9958 test -z "$ac_dir" && ac_dir=.
9959 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9960 lt_cv_path_LD="$ac_dir/$ac_prog"
9961 # Check to see if the program is GNU ld. I'd rather use --version,
9962 # but apparently some GNU ld's only accept -v.
9963 # Break only if it was the GNU/non-GNU ld that we prefer.
9964 case `"$lt_cv_path_LD" -v 2>&1 </dev
/null
` in
9965 *GNU* | *'with BFD'*)
9966 test "$with_gnu_ld" != no && break
9969 test "$with_gnu_ld" != yes && break
9976 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9981 if test -n "$LD"; then
9982 { echo "$as_me:$LINENO: result: $LD" >&5
9983 echo "${ECHO_T}$LD" >&6; }
9985 { echo "$as_me:$LINENO: result: no" >&5
9986 echo "${ECHO_T}no" >&6; }
9988 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9989 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9990 { (exit 1); exit 1; }; }
9991 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9992 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
9993 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9994 echo $ECHO_N "(cached) $ECHO_C" >&6
9996 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9997 case `$LD -v 2>&1 </dev
/null
` in
9998 *GNU* | *'with BFD'*)
9999 lt_cv_prog_gnu_ld=yes
10002 lt_cv_prog_gnu_ld=no
10006 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10007 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10008 with_gnu_ld=$lt_cv_prog_gnu_ld
10012 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10013 # archiving commands below assume that GNU ld is being used.
10014 if test "$with_gnu_ld" = yes; then
10015 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10016 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'
10018 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10019 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10021 # If archive_cmds runs LD, not CC, wlarc should be empty
10022 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10023 # investigate it a little bit more. (MM)
10026 # ancient GNU ld didn't support --whole-archive et. al.
10027 if eval "`$CC -print-prog-name=ld
` --help 2>&1" | \
10028 grep 'no-whole-archive' > /dev/null; then
10029 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10031 whole_archive_flag_spec_CXX=
10037 # A generic and very simple default shared library creation
10038 # command for GNU C++ for the case where it uses the native
10039 # linker, instead of GNU ld. If possible, this setting should
10040 # overridden to take advantage of the native linker features on
10041 # the platform it is being used on.
10042 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10045 # Commands to make compiler produce verbose output that lists
10046 # what "hidden" libraries, object files and flags are used when
10047 # linking a shared library.
10048 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10056 # PORTME: fill in a description of your system's C++ link characteristics
10057 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10058 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10062 # FIXME: insert proper C++ library support
10066 if test "$host_cpu" = ia64; then
10067 # On IA64, the linker does run time linking by default, so we don't
10068 # have to do anything special.
10069 aix_use_runtimelinking=no
10070 exp_sym_flag='-Bexport'
10073 aix_use_runtimelinking=no
10075 # Test if we are trying to use run time linking or normal
10076 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10077 # need to do runtime linking.
10078 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10079 for ld_flag in $LDFLAGS; do
10082 aix_use_runtimelinking=yes
10089 exp_sym_flag='-bexport'
10090 no_entry_flag='-bnoentry'
10093 # When large executables or shared objects are built, AIX ld can
10094 # have problems creating the table of contents. If linking a library
10095 # or program results in "error TOC overflow" add -mminimal-toc to
10096 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10097 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10099 archive_cmds_CXX=''
10100 hardcode_direct_CXX=yes
10101 hardcode_libdir_separator_CXX=':'
10102 link_all_deplibs_CXX=yes
10104 if test "$GXX" = yes; then
10105 case $host_os in aix4.012|aix4.012.*)
10106 # We only want to do this on AIX 4.2 and lower, the check
10107 # below for broken collect2 doesn't work under 4.3+
10108 collect2name=`${CC} -print-prog-name=collect2
`
10109 if test -f "$collect2name" && \
10110 strings "$collect2name" | grep resolve_lib_name >/dev/null
10112 # We have reworked collect2
10113 hardcode_direct_CXX=yes
10115 # We have old collect2
10116 hardcode_direct_CXX=unsupported
10117 # It fails to find uninstalled libraries when the uninstalled
10118 # path is not listed in the libpath. Setting hardcode_minus_L
10119 # to unsupported forces relinking
10120 hardcode_minus_L_CXX=yes
10121 hardcode_libdir_flag_spec_CXX='-L$libdir'
10122 hardcode_libdir_separator_CXX=
10125 shared_flag='-shared'
10128 if test "$host_cpu" = ia64; then
10129 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10130 # chokes on -Wl,-G. The following line is correct:
10133 if test "$aix_use_runtimelinking" = yes; then
10134 shared_flag='${wl}-G'
10136 shared_flag='${wl}-bM:SRE'
10141 # It seems that -bexpall does not export symbols beginning with
10142 # underscore (_), so it is better to generate a list of symbols to export.
10143 always_export_symbols_CXX=yes
10144 if test "$aix_use_runtimelinking" = yes; then
10145 # Warning - without using the other runtime loading flags (-brtl),
10146 # -berok will link without error, but may produce a broken library.
10147 allow_undefined_flag_CXX='-berok'
10148 # Determine the default libpath from the value encoded in an empty executable.
10149 cat >conftest.$ac_ext <<_ACEOF
10152 cat confdefs.h >>conftest.$ac_ext
10153 cat >>conftest.$ac_ext <<_ACEOF
10154 /* end confdefs.h. */
10164 rm -f conftest.$ac_objext conftest$ac_exeext
10165 if { (ac_try="$ac_link"
10166 case "(($ac_try" in
10167 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10168 *) ac_try_echo
=$ac_try;;
10170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10171 (eval "$ac_link") 2>conftest.er1
10173 grep -v '^ *+' conftest.er1
>conftest.err
10175 cat conftest.err
>&5
10176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10177 (exit $ac_status); } && {
10178 test -z "$ac_cxx_werror_flag" ||
10179 test ! -s conftest.err
10180 } && test -s conftest
$ac_exeext &&
10181 $as_test_x conftest
$ac_exeext; then
10183 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10185 # Check for a 64-bit object if we didn't find anything.
10186 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; }
10189 echo "$as_me: failed program was:" >&5
10190 sed 's/^/| /' conftest.
$ac_ext >&5
10195 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10196 conftest
$ac_exeext conftest.
$ac_ext
10197 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
10199 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
10201 archive_expsym_cmds_CXX
="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10203 if test "$host_cpu" = ia64; then
10204 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr
/lib
:/lib
'
10205 allow_undefined_flag_CXX="-z nodefs"
10206 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\
$export_symbols"
10208 # Determine the default libpath from the value encoded in an empty executable.
10209 cat >conftest.$ac_ext <<_ACEOF
10212 cat confdefs.h >>conftest.$ac_ext
10213 cat >>conftest.$ac_ext <<_ACEOF
10214 /* end confdefs.h. */
10224 rm -f conftest.$ac_objext conftest$ac_exeext
10225 if { (ac_try="$ac_link"
10226 case "(($ac_try" in
10227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10228 *) ac_try_echo=$ac_try;;
10230 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10231 (eval "$ac_link") 2>conftest.er1
10233 grep -v '^ *+' conftest.er1 >conftest.err
10235 cat conftest.err >&5
10236 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10237 (exit $ac_status); } && {
10238 test -z "$ac_cxx_werror_flag" ||
10239 test ! -s conftest.err
10240 } && test -s conftest$ac_exeext &&
10241 $as_test_x conftest$ac_exeext; then
10243 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10245 # Check for a 64-bit object if we didn't find anything.
10246 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; }
10249 echo "$as_me: failed program was
:" >&5
10250 sed 's/^/| /' conftest.$ac_ext >&5
10255 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10256 conftest$ac_exeext conftest.$ac_ext
10257 if test -z "$aix_libpath"; then aix_libpath="/usr
/lib
:/lib
"; fi
10259 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10260 # Warning - without using the other run time loading flags,
10261 # -berok will link without error, but may produce a broken library.
10262 no_undefined_flag_CXX=' ${wl}-bernotok'
10263 allow_undefined_flag_CXX=' ${wl}-berok'
10264 # -bexpall does not export symbols beginning with underscore (_)
10265 always_export_symbols_CXX=yes
10266 # Exported symbols can be pulled into shared objects from archives
10267 whole_archive_flag_spec_CXX=' '
10268 archive_cmds_need_lc_CXX=yes
10269 # This is similar to how AIX traditionally builds it's shared libraries.
10270 archive_expsym_cmds_CXX="\
$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10275 case $cc_basename in
10277 # FIXME: insert proper C++ library support
10283 cygwin* | mingw* | pw32*)
10284 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10285 # as there is no search path for DLLs.
10286 hardcode_libdir_flag_spec_CXX='-L$libdir'
10287 allow_undefined_flag_CXX=unsupported
10288 always_export_symbols_CXX=no
10289 enable_shared_with_static_runtimes_CXX=yes
10291 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10292 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10293 # If the export-symbols file already is a .def file (1st line
10294 # is EXPORTS), use it as is; otherwise, prepend...
10295 archive_expsym_cmds_CXX='if test "x
`$SED 1q $export_symbols`" = xEXPORTS; then
10296 cp $export_symbols $output_objdir/$soname.def;
10298 echo EXPORTS > $output_objdir/$soname.def;
10299 cat $export_symbols >> $output_objdir/$soname.def;
10301 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10307 darwin* | rhapsody*)
10308 if test "$GXX" = yes; then
10309 archive_cmds_need_lc_CXX=no
10311 rhapsody* | darwin1.[012])
10312 allow_undefined_flag_CXX='-undefined suppress'
10315 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10316 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10318 case ${MACOSX_DEPLOYMENT_TARGET} in
10320 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10323 allow_undefined_flag_CXX='-undefined dynamic_lookup'
10329 lt_int_apple_cc_single_mod=no
10330 output_verbose_link_cmd='echo'
10331 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
10332 lt_int_apple_cc_single_mod=yes
10334 if test "X
$lt_int_apple_cc_single_mod" = Xyes ; then
10335 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10337 archive_cmds_CXX='$CC -r ${wl}-bind_at_load -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'
10339 module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10341 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10342 if test "X
$lt_int_apple_cc_single_mod" = Xyes ; then
10343 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}'
10345 archive_expsym_cmds_CXX
='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
10347 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}'
10348 hardcode_direct_CXX
=no
10349 hardcode_automatic_CXX
=yes
10350 hardcode_shlibpath_var_CXX
=unsupported
10351 whole_archive_flag_spec_CXX
='-all_load $convenience'
10352 link_all_deplibs_CXX
=yes
10359 case $cc_basename in
10361 # FIXME: insert proper C++ library support
10365 # Green Hills C++ Compiler
10366 # FIXME: insert proper C++ library support
10370 # FIXME: insert proper C++ library support
10376 # C++ shared libraries reported to be fairly broken before switch to ELF
10380 archive_cmds_need_lc_CXX
=no
10382 freebsd
* | kfreebsd
*-gnu)
10383 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10390 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
10391 hardcode_libdir_separator_CXX
=:
10392 export_dynamic_flag_spec_CXX
='${wl}-E'
10393 hardcode_direct_CXX
=yes
10394 hardcode_minus_L_CXX
=yes # Not in the search PATH,
10395 # but as the default
10396 # location of the library.
10398 case $cc_basename in
10400 # FIXME: insert proper C++ library support
10404 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'
10405 # Commands to make compiler produce verbose output that lists
10406 # what "hidden" libraries, object files and flags are used when
10407 # linking a shared library.
10409 # There doesn't appear to be a way to prevent this compiler from
10410 # explicitly linking system object files so we need to strip them
10411 # from the output so that they don't get included in the library
10413 output_verbose_link_cmd
='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10416 if test "$GXX" = yes; then
10417 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'
10419 # FIXME: insert proper C++ library support
10426 if test $with_gnu_ld = no
; then
10427 case "$host_cpu" in
10429 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
10430 hardcode_libdir_flag_spec_ld_CXX
='+b $libdir'
10431 hardcode_libdir_separator_CXX
=:
10434 hardcode_libdir_flag_spec_CXX
='-L$libdir'
10437 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
10438 hardcode_libdir_separator_CXX
=:
10439 export_dynamic_flag_spec_CXX
='${wl}-E'
10443 case "$host_cpu" in
10445 hardcode_direct_CXX
=no
10446 hardcode_shlibpath_var_CXX
=no
10449 hardcode_direct_CXX
=no
10450 hardcode_shlibpath_var_CXX
=no
10451 hardcode_minus_L_CXX
=yes # Not in the search PATH,
10452 # but as the default
10453 # location of the library.
10456 hardcode_direct_CXX
=yes
10457 hardcode_minus_L_CXX
=yes # Not in the search PATH,
10458 # but as the default
10459 # location of the library.
10463 case $cc_basename in
10465 # FIXME: insert proper C++ library support
10469 case "$host_cpu" in
10471 archive_cmds_CXX
='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10474 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10477 # Commands to make compiler produce verbose output that lists
10478 # what "hidden" libraries, object files and flags are used when
10479 # linking a shared library.
10481 # There doesn't appear to be a way to prevent this compiler from
10482 # explicitly linking system object files so we need to strip them
10483 # from the output so that they don't get included in the library
10485 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'
10488 if test "$GXX" = yes; then
10489 if test $with_gnu_ld = no
; then
10490 case "$host_cpu" in
10492 archive_cmds_CXX
='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10495 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'
10500 # FIXME: insert proper C++ library support
10507 case $cc_basename in
10510 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 ${objdir}/so_locations -o $lib'
10512 # Archives containing C++ object files must be created using
10513 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10514 # necessary to make sure instantiated templates are included
10516 old_archive_cmds_CXX
='$CC -ar -WR,-u -o $oldlib $oldobjs'
10519 if test "$GXX" = yes; then
10520 if test "$with_gnu_ld" = no
; then
10521 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}${objdir}/so_locations -o $lib'
10523 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'
10526 link_all_deplibs_CXX
=yes
10529 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
10530 hardcode_libdir_separator_CXX
=:
10533 case $cc_basename in
10535 # Kuck and Associates, Inc. (KAI) C++ Compiler
10537 # KCC will only create a shared library if the output file
10538 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10539 # to its proper name (with version) after linking.
10540 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'
10541 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'
10542 # Commands to make compiler produce verbose output that lists
10543 # what "hidden" libraries, object files and flags are used when
10544 # linking a shared library.
10546 # There doesn't appear to be a way to prevent this compiler from
10547 # explicitly linking system object files so we need to strip them
10548 # from the output so that they don't get included in the library
10550 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'
10552 hardcode_libdir_flag_spec_CXX
='${wl}--rpath,$libdir'
10553 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
10555 # Archives containing C++ object files must be created using
10556 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10557 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
10562 archive_cmds_need_lc_CXX
=no
10563 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10564 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'
10565 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
10566 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
10567 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10571 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10572 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'
10574 runpath_var
=LD_RUN_PATH
10575 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
10576 hardcode_libdir_separator_CXX
=:
10578 # Commands to make compiler produce verbose output that lists
10579 # what "hidden" libraries, object files and flags are used when
10580 # linking a shared library.
10582 # There doesn't appear to be a way to prevent this compiler from
10583 # explicitly linking system object files so we need to strip them
10584 # from the output so that they don't get included in the library
10586 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'
10591 # FIXME: insert proper C++ library support
10595 # FIXME: insert proper C++ library support
10599 case $cc_basename in
10601 # FIXME: insert proper C++ library support
10605 # FIXME: insert proper C++ library support
10611 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
10612 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10614 hardcode_libdir_flag_spec_CXX
='-R$libdir'
10615 hardcode_direct_CXX
=yes
10616 hardcode_shlibpath_var_CXX
=no
10618 # Workaround some broken pre-1.5 toolchains
10619 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10622 case $cc_basename in
10624 # Kuck and Associates, Inc. (KAI) C++ Compiler
10626 # KCC will only create a shared library if the output file
10627 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10628 # to its proper name (with version) after linking.
10629 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'
10631 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
10632 hardcode_libdir_separator_CXX
=:
10634 # Archives containing C++ object files must be created using
10635 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10636 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
10640 # Rational C++ 2.4.1
10641 # FIXME: insert proper C++ library support
10645 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
10646 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 ${objdir}/so_locations -o $lib'
10648 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
10649 hardcode_libdir_separator_CXX
=:
10651 # Commands to make compiler produce verbose output that lists
10652 # what "hidden" libraries, object files and flags are used when
10653 # linking a shared library.
10655 # There doesn't appear to be a way to prevent this compiler from
10656 # explicitly linking system object files so we need to strip them
10657 # from the output so that they don't get included in the library
10659 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'
10662 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
10663 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
10664 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}${objdir}/so_locations -o $lib'
10666 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
10667 hardcode_libdir_separator_CXX
=:
10669 # Commands to make compiler produce verbose output that lists
10670 # what "hidden" libraries, object files and flags are used when
10671 # linking a shared library.
10672 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10675 # FIXME: insert proper C++ library support
10682 case $cc_basename in
10684 # Kuck and Associates, Inc. (KAI) C++ Compiler
10686 # KCC will only create a shared library if the output file
10687 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10688 # to its proper name (with version) after linking.
10689 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'
10691 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
10692 hardcode_libdir_separator_CXX
=:
10694 # Archives containing C++ object files must be created using
10695 # the KAI C++ compiler.
10696 old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs'
10699 # Rational C++ 2.4.1
10700 # FIXME: insert proper C++ library support
10704 allow_undefined_flag_CXX
=' -expect_unresolved \*'
10705 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 ${objdir}/so_locations -o $lib'
10706 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10707 echo "-hidden">> $lib.exp~
10708 $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 $objdir/so_locations -o $lib~
10711 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
10712 hardcode_libdir_separator_CXX
=:
10714 # Commands to make compiler produce verbose output that lists
10715 # what "hidden" libraries, object files and flags are used when
10716 # linking a shared library.
10718 # There doesn't appear to be a way to prevent this compiler from
10719 # explicitly linking system object files so we need to strip them
10720 # from the output so that they don't get included in the library
10722 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'
10725 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
10726 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
10727 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}${objdir}/so_locations -o $lib'
10729 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
10730 hardcode_libdir_separator_CXX
=:
10732 # Commands to make compiler produce verbose output that lists
10733 # what "hidden" libraries, object files and flags are used when
10734 # linking a shared library.
10735 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10738 # FIXME: insert proper C++ library support
10745 # FIXME: insert proper C++ library support
10749 archive_cmds_need_lc_CXX
=no
10750 case $cc_basename in
10752 # FIXME: insert proper C++ library support
10756 # FIXME: insert proper C++ library support
10762 case $cc_basename in
10765 # FIXME: insert proper C++ library support
10770 # FIXME: insert proper C++ library support
10774 # FIXME: insert proper C++ library support
10780 case $cc_basename in
10782 # Sun C++ 4.2, 5.x and Centerline C++
10783 no_undefined_flag_CXX
=' -zdefs'
10784 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10785 archive_expsym_cmds_CXX
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10786 $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10788 hardcode_libdir_flag_spec_CXX
='-R$libdir'
10789 hardcode_shlibpath_var_CXX
=no
10791 solaris2.0
-5 | solaris2.0
-5.
*) ;;
10793 # The C++ compiler is used as linker so we must use $wl
10794 # flag to pass the commands to the underlying system
10796 # Supported since Solaris 2.6 (maybe 2.5.1?)
10797 whole_archive_flag_spec_CXX
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10800 link_all_deplibs_CXX
=yes
10802 # Commands to make compiler produce verbose output that lists
10803 # what "hidden" libraries, object files and flags are used when
10804 # linking a shared library.
10806 # There doesn't appear to be a way to prevent this compiler from
10807 # explicitly linking system object files so we need to strip them
10808 # from the output so that they don't get included in the library
10810 output_verbose_link_cmd
='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10812 # Archives containing C++ object files must be created using
10813 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10814 # necessary to make sure instantiated templates are included
10816 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
10819 # Green Hills C++ Compiler
10820 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10822 # The C++ compiler must be used to create the archive.
10823 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10826 # GNU C++ compiler with Solaris linker
10827 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
10828 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
10829 if $CC --version |
grep -v '^2\.7' > /dev
/null
; then
10830 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10831 archive_expsym_cmds_CXX
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10832 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10834 # Commands to make compiler produce verbose output that lists
10835 # what "hidden" libraries, object files and flags are used when
10836 # linking a shared library.
10837 output_verbose_link_cmd
="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10839 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10841 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10842 archive_expsym_cmds_CXX
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10843 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10845 # Commands to make compiler produce verbose output that lists
10846 # what "hidden" libraries, object files and flags are used when
10847 # linking a shared library.
10848 output_verbose_link_cmd
="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10851 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
10856 sysv5OpenUNIX8
* | sysv5UnixWare7
* | sysv5uw
[78]* | unixware7
*)
10857 archive_cmds_need_lc_CXX
=no
10860 case $cc_basename in
10862 # NonStop-UX NCC 3.20
10863 # FIXME: insert proper C++ library support
10867 # FIXME: insert proper C++ library support
10873 # FIXME: insert proper C++ library support
10877 # FIXME: insert proper C++ library support
10881 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10882 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
10883 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
10889 ## There is no encapsulation within the following macros, do not change
10890 ## the running order or otherwise move them around unless you know exactly
10891 ## what you are doing...
10893 cat > conftest.
$ac_ext <<EOF
10897 Foo (void) { a = 0; }
10903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10904 (eval $ac_compile) 2>&5
10906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10907 (exit $ac_status); }; then
10908 # Parse the compiler output and extract the necessary
10909 # objects, libraries and library flags.
10911 # Sentinel used to keep track of whether or not we are before
10912 # the conftest object file.
10913 pre_test_object_deps_done
=no
10915 # The `*' in the case matches for architectures that use `case' in
10916 # $output_verbose_cmd can trigger glob expansion during the loop
10917 # eval without this substitution.
10918 output_verbose_link_cmd
="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10920 for p
in `eval $output_verbose_link_cmd`; do
10924 # Some compilers place space between "-{L,R}" and the path.
10925 # Remove the space.
10926 if test $p = "-L" \
10927 ||
test $p = "-R"; then
10934 if test "$pre_test_object_deps_done" = no
; then
10937 # Internal compiler library paths should come after those
10938 # provided the user. The postdeps already come after the
10939 # user supplied libs so there is no need to process them.
10940 if test -z "$compiler_lib_search_path_CXX"; then
10941 compiler_lib_search_path_CXX
="${prev}${p}"
10943 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
10946 # The "-l" case would never come before the object being
10947 # linked, so don't bother handling this case.
10950 if test -z "$postdeps_CXX"; then
10951 postdeps_CXX
="${prev}${p}"
10953 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
10959 # This assumes that the test object file only shows up
10960 # once in the compiler output.
10961 if test "$p" = "conftest.$objext"; then
10962 pre_test_object_deps_done
=yes
10966 if test "$pre_test_object_deps_done" = no
; then
10967 if test -z "$predep_objects_CXX"; then
10968 predep_objects_CXX
="$p"
10970 predep_objects_CXX
="$predep_objects_CXX $p"
10973 if test -z "$postdep_objects_CXX"; then
10974 postdep_objects_CXX
="$p"
10976 postdep_objects_CXX
="$postdep_objects_CXX $p"
10981 *) ;; # Ignore the rest.
10989 echo "libtool.m4: error: problem compiling CXX test program"
10992 $rm -f confest.
$objext
10994 case " $postdeps_CXX " in
10995 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
10998 lt_prog_compiler_wl_CXX
=
10999 lt_prog_compiler_pic_CXX
=
11000 lt_prog_compiler_static_CXX
=
11002 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11003 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
11005 # C++ specific cases for pic, static, wl, etc.
11006 if test "$GXX" = yes; then
11007 lt_prog_compiler_wl_CXX
='-Wl,'
11008 lt_prog_compiler_static_CXX
='-static'
11012 # All AIX code is PIC.
11013 if test "$host_cpu" = ia64
; then
11014 # AIX 5 now supports IA64 processor
11015 lt_prog_compiler_static_CXX
='-Bstatic'
11019 # FIXME: we need at least 68020 code to build shared libraries, but
11020 # adding the `-m68020' flag to GCC prevents building anything better,
11022 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
11024 beos
* | cygwin
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
11025 # PIC is the default for these OSes.
11027 mingw
* | os2
* | pw32
*)
11028 # This hack is so that the source file can tell whether it is being
11029 # built for inclusion in a dll (and should export symbols for example).
11030 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
11032 darwin
* | rhapsody
*)
11033 # PIC is the default on this platform
11034 # Common symbols not allowed in MH_DYLIB files
11035 lt_prog_compiler_pic_CXX
='-fno-common'
11038 # DJGPP does not support shared libraries at all
11039 lt_prog_compiler_pic_CXX
=
11042 if test -d /usr
/nec
; then
11043 lt_prog_compiler_pic_CXX
=-Kconform_pic
11047 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11048 # not for PA HP-UX.
11049 case "$host_cpu" in
11053 lt_prog_compiler_pic_CXX
='-fPIC'
11058 lt_prog_compiler_pic_CXX
='-fPIC'
11064 # All AIX code is PIC.
11065 if test "$host_cpu" = ia64
; then
11066 # AIX 5 now supports IA64 processor
11067 lt_prog_compiler_static_CXX
='-Bstatic'
11069 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
11073 case $cc_basename in
11075 # Green Hills C++ Compiler
11076 # _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"
11081 case $cc_basename in
11083 lt_prog_compiler_pic_CXX
='-KPIC'
11086 # Green Hills C++ Compiler
11087 lt_prog_compiler_pic_CXX
='-pic'
11093 freebsd
* | kfreebsd
*-gnu)
11094 # FreeBSD uses GNU C++
11096 hpux9
* | hpux10
* | hpux11
*)
11097 case $cc_basename in
11099 lt_prog_compiler_wl_CXX
='-Wl,'
11100 lt_prog_compiler_static_CXX
="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11101 if test "$host_cpu" != ia64
; then
11102 lt_prog_compiler_pic_CXX
='+Z'
11106 lt_prog_compiler_wl_CXX
='-Wl,'
11107 lt_prog_compiler_static_CXX
="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11108 case "$host_cpu" in
11113 lt_prog_compiler_pic_CXX
='+Z'
11121 irix5
* | irix6
* | nonstopux
*)
11122 case $cc_basename in
11124 lt_prog_compiler_wl_CXX
='-Wl,'
11125 lt_prog_compiler_static_CXX
='-non_shared'
11126 # CC pic flag -KPIC is the default.
11133 case $cc_basename in
11136 lt_prog_compiler_wl_CXX
='--backend -Wl,'
11137 lt_prog_compiler_pic_CXX
='-fPIC'
11141 lt_prog_compiler_wl_CXX
='-Wl,'
11142 lt_prog_compiler_pic_CXX
='-KPIC'
11143 lt_prog_compiler_static_CXX
='-static'
11147 # Make sure the PIC flag is empty. It appears that all Alpha
11148 # Linux and Compaq Tru64 Unix objects are PIC.
11149 lt_prog_compiler_pic_CXX
=
11150 lt_prog_compiler_static_CXX
='-non_shared'
11161 case $cc_basename in
11163 lt_prog_compiler_pic_CXX
='-W c,exportall'
11171 osf3
* | osf4
* | osf5
*)
11172 case $cc_basename in
11174 lt_prog_compiler_wl_CXX
='--backend -Wl,'
11177 # Rational C++ 2.4.1
11178 lt_prog_compiler_pic_CXX
='-pic'
11181 # Digital/Compaq C++
11182 lt_prog_compiler_wl_CXX
='-Wl,'
11183 # Make sure the PIC flag is empty. It appears that all Alpha
11184 # Linux and Compaq Tru64 Unix objects are PIC.
11185 lt_prog_compiler_pic_CXX
=
11186 lt_prog_compiler_static_CXX
='-non_shared'
11195 case $cc_basename in
11197 lt_prog_compiler_pic_CXX
='-fPIC'
11204 case $cc_basename in
11206 # Sun C++ 4.2, 5.x and Centerline C++
11207 lt_prog_compiler_pic_CXX
='-KPIC'
11208 lt_prog_compiler_static_CXX
='-Bstatic'
11209 lt_prog_compiler_wl_CXX
='-Qoption ld '
11212 # Green Hills C++ Compiler
11213 lt_prog_compiler_pic_CXX
='-PIC'
11220 case $cc_basename in
11223 lt_prog_compiler_pic_CXX
='-pic'
11224 lt_prog_compiler_static_CXX
='-Bstatic'
11228 lt_prog_compiler_pic_CXX
='-pic'
11235 case $cc_basename in
11237 # NonStop-UX NCC 3.20
11238 lt_prog_compiler_pic_CXX
='-KPIC'
11249 lt_prog_compiler_can_build_shared_CXX
=no
11254 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11255 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
11258 # Check to make sure the PIC flag actually works.
11260 if test -n "$lt_prog_compiler_pic_CXX"; then
11262 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11263 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
11264 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11265 echo $ECHO_N "(cached) $ECHO_C" >&6
11267 lt_prog_compiler_pic_works_CXX
=no
11268 ac_outfile
=conftest.
$ac_objext
11269 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
11270 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
11271 # Insert the option either (1) after the last *FLAGS variable, or
11272 # (2) before a word containing "conftest.", or (3) at the end.
11273 # Note that $ac_compile itself does not contain backslashes and begins
11274 # with a dollar sign (not a hyphen), so the echo should work correctly.
11275 # The option is referenced via a variable to avoid confusing sed.
11276 lt_compile
=`echo "$ac_compile" | $SED \
11277 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11278 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11279 -e 's:$: $lt_compiler_flag:'`
11280 (eval echo "\"\$as_me:11280: $lt_compile\"" >&5)
11281 (eval "$lt_compile" 2>conftest.err
)
11283 cat conftest.err
>&5
11284 echo "$as_me:11284: \$? = $ac_status" >&5
11285 if (exit $ac_status) && test -s "$ac_outfile"; then
11286 # The compiler can only warn and ignore the option if not recognized
11287 # So say no if there are warnings
11288 if test ! -s conftest.err
; then
11289 lt_prog_compiler_pic_works_CXX
=yes
11295 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11296 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
11298 if test x
"$lt_prog_compiler_pic_works_CXX" = xyes
; then
11299 case $lt_prog_compiler_pic_CXX in
11301 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
11304 lt_prog_compiler_pic_CXX
=
11305 lt_prog_compiler_can_build_shared_CXX
=no
11310 # For platforms which do not support PIC, -DPIC is meaningless:
11312 lt_prog_compiler_pic_CXX
=
11315 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
11319 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11320 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
11321 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11322 echo $ECHO_N "(cached) $ECHO_C" >&6
11324 lt_cv_prog_compiler_c_o_CXX
=no
11325 $rm -r conftest
2>/dev
/null
11329 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
11331 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
11332 # that will create temporary files in the current directory regardless of
11333 # the output directory. Thus, making CWD read-only will cause this test
11334 # to fail, enabling locking or at least warning the user not to do parallel
11338 lt_compiler_flag
="-o out/conftest2.$ac_objext"
11339 # Insert the option either (1) after the last *FLAGS variable, or
11340 # (2) before a word containing "conftest.", or (3) at the end.
11341 # Note that $ac_compile itself does not contain backslashes and begins
11342 # with a dollar sign (not a hyphen), so the echo should work correctly.
11343 lt_compile
=`echo "$ac_compile" | $SED \
11344 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11345 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11346 -e 's:$: $lt_compiler_flag:'`
11347 (eval echo "\"\$as_me:11347: $lt_compile\"" >&5)
11348 (eval "$lt_compile" 2>out
/conftest.err
)
11350 cat out
/conftest.err
>&5
11351 echo "$as_me:11351: \$? = $ac_status" >&5
11352 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
11354 # The compiler can only warn and ignore the option if not recognized
11355 # So say no if there are warnings
11356 if test ! -s out
/conftest.err
; then
11357 lt_cv_prog_compiler_c_o_CXX
=yes
11362 # SGI C++ compiler will create directory out/ii_files/ for
11363 # template instantiation
11364 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
11365 $rm out
/* && rmdir out
11371 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11372 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
11375 hard_links
="nottested"
11376 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
11377 # do not overwrite the value of need_locks provided by the user
11378 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11379 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
11382 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
11384 ln conftest.a conftest.b
2>&5 || hard_links
=no
11385 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
11386 { echo "$as_me:$LINENO: result: $hard_links" >&5
11387 echo "${ECHO_T}$hard_links" >&6; }
11388 if test "$hard_links" = no
; then
11389 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11390 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11397 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11398 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11400 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11403 # If we're using GNU nm, then we don't want the "-C" option.
11404 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11405 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
11406 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'
11408 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'
11412 export_symbols_cmds_CXX
="$ltdll_cmds"
11415 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11418 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11422 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11423 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11424 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
11426 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
11427 if test "$GCC" = yes; then
11428 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11432 # Do we need to explicitly link libc?
11434 case "x$archive_cmds_need_lc_CXX" in
11436 # Assume -lc should be added
11437 archive_cmds_need_lc_CXX
=yes
11439 if test "$enable_shared" = yes && test "$GCC" = yes; then
11440 case $archive_cmds_CXX in
11442 # FIXME: we may have to deal with multi-command sequences.
11445 # Test whether the compiler implicitly links with -lc since on some
11446 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11447 # to ld, don't add -lc before -lgcc.
11448 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11449 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
11451 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
11453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11454 (eval $ac_compile) 2>&5
11456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11457 (exit $ac_status); } 2>conftest.err
; then
11460 libobjs
=conftest.
$ac_objext
11462 wl
=$lt_prog_compiler_wl_CXX
11468 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
11469 allow_undefined_flag_CXX
=
11470 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11471 (eval $archive_cmds_CXX 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
11473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11474 (exit $ac_status); }
11476 archive_cmds_need_lc_CXX
=no
11478 archive_cmds_need_lc_CXX
=yes
11480 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
11482 cat conftest.err
1>&5
11485 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11486 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
11493 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11494 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
11495 library_names_spec
=
11496 libname_spec
='lib$name'
11500 postuninstall_cmds
=
11504 shlibpath_overrides_runpath
=unknown
11506 dynamic_linker
="$host_os ld.so"
11507 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
11508 if test "$GCC" = yes; then
11509 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11510 if echo "$sys_lib_search_path_spec" |
grep ';' >/dev
/null
; then
11511 # if the path contains ";" then we assume it to be the separator
11512 # otherwise default to the standard path separator (i.e. ":") - it is
11513 # assumed that no part of a normal pathname contains ";" but that should
11514 # okay in the real world where ";" in dirpaths is itself problematic.
11515 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11517 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11520 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
11522 need_lib_prefix
=unknown
11523 hardcode_into_libs
=no
11525 # when you set need_version to no, make sure it does not cause -set_version
11526 # flags to be left without arguments
11527 need_version
=unknown
11532 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
11533 shlibpath_var
=LIBPATH
11535 # AIX 3 has no versioning support, so we append a major version to the name.
11536 soname_spec
='${libname}${release}${shared_ext}$major'
11543 hardcode_into_libs
=yes
11544 if test "$host_cpu" = ia64
; then
11545 # AIX 5 supports IA64
11546 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11547 shlibpath_var
=LD_LIBRARY_PATH
11549 # With GCC up to 2.95.x, collect2 would create an import file
11550 # for dependence libraries. The import file would start with
11551 # the line `#! .'. This would cause the generated library to
11552 # depend on `.', always an invalid library. This was fixed in
11553 # development snapshots of GCC prior to 3.0.
11555 aix4 | aix4.
[01] | aix4.
[01].
*)
11556 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11558 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
11561 can_build_shared
=no
11565 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11566 # soname into executable. Probably we can add versioning support to
11567 # collect2, so additional links can be useful in future.
11568 if test "$aix_use_runtimelinking" = yes; then
11569 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11570 # instead of lib<name>.a to let people know that these are not
11571 # typical AIX shared libraries.
11572 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11574 # We preserve .a as extension for shared libraries through AIX4.2
11575 # and later when we are not doing run time linking.
11576 library_names_spec
='${libname}${release}.a $libname.a'
11577 soname_spec
='${libname}${release}${shared_ext}$major'
11579 shlibpath_var
=LIBPATH
11584 library_names_spec
='$libname.ixlibrary $libname.a'
11585 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11586 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'
11590 library_names_spec
='${libname}${shared_ext}'
11591 dynamic_linker
="$host_os ld.so"
11592 shlibpath_var
=LIBRARY_PATH
11598 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11599 soname_spec
='${libname}${release}${shared_ext}$major'
11600 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
11601 shlibpath_var
=LD_LIBRARY_PATH
11602 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11603 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
11604 # the default ld.so.conf also contains /usr/contrib/lib and
11605 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11606 # libtool to hard-code these into programs
11609 cygwin
* | mingw
* | pw32
*)
11610 version_type
=windows
11615 case $GCC,$host_os in
11616 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
11617 library_names_spec
='$libname.dll.a'
11618 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11619 postinstall_cmds
='base_file=`basename \${file}`~
11620 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11621 dldir=$destdir/`dirname \$dlpath`~
11622 test -d \$dldir || mkdir -p \$dldir~
11623 $install_prog $dir/$dlname \$dldir/$dlname'
11624 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11625 dlpath=$dir/\$dldll~
11627 shlibpath_overrides_runpath
=yes
11631 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11632 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11633 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
11636 # MinGW DLLs use traditional 'lib' prefix
11637 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11638 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11639 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
11640 # It is most probably a Windows format PATH printed by
11641 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11642 # path with ; separators, and with drive letters. We can handle the
11643 # drive letters (cygwin fileutils understands them), so leave them,
11644 # especially as we might pass files found there to a mingw objdump,
11645 # which wouldn't understand a cygwinified path. Ahh.
11646 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11648 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11652 # pw32 DLLs use 'pw' prefix rather than 'lib'
11653 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11659 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11662 dynamic_linker
='Win32 ld.exe'
11663 # FIXME: first we should search . and the directory the executable is in
11667 darwin
* | rhapsody
*)
11668 dynamic_linker
="$host_os dyld"
11669 version_type
=darwin
11672 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11673 soname_spec
='${libname}${release}${major}$shared_ext'
11674 shlibpath_overrides_runpath
=yes
11675 shlibpath_var
=DYLD_LIBRARY_PATH
11676 shrext
='$(test .$module = .yes && echo .so || echo .dylib)'
11677 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11678 if test "$GCC" = yes; then
11679 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"`
11681 sys_lib_search_path_spec
='/lib /usr/lib /usr/local/lib'
11683 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
11690 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11691 soname_spec
='${libname}${release}${shared_ext}$major'
11692 shlibpath_var
=LD_LIBRARY_PATH
11703 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11704 soname_spec
='${libname}${release}${shared_ext}$major'
11705 shlibpath_var
=LD_LIBRARY_PATH
11706 shlibpath_overrides_runpath
=no
11707 hardcode_into_libs
=yes
11708 dynamic_linker
='GNU ld.so'
11712 objformat
=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11713 version_type
=freebsd-
$objformat
11714 case $version_type in
11716 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11721 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11725 shlibpath_var
=LD_LIBRARY_PATH
11728 shlibpath_overrides_runpath
=yes
11730 freebsd3.01
* | freebsdelf3.01
*)
11731 shlibpath_overrides_runpath
=yes
11732 hardcode_into_libs
=yes
11735 shlibpath_overrides_runpath
=no
11736 hardcode_into_libs
=yes
11745 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11746 soname_spec
='${libname}${release}${shared_ext}$major'
11747 shlibpath_var
=LD_LIBRARY_PATH
11748 hardcode_into_libs
=yes
11751 hpux9
* | hpux10
* | hpux11
*)
11752 # Give a soname corresponding to the major version so that dld.sl refuses to
11753 # link against other versions.
11757 case "$host_cpu" in
11760 hardcode_into_libs
=yes
11761 dynamic_linker
="$host_os dld.so"
11762 shlibpath_var
=LD_LIBRARY_PATH
11763 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
11764 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11765 soname_spec
='${libname}${release}${shared_ext}$major'
11766 if test "X$HPUX_IA64_MODE" = X32
; then
11767 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11769 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
11771 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
11775 hardcode_into_libs
=yes
11776 dynamic_linker
="$host_os dld.sl"
11777 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
11778 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
11779 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11780 soname_spec
='${libname}${release}${shared_ext}$major'
11781 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11782 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
11786 dynamic_linker
="$host_os dld.sl"
11787 shlibpath_var
=SHLIB_PATH
11788 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
11789 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11790 soname_spec
='${libname}${release}${shared_ext}$major'
11793 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11794 postinstall_cmds
='chmod 555 $lib'
11797 irix5
* | irix6
* | nonstopux
*)
11799 nonstopux
*) version_type
=nonstopux
;;
11801 if test "$lt_cv_prog_gnu_ld" = yes; then
11809 soname_spec
='${libname}${release}${shared_ext}$major'
11810 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11812 irix5
* | nonstopux
*)
11813 libsuff
= shlibsuff
=
11816 case $LD in # libtool.m4 will add one of these switches to LD
11817 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
11818 libsuff
= shlibsuff
= libmagic
=32-bit;;
11819 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
11820 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
11821 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
11822 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
11823 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
11827 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
11828 shlibpath_overrides_runpath
=no
11829 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11830 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
11831 hardcode_into_libs
=yes
11834 # No shared lib support for Linux oldld, aout, or coff.
11835 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
11839 # This must be Linux ELF.
11844 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11845 soname_spec
='${libname}${release}${shared_ext}$major'
11846 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11847 shlibpath_var
=LD_LIBRARY_PATH
11848 shlibpath_overrides_runpath
=no
11849 # This implies no fast_install, which is unacceptable.
11850 # Some rework will be needed to allow for fast_install
11851 # before this can be enabled.
11852 hardcode_into_libs
=yes
11854 # We used to test for /lib/ld.so.1 and disable shared libraries on
11855 # powerpc, because MkLinux only supported shared libraries with the
11856 # GNU dynamic linker. Since this was broken with cross compilers,
11857 # most powerpc-linux boxes support dynamic linking these days and
11858 # people can always --disable-shared, the test was removed, and we
11859 # assume the GNU/Linux dynamic linker is in use.
11860 dynamic_linker
='GNU/Linux ld.so'
11867 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
11868 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11869 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11870 dynamic_linker
='NetBSD (a.out) ld.so'
11872 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11873 soname_spec
='${libname}${release}${shared_ext}$major'
11874 dynamic_linker
='NetBSD ld.elf_so'
11876 shlibpath_var
=LD_LIBRARY_PATH
11877 shlibpath_overrides_runpath
=yes
11878 hardcode_into_libs
=yes
11883 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11884 shlibpath_var
=LD_LIBRARY_PATH
11885 shlibpath_overrides_runpath
=yes
11892 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11893 soname_spec
='${libname}${release}${shared_ext}$major'
11894 shlibpath_var
=LD_LIBRARY_PATH
11895 shlibpath_overrides_runpath
=yes
11902 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11903 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11904 shlibpath_var
=LD_LIBRARY_PATH
11905 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11907 openbsd2.
[89] | openbsd2.
[89].
*)
11908 shlibpath_overrides_runpath
=no
11911 shlibpath_overrides_runpath
=yes
11915 shlibpath_overrides_runpath
=yes
11920 libname_spec
='$name'
11923 library_names_spec
='$libname${shared_ext} $libname.a'
11924 dynamic_linker
='OS/2 ld.exe'
11925 shlibpath_var
=LIBPATH
11928 osf3
* | osf4
* | osf5
*)
11932 soname_spec
='${libname}${release}${shared_ext}$major'
11933 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11934 shlibpath_var
=LD_LIBRARY_PATH
11935 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11936 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
11941 soname_spec
='${libname}${release}${shared_ext}$major'
11942 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11943 shlibpath_var
=LD_LIBRARY_PATH
11950 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11951 soname_spec
='${libname}${release}${shared_ext}$major'
11952 shlibpath_var
=LD_LIBRARY_PATH
11953 shlibpath_overrides_runpath
=yes
11954 hardcode_into_libs
=yes
11955 # ldd complains unless libraries are executable
11956 postinstall_cmds
='chmod +x $lib'
11961 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11962 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11963 shlibpath_var
=LD_LIBRARY_PATH
11964 shlibpath_overrides_runpath
=yes
11965 if test "$with_gnu_ld" = yes; then
11971 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
11973 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11974 soname_spec
='${libname}${release}${shared_ext}$major'
11975 shlibpath_var
=LD_LIBRARY_PATH
11976 case $host_vendor in
11978 shlibpath_overrides_runpath
=no
11980 export_dynamic_flag_spec
='${wl}-Blargedynsym'
11981 runpath_var
=LD_RUN_PATH
11989 shlibpath_overrides_runpath
=no
11990 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
11996 if test -d /usr
/nec
;then
11998 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11999 soname_spec
='$libname${shared_ext}.$major'
12000 shlibpath_var
=LD_LIBRARY_PATH
12006 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12007 soname_spec
='${libname}${release}${shared_ext}$major'
12008 shlibpath_var
=LD_LIBRARY_PATH
12015 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12016 echo "${ECHO_T}$dynamic_linker" >&6; }
12017 test "$dynamic_linker" = no
&& can_build_shared
=no
12019 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12020 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
12021 hardcode_action_CXX
=
12022 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12023 test -n "$runpath_var CXX" || \
12024 test "X$hardcode_automatic_CXX"="Xyes" ; then
12026 # We can hardcode non-existant directories.
12027 if test "$hardcode_direct_CXX" != no
&&
12028 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12029 # have to relink, otherwise we might link with an installed library
12030 # when we should be linking with a yet-to-be-installed one
12031 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12032 test "$hardcode_minus_L_CXX" != no
; then
12033 # Linking always hardcodes the temporary library directory.
12034 hardcode_action_CXX
=relink
12036 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12037 hardcode_action_CXX
=immediate
12040 # We cannot hardcode anything, or else we can only hardcode existing
12042 hardcode_action_CXX
=unsupported
12044 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12045 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
12047 if test "$hardcode_action_CXX" = relink
; then
12048 # Fast installation is not supported
12049 enable_fast_install
=no
12050 elif test "$shlibpath_overrides_runpath" = yes ||
12051 test "$enable_shared" = no
; then
12052 # Fast installation is not necessary
12053 enable_fast_install
=needless
12058 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12059 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
12060 if test -n "$STRIP" && $STRIP -V 2>&1 |
grep "GNU strip" >/dev
/null
; then
12061 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
12062 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
12063 { echo "$as_me:$LINENO: result: yes" >&5
12064 echo "${ECHO_T}yes" >&6; }
12066 # FIXME - insert some real tests, host_os isn't really good enough
12069 if test -n "$STRIP" ; then
12070 striplib
="$STRIP -x"
12071 { echo "$as_me:$LINENO: result: yes" >&5
12072 echo "${ECHO_T}yes" >&6; }
12074 { echo "$as_me:$LINENO: result: no" >&5
12075 echo "${ECHO_T}no" >&6; }
12079 { echo "$as_me:$LINENO: result: no" >&5
12080 echo "${ECHO_T}no" >&6; }
12085 if test "x$enable_dlopen" != xyes
; then
12086 enable_dlopen
=unknown
12087 enable_dlopen_self
=unknown
12088 enable_dlopen_self_static
=unknown
12095 lt_cv_dlopen
="load_add_on"
12097 lt_cv_dlopen_self
=yes
12101 lt_cv_dlopen
="LoadLibrary"
12106 lt_cv_dlopen
="dlopen"
12111 # if libdl is installed we need to link against it
12112 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12113 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12114 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12115 echo $ECHO_N "(cached) $ECHO_C" >&6
12117 ac_check_lib_save_LIBS
=$LIBS
12119 cat >conftest.
$ac_ext <<_ACEOF
12122 cat confdefs.h
>>conftest.
$ac_ext
12123 cat >>conftest.
$ac_ext <<_ACEOF
12124 /* end confdefs.h. */
12126 /* Override any GCC internal prototype to avoid an error.
12127 Use char because int might match the return type of a GCC
12128 builtin and then its argument prototype would still apply. */
12141 rm -f conftest.
$ac_objext conftest
$ac_exeext
12142 if { (ac_try
="$ac_link"
12143 case "(($ac_try" in
12144 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12145 *) ac_try_echo=$ac_try;;
12147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12148 (eval "$ac_link") 2>conftest.er1
12150 grep -v '^ *+' conftest.er1 >conftest.err
12152 cat conftest.err >&5
12153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12154 (exit $ac_status); } && {
12155 test -z "$ac_cxx_werror_flag" ||
12156 test ! -s conftest.err
12157 } && test -s conftest$ac_exeext &&
12158 $as_test_x conftest$ac_exeext; then
12159 ac_cv_lib_dl_dlopen=yes
12161 echo "$as_me: failed program was:" >&5
12162 sed 's/^/| /' conftest.$ac_ext >&5
12164 ac_cv_lib_dl_dlopen=no
12167 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12168 conftest$ac_exeext conftest.$ac_ext
12169 LIBS=$ac_check_lib_save_LIBS
12171 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12172 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12173 if test $ac_cv_lib_dl_dlopen = yes; then
12174 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12177 lt_cv_dlopen="dyld"
12179 lt_cv_dlopen_self=yes
12186 { echo "$as_me:$LINENO: checking for shl_load" >&5
12187 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
12188 if test "${ac_cv_func_shl_load+set}" = set; then
12189 echo $ECHO_N "(cached) $ECHO_C" >&6
12191 cat >conftest.$ac_ext <<_ACEOF
12194 cat confdefs.h >>conftest.$ac_ext
12195 cat >>conftest.$ac_ext <<_ACEOF
12196 /* end confdefs.h. */
12197 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12198 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12199 #define shl_load innocuous_shl_load
12201 /* System header to define __stub macros and hopefully few prototypes,
12202 which can conflict with char shl_load (); below.
12203 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12204 <limits.h> exists even on freestanding compilers. */
12207 # include <limits.h>
12209 # include <assert.h>
12214 /* Override any GCC internal prototype to avoid an error.
12215 Use char because int might match the return type of a GCC
12216 builtin and then its argument prototype would still apply. */
12221 /* The GNU C library defines this for functions which it implements
12222 to always fail with ENOSYS. Some functions are actually named
12223 something starting with __ and the normal name is an alias. */
12224 #if defined __stub_shl_load || defined __stub___shl_load
12231 return shl_load ();
12236 rm -f conftest.$ac_objext conftest$ac_exeext
12237 if { (ac_try="$ac_link"
12238 case "(($ac_try" in
12239 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12240 *) ac_try_echo
=$ac_try;;
12242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12243 (eval "$ac_link") 2>conftest.er1
12245 grep -v '^ *+' conftest.er1
>conftest.err
12247 cat conftest.err
>&5
12248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12249 (exit $ac_status); } && {
12250 test -z "$ac_cxx_werror_flag" ||
12251 test ! -s conftest.err
12252 } && test -s conftest
$ac_exeext &&
12253 $as_test_x conftest
$ac_exeext; then
12254 ac_cv_func_shl_load
=yes
12256 echo "$as_me: failed program was:" >&5
12257 sed 's/^/| /' conftest.
$ac_ext >&5
12259 ac_cv_func_shl_load
=no
12262 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12263 conftest
$ac_exeext conftest.
$ac_ext
12265 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12266 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
12267 if test $ac_cv_func_shl_load = yes; then
12268 lt_cv_dlopen
="shl_load"
12270 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12271 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
12272 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12273 echo $ECHO_N "(cached) $ECHO_C" >&6
12275 ac_check_lib_save_LIBS
=$LIBS
12277 cat >conftest.
$ac_ext <<_ACEOF
12280 cat confdefs.h
>>conftest.
$ac_ext
12281 cat >>conftest.
$ac_ext <<_ACEOF
12282 /* end confdefs.h. */
12284 /* Override any GCC internal prototype to avoid an error.
12285 Use char because int might match the return type of a GCC
12286 builtin and then its argument prototype would still apply. */
12294 return shl_load ();
12299 rm -f conftest.
$ac_objext conftest
$ac_exeext
12300 if { (ac_try
="$ac_link"
12301 case "(($ac_try" in
12302 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12303 *) ac_try_echo=$ac_try;;
12305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12306 (eval "$ac_link") 2>conftest.er1
12308 grep -v '^ *+' conftest.er1 >conftest.err
12310 cat conftest.err >&5
12311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12312 (exit $ac_status); } && {
12313 test -z "$ac_cxx_werror_flag" ||
12314 test ! -s conftest.err
12315 } && test -s conftest$ac_exeext &&
12316 $as_test_x conftest$ac_exeext; then
12317 ac_cv_lib_dld_shl_load=yes
12319 echo "$as_me: failed program was:" >&5
12320 sed 's/^/| /' conftest.$ac_ext >&5
12322 ac_cv_lib_dld_shl_load=no
12325 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12326 conftest$ac_exeext conftest.$ac_ext
12327 LIBS=$ac_check_lib_save_LIBS
12329 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12330 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
12331 if test $ac_cv_lib_dld_shl_load = yes; then
12332 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12334 { echo "$as_me:$LINENO: checking for dlopen" >&5
12335 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
12336 if test "${ac_cv_func_dlopen+set}" = set; then
12337 echo $ECHO_N "(cached) $ECHO_C" >&6
12339 cat >conftest.$ac_ext <<_ACEOF
12342 cat confdefs.h >>conftest.$ac_ext
12343 cat >>conftest.$ac_ext <<_ACEOF
12344 /* end confdefs.h. */
12345 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12346 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12347 #define dlopen innocuous_dlopen
12349 /* System header to define __stub macros and hopefully few prototypes,
12350 which can conflict with char dlopen (); below.
12351 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12352 <limits.h> exists even on freestanding compilers. */
12355 # include <limits.h>
12357 # include <assert.h>
12362 /* Override any GCC internal prototype to avoid an error.
12363 Use char because int might match the return type of a GCC
12364 builtin and then its argument prototype would still apply. */
12369 /* The GNU C library defines this for functions which it implements
12370 to always fail with ENOSYS. Some functions are actually named
12371 something starting with __ and the normal name is an alias. */
12372 #if defined __stub_dlopen || defined __stub___dlopen
12384 rm -f conftest.$ac_objext conftest$ac_exeext
12385 if { (ac_try="$ac_link"
12386 case "(($ac_try" in
12387 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12388 *) ac_try_echo
=$ac_try;;
12390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12391 (eval "$ac_link") 2>conftest.er1
12393 grep -v '^ *+' conftest.er1
>conftest.err
12395 cat conftest.err
>&5
12396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12397 (exit $ac_status); } && {
12398 test -z "$ac_cxx_werror_flag" ||
12399 test ! -s conftest.err
12400 } && test -s conftest
$ac_exeext &&
12401 $as_test_x conftest
$ac_exeext; then
12402 ac_cv_func_dlopen
=yes
12404 echo "$as_me: failed program was:" >&5
12405 sed 's/^/| /' conftest.
$ac_ext >&5
12407 ac_cv_func_dlopen
=no
12410 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12411 conftest
$ac_exeext conftest.
$ac_ext
12413 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12414 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
12415 if test $ac_cv_func_dlopen = yes; then
12416 lt_cv_dlopen
="dlopen"
12418 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12419 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12420 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12421 echo $ECHO_N "(cached) $ECHO_C" >&6
12423 ac_check_lib_save_LIBS
=$LIBS
12425 cat >conftest.
$ac_ext <<_ACEOF
12428 cat confdefs.h
>>conftest.
$ac_ext
12429 cat >>conftest.
$ac_ext <<_ACEOF
12430 /* end confdefs.h. */
12432 /* Override any GCC internal prototype to avoid an error.
12433 Use char because int might match the return type of a GCC
12434 builtin and then its argument prototype would still apply. */
12447 rm -f conftest.
$ac_objext conftest
$ac_exeext
12448 if { (ac_try
="$ac_link"
12449 case "(($ac_try" in
12450 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12451 *) ac_try_echo=$ac_try;;
12453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12454 (eval "$ac_link") 2>conftest.er1
12456 grep -v '^ *+' conftest.er1 >conftest.err
12458 cat conftest.err >&5
12459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12460 (exit $ac_status); } && {
12461 test -z "$ac_cxx_werror_flag" ||
12462 test ! -s conftest.err
12463 } && test -s conftest$ac_exeext &&
12464 $as_test_x conftest$ac_exeext; then
12465 ac_cv_lib_dl_dlopen=yes
12467 echo "$as_me: failed program was:" >&5
12468 sed 's/^/| /' conftest.$ac_ext >&5
12470 ac_cv_lib_dl_dlopen=no
12473 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12474 conftest$ac_exeext conftest.$ac_ext
12475 LIBS=$ac_check_lib_save_LIBS
12477 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12478 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12479 if test $ac_cv_lib_dl_dlopen = yes; then
12480 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12482 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12483 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
12484 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12485 echo $ECHO_N "(cached) $ECHO_C" >&6
12487 ac_check_lib_save_LIBS=$LIBS
12488 LIBS="-lsvld $LIBS"
12489 cat >conftest.$ac_ext <<_ACEOF
12492 cat confdefs.h >>conftest.$ac_ext
12493 cat >>conftest.$ac_ext <<_ACEOF
12494 /* end confdefs.h. */
12496 /* Override any GCC internal prototype to avoid an error.
12497 Use char because int might match the return type of a GCC
12498 builtin and then its argument prototype would still apply. */
12511 rm -f conftest.$ac_objext conftest$ac_exeext
12512 if { (ac_try="$ac_link"
12513 case "(($ac_try" in
12514 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12515 *) ac_try_echo
=$ac_try;;
12517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12518 (eval "$ac_link") 2>conftest.er1
12520 grep -v '^ *+' conftest.er1
>conftest.err
12522 cat conftest.err
>&5
12523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12524 (exit $ac_status); } && {
12525 test -z "$ac_cxx_werror_flag" ||
12526 test ! -s conftest.err
12527 } && test -s conftest
$ac_exeext &&
12528 $as_test_x conftest
$ac_exeext; then
12529 ac_cv_lib_svld_dlopen
=yes
12531 echo "$as_me: failed program was:" >&5
12532 sed 's/^/| /' conftest.
$ac_ext >&5
12534 ac_cv_lib_svld_dlopen
=no
12537 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12538 conftest
$ac_exeext conftest.
$ac_ext
12539 LIBS
=$ac_check_lib_save_LIBS
12541 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12542 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
12543 if test $ac_cv_lib_svld_dlopen = yes; then
12544 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
12546 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12547 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
12548 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12549 echo $ECHO_N "(cached) $ECHO_C" >&6
12551 ac_check_lib_save_LIBS
=$LIBS
12553 cat >conftest.
$ac_ext <<_ACEOF
12556 cat confdefs.h
>>conftest.
$ac_ext
12557 cat >>conftest.
$ac_ext <<_ACEOF
12558 /* end confdefs.h. */
12560 /* Override any GCC internal prototype to avoid an error.
12561 Use char because int might match the return type of a GCC
12562 builtin and then its argument prototype would still apply. */
12570 return dld_link ();
12575 rm -f conftest.
$ac_objext conftest
$ac_exeext
12576 if { (ac_try
="$ac_link"
12577 case "(($ac_try" in
12578 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12579 *) ac_try_echo=$ac_try;;
12581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12582 (eval "$ac_link") 2>conftest.er1
12584 grep -v '^ *+' conftest.er1 >conftest.err
12586 cat conftest.err >&5
12587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12588 (exit $ac_status); } && {
12589 test -z "$ac_cxx_werror_flag" ||
12590 test ! -s conftest.err
12591 } && test -s conftest$ac_exeext &&
12592 $as_test_x conftest$ac_exeext; then
12593 ac_cv_lib_dld_dld_link=yes
12595 echo "$as_me: failed program was:" >&5
12596 sed 's/^/| /' conftest.$ac_ext >&5
12598 ac_cv_lib_dld_dld_link=no
12601 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12602 conftest$ac_exeext conftest.$ac_ext
12603 LIBS=$ac_check_lib_save_LIBS
12605 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12606 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
12607 if test $ac_cv_lib_dld_dld_link = yes; then
12608 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12629 if test "x$lt_cv_dlopen" != xno; then
12635 case $lt_cv_dlopen in
12637 save_CPPFLAGS="$CPPFLAGS"
12638 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12640 save_LDFLAGS="$LDFLAGS"
12641 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12644 LIBS="$lt_cv_dlopen_libs $LIBS"
12646 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12647 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
12648 if test "${lt_cv_dlopen_self+set}" = set; then
12649 echo $ECHO_N "(cached) $ECHO_C" >&6
12651 if test "$cross_compiling" = yes; then :
12652 lt_cv_dlopen_self=cross
12654 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12655 lt_status=$lt_dlunknown
12656 cat > conftest.$ac_ext <<EOF
12657 #line 12657 "configure"
12658 #include "confdefs.h"
12667 # define LT_DLGLOBAL RTLD_GLOBAL
12670 # define LT_DLGLOBAL DL_GLOBAL
12672 # define LT_DLGLOBAL 0
12676 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12677 find out it does not work in some platform. */
12678 #ifndef LT_DLLAZY_OR_NOW
12680 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12683 # define LT_DLLAZY_OR_NOW DL_LAZY
12686 # define LT_DLLAZY_OR_NOW RTLD_NOW
12689 # define LT_DLLAZY_OR_NOW DL_NOW
12691 # define LT_DLLAZY_OR_NOW 0
12699 extern "C" void exit (int);
12702 void fnord() { int i=42;}
12705 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12706 int status = $lt_dlunknown;
12710 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12711 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12712 /* dlclose (self); */
12718 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12719 (eval $ac_link) 2>&5
12721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12722 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12723 (./conftest; exit; ) 2>/dev/null
12725 case x$lt_status in
12726 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12727 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12728 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12731 # compilation failed
12732 lt_cv_dlopen_self=no
12739 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12740 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
12742 if test "x$lt_cv_dlopen_self" = xyes; then
12743 LDFLAGS="$LDFLAGS $link_static_flag"
12744 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12745 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
12746 if test "${lt_cv_dlopen_self_static+set}" = set; then
12747 echo $ECHO_N "(cached) $ECHO_C" >&6
12749 if test "$cross_compiling" = yes; then :
12750 lt_cv_dlopen_self_static=cross
12752 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12753 lt_status=$lt_dlunknown
12754 cat > conftest.$ac_ext <<EOF
12755 #line 12755 "configure"
12756 #include "confdefs.h"
12765 # define LT_DLGLOBAL RTLD_GLOBAL
12768 # define LT_DLGLOBAL DL_GLOBAL
12770 # define LT_DLGLOBAL 0
12774 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12775 find out it does not work in some platform. */
12776 #ifndef LT_DLLAZY_OR_NOW
12778 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12781 # define LT_DLLAZY_OR_NOW DL_LAZY
12784 # define LT_DLLAZY_OR_NOW RTLD_NOW
12787 # define LT_DLLAZY_OR_NOW DL_NOW
12789 # define LT_DLLAZY_OR_NOW 0
12797 extern "C" void exit (int);
12800 void fnord() { int i=42;}
12803 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12804 int status = $lt_dlunknown;
12808 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12809 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12810 /* dlclose (self); */
12816 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12817 (eval $ac_link) 2>&5
12819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12820 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12821 (./conftest; exit; ) 2>/dev/null
12823 case x$lt_status in
12824 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12825 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12826 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12829 # compilation failed
12830 lt_cv_dlopen_self_static=no
12837 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12838 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
12841 CPPFLAGS="$save_CPPFLAGS"
12842 LDFLAGS="$save_LDFLAGS"
12847 case $lt_cv_dlopen_self in
12848 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12849 *) enable_dlopen_self=unknown ;;
12852 case $lt_cv_dlopen_self_static in
12853 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12854 *) enable_dlopen_self_static=unknown ;;
12859 # The else clause should only fire when bootstrapping the
12860 # libtool distribution, otherwise you forgot to ship ltmain.sh
12861 # with your package, and you will get complaints that there are
12862 # no rules to generate ltmain.sh.
12863 if test -f "$ltmain"; then
12864 # See if we are running on zsh, and set the options which allow our commands through
12865 # without removal of \ escapes.
12866 if test -n "${ZSH_VERSION+set}" ; then
12867 setopt NO_GLOB_SUBST
12869 # Now quote all the things that may contain metacharacters while being
12870 # careful not to overquote the AC_SUBSTed values. We take copies of the
12871 # variables and quote the copies for generation of the libtool script.
12872 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
12873 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12874 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12875 deplibs_check_method reload_flag reload_cmds need_locks \
12876 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12877 lt_cv_sys_global_symbol_to_c_name_address \
12878 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12879 old_postinstall_cmds old_postuninstall_cmds \
12883 lt_prog_compiler_wl_CXX \
12884 lt_prog_compiler_pic_CXX \
12885 lt_prog_compiler_static_CXX \
12886 lt_prog_compiler_no_builtin_flag_CXX \
12887 export_dynamic_flag_spec_CXX \
12888 thread_safe_flag_spec_CXX \
12889 whole_archive_flag_spec_CXX \
12890 enable_shared_with_static_runtimes_CXX \
12891 old_archive_cmds_CXX \
12892 old_archive_from_new_cmds_CXX \
12893 predep_objects_CXX \
12894 postdep_objects_CXX \
12897 compiler_lib_search_path_CXX \
12899 archive_expsym_cmds_CXX \
12900 postinstall_cmds_CXX \
12901 postuninstall_cmds_CXX \
12902 old_archive_from_expsyms_cmds_CXX \
12903 allow_undefined_flag_CXX \
12904 no_undefined_flag_CXX \
12905 export_symbols_cmds_CXX \
12906 hardcode_libdir_flag_spec_CXX \
12907 hardcode_libdir_flag_spec_ld_CXX \
12908 hardcode_libdir_separator_CXX \
12909 hardcode_automatic_CXX \
12911 module_expsym_cmds_CXX \
12912 lt_cv_prog_compiler_c_o_CXX \
12913 exclude_expsyms_CXX \
12914 include_expsyms_CXX; do
12917 old_archive_cmds_CXX | \
12918 old_archive_from_new_cmds_CXX | \
12919 archive_cmds_CXX | \
12920 archive_expsym_cmds_CXX | \
12921 module_cmds_CXX | \
12922 module_expsym_cmds_CXX | \
12923 old_archive_from_expsyms_cmds_CXX | \
12924 export_symbols_cmds_CXX | \
12925 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12926 postinstall_cmds | postuninstall_cmds | \
12927 old_postinstall_cmds | old_postuninstall_cmds | \
12928 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12929 # Double-quote double-evaled strings.
12930 eval "lt_$var=\\\"\`\
$echo \"X\$
$var\" | \
$Xsed -e \"\
$double_quote_subst\" -e \"\
$sed_quote_subst\" -e \"\
$delay_variable_subst\"\
`\\\""
12933 eval "lt_$var=\\\"\`\
$echo \"X\$
$var\" | \
$Xsed -e \"\
$sed_quote_subst\"\
`\\\""
12939 *'\$0 --fallback-echo"')
12940 lt_echo=`$echo "X$lt_echo" |
$Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12946 cat <<__EOF__ >> "$cfgfile"
12947 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12949 # Libtool was configured on host `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`:
12951 # Shell to use when invoking shell scripts.
12954 # Whether or not to build shared libraries.
12955 build_libtool_libs=$enable_shared
12957 # Whether or not to build static libraries.
12958 build_old_libs=$enable_static
12960 # Whether or not to add -lc for building shared libraries.
12961 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12963 # Whether or not to disallow shared libs when runtime libs are static
12964 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12966 # Whether or not to optimize for fast installation.
12967 fast_install=$enable_fast_install
12970 host_alias=$host_alias
12973 # An echo program that does not interpret backslashes.
12978 AR_FLAGS=$lt_AR_FLAGS
12983 # A language-specific compiler.
12984 CC=$lt_compiler_CXX
12986 # Is the compiler the GNU C compiler?
12992 # The linker used to build libraries.
12995 # Whether we need hard or soft links.
12998 # A BSD-compatible nm program.
13001 # A symbol stripping program
13004 # Used to examine libraries when file_magic_cmd begins "file"
13005 MAGIC_CMD=$MAGIC_CMD
13007 # Used on cygwin: DLL creation program.
13010 # Used on cygwin: object dumper.
13013 # Used on cygwin: assembler.
13016 # The name of the directory that contains temporary libtool files.
13019 # How to create reloadable object files.
13020 reload_flag=$lt_reload_flag
13021 reload_cmds=$lt_reload_cmds
13023 # How to pass a linker flag through the compiler.
13024 wl=$lt_lt_prog_compiler_wl_CXX
13026 # Object file suffix (normally "o").
13027 objext="$ac_objext"
13029 # Old archive suffix (normally "a").
13032 # Shared library suffix (normally ".so").
13035 # Executable file suffix (normally "").
13038 # Additional compiler flags for building library objects.
13039 pic_flag=$lt_lt_prog_compiler_pic_CXX
13042 # What is the maximum length of a command?
13043 max_cmd_len=$lt_cv_sys_max_cmd_len
13045 # Does compiler simultaneously support -c and -o options?
13046 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13048 # Must we lock files when doing compilation ?
13049 need_locks=$lt_need_locks
13051 # Do we need the lib prefix for modules?
13052 need_lib_prefix=$need_lib_prefix
13054 # Do we need a version for libraries?
13055 need_version=$need_version
13057 # Whether dlopen is supported.
13058 dlopen_support=$enable_dlopen
13060 # Whether dlopen of programs is supported.
13061 dlopen_self=$enable_dlopen_self
13063 # Whether dlopen of statically linked programs is supported.
13064 dlopen_self_static=$enable_dlopen_self_static
13066 # Compiler flag to prevent dynamic linking.
13067 link_static_flag=$lt_lt_prog_compiler_static_CXX
13069 # Compiler flag to turn off builtin functions.
13070 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13072 # Compiler flag to allow reflexive dlopens.
13073 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13075 # Compiler flag to generate shared objects directly from archives.
13076 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13078 # Compiler flag to generate thread-safe objects.
13079 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13081 # Library versioning type.
13082 version_type=$version_type
13084 # Format of library name prefix.
13085 libname_spec=$lt_libname_spec
13087 # List of archive names. First name is the real one, the rest are links.
13088 # The last name is the one that the linker finds with -lNAME.
13089 library_names_spec=$lt_library_names_spec
13091 # The coded name of the library, if different from the real name.
13092 soname_spec=$lt_soname_spec
13094 # Commands used to build and install an old-style archive.
13096 old_archive_cmds=$lt_old_archive_cmds_CXX
13097 old_postinstall_cmds=$lt_old_postinstall_cmds
13098 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13100 # Create an old-style archive from a shared archive.
13101 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13103 # Create a temporary old-style archive to link instead of a shared archive.
13104 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13106 # Commands used to build and install a shared archive.
13107 archive_cmds=$lt_archive_cmds_CXX
13108 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13109 postinstall_cmds=$lt_postinstall_cmds
13110 postuninstall_cmds=$lt_postuninstall_cmds
13112 # Commands used to build a loadable module (assumed same as above if empty)
13113 module_cmds=$lt_module_cmds_CXX
13114 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13116 # Commands to strip libraries.
13117 old_striplib=$lt_old_striplib
13118 striplib=$lt_striplib
13120 # Dependencies to place before the objects being linked to create a
13122 predep_objects=$lt_predep_objects_CXX
13124 # Dependencies to place after the objects being linked to create a
13126 postdep_objects=$lt_postdep_objects_CXX
13128 # Dependencies to place before the objects being linked to create a
13130 predeps=$lt_predeps_CXX
13132 # Dependencies to place after the objects being linked to create a
13134 postdeps=$lt_postdeps_CXX
13136 # The library search path used internally by the compiler when linking
13137 # a shared library.
13138 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13140 # Method to check whether dependent libraries are shared objects.
13141 deplibs_check_method=$lt_deplibs_check_method
13143 # Command to use when deplibs_check_method == file_magic.
13144 file_magic_cmd=$lt_file_magic_cmd
13146 # Flag that allows shared libraries with undefined symbols to be built.
13147 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13149 # Flag that forces no undefined symbols.
13150 no_undefined_flag=$lt_no_undefined_flag_CXX
13152 # Commands used to finish a libtool library installation in a directory.
13153 finish_cmds=$lt_finish_cmds
13155 # Same as above, but a single script fragment to be evaled but not shown.
13156 finish_eval=$lt_finish_eval
13158 # Take the output of nm and produce a listing of raw symbols and C names.
13159 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13161 # Transform the output of nm in a proper C declaration
13162 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13164 # Transform the output of nm in a C name address pair
13165 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13167 # This is the shared library runtime path variable.
13168 runpath_var=$runpath_var
13170 # This is the shared library path variable.
13171 shlibpath_var=$shlibpath_var
13173 # Is shlibpath searched before the hard-coded library search path?
13174 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13176 # How to hardcode a shared library path into an executable.
13177 hardcode_action=$hardcode_action_CXX
13179 # Whether we should hardcode library paths into libraries.
13180 hardcode_into_libs=$hardcode_into_libs
13182 # Flag to hardcode \$libdir into a binary during linking.
13183 # This must work even if \$libdir does not exist.
13184 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13186 # If ld is used when linking, flag to hardcode \$libdir into
13187 # a binary during linking. This must work even if \$libdir does
13189 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13191 # Whether we need a single -rpath flag with a separated argument.
13192 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13194 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13195 # resulting binary.
13196 hardcode_direct=$hardcode_direct_CXX
13198 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13199 # resulting binary.
13200 hardcode_minus_L=$hardcode_minus_L_CXX
13202 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13203 # the resulting binary.
13204 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13206 # Set to yes if building a shared library automatically hardcodes DIR into the library
13207 # and all subsequent libraries and executables linked against it.
13208 hardcode_automatic=$hardcode_automatic_CXX
13210 # Variables whose values should be saved in libtool wrapper scripts and
13211 # restored at relink time.
13212 variables_saved_for_relink="$variables_saved_for_relink"
13214 # Whether libtool must link a program against all its dependency libraries.
13215 link_all_deplibs=$link_all_deplibs_CXX
13217 # Compile-time system search path for libraries
13218 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13220 # Run-time system search path for libraries
13221 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13223 # Fix the shell variable \$srcfile for the compiler.
13224 fix_srcfile_path="$fix_srcfile_path_CXX"
13226 # Set to yes if exported symbols are required.
13227 always_export_symbols=$always_export_symbols_CXX
13229 # The commands to list exported symbols.
13230 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13232 # The commands to extract the exported symbol list from a shared archive.
13233 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13235 # Symbols that should not be listed in the preloaded symbols.
13236 exclude_expsyms=$lt_exclude_expsyms_CXX
13238 # Symbols that must always be exported.
13239 include_expsyms=$lt_include_expsyms_CXX
13241 # ### END LIBTOOL TAG CONFIG: $tagname
13247 # If there is no Makefile yet, we rely on a make rule to execute
13248 # `config.status
--recheck' to rerun these tests and create the
13249 # libtool script then.
13250 test -f Makefile && make "$ltmain"
13255 ac_cpp='$CPP $CPPFLAGS'
13256 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
13257 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
13258 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13264 with_gnu_ldcxx=$with_gnu_ld
13265 with_gnu_ld=$lt_save_with_gnu_ld
13266 lt_cv_path_LDCXX=$lt_cv_path_LD
13267 lt_cv_path_LD=$lt_save_path_LD
13268 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13269 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13277 if test -n "$F77" && test "X$F77" != "Xno"; then
13280 ac_compile='$F77 -c $FFLAGS conftest.
$ac_ext >&5'
13281 ac_link='$F77 -o conftest
$ac_exeext $FFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
13282 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13285 archive_cmds_need_lc_F77=no
13286 allow_undefined_flag_F77=
13287 always_export_symbols_F77=no
13288 archive_expsym_cmds_F77=
13289 export_dynamic_flag_spec_F77=
13290 hardcode_direct_F77=no
13291 hardcode_libdir_flag_spec_F77=
13292 hardcode_libdir_flag_spec_ld_F77=
13293 hardcode_libdir_separator_F77=
13294 hardcode_minus_L_F77=no
13295 hardcode_automatic_F77=no
13297 module_expsym_cmds_F77=
13298 link_all_deplibs_F77=unknown
13299 old_archive_cmds_F77=$old_archive_cmds
13300 no_undefined_flag_F77=
13301 whole_archive_flag_spec_F77=
13302 enable_shared_with_static_runtimes_F77=no
13304 # Source file extension for f77 test sources.
13307 # Object file extension for compiled f77 test sources.
13311 # Code to be used in simple compile tests
13312 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13314 # Code to be used in simple link tests
13315 lt_simple_link_test_code=" program t\n end\n"
13317 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13319 # If no C compiler was specified, use CC.
13322 # Allow CC to be a program name with arguments.
13326 # Allow CC to be a program name with arguments.
13331 cc_basename=`$echo X"$compiler" | $Xsed -e 's
%^.
*/%%'`
13333 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13334 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13335 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
13336 echo "${ECHO_T}$can_build_shared" >&6; }
13338 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13339 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13340 test "$can_build_shared" = "no" && enable_shared=no
13342 # On AIX, shared libraries and static libraries use the same namespace, and
13343 # are all built from PIC.
13346 test "$enable_shared" = yes && enable_static=no
13347 if test -n "$RANLIB"; then
13348 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13349 postinstall_cmds='$RANLIB $lib'
13353 test "$enable_shared" = yes && enable_static=no
13356 { echo "$as_me:$LINENO: result: $enable_shared" >&5
13357 echo "${ECHO_T}$enable_shared" >&6; }
13359 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13360 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13361 # Make sure either enable_shared or enable_static is yes.
13362 test "$enable_shared" = yes || enable_static=yes
13363 { echo "$as_me:$LINENO: result: $enable_static" >&5
13364 echo "${ECHO_T}$enable_static" >&6; }
13366 test "$ld_shlibs_F77" = no && can_build_shared=no
13371 lt_prog_compiler_wl_F77=
13372 lt_prog_compiler_pic_F77=
13373 lt_prog_compiler_static_F77=
13375 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13376 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13378 if test "$GCC" = yes; then
13379 lt_prog_compiler_wl_F77='-Wl,'
13380 lt_prog_compiler_static_F77='-static'
13384 # All AIX code is PIC.
13385 if test "$host_cpu" = ia64; then
13386 # AIX 5 now supports IA64 processor
13387 lt_prog_compiler_static_F77='-Bstatic'
13392 # FIXME: we need at least 68020 code to build shared libraries, but
13393 # adding the `-m68020' flag to GCC prevents building anything better
,
13395 lt_prog_compiler_pic_F77
='-m68020 -resident32 -malways-restore-a4'
13398 beos
* | cygwin
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
13399 # PIC is the default for these OSes.
13402 mingw
* | pw32
* | os2
*)
13403 # This hack is so that the source file can tell whether it is being
13404 # built for inclusion in a dll (and should export symbols for example).
13405 lt_prog_compiler_pic_F77
='-DDLL_EXPORT'
13408 darwin
* | rhapsody
*)
13409 # PIC is the default on this platform
13410 # Common symbols not allowed in MH_DYLIB files
13411 lt_prog_compiler_pic_F77
='-fno-common'
13415 # Just because we use GCC doesn't mean we suddenly get shared libraries
13416 # on systems that don't support them.
13417 lt_prog_compiler_can_build_shared_F77
=no
13422 if test -d /usr
/nec
; then
13423 lt_prog_compiler_pic_F77
=-Kconform_pic
13428 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13429 # not for PA HP-UX.
13430 case "$host_cpu" in
13435 lt_prog_compiler_pic_F77
='-fPIC'
13441 lt_prog_compiler_pic_F77
='-fPIC'
13445 # PORTME Check for flag to pass linker flags through the system compiler.
13448 lt_prog_compiler_wl_F77
='-Wl,'
13449 if test "$host_cpu" = ia64
; then
13450 # AIX 5 now supports IA64 processor
13451 lt_prog_compiler_static_F77
='-Bstatic'
13453 lt_prog_compiler_static_F77
='-bnso -bI:/lib/syscalls.exp'
13457 mingw
* | pw32
* | os2
*)
13458 # This hack is so that the source file can tell whether it is being
13459 # built for inclusion in a dll (and should export symbols for example).
13460 lt_prog_compiler_pic_F77
='-DDLL_EXPORT'
13463 hpux9
* | hpux10
* | hpux11
*)
13464 lt_prog_compiler_wl_F77
='-Wl,'
13465 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13466 # not for PA HP-UX.
13467 case "$host_cpu" in
13472 lt_prog_compiler_pic_F77
='+Z'
13475 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13476 lt_prog_compiler_static_F77
='${wl}-a ${wl}archive'
13479 irix5
* | irix6
* | nonstopux
*)
13480 lt_prog_compiler_wl_F77
='-Wl,'
13481 # PIC (with -KPIC) is the default.
13482 lt_prog_compiler_static_F77
='-non_shared'
13486 lt_prog_compiler_pic_F77
='-KPIC'
13487 lt_prog_compiler_static_F77
='-Bstatic'
13493 lt_prog_compiler_wl_F77
='-Wl,'
13494 lt_prog_compiler_pic_F77
='-KPIC'
13495 lt_prog_compiler_static_F77
='-static'
13498 lt_prog_compiler_wl_F77
='-Wl,'
13499 # All Alpha code is PIC.
13500 lt_prog_compiler_static_F77
='-non_shared'
13505 osf3
* | osf4
* | osf5
*)
13506 lt_prog_compiler_wl_F77
='-Wl,'
13507 # All OSF/1 code is PIC.
13508 lt_prog_compiler_static_F77
='-non_shared'
13512 lt_prog_compiler_pic_F77
='-Kpic'
13513 lt_prog_compiler_static_F77
='-dn'
13517 lt_prog_compiler_wl_F77
='-Wl,'
13518 lt_prog_compiler_pic_F77
='-KPIC'
13519 lt_prog_compiler_static_F77
='-Bstatic'
13523 lt_prog_compiler_wl_F77
='-Qoption ld '
13524 lt_prog_compiler_pic_F77
='-PIC'
13525 lt_prog_compiler_static_F77
='-Bstatic'
13528 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
13529 lt_prog_compiler_wl_F77
='-Wl,'
13530 lt_prog_compiler_pic_F77
='-KPIC'
13531 lt_prog_compiler_static_F77
='-Bstatic'
13535 if test -d /usr
/nec
;then
13536 lt_prog_compiler_pic_F77
='-Kconform_pic'
13537 lt_prog_compiler_static_F77
='-Bstatic'
13542 lt_prog_compiler_pic_F77
='-pic'
13543 lt_prog_compiler_static_F77
='-Bstatic'
13547 lt_prog_compiler_can_build_shared_F77
=no
13552 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13553 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
13556 # Check to make sure the PIC flag actually works.
13558 if test -n "$lt_prog_compiler_pic_F77"; then
13560 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13561 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
13562 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13563 echo $ECHO_N "(cached) $ECHO_C" >&6
13565 lt_prog_compiler_pic_works_F77
=no
13566 ac_outfile
=conftest.
$ac_objext
13567 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
13568 lt_compiler_flag
="$lt_prog_compiler_pic_F77"
13569 # Insert the option either (1) after the last *FLAGS variable, or
13570 # (2) before a word containing "conftest.", or (3) at the end.
13571 # Note that $ac_compile itself does not contain backslashes and begins
13572 # with a dollar sign (not a hyphen), so the echo should work correctly.
13573 # The option is referenced via a variable to avoid confusing sed.
13574 lt_compile
=`echo "$ac_compile" | $SED \
13575 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13576 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13577 -e 's:$: $lt_compiler_flag:'`
13578 (eval echo "\"\$as_me:13578: $lt_compile\"" >&5)
13579 (eval "$lt_compile" 2>conftest.err
)
13581 cat conftest.err
>&5
13582 echo "$as_me:13582: \$? = $ac_status" >&5
13583 if (exit $ac_status) && test -s "$ac_outfile"; then
13584 # The compiler can only warn and ignore the option if not recognized
13585 # So say no if there are warnings
13586 if test ! -s conftest.err
; then
13587 lt_prog_compiler_pic_works_F77
=yes
13593 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13594 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
13596 if test x
"$lt_prog_compiler_pic_works_F77" = xyes
; then
13597 case $lt_prog_compiler_pic_F77 in
13599 *) lt_prog_compiler_pic_F77
=" $lt_prog_compiler_pic_F77" ;;
13602 lt_prog_compiler_pic_F77
=
13603 lt_prog_compiler_can_build_shared_F77
=no
13608 # For platforms which do not support PIC, -DPIC is meaningless:
13610 lt_prog_compiler_pic_F77
=
13613 lt_prog_compiler_pic_F77
="$lt_prog_compiler_pic_F77"
13617 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13618 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13619 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13620 echo $ECHO_N "(cached) $ECHO_C" >&6
13622 lt_cv_prog_compiler_c_o_F77
=no
13623 $rm -r conftest
2>/dev
/null
13627 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
13629 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
13630 # that will create temporary files in the current directory regardless of
13631 # the output directory. Thus, making CWD read-only will cause this test
13632 # to fail, enabling locking or at least warning the user not to do parallel
13636 lt_compiler_flag
="-o out/conftest2.$ac_objext"
13637 # Insert the option either (1) after the last *FLAGS variable, or
13638 # (2) before a word containing "conftest.", or (3) at the end.
13639 # Note that $ac_compile itself does not contain backslashes and begins
13640 # with a dollar sign (not a hyphen), so the echo should work correctly.
13641 lt_compile
=`echo "$ac_compile" | $SED \
13642 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13643 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13644 -e 's:$: $lt_compiler_flag:'`
13645 (eval echo "\"\$as_me:13645: $lt_compile\"" >&5)
13646 (eval "$lt_compile" 2>out
/conftest.err
)
13648 cat out
/conftest.err
>&5
13649 echo "$as_me:13649: \$? = $ac_status" >&5
13650 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
13652 # The compiler can only warn and ignore the option if not recognized
13653 # So say no if there are warnings
13654 if test ! -s out
/conftest.err
; then
13655 lt_cv_prog_compiler_c_o_F77
=yes
13660 # SGI C++ compiler will create directory out/ii_files/ for
13661 # template instantiation
13662 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
13663 $rm out
/* && rmdir out
13669 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13670 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
13673 hard_links
="nottested"
13674 if test "$lt_cv_prog_compiler_c_o_F77" = no
&& test "$need_locks" != no
; then
13675 # do not overwrite the value of need_locks provided by the user
13676 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13677 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13680 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
13682 ln conftest.a conftest.b
2>&5 || hard_links
=no
13683 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
13684 { echo "$as_me:$LINENO: result: $hard_links" >&5
13685 echo "${ECHO_T}$hard_links" >&6; }
13686 if test "$hard_links" = no
; then
13687 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13688 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13695 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13696 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13699 allow_undefined_flag_F77
=
13700 enable_shared_with_static_runtimes_F77
=no
13702 archive_expsym_cmds_F77
=
13703 old_archive_From_new_cmds_F77
=
13704 old_archive_from_expsyms_cmds_F77
=
13705 export_dynamic_flag_spec_F77
=
13706 whole_archive_flag_spec_F77
=
13707 thread_safe_flag_spec_F77
=
13708 hardcode_libdir_flag_spec_F77
=
13709 hardcode_libdir_flag_spec_ld_F77
=
13710 hardcode_libdir_separator_F77
=
13711 hardcode_direct_F77
=no
13712 hardcode_minus_L_F77
=no
13713 hardcode_shlibpath_var_F77
=unsupported
13714 link_all_deplibs_F77
=unknown
13715 hardcode_automatic_F77
=no
13717 module_expsym_cmds_F77
=
13718 always_export_symbols_F77
=no
13719 export_symbols_cmds_F77
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13720 # include_expsyms should be a list of space-separated symbols to be *always*
13721 # included in the symbol list
13722 include_expsyms_F77
=
13723 # exclude_expsyms can be an extended regexp of symbols to exclude
13724 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13725 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13726 # as well as any symbol that contains `d'.
13727 exclude_expsyms_F77
="_GLOBAL_OFFSET_TABLE_"
13728 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13729 # platforms (ab)use it in PIC code, but their linkers get confused if
13730 # the symbol is explicitly referenced. Since portable code cannot
13731 # rely on this symbol name, it's probably fine to never include it in
13732 # preloaded symbol tables.
13733 extract_expsyms_cmds
=
13736 cygwin
* | mingw
* | pw32
*)
13737 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13738 # When not using gcc, we currently assume that we are using
13739 # Microsoft Visual C++.
13740 if test "$GCC" != yes; then
13750 if test "$with_gnu_ld" = yes; then
13751 # If archive_cmds runs LD, not CC, wlarc should be empty
13754 # See if GNU ld supports shared libraries.
13756 aix3
* | aix4
* | aix5
*)
13757 # On AIX/PPC, the GNU linker is very broken
13758 if test "$host_cpu" != ia64
; then
13762 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13763 *** to be unable to reliably create shared libraries on AIX.
13764 *** Therefore, libtool is disabling shared libraries support. If you
13765 *** really care for shared libraries, you may want to modify your PATH
13766 *** so that a non-GNU linker is found, and then restart.
13773 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)'
13774 hardcode_libdir_flag_spec_F77
='-L$libdir'
13775 hardcode_minus_L_F77
=yes
13777 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13778 # that the semantics of dynamic libraries on AmigaOS, at least up
13779 # to version 4, is to share data among multiple programs linked
13780 # with the same dynamic library. Since this doesn't match the
13781 # behavior of shared libraries on other platforms, we can't use
13787 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
13788 allow_undefined_flag_F77
=unsupported
13789 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13790 # support --undefined. This deserves some investigation. FIXME
13791 archive_cmds_F77
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13797 cygwin
* | mingw
* | pw32
*)
13798 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13799 # as there is no search path for DLLs.
13800 hardcode_libdir_flag_spec_F77
='-L$libdir'
13801 allow_undefined_flag_F77
=unsupported
13802 always_export_symbols_F77
=no
13803 enable_shared_with_static_runtimes_F77
=yes
13804 export_symbols_cmds_F77
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13806 if $LD --help 2>&1 |
grep 'auto-import' > /dev
/null
; then
13807 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13808 # If the export-symbols file already is a .def file (1st line
13809 # is EXPORTS), use it as is; otherwise, prepend...
13810 archive_expsym_cmds_F77
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13811 cp $export_symbols $output_objdir/$soname.def;
13813 echo EXPORTS > $output_objdir/$soname.def;
13814 cat $export_symbols >> $output_objdir/$soname.def;
13816 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13823 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
13824 archive_cmds_F77
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13827 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13828 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13833 if $LD -v 2>&1 |
grep 'BFD 2\.8' > /dev
/null
; then
13837 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13838 *** create shared libraries on Solaris systems. Therefore, libtool
13839 *** is disabling shared libraries support. We urge you to upgrade GNU
13840 *** binutils to release 2.9.1 or newer. Another option is to modify
13841 *** your PATH or compiler configuration so that the native linker is
13842 *** used, and then restart.
13845 elif $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
13846 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13847 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13854 archive_cmds_F77
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13856 hardcode_direct_F77
=yes
13857 hardcode_shlibpath_var_F77
=no
13861 if $LD --help 2>&1 |
egrep ': supported targets:.* elf' > /dev
/null
; then
13862 tmp_archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13863 archive_cmds_F77
="$tmp_archive_cmds"
13864 supports_anon_versioning
=no
13865 case `$LD -v 2>/dev/null` in
13866 *\
01.
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
13867 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
13868 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
13869 *\
2.11.
*) ;; # other 2.11 versions
13870 *) supports_anon_versioning
=yes ;;
13872 if test $supports_anon_versioning = yes; then
13873 archive_expsym_cmds_F77
='$echo "{ global:" > $output_objdir/$libname.ver~
13874 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13875 $echo "local: *; };" >> $output_objdir/$libname.ver~
13876 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13878 archive_expsym_cmds_F77
="$tmp_archive_cmds"
13886 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
13887 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13888 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13895 if test "$ld_shlibs_F77" = yes; then
13896 runpath_var
=LD_RUN_PATH
13897 hardcode_libdir_flag_spec_F77
='${wl}--rpath ${wl}$libdir'
13898 export_dynamic_flag_spec_F77
='${wl}--export-dynamic'
13899 # ancient GNU ld didn't support --whole-archive et. al.
13900 if $LD --help 2>&1 |
grep 'no-whole-archive' > /dev
/null
; then
13901 whole_archive_flag_spec_F77
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13903 whole_archive_flag_spec_F77
=
13907 # PORTME fill in a description of your system's linker (not GNU ld)
13910 allow_undefined_flag_F77
=unsupported
13911 always_export_symbols_F77
=yes
13912 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'
13913 # Note: this linker hardcodes the directories in LIBPATH if there
13914 # are no directories specified by -L.
13915 hardcode_minus_L_F77
=yes
13916 if test "$GCC" = yes && test -z "$link_static_flag"; then
13917 # Neither direct hardcoding nor static linking is supported with a
13919 hardcode_direct_F77
=unsupported
13924 if test "$host_cpu" = ia64
; then
13925 # On IA64, the linker does run time linking by default, so we don't
13926 # have to do anything special.
13927 aix_use_runtimelinking
=no
13928 exp_sym_flag
='-Bexport'
13931 # If we're using GNU nm, then we don't want the "-C" option.
13932 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13933 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
13934 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'
13936 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'
13938 aix_use_runtimelinking
=no
13940 # Test if we are trying to use run time linking or normal
13941 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13942 # need to do runtime linking.
13943 case $host_os in aix4.
[23]|aix4.
[23].
*|aix5
*)
13944 for ld_flag
in $LDFLAGS; do
13945 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
13946 aix_use_runtimelinking
=yes
13952 exp_sym_flag
='-bexport'
13953 no_entry_flag
='-bnoentry'
13956 # When large executables or shared objects are built, AIX ld can
13957 # have problems creating the table of contents. If linking a library
13958 # or program results in "error TOC overflow" add -mminimal-toc to
13959 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13960 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13962 archive_cmds_F77
=''
13963 hardcode_direct_F77
=yes
13964 hardcode_libdir_separator_F77
=':'
13965 link_all_deplibs_F77
=yes
13967 if test "$GCC" = yes; then
13968 case $host_os in aix4.012|aix4.012.
*)
13969 # We only want to do this on AIX 4.2 and lower, the check
13970 # below for broken collect2 doesn't work under 4.3+
13971 collect2name
=`${CC} -print-prog-name=collect2`
13972 if test -f "$collect2name" && \
13973 strings "$collect2name" |
grep resolve_lib_name
>/dev
/null
13975 # We have reworked collect2
13976 hardcode_direct_F77
=yes
13978 # We have old collect2
13979 hardcode_direct_F77
=unsupported
13980 # It fails to find uninstalled libraries when the uninstalled
13981 # path is not listed in the libpath. Setting hardcode_minus_L
13982 # to unsupported forces relinking
13983 hardcode_minus_L_F77
=yes
13984 hardcode_libdir_flag_spec_F77
='-L$libdir'
13985 hardcode_libdir_separator_F77
=
13988 shared_flag
='-shared'
13991 if test "$host_cpu" = ia64
; then
13992 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13993 # chokes on -Wl,-G. The following line is correct:
13996 if test "$aix_use_runtimelinking" = yes; then
13997 shared_flag
='${wl}-G'
13999 shared_flag
='${wl}-bM:SRE'
14004 # It seems that -bexpall does not export symbols beginning with
14005 # underscore (_), so it is better to generate a list of symbols to export.
14006 always_export_symbols_F77
=yes
14007 if test "$aix_use_runtimelinking" = yes; then
14008 # Warning - without using the other runtime loading flags (-brtl),
14009 # -berok will link without error, but may produce a broken library.
14010 allow_undefined_flag_F77
='-berok'
14011 # Determine the default libpath from the value encoded in an empty executable.
14012 cat >conftest.
$ac_ext <<_ACEOF
14017 rm -f conftest.
$ac_objext conftest
$ac_exeext
14018 if { (ac_try
="$ac_link"
14019 case "(($ac_try" in
14020 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14021 *) ac_try_echo=$ac_try;;
14023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14024 (eval "$ac_link") 2>conftest.er1
14026 grep -v '^ *+' conftest.er1 >conftest.err
14028 cat conftest.err >&5
14029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14030 (exit $ac_status); } && {
14031 test -z "$ac_f77_werror_flag" ||
14032 test ! -s conftest.err
14033 } && test -s conftest$ac_exeext &&
14034 $as_test_x conftest$ac_exeext; then
14036 aix_libpath=`dump
-H conftest
$ac_exeext 2>/dev
/null |
$SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14038 # Check for a 64-bit object if we didn't find anything.
14039 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; }
14042 echo "$as_me: failed program was:" >&5
14043 sed 's/^/| /' conftest.$ac_ext >&5
14048 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14049 conftest$ac_exeext conftest.$ac_ext
14050 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14052 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14053 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14055 if test "$host_cpu" = ia64
; then
14056 hardcode_libdir_flag_spec_F77
='${wl}-R $libdir:/usr/lib:/lib'
14057 allow_undefined_flag_F77
="-z nodefs"
14058 archive_expsym_cmds_F77
="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
14060 # Determine the default libpath from the value encoded in an empty executable.
14061 cat >conftest.$ac_ext <<_ACEOF
14066 rm -f conftest.$ac_objext conftest$ac_exeext
14067 if { (ac_try="$ac_link"
14068 case "(($ac_try" in
14069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14070 *) ac_try_echo=$ac_try;;
14072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14073 (eval "$ac_link") 2>conftest.er1
14075 grep -v '^
*+' conftest.er1 >conftest.err
14077 cat conftest.err >&5
14078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14079 (exit $ac_status); } && {
14080 test -z "$ac_f77_werror_flag" ||
14081 test ! -s conftest.err
14082 } && test -s conftest$ac_exeext &&
14083 $as_test_x conftest$ac_exeext; then
14085 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings
/,/^$
/ { /^
0/ { s
/^
0 *\
(.
*\
)$
/\
1/; p
; }
14087 # Check for a 64-bit object if we didn't
find anything.
14088 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; }
14091 echo "$as_me: failed program was:" >&5
14092 sed 's/^/| /' conftest.
$ac_ext >&5
14097 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14098 conftest
$ac_exeext conftest.
$ac_ext
14099 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
14101 hardcode_libdir_flag_spec_F77
='${wl}-blibpath:$libdir:'"$aix_libpath"
14102 # Warning - without using the other run time loading flags,
14103 # -berok will link without error, but may produce a broken library.
14104 no_undefined_flag_F77
=' ${wl}-bernotok'
14105 allow_undefined_flag_F77
=' ${wl}-berok'
14106 # -bexpall does not export symbols beginning with underscore (_)
14107 always_export_symbols_F77
=yes
14108 # Exported symbols can be pulled into shared objects from archives
14109 whole_archive_flag_spec_F77
=' '
14110 archive_cmds_need_lc_F77
=yes
14111 # This is similar to how AIX traditionally builds it's shared libraries.
14112 archive_expsym_cmds_F77
="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14118 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)'
14119 hardcode_libdir_flag_spec_F77
='-L$libdir'
14120 hardcode_minus_L_F77
=yes
14121 # see comment about different semantics on the GNU ld section
14126 export_dynamic_flag_spec_F77
=-rdynamic
14129 cygwin
* | mingw
* | pw32
*)
14130 # When not using gcc, we currently assume that we are using
14131 # Microsoft Visual C++.
14132 # hardcode_libdir_flag_spec is actually meaningless, as there is
14133 # no search path for DLLs.
14134 hardcode_libdir_flag_spec_F77
=' '
14135 allow_undefined_flag_F77
=unsupported
14136 # Tell ltmain to make .lib files, not .a files.
14138 # Tell ltmain to make .dll files, not .so files.
14140 # FIXME: Setting linknames here is a bad hack.
14141 archive_cmds_F77
='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14142 # The linker will automatically build a .lib file if we build a DLL.
14143 old_archive_From_new_cmds_F77
='true'
14144 # FIXME: Should let the user specify the lib program.
14145 old_archive_cmds_F77
='lib /OUT:$oldlib$oldobjs$old_deplibs'
14146 fix_srcfile_path
='`cygpath -w "$srcfile"`'
14147 enable_shared_with_static_runtimes_F77
=yes
14150 darwin
* | rhapsody
*)
14151 if test "$GXX" = yes ; then
14152 archive_cmds_need_lc_F77
=no
14154 rhapsody
* | darwin1.
[012])
14155 allow_undefined_flag_F77
='-undefined suppress'
14158 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14159 allow_undefined_flag_F77
='-flat_namespace -undefined suppress'
14161 case ${MACOSX_DEPLOYMENT_TARGET} in
14163 allow_undefined_flag_F77
='-flat_namespace -undefined suppress'
14166 allow_undefined_flag_F77
='-undefined dynamic_lookup'
14172 lt_int_apple_cc_single_mod
=no
14173 output_verbose_link_cmd
='echo'
14174 if $CC -dumpspecs 2>&1 |
grep 'single_module' >/dev
/null
; then
14175 lt_int_apple_cc_single_mod
=yes
14177 if test "X$lt_int_apple_cc_single_mod" = Xyes
; then
14178 archive_cmds_F77
='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14180 archive_cmds_F77
='$CC -r ${wl}-bind_at_load -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'
14182 module_cmds_F77
='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14183 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14184 if test "X$lt_int_apple_cc_single_mod" = Xyes
; then
14185 archive_expsym_cmds_F77
='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}'
14187 archive_expsym_cmds_F77
='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
14189 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}'
14190 hardcode_direct_F77
=no
14191 hardcode_automatic_F77
=yes
14192 hardcode_shlibpath_var_F77
=unsupported
14193 whole_archive_flag_spec_F77
='-all_load $convenience'
14194 link_all_deplibs_F77
=yes
14201 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14202 hardcode_libdir_flag_spec_F77
='-L$libdir'
14203 hardcode_shlibpath_var_F77
=no
14210 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14211 # support. Future versions do this automatically, but an explicit c++rt0.o
14212 # does not break anything, and helps significantly (at the cost of a little
14215 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14216 hardcode_libdir_flag_spec_F77
='-R$libdir'
14217 hardcode_direct_F77
=yes
14218 hardcode_shlibpath_var_F77
=no
14221 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14223 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14224 hardcode_direct_F77
=yes
14225 hardcode_minus_L_F77
=yes
14226 hardcode_shlibpath_var_F77
=no
14229 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14230 freebsd
* | kfreebsd
*-gnu)
14231 archive_cmds_F77
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14232 hardcode_libdir_flag_spec_F77
='-R$libdir'
14233 hardcode_direct_F77
=yes
14234 hardcode_shlibpath_var_F77
=no
14238 if test "$GCC" = yes; then
14239 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'
14241 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'
14243 hardcode_libdir_flag_spec_F77
='${wl}+b ${wl}$libdir'
14244 hardcode_libdir_separator_F77
=:
14245 hardcode_direct_F77
=yes
14247 # hardcode_minus_L: Not really in the search PATH,
14248 # but as the default location of the library.
14249 hardcode_minus_L_F77
=yes
14250 export_dynamic_flag_spec_F77
='${wl}-E'
14254 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
14255 case "$host_cpu" in
14257 archive_cmds_F77
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14260 archive_cmds_F77
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14264 case "$host_cpu" in
14266 archive_cmds_F77
='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14269 archive_cmds_F77
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14273 if test "$with_gnu_ld" = no
; then
14274 case "$host_cpu" in
14276 hardcode_libdir_flag_spec_F77
='${wl}+b ${wl}$libdir'
14277 hardcode_libdir_flag_spec_ld_F77
='+b $libdir'
14278 hardcode_libdir_separator_F77
=:
14279 hardcode_direct_F77
=no
14280 hardcode_shlibpath_var_F77
=no
14283 hardcode_libdir_flag_spec_F77
='-L$libdir'
14284 hardcode_direct_F77
=no
14285 hardcode_shlibpath_var_F77
=no
14287 # hardcode_minus_L: Not really in the search PATH,
14288 # but as the default location of the library.
14289 hardcode_minus_L_F77
=yes
14292 hardcode_libdir_flag_spec_F77
='${wl}+b ${wl}$libdir'
14293 hardcode_libdir_separator_F77
=:
14294 hardcode_direct_F77
=yes
14295 export_dynamic_flag_spec_F77
='${wl}-E'
14297 # hardcode_minus_L: Not really in the search PATH,
14298 # but as the default location of the library.
14299 hardcode_minus_L_F77
=yes
14305 irix5
* | irix6
* | nonstopux
*)
14306 if test "$GCC" = yes; then
14307 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'
14309 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'
14310 hardcode_libdir_flag_spec_ld_F77
='-rpath $libdir'
14312 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
14313 hardcode_libdir_separator_F77
=:
14314 link_all_deplibs_F77
=yes
14318 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
14319 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14321 archive_cmds_F77
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14323 hardcode_libdir_flag_spec_F77
='-R$libdir'
14324 hardcode_direct_F77
=yes
14325 hardcode_shlibpath_var_F77
=no
14329 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14330 hardcode_direct_F77
=yes
14331 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
14332 hardcode_libdir_separator_F77
=:
14333 hardcode_shlibpath_var_F77
=no
14337 hardcode_direct_F77
=yes
14338 hardcode_shlibpath_var_F77
=no
14339 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14340 archive_cmds_F77
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14341 hardcode_libdir_flag_spec_F77
='${wl}-rpath,$libdir'
14342 export_dynamic_flag_spec_F77
='${wl}-E'
14345 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
14346 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14347 hardcode_libdir_flag_spec_F77
='-R$libdir'
14350 archive_cmds_F77
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14351 hardcode_libdir_flag_spec_F77
='${wl}-rpath,$libdir'
14358 hardcode_libdir_flag_spec_F77
='-L$libdir'
14359 hardcode_minus_L_F77
=yes
14360 allow_undefined_flag_F77
=unsupported
14361 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'
14362 old_archive_From_new_cmds_F77
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14366 if test "$GCC" = yes; then
14367 allow_undefined_flag_F77
=' ${wl}-expect_unresolved ${wl}\*'
14368 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'
14370 allow_undefined_flag_F77
=' -expect_unresolved \*'
14371 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'
14373 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
14374 hardcode_libdir_separator_F77
=:
14377 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
14378 if test "$GCC" = yes; then
14379 allow_undefined_flag_F77
=' ${wl}-expect_unresolved ${wl}\*'
14380 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'
14381 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
14383 allow_undefined_flag_F77
=' -expect_unresolved \*'
14384 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'
14385 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~
14386 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
14388 # Both c and cxx compiler support -rpath directly
14389 hardcode_libdir_flag_spec_F77
='-rpath $libdir'
14391 hardcode_libdir_separator_F77
=:
14395 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14396 hardcode_shlibpath_var_F77
=no
14397 export_dynamic_flag_spec_F77
='${wl}-Bexport'
14398 runpath_var
=LD_RUN_PATH
14399 hardcode_runpath_var
=yes
14403 no_undefined_flag_F77
=' -z text'
14404 if test "$GCC" = yes; then
14405 archive_cmds_F77
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14406 archive_expsym_cmds_F77
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14407 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14409 archive_cmds_F77
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14410 archive_expsym_cmds_F77
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14411 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14413 hardcode_libdir_flag_spec_F77
='-R$libdir'
14414 hardcode_shlibpath_var_F77
=no
14416 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
14417 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14418 whole_archive_flag_spec_F77
='-z allextract$convenience -z defaultextract' ;;
14420 link_all_deplibs_F77
=yes
14424 if test "x$host_vendor" = xsequent
; then
14425 # Use $CC to link under sequent, because it throws in some extra .o
14426 # files that make .init and .fini sections work.
14427 archive_cmds_F77
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14429 archive_cmds_F77
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14431 hardcode_libdir_flag_spec_F77
='-L$libdir'
14432 hardcode_direct_F77
=yes
14433 hardcode_minus_L_F77
=yes
14434 hardcode_shlibpath_var_F77
=no
14438 case $host_vendor in
14440 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14441 hardcode_direct_F77
=yes # is this really true???
14444 ## LD is ld it makes a PLAMLIB
14445 ## CC just makes a GrossModule.
14446 archive_cmds_F77
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14447 reload_cmds_F77
='$CC -r -o $output$reload_objs'
14448 hardcode_direct_F77
=no
14451 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14452 hardcode_direct_F77
=no
#Motorola manual says yes, but my tests say they lie
14455 runpath_var
='LD_RUN_PATH'
14456 hardcode_shlibpath_var_F77
=no
14460 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14461 hardcode_shlibpath_var_F77
=no
14462 export_dynamic_flag_spec_F77
='-Bexport'
14466 if test -d /usr
/nec
; then
14467 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14468 hardcode_shlibpath_var_F77
=no
14469 runpath_var
=LD_RUN_PATH
14470 hardcode_runpath_var
=yes
14476 archive_cmds_F77
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14477 hardcode_direct_F77
=yes
14478 hardcode_minus_L_F77
=no
14479 hardcode_shlibpath_var_F77
=no
14480 hardcode_runpath_var
=yes
14481 runpath_var
=LD_RUN_PATH
14484 sysv5OpenUNIX8
* | sysv5UnixWare7
* | sysv5uw
[78]* | unixware7
*)
14485 no_undefined_flag_F77
='${wl}-z ${wl}text'
14486 if test "$GCC" = yes; then
14487 archive_cmds_F77
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14489 archive_cmds_F77
='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14491 runpath_var
='LD_RUN_PATH'
14492 hardcode_shlibpath_var_F77
=no
14496 no_undefined_flag_F77
=' -z text'
14497 # $CC -shared without GNU ld will not create a library from C++
14498 # object files and a static libstdc++, better avoid it by now
14499 archive_cmds_F77
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14500 archive_expsym_cmds_F77
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14501 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14502 hardcode_libdir_flag_spec_F77
=
14503 hardcode_shlibpath_var_F77
=no
14504 runpath_var
='LD_RUN_PATH'
14508 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14509 hardcode_libdir_flag_spec_F77
='-L$libdir'
14510 hardcode_shlibpath_var_F77
=no
14519 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14520 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
14521 test "$ld_shlibs_F77" = no
&& can_build_shared
=no
14523 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
14524 if test "$GCC" = yes; then
14525 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14529 # Do we need to explicitly link libc?
14531 case "x$archive_cmds_need_lc_F77" in
14533 # Assume -lc should be added
14534 archive_cmds_need_lc_F77
=yes
14536 if test "$enable_shared" = yes && test "$GCC" = yes; then
14537 case $archive_cmds_F77 in
14539 # FIXME: we may have to deal with multi-command sequences.
14542 # Test whether the compiler implicitly links with -lc since on some
14543 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14544 # to ld, don't add -lc before -lgcc.
14545 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14546 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14548 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
14550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14551 (eval $ac_compile) 2>&5
14553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14554 (exit $ac_status); } 2>conftest.err
; then
14557 libobjs
=conftest.
$ac_objext
14559 wl
=$lt_prog_compiler_wl_F77
14565 lt_save_allow_undefined_flag
=$allow_undefined_flag_F77
14566 allow_undefined_flag_F77
=
14567 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14568 (eval $archive_cmds_F77 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
14570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14571 (exit $ac_status); }
14573 archive_cmds_need_lc_F77
=no
14575 archive_cmds_need_lc_F77
=yes
14577 allow_undefined_flag_F77
=$lt_save_allow_undefined_flag
14579 cat conftest.err
1>&5
14582 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14583 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
14590 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14591 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
14592 library_names_spec
=
14593 libname_spec
='lib$name'
14597 postuninstall_cmds
=
14601 shlibpath_overrides_runpath
=unknown
14603 dynamic_linker
="$host_os ld.so"
14604 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
14605 if test "$GCC" = yes; then
14606 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14607 if echo "$sys_lib_search_path_spec" |
grep ';' >/dev
/null
; then
14608 # if the path contains ";" then we assume it to be the separator
14609 # otherwise default to the standard path separator (i.e. ":") - it is
14610 # assumed that no part of a normal pathname contains ";" but that should
14611 # okay in the real world where ";" in dirpaths is itself problematic.
14612 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14614 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14617 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
14619 need_lib_prefix
=unknown
14620 hardcode_into_libs
=no
14622 # when you set need_version to no, make sure it does not cause -set_version
14623 # flags to be left without arguments
14624 need_version
=unknown
14629 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
14630 shlibpath_var
=LIBPATH
14632 # AIX 3 has no versioning support, so we append a major version to the name.
14633 soname_spec
='${libname}${release}${shared_ext}$major'
14640 hardcode_into_libs
=yes
14641 if test "$host_cpu" = ia64
; then
14642 # AIX 5 supports IA64
14643 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14644 shlibpath_var
=LD_LIBRARY_PATH
14646 # With GCC up to 2.95.x, collect2 would create an import file
14647 # for dependence libraries. The import file would start with
14648 # the line `#! .'. This would cause the generated library to
14649 # depend on `.', always an invalid library. This was fixed in
14650 # development snapshots of GCC prior to 3.0.
14652 aix4 | aix4.
[01] | aix4.
[01].
*)
14653 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14655 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
14658 can_build_shared
=no
14662 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14663 # soname into executable. Probably we can add versioning support to
14664 # collect2, so additional links can be useful in future.
14665 if test "$aix_use_runtimelinking" = yes; then
14666 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14667 # instead of lib<name>.a to let people know that these are not
14668 # typical AIX shared libraries.
14669 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14671 # We preserve .a as extension for shared libraries through AIX4.2
14672 # and later when we are not doing run time linking.
14673 library_names_spec
='${libname}${release}.a $libname.a'
14674 soname_spec
='${libname}${release}${shared_ext}$major'
14676 shlibpath_var
=LIBPATH
14681 library_names_spec
='$libname.ixlibrary $libname.a'
14682 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14683 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'
14687 library_names_spec
='${libname}${shared_ext}'
14688 dynamic_linker
="$host_os ld.so"
14689 shlibpath_var
=LIBRARY_PATH
14695 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14696 soname_spec
='${libname}${release}${shared_ext}$major'
14697 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
14698 shlibpath_var
=LD_LIBRARY_PATH
14699 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14700 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
14701 # the default ld.so.conf also contains /usr/contrib/lib and
14702 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14703 # libtool to hard-code these into programs
14706 cygwin
* | mingw
* | pw32
*)
14707 version_type
=windows
14712 case $GCC,$host_os in
14713 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
14714 library_names_spec
='$libname.dll.a'
14715 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14716 postinstall_cmds
='base_file=`basename \${file}`~
14717 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14718 dldir=$destdir/`dirname \$dlpath`~
14719 test -d \$dldir || mkdir -p \$dldir~
14720 $install_prog $dir/$dlname \$dldir/$dlname'
14721 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14722 dlpath=$dir/\$dldll~
14724 shlibpath_overrides_runpath
=yes
14728 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14729 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14730 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
14733 # MinGW DLLs use traditional 'lib' prefix
14734 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14735 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14736 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
14737 # It is most probably a Windows format PATH printed by
14738 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14739 # path with ; separators, and with drive letters. We can handle the
14740 # drive letters (cygwin fileutils understands them), so leave them,
14741 # especially as we might pass files found there to a mingw objdump,
14742 # which wouldn't understand a cygwinified path. Ahh.
14743 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14745 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14749 # pw32 DLLs use 'pw' prefix rather than 'lib'
14750 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14756 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14759 dynamic_linker
='Win32 ld.exe'
14760 # FIXME: first we should search . and the directory the executable is in
14764 darwin
* | rhapsody
*)
14765 dynamic_linker
="$host_os dyld"
14766 version_type
=darwin
14769 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14770 soname_spec
='${libname}${release}${major}$shared_ext'
14771 shlibpath_overrides_runpath
=yes
14772 shlibpath_var
=DYLD_LIBRARY_PATH
14773 shrext
='$(test .$module = .yes && echo .so || echo .dylib)'
14774 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14775 if test "$GCC" = yes; then
14776 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"`
14778 sys_lib_search_path_spec
='/lib /usr/lib /usr/local/lib'
14780 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
14787 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14788 soname_spec
='${libname}${release}${shared_ext}$major'
14789 shlibpath_var
=LD_LIBRARY_PATH
14800 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14801 soname_spec
='${libname}${release}${shared_ext}$major'
14802 shlibpath_var
=LD_LIBRARY_PATH
14803 shlibpath_overrides_runpath
=no
14804 hardcode_into_libs
=yes
14805 dynamic_linker
='GNU ld.so'
14809 objformat
=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14810 version_type
=freebsd-
$objformat
14811 case $version_type in
14813 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14818 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14822 shlibpath_var
=LD_LIBRARY_PATH
14825 shlibpath_overrides_runpath
=yes
14827 freebsd3.01
* | freebsdelf3.01
*)
14828 shlibpath_overrides_runpath
=yes
14829 hardcode_into_libs
=yes
14832 shlibpath_overrides_runpath
=no
14833 hardcode_into_libs
=yes
14842 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14843 soname_spec
='${libname}${release}${shared_ext}$major'
14844 shlibpath_var
=LD_LIBRARY_PATH
14845 hardcode_into_libs
=yes
14848 hpux9
* | hpux10
* | hpux11
*)
14849 # Give a soname corresponding to the major version so that dld.sl refuses to
14850 # link against other versions.
14854 case "$host_cpu" in
14857 hardcode_into_libs
=yes
14858 dynamic_linker
="$host_os dld.so"
14859 shlibpath_var
=LD_LIBRARY_PATH
14860 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
14861 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14862 soname_spec
='${libname}${release}${shared_ext}$major'
14863 if test "X$HPUX_IA64_MODE" = X32
; then
14864 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14866 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
14868 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
14872 hardcode_into_libs
=yes
14873 dynamic_linker
="$host_os dld.sl"
14874 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
14875 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
14876 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14877 soname_spec
='${libname}${release}${shared_ext}$major'
14878 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14879 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
14883 dynamic_linker
="$host_os dld.sl"
14884 shlibpath_var
=SHLIB_PATH
14885 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
14886 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14887 soname_spec
='${libname}${release}${shared_ext}$major'
14890 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14891 postinstall_cmds
='chmod 555 $lib'
14894 irix5
* | irix6
* | nonstopux
*)
14896 nonstopux
*) version_type
=nonstopux
;;
14898 if test "$lt_cv_prog_gnu_ld" = yes; then
14906 soname_spec
='${libname}${release}${shared_ext}$major'
14907 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14909 irix5
* | nonstopux
*)
14910 libsuff
= shlibsuff
=
14913 case $LD in # libtool.m4 will add one of these switches to LD
14914 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
14915 libsuff
= shlibsuff
= libmagic
=32-bit;;
14916 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
14917 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
14918 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
14919 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
14920 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
14924 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
14925 shlibpath_overrides_runpath
=no
14926 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14927 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
14928 hardcode_into_libs
=yes
14931 # No shared lib support for Linux oldld, aout, or coff.
14932 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
14936 # This must be Linux ELF.
14941 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14942 soname_spec
='${libname}${release}${shared_ext}$major'
14943 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14944 shlibpath_var
=LD_LIBRARY_PATH
14945 shlibpath_overrides_runpath
=no
14946 # This implies no fast_install, which is unacceptable.
14947 # Some rework will be needed to allow for fast_install
14948 # before this can be enabled.
14949 hardcode_into_libs
=yes
14951 # We used to test for /lib/ld.so.1 and disable shared libraries on
14952 # powerpc, because MkLinux only supported shared libraries with the
14953 # GNU dynamic linker. Since this was broken with cross compilers,
14954 # most powerpc-linux boxes support dynamic linking these days and
14955 # people can always --disable-shared, the test was removed, and we
14956 # assume the GNU/Linux dynamic linker is in use.
14957 dynamic_linker
='GNU/Linux ld.so'
14964 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
14965 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14966 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14967 dynamic_linker
='NetBSD (a.out) ld.so'
14969 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14970 soname_spec
='${libname}${release}${shared_ext}$major'
14971 dynamic_linker
='NetBSD ld.elf_so'
14973 shlibpath_var
=LD_LIBRARY_PATH
14974 shlibpath_overrides_runpath
=yes
14975 hardcode_into_libs
=yes
14980 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14981 shlibpath_var
=LD_LIBRARY_PATH
14982 shlibpath_overrides_runpath
=yes
14989 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14990 soname_spec
='${libname}${release}${shared_ext}$major'
14991 shlibpath_var
=LD_LIBRARY_PATH
14992 shlibpath_overrides_runpath
=yes
14999 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15000 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15001 shlibpath_var
=LD_LIBRARY_PATH
15002 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15004 openbsd2.
[89] | openbsd2.
[89].
*)
15005 shlibpath_overrides_runpath
=no
15008 shlibpath_overrides_runpath
=yes
15012 shlibpath_overrides_runpath
=yes
15017 libname_spec
='$name'
15020 library_names_spec
='$libname${shared_ext} $libname.a'
15021 dynamic_linker
='OS/2 ld.exe'
15022 shlibpath_var
=LIBPATH
15025 osf3
* | osf4
* | osf5
*)
15029 soname_spec
='${libname}${release}${shared_ext}$major'
15030 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15031 shlibpath_var
=LD_LIBRARY_PATH
15032 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15033 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
15038 soname_spec
='${libname}${release}${shared_ext}$major'
15039 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15040 shlibpath_var
=LD_LIBRARY_PATH
15047 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15048 soname_spec
='${libname}${release}${shared_ext}$major'
15049 shlibpath_var
=LD_LIBRARY_PATH
15050 shlibpath_overrides_runpath
=yes
15051 hardcode_into_libs
=yes
15052 # ldd complains unless libraries are executable
15053 postinstall_cmds
='chmod +x $lib'
15058 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15059 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15060 shlibpath_var
=LD_LIBRARY_PATH
15061 shlibpath_overrides_runpath
=yes
15062 if test "$with_gnu_ld" = yes; then
15068 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
15070 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15071 soname_spec
='${libname}${release}${shared_ext}$major'
15072 shlibpath_var
=LD_LIBRARY_PATH
15073 case $host_vendor in
15075 shlibpath_overrides_runpath
=no
15077 export_dynamic_flag_spec
='${wl}-Blargedynsym'
15078 runpath_var
=LD_RUN_PATH
15086 shlibpath_overrides_runpath
=no
15087 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
15093 if test -d /usr
/nec
;then
15095 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15096 soname_spec
='$libname${shared_ext}.$major'
15097 shlibpath_var
=LD_LIBRARY_PATH
15103 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15104 soname_spec
='${libname}${release}${shared_ext}$major'
15105 shlibpath_var
=LD_LIBRARY_PATH
15112 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15113 echo "${ECHO_T}$dynamic_linker" >&6; }
15114 test "$dynamic_linker" = no
&& can_build_shared
=no
15116 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15117 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15118 hardcode_action_F77
=
15119 if test -n "$hardcode_libdir_flag_spec_F77" || \
15120 test -n "$runpath_var F77" || \
15121 test "X$hardcode_automatic_F77"="Xyes" ; then
15123 # We can hardcode non-existant directories.
15124 if test "$hardcode_direct_F77" != no
&&
15125 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15126 # have to relink, otherwise we might link with an installed library
15127 # when we should be linking with a yet-to-be-installed one
15128 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15129 test "$hardcode_minus_L_F77" != no
; then
15130 # Linking always hardcodes the temporary library directory.
15131 hardcode_action_F77
=relink
15133 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15134 hardcode_action_F77
=immediate
15137 # We cannot hardcode anything, or else we can only hardcode existing
15139 hardcode_action_F77
=unsupported
15141 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15142 echo "${ECHO_T}$hardcode_action_F77" >&6; }
15144 if test "$hardcode_action_F77" = relink
; then
15145 # Fast installation is not supported
15146 enable_fast_install
=no
15147 elif test "$shlibpath_overrides_runpath" = yes ||
15148 test "$enable_shared" = no
; then
15149 # Fast installation is not necessary
15150 enable_fast_install
=needless
15155 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15156 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
15157 if test -n "$STRIP" && $STRIP -V 2>&1 |
grep "GNU strip" >/dev
/null
; then
15158 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
15159 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
15160 { echo "$as_me:$LINENO: result: yes" >&5
15161 echo "${ECHO_T}yes" >&6; }
15163 # FIXME - insert some real tests, host_os isn't really good enough
15166 if test -n "$STRIP" ; then
15167 striplib
="$STRIP -x"
15168 { echo "$as_me:$LINENO: result: yes" >&5
15169 echo "${ECHO_T}yes" >&6; }
15171 { echo "$as_me:$LINENO: result: no" >&5
15172 echo "${ECHO_T}no" >&6; }
15176 { echo "$as_me:$LINENO: result: no" >&5
15177 echo "${ECHO_T}no" >&6; }
15184 # The else clause should only fire when bootstrapping the
15185 # libtool distribution, otherwise you forgot to ship ltmain.sh
15186 # with your package, and you will get complaints that there are
15187 # no rules to generate ltmain.sh.
15188 if test -f "$ltmain"; then
15189 # See if we are running on zsh, and set the options which allow our commands through
15190 # without removal of \ escapes.
15191 if test -n "${ZSH_VERSION+set}" ; then
15192 setopt NO_GLOB_SUBST
15194 # Now quote all the things that may contain metacharacters while being
15195 # careful not to overquote the AC_SUBSTed values. We take copies of the
15196 # variables and quote the copies for generation of the libtool script.
15197 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
15198 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15199 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15200 deplibs_check_method reload_flag reload_cmds need_locks \
15201 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15202 lt_cv_sys_global_symbol_to_c_name_address \
15203 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15204 old_postinstall_cmds old_postuninstall_cmds \
15208 lt_prog_compiler_wl_F77 \
15209 lt_prog_compiler_pic_F77 \
15210 lt_prog_compiler_static_F77 \
15211 lt_prog_compiler_no_builtin_flag_F77 \
15212 export_dynamic_flag_spec_F77 \
15213 thread_safe_flag_spec_F77 \
15214 whole_archive_flag_spec_F77 \
15215 enable_shared_with_static_runtimes_F77 \
15216 old_archive_cmds_F77 \
15217 old_archive_from_new_cmds_F77 \
15218 predep_objects_F77 \
15219 postdep_objects_F77 \
15222 compiler_lib_search_path_F77 \
15224 archive_expsym_cmds_F77 \
15225 postinstall_cmds_F77 \
15226 postuninstall_cmds_F77 \
15227 old_archive_from_expsyms_cmds_F77 \
15228 allow_undefined_flag_F77 \
15229 no_undefined_flag_F77 \
15230 export_symbols_cmds_F77 \
15231 hardcode_libdir_flag_spec_F77 \
15232 hardcode_libdir_flag_spec_ld_F77 \
15233 hardcode_libdir_separator_F77 \
15234 hardcode_automatic_F77 \
15236 module_expsym_cmds_F77 \
15237 lt_cv_prog_compiler_c_o_F77 \
15238 exclude_expsyms_F77 \
15239 include_expsyms_F77
; do
15242 old_archive_cmds_F77 | \
15243 old_archive_from_new_cmds_F77 | \
15244 archive_cmds_F77 | \
15245 archive_expsym_cmds_F77 | \
15246 module_cmds_F77 | \
15247 module_expsym_cmds_F77 | \
15248 old_archive_from_expsyms_cmds_F77 | \
15249 export_symbols_cmds_F77 | \
15250 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15251 postinstall_cmds | postuninstall_cmds | \
15252 old_postinstall_cmds | old_postuninstall_cmds | \
15253 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
15254 # Double-quote double-evaled strings.
15255 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15258 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15264 *'\$0 --fallback-echo"')
15265 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15271 cat <<__EOF__ >> "$cfgfile"
15272 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15274 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15276 # Shell to use when invoking shell scripts.
15279 # Whether or not to build shared libraries.
15280 build_libtool_libs=$enable_shared
15282 # Whether or not to build static libraries.
15283 build_old_libs=$enable_static
15285 # Whether or not to add -lc for building shared libraries.
15286 build_libtool_need_lc=$archive_cmds_need_lc_F77
15288 # Whether or not to disallow shared libs when runtime libs are static
15289 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15291 # Whether or not to optimize for fast installation.
15292 fast_install=$enable_fast_install
15295 host_alias=$host_alias
15298 # An echo program that does not interpret backslashes.
15303 AR_FLAGS=$lt_AR_FLAGS
15308 # A language-specific compiler.
15309 CC=$lt_compiler_F77
15311 # Is the compiler the GNU C compiler?
15317 # The linker used to build libraries.
15320 # Whether we need hard or soft links.
15323 # A BSD-compatible nm program.
15326 # A symbol stripping program
15329 # Used to examine libraries when file_magic_cmd begins "file"
15330 MAGIC_CMD=$MAGIC_CMD
15332 # Used on cygwin: DLL creation program.
15335 # Used on cygwin: object dumper.
15338 # Used on cygwin: assembler.
15341 # The name of the directory that contains temporary libtool files.
15344 # How to create reloadable object files.
15345 reload_flag=$lt_reload_flag
15346 reload_cmds=$lt_reload_cmds
15348 # How to pass a linker flag through the compiler.
15349 wl=$lt_lt_prog_compiler_wl_F77
15351 # Object file suffix (normally "o").
15352 objext="$ac_objext"
15354 # Old archive suffix (normally "a").
15357 # Shared library suffix (normally ".so").
15360 # Executable file suffix (normally "").
15363 # Additional compiler flags for building library objects.
15364 pic_flag=$lt_lt_prog_compiler_pic_F77
15367 # What is the maximum length of a command?
15368 max_cmd_len=$lt_cv_sys_max_cmd_len
15370 # Does compiler simultaneously support -c and -o options?
15371 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15373 # Must we lock files when doing compilation ?
15374 need_locks=$lt_need_locks
15376 # Do we need the lib prefix for modules?
15377 need_lib_prefix=$need_lib_prefix
15379 # Do we need a version for libraries?
15380 need_version=$need_version
15382 # Whether dlopen is supported.
15383 dlopen_support=$enable_dlopen
15385 # Whether dlopen of programs is supported.
15386 dlopen_self=$enable_dlopen_self
15388 # Whether dlopen of statically linked programs is supported.
15389 dlopen_self_static=$enable_dlopen_self_static
15391 # Compiler flag to prevent dynamic linking.
15392 link_static_flag=$lt_lt_prog_compiler_static_F77
15394 # Compiler flag to turn off builtin functions.
15395 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15397 # Compiler flag to allow reflexive dlopens.
15398 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15400 # Compiler flag to generate shared objects directly from archives.
15401 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15403 # Compiler flag to generate thread-safe objects.
15404 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15406 # Library versioning type.
15407 version_type=$version_type
15409 # Format of library name prefix.
15410 libname_spec=$lt_libname_spec
15412 # List of archive names. First name is the real one, the rest are links.
15413 # The last name is the one that the linker finds with -lNAME.
15414 library_names_spec=$lt_library_names_spec
15416 # The coded name of the library, if different from the real name.
15417 soname_spec=$lt_soname_spec
15419 # Commands used to build and install an old-style archive.
15421 old_archive_cmds=$lt_old_archive_cmds_F77
15422 old_postinstall_cmds=$lt_old_postinstall_cmds
15423 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15425 # Create an old-style archive from a shared archive.
15426 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15428 # Create a temporary old-style archive to link instead of a shared archive.
15429 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15431 # Commands used to build and install a shared archive.
15432 archive_cmds=$lt_archive_cmds_F77
15433 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15434 postinstall_cmds=$lt_postinstall_cmds
15435 postuninstall_cmds=$lt_postuninstall_cmds
15437 # Commands used to build a loadable module (assumed same as above if empty)
15438 module_cmds=$lt_module_cmds_F77
15439 module_expsym_cmds=$lt_module_expsym_cmds_F77
15441 # Commands to strip libraries.
15442 old_striplib=$lt_old_striplib
15443 striplib=$lt_striplib
15445 # Dependencies to place before the objects being linked to create a
15447 predep_objects=$lt_predep_objects_F77
15449 # Dependencies to place after the objects being linked to create a
15451 postdep_objects=$lt_postdep_objects_F77
15453 # Dependencies to place before the objects being linked to create a
15455 predeps=$lt_predeps_F77
15457 # Dependencies to place after the objects being linked to create a
15459 postdeps=$lt_postdeps_F77
15461 # The library search path used internally by the compiler when linking
15462 # a shared library.
15463 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15465 # Method to check whether dependent libraries are shared objects.
15466 deplibs_check_method=$lt_deplibs_check_method
15468 # Command to use when deplibs_check_method == file_magic.
15469 file_magic_cmd=$lt_file_magic_cmd
15471 # Flag that allows shared libraries with undefined symbols to be built.
15472 allow_undefined_flag=$lt_allow_undefined_flag_F77
15474 # Flag that forces no undefined symbols.
15475 no_undefined_flag=$lt_no_undefined_flag_F77
15477 # Commands used to finish a libtool library installation in a directory.
15478 finish_cmds=$lt_finish_cmds
15480 # Same as above, but a single script fragment to be evaled but not shown.
15481 finish_eval=$lt_finish_eval
15483 # Take the output of nm and produce a listing of raw symbols and C names.
15484 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15486 # Transform the output of nm in a proper C declaration
15487 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15489 # Transform the output of nm in a C name address pair
15490 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15492 # This is the shared library runtime path variable.
15493 runpath_var=$runpath_var
15495 # This is the shared library path variable.
15496 shlibpath_var=$shlibpath_var
15498 # Is shlibpath searched before the hard-coded library search path?
15499 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15501 # How to hardcode a shared library path into an executable.
15502 hardcode_action=$hardcode_action_F77
15504 # Whether we should hardcode library paths into libraries.
15505 hardcode_into_libs=$hardcode_into_libs
15507 # Flag to hardcode \$libdir into a binary during linking.
15508 # This must work even if \$libdir does not exist.
15509 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15511 # If ld is used when linking, flag to hardcode \$libdir into
15512 # a binary during linking. This must work even if \$libdir does
15514 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15516 # Whether we need a single -rpath flag with a separated argument.
15517 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15519 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15520 # resulting binary.
15521 hardcode_direct=$hardcode_direct_F77
15523 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15524 # resulting binary.
15525 hardcode_minus_L=$hardcode_minus_L_F77
15527 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15528 # the resulting binary.
15529 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15531 # Set to yes if building a shared library automatically hardcodes DIR into the library
15532 # and all subsequent libraries and executables linked against it.
15533 hardcode_automatic=$hardcode_automatic_F77
15535 # Variables whose values should be saved in libtool wrapper scripts and
15536 # restored at relink time.
15537 variables_saved_for_relink="$variables_saved_for_relink"
15539 # Whether libtool must link a program against all its dependency libraries.
15540 link_all_deplibs=$link_all_deplibs_F77
15542 # Compile-time system search path for libraries
15543 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15545 # Run-time system search path for libraries
15546 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15548 # Fix the shell variable \$srcfile for the compiler.
15549 fix_srcfile_path="$fix_srcfile_path_F77"
15551 # Set to yes if exported symbols are required.
15552 always_export_symbols=$always_export_symbols_F77
15554 # The commands to list exported symbols.
15555 export_symbols_cmds=$lt_export_symbols_cmds_F77
15557 # The commands to extract the exported symbol list from a shared archive.
15558 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15560 # Symbols that should not be listed in the preloaded symbols.
15561 exclude_expsyms=$lt_exclude_expsyms_F77
15563 # Symbols that must always be exported.
15564 include_expsyms=$lt_include_expsyms_F77
15566 # ### END LIBTOOL TAG CONFIG: $tagname
15572 # If there is no Makefile yet, we rely on a make rule to execute
15573 # `config.status --recheck' to rerun these tests and create the
15574 # libtool script then.
15575 test -f Makefile
&& make "$ltmain"
15580 ac_cpp
='$CPP $CPPFLAGS'
15581 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15582 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15583 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
15593 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15596 # Source file extension for Java test sources.
15599 # Object file extension for compiled Java test sources.
15603 # Code to be used in simple compile tests
15604 lt_simple_compile_test_code
="class foo {}\n"
15606 # Code to be used in simple link tests
15607 lt_simple_link_test_code
='public class conftest { public static void main(String argv) {}; }\n'
15609 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15611 # If no C compiler was specified, use CC.
15614 # Allow CC to be a program name with arguments.
15618 # Allow CC to be a program name with arguments.
15624 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15625 archive_cmds_need_lc_GCJ
=no
15628 ## There is no encapsulation within the following macros, do not change
15629 ## the running order or otherwise move them around unless you know exactly
15630 ## what you are doing...
15632 lt_prog_compiler_no_builtin_flag_GCJ
=
15634 if test "$GCC" = yes; then
15635 lt_prog_compiler_no_builtin_flag_GCJ
=' -fno-builtin'
15638 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15639 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
15640 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15641 echo $ECHO_N "(cached) $ECHO_C" >&6
15643 lt_cv_prog_compiler_rtti_exceptions
=no
15644 ac_outfile
=conftest.
$ac_objext
15645 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
15646 lt_compiler_flag
="-fno-rtti -fno-exceptions"
15647 # Insert the option either (1) after the last *FLAGS variable, or
15648 # (2) before a word containing "conftest.", or (3) at the end.
15649 # Note that $ac_compile itself does not contain backslashes and begins
15650 # with a dollar sign (not a hyphen), so the echo should work correctly.
15651 # The option is referenced via a variable to avoid confusing sed.
15652 lt_compile
=`echo "$ac_compile" | $SED \
15653 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15654 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15655 -e 's:$: $lt_compiler_flag:'`
15656 (eval echo "\"\$as_me:15656: $lt_compile\"" >&5)
15657 (eval "$lt_compile" 2>conftest.err
)
15659 cat conftest.err
>&5
15660 echo "$as_me:15660: \$? = $ac_status" >&5
15661 if (exit $ac_status) && test -s "$ac_outfile"; then
15662 # The compiler can only warn and ignore the option if not recognized
15663 # So say no if there are warnings
15664 if test ! -s conftest.err
; then
15665 lt_cv_prog_compiler_rtti_exceptions
=yes
15671 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15672 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15674 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
15675 lt_prog_compiler_no_builtin_flag_GCJ
="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15682 lt_prog_compiler_wl_GCJ
=
15683 lt_prog_compiler_pic_GCJ
=
15684 lt_prog_compiler_static_GCJ
=
15686 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15687 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
15689 if test "$GCC" = yes; then
15690 lt_prog_compiler_wl_GCJ
='-Wl,'
15691 lt_prog_compiler_static_GCJ
='-static'
15695 # All AIX code is PIC.
15696 if test "$host_cpu" = ia64
; then
15697 # AIX 5 now supports IA64 processor
15698 lt_prog_compiler_static_GCJ
='-Bstatic'
15703 # FIXME: we need at least 68020 code to build shared libraries, but
15704 # adding the `-m68020' flag to GCC prevents building anything better,
15706 lt_prog_compiler_pic_GCJ
='-m68020 -resident32 -malways-restore-a4'
15709 beos
* | cygwin
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
15710 # PIC is the default for these OSes.
15713 mingw
* | pw32
* | os2
*)
15714 # This hack is so that the source file can tell whether it is being
15715 # built for inclusion in a dll (and should export symbols for example).
15716 lt_prog_compiler_pic_GCJ
='-DDLL_EXPORT'
15719 darwin
* | rhapsody
*)
15720 # PIC is the default on this platform
15721 # Common symbols not allowed in MH_DYLIB files
15722 lt_prog_compiler_pic_GCJ
='-fno-common'
15726 # Just because we use GCC doesn't mean we suddenly get shared libraries
15727 # on systems that don't support them.
15728 lt_prog_compiler_can_build_shared_GCJ
=no
15733 if test -d /usr
/nec
; then
15734 lt_prog_compiler_pic_GCJ
=-Kconform_pic
15739 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15740 # not for PA HP-UX.
15741 case "$host_cpu" in
15746 lt_prog_compiler_pic_GCJ
='-fPIC'
15752 lt_prog_compiler_pic_GCJ
='-fPIC'
15756 # PORTME Check for flag to pass linker flags through the system compiler.
15759 lt_prog_compiler_wl_GCJ
='-Wl,'
15760 if test "$host_cpu" = ia64
; then
15761 # AIX 5 now supports IA64 processor
15762 lt_prog_compiler_static_GCJ
='-Bstatic'
15764 lt_prog_compiler_static_GCJ
='-bnso -bI:/lib/syscalls.exp'
15768 mingw
* | pw32
* | os2
*)
15769 # This hack is so that the source file can tell whether it is being
15770 # built for inclusion in a dll (and should export symbols for example).
15771 lt_prog_compiler_pic_GCJ
='-DDLL_EXPORT'
15774 hpux9
* | hpux10
* | hpux11
*)
15775 lt_prog_compiler_wl_GCJ
='-Wl,'
15776 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15777 # not for PA HP-UX.
15778 case "$host_cpu" in
15783 lt_prog_compiler_pic_GCJ
='+Z'
15786 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15787 lt_prog_compiler_static_GCJ
='${wl}-a ${wl}archive'
15790 irix5
* | irix6
* | nonstopux
*)
15791 lt_prog_compiler_wl_GCJ
='-Wl,'
15792 # PIC (with -KPIC) is the default.
15793 lt_prog_compiler_static_GCJ
='-non_shared'
15797 lt_prog_compiler_pic_GCJ
='-KPIC'
15798 lt_prog_compiler_static_GCJ
='-Bstatic'
15804 lt_prog_compiler_wl_GCJ
='-Wl,'
15805 lt_prog_compiler_pic_GCJ
='-KPIC'
15806 lt_prog_compiler_static_GCJ
='-static'
15809 lt_prog_compiler_wl_GCJ
='-Wl,'
15810 # All Alpha code is PIC.
15811 lt_prog_compiler_static_GCJ
='-non_shared'
15816 osf3
* | osf4
* | osf5
*)
15817 lt_prog_compiler_wl_GCJ
='-Wl,'
15818 # All OSF/1 code is PIC.
15819 lt_prog_compiler_static_GCJ
='-non_shared'
15823 lt_prog_compiler_pic_GCJ
='-Kpic'
15824 lt_prog_compiler_static_GCJ
='-dn'
15828 lt_prog_compiler_wl_GCJ
='-Wl,'
15829 lt_prog_compiler_pic_GCJ
='-KPIC'
15830 lt_prog_compiler_static_GCJ
='-Bstatic'
15834 lt_prog_compiler_wl_GCJ
='-Qoption ld '
15835 lt_prog_compiler_pic_GCJ
='-PIC'
15836 lt_prog_compiler_static_GCJ
='-Bstatic'
15839 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
15840 lt_prog_compiler_wl_GCJ
='-Wl,'
15841 lt_prog_compiler_pic_GCJ
='-KPIC'
15842 lt_prog_compiler_static_GCJ
='-Bstatic'
15846 if test -d /usr
/nec
;then
15847 lt_prog_compiler_pic_GCJ
='-Kconform_pic'
15848 lt_prog_compiler_static_GCJ
='-Bstatic'
15853 lt_prog_compiler_pic_GCJ
='-pic'
15854 lt_prog_compiler_static_GCJ
='-Bstatic'
15858 lt_prog_compiler_can_build_shared_GCJ
=no
15863 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15864 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
15867 # Check to make sure the PIC flag actually works.
15869 if test -n "$lt_prog_compiler_pic_GCJ"; then
15871 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15872 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
15873 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15874 echo $ECHO_N "(cached) $ECHO_C" >&6
15876 lt_prog_compiler_pic_works_GCJ
=no
15877 ac_outfile
=conftest.
$ac_objext
15878 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
15879 lt_compiler_flag
="$lt_prog_compiler_pic_GCJ"
15880 # Insert the option either (1) after the last *FLAGS variable, or
15881 # (2) before a word containing "conftest.", or (3) at the end.
15882 # Note that $ac_compile itself does not contain backslashes and begins
15883 # with a dollar sign (not a hyphen), so the echo should work correctly.
15884 # The option is referenced via a variable to avoid confusing sed.
15885 lt_compile
=`echo "$ac_compile" | $SED \
15886 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15887 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15888 -e 's:$: $lt_compiler_flag:'`
15889 (eval echo "\"\$as_me:15889: $lt_compile\"" >&5)
15890 (eval "$lt_compile" 2>conftest.err
)
15892 cat conftest.err
>&5
15893 echo "$as_me:15893: \$? = $ac_status" >&5
15894 if (exit $ac_status) && test -s "$ac_outfile"; then
15895 # The compiler can only warn and ignore the option if not recognized
15896 # So say no if there are warnings
15897 if test ! -s conftest.err
; then
15898 lt_prog_compiler_pic_works_GCJ
=yes
15904 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15905 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
15907 if test x
"$lt_prog_compiler_pic_works_GCJ" = xyes
; then
15908 case $lt_prog_compiler_pic_GCJ in
15910 *) lt_prog_compiler_pic_GCJ
=" $lt_prog_compiler_pic_GCJ" ;;
15913 lt_prog_compiler_pic_GCJ
=
15914 lt_prog_compiler_can_build_shared_GCJ
=no
15919 # For platforms which do not support PIC, -DPIC is meaningless:
15921 lt_prog_compiler_pic_GCJ
=
15924 lt_prog_compiler_pic_GCJ
="$lt_prog_compiler_pic_GCJ"
15928 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15929 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15930 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15931 echo $ECHO_N "(cached) $ECHO_C" >&6
15933 lt_cv_prog_compiler_c_o_GCJ
=no
15934 $rm -r conftest
2>/dev
/null
15938 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
15940 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
15941 # that will create temporary files in the current directory regardless of
15942 # the output directory. Thus, making CWD read-only will cause this test
15943 # to fail, enabling locking or at least warning the user not to do parallel
15947 lt_compiler_flag
="-o out/conftest2.$ac_objext"
15948 # Insert the option either (1) after the last *FLAGS variable, or
15949 # (2) before a word containing "conftest.", or (3) at the end.
15950 # Note that $ac_compile itself does not contain backslashes and begins
15951 # with a dollar sign (not a hyphen), so the echo should work correctly.
15952 lt_compile
=`echo "$ac_compile" | $SED \
15953 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15954 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15955 -e 's:$: $lt_compiler_flag:'`
15956 (eval echo "\"\$as_me:15956: $lt_compile\"" >&5)
15957 (eval "$lt_compile" 2>out
/conftest.err
)
15959 cat out
/conftest.err
>&5
15960 echo "$as_me:15960: \$? = $ac_status" >&5
15961 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
15963 # The compiler can only warn and ignore the option if not recognized
15964 # So say no if there are warnings
15965 if test ! -s out
/conftest.err
; then
15966 lt_cv_prog_compiler_c_o_GCJ
=yes
15971 # SGI C++ compiler will create directory out/ii_files/ for
15972 # template instantiation
15973 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
15974 $rm out
/* && rmdir out
15980 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15981 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
15984 hard_links
="nottested"
15985 if test "$lt_cv_prog_compiler_c_o_GCJ" = no
&& test "$need_locks" != no
; then
15986 # do not overwrite the value of need_locks provided by the user
15987 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15988 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15991 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
15993 ln conftest.a conftest.b
2>&5 || hard_links
=no
15994 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
15995 { echo "$as_me:$LINENO: result: $hard_links" >&5
15996 echo "${ECHO_T}$hard_links" >&6; }
15997 if test "$hard_links" = no
; then
15998 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15999 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16006 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16007 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16010 allow_undefined_flag_GCJ
=
16011 enable_shared_with_static_runtimes_GCJ
=no
16013 archive_expsym_cmds_GCJ
=
16014 old_archive_From_new_cmds_GCJ
=
16015 old_archive_from_expsyms_cmds_GCJ
=
16016 export_dynamic_flag_spec_GCJ
=
16017 whole_archive_flag_spec_GCJ
=
16018 thread_safe_flag_spec_GCJ
=
16019 hardcode_libdir_flag_spec_GCJ
=
16020 hardcode_libdir_flag_spec_ld_GCJ
=
16021 hardcode_libdir_separator_GCJ
=
16022 hardcode_direct_GCJ
=no
16023 hardcode_minus_L_GCJ
=no
16024 hardcode_shlibpath_var_GCJ
=unsupported
16025 link_all_deplibs_GCJ
=unknown
16026 hardcode_automatic_GCJ
=no
16028 module_expsym_cmds_GCJ
=
16029 always_export_symbols_GCJ
=no
16030 export_symbols_cmds_GCJ
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16031 # include_expsyms should be a list of space-separated symbols to be *always*
16032 # included in the symbol list
16033 include_expsyms_GCJ
=
16034 # exclude_expsyms can be an extended regexp of symbols to exclude
16035 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16036 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16037 # as well as any symbol that contains `d'.
16038 exclude_expsyms_GCJ
="_GLOBAL_OFFSET_TABLE_"
16039 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16040 # platforms (ab)use it in PIC code, but their linkers get confused if
16041 # the symbol is explicitly referenced. Since portable code cannot
16042 # rely on this symbol name, it's probably fine to never include it in
16043 # preloaded symbol tables.
16044 extract_expsyms_cmds
=
16047 cygwin
* | mingw
* | pw32
*)
16048 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16049 # When not using gcc, we currently assume that we are using
16050 # Microsoft Visual C++.
16051 if test "$GCC" != yes; then
16061 if test "$with_gnu_ld" = yes; then
16062 # If archive_cmds runs LD, not CC, wlarc should be empty
16065 # See if GNU ld supports shared libraries.
16067 aix3
* | aix4
* | aix5
*)
16068 # On AIX/PPC, the GNU linker is very broken
16069 if test "$host_cpu" != ia64
; then
16073 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16074 *** to be unable to reliably create shared libraries on AIX.
16075 *** Therefore, libtool is disabling shared libraries support. If you
16076 *** really care for shared libraries, you may want to modify your PATH
16077 *** so that a non-GNU linker is found, and then restart.
16084 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)'
16085 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
16086 hardcode_minus_L_GCJ
=yes
16088 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16089 # that the semantics of dynamic libraries on AmigaOS, at least up
16090 # to version 4, is to share data among multiple programs linked
16091 # with the same dynamic library. Since this doesn't match the
16092 # behavior of shared libraries on other platforms, we can't use
16098 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
16099 allow_undefined_flag_GCJ
=unsupported
16100 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16101 # support --undefined. This deserves some investigation. FIXME
16102 archive_cmds_GCJ
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16108 cygwin
* | mingw
* | pw32
*)
16109 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16110 # as there is no search path for DLLs.
16111 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
16112 allow_undefined_flag_GCJ
=unsupported
16113 always_export_symbols_GCJ
=no
16114 enable_shared_with_static_runtimes_GCJ
=yes
16115 export_symbols_cmds_GCJ
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16117 if $LD --help 2>&1 |
grep 'auto-import' > /dev
/null
; then
16118 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16119 # If the export-symbols file already is a .def file (1st line
16120 # is EXPORTS), use it as is; otherwise, prepend...
16121 archive_expsym_cmds_GCJ
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16122 cp $export_symbols $output_objdir/$soname.def;
16124 echo EXPORTS > $output_objdir/$soname.def;
16125 cat $export_symbols >> $output_objdir/$soname.def;
16127 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16134 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
16135 archive_cmds_GCJ
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16138 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16139 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16144 if $LD -v 2>&1 |
grep 'BFD 2\.8' > /dev
/null
; then
16148 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16149 *** create shared libraries on Solaris systems. Therefore, libtool
16150 *** is disabling shared libraries support. We urge you to upgrade GNU
16151 *** binutils to release 2.9.1 or newer. Another option is to modify
16152 *** your PATH or compiler configuration so that the native linker is
16153 *** used, and then restart.
16156 elif $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
16157 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16158 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16165 archive_cmds_GCJ
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16167 hardcode_direct_GCJ
=yes
16168 hardcode_shlibpath_var_GCJ
=no
16172 if $LD --help 2>&1 |
egrep ': supported targets:.* elf' > /dev
/null
; then
16173 tmp_archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16174 archive_cmds_GCJ
="$tmp_archive_cmds"
16175 supports_anon_versioning
=no
16176 case `$LD -v 2>/dev/null` in
16177 *\
01.
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
16178 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
16179 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
16180 *\
2.11.
*) ;; # other 2.11 versions
16181 *) supports_anon_versioning
=yes ;;
16183 if test $supports_anon_versioning = yes; then
16184 archive_expsym_cmds_GCJ
='$echo "{ global:" > $output_objdir/$libname.ver~
16185 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16186 $echo "local: *; };" >> $output_objdir/$libname.ver~
16187 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16189 archive_expsym_cmds_GCJ
="$tmp_archive_cmds"
16197 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
16198 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16199 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16206 if test "$ld_shlibs_GCJ" = yes; then
16207 runpath_var
=LD_RUN_PATH
16208 hardcode_libdir_flag_spec_GCJ
='${wl}--rpath ${wl}$libdir'
16209 export_dynamic_flag_spec_GCJ
='${wl}--export-dynamic'
16210 # ancient GNU ld didn't support --whole-archive et. al.
16211 if $LD --help 2>&1 |
grep 'no-whole-archive' > /dev
/null
; then
16212 whole_archive_flag_spec_GCJ
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16214 whole_archive_flag_spec_GCJ
=
16218 # PORTME fill in a description of your system's linker (not GNU ld)
16221 allow_undefined_flag_GCJ
=unsupported
16222 always_export_symbols_GCJ
=yes
16223 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'
16224 # Note: this linker hardcodes the directories in LIBPATH if there
16225 # are no directories specified by -L.
16226 hardcode_minus_L_GCJ
=yes
16227 if test "$GCC" = yes && test -z "$link_static_flag"; then
16228 # Neither direct hardcoding nor static linking is supported with a
16230 hardcode_direct_GCJ
=unsupported
16235 if test "$host_cpu" = ia64
; then
16236 # On IA64, the linker does run time linking by default, so we don't
16237 # have to do anything special.
16238 aix_use_runtimelinking
=no
16239 exp_sym_flag
='-Bexport'
16242 # If we're using GNU nm, then we don't want the "-C" option.
16243 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16244 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
16245 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'
16247 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'
16249 aix_use_runtimelinking
=no
16251 # Test if we are trying to use run time linking or normal
16252 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16253 # need to do runtime linking.
16254 case $host_os in aix4.
[23]|aix4.
[23].
*|aix5
*)
16255 for ld_flag
in $LDFLAGS; do
16256 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
16257 aix_use_runtimelinking
=yes
16263 exp_sym_flag
='-bexport'
16264 no_entry_flag
='-bnoentry'
16267 # When large executables or shared objects are built, AIX ld can
16268 # have problems creating the table of contents. If linking a library
16269 # or program results in "error TOC overflow" add -mminimal-toc to
16270 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16271 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16273 archive_cmds_GCJ
=''
16274 hardcode_direct_GCJ
=yes
16275 hardcode_libdir_separator_GCJ
=':'
16276 link_all_deplibs_GCJ
=yes
16278 if test "$GCC" = yes; then
16279 case $host_os in aix4.012|aix4.012.
*)
16280 # We only want to do this on AIX 4.2 and lower, the check
16281 # below for broken collect2 doesn't work under 4.3+
16282 collect2name
=`${CC} -print-prog-name=collect2`
16283 if test -f "$collect2name" && \
16284 strings "$collect2name" |
grep resolve_lib_name
>/dev
/null
16286 # We have reworked collect2
16287 hardcode_direct_GCJ
=yes
16289 # We have old collect2
16290 hardcode_direct_GCJ
=unsupported
16291 # It fails to find uninstalled libraries when the uninstalled
16292 # path is not listed in the libpath. Setting hardcode_minus_L
16293 # to unsupported forces relinking
16294 hardcode_minus_L_GCJ
=yes
16295 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
16296 hardcode_libdir_separator_GCJ
=
16299 shared_flag
='-shared'
16302 if test "$host_cpu" = ia64
; then
16303 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16304 # chokes on -Wl,-G. The following line is correct:
16307 if test "$aix_use_runtimelinking" = yes; then
16308 shared_flag
='${wl}-G'
16310 shared_flag
='${wl}-bM:SRE'
16315 # It seems that -bexpall does not export symbols beginning with
16316 # underscore (_), so it is better to generate a list of symbols to export.
16317 always_export_symbols_GCJ
=yes
16318 if test "$aix_use_runtimelinking" = yes; then
16319 # Warning - without using the other runtime loading flags (-brtl),
16320 # -berok will link without error, but may produce a broken library.
16321 allow_undefined_flag_GCJ
='-berok'
16322 # Determine the default libpath from the value encoded in an empty executable.
16323 cat >conftest.
$ac_ext <<_ACEOF
16326 cat confdefs.h
>>conftest.
$ac_ext
16327 cat >>conftest.
$ac_ext <<_ACEOF
16328 /* end confdefs.h. */
16338 rm -f conftest.
$ac_objext conftest
$ac_exeext
16339 if { (ac_try
="$ac_link"
16340 case "(($ac_try" in
16341 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16342 *) ac_try_echo=$ac_try;;
16344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16345 (eval "$ac_link") 2>conftest.er1
16347 grep -v '^ *+' conftest.er1 >conftest.err
16349 cat conftest.err >&5
16350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16351 (exit $ac_status); } && {
16352 test -z "$ac_c_werror_flag" ||
16353 test ! -s conftest.err
16354 } && test -s conftest$ac_exeext &&
16355 $as_test_x conftest$ac_exeext; then
16357 aix_libpath=`dump
-H conftest
$ac_exeext 2>/dev
/null |
$SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16359 # Check for a 64-bit object if we didn't find anything.
16360 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; }
16363 echo "$as_me: failed program was:" >&5
16364 sed 's/^/| /' conftest.$ac_ext >&5
16369 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16370 conftest$ac_exeext conftest.$ac_ext
16371 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16373 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16374 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16376 if test "$host_cpu" = ia64
; then
16377 hardcode_libdir_flag_spec_GCJ
='${wl}-R $libdir:/usr/lib:/lib'
16378 allow_undefined_flag_GCJ
="-z nodefs"
16379 archive_expsym_cmds_GCJ
="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
16381 # Determine the default libpath from the value encoded in an empty executable.
16382 cat >conftest.$ac_ext <<_ACEOF
16385 cat confdefs.h >>conftest.$ac_ext
16386 cat >>conftest.$ac_ext <<_ACEOF
16387 /* end confdefs.h. */
16397 rm -f conftest.$ac_objext conftest$ac_exeext
16398 if { (ac_try="$ac_link"
16399 case "(($ac_try" in
16400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16401 *) ac_try_echo=$ac_try;;
16403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16404 (eval "$ac_link") 2>conftest.er1
16406 grep -v '^
*+' conftest.er1 >conftest.err
16408 cat conftest.err >&5
16409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16410 (exit $ac_status); } && {
16411 test -z "$ac_c_werror_flag" ||
16412 test ! -s conftest.err
16413 } && test -s conftest$ac_exeext &&
16414 $as_test_x conftest$ac_exeext; then
16416 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings
/,/^$
/ { /^
0/ { s
/^
0 *\
(.
*\
)$
/\
1/; p
; }
16418 # Check for a 64-bit object if we didn't
find anything.
16419 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; }
16422 echo "$as_me: failed program was:" >&5
16423 sed 's/^/| /' conftest.
$ac_ext >&5
16428 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16429 conftest
$ac_exeext conftest.
$ac_ext
16430 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
16432 hardcode_libdir_flag_spec_GCJ
='${wl}-blibpath:$libdir:'"$aix_libpath"
16433 # Warning - without using the other run time loading flags,
16434 # -berok will link without error, but may produce a broken library.
16435 no_undefined_flag_GCJ
=' ${wl}-bernotok'
16436 allow_undefined_flag_GCJ
=' ${wl}-berok'
16437 # -bexpall does not export symbols beginning with underscore (_)
16438 always_export_symbols_GCJ
=yes
16439 # Exported symbols can be pulled into shared objects from archives
16440 whole_archive_flag_spec_GCJ
=' '
16441 archive_cmds_need_lc_GCJ
=yes
16442 # This is similar to how AIX traditionally builds it's shared libraries.
16443 archive_expsym_cmds_GCJ
="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16449 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)'
16450 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
16451 hardcode_minus_L_GCJ
=yes
16452 # see comment about different semantics on the GNU ld section
16457 export_dynamic_flag_spec_GCJ
=-rdynamic
16460 cygwin
* | mingw
* | pw32
*)
16461 # When not using gcc, we currently assume that we are using
16462 # Microsoft Visual C++.
16463 # hardcode_libdir_flag_spec is actually meaningless, as there is
16464 # no search path for DLLs.
16465 hardcode_libdir_flag_spec_GCJ
=' '
16466 allow_undefined_flag_GCJ
=unsupported
16467 # Tell ltmain to make .lib files, not .a files.
16469 # Tell ltmain to make .dll files, not .so files.
16471 # FIXME: Setting linknames here is a bad hack.
16472 archive_cmds_GCJ
='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16473 # The linker will automatically build a .lib file if we build a DLL.
16474 old_archive_From_new_cmds_GCJ
='true'
16475 # FIXME: Should let the user specify the lib program.
16476 old_archive_cmds_GCJ
='lib /OUT:$oldlib$oldobjs$old_deplibs'
16477 fix_srcfile_path
='`cygpath -w "$srcfile"`'
16478 enable_shared_with_static_runtimes_GCJ
=yes
16481 darwin
* | rhapsody
*)
16482 if test "$GXX" = yes ; then
16483 archive_cmds_need_lc_GCJ
=no
16485 rhapsody
* | darwin1.
[012])
16486 allow_undefined_flag_GCJ
='-undefined suppress'
16489 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16490 allow_undefined_flag_GCJ
='-flat_namespace -undefined suppress'
16492 case ${MACOSX_DEPLOYMENT_TARGET} in
16494 allow_undefined_flag_GCJ
='-flat_namespace -undefined suppress'
16497 allow_undefined_flag_GCJ
='-undefined dynamic_lookup'
16503 lt_int_apple_cc_single_mod
=no
16504 output_verbose_link_cmd
='echo'
16505 if $CC -dumpspecs 2>&1 |
grep 'single_module' >/dev
/null
; then
16506 lt_int_apple_cc_single_mod
=yes
16508 if test "X$lt_int_apple_cc_single_mod" = Xyes
; then
16509 archive_cmds_GCJ
='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16511 archive_cmds_GCJ
='$CC -r ${wl}-bind_at_load -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'
16513 module_cmds_GCJ
='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16514 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16515 if test "X$lt_int_apple_cc_single_mod" = Xyes
; then
16516 archive_expsym_cmds_GCJ
='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}'
16518 archive_expsym_cmds_GCJ
='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
16520 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}'
16521 hardcode_direct_GCJ
=no
16522 hardcode_automatic_GCJ
=yes
16523 hardcode_shlibpath_var_GCJ
=unsupported
16524 whole_archive_flag_spec_GCJ
='-all_load $convenience'
16525 link_all_deplibs_GCJ
=yes
16532 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16533 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
16534 hardcode_shlibpath_var_GCJ
=no
16541 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16542 # support. Future versions do this automatically, but an explicit c++rt0.o
16543 # does not break anything, and helps significantly (at the cost of a little
16546 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16547 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
16548 hardcode_direct_GCJ
=yes
16549 hardcode_shlibpath_var_GCJ
=no
16552 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16554 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16555 hardcode_direct_GCJ
=yes
16556 hardcode_minus_L_GCJ
=yes
16557 hardcode_shlibpath_var_GCJ
=no
16560 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16561 freebsd
* | kfreebsd
*-gnu)
16562 archive_cmds_GCJ
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16563 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
16564 hardcode_direct_GCJ
=yes
16565 hardcode_shlibpath_var_GCJ
=no
16569 if test "$GCC" = yes; then
16570 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'
16572 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'
16574 hardcode_libdir_flag_spec_GCJ
='${wl}+b ${wl}$libdir'
16575 hardcode_libdir_separator_GCJ
=:
16576 hardcode_direct_GCJ
=yes
16578 # hardcode_minus_L: Not really in the search PATH,
16579 # but as the default location of the library.
16580 hardcode_minus_L_GCJ
=yes
16581 export_dynamic_flag_spec_GCJ
='${wl}-E'
16585 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
16586 case "$host_cpu" in
16588 archive_cmds_GCJ
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16591 archive_cmds_GCJ
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16595 case "$host_cpu" in
16597 archive_cmds_GCJ
='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16600 archive_cmds_GCJ
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16604 if test "$with_gnu_ld" = no
; then
16605 case "$host_cpu" in
16607 hardcode_libdir_flag_spec_GCJ
='${wl}+b ${wl}$libdir'
16608 hardcode_libdir_flag_spec_ld_GCJ
='+b $libdir'
16609 hardcode_libdir_separator_GCJ
=:
16610 hardcode_direct_GCJ
=no
16611 hardcode_shlibpath_var_GCJ
=no
16614 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
16615 hardcode_direct_GCJ
=no
16616 hardcode_shlibpath_var_GCJ
=no
16618 # hardcode_minus_L: Not really in the search PATH,
16619 # but as the default location of the library.
16620 hardcode_minus_L_GCJ
=yes
16623 hardcode_libdir_flag_spec_GCJ
='${wl}+b ${wl}$libdir'
16624 hardcode_libdir_separator_GCJ
=:
16625 hardcode_direct_GCJ
=yes
16626 export_dynamic_flag_spec_GCJ
='${wl}-E'
16628 # hardcode_minus_L: Not really in the search PATH,
16629 # but as the default location of the library.
16630 hardcode_minus_L_GCJ
=yes
16636 irix5
* | irix6
* | nonstopux
*)
16637 if test "$GCC" = yes; then
16638 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'
16640 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'
16641 hardcode_libdir_flag_spec_ld_GCJ
='-rpath $libdir'
16643 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
16644 hardcode_libdir_separator_GCJ
=:
16645 link_all_deplibs_GCJ
=yes
16649 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
16650 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16652 archive_cmds_GCJ
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16654 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
16655 hardcode_direct_GCJ
=yes
16656 hardcode_shlibpath_var_GCJ
=no
16660 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16661 hardcode_direct_GCJ
=yes
16662 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
16663 hardcode_libdir_separator_GCJ
=:
16664 hardcode_shlibpath_var_GCJ
=no
16668 hardcode_direct_GCJ
=yes
16669 hardcode_shlibpath_var_GCJ
=no
16670 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16671 archive_cmds_GCJ
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16672 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath,$libdir'
16673 export_dynamic_flag_spec_GCJ
='${wl}-E'
16676 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
16677 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16678 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
16681 archive_cmds_GCJ
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16682 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath,$libdir'
16689 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
16690 hardcode_minus_L_GCJ
=yes
16691 allow_undefined_flag_GCJ
=unsupported
16692 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'
16693 old_archive_From_new_cmds_GCJ
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16697 if test "$GCC" = yes; then
16698 allow_undefined_flag_GCJ
=' ${wl}-expect_unresolved ${wl}\*'
16699 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'
16701 allow_undefined_flag_GCJ
=' -expect_unresolved \*'
16702 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'
16704 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
16705 hardcode_libdir_separator_GCJ
=:
16708 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
16709 if test "$GCC" = yes; then
16710 allow_undefined_flag_GCJ
=' ${wl}-expect_unresolved ${wl}\*'
16711 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'
16712 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
16714 allow_undefined_flag_GCJ
=' -expect_unresolved \*'
16715 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'
16716 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~
16717 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
16719 # Both c and cxx compiler support -rpath directly
16720 hardcode_libdir_flag_spec_GCJ
='-rpath $libdir'
16722 hardcode_libdir_separator_GCJ
=:
16726 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16727 hardcode_shlibpath_var_GCJ
=no
16728 export_dynamic_flag_spec_GCJ
='${wl}-Bexport'
16729 runpath_var
=LD_RUN_PATH
16730 hardcode_runpath_var
=yes
16734 no_undefined_flag_GCJ
=' -z text'
16735 if test "$GCC" = yes; then
16736 archive_cmds_GCJ
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16737 archive_expsym_cmds_GCJ
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16738 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16740 archive_cmds_GCJ
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16741 archive_expsym_cmds_GCJ
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16742 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16744 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
16745 hardcode_shlibpath_var_GCJ
=no
16747 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
16748 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16749 whole_archive_flag_spec_GCJ
='-z allextract$convenience -z defaultextract' ;;
16751 link_all_deplibs_GCJ
=yes
16755 if test "x$host_vendor" = xsequent
; then
16756 # Use $CC to link under sequent, because it throws in some extra .o
16757 # files that make .init and .fini sections work.
16758 archive_cmds_GCJ
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16760 archive_cmds_GCJ
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16762 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
16763 hardcode_direct_GCJ
=yes
16764 hardcode_minus_L_GCJ
=yes
16765 hardcode_shlibpath_var_GCJ
=no
16769 case $host_vendor in
16771 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16772 hardcode_direct_GCJ
=yes # is this really true???
16775 ## LD is ld it makes a PLAMLIB
16776 ## CC just makes a GrossModule.
16777 archive_cmds_GCJ
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16778 reload_cmds_GCJ
='$CC -r -o $output$reload_objs'
16779 hardcode_direct_GCJ
=no
16782 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16783 hardcode_direct_GCJ
=no
#Motorola manual says yes, but my tests say they lie
16786 runpath_var
='LD_RUN_PATH'
16787 hardcode_shlibpath_var_GCJ
=no
16791 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16792 hardcode_shlibpath_var_GCJ
=no
16793 export_dynamic_flag_spec_GCJ
='-Bexport'
16797 if test -d /usr
/nec
; then
16798 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16799 hardcode_shlibpath_var_GCJ
=no
16800 runpath_var
=LD_RUN_PATH
16801 hardcode_runpath_var
=yes
16807 archive_cmds_GCJ
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16808 hardcode_direct_GCJ
=yes
16809 hardcode_minus_L_GCJ
=no
16810 hardcode_shlibpath_var_GCJ
=no
16811 hardcode_runpath_var
=yes
16812 runpath_var
=LD_RUN_PATH
16815 sysv5OpenUNIX8
* | sysv5UnixWare7
* | sysv5uw
[78]* | unixware7
*)
16816 no_undefined_flag_GCJ
='${wl}-z ${wl}text'
16817 if test "$GCC" = yes; then
16818 archive_cmds_GCJ
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16820 archive_cmds_GCJ
='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16822 runpath_var
='LD_RUN_PATH'
16823 hardcode_shlibpath_var_GCJ
=no
16827 no_undefined_flag_GCJ
=' -z text'
16828 # $CC -shared without GNU ld will not create a library from C++
16829 # object files and a static libstdc++, better avoid it by now
16830 archive_cmds_GCJ
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16831 archive_expsym_cmds_GCJ
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16832 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16833 hardcode_libdir_flag_spec_GCJ
=
16834 hardcode_shlibpath_var_GCJ
=no
16835 runpath_var
='LD_RUN_PATH'
16839 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16840 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
16841 hardcode_shlibpath_var_GCJ
=no
16850 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16851 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
16852 test "$ld_shlibs_GCJ" = no
&& can_build_shared
=no
16854 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
16855 if test "$GCC" = yes; then
16856 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16860 # Do we need to explicitly link libc?
16862 case "x$archive_cmds_need_lc_GCJ" in
16864 # Assume -lc should be added
16865 archive_cmds_need_lc_GCJ
=yes
16867 if test "$enable_shared" = yes && test "$GCC" = yes; then
16868 case $archive_cmds_GCJ in
16870 # FIXME: we may have to deal with multi-command sequences.
16873 # Test whether the compiler implicitly links with -lc since on some
16874 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16875 # to ld, don't add -lc before -lgcc.
16876 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16877 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16879 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
16881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16882 (eval $ac_compile) 2>&5
16884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16885 (exit $ac_status); } 2>conftest.err
; then
16888 libobjs
=conftest.
$ac_objext
16890 wl
=$lt_prog_compiler_wl_GCJ
16896 lt_save_allow_undefined_flag
=$allow_undefined_flag_GCJ
16897 allow_undefined_flag_GCJ
=
16898 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16899 (eval $archive_cmds_GCJ 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
16901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16902 (exit $ac_status); }
16904 archive_cmds_need_lc_GCJ
=no
16906 archive_cmds_need_lc_GCJ
=yes
16908 allow_undefined_flag_GCJ
=$lt_save_allow_undefined_flag
16910 cat conftest.err
1>&5
16913 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16914 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
16921 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16922 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16923 library_names_spec
=
16924 libname_spec
='lib$name'
16928 postuninstall_cmds
=
16932 shlibpath_overrides_runpath
=unknown
16934 dynamic_linker
="$host_os ld.so"
16935 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
16936 if test "$GCC" = yes; then
16937 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16938 if echo "$sys_lib_search_path_spec" |
grep ';' >/dev
/null
; then
16939 # if the path contains ";" then we assume it to be the separator
16940 # otherwise default to the standard path separator (i.e. ":") - it is
16941 # assumed that no part of a normal pathname contains ";" but that should
16942 # okay in the real world where ";" in dirpaths is itself problematic.
16943 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16945 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16948 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
16950 need_lib_prefix
=unknown
16951 hardcode_into_libs
=no
16953 # when you set need_version to no, make sure it does not cause -set_version
16954 # flags to be left without arguments
16955 need_version
=unknown
16960 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
16961 shlibpath_var
=LIBPATH
16963 # AIX 3 has no versioning support, so we append a major version to the name.
16964 soname_spec
='${libname}${release}${shared_ext}$major'
16971 hardcode_into_libs
=yes
16972 if test "$host_cpu" = ia64
; then
16973 # AIX 5 supports IA64
16974 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16975 shlibpath_var
=LD_LIBRARY_PATH
16977 # With GCC up to 2.95.x, collect2 would create an import file
16978 # for dependence libraries. The import file would start with
16979 # the line `#! .'. This would cause the generated library to
16980 # depend on `.', always an invalid library. This was fixed in
16981 # development snapshots of GCC prior to 3.0.
16983 aix4 | aix4.
[01] | aix4.
[01].
*)
16984 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16986 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
16989 can_build_shared
=no
16993 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16994 # soname into executable. Probably we can add versioning support to
16995 # collect2, so additional links can be useful in future.
16996 if test "$aix_use_runtimelinking" = yes; then
16997 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16998 # instead of lib<name>.a to let people know that these are not
16999 # typical AIX shared libraries.
17000 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17002 # We preserve .a as extension for shared libraries through AIX4.2
17003 # and later when we are not doing run time linking.
17004 library_names_spec
='${libname}${release}.a $libname.a'
17005 soname_spec
='${libname}${release}${shared_ext}$major'
17007 shlibpath_var
=LIBPATH
17012 library_names_spec
='$libname.ixlibrary $libname.a'
17013 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17014 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'
17018 library_names_spec
='${libname}${shared_ext}'
17019 dynamic_linker
="$host_os ld.so"
17020 shlibpath_var
=LIBRARY_PATH
17026 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17027 soname_spec
='${libname}${release}${shared_ext}$major'
17028 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
17029 shlibpath_var
=LD_LIBRARY_PATH
17030 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17031 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
17032 # the default ld.so.conf also contains /usr/contrib/lib and
17033 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17034 # libtool to hard-code these into programs
17037 cygwin
* | mingw
* | pw32
*)
17038 version_type
=windows
17043 case $GCC,$host_os in
17044 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
17045 library_names_spec
='$libname.dll.a'
17046 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17047 postinstall_cmds
='base_file=`basename \${file}`~
17048 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17049 dldir=$destdir/`dirname \$dlpath`~
17050 test -d \$dldir || mkdir -p \$dldir~
17051 $install_prog $dir/$dlname \$dldir/$dlname'
17052 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17053 dlpath=$dir/\$dldll~
17055 shlibpath_overrides_runpath
=yes
17059 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17060 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17061 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
17064 # MinGW DLLs use traditional 'lib' prefix
17065 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17066 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17067 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
17068 # It is most probably a Windows format PATH printed by
17069 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17070 # path with ; separators, and with drive letters. We can handle the
17071 # drive letters (cygwin fileutils understands them), so leave them,
17072 # especially as we might pass files found there to a mingw objdump,
17073 # which wouldn't understand a cygwinified path. Ahh.
17074 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17076 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17080 # pw32 DLLs use 'pw' prefix rather than 'lib'
17081 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
17087 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17090 dynamic_linker
='Win32 ld.exe'
17091 # FIXME: first we should search . and the directory the executable is in
17095 darwin
* | rhapsody
*)
17096 dynamic_linker
="$host_os dyld"
17097 version_type
=darwin
17100 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17101 soname_spec
='${libname}${release}${major}$shared_ext'
17102 shlibpath_overrides_runpath
=yes
17103 shlibpath_var
=DYLD_LIBRARY_PATH
17104 shrext
='$(test .$module = .yes && echo .so || echo .dylib)'
17105 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17106 if test "$GCC" = yes; then
17107 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"`
17109 sys_lib_search_path_spec
='/lib /usr/lib /usr/local/lib'
17111 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
17118 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17119 soname_spec
='${libname}${release}${shared_ext}$major'
17120 shlibpath_var
=LD_LIBRARY_PATH
17131 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17132 soname_spec
='${libname}${release}${shared_ext}$major'
17133 shlibpath_var
=LD_LIBRARY_PATH
17134 shlibpath_overrides_runpath
=no
17135 hardcode_into_libs
=yes
17136 dynamic_linker
='GNU ld.so'
17140 objformat
=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17141 version_type
=freebsd-
$objformat
17142 case $version_type in
17144 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17149 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17153 shlibpath_var
=LD_LIBRARY_PATH
17156 shlibpath_overrides_runpath
=yes
17158 freebsd3.01
* | freebsdelf3.01
*)
17159 shlibpath_overrides_runpath
=yes
17160 hardcode_into_libs
=yes
17163 shlibpath_overrides_runpath
=no
17164 hardcode_into_libs
=yes
17173 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17174 soname_spec
='${libname}${release}${shared_ext}$major'
17175 shlibpath_var
=LD_LIBRARY_PATH
17176 hardcode_into_libs
=yes
17179 hpux9
* | hpux10
* | hpux11
*)
17180 # Give a soname corresponding to the major version so that dld.sl refuses to
17181 # link against other versions.
17185 case "$host_cpu" in
17188 hardcode_into_libs
=yes
17189 dynamic_linker
="$host_os dld.so"
17190 shlibpath_var
=LD_LIBRARY_PATH
17191 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
17192 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17193 soname_spec
='${libname}${release}${shared_ext}$major'
17194 if test "X$HPUX_IA64_MODE" = X32
; then
17195 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17197 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
17199 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
17203 hardcode_into_libs
=yes
17204 dynamic_linker
="$host_os dld.sl"
17205 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
17206 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
17207 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17208 soname_spec
='${libname}${release}${shared_ext}$major'
17209 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17210 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
17214 dynamic_linker
="$host_os dld.sl"
17215 shlibpath_var
=SHLIB_PATH
17216 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
17217 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17218 soname_spec
='${libname}${release}${shared_ext}$major'
17221 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17222 postinstall_cmds
='chmod 555 $lib'
17225 irix5
* | irix6
* | nonstopux
*)
17227 nonstopux
*) version_type
=nonstopux
;;
17229 if test "$lt_cv_prog_gnu_ld" = yes; then
17237 soname_spec
='${libname}${release}${shared_ext}$major'
17238 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17240 irix5
* | nonstopux
*)
17241 libsuff
= shlibsuff
=
17244 case $LD in # libtool.m4 will add one of these switches to LD
17245 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
17246 libsuff
= shlibsuff
= libmagic
=32-bit;;
17247 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
17248 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
17249 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
17250 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
17251 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
17255 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
17256 shlibpath_overrides_runpath
=no
17257 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17258 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
17259 hardcode_into_libs
=yes
17262 # No shared lib support for Linux oldld, aout, or coff.
17263 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
17267 # This must be Linux ELF.
17272 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17273 soname_spec
='${libname}${release}${shared_ext}$major'
17274 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17275 shlibpath_var
=LD_LIBRARY_PATH
17276 shlibpath_overrides_runpath
=no
17277 # This implies no fast_install, which is unacceptable.
17278 # Some rework will be needed to allow for fast_install
17279 # before this can be enabled.
17280 hardcode_into_libs
=yes
17282 # We used to test for /lib/ld.so.1 and disable shared libraries on
17283 # powerpc, because MkLinux only supported shared libraries with the
17284 # GNU dynamic linker. Since this was broken with cross compilers,
17285 # most powerpc-linux boxes support dynamic linking these days and
17286 # people can always --disable-shared, the test was removed, and we
17287 # assume the GNU/Linux dynamic linker is in use.
17288 dynamic_linker
='GNU/Linux ld.so'
17295 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
17296 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17297 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17298 dynamic_linker
='NetBSD (a.out) ld.so'
17300 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
17301 soname_spec
='${libname}${release}${shared_ext}$major'
17302 dynamic_linker
='NetBSD ld.elf_so'
17304 shlibpath_var
=LD_LIBRARY_PATH
17305 shlibpath_overrides_runpath
=yes
17306 hardcode_into_libs
=yes
17311 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17312 shlibpath_var
=LD_LIBRARY_PATH
17313 shlibpath_overrides_runpath
=yes
17320 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17321 soname_spec
='${libname}${release}${shared_ext}$major'
17322 shlibpath_var
=LD_LIBRARY_PATH
17323 shlibpath_overrides_runpath
=yes
17330 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17331 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17332 shlibpath_var
=LD_LIBRARY_PATH
17333 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17335 openbsd2.
[89] | openbsd2.
[89].
*)
17336 shlibpath_overrides_runpath
=no
17339 shlibpath_overrides_runpath
=yes
17343 shlibpath_overrides_runpath
=yes
17348 libname_spec
='$name'
17351 library_names_spec
='$libname${shared_ext} $libname.a'
17352 dynamic_linker
='OS/2 ld.exe'
17353 shlibpath_var
=LIBPATH
17356 osf3
* | osf4
* | osf5
*)
17360 soname_spec
='${libname}${release}${shared_ext}$major'
17361 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17362 shlibpath_var
=LD_LIBRARY_PATH
17363 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17364 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
17369 soname_spec
='${libname}${release}${shared_ext}$major'
17370 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17371 shlibpath_var
=LD_LIBRARY_PATH
17378 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17379 soname_spec
='${libname}${release}${shared_ext}$major'
17380 shlibpath_var
=LD_LIBRARY_PATH
17381 shlibpath_overrides_runpath
=yes
17382 hardcode_into_libs
=yes
17383 # ldd complains unless libraries are executable
17384 postinstall_cmds
='chmod +x $lib'
17389 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17390 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17391 shlibpath_var
=LD_LIBRARY_PATH
17392 shlibpath_overrides_runpath
=yes
17393 if test "$with_gnu_ld" = yes; then
17399 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
17401 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17402 soname_spec
='${libname}${release}${shared_ext}$major'
17403 shlibpath_var
=LD_LIBRARY_PATH
17404 case $host_vendor in
17406 shlibpath_overrides_runpath
=no
17408 export_dynamic_flag_spec
='${wl}-Blargedynsym'
17409 runpath_var
=LD_RUN_PATH
17417 shlibpath_overrides_runpath
=no
17418 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
17424 if test -d /usr
/nec
;then
17426 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17427 soname_spec
='$libname${shared_ext}.$major'
17428 shlibpath_var
=LD_LIBRARY_PATH
17434 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17435 soname_spec
='${libname}${release}${shared_ext}$major'
17436 shlibpath_var
=LD_LIBRARY_PATH
17443 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17444 echo "${ECHO_T}$dynamic_linker" >&6; }
17445 test "$dynamic_linker" = no
&& can_build_shared
=no
17447 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17448 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
17449 hardcode_action_GCJ
=
17450 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17451 test -n "$runpath_var GCJ" || \
17452 test "X$hardcode_automatic_GCJ"="Xyes" ; then
17454 # We can hardcode non-existant directories.
17455 if test "$hardcode_direct_GCJ" != no
&&
17456 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17457 # have to relink, otherwise we might link with an installed library
17458 # when we should be linking with a yet-to-be-installed one
17459 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17460 test "$hardcode_minus_L_GCJ" != no
; then
17461 # Linking always hardcodes the temporary library directory.
17462 hardcode_action_GCJ
=relink
17464 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17465 hardcode_action_GCJ
=immediate
17468 # We cannot hardcode anything, or else we can only hardcode existing
17470 hardcode_action_GCJ
=unsupported
17472 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17473 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
17475 if test "$hardcode_action_GCJ" = relink
; then
17476 # Fast installation is not supported
17477 enable_fast_install
=no
17478 elif test "$shlibpath_overrides_runpath" = yes ||
17479 test "$enable_shared" = no
; then
17480 # Fast installation is not necessary
17481 enable_fast_install
=needless
17486 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17487 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
17488 if test -n "$STRIP" && $STRIP -V 2>&1 |
grep "GNU strip" >/dev
/null
; then
17489 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
17490 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
17491 { echo "$as_me:$LINENO: result: yes" >&5
17492 echo "${ECHO_T}yes" >&6; }
17494 # FIXME - insert some real tests, host_os isn't really good enough
17497 if test -n "$STRIP" ; then
17498 striplib
="$STRIP -x"
17499 { echo "$as_me:$LINENO: result: yes" >&5
17500 echo "${ECHO_T}yes" >&6; }
17502 { echo "$as_me:$LINENO: result: no" >&5
17503 echo "${ECHO_T}no" >&6; }
17507 { echo "$as_me:$LINENO: result: no" >&5
17508 echo "${ECHO_T}no" >&6; }
17513 if test "x$enable_dlopen" != xyes
; then
17514 enable_dlopen
=unknown
17515 enable_dlopen_self
=unknown
17516 enable_dlopen_self_static
=unknown
17523 lt_cv_dlopen
="load_add_on"
17525 lt_cv_dlopen_self
=yes
17529 lt_cv_dlopen
="LoadLibrary"
17534 lt_cv_dlopen
="dlopen"
17539 # if libdl is installed we need to link against it
17540 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17541 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
17542 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17543 echo $ECHO_N "(cached) $ECHO_C" >&6
17545 ac_check_lib_save_LIBS
=$LIBS
17547 cat >conftest.
$ac_ext <<_ACEOF
17550 cat confdefs.h
>>conftest.
$ac_ext
17551 cat >>conftest.
$ac_ext <<_ACEOF
17552 /* end confdefs.h. */
17554 /* Override any GCC internal prototype to avoid an error.
17555 Use char because int might match the return type of a GCC
17556 builtin and then its argument prototype would still apply. */
17569 rm -f conftest.
$ac_objext conftest
$ac_exeext
17570 if { (ac_try
="$ac_link"
17571 case "(($ac_try" in
17572 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17573 *) ac_try_echo=$ac_try;;
17575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17576 (eval "$ac_link") 2>conftest.er1
17578 grep -v '^ *+' conftest.er1 >conftest.err
17580 cat conftest.err >&5
17581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17582 (exit $ac_status); } && {
17583 test -z "$ac_c_werror_flag" ||
17584 test ! -s conftest.err
17585 } && test -s conftest$ac_exeext &&
17586 $as_test_x conftest$ac_exeext; then
17587 ac_cv_lib_dl_dlopen=yes
17589 echo "$as_me: failed program was:" >&5
17590 sed 's/^/| /' conftest.$ac_ext >&5
17592 ac_cv_lib_dl_dlopen=no
17595 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17596 conftest$ac_exeext conftest.$ac_ext
17597 LIBS=$ac_check_lib_save_LIBS
17599 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17600 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17601 if test $ac_cv_lib_dl_dlopen = yes; then
17602 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17605 lt_cv_dlopen="dyld"
17607 lt_cv_dlopen_self=yes
17614 { echo "$as_me:$LINENO: checking for shl_load" >&5
17615 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
17616 if test "${ac_cv_func_shl_load+set}" = set; then
17617 echo $ECHO_N "(cached) $ECHO_C" >&6
17619 cat >conftest.$ac_ext <<_ACEOF
17622 cat confdefs.h >>conftest.$ac_ext
17623 cat >>conftest.$ac_ext <<_ACEOF
17624 /* end confdefs.h. */
17625 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17626 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17627 #define shl_load innocuous_shl_load
17629 /* System header to define __stub macros and hopefully few prototypes,
17630 which can conflict with char shl_load (); below.
17631 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17632 <limits.h> exists even on freestanding compilers. */
17635 # include <limits.h>
17637 # include <assert.h>
17642 /* Override any GCC internal prototype to avoid an error.
17643 Use char because int might match the return type of a GCC
17644 builtin and then its argument prototype would still apply. */
17649 /* The GNU C library defines this for functions which it implements
17650 to always fail with ENOSYS. Some functions are actually named
17651 something starting with __ and the normal name is an alias. */
17652 #if defined __stub_shl_load || defined __stub___shl_load
17659 return shl_load ();
17664 rm -f conftest.$ac_objext conftest$ac_exeext
17665 if { (ac_try="$ac_link"
17666 case "(($ac_try" in
17667 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17668 *) ac_try_echo
=$ac_try;;
17670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17671 (eval "$ac_link") 2>conftest.er1
17673 grep -v '^ *+' conftest.er1
>conftest.err
17675 cat conftest.err
>&5
17676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17677 (exit $ac_status); } && {
17678 test -z "$ac_c_werror_flag" ||
17679 test ! -s conftest.err
17680 } && test -s conftest
$ac_exeext &&
17681 $as_test_x conftest
$ac_exeext; then
17682 ac_cv_func_shl_load
=yes
17684 echo "$as_me: failed program was:" >&5
17685 sed 's/^/| /' conftest.
$ac_ext >&5
17687 ac_cv_func_shl_load
=no
17690 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17691 conftest
$ac_exeext conftest.
$ac_ext
17693 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17694 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
17695 if test $ac_cv_func_shl_load = yes; then
17696 lt_cv_dlopen
="shl_load"
17698 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17699 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
17700 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17701 echo $ECHO_N "(cached) $ECHO_C" >&6
17703 ac_check_lib_save_LIBS
=$LIBS
17705 cat >conftest.
$ac_ext <<_ACEOF
17708 cat confdefs.h
>>conftest.
$ac_ext
17709 cat >>conftest.
$ac_ext <<_ACEOF
17710 /* end confdefs.h. */
17712 /* Override any GCC internal prototype to avoid an error.
17713 Use char because int might match the return type of a GCC
17714 builtin and then its argument prototype would still apply. */
17722 return shl_load ();
17727 rm -f conftest.
$ac_objext conftest
$ac_exeext
17728 if { (ac_try
="$ac_link"
17729 case "(($ac_try" in
17730 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17731 *) ac_try_echo=$ac_try;;
17733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17734 (eval "$ac_link") 2>conftest.er1
17736 grep -v '^ *+' conftest.er1 >conftest.err
17738 cat conftest.err >&5
17739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17740 (exit $ac_status); } && {
17741 test -z "$ac_c_werror_flag" ||
17742 test ! -s conftest.err
17743 } && test -s conftest$ac_exeext &&
17744 $as_test_x conftest$ac_exeext; then
17745 ac_cv_lib_dld_shl_load=yes
17747 echo "$as_me: failed program was:" >&5
17748 sed 's/^/| /' conftest.$ac_ext >&5
17750 ac_cv_lib_dld_shl_load=no
17753 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17754 conftest$ac_exeext conftest.$ac_ext
17755 LIBS=$ac_check_lib_save_LIBS
17757 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17758 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
17759 if test $ac_cv_lib_dld_shl_load = yes; then
17760 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17762 { echo "$as_me:$LINENO: checking for dlopen" >&5
17763 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
17764 if test "${ac_cv_func_dlopen+set}" = set; then
17765 echo $ECHO_N "(cached) $ECHO_C" >&6
17767 cat >conftest.$ac_ext <<_ACEOF
17770 cat confdefs.h >>conftest.$ac_ext
17771 cat >>conftest.$ac_ext <<_ACEOF
17772 /* end confdefs.h. */
17773 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17774 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17775 #define dlopen innocuous_dlopen
17777 /* System header to define __stub macros and hopefully few prototypes,
17778 which can conflict with char dlopen (); below.
17779 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17780 <limits.h> exists even on freestanding compilers. */
17783 # include <limits.h>
17785 # include <assert.h>
17790 /* Override any GCC internal prototype to avoid an error.
17791 Use char because int might match the return type of a GCC
17792 builtin and then its argument prototype would still apply. */
17797 /* The GNU C library defines this for functions which it implements
17798 to always fail with ENOSYS. Some functions are actually named
17799 something starting with __ and the normal name is an alias. */
17800 #if defined __stub_dlopen || defined __stub___dlopen
17812 rm -f conftest.$ac_objext conftest$ac_exeext
17813 if { (ac_try="$ac_link"
17814 case "(($ac_try" in
17815 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17816 *) ac_try_echo
=$ac_try;;
17818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17819 (eval "$ac_link") 2>conftest.er1
17821 grep -v '^ *+' conftest.er1
>conftest.err
17823 cat conftest.err
>&5
17824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17825 (exit $ac_status); } && {
17826 test -z "$ac_c_werror_flag" ||
17827 test ! -s conftest.err
17828 } && test -s conftest
$ac_exeext &&
17829 $as_test_x conftest
$ac_exeext; then
17830 ac_cv_func_dlopen
=yes
17832 echo "$as_me: failed program was:" >&5
17833 sed 's/^/| /' conftest.
$ac_ext >&5
17835 ac_cv_func_dlopen
=no
17838 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17839 conftest
$ac_exeext conftest.
$ac_ext
17841 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17842 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
17843 if test $ac_cv_func_dlopen = yes; then
17844 lt_cv_dlopen
="dlopen"
17846 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17847 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
17848 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17849 echo $ECHO_N "(cached) $ECHO_C" >&6
17851 ac_check_lib_save_LIBS
=$LIBS
17853 cat >conftest.
$ac_ext <<_ACEOF
17856 cat confdefs.h
>>conftest.
$ac_ext
17857 cat >>conftest.
$ac_ext <<_ACEOF
17858 /* end confdefs.h. */
17860 /* Override any GCC internal prototype to avoid an error.
17861 Use char because int might match the return type of a GCC
17862 builtin and then its argument prototype would still apply. */
17875 rm -f conftest.
$ac_objext conftest
$ac_exeext
17876 if { (ac_try
="$ac_link"
17877 case "(($ac_try" in
17878 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17879 *) ac_try_echo=$ac_try;;
17881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17882 (eval "$ac_link") 2>conftest.er1
17884 grep -v '^ *+' conftest.er1 >conftest.err
17886 cat conftest.err >&5
17887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17888 (exit $ac_status); } && {
17889 test -z "$ac_c_werror_flag" ||
17890 test ! -s conftest.err
17891 } && test -s conftest$ac_exeext &&
17892 $as_test_x conftest$ac_exeext; then
17893 ac_cv_lib_dl_dlopen=yes
17895 echo "$as_me: failed program was:" >&5
17896 sed 's/^/| /' conftest.$ac_ext >&5
17898 ac_cv_lib_dl_dlopen=no
17901 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17902 conftest$ac_exeext conftest.$ac_ext
17903 LIBS=$ac_check_lib_save_LIBS
17905 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17906 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17907 if test $ac_cv_lib_dl_dlopen = yes; then
17908 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17910 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17911 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
17912 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17913 echo $ECHO_N "(cached) $ECHO_C" >&6
17915 ac_check_lib_save_LIBS=$LIBS
17916 LIBS="-lsvld $LIBS"
17917 cat >conftest.$ac_ext <<_ACEOF
17920 cat confdefs.h >>conftest.$ac_ext
17921 cat >>conftest.$ac_ext <<_ACEOF
17922 /* end confdefs.h. */
17924 /* Override any GCC internal prototype to avoid an error.
17925 Use char because int might match the return type of a GCC
17926 builtin and then its argument prototype would still apply. */
17939 rm -f conftest.$ac_objext conftest$ac_exeext
17940 if { (ac_try="$ac_link"
17941 case "(($ac_try" in
17942 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17943 *) ac_try_echo
=$ac_try;;
17945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17946 (eval "$ac_link") 2>conftest.er1
17948 grep -v '^ *+' conftest.er1
>conftest.err
17950 cat conftest.err
>&5
17951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17952 (exit $ac_status); } && {
17953 test -z "$ac_c_werror_flag" ||
17954 test ! -s conftest.err
17955 } && test -s conftest
$ac_exeext &&
17956 $as_test_x conftest
$ac_exeext; then
17957 ac_cv_lib_svld_dlopen
=yes
17959 echo "$as_me: failed program was:" >&5
17960 sed 's/^/| /' conftest.
$ac_ext >&5
17962 ac_cv_lib_svld_dlopen
=no
17965 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17966 conftest
$ac_exeext conftest.
$ac_ext
17967 LIBS
=$ac_check_lib_save_LIBS
17969 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17970 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
17971 if test $ac_cv_lib_svld_dlopen = yes; then
17972 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
17974 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17975 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
17976 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17977 echo $ECHO_N "(cached) $ECHO_C" >&6
17979 ac_check_lib_save_LIBS
=$LIBS
17981 cat >conftest.
$ac_ext <<_ACEOF
17984 cat confdefs.h
>>conftest.
$ac_ext
17985 cat >>conftest.
$ac_ext <<_ACEOF
17986 /* end confdefs.h. */
17988 /* Override any GCC internal prototype to avoid an error.
17989 Use char because int might match the return type of a GCC
17990 builtin and then its argument prototype would still apply. */
17998 return dld_link ();
18003 rm -f conftest.
$ac_objext conftest
$ac_exeext
18004 if { (ac_try
="$ac_link"
18005 case "(($ac_try" in
18006 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18007 *) ac_try_echo=$ac_try;;
18009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18010 (eval "$ac_link") 2>conftest.er1
18012 grep -v '^ *+' conftest.er1 >conftest.err
18014 cat conftest.err >&5
18015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18016 (exit $ac_status); } && {
18017 test -z "$ac_c_werror_flag" ||
18018 test ! -s conftest.err
18019 } && test -s conftest$ac_exeext &&
18020 $as_test_x conftest$ac_exeext; then
18021 ac_cv_lib_dld_dld_link=yes
18023 echo "$as_me: failed program was:" >&5
18024 sed 's/^/| /' conftest.$ac_ext >&5
18026 ac_cv_lib_dld_dld_link=no
18029 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18030 conftest$ac_exeext conftest.$ac_ext
18031 LIBS=$ac_check_lib_save_LIBS
18033 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18034 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
18035 if test $ac_cv_lib_dld_dld_link = yes; then
18036 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18057 if test "x$lt_cv_dlopen" != xno; then
18063 case $lt_cv_dlopen in
18065 save_CPPFLAGS="$CPPFLAGS"
18066 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18068 save_LDFLAGS="$LDFLAGS"
18069 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18072 LIBS="$lt_cv_dlopen_libs $LIBS"
18074 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18075 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
18076 if test "${lt_cv_dlopen_self+set}" = set; then
18077 echo $ECHO_N "(cached) $ECHO_C" >&6
18079 if test "$cross_compiling" = yes; then :
18080 lt_cv_dlopen_self=cross
18082 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18083 lt_status=$lt_dlunknown
18084 cat > conftest.$ac_ext <<EOF
18085 #line 18085 "configure"
18086 #include "confdefs.h"
18095 # define LT_DLGLOBAL RTLD_GLOBAL
18098 # define LT_DLGLOBAL DL_GLOBAL
18100 # define LT_DLGLOBAL 0
18104 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18105 find out it does not work in some platform. */
18106 #ifndef LT_DLLAZY_OR_NOW
18108 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18111 # define LT_DLLAZY_OR_NOW DL_LAZY
18114 # define LT_DLLAZY_OR_NOW RTLD_NOW
18117 # define LT_DLLAZY_OR_NOW DL_NOW
18119 # define LT_DLLAZY_OR_NOW 0
18127 extern "C" void exit (int);
18130 void fnord() { int i=42;}
18133 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18134 int status = $lt_dlunknown;
18138 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18139 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18140 /* dlclose (self); */
18146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18147 (eval $ac_link) 2>&5
18149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18150 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18151 (./conftest; exit; ) 2>/dev/null
18153 case x$lt_status in
18154 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18155 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18156 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18159 # compilation failed
18160 lt_cv_dlopen_self=no
18167 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18168 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
18170 if test "x$lt_cv_dlopen_self" = xyes; then
18171 LDFLAGS="$LDFLAGS $link_static_flag"
18172 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18173 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
18174 if test "${lt_cv_dlopen_self_static+set}" = set; then
18175 echo $ECHO_N "(cached) $ECHO_C" >&6
18177 if test "$cross_compiling" = yes; then :
18178 lt_cv_dlopen_self_static=cross
18180 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18181 lt_status=$lt_dlunknown
18182 cat > conftest.$ac_ext <<EOF
18183 #line 18183 "configure"
18184 #include "confdefs.h"
18193 # define LT_DLGLOBAL RTLD_GLOBAL
18196 # define LT_DLGLOBAL DL_GLOBAL
18198 # define LT_DLGLOBAL 0
18202 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18203 find out it does not work in some platform. */
18204 #ifndef LT_DLLAZY_OR_NOW
18206 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18209 # define LT_DLLAZY_OR_NOW DL_LAZY
18212 # define LT_DLLAZY_OR_NOW RTLD_NOW
18215 # define LT_DLLAZY_OR_NOW DL_NOW
18217 # define LT_DLLAZY_OR_NOW 0
18225 extern "C" void exit (int);
18228 void fnord() { int i=42;}
18231 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18232 int status = $lt_dlunknown;
18236 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18237 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18238 /* dlclose (self); */
18244 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18245 (eval $ac_link) 2>&5
18247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18248 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18249 (./conftest; exit; ) 2>/dev/null
18251 case x$lt_status in
18252 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18253 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18254 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18257 # compilation failed
18258 lt_cv_dlopen_self_static=no
18265 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18266 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
18269 CPPFLAGS="$save_CPPFLAGS"
18270 LDFLAGS="$save_LDFLAGS"
18275 case $lt_cv_dlopen_self in
18276 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18277 *) enable_dlopen_self=unknown ;;
18280 case $lt_cv_dlopen_self_static in
18281 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18282 *) enable_dlopen_self_static=unknown ;;
18287 # The else clause should only fire when bootstrapping the
18288 # libtool distribution, otherwise you forgot to ship ltmain.sh
18289 # with your package, and you will get complaints that there are
18290 # no rules to generate ltmain.sh.
18291 if test -f "$ltmain"; then
18292 # See if we are running on zsh, and set the options which allow our commands through
18293 # without removal of \ escapes.
18294 if test -n "${ZSH_VERSION+set}" ; then
18295 setopt NO_GLOB_SUBST
18297 # Now quote all the things that may contain metacharacters while being
18298 # careful not to overquote the AC_SUBSTed values. We take copies of the
18299 # variables and quote the copies for generation of the libtool script.
18300 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
18301 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18302 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18303 deplibs_check_method reload_flag reload_cmds need_locks \
18304 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18305 lt_cv_sys_global_symbol_to_c_name_address \
18306 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18307 old_postinstall_cmds old_postuninstall_cmds \
18311 lt_prog_compiler_wl_GCJ \
18312 lt_prog_compiler_pic_GCJ \
18313 lt_prog_compiler_static_GCJ \
18314 lt_prog_compiler_no_builtin_flag_GCJ \
18315 export_dynamic_flag_spec_GCJ \
18316 thread_safe_flag_spec_GCJ \
18317 whole_archive_flag_spec_GCJ \
18318 enable_shared_with_static_runtimes_GCJ \
18319 old_archive_cmds_GCJ \
18320 old_archive_from_new_cmds_GCJ \
18321 predep_objects_GCJ \
18322 postdep_objects_GCJ \
18325 compiler_lib_search_path_GCJ \
18327 archive_expsym_cmds_GCJ \
18328 postinstall_cmds_GCJ \
18329 postuninstall_cmds_GCJ \
18330 old_archive_from_expsyms_cmds_GCJ \
18331 allow_undefined_flag_GCJ \
18332 no_undefined_flag_GCJ \
18333 export_symbols_cmds_GCJ \
18334 hardcode_libdir_flag_spec_GCJ \
18335 hardcode_libdir_flag_spec_ld_GCJ \
18336 hardcode_libdir_separator_GCJ \
18337 hardcode_automatic_GCJ \
18339 module_expsym_cmds_GCJ \
18340 lt_cv_prog_compiler_c_o_GCJ \
18341 exclude_expsyms_GCJ \
18342 include_expsyms_GCJ; do
18345 old_archive_cmds_GCJ | \
18346 old_archive_from_new_cmds_GCJ | \
18347 archive_cmds_GCJ | \
18348 archive_expsym_cmds_GCJ | \
18349 module_cmds_GCJ | \
18350 module_expsym_cmds_GCJ | \
18351 old_archive_from_expsyms_cmds_GCJ | \
18352 export_symbols_cmds_GCJ | \
18353 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18354 postinstall_cmds | postuninstall_cmds | \
18355 old_postinstall_cmds | old_postuninstall_cmds | \
18356 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18357 # Double-quote double-evaled strings.
18358 eval "lt_$var=\\\"\`\
$echo \"X\$
$var\" | \
$Xsed -e \"\
$double_quote_subst\" -e \"\
$sed_quote_subst\" -e \"\
$delay_variable_subst\"\
`\\\""
18361 eval "lt_$var=\\\"\`\
$echo \"X\$
$var\" | \
$Xsed -e \"\
$sed_quote_subst\"\
`\\\""
18367 *'\$0 --fallback-echo"')
18368 lt_echo=`$echo "X$lt_echo" |
$Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18374 cat <<__EOF__ >> "$cfgfile"
18375 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18377 # Libtool was configured on host `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`:
18379 # Shell to use when invoking shell scripts.
18382 # Whether or not to build shared libraries.
18383 build_libtool_libs=$enable_shared
18385 # Whether or not to build static libraries.
18386 build_old_libs=$enable_static
18388 # Whether or not to add -lc for building shared libraries.
18389 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18391 # Whether or not to disallow shared libs when runtime libs are static
18392 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18394 # Whether or not to optimize for fast installation.
18395 fast_install=$enable_fast_install
18398 host_alias=$host_alias
18401 # An echo program that does not interpret backslashes.
18406 AR_FLAGS=$lt_AR_FLAGS
18411 # A language-specific compiler.
18412 CC=$lt_compiler_GCJ
18414 # Is the compiler the GNU C compiler?
18420 # The linker used to build libraries.
18423 # Whether we need hard or soft links.
18426 # A BSD-compatible nm program.
18429 # A symbol stripping program
18432 # Used to examine libraries when file_magic_cmd begins "file"
18433 MAGIC_CMD=$MAGIC_CMD
18435 # Used on cygwin: DLL creation program.
18438 # Used on cygwin: object dumper.
18441 # Used on cygwin: assembler.
18444 # The name of the directory that contains temporary libtool files.
18447 # How to create reloadable object files.
18448 reload_flag=$lt_reload_flag
18449 reload_cmds=$lt_reload_cmds
18451 # How to pass a linker flag through the compiler.
18452 wl=$lt_lt_prog_compiler_wl_GCJ
18454 # Object file suffix (normally "o").
18455 objext="$ac_objext"
18457 # Old archive suffix (normally "a").
18460 # Shared library suffix (normally ".so").
18463 # Executable file suffix (normally "").
18466 # Additional compiler flags for building library objects.
18467 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18470 # What is the maximum length of a command?
18471 max_cmd_len=$lt_cv_sys_max_cmd_len
18473 # Does compiler simultaneously support -c and -o options?
18474 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18476 # Must we lock files when doing compilation ?
18477 need_locks=$lt_need_locks
18479 # Do we need the lib prefix for modules?
18480 need_lib_prefix=$need_lib_prefix
18482 # Do we need a version for libraries?
18483 need_version=$need_version
18485 # Whether dlopen is supported.
18486 dlopen_support=$enable_dlopen
18488 # Whether dlopen of programs is supported.
18489 dlopen_self=$enable_dlopen_self
18491 # Whether dlopen of statically linked programs is supported.
18492 dlopen_self_static=$enable_dlopen_self_static
18494 # Compiler flag to prevent dynamic linking.
18495 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18497 # Compiler flag to turn off builtin functions.
18498 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18500 # Compiler flag to allow reflexive dlopens.
18501 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18503 # Compiler flag to generate shared objects directly from archives.
18504 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18506 # Compiler flag to generate thread-safe objects.
18507 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18509 # Library versioning type.
18510 version_type=$version_type
18512 # Format of library name prefix.
18513 libname_spec=$lt_libname_spec
18515 # List of archive names. First name is the real one, the rest are links.
18516 # The last name is the one that the linker finds with -lNAME.
18517 library_names_spec=$lt_library_names_spec
18519 # The coded name of the library, if different from the real name.
18520 soname_spec=$lt_soname_spec
18522 # Commands used to build and install an old-style archive.
18524 old_archive_cmds=$lt_old_archive_cmds_GCJ
18525 old_postinstall_cmds=$lt_old_postinstall_cmds
18526 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18528 # Create an old-style archive from a shared archive.
18529 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18531 # Create a temporary old-style archive to link instead of a shared archive.
18532 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18534 # Commands used to build and install a shared archive.
18535 archive_cmds=$lt_archive_cmds_GCJ
18536 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18537 postinstall_cmds=$lt_postinstall_cmds
18538 postuninstall_cmds=$lt_postuninstall_cmds
18540 # Commands used to build a loadable module (assumed same as above if empty)
18541 module_cmds=$lt_module_cmds_GCJ
18542 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18544 # Commands to strip libraries.
18545 old_striplib=$lt_old_striplib
18546 striplib=$lt_striplib
18548 # Dependencies to place before the objects being linked to create a
18550 predep_objects=$lt_predep_objects_GCJ
18552 # Dependencies to place after the objects being linked to create a
18554 postdep_objects=$lt_postdep_objects_GCJ
18556 # Dependencies to place before the objects being linked to create a
18558 predeps=$lt_predeps_GCJ
18560 # Dependencies to place after the objects being linked to create a
18562 postdeps=$lt_postdeps_GCJ
18564 # The library search path used internally by the compiler when linking
18565 # a shared library.
18566 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18568 # Method to check whether dependent libraries are shared objects.
18569 deplibs_check_method=$lt_deplibs_check_method
18571 # Command to use when deplibs_check_method == file_magic.
18572 file_magic_cmd=$lt_file_magic_cmd
18574 # Flag that allows shared libraries with undefined symbols to be built.
18575 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18577 # Flag that forces no undefined symbols.
18578 no_undefined_flag=$lt_no_undefined_flag_GCJ
18580 # Commands used to finish a libtool library installation in a directory.
18581 finish_cmds=$lt_finish_cmds
18583 # Same as above, but a single script fragment to be evaled but not shown.
18584 finish_eval=$lt_finish_eval
18586 # Take the output of nm and produce a listing of raw symbols and C names.
18587 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18589 # Transform the output of nm in a proper C declaration
18590 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18592 # Transform the output of nm in a C name address pair
18593 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18595 # This is the shared library runtime path variable.
18596 runpath_var=$runpath_var
18598 # This is the shared library path variable.
18599 shlibpath_var=$shlibpath_var
18601 # Is shlibpath searched before the hard-coded library search path?
18602 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18604 # How to hardcode a shared library path into an executable.
18605 hardcode_action=$hardcode_action_GCJ
18607 # Whether we should hardcode library paths into libraries.
18608 hardcode_into_libs=$hardcode_into_libs
18610 # Flag to hardcode \$libdir into a binary during linking.
18611 # This must work even if \$libdir does not exist.
18612 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18614 # If ld is used when linking, flag to hardcode \$libdir into
18615 # a binary during linking. This must work even if \$libdir does
18617 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18619 # Whether we need a single -rpath flag with a separated argument.
18620 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18622 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18623 # resulting binary.
18624 hardcode_direct=$hardcode_direct_GCJ
18626 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18627 # resulting binary.
18628 hardcode_minus_L=$hardcode_minus_L_GCJ
18630 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18631 # the resulting binary.
18632 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18634 # Set to yes if building a shared library automatically hardcodes DIR into the library
18635 # and all subsequent libraries and executables linked against it.
18636 hardcode_automatic=$hardcode_automatic_GCJ
18638 # Variables whose values should be saved in libtool wrapper scripts and
18639 # restored at relink time.
18640 variables_saved_for_relink="$variables_saved_for_relink"
18642 # Whether libtool must link a program against all its dependency libraries.
18643 link_all_deplibs=$link_all_deplibs_GCJ
18645 # Compile-time system search path for libraries
18646 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18648 # Run-time system search path for libraries
18649 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18651 # Fix the shell variable \$srcfile for the compiler.
18652 fix_srcfile_path="$fix_srcfile_path_GCJ"
18654 # Set to yes if exported symbols are required.
18655 always_export_symbols=$always_export_symbols_GCJ
18657 # The commands to list exported symbols.
18658 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18660 # The commands to extract the exported symbol list from a shared archive.
18661 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18663 # Symbols that should not be listed in the preloaded symbols.
18664 exclude_expsyms=$lt_exclude_expsyms_GCJ
18666 # Symbols that must always be exported.
18667 include_expsyms=$lt_include_expsyms_GCJ
18669 # ### END LIBTOOL TAG CONFIG: $tagname
18675 # If there is no Makefile yet, we rely on a make rule to execute
18676 # `config.status
--recheck' to rerun these tests and create the
18677 # libtool script then.
18678 test -f Makefile && make "$ltmain"
18683 ac_cpp='$CPP $CPPFLAGS'
18684 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
18685 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
18686 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18698 # Source file extension for RC test sources.
18701 # Object file extension for compiled RC test sources.
18705 # Code to be used in simple compile tests
18706 lt_simple_compile_test_code='sample MENU
{ MENUITEM
"&Soup", 100, CHECKED
}\n'
18708 # Code to be used in simple link tests
18709 lt_simple_link_test_code="$lt_simple_compile_test_code"
18711 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18713 # If no C compiler was specified, use CC.
18716 # Allow CC to be a program name with arguments.
18720 # Allow CC to be a program name with arguments.
18725 lt_cv_prog_compiler_c_o_RC=yes
18727 # The else clause should only fire when bootstrapping the
18728 # libtool distribution, otherwise you forgot to ship ltmain.sh
18729 # with your package, and you will get complaints that there are
18730 # no rules to generate ltmain.sh.
18731 if test -f "$ltmain"; then
18732 # See if we are running on zsh, and set the options which allow our commands through
18733 # without removal of \ escapes.
18734 if test -n "${ZSH_VERSION+set}" ; then
18735 setopt NO_GLOB_SUBST
18737 # Now quote all the things that may contain metacharacters while being
18738 # careful not to overquote the AC_SUBSTed values. We take copies of the
18739 # variables and quote the copies for generation of the libtool script.
18740 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
18741 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18742 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18743 deplibs_check_method reload_flag reload_cmds need_locks \
18744 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18745 lt_cv_sys_global_symbol_to_c_name_address \
18746 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18747 old_postinstall_cmds old_postuninstall_cmds \
18751 lt_prog_compiler_wl_RC \
18752 lt_prog_compiler_pic_RC \
18753 lt_prog_compiler_static_RC \
18754 lt_prog_compiler_no_builtin_flag_RC \
18755 export_dynamic_flag_spec_RC \
18756 thread_safe_flag_spec_RC \
18757 whole_archive_flag_spec_RC \
18758 enable_shared_with_static_runtimes_RC \
18759 old_archive_cmds_RC \
18760 old_archive_from_new_cmds_RC \
18761 predep_objects_RC \
18762 postdep_objects_RC \
18765 compiler_lib_search_path_RC \
18767 archive_expsym_cmds_RC \
18768 postinstall_cmds_RC \
18769 postuninstall_cmds_RC \
18770 old_archive_from_expsyms_cmds_RC \
18771 allow_undefined_flag_RC \
18772 no_undefined_flag_RC \
18773 export_symbols_cmds_RC \
18774 hardcode_libdir_flag_spec_RC \
18775 hardcode_libdir_flag_spec_ld_RC \
18776 hardcode_libdir_separator_RC \
18777 hardcode_automatic_RC \
18779 module_expsym_cmds_RC \
18780 lt_cv_prog_compiler_c_o_RC \
18781 exclude_expsyms_RC \
18782 include_expsyms_RC; do
18785 old_archive_cmds_RC | \
18786 old_archive_from_new_cmds_RC | \
18787 archive_cmds_RC | \
18788 archive_expsym_cmds_RC | \
18790 module_expsym_cmds_RC | \
18791 old_archive_from_expsyms_cmds_RC | \
18792 export_symbols_cmds_RC | \
18793 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18794 postinstall_cmds | postuninstall_cmds | \
18795 old_postinstall_cmds | old_postuninstall_cmds | \
18796 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18797 # Double-quote double-evaled strings.
18798 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18801 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18807 *'\
$0 --fallback-echo"')
18808 lt_echo=`$echo "X
$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$
/$0 --fallback-echo"/'`
18814 cat <<__EOF__ >> "$cfgfile"
18815 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18817 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18819 # Shell to use when invoking shell scripts.
18822 # Whether or not to build shared libraries.
18823 build_libtool_libs=$enable_shared
18825 # Whether or not to build static libraries.
18826 build_old_libs=$enable_static
18828 # Whether or not to add -lc for building shared libraries.
18829 build_libtool_need_lc=$archive_cmds_need_lc_RC
18831 # Whether or not to disallow shared libs when runtime libs are static
18832 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18834 # Whether or not to optimize for fast installation.
18835 fast_install=$enable_fast_install
18838 host_alias=$host_alias
18841 # An echo program that does not interpret backslashes.
18846 AR_FLAGS=$lt_AR_FLAGS
18851 # A language-specific compiler.
18854 # Is the compiler the GNU C compiler?
18860 # The linker used to build libraries.
18863 # Whether we need hard or soft links.
18866 # A BSD-compatible nm program.
18869 # A symbol stripping program
18872 # Used to examine libraries when file_magic_cmd begins "file"
18873 MAGIC_CMD=$MAGIC_CMD
18875 # Used on cygwin: DLL creation program.
18878 # Used on cygwin: object dumper.
18881 # Used on cygwin: assembler.
18884 # The name of the directory that contains temporary libtool files.
18887 # How to create reloadable object files.
18888 reload_flag=$lt_reload_flag
18889 reload_cmds=$lt_reload_cmds
18891 # How to pass a linker flag through the compiler.
18892 wl=$lt_lt_prog_compiler_wl_RC
18894 # Object file suffix (normally "o
").
18895 objext="$ac_objext"
18897 # Old archive suffix (normally "a
").
18900 # Shared library suffix (normally ".so
").
18903 # Executable file suffix (normally "").
18906 # Additional compiler flags for building library objects.
18907 pic_flag=$lt_lt_prog_compiler_pic_RC
18910 # What is the maximum length of a command?
18911 max_cmd_len=$lt_cv_sys_max_cmd_len
18913 # Does compiler simultaneously support -c and -o options?
18914 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18916 # Must we lock files when doing compilation ?
18917 need_locks=$lt_need_locks
18919 # Do we need the lib prefix for modules?
18920 need_lib_prefix=$need_lib_prefix
18922 # Do we need a version for libraries?
18923 need_version=$need_version
18925 # Whether dlopen is supported.
18926 dlopen_support=$enable_dlopen
18928 # Whether dlopen of programs is supported.
18929 dlopen_self=$enable_dlopen_self
18931 # Whether dlopen of statically linked programs is supported.
18932 dlopen_self_static=$enable_dlopen_self_static
18934 # Compiler flag to prevent dynamic linking.
18935 link_static_flag=$lt_lt_prog_compiler_static_RC
18937 # Compiler flag to turn off builtin functions.
18938 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18940 # Compiler flag to allow reflexive dlopens.
18941 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18943 # Compiler flag to generate shared objects directly from archives.
18944 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18946 # Compiler flag to generate thread-safe objects.
18947 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18949 # Library versioning type.
18950 version_type=$version_type
18952 # Format of library name prefix.
18953 libname_spec=$lt_libname_spec
18955 # List of archive names. First name is the real one, the rest are links.
18956 # The last name is the one that the linker finds with -lNAME.
18957 library_names_spec=$lt_library_names_spec
18959 # The coded name of the library, if different from the real name.
18960 soname_spec=$lt_soname_spec
18962 # Commands used to build and install an old-style archive.
18964 old_archive_cmds=$lt_old_archive_cmds_RC
18965 old_postinstall_cmds=$lt_old_postinstall_cmds
18966 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18968 # Create an old-style archive from a shared archive.
18969 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18971 # Create a temporary old-style archive to link instead of a shared archive.
18972 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18974 # Commands used to build and install a shared archive.
18975 archive_cmds=$lt_archive_cmds_RC
18976 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18977 postinstall_cmds=$lt_postinstall_cmds
18978 postuninstall_cmds=$lt_postuninstall_cmds
18980 # Commands used to build a loadable module (assumed same as above if empty)
18981 module_cmds=$lt_module_cmds_RC
18982 module_expsym_cmds=$lt_module_expsym_cmds_RC
18984 # Commands to strip libraries.
18985 old_striplib=$lt_old_striplib
18986 striplib=$lt_striplib
18988 # Dependencies to place before the objects being linked to create a
18990 predep_objects=$lt_predep_objects_RC
18992 # Dependencies to place after the objects being linked to create a
18994 postdep_objects=$lt_postdep_objects_RC
18996 # Dependencies to place before the objects being linked to create a
18998 predeps=$lt_predeps_RC
19000 # Dependencies to place after the objects being linked to create a
19002 postdeps=$lt_postdeps_RC
19004 # The library search path used internally by the compiler when linking
19005 # a shared library.
19006 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19008 # Method to check whether dependent libraries are shared objects.
19009 deplibs_check_method=$lt_deplibs_check_method
19011 # Command to use when deplibs_check_method == file_magic.
19012 file_magic_cmd=$lt_file_magic_cmd
19014 # Flag that allows shared libraries with undefined symbols to be built.
19015 allow_undefined_flag=$lt_allow_undefined_flag_RC
19017 # Flag that forces no undefined symbols.
19018 no_undefined_flag=$lt_no_undefined_flag_RC
19020 # Commands used to finish a libtool library installation in a directory.
19021 finish_cmds=$lt_finish_cmds
19023 # Same as above, but a single script fragment to be evaled but not shown.
19024 finish_eval=$lt_finish_eval
19026 # Take the output of nm and produce a listing of raw symbols and C names.
19027 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19029 # Transform the output of nm in a proper C declaration
19030 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19032 # Transform the output of nm in a C name address pair
19033 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19035 # This is the shared library runtime path variable.
19036 runpath_var=$runpath_var
19038 # This is the shared library path variable.
19039 shlibpath_var=$shlibpath_var
19041 # Is shlibpath searched before the hard-coded library search path?
19042 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19044 # How to hardcode a shared library path into an executable.
19045 hardcode_action=$hardcode_action_RC
19047 # Whether we should hardcode library paths into libraries.
19048 hardcode_into_libs=$hardcode_into_libs
19050 # Flag to hardcode \$libdir into a binary during linking.
19051 # This must work even if \$libdir does not exist.
19052 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19054 # If ld is used when linking, flag to hardcode \$libdir into
19055 # a binary during linking. This must work even if \$libdir does
19057 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19059 # Whether we need a single -rpath flag with a separated argument.
19060 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19062 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19063 # resulting binary.
19064 hardcode_direct=$hardcode_direct_RC
19066 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19067 # resulting binary.
19068 hardcode_minus_L=$hardcode_minus_L_RC
19070 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19071 # the resulting binary.
19072 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19074 # Set to yes if building a shared library automatically hardcodes DIR into the library
19075 # and all subsequent libraries and executables linked against it.
19076 hardcode_automatic=$hardcode_automatic_RC
19078 # Variables whose values should be saved in libtool wrapper scripts and
19079 # restored at relink time.
19080 variables_saved_for_relink="$variables_saved_for_relink"
19082 # Whether libtool must link a program against all its dependency libraries.
19083 link_all_deplibs=$link_all_deplibs_RC
19085 # Compile-time system search path for libraries
19086 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19088 # Run-time system search path for libraries
19089 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19091 # Fix the shell variable \$srcfile for the compiler.
19092 fix_srcfile_path="$fix_srcfile_path_RC"
19094 # Set to yes if exported symbols are required.
19095 always_export_symbols=$always_export_symbols_RC
19097 # The commands to list exported symbols.
19098 export_symbols_cmds=$lt_export_symbols_cmds_RC
19100 # The commands to extract the exported symbol list from a shared archive.
19101 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19103 # Symbols that should not be listed in the preloaded symbols.
19104 exclude_expsyms=$lt_exclude_expsyms_RC
19106 # Symbols that must always be exported.
19107 include_expsyms=$lt_include_expsyms_RC
19109 # ### END LIBTOOL TAG CONFIG: $tagname
19115 # If there is no Makefile yet, we rely on a make rule to execute
19116 # `config.status --recheck' to rerun these tests and create the
19117 # libtool script then.
19118 test -f Makefile && make "$ltmain"
19123 ac_cpp='$CPP $CPPFLAGS'
19124 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19125 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19126 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19133 { { echo "$as_me:$LINENO: error
: Unsupported tag name
: $tagname" >&5
19134 echo "$as_me: error
: Unsupported tag name
: $tagname" >&2;}
19135 { (exit 1); exit 1; }; }
19139 # Append the new tag name to the list of available tags.
19140 if test -n "$tagname" ; then
19141 available_tags="$available_tags $tagname"
19147 # Now substitute the updated list of available tags.
19148 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T
\""; then
19149 mv "${ofile}T
" "$ofile"
19153 { { echo "$as_me:$LINENO: error
: unable to update list of available tagged configurations.
" >&5
19154 echo "$as_me: error
: unable to update list of available tagged configurations.
" >&2;}
19155 { (exit 1); exit 1; }; }
19161 # This can be used to rebuild libtool when needed
19162 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh
"
19164 # Always use our own libtool.
19165 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19167 # Prevent multiple expansion
19188 { echo "$as_me:$LINENO: checking
for an ANSI C-conforming const
" >&5
19189 echo $ECHO_N "checking
for an ANSI C-conforming const...
$ECHO_C" >&6; }
19190 if test "${ac_cv_c_const+set}" = set; then
19191 echo $ECHO_N "(cached
) $ECHO_C" >&6
19193 cat >conftest.$ac_ext <<_ACEOF
19196 cat confdefs.h >>conftest.$ac_ext
19197 cat >>conftest.$ac_ext <<_ACEOF
19198 /* end confdefs.h. */
19203 /* FIXME: Include the comments suggested by Paul. */
19204 #ifndef __cplusplus
19205 /* Ultrix mips cc rejects this. */
19206 typedef int charset[2];
19208 /* SunOS 4.1.1 cc rejects this. */
19209 char const *const *pcpcc;
19211 /* NEC SVR4.0.2 mips cc rejects this. */
19212 struct point {int x, y;};
19213 static struct point const zero = {0,0};
19214 /* AIX XL C 1.02.0.0 rejects this.
19215 It does not let you subtract one const X* pointer from another in
19216 an arm of an if-expression whose if-part is not a constant
19218 const char *g = "string
";
19219 pcpcc = &g + (g ? g-g : 0);
19220 /* HPUX 7.0 cc rejects these. */
19222 ppc = (char**) pcpcc;
19223 pcpcc = (char const *const *) ppc;
19224 { /* SCO 3.2v4 cc rejects this. */
19226 char const *s = 0 ? (char *) 0 : (char const *) 0;
19231 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
19232 int x[] = {25, 17};
19233 const int *foo = &x[0];
19236 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19237 typedef const int *iptr;
19241 { /* AIX XL C 1.02.0.0 rejects this saying
19242 "k.c
", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19243 struct s { int j; const int *ap[3]; };
19244 struct s *b; b->j = 5;
19246 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19247 const int foo = 10;
19248 if (!foo) return 0;
19250 return !cs[0] && !zero.x;
19257 rm -f conftest.$ac_objext
19258 if { (ac_try="$ac_compile"
19259 case "(($ac_try" in
19260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19261 *) ac_try_echo=$ac_try;;
19263 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19264 (eval "$ac_compile") 2>conftest.er1
19266 grep -v '^ *+' conftest.er1 >conftest.err
19268 cat conftest.err >&5
19269 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19270 (exit $ac_status); } && {
19271 test -z "$ac_c_werror_flag" ||
19272 test ! -s conftest.err
19273 } && test -s conftest.$ac_objext; then
19276 echo "$as_me: failed program was
:" >&5
19277 sed 's/^/| /' conftest.$ac_ext >&5
19282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19284 { echo "$as_me:$LINENO: result
: $ac_cv_c_const" >&5
19285 echo "${ECHO_T}$ac_cv_c_const" >&6; }
19286 if test $ac_cv_c_const = no; then
19288 cat >>confdefs.h <<\_ACEOF
19299 ac_header_dirent=no
19300 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
19301 as_ac_Header=`echo "ac_cv_header_dirent_
$ac_hdr" | $as_tr_sh`
19302 { echo "$as_me:$LINENO: checking
for $ac_hdr that defines DIR
" >&5
19303 echo $ECHO_N "checking
for $ac_hdr that defines DIR...
$ECHO_C" >&6; }
19304 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19305 echo $ECHO_N "(cached
) $ECHO_C" >&6
19307 cat >conftest.$ac_ext <<_ACEOF
19310 cat confdefs.h >>conftest.$ac_ext
19311 cat >>conftest.$ac_ext <<_ACEOF
19312 /* end confdefs.h. */
19313 #include <sys/types.h>
19325 rm -f conftest.$ac_objext
19326 if { (ac_try="$ac_compile"
19327 case "(($ac_try" in
19328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19329 *) ac_try_echo=$ac_try;;
19331 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19332 (eval "$ac_compile") 2>conftest.er1
19334 grep -v '^ *+' conftest.er1 >conftest.err
19336 cat conftest.err >&5
19337 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19338 (exit $ac_status); } && {
19339 test -z "$ac_c_werror_flag" ||
19340 test ! -s conftest.err
19341 } && test -s conftest.$ac_objext; then
19342 eval "$as_ac_Header=yes"
19344 echo "$as_me: failed program was
:" >&5
19345 sed 's/^/| /' conftest.$ac_ext >&5
19347 eval "$as_ac_Header=no
"
19350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19352 ac_res=`eval echo '${'$as_ac_Header'}'`
19353 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19354 echo "${ECHO_T}$ac_res" >&6; }
19355 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19356 cat >>confdefs.h <<_ACEOF
19357 #define `echo "HAVE_
$ac_hdr" | $as_tr_cpp` 1
19360 ac_header_dirent=$ac_hdr; break
19364 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
19365 if test $ac_header_dirent = dirent.h; then
19366 { echo "$as_me:$LINENO: checking
for library containing opendir
" >&5
19367 echo $ECHO_N "checking
for library containing opendir...
$ECHO_C" >&6; }
19368 if test "${ac_cv_search_opendir+set}" = set; then
19369 echo $ECHO_N "(cached
) $ECHO_C" >&6
19371 ac_func_search_save_LIBS=$LIBS
19372 cat >conftest.$ac_ext <<_ACEOF
19375 cat confdefs.h >>conftest.$ac_ext
19376 cat >>conftest.$ac_ext <<_ACEOF
19377 /* end confdefs.h. */
19379 /* Override any GCC internal prototype to avoid an error.
19380 Use char because int might match the return type of a GCC
19381 builtin and then its argument prototype would still apply. */
19394 for ac_lib in '' dir; do
19395 if test -z "$ac_lib"; then
19396 ac_res="none required
"
19399 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19401 rm -f conftest.$ac_objext conftest$ac_exeext
19402 if { (ac_try="$ac_link"
19403 case "(($ac_try" in
19404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19405 *) ac_try_echo=$ac_try;;
19407 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19408 (eval "$ac_link") 2>conftest.er1
19410 grep -v '^ *+' conftest.er1 >conftest.err
19412 cat conftest.err >&5
19413 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19414 (exit $ac_status); } && {
19415 test -z "$ac_c_werror_flag" ||
19416 test ! -s conftest.err
19417 } && test -s conftest$ac_exeext &&
19418 $as_test_x conftest$ac_exeext; then
19419 ac_cv_search_opendir=$ac_res
19421 echo "$as_me: failed program was
:" >&5
19422 sed 's/^/| /' conftest.$ac_ext >&5
19427 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19429 if test "${ac_cv_search_opendir+set}" = set; then
19433 if test "${ac_cv_search_opendir+set}" = set; then
19436 ac_cv_search_opendir=no
19438 rm conftest.$ac_ext
19439 LIBS=$ac_func_search_save_LIBS
19441 { echo "$as_me:$LINENO: result
: $ac_cv_search_opendir" >&5
19442 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
19443 ac_res=$ac_cv_search_opendir
19444 if test "$ac_res" != no; then
19445 test "$ac_res" = "none required
" || LIBS="$ac_res $LIBS"
19450 { echo "$as_me:$LINENO: checking
for library containing opendir
" >&5
19451 echo $ECHO_N "checking
for library containing opendir...
$ECHO_C" >&6; }
19452 if test "${ac_cv_search_opendir+set}" = set; then
19453 echo $ECHO_N "(cached
) $ECHO_C" >&6
19455 ac_func_search_save_LIBS=$LIBS
19456 cat >conftest.$ac_ext <<_ACEOF
19459 cat confdefs.h >>conftest.$ac_ext
19460 cat >>conftest.$ac_ext <<_ACEOF
19461 /* end confdefs.h. */
19463 /* Override any GCC internal prototype to avoid an error.
19464 Use char because int might match the return type of a GCC
19465 builtin and then its argument prototype would still apply. */
19478 for ac_lib in '' x; do
19479 if test -z "$ac_lib"; then
19480 ac_res="none required
"
19483 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19485 rm -f conftest.$ac_objext conftest$ac_exeext
19486 if { (ac_try="$ac_link"
19487 case "(($ac_try" in
19488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19489 *) ac_try_echo=$ac_try;;
19491 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19492 (eval "$ac_link") 2>conftest.er1
19494 grep -v '^ *+' conftest.er1 >conftest.err
19496 cat conftest.err >&5
19497 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19498 (exit $ac_status); } && {
19499 test -z "$ac_c_werror_flag" ||
19500 test ! -s conftest.err
19501 } && test -s conftest$ac_exeext &&
19502 $as_test_x conftest$ac_exeext; then
19503 ac_cv_search_opendir=$ac_res
19505 echo "$as_me: failed program was
:" >&5
19506 sed 's/^/| /' conftest.$ac_ext >&5
19511 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19513 if test "${ac_cv_search_opendir+set}" = set; then
19517 if test "${ac_cv_search_opendir+set}" = set; then
19520 ac_cv_search_opendir=no
19522 rm conftest.$ac_ext
19523 LIBS=$ac_func_search_save_LIBS
19525 { echo "$as_me:$LINENO: result
: $ac_cv_search_opendir" >&5
19526 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
19527 ac_res=$ac_cv_search_opendir
19528 if test "$ac_res" != no; then
19529 test "$ac_res" = "none required
" || LIBS="$ac_res $LIBS"
19535 # Check whether --enable-ltdl-install was given.
19536 if test "${enable_ltdl_install+set}" = set; then
19537 enableval=$enable_ltdl_install;
19541 if test x"${enable_ltdl_install-no}" != xno; then
19542 cat >>confdefs.h <<\_ACEOF
19543 #define INSTALL_LTDL 1
19547 if test x"${enable_ltdl_convenience-no}" != xno; then
19548 cat >>confdefs.h <<\_ACEOF
19549 #define CONVENIENCE_LTDL 1
19555 { echo "$as_me:$LINENO: checking
which extension is used
for loadable modules
" >&5
19556 echo $ECHO_N "checking
which extension is used
for loadable modules...
$ECHO_C" >&6; }
19557 if test "${libltdl_cv_shlibext+set}" = set; then
19558 echo $ECHO_N "(cached
) $ECHO_C" >&6
19562 eval libltdl_cv_shlibext=$shrext
19565 { echo "$as_me:$LINENO: result
: $libltdl_cv_shlibext" >&5
19566 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
19567 if test -n "$libltdl_cv_shlibext"; then
19569 cat >>confdefs.h <<_ACEOF
19570 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
19576 { echo "$as_me:$LINENO: checking
which variable specifies run-time library path
" >&5
19577 echo $ECHO_N "checking
which variable specifies run-time library path...
$ECHO_C" >&6; }
19578 if test "${libltdl_cv_shlibpath_var+set}" = set; then
19579 echo $ECHO_N "(cached
) $ECHO_C" >&6
19581 libltdl_cv_shlibpath_var="$shlibpath_var"
19583 { echo "$as_me:$LINENO: result
: $libltdl_cv_shlibpath_var" >&5
19584 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
19585 if test -n "$libltdl_cv_shlibpath_var"; then
19587 cat >>confdefs.h <<_ACEOF
19588 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
19594 { echo "$as_me:$LINENO: checking
for the default library search path
" >&5
19595 echo $ECHO_N "checking
for the default library search path...
$ECHO_C" >&6; }
19596 if test "${libltdl_cv_sys_search_path+set}" = set; then
19597 echo $ECHO_N "(cached
) $ECHO_C" >&6
19599 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
19601 { echo "$as_me:$LINENO: result
: $libltdl_cv_sys_search_path" >&5
19602 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
19603 if test -n "$libltdl_cv_sys_search_path"; then
19605 for dir in $libltdl_cv_sys_search_path; do
19606 if test -z "$sys_search_path"; then
19607 sys_search_path="$dir"
19609 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
19613 cat >>confdefs.h <<_ACEOF
19614 #define LTDL_SYSSEARCHPATH "$sys_search_path"
19619 { echo "$as_me:$LINENO: checking
for objdir
" >&5
19620 echo $ECHO_N "checking
for objdir...
$ECHO_C" >&6; }
19621 if test "${libltdl_cv_objdir+set}" = set; then
19622 echo $ECHO_N "(cached
) $ECHO_C" >&6
19624 libltdl_cv_objdir="$objdir"
19625 if test -n "$objdir"; then
19628 rm -f .libs 2>/dev/null
19629 mkdir .libs 2>/dev/null
19630 if test -d .libs; then
19631 libltdl_cv_objdir=.libs
19633 # MS-DOS does not allow filenames that begin with a dot.
19634 libltdl_cv_objdir=_libs
19636 rmdir .libs 2>/dev/null
19640 { echo "$as_me:$LINENO: result
: $libltdl_cv_objdir" >&5
19641 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
19643 cat >>confdefs.h <<_ACEOF
19644 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
19649 { echo "$as_me:$LINENO: checking whether libtool supports
-dlopen/-dlpreopen" >&5
19650 echo $ECHO_N "checking whether libtool supports
-dlopen/-dlpreopen...
$ECHO_C" >&6; }
19651 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
19652 echo $ECHO_N "(cached
) $ECHO_C" >&6
19654 if test -n "$lt_cv_sys_global_symbol_pipe"; then
19655 libltdl_cv_preloaded_symbols=yes
19657 libltdl_cv_preloaded_symbols=no
19661 { echo "$as_me:$LINENO: result
: $libltdl_cv_preloaded_symbols" >&5
19662 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
19663 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
19665 cat >>confdefs.h <<\_ACEOF
19666 #define HAVE_PRELOADED_SYMBOLS 1
19674 ac_cpp='$CPP $CPPFLAGS'
19675 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19676 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19677 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19680 { echo "$as_me:$LINENO: checking
for shl_load
" >&5
19681 echo $ECHO_N "checking
for shl_load...
$ECHO_C" >&6; }
19682 if test "${ac_cv_func_shl_load+set}" = set; then
19683 echo $ECHO_N "(cached
) $ECHO_C" >&6
19685 cat >conftest.$ac_ext <<_ACEOF
19688 cat confdefs.h >>conftest.$ac_ext
19689 cat >>conftest.$ac_ext <<_ACEOF
19690 /* end confdefs.h. */
19691 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
19692 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19693 #define shl_load innocuous_shl_load
19695 /* System header to define __stub macros and hopefully few prototypes,
19696 which can conflict with char shl_load (); below.
19697 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19698 <limits.h> exists even on freestanding compilers. */
19701 # include <limits.h>
19703 # include <assert.h>
19708 /* Override any GCC internal prototype to avoid an error.
19709 Use char because int might match the return type of a GCC
19710 builtin and then its argument prototype would still apply. */
19715 /* The GNU C library defines this for functions which it implements
19716 to always fail with ENOSYS. Some functions are actually named
19717 something starting with __ and the normal name is an alias. */
19718 #if defined __stub_shl_load || defined __stub___shl_load
19725 return shl_load ();
19730 rm -f conftest.$ac_objext conftest$ac_exeext
19731 if { (ac_try="$ac_link"
19732 case "(($ac_try" in
19733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19734 *) ac_try_echo=$ac_try;;
19736 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19737 (eval "$ac_link") 2>conftest.er1
19739 grep -v '^ *+' conftest.er1 >conftest.err
19741 cat conftest.err >&5
19742 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19743 (exit $ac_status); } && {
19744 test -z "$ac_c_werror_flag" ||
19745 test ! -s conftest.err
19746 } && test -s conftest$ac_exeext &&
19747 $as_test_x conftest$ac_exeext; then
19748 ac_cv_func_shl_load=yes
19750 echo "$as_me: failed program was
:" >&5
19751 sed 's/^/| /' conftest.$ac_ext >&5
19753 ac_cv_func_shl_load=no
19756 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19757 conftest$ac_exeext conftest.$ac_ext
19759 { echo "$as_me:$LINENO: result
: $ac_cv_func_shl_load" >&5
19760 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
19761 if test $ac_cv_func_shl_load = yes; then
19763 cat >>confdefs.h <<\_ACEOF
19764 #define HAVE_SHL_LOAD 1
19768 { echo "$as_me:$LINENO: checking
for shl_load
in -ldld" >&5
19769 echo $ECHO_N "checking
for shl_load
in -ldld...
$ECHO_C" >&6; }
19770 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
19771 echo $ECHO_N "(cached
) $ECHO_C" >&6
19773 ac_check_lib_save_LIBS=$LIBS
19775 cat >conftest.$ac_ext <<_ACEOF
19778 cat confdefs.h >>conftest.$ac_ext
19779 cat >>conftest.$ac_ext <<_ACEOF
19780 /* end confdefs.h. */
19782 /* Override any GCC internal prototype to avoid an error.
19783 Use char because int might match the return type of a GCC
19784 builtin and then its argument prototype would still apply. */
19792 return shl_load ();
19797 rm -f conftest.$ac_objext conftest$ac_exeext
19798 if { (ac_try="$ac_link"
19799 case "(($ac_try" in
19800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19801 *) ac_try_echo=$ac_try;;
19803 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19804 (eval "$ac_link") 2>conftest.er1
19806 grep -v '^ *+' conftest.er1 >conftest.err
19808 cat conftest.err >&5
19809 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19810 (exit $ac_status); } && {
19811 test -z "$ac_c_werror_flag" ||
19812 test ! -s conftest.err
19813 } && test -s conftest$ac_exeext &&
19814 $as_test_x conftest$ac_exeext; then
19815 ac_cv_lib_dld_shl_load=yes
19817 echo "$as_me: failed program was
:" >&5
19818 sed 's/^/| /' conftest.$ac_ext >&5
19820 ac_cv_lib_dld_shl_load=no
19823 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19824 conftest$ac_exeext conftest.$ac_ext
19825 LIBS=$ac_check_lib_save_LIBS
19827 { echo "$as_me:$LINENO: result
: $ac_cv_lib_dld_shl_load" >&5
19828 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
19829 if test $ac_cv_lib_dld_shl_load = yes; then
19831 cat >>confdefs.h <<\_ACEOF
19832 #define HAVE_SHL_LOAD 1
19835 LIBADD_DL="$LIBADD_DL -ldld"
19837 { echo "$as_me:$LINENO: checking
for dlopen
in -ldl" >&5
19838 echo $ECHO_N "checking
for dlopen
in -ldl...
$ECHO_C" >&6; }
19839 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19840 echo $ECHO_N "(cached
) $ECHO_C" >&6
19842 ac_check_lib_save_LIBS=$LIBS
19844 cat >conftest.$ac_ext <<_ACEOF
19847 cat confdefs.h >>conftest.$ac_ext
19848 cat >>conftest.$ac_ext <<_ACEOF
19849 /* end confdefs.h. */
19851 /* Override any GCC internal prototype to avoid an error.
19852 Use char because int might match the return type of a GCC
19853 builtin and then its argument prototype would still apply. */
19866 rm -f conftest.$ac_objext conftest$ac_exeext
19867 if { (ac_try="$ac_link"
19868 case "(($ac_try" in
19869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19870 *) ac_try_echo=$ac_try;;
19872 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19873 (eval "$ac_link") 2>conftest.er1
19875 grep -v '^ *+' conftest.er1 >conftest.err
19877 cat conftest.err >&5
19878 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19879 (exit $ac_status); } && {
19880 test -z "$ac_c_werror_flag" ||
19881 test ! -s conftest.err
19882 } && test -s conftest$ac_exeext &&
19883 $as_test_x conftest$ac_exeext; then
19884 ac_cv_lib_dl_dlopen=yes
19886 echo "$as_me: failed program was
:" >&5
19887 sed 's/^/| /' conftest.$ac_ext >&5
19889 ac_cv_lib_dl_dlopen=no
19892 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19893 conftest$ac_exeext conftest.$ac_ext
19894 LIBS=$ac_check_lib_save_LIBS
19896 { echo "$as_me:$LINENO: result
: $ac_cv_lib_dl_dlopen" >&5
19897 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
19898 if test $ac_cv_lib_dl_dlopen = yes; then
19900 cat >>confdefs.h <<\_ACEOF
19901 #define HAVE_LIBDL 1
19904 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
19906 cat >conftest.$ac_ext <<_ACEOF
19909 cat confdefs.h >>conftest.$ac_ext
19910 cat >>conftest.$ac_ext <<_ACEOF
19911 /* end confdefs.h. */
19913 # include <dlfcn.h>
19924 rm -f conftest.$ac_objext conftest$ac_exeext
19925 if { (ac_try="$ac_link"
19926 case "(($ac_try" in
19927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19928 *) ac_try_echo=$ac_try;;
19930 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19931 (eval "$ac_link") 2>conftest.er1
19933 grep -v '^ *+' conftest.er1 >conftest.err
19935 cat conftest.err >&5
19936 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19937 (exit $ac_status); } && {
19938 test -z "$ac_c_werror_flag" ||
19939 test ! -s conftest.err
19940 } && test -s conftest$ac_exeext &&
19941 $as_test_x conftest$ac_exeext; then
19943 cat >>confdefs.h <<\_ACEOF
19944 #define HAVE_LIBDL 1
19946 libltdl_cv_func_dlopen="yes"
19948 echo "$as_me: failed program was
:" >&5
19949 sed 's/^/| /' conftest.$ac_ext >&5
19951 { echo "$as_me:$LINENO: checking
for dlopen
in -lsvld" >&5
19952 echo $ECHO_N "checking
for dlopen
in -lsvld...
$ECHO_C" >&6; }
19953 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
19954 echo $ECHO_N "(cached
) $ECHO_C" >&6
19956 ac_check_lib_save_LIBS=$LIBS
19957 LIBS="-lsvld $LIBS"
19958 cat >conftest.$ac_ext <<_ACEOF
19961 cat confdefs.h >>conftest.$ac_ext
19962 cat >>conftest.$ac_ext <<_ACEOF
19963 /* end confdefs.h. */
19965 /* Override any GCC internal prototype to avoid an error.
19966 Use char because int might match the return type of a GCC
19967 builtin and then its argument prototype would still apply. */
19980 rm -f conftest.$ac_objext conftest$ac_exeext
19981 if { (ac_try="$ac_link"
19982 case "(($ac_try" in
19983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19984 *) ac_try_echo=$ac_try;;
19986 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19987 (eval "$ac_link") 2>conftest.er1
19989 grep -v '^ *+' conftest.er1 >conftest.err
19991 cat conftest.err >&5
19992 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19993 (exit $ac_status); } && {
19994 test -z "$ac_c_werror_flag" ||
19995 test ! -s conftest.err
19996 } && test -s conftest$ac_exeext &&
19997 $as_test_x conftest$ac_exeext; then
19998 ac_cv_lib_svld_dlopen=yes
20000 echo "$as_me: failed program was
:" >&5
20001 sed 's/^/| /' conftest.$ac_ext >&5
20003 ac_cv_lib_svld_dlopen=no
20006 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20007 conftest$ac_exeext conftest.$ac_ext
20008 LIBS=$ac_check_lib_save_LIBS
20010 { echo "$as_me:$LINENO: result
: $ac_cv_lib_svld_dlopen" >&5
20011 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
20012 if test $ac_cv_lib_svld_dlopen = yes; then
20014 cat >>confdefs.h <<\_ACEOF
20015 #define HAVE_LIBDL 1
20018 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
20020 { echo "$as_me:$LINENO: checking
for dld_link
in -ldld" >&5
20021 echo $ECHO_N "checking
for dld_link
in -ldld...
$ECHO_C" >&6; }
20022 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
20023 echo $ECHO_N "(cached
) $ECHO_C" >&6
20025 ac_check_lib_save_LIBS=$LIBS
20027 cat >conftest.$ac_ext <<_ACEOF
20030 cat confdefs.h >>conftest.$ac_ext
20031 cat >>conftest.$ac_ext <<_ACEOF
20032 /* end confdefs.h. */
20034 /* Override any GCC internal prototype to avoid an error.
20035 Use char because int might match the return type of a GCC
20036 builtin and then its argument prototype would still apply. */
20044 return dld_link ();
20049 rm -f conftest.$ac_objext conftest$ac_exeext
20050 if { (ac_try="$ac_link"
20051 case "(($ac_try" in
20052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20053 *) ac_try_echo=$ac_try;;
20055 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20056 (eval "$ac_link") 2>conftest.er1
20058 grep -v '^ *+' conftest.er1 >conftest.err
20060 cat conftest.err >&5
20061 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20062 (exit $ac_status); } && {
20063 test -z "$ac_c_werror_flag" ||
20064 test ! -s conftest.err
20065 } && test -s conftest$ac_exeext &&
20066 $as_test_x conftest$ac_exeext; then
20067 ac_cv_lib_dld_dld_link=yes
20069 echo "$as_me: failed program was
:" >&5
20070 sed 's/^/| /' conftest.$ac_ext >&5
20072 ac_cv_lib_dld_dld_link=no
20075 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20076 conftest$ac_exeext conftest.$ac_ext
20077 LIBS=$ac_check_lib_save_LIBS
20079 { echo "$as_me:$LINENO: result
: $ac_cv_lib_dld_dld_link" >&5
20080 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
20081 if test $ac_cv_lib_dld_dld_link = yes; then
20083 cat >>confdefs.h <<\_ACEOF
20087 LIBADD_DL="$LIBADD_DL -ldld"
20089 { echo "$as_me:$LINENO: checking
for _dyld_func_lookup
" >&5
20090 echo $ECHO_N "checking
for _dyld_func_lookup...
$ECHO_C" >&6; }
20091 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
20092 echo $ECHO_N "(cached
) $ECHO_C" >&6
20094 cat >conftest.$ac_ext <<_ACEOF
20097 cat confdefs.h >>conftest.$ac_ext
20098 cat >>conftest.$ac_ext <<_ACEOF
20099 /* end confdefs.h. */
20100 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
20101 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20102 #define _dyld_func_lookup innocuous__dyld_func_lookup
20104 /* System header to define __stub macros and hopefully few prototypes,
20105 which can conflict with char _dyld_func_lookup (); below.
20106 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20107 <limits.h> exists even on freestanding compilers. */
20110 # include <limits.h>
20112 # include <assert.h>
20115 #undef _dyld_func_lookup
20117 /* Override any GCC internal prototype to avoid an error.
20118 Use char because int might match the return type of a GCC
20119 builtin and then its argument prototype would still apply. */
20123 char _dyld_func_lookup ();
20124 /* The GNU C library defines this for functions which it implements
20125 to always fail with ENOSYS. Some functions are actually named
20126 something starting with __ and the normal name is an alias. */
20127 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
20134 return _dyld_func_lookup ();
20139 rm -f conftest.$ac_objext conftest$ac_exeext
20140 if { (ac_try="$ac_link"
20141 case "(($ac_try" in
20142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20143 *) ac_try_echo=$ac_try;;
20145 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20146 (eval "$ac_link") 2>conftest.er1
20148 grep -v '^ *+' conftest.er1 >conftest.err
20150 cat conftest.err >&5
20151 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20152 (exit $ac_status); } && {
20153 test -z "$ac_c_werror_flag" ||
20154 test ! -s conftest.err
20155 } && test -s conftest$ac_exeext &&
20156 $as_test_x conftest$ac_exeext; then
20157 ac_cv_func__dyld_func_lookup=yes
20159 echo "$as_me: failed program was
:" >&5
20160 sed 's/^/| /' conftest.$ac_ext >&5
20162 ac_cv_func__dyld_func_lookup=no
20165 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20166 conftest$ac_exeext conftest.$ac_ext
20168 { echo "$as_me:$LINENO: result
: $ac_cv_func__dyld_func_lookup" >&5
20169 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
20170 if test $ac_cv_func__dyld_func_lookup = yes; then
20172 cat >>confdefs.h <<\_ACEOF
20173 #define HAVE_DYLD 1
20187 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20188 conftest$ac_exeext conftest.$ac_ext
20199 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
20201 lt_save_LIBS="$LIBS"
20202 LIBS="$LIBS $LIBADD_DL"
20204 for ac_func in dlerror
20206 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
20207 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
20208 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
20209 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
20210 echo $ECHO_N "(cached
) $ECHO_C" >&6
20212 cat >conftest.$ac_ext <<_ACEOF
20215 cat confdefs.h >>conftest.$ac_ext
20216 cat >>conftest.$ac_ext <<_ACEOF
20217 /* end confdefs.h. */
20218 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20219 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20220 #define $ac_func innocuous_$ac_func
20222 /* System header to define __stub macros and hopefully few prototypes,
20223 which can conflict with char $ac_func (); below.
20224 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20225 <limits.h> exists even on freestanding compilers. */
20228 # include <limits.h>
20230 # include <assert.h>
20235 /* Override any GCC internal prototype to avoid an error.
20236 Use char because int might match the return type of a GCC
20237 builtin and then its argument prototype would still apply. */
20242 /* The GNU C library defines this for functions which it implements
20243 to always fail with ENOSYS. Some functions are actually named
20244 something starting with __ and the normal name is an alias. */
20245 #if defined __stub_$ac_func || defined __stub___$ac_func
20252 return $ac_func ();
20257 rm -f conftest.$ac_objext conftest$ac_exeext
20258 if { (ac_try="$ac_link"
20259 case "(($ac_try" in
20260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20261 *) ac_try_echo=$ac_try;;
20263 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20264 (eval "$ac_link") 2>conftest.er1
20266 grep -v '^ *+' conftest.er1 >conftest.err
20268 cat conftest.err >&5
20269 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20270 (exit $ac_status); } && {
20271 test -z "$ac_c_werror_flag" ||
20272 test ! -s conftest.err
20273 } && test -s conftest$ac_exeext &&
20274 $as_test_x conftest$ac_exeext; then
20275 eval "$as_ac_var=yes"
20277 echo "$as_me: failed program was
:" >&5
20278 sed 's/^/| /' conftest.$ac_ext >&5
20280 eval "$as_ac_var=no
"
20283 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20284 conftest$ac_exeext conftest.$ac_ext
20286 ac_res=`eval echo '${'$as_ac_var'}'`
20287 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20288 echo "${ECHO_T}$ac_res" >&6; }
20289 if test `eval echo '${'$as_ac_var'}'` = yes; then
20290 cat >>confdefs.h <<_ACEOF
20291 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
20297 LIBS="$lt_save_LIBS"
20300 ac_cpp='$CPP $CPPFLAGS'
20301 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20302 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20303 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20307 { echo "$as_me:$LINENO: checking
for _ prefix
in compiled symbols
" >&5
20308 echo $ECHO_N "checking
for _ prefix
in compiled symbols...
$ECHO_C" >&6; }
20309 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
20310 echo $ECHO_N "(cached
) $ECHO_C" >&6
20312 ac_cv_sys_symbol_underscore=no
20313 cat > conftest.$ac_ext <<EOF
20314 void nm_test_func(){}
20315 int main(){nm_test_func;return 0;}
20317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20318 (eval $ac_compile) 2>&5
20320 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20321 (exit $ac_status); }; then
20322 # Now try to grab the symbols.
20323 ac_nlist=conftest.nm
20324 if { (eval echo "$as_me:$LINENO: \"$NM conftest.
$ac_objext \|
$lt_cv_sys_global_symbol_pipe \
> $ac_nlist\"") >&5
20325 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
20327 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20328 (exit $ac_status); } && test -s "$ac_nlist"; then
20329 # See whether the symbols have a leading underscore.
20330 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
20331 ac_cv_sys_symbol_underscore=yes
20333 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
20336 echo "configure
: cannot
find nm_test_func
in $ac_nlist" >&5
20340 echo "configure
: cannot run
$lt_cv_sys_global_symbol_pipe" >&5
20343 echo "configure
: failed program was
:" >&5
20349 { echo "$as_me:$LINENO: result
: $ac_cv_sys_symbol_underscore" >&5
20350 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
20353 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
20354 if test x"$libltdl_cv_func_dlopen" = xyes ||
20355 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
20356 { echo "$as_me:$LINENO: checking whether we have to add an underscore
for dlsym
" >&5
20357 echo $ECHO_N "checking whether we have to add an underscore
for dlsym...
$ECHO_C" >&6; }
20358 if test "${libltdl_cv_need_uscore+set}" = set; then
20359 echo $ECHO_N "(cached
) $ECHO_C" >&6
20361 libltdl_cv_need_uscore=unknown
20363 LIBS="$LIBS $LIBADD_DL"
20364 if test "$cross_compiling" = yes; then :
20365 libltdl_cv_need_uscore=cross
20367 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20368 lt_status=$lt_dlunknown
20369 cat > conftest.$ac_ext <<EOF
20370 #line 20370 "configure
"
20371 #include "confdefs.h
"
20380 # define LT_DLGLOBAL RTLD_GLOBAL
20383 # define LT_DLGLOBAL DL_GLOBAL
20385 # define LT_DLGLOBAL 0
20389 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20390 find out it does not work in some platform. */
20391 #ifndef LT_DLLAZY_OR_NOW
20393 # define LT_DLLAZY_OR_NOW RTLD_LAZY
20396 # define LT_DLLAZY_OR_NOW DL_LAZY
20399 # define LT_DLLAZY_OR_NOW RTLD_NOW
20402 # define LT_DLLAZY_OR_NOW DL_NOW
20404 # define LT_DLLAZY_OR_NOW 0
20412 extern "C
" void exit (int);
20415 void fnord() { int i=42;}
20418 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20419 int status = $lt_dlunknown;
20423 if (dlsym (self,"fnord
")) status = $lt_dlno_uscore;
20424 else if (dlsym( self,"_fnord
")) status = $lt_dlneed_uscore;
20425 /* dlclose (self); */
20431 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20432 (eval $ac_link) 2>&5
20434 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20435 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
20436 (./conftest; exit; ) 2>/dev/null
20438 case x$lt_status in
20439 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
20440 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
20441 x$lt_unknown|x*) ;;
20444 # compilation failed
20453 { echo "$as_me:$LINENO: result
: $libltdl_cv_need_uscore" >&5
20454 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
20458 if test x"$libltdl_cv_need_uscore" = xyes; then
20460 cat >>confdefs.h <<\_ACEOF
20461 #define NEED_USCORE 1
20467 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen
" >&5
20468 echo $ECHO_N "checking whether deplibs are loaded by dlopen...
$ECHO_C" >&6; }
20469 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
20470 echo $ECHO_N "(cached
) $ECHO_C" >&6
20472 # PORTME does your system automatically load deplibs for dlopen?
20473 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
20474 # For now, we just catch OSes we know something about -- in the
20475 # future, we'll try test this programmatically.
20476 libltdl_cv_sys_dlopen_deplibs=unknown
20478 aix3*|aix4.1.*|aix4.2.*)
20479 # Unknown whether this is true for these versions of AIX, but
20480 # we want this `case' here to explicitly catch those versions.
20481 libltdl_cv_sys_dlopen_deplibs=unknown
20484 libltdl_cv_sys_dlopen_deplibs=yes
20487 # Assuming the user has installed a libdl from somewhere, this is true
20488 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
20489 libltdl_cv_sys_dlopen_deplibs=yes
20492 libltdl_cv_sys_dlopen_deplibs=yes
20495 libltdl_cv_sys_dlopen_deplibs=yes
20498 libltdl_cv_sys_dlopen_deplibs=yes
20500 irix[12345]*|irix6.[01]*)
20501 # Catch all versions of IRIX before 6.2, and indicate that we don't
20502 # know how it worked for any of those versions.
20503 libltdl_cv_sys_dlopen_deplibs=unknown
20506 # The case above catches anything before 6.2, and it's known that
20507 # at 6.2 and later dlopen does load deplibs.
20508 libltdl_cv_sys_dlopen_deplibs=yes
20511 libltdl_cv_sys_dlopen_deplibs=yes
20514 libltdl_cv_sys_dlopen_deplibs=yes
20517 libltdl_cv_sys_dlopen_deplibs=yes
20520 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
20521 # it did *not* use an RPATH in a shared library to find objects the
20522 # library depends on, so we explictly say `no'.
20523 libltdl_cv_sys_dlopen_deplibs=no
20525 osf5.0|osf5.0a|osf5.1)
20526 # dlopen *does* load deplibs and with the right loader patch applied
20527 # it even uses RPATH in a shared library to search for shared objects
20528 # that the library depends on, but there's no easy way to know if that
20529 # patch is installed. Since this is the case, all we can really
20530 # say is unknown -- it depends on the patch being installed. If
20531 # it is, this changes to `yes'. Without it, it would be `no'.
20532 libltdl_cv_sys_dlopen_deplibs=unknown
20535 # the two cases above should catch all versions of osf <= 5.1. Read
20536 # the comments above for what we know about them.
20537 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
20538 # is used to find them so we can finally say `yes'.
20539 libltdl_cv_sys_dlopen_deplibs=yes
20542 libltdl_cv_sys_dlopen_deplibs=yes
20547 { echo "$as_me:$LINENO: result
: $libltdl_cv_sys_dlopen_deplibs" >&5
20548 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
20549 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
20551 cat >>confdefs.h <<\_ACEOF
20552 #define LTDL_DLOPEN_DEPLIBS 1
20558 for ac_header in argz.h
20560 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20561 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20562 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20563 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20564 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20565 echo $ECHO_N "(cached
) $ECHO_C" >&6
20567 ac_res=`eval echo '${'$as_ac_Header'}'`
20568 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20569 echo "${ECHO_T}$ac_res" >&6; }
20571 # Is the header compilable?
20572 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20573 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20574 cat >conftest.$ac_ext <<_ACEOF
20577 cat confdefs.h >>conftest.$ac_ext
20578 cat >>conftest.$ac_ext <<_ACEOF
20579 /* end confdefs.h. */
20580 $ac_includes_default
20581 #include <$ac_header>
20583 rm -f conftest.$ac_objext
20584 if { (ac_try="$ac_compile"
20585 case "(($ac_try" in
20586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20587 *) ac_try_echo=$ac_try;;
20589 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20590 (eval "$ac_compile") 2>conftest.er1
20592 grep -v '^ *+' conftest.er1 >conftest.err
20594 cat conftest.err >&5
20595 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20596 (exit $ac_status); } && {
20597 test -z "$ac_c_werror_flag" ||
20598 test ! -s conftest.err
20599 } && test -s conftest.$ac_objext; then
20600 ac_header_compiler=yes
20602 echo "$as_me: failed program was
:" >&5
20603 sed 's/^/| /' conftest.$ac_ext >&5
20605 ac_header_compiler=no
20608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20609 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20610 echo "${ECHO_T}$ac_header_compiler" >&6; }
20612 # Is the header present?
20613 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20614 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20615 cat >conftest.$ac_ext <<_ACEOF
20618 cat confdefs.h >>conftest.$ac_ext
20619 cat >>conftest.$ac_ext <<_ACEOF
20620 /* end confdefs.h. */
20621 #include <$ac_header>
20623 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20624 case "(($ac_try" in
20625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20626 *) ac_try_echo=$ac_try;;
20628 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20629 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20631 grep -v '^ *+' conftest.er1 >conftest.err
20633 cat conftest.err >&5
20634 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20635 (exit $ac_status); } >/dev/null && {
20636 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20637 test ! -s conftest.err
20639 ac_header_preproc=yes
20641 echo "$as_me: failed program was
:" >&5
20642 sed 's/^/| /' conftest.$ac_ext >&5
20644 ac_header_preproc=no
20647 rm -f conftest.err conftest.$ac_ext
20648 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20649 echo "${ECHO_T}$ac_header_preproc" >&6; }
20651 # So? What about this header?
20652 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20654 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20655 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20656 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20657 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20658 ac_header_preproc=yes
20661 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20662 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20663 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20664 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20665 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20666 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20667 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20668 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20669 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20670 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20671 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20672 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20676 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20677 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20678 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20679 echo $ECHO_N "(cached
) $ECHO_C" >&6
20681 eval "$as_ac_Header=\
$ac_header_preproc"
20683 ac_res=`eval echo '${'$as_ac_Header'}'`
20684 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20685 echo "${ECHO_T}$ac_res" >&6; }
20688 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20689 cat >>confdefs.h <<_ACEOF
20690 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20698 { echo "$as_me:$LINENO: checking
for error_t
" >&5
20699 echo $ECHO_N "checking
for error_t...
$ECHO_C" >&6; }
20700 if test "${ac_cv_type_error_t+set}" = set; then
20701 echo $ECHO_N "(cached
) $ECHO_C" >&6
20703 cat >conftest.$ac_ext <<_ACEOF
20706 cat confdefs.h >>conftest.$ac_ext
20707 cat >>conftest.$ac_ext <<_ACEOF
20708 /* end confdefs.h. */
20713 typedef error_t ac__type_new_;
20717 if ((ac__type_new_ *) 0)
20719 if (sizeof (ac__type_new_))
20725 rm -f conftest.$ac_objext
20726 if { (ac_try="$ac_compile"
20727 case "(($ac_try" in
20728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20729 *) ac_try_echo=$ac_try;;
20731 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20732 (eval "$ac_compile") 2>conftest.er1
20734 grep -v '^ *+' conftest.er1 >conftest.err
20736 cat conftest.err >&5
20737 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20738 (exit $ac_status); } && {
20739 test -z "$ac_c_werror_flag" ||
20740 test ! -s conftest.err
20741 } && test -s conftest.$ac_objext; then
20742 ac_cv_type_error_t=yes
20744 echo "$as_me: failed program was
:" >&5
20745 sed 's/^/| /' conftest.$ac_ext >&5
20747 ac_cv_type_error_t=no
20750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20752 { echo "$as_me:$LINENO: result
: $ac_cv_type_error_t" >&5
20753 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
20754 if test $ac_cv_type_error_t = yes; then
20756 cat >>confdefs.h <<_ACEOF
20757 #define HAVE_ERROR_T 1
20763 cat >>confdefs.h <<\_ACEOF
20764 #define error_t int
20775 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
20777 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
20778 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
20779 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
20780 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
20781 echo $ECHO_N "(cached
) $ECHO_C" >&6
20783 cat >conftest.$ac_ext <<_ACEOF
20786 cat confdefs.h >>conftest.$ac_ext
20787 cat >>conftest.$ac_ext <<_ACEOF
20788 /* end confdefs.h. */
20789 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20790 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20791 #define $ac_func innocuous_$ac_func
20793 /* System header to define __stub macros and hopefully few prototypes,
20794 which can conflict with char $ac_func (); below.
20795 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20796 <limits.h> exists even on freestanding compilers. */
20799 # include <limits.h>
20801 # include <assert.h>
20806 /* Override any GCC internal prototype to avoid an error.
20807 Use char because int might match the return type of a GCC
20808 builtin and then its argument prototype would still apply. */
20813 /* The GNU C library defines this for functions which it implements
20814 to always fail with ENOSYS. Some functions are actually named
20815 something starting with __ and the normal name is an alias. */
20816 #if defined __stub_$ac_func || defined __stub___$ac_func
20823 return $ac_func ();
20828 rm -f conftest.$ac_objext conftest$ac_exeext
20829 if { (ac_try="$ac_link"
20830 case "(($ac_try" in
20831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20832 *) ac_try_echo=$ac_try;;
20834 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20835 (eval "$ac_link") 2>conftest.er1
20837 grep -v '^ *+' conftest.er1 >conftest.err
20839 cat conftest.err >&5
20840 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20841 (exit $ac_status); } && {
20842 test -z "$ac_c_werror_flag" ||
20843 test ! -s conftest.err
20844 } && test -s conftest$ac_exeext &&
20845 $as_test_x conftest$ac_exeext; then
20846 eval "$as_ac_var=yes"
20848 echo "$as_me: failed program was
:" >&5
20849 sed 's/^/| /' conftest.$ac_ext >&5
20851 eval "$as_ac_var=no
"
20854 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20855 conftest$ac_exeext conftest.$ac_ext
20857 ac_res=`eval echo '${'$as_ac_var'}'`
20858 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20859 echo "${ECHO_T}$ac_res" >&6; }
20860 if test `eval echo '${'$as_ac_var'}'` = yes; then
20861 cat >>confdefs.h <<_ACEOF
20862 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
20895 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
20898 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20899 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20900 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20901 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20902 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20903 echo $ECHO_N "(cached
) $ECHO_C" >&6
20905 ac_res=`eval echo '${'$as_ac_Header'}'`
20906 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20907 echo "${ECHO_T}$ac_res" >&6; }
20909 # Is the header compilable?
20910 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20911 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20912 cat >conftest.$ac_ext <<_ACEOF
20915 cat confdefs.h >>conftest.$ac_ext
20916 cat >>conftest.$ac_ext <<_ACEOF
20917 /* end confdefs.h. */
20918 $ac_includes_default
20919 #include <$ac_header>
20921 rm -f conftest.$ac_objext
20922 if { (ac_try="$ac_compile"
20923 case "(($ac_try" in
20924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20925 *) ac_try_echo=$ac_try;;
20927 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20928 (eval "$ac_compile") 2>conftest.er1
20930 grep -v '^ *+' conftest.er1 >conftest.err
20932 cat conftest.err >&5
20933 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20934 (exit $ac_status); } && {
20935 test -z "$ac_c_werror_flag" ||
20936 test ! -s conftest.err
20937 } && test -s conftest.$ac_objext; then
20938 ac_header_compiler=yes
20940 echo "$as_me: failed program was
:" >&5
20941 sed 's/^/| /' conftest.$ac_ext >&5
20943 ac_header_compiler=no
20946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20947 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20948 echo "${ECHO_T}$ac_header_compiler" >&6; }
20950 # Is the header present?
20951 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20952 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20953 cat >conftest.$ac_ext <<_ACEOF
20956 cat confdefs.h >>conftest.$ac_ext
20957 cat >>conftest.$ac_ext <<_ACEOF
20958 /* end confdefs.h. */
20959 #include <$ac_header>
20961 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20962 case "(($ac_try" in
20963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20964 *) ac_try_echo=$ac_try;;
20966 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20967 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20969 grep -v '^ *+' conftest.er1 >conftest.err
20971 cat conftest.err >&5
20972 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20973 (exit $ac_status); } >/dev/null && {
20974 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20975 test ! -s conftest.err
20977 ac_header_preproc=yes
20979 echo "$as_me: failed program was
:" >&5
20980 sed 's/^/| /' conftest.$ac_ext >&5
20982 ac_header_preproc=no
20985 rm -f conftest.err conftest.$ac_ext
20986 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20987 echo "${ECHO_T}$ac_header_preproc" >&6; }
20989 # So? What about this header?
20990 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20992 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20993 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20994 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20995 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20996 ac_header_preproc=yes
20999 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21000 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21001 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21002 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21003 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21004 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21005 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21006 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21007 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21008 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21009 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21010 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21014 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21015 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21016 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21017 echo $ECHO_N "(cached
) $ECHO_C" >&6
21019 eval "$as_ac_Header=\
$ac_header_preproc"
21021 ac_res=`eval echo '${'$as_ac_Header'}'`
21022 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21023 echo "${ECHO_T}$ac_res" >&6; }
21026 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21027 cat >>confdefs.h <<_ACEOF
21028 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21039 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
21041 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21042 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21043 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21044 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21045 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21046 echo $ECHO_N "(cached
) $ECHO_C" >&6
21048 ac_res=`eval echo '${'$as_ac_Header'}'`
21049 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21050 echo "${ECHO_T}$ac_res" >&6; }
21052 # Is the header compilable?
21053 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21054 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21055 cat >conftest.$ac_ext <<_ACEOF
21058 cat confdefs.h >>conftest.$ac_ext
21059 cat >>conftest.$ac_ext <<_ACEOF
21060 /* end confdefs.h. */
21061 $ac_includes_default
21062 #include <$ac_header>
21064 rm -f conftest.$ac_objext
21065 if { (ac_try="$ac_compile"
21066 case "(($ac_try" in
21067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21068 *) ac_try_echo=$ac_try;;
21070 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21071 (eval "$ac_compile") 2>conftest.er1
21073 grep -v '^ *+' conftest.er1 >conftest.err
21075 cat conftest.err >&5
21076 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21077 (exit $ac_status); } && {
21078 test -z "$ac_c_werror_flag" ||
21079 test ! -s conftest.err
21080 } && test -s conftest.$ac_objext; then
21081 ac_header_compiler=yes
21083 echo "$as_me: failed program was
:" >&5
21084 sed 's/^/| /' conftest.$ac_ext >&5
21086 ac_header_compiler=no
21089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21090 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21091 echo "${ECHO_T}$ac_header_compiler" >&6; }
21093 # Is the header present?
21094 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21095 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21096 cat >conftest.$ac_ext <<_ACEOF
21099 cat confdefs.h >>conftest.$ac_ext
21100 cat >>conftest.$ac_ext <<_ACEOF
21101 /* end confdefs.h. */
21102 #include <$ac_header>
21104 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21105 case "(($ac_try" in
21106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21107 *) ac_try_echo=$ac_try;;
21109 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21110 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21112 grep -v '^ *+' conftest.er1 >conftest.err
21114 cat conftest.err >&5
21115 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21116 (exit $ac_status); } >/dev/null && {
21117 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21118 test ! -s conftest.err
21120 ac_header_preproc=yes
21122 echo "$as_me: failed program was
:" >&5
21123 sed 's/^/| /' conftest.$ac_ext >&5
21125 ac_header_preproc=no
21128 rm -f conftest.err conftest.$ac_ext
21129 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21130 echo "${ECHO_T}$ac_header_preproc" >&6; }
21132 # So? What about this header?
21133 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21135 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21136 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21137 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21138 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21139 ac_header_preproc=yes
21142 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21143 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21144 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21145 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21146 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21147 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21148 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21149 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21150 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21151 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21152 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21153 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21157 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21158 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21159 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21160 echo $ECHO_N "(cached
) $ECHO_C" >&6
21162 eval "$as_ac_Header=\
$ac_header_preproc"
21164 ac_res=`eval echo '${'$as_ac_Header'}'`
21165 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21166 echo "${ECHO_T}$ac_res" >&6; }
21169 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21170 cat >>confdefs.h <<_ACEOF
21171 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21180 for ac_header in string.h strings.h
21182 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21183 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21184 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21185 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21186 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21187 echo $ECHO_N "(cached
) $ECHO_C" >&6
21189 ac_res=`eval echo '${'$as_ac_Header'}'`
21190 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21191 echo "${ECHO_T}$ac_res" >&6; }
21193 # Is the header compilable?
21194 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21195 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21196 cat >conftest.$ac_ext <<_ACEOF
21199 cat confdefs.h >>conftest.$ac_ext
21200 cat >>conftest.$ac_ext <<_ACEOF
21201 /* end confdefs.h. */
21202 $ac_includes_default
21203 #include <$ac_header>
21205 rm -f conftest.$ac_objext
21206 if { (ac_try="$ac_compile"
21207 case "(($ac_try" in
21208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21209 *) ac_try_echo=$ac_try;;
21211 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21212 (eval "$ac_compile") 2>conftest.er1
21214 grep -v '^ *+' conftest.er1 >conftest.err
21216 cat conftest.err >&5
21217 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21218 (exit $ac_status); } && {
21219 test -z "$ac_c_werror_flag" ||
21220 test ! -s conftest.err
21221 } && test -s conftest.$ac_objext; then
21222 ac_header_compiler=yes
21224 echo "$as_me: failed program was
:" >&5
21225 sed 's/^/| /' conftest.$ac_ext >&5
21227 ac_header_compiler=no
21230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21231 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21232 echo "${ECHO_T}$ac_header_compiler" >&6; }
21234 # Is the header present?
21235 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21236 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21237 cat >conftest.$ac_ext <<_ACEOF
21240 cat confdefs.h >>conftest.$ac_ext
21241 cat >>conftest.$ac_ext <<_ACEOF
21242 /* end confdefs.h. */
21243 #include <$ac_header>
21245 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21246 case "(($ac_try" in
21247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21248 *) ac_try_echo=$ac_try;;
21250 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21251 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21253 grep -v '^ *+' conftest.er1 >conftest.err
21255 cat conftest.err >&5
21256 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21257 (exit $ac_status); } >/dev/null && {
21258 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21259 test ! -s conftest.err
21261 ac_header_preproc=yes
21263 echo "$as_me: failed program was
:" >&5
21264 sed 's/^/| /' conftest.$ac_ext >&5
21266 ac_header_preproc=no
21269 rm -f conftest.err conftest.$ac_ext
21270 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21271 echo "${ECHO_T}$ac_header_preproc" >&6; }
21273 # So? What about this header?
21274 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21276 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21277 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21278 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21279 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21280 ac_header_preproc=yes
21283 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21284 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21285 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21286 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21287 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21288 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21289 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21290 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21291 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21292 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21293 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21294 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21298 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21299 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21300 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21301 echo $ECHO_N "(cached
) $ECHO_C" >&6
21303 eval "$as_ac_Header=\
$ac_header_preproc"
21305 ac_res=`eval echo '${'$as_ac_Header'}'`
21306 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21307 echo "${ECHO_T}$ac_res" >&6; }
21310 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21311 cat >>confdefs.h <<_ACEOF
21312 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21322 for ac_func in strchr index
21324 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
21325 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
21326 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
21327 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
21328 echo $ECHO_N "(cached
) $ECHO_C" >&6
21330 cat >conftest.$ac_ext <<_ACEOF
21333 cat confdefs.h >>conftest.$ac_ext
21334 cat >>conftest.$ac_ext <<_ACEOF
21335 /* end confdefs.h. */
21336 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21337 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21338 #define $ac_func innocuous_$ac_func
21340 /* System header to define __stub macros and hopefully few prototypes,
21341 which can conflict with char $ac_func (); below.
21342 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21343 <limits.h> exists even on freestanding compilers. */
21346 # include <limits.h>
21348 # include <assert.h>
21353 /* Override any GCC internal prototype to avoid an error.
21354 Use char because int might match the return type of a GCC
21355 builtin and then its argument prototype would still apply. */
21360 /* The GNU C library defines this for functions which it implements
21361 to always fail with ENOSYS. Some functions are actually named
21362 something starting with __ and the normal name is an alias. */
21363 #if defined __stub_$ac_func || defined __stub___$ac_func
21370 return $ac_func ();
21375 rm -f conftest.$ac_objext conftest$ac_exeext
21376 if { (ac_try="$ac_link"
21377 case "(($ac_try" in
21378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21379 *) ac_try_echo=$ac_try;;
21381 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21382 (eval "$ac_link") 2>conftest.er1
21384 grep -v '^ *+' conftest.er1 >conftest.err
21386 cat conftest.err >&5
21387 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21388 (exit $ac_status); } && {
21389 test -z "$ac_c_werror_flag" ||
21390 test ! -s conftest.err
21391 } && test -s conftest$ac_exeext &&
21392 $as_test_x conftest$ac_exeext; then
21393 eval "$as_ac_var=yes"
21395 echo "$as_me: failed program was
:" >&5
21396 sed 's/^/| /' conftest.$ac_ext >&5
21398 eval "$as_ac_var=no
"
21401 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21402 conftest$ac_exeext conftest.$ac_ext
21404 ac_res=`eval echo '${'$as_ac_var'}'`
21405 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21406 echo "${ECHO_T}$ac_res" >&6; }
21407 if test `eval echo '${'$as_ac_var'}'` = yes; then
21408 cat >>confdefs.h <<_ACEOF
21409 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
21417 for ac_func in strrchr rindex
21419 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
21420 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
21421 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
21422 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
21423 echo $ECHO_N "(cached
) $ECHO_C" >&6
21425 cat >conftest.$ac_ext <<_ACEOF
21428 cat confdefs.h >>conftest.$ac_ext
21429 cat >>conftest.$ac_ext <<_ACEOF
21430 /* end confdefs.h. */
21431 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21432 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21433 #define $ac_func innocuous_$ac_func
21435 /* System header to define __stub macros and hopefully few prototypes,
21436 which can conflict with char $ac_func (); below.
21437 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21438 <limits.h> exists even on freestanding compilers. */
21441 # include <limits.h>
21443 # include <assert.h>
21448 /* Override any GCC internal prototype to avoid an error.
21449 Use char because int might match the return type of a GCC
21450 builtin and then its argument prototype would still apply. */
21455 /* The GNU C library defines this for functions which it implements
21456 to always fail with ENOSYS. Some functions are actually named
21457 something starting with __ and the normal name is an alias. */
21458 #if defined __stub_$ac_func || defined __stub___$ac_func
21465 return $ac_func ();
21470 rm -f conftest.$ac_objext conftest$ac_exeext
21471 if { (ac_try="$ac_link"
21472 case "(($ac_try" in
21473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21474 *) ac_try_echo=$ac_try;;
21476 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21477 (eval "$ac_link") 2>conftest.er1
21479 grep -v '^ *+' conftest.er1 >conftest.err
21481 cat conftest.err >&5
21482 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21483 (exit $ac_status); } && {
21484 test -z "$ac_c_werror_flag" ||
21485 test ! -s conftest.err
21486 } && test -s conftest$ac_exeext &&
21487 $as_test_x conftest$ac_exeext; then
21488 eval "$as_ac_var=yes"
21490 echo "$as_me: failed program was
:" >&5
21491 sed 's/^/| /' conftest.$ac_ext >&5
21493 eval "$as_ac_var=no
"
21496 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21497 conftest$ac_exeext conftest.$ac_ext
21499 ac_res=`eval echo '${'$as_ac_var'}'`
21500 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21501 echo "${ECHO_T}$ac_res" >&6; }
21502 if test `eval echo '${'$as_ac_var'}'` = yes; then
21503 cat >>confdefs.h <<_ACEOF
21504 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
21512 for ac_func in memcpy bcopy
21514 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
21515 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
21516 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
21517 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
21518 echo $ECHO_N "(cached
) $ECHO_C" >&6
21520 cat >conftest.$ac_ext <<_ACEOF
21523 cat confdefs.h >>conftest.$ac_ext
21524 cat >>conftest.$ac_ext <<_ACEOF
21525 /* end confdefs.h. */
21526 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21527 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21528 #define $ac_func innocuous_$ac_func
21530 /* System header to define __stub macros and hopefully few prototypes,
21531 which can conflict with char $ac_func (); below.
21532 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21533 <limits.h> exists even on freestanding compilers. */
21536 # include <limits.h>
21538 # include <assert.h>
21543 /* Override any GCC internal prototype to avoid an error.
21544 Use char because int might match the return type of a GCC
21545 builtin and then its argument prototype would still apply. */
21550 /* The GNU C library defines this for functions which it implements
21551 to always fail with ENOSYS. Some functions are actually named
21552 something starting with __ and the normal name is an alias. */
21553 #if defined __stub_$ac_func || defined __stub___$ac_func
21560 return $ac_func ();
21565 rm -f conftest.$ac_objext conftest$ac_exeext
21566 if { (ac_try="$ac_link"
21567 case "(($ac_try" in
21568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21569 *) ac_try_echo=$ac_try;;
21571 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21572 (eval "$ac_link") 2>conftest.er1
21574 grep -v '^ *+' conftest.er1 >conftest.err
21576 cat conftest.err >&5
21577 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21578 (exit $ac_status); } && {
21579 test -z "$ac_c_werror_flag" ||
21580 test ! -s conftest.err
21581 } && test -s conftest$ac_exeext &&
21582 $as_test_x conftest$ac_exeext; then
21583 eval "$as_ac_var=yes"
21585 echo "$as_me: failed program was
:" >&5
21586 sed 's/^/| /' conftest.$ac_ext >&5
21588 eval "$as_ac_var=no
"
21591 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21592 conftest$ac_exeext conftest.$ac_ext
21594 ac_res=`eval echo '${'$as_ac_var'}'`
21595 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21596 echo "${ECHO_T}$ac_res" >&6; }
21597 if test `eval echo '${'$as_ac_var'}'` = yes; then
21598 cat >>confdefs.h <<_ACEOF
21599 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
21607 for ac_func in memmove strcmp
21609 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
21610 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
21611 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
21612 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
21613 echo $ECHO_N "(cached
) $ECHO_C" >&6
21615 cat >conftest.$ac_ext <<_ACEOF
21618 cat confdefs.h >>conftest.$ac_ext
21619 cat >>conftest.$ac_ext <<_ACEOF
21620 /* end confdefs.h. */
21621 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21622 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21623 #define $ac_func innocuous_$ac_func
21625 /* System header to define __stub macros and hopefully few prototypes,
21626 which can conflict with char $ac_func (); below.
21627 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21628 <limits.h> exists even on freestanding compilers. */
21631 # include <limits.h>
21633 # include <assert.h>
21638 /* Override any GCC internal prototype to avoid an error.
21639 Use char because int might match the return type of a GCC
21640 builtin and then its argument prototype would still apply. */
21645 /* The GNU C library defines this for functions which it implements
21646 to always fail with ENOSYS. Some functions are actually named
21647 something starting with __ and the normal name is an alias. */
21648 #if defined __stub_$ac_func || defined __stub___$ac_func
21655 return $ac_func ();
21660 rm -f conftest.$ac_objext conftest$ac_exeext
21661 if { (ac_try="$ac_link"
21662 case "(($ac_try" in
21663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21664 *) ac_try_echo=$ac_try;;
21666 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21667 (eval "$ac_link") 2>conftest.er1
21669 grep -v '^ *+' conftest.er1 >conftest.err
21671 cat conftest.err >&5
21672 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21673 (exit $ac_status); } && {
21674 test -z "$ac_c_werror_flag" ||
21675 test ! -s conftest.err
21676 } && test -s conftest$ac_exeext &&
21677 $as_test_x conftest$ac_exeext; then
21678 eval "$as_ac_var=yes"
21680 echo "$as_me: failed program was
:" >&5
21681 sed 's/^/| /' conftest.$ac_ext >&5
21683 eval "$as_ac_var=no
"
21686 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21687 conftest$ac_exeext conftest.$ac_ext
21689 ac_res=`eval echo '${'$as_ac_var'}'`
21690 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21691 echo "${ECHO_T}$ac_res" >&6; }
21692 if test `eval echo '${'$as_ac_var'}'` = yes; then
21693 cat >>confdefs.h <<_ACEOF
21694 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
21703 for ac_func in closedir opendir readdir
21705 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
21706 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
21707 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
21708 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
21709 echo $ECHO_N "(cached
) $ECHO_C" >&6
21711 cat >conftest.$ac_ext <<_ACEOF
21714 cat confdefs.h >>conftest.$ac_ext
21715 cat >>conftest.$ac_ext <<_ACEOF
21716 /* end confdefs.h. */
21717 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21718 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21719 #define $ac_func innocuous_$ac_func
21721 /* System header to define __stub macros and hopefully few prototypes,
21722 which can conflict with char $ac_func (); below.
21723 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21724 <limits.h> exists even on freestanding compilers. */
21727 # include <limits.h>
21729 # include <assert.h>
21734 /* Override any GCC internal prototype to avoid an error.
21735 Use char because int might match the return type of a GCC
21736 builtin and then its argument prototype would still apply. */
21741 /* The GNU C library defines this for functions which it implements
21742 to always fail with ENOSYS. Some functions are actually named
21743 something starting with __ and the normal name is an alias. */
21744 #if defined __stub_$ac_func || defined __stub___$ac_func
21751 return $ac_func ();
21756 rm -f conftest.$ac_objext conftest$ac_exeext
21757 if { (ac_try="$ac_link"
21758 case "(($ac_try" in
21759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21760 *) ac_try_echo=$ac_try;;
21762 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21763 (eval "$ac_link") 2>conftest.er1
21765 grep -v '^ *+' conftest.er1 >conftest.err
21767 cat conftest.err >&5
21768 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21769 (exit $ac_status); } && {
21770 test -z "$ac_c_werror_flag" ||
21771 test ! -s conftest.err
21772 } && test -s conftest$ac_exeext &&
21773 $as_test_x conftest$ac_exeext; then
21774 eval "$as_ac_var=yes"
21776 echo "$as_me: failed program was
:" >&5
21777 sed 's/^/| /' conftest.$ac_ext >&5
21779 eval "$as_ac_var=no
"
21782 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21783 conftest$ac_exeext conftest.$ac_ext
21785 ac_res=`eval echo '${'$as_ac_var'}'`
21786 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21787 echo "${ECHO_T}$ac_res" >&6; }
21788 if test `eval echo '${'$as_ac_var'}'` = yes; then
21789 cat >>confdefs.h <<_ACEOF
21790 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
21798 { echo "$as_me:$LINENO: checking
for X
" >&5
21799 echo $ECHO_N "checking
for X...
$ECHO_C" >&6; }
21802 # Check whether --with-x was given.
21803 if test "${with_x+set}" = set; then
21807 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
21808 if test "x
$with_x" = xno; then
21809 # The user explicitly disabled X.
21812 case $x_includes,$x_libraries in #(
21813 *\'*) { { echo "$as_me:$LINENO: error
: Cannot use X directory names containing
'" >&5
21814 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
21815 { (exit 1); exit 1; }; };; #(
21816 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
21817 echo $ECHO_N "(cached
) $ECHO_C" >&6
21819 # One or both of the vars are not set, and there is no cached value.
21820 ac_x_includes=no ac_x_libraries=no
21821 rm -f -r conftest.dir
21822 if mkdir conftest.dir; then
21824 cat >Imakefile <<'_ACEOF'
21826 @echo incroot='${INCROOT}'
21828 @echo usrlibdir='${USRLIBDIR}'
21830 @echo libdir='${LIBDIR}'
21832 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
21833 # GNU make sometimes prints "make[1]: Entering...
", which would confuse us.
21834 for ac_var in incroot usrlibdir libdir; do
21835 eval "ac_im_
$ac_var=\
`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
21837 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
21838 for ac_extension in a so sl; do
21839 if test ! -f "$ac_im_usrlibdir/libX11.
$ac_extension" &&
21840 test -f "$ac_im_libdir/libX11.
$ac_extension"; then
21841 ac_im_usrlibdir=$ac_im_libdir; break
21844 # Screen out bogus values from the imake configuration. They are
21845 # bogus both because they are the default anyway, and because
21846 # using them would break gcc on systems where it needs fixed includes.
21847 case $ac_im_incroot in
21848 /usr/include) ac_x_includes= ;;
21849 *) test -f "$ac_im_incroot/X11
/Xos.h
" && ac_x_includes=$ac_im_incroot;;
21851 case $ac_im_usrlibdir in
21852 /usr/lib | /lib) ;;
21853 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
21857 rm -f -r conftest.dir
21860 # Standard set of common directories for X headers.
21861 # Check X11 before X11Rn because it is often a symlink to the current release.
21873 /usr/local/X11/include
21874 /usr/local/X11R6/include
21875 /usr/local/X11R5/include
21876 /usr/local/X11R4/include
21878 /usr/local/include/X11
21879 /usr/local/include/X11R6
21880 /usr/local/include/X11R5
21881 /usr/local/include/X11R4
21885 /usr/XFree86/include/X11
21889 /usr/unsupported/include
21890 /usr/athena/include
21891 /usr/local/x11r5/include
21892 /usr/lpp/Xamples/include
21894 /usr/openwin/include
21895 /usr/openwin/share/include'
21897 if test "$ac_x_includes" = no; then
21898 # Guess where to find include files, by looking for Xlib.h.
21899 # First, try using that file with no special directory specified.
21900 cat >conftest.$ac_ext <<_ACEOF
21903 cat confdefs.h >>conftest.$ac_ext
21904 cat >>conftest.$ac_ext <<_ACEOF
21905 /* end confdefs.h. */
21906 #include <X11/Xlib.h>
21908 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21909 case "(($ac_try" in
21910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21911 *) ac_try_echo=$ac_try;;
21913 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21914 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21916 grep -v '^ *+' conftest.er1 >conftest.err
21918 cat conftest.err >&5
21919 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21920 (exit $ac_status); } >/dev/null && {
21921 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21922 test ! -s conftest.err
21924 # We can compile using X headers with no special include directory.
21927 echo "$as_me: failed program was
:" >&5
21928 sed 's/^/| /' conftest.$ac_ext >&5
21930 for ac_dir in $ac_x_header_dirs; do
21931 if test -r "$ac_dir/X11
/Xlib.h
"; then
21932 ac_x_includes=$ac_dir
21938 rm -f conftest.err conftest.$ac_ext
21939 fi # $ac_x_includes = no
21941 if test "$ac_x_libraries" = no; then
21942 # Check for the libraries.
21943 # See if we find them without any special options.
21944 # Don't add to $LIBS permanently.
21947 cat >conftest.$ac_ext <<_ACEOF
21950 cat confdefs.h >>conftest.$ac_ext
21951 cat >>conftest.$ac_ext <<_ACEOF
21952 /* end confdefs.h. */
21953 #include <X11/Xlib.h>
21962 rm -f conftest.$ac_objext conftest$ac_exeext
21963 if { (ac_try="$ac_link"
21964 case "(($ac_try" in
21965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21966 *) ac_try_echo=$ac_try;;
21968 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21969 (eval "$ac_link") 2>conftest.er1
21971 grep -v '^ *+' conftest.er1 >conftest.err
21973 cat conftest.err >&5
21974 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21975 (exit $ac_status); } && {
21976 test -z "$ac_c_werror_flag" ||
21977 test ! -s conftest.err
21978 } && test -s conftest$ac_exeext &&
21979 $as_test_x conftest$ac_exeext; then
21981 # We can link X programs with no special library path.
21984 echo "$as_me: failed program was
:" >&5
21985 sed 's/^/| /' conftest.$ac_ext >&5
21988 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
21990 # Don't even attempt the hair of trying to link an X program!
21991 for ac_extension in a so sl; do
21992 if test -r "$ac_dir/libX11.
$ac_extension"; then
21993 ac_x_libraries=$ac_dir
22000 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22001 conftest$ac_exeext conftest.$ac_ext
22002 fi # $ac_x_libraries = no
22004 case $ac_x_includes,$ac_x_libraries in #(
22005 no,* | *,no | *\'*)
22006 # Didn't find X, or a directory has "'" in its name.
22007 ac_cv_have_x="have_x=no";; #(
22009 # Record where we found X for the cache.
22010 ac_cv_have_x="have_x=yes\
22011 ac_x_includes='$ac_x_includes'\
22012 ac_x_libraries='$ac_x_libraries'"
22018 eval "$ac_cv_have_x"
22021 if test "$have_x" != yes; then
22022 { echo "$as_me:$LINENO: result: $have_x" >&5
22023 echo "${ECHO_T}$have_x" >&6; }
22026 # If each of the values was on the command line, it overrides each guess.
22027 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
22028 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
22029 # Update the cache value to reflect the command line values.
22030 ac_cv_have_x="have_x=yes\
22031 ac_x_includes='$x_includes'\
22032 ac_x_libraries='$x_libraries'"
22033 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
22034 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
22037 if test "$no_x" = yes; then
22038 # Not all programs may use this symbol, but it does not hurt to define it.
22040 cat >>confdefs.h <<\_ACEOF
22041 #define X_DISPLAY_MISSING 1
22044 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
22046 if test -n "$x_includes"; then
22047 X_CFLAGS="$X_CFLAGS -I$x_includes"
22050 # It would also be nice to do this for all -L options, not just this one.
22051 if test -n "$x_libraries"; then
22052 X_LIBS="$X_LIBS -L$x_libraries"
22053 # For Solaris; some versions of Sun CC require a space after -R and
22054 # others require no space. Words are not sufficient . . . .
22055 { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
22056 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
22057 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
22058 ac_xsave_c_werror_flag=$ac_c_werror_flag
22059 ac_c_werror_flag=yes
22060 cat >conftest.$ac_ext <<_ACEOF
22063 cat confdefs.h >>conftest.$ac_ext
22064 cat >>conftest.$ac_ext <<_ACEOF
22065 /* end confdefs.h. */
22075 rm -f conftest.$ac_objext conftest$ac_exeext
22076 if { (ac_try="$ac_link"
22077 case "(($ac_try" in
22078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22079 *) ac_try_echo=$ac_try;;
22081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22082 (eval "$ac_link") 2>conftest.er1
22084 grep -v '^
*+' conftest.er1 >conftest.err
22086 cat conftest.err >&5
22087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22088 (exit $ac_status); } && {
22089 test -z "$ac_c_werror_flag" ||
22090 test ! -s conftest.err
22091 } && test -s conftest$ac_exeext &&
22092 $as_test_x conftest$ac_exeext; then
22093 { echo "$as_me:$LINENO: result: no" >&5
22094 echo "${ECHO_T}no" >&6; }
22095 X_LIBS="$X_LIBS -R$x_libraries"
22097 echo "$as_me: failed program was:" >&5
22098 sed 's
/^
/|
/' conftest.$ac_ext >&5
22100 LIBS="$ac_xsave_LIBS -R $x_libraries"
22101 cat >conftest.$ac_ext <<_ACEOF
22104 cat confdefs.h >>conftest.$ac_ext
22105 cat >>conftest.$ac_ext <<_ACEOF
22106 /* end confdefs.h. */
22116 rm -f conftest.$ac_objext conftest$ac_exeext
22117 if { (ac_try="$ac_link"
22118 case "(($ac_try" in
22119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22120 *) ac_try_echo=$ac_try;;
22122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22123 (eval "$ac_link") 2>conftest.er1
22125 grep -v '^
*+' conftest.er1 >conftest.err
22127 cat conftest.err >&5
22128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22129 (exit $ac_status); } && {
22130 test -z "$ac_c_werror_flag" ||
22131 test ! -s conftest.err
22132 } && test -s conftest$ac_exeext &&
22133 $as_test_x conftest$ac_exeext; then
22134 { echo "$as_me:$LINENO: result: yes" >&5
22135 echo "${ECHO_T}yes" >&6; }
22136 X_LIBS="$X_LIBS -R $x_libraries"
22138 echo "$as_me: failed program was:" >&5
22139 sed 's
/^
/|
/' conftest.$ac_ext >&5
22141 { echo "$as_me:$LINENO: result: neither works" >&5
22142 echo "${ECHO_T}neither works" >&6; }
22145 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22146 conftest$ac_exeext conftest.$ac_ext
22149 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22150 conftest$ac_exeext conftest.$ac_ext
22151 ac_c_werror_flag=$ac_xsave_c_werror_flag
22152 LIBS=$ac_xsave_LIBS
22155 # Check for system-dependent libraries X programs must link with.
22156 # Do this before checking for the system-independent R6 libraries
22157 # (-lICE), since we may need -lsocket or whatever for X linking.
22159 if test "$ISC" = yes; then
22160 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
22162 # Martyn Johnson says this is needed for Ultrix, if the X
22163 # libraries were built with DECnet support. And Karl Berry says
22164 # the Alpha needs dnet_stub (dnet does not exist).
22165 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
22166 cat >conftest.$ac_ext <<_ACEOF
22169 cat confdefs.h >>conftest.$ac_ext
22170 cat >>conftest.$ac_ext <<_ACEOF
22171 /* end confdefs.h. */
22173 /* Override any GCC internal prototype to avoid an error.
22174 Use char because int might match the return type of a GCC
22175 builtin and then its argument prototype would still apply. */
22179 char XOpenDisplay ();
22183 return XOpenDisplay ();
22188 rm -f conftest.$ac_objext conftest$ac_exeext
22189 if { (ac_try="$ac_link"
22190 case "(($ac_try" in
22191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22192 *) ac_try_echo=$ac_try;;
22194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22195 (eval "$ac_link") 2>conftest.er1
22197 grep -v '^
*+' conftest.er1 >conftest.err
22199 cat conftest.err >&5
22200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22201 (exit $ac_status); } && {
22202 test -z "$ac_c_werror_flag" ||
22203 test ! -s conftest.err
22204 } && test -s conftest$ac_exeext &&
22205 $as_test_x conftest$ac_exeext; then
22208 echo "$as_me: failed program was:" >&5
22209 sed 's
/^
/|
/' conftest.$ac_ext >&5
22211 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
22212 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
22213 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
22214 echo $ECHO_N "(cached) $ECHO_C" >&6
22216 ac_check_lib_save_LIBS=$LIBS
22217 LIBS="-ldnet $LIBS"
22218 cat >conftest.$ac_ext <<_ACEOF
22221 cat confdefs.h >>conftest.$ac_ext
22222 cat >>conftest.$ac_ext <<_ACEOF
22223 /* end confdefs.h. */
22225 /* Override any GCC internal prototype to avoid an error.
22226 Use char because int might match the return type of a GCC
22227 builtin and then its argument prototype would still apply. */
22235 return dnet_ntoa ();
22240 rm -f conftest.$ac_objext conftest$ac_exeext
22241 if { (ac_try="$ac_link"
22242 case "(($ac_try" in
22243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22244 *) ac_try_echo=$ac_try;;
22246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22247 (eval "$ac_link") 2>conftest.er1
22249 grep -v '^
*+' conftest.er1 >conftest.err
22251 cat conftest.err >&5
22252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22253 (exit $ac_status); } && {
22254 test -z "$ac_c_werror_flag" ||
22255 test ! -s conftest.err
22256 } && test -s conftest$ac_exeext &&
22257 $as_test_x conftest$ac_exeext; then
22258 ac_cv_lib_dnet_dnet_ntoa=yes
22260 echo "$as_me: failed program was:" >&5
22261 sed 's
/^
/|
/' conftest.$ac_ext >&5
22263 ac_cv_lib_dnet_dnet_ntoa=no
22266 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22267 conftest$ac_exeext conftest.$ac_ext
22268 LIBS=$ac_check_lib_save_LIBS
22270 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
22271 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
22272 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
22273 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
22276 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
22277 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
22278 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
22279 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
22280 echo $ECHO_N "(cached) $ECHO_C" >&6
22282 ac_check_lib_save_LIBS=$LIBS
22283 LIBS="-ldnet_stub $LIBS"
22284 cat >conftest.$ac_ext <<_ACEOF
22287 cat confdefs.h >>conftest.$ac_ext
22288 cat >>conftest.$ac_ext <<_ACEOF
22289 /* end confdefs.h. */
22291 /* Override any GCC internal prototype to avoid an error.
22292 Use char because int might match the return type of a GCC
22293 builtin and then its argument prototype would still apply. */
22301 return dnet_ntoa ();
22306 rm -f conftest.$ac_objext conftest$ac_exeext
22307 if { (ac_try="$ac_link"
22308 case "(($ac_try" in
22309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22310 *) ac_try_echo=$ac_try;;
22312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22313 (eval "$ac_link") 2>conftest.er1
22315 grep -v '^
*+' conftest.er1 >conftest.err
22317 cat conftest.err >&5
22318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22319 (exit $ac_status); } && {
22320 test -z "$ac_c_werror_flag" ||
22321 test ! -s conftest.err
22322 } && test -s conftest$ac_exeext &&
22323 $as_test_x conftest$ac_exeext; then
22324 ac_cv_lib_dnet_stub_dnet_ntoa=yes
22326 echo "$as_me: failed program was:" >&5
22327 sed 's
/^
/|
/' conftest.$ac_ext >&5
22329 ac_cv_lib_dnet_stub_dnet_ntoa=no
22332 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22333 conftest$ac_exeext conftest.$ac_ext
22334 LIBS=$ac_check_lib_save_LIBS
22336 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
22337 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
22338 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
22339 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
22345 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22346 conftest$ac_exeext conftest.$ac_ext
22347 LIBS="$ac_xsave_LIBS"
22349 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
22350 # to get the SysV transport functions.
22351 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
22353 # The nsl library prevents programs from opening the X display
22354 # on Irix 5.2, according to T.E. Dickey.
22355 # The functions gethostbyname, getservbyname, and inet_addr are
22356 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
22357 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
22358 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
22359 if test "${ac_cv_func_gethostbyname+set}" = set; then
22360 echo $ECHO_N "(cached) $ECHO_C" >&6
22362 cat >conftest.$ac_ext <<_ACEOF
22365 cat confdefs.h >>conftest.$ac_ext
22366 cat >>conftest.$ac_ext <<_ACEOF
22367 /* end confdefs.h. */
22368 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
22369 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22370 #define gethostbyname innocuous_gethostbyname
22372 /* System header to define __stub macros and hopefully few prototypes,
22373 which can conflict with char gethostbyname (); below.
22374 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22375 <limits.h> exists even on freestanding compilers. */
22378 # include <limits.h>
22380 # include <assert.h>
22383 #undef gethostbyname
22385 /* Override any GCC internal prototype to avoid an error.
22386 Use char because int might match the return type of a GCC
22387 builtin and then its argument prototype would still apply. */
22391 char gethostbyname ();
22392 /* The GNU C library defines this for functions which it implements
22393 to always fail with ENOSYS. Some functions are actually named
22394 something starting with __ and the normal name is an alias. */
22395 #if defined __stub_gethostbyname || defined __stub___gethostbyname
22402 return gethostbyname ();
22407 rm -f conftest.$ac_objext conftest$ac_exeext
22408 if { (ac_try="$ac_link"
22409 case "(($ac_try" in
22410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22411 *) ac_try_echo=$ac_try;;
22413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22414 (eval "$ac_link") 2>conftest.er1
22416 grep -v '^
*+' conftest.er1 >conftest.err
22418 cat conftest.err >&5
22419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22420 (exit $ac_status); } && {
22421 test -z "$ac_c_werror_flag" ||
22422 test ! -s conftest.err
22423 } && test -s conftest$ac_exeext &&
22424 $as_test_x conftest$ac_exeext; then
22425 ac_cv_func_gethostbyname=yes
22427 echo "$as_me: failed program was:" >&5
22428 sed 's
/^
/|
/' conftest.$ac_ext >&5
22430 ac_cv_func_gethostbyname=no
22433 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22434 conftest$ac_exeext conftest.$ac_ext
22436 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
22437 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
22439 if test $ac_cv_func_gethostbyname = no; then
22440 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
22441 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
22442 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
22443 echo $ECHO_N "(cached) $ECHO_C" >&6
22445 ac_check_lib_save_LIBS=$LIBS
22447 cat >conftest.$ac_ext <<_ACEOF
22450 cat confdefs.h >>conftest.$ac_ext
22451 cat >>conftest.$ac_ext <<_ACEOF
22452 /* end confdefs.h. */
22454 /* Override any GCC internal prototype to avoid an error.
22455 Use char because int might match the return type of a GCC
22456 builtin and then its argument prototype would still apply. */
22460 char gethostbyname ();
22464 return gethostbyname ();
22469 rm -f conftest.$ac_objext conftest$ac_exeext
22470 if { (ac_try="$ac_link"
22471 case "(($ac_try" in
22472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22473 *) ac_try_echo=$ac_try;;
22475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22476 (eval "$ac_link") 2>conftest.er1
22478 grep -v '^
*+' conftest.er1 >conftest.err
22480 cat conftest.err >&5
22481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22482 (exit $ac_status); } && {
22483 test -z "$ac_c_werror_flag" ||
22484 test ! -s conftest.err
22485 } && test -s conftest$ac_exeext &&
22486 $as_test_x conftest$ac_exeext; then
22487 ac_cv_lib_nsl_gethostbyname=yes
22489 echo "$as_me: failed program was:" >&5
22490 sed 's
/^
/|
/' conftest.$ac_ext >&5
22492 ac_cv_lib_nsl_gethostbyname=no
22495 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22496 conftest$ac_exeext conftest.$ac_ext
22497 LIBS=$ac_check_lib_save_LIBS
22499 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
22500 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
22501 if test $ac_cv_lib_nsl_gethostbyname = yes; then
22502 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
22505 if test $ac_cv_lib_nsl_gethostbyname = no; then
22506 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
22507 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
22508 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
22509 echo $ECHO_N "(cached) $ECHO_C" >&6
22511 ac_check_lib_save_LIBS=$LIBS
22513 cat >conftest.$ac_ext <<_ACEOF
22516 cat confdefs.h >>conftest.$ac_ext
22517 cat >>conftest.$ac_ext <<_ACEOF
22518 /* end confdefs.h. */
22520 /* Override any GCC internal prototype to avoid an error.
22521 Use char because int might match the return type of a GCC
22522 builtin and then its argument prototype would still apply. */
22526 char gethostbyname ();
22530 return gethostbyname ();
22535 rm -f conftest.$ac_objext conftest$ac_exeext
22536 if { (ac_try="$ac_link"
22537 case "(($ac_try" in
22538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22539 *) ac_try_echo=$ac_try;;
22541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22542 (eval "$ac_link") 2>conftest.er1
22544 grep -v '^
*+' conftest.er1 >conftest.err
22546 cat conftest.err >&5
22547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22548 (exit $ac_status); } && {
22549 test -z "$ac_c_werror_flag" ||
22550 test ! -s conftest.err
22551 } && test -s conftest$ac_exeext &&
22552 $as_test_x conftest$ac_exeext; then
22553 ac_cv_lib_bsd_gethostbyname=yes
22555 echo "$as_me: failed program was:" >&5
22556 sed 's
/^
/|
/' conftest.$ac_ext >&5
22558 ac_cv_lib_bsd_gethostbyname=no
22561 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22562 conftest$ac_exeext conftest.$ac_ext
22563 LIBS=$ac_check_lib_save_LIBS
22565 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
22566 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
22567 if test $ac_cv_lib_bsd_gethostbyname = yes; then
22568 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
22574 # lieder@skyler.mavd.honeywell.com says without -lsocket,
22575 # socket/setsockopt and other routines are undefined under SCO ODT
22576 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
22577 # on later versions), says Simon Leinen: it contains gethostby*
22578 # variants that don't use the name server
(or something
).
-lsocket
22579 # must be given before -lnsl if both are needed. We assume that
22580 # if connect needs -lnsl, so does gethostbyname.
22581 { echo "$as_me:$LINENO: checking for connect" >&5
22582 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
22583 if test "${ac_cv_func_connect+set}" = set; then
22584 echo $ECHO_N "(cached) $ECHO_C" >&6
22586 cat >conftest.
$ac_ext <<_ACEOF
22589 cat confdefs.h
>>conftest.
$ac_ext
22590 cat >>conftest.
$ac_ext <<_ACEOF
22591 /* end confdefs.h. */
22592 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
22593 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22594 #define connect innocuous_connect
22596 /* System header to define __stub macros and hopefully few prototypes,
22597 which can conflict with char connect (); below.
22598 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22599 <limits.h> exists even on freestanding compilers. */
22602 # include <limits.h>
22604 # include <assert.h>
22609 /* Override any GCC internal prototype to avoid an error.
22610 Use char because int might match the return type of a GCC
22611 builtin and then its argument prototype would still apply. */
22616 /* The GNU C library defines this for functions which it implements
22617 to always fail with ENOSYS. Some functions are actually named
22618 something starting with __ and the normal name is an alias. */
22619 #if defined __stub_connect || defined __stub___connect
22631 rm -f conftest.
$ac_objext conftest
$ac_exeext
22632 if { (ac_try
="$ac_link"
22633 case "(($ac_try" in
22634 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22635 *) ac_try_echo=$ac_try;;
22637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22638 (eval "$ac_link") 2>conftest.er1
22640 grep -v '^ *+' conftest.er1 >conftest.err
22642 cat conftest.err >&5
22643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22644 (exit $ac_status); } && {
22645 test -z "$ac_c_werror_flag" ||
22646 test ! -s conftest.err
22647 } && test -s conftest$ac_exeext &&
22648 $as_test_x conftest$ac_exeext; then
22649 ac_cv_func_connect=yes
22651 echo "$as_me: failed program was:" >&5
22652 sed 's/^/| /' conftest.$ac_ext >&5
22654 ac_cv_func_connect=no
22657 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22658 conftest$ac_exeext conftest.$ac_ext
22660 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
22661 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
22663 if test $ac_cv_func_connect = no; then
22664 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
22665 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
22666 if test "${ac_cv_lib_socket_connect+set}" = set; then
22667 echo $ECHO_N "(cached) $ECHO_C" >&6
22669 ac_check_lib_save_LIBS=$LIBS
22670 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
22671 cat >conftest.$ac_ext <<_ACEOF
22674 cat confdefs.h >>conftest.$ac_ext
22675 cat >>conftest.$ac_ext <<_ACEOF
22676 /* end confdefs.h. */
22678 /* Override any GCC internal prototype to avoid an error.
22679 Use char because int might match the return type of a GCC
22680 builtin and then its argument prototype would still apply. */
22693 rm -f conftest.$ac_objext conftest$ac_exeext
22694 if { (ac_try="$ac_link"
22695 case "(($ac_try" in
22696 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22697 *) ac_try_echo
=$ac_try;;
22699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22700 (eval "$ac_link") 2>conftest.er1
22702 grep -v '^ *+' conftest.er1
>conftest.err
22704 cat conftest.err
>&5
22705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22706 (exit $ac_status); } && {
22707 test -z "$ac_c_werror_flag" ||
22708 test ! -s conftest.err
22709 } && test -s conftest
$ac_exeext &&
22710 $as_test_x conftest
$ac_exeext; then
22711 ac_cv_lib_socket_connect
=yes
22713 echo "$as_me: failed program was:" >&5
22714 sed 's/^/| /' conftest.
$ac_ext >&5
22716 ac_cv_lib_socket_connect
=no
22719 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
22720 conftest
$ac_exeext conftest.
$ac_ext
22721 LIBS
=$ac_check_lib_save_LIBS
22723 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
22724 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
22725 if test $ac_cv_lib_socket_connect = yes; then
22726 X_EXTRA_LIBS
="-lsocket $X_EXTRA_LIBS"
22731 # Guillermo Gomez says -lposix is necessary on A/UX.
22732 { echo "$as_me:$LINENO: checking for remove" >&5
22733 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
22734 if test "${ac_cv_func_remove+set}" = set; then
22735 echo $ECHO_N "(cached) $ECHO_C" >&6
22737 cat >conftest.
$ac_ext <<_ACEOF
22740 cat confdefs.h
>>conftest.
$ac_ext
22741 cat >>conftest.
$ac_ext <<_ACEOF
22742 /* end confdefs.h. */
22743 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
22744 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22745 #define remove innocuous_remove
22747 /* System header to define __stub macros and hopefully few prototypes,
22748 which can conflict with char remove (); below.
22749 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22750 <limits.h> exists even on freestanding compilers. */
22753 # include <limits.h>
22755 # include <assert.h>
22760 /* Override any GCC internal prototype to avoid an error.
22761 Use char because int might match the return type of a GCC
22762 builtin and then its argument prototype would still apply. */
22767 /* The GNU C library defines this for functions which it implements
22768 to always fail with ENOSYS. Some functions are actually named
22769 something starting with __ and the normal name is an alias. */
22770 #if defined __stub_remove || defined __stub___remove
22782 rm -f conftest.
$ac_objext conftest
$ac_exeext
22783 if { (ac_try
="$ac_link"
22784 case "(($ac_try" in
22785 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22786 *) ac_try_echo=$ac_try;;
22788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22789 (eval "$ac_link") 2>conftest.er1
22791 grep -v '^ *+' conftest.er1 >conftest.err
22793 cat conftest.err >&5
22794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22795 (exit $ac_status); } && {
22796 test -z "$ac_c_werror_flag" ||
22797 test ! -s conftest.err
22798 } && test -s conftest$ac_exeext &&
22799 $as_test_x conftest$ac_exeext; then
22800 ac_cv_func_remove=yes
22802 echo "$as_me: failed program was:" >&5
22803 sed 's/^/| /' conftest.$ac_ext >&5
22805 ac_cv_func_remove=no
22808 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22809 conftest$ac_exeext conftest.$ac_ext
22811 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
22812 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
22814 if test $ac_cv_func_remove = no; then
22815 { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
22816 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
22817 if test "${ac_cv_lib_posix_remove+set}" = set; then
22818 echo $ECHO_N "(cached) $ECHO_C" >&6
22820 ac_check_lib_save_LIBS=$LIBS
22821 LIBS="-lposix $LIBS"
22822 cat >conftest.$ac_ext <<_ACEOF
22825 cat confdefs.h >>conftest.$ac_ext
22826 cat >>conftest.$ac_ext <<_ACEOF
22827 /* end confdefs.h. */
22829 /* Override any GCC internal prototype to avoid an error.
22830 Use char because int might match the return type of a GCC
22831 builtin and then its argument prototype would still apply. */
22844 rm -f conftest.$ac_objext conftest$ac_exeext
22845 if { (ac_try="$ac_link"
22846 case "(($ac_try" in
22847 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22848 *) ac_try_echo
=$ac_try;;
22850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22851 (eval "$ac_link") 2>conftest.er1
22853 grep -v '^ *+' conftest.er1
>conftest.err
22855 cat conftest.err
>&5
22856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22857 (exit $ac_status); } && {
22858 test -z "$ac_c_werror_flag" ||
22859 test ! -s conftest.err
22860 } && test -s conftest
$ac_exeext &&
22861 $as_test_x conftest
$ac_exeext; then
22862 ac_cv_lib_posix_remove
=yes
22864 echo "$as_me: failed program was:" >&5
22865 sed 's/^/| /' conftest.
$ac_ext >&5
22867 ac_cv_lib_posix_remove
=no
22870 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
22871 conftest
$ac_exeext conftest.
$ac_ext
22872 LIBS
=$ac_check_lib_save_LIBS
22874 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
22875 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
22876 if test $ac_cv_lib_posix_remove = yes; then
22877 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lposix"
22882 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
22883 { echo "$as_me:$LINENO: checking for shmat" >&5
22884 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
22885 if test "${ac_cv_func_shmat+set}" = set; then
22886 echo $ECHO_N "(cached) $ECHO_C" >&6
22888 cat >conftest.
$ac_ext <<_ACEOF
22891 cat confdefs.h
>>conftest.
$ac_ext
22892 cat >>conftest.
$ac_ext <<_ACEOF
22893 /* end confdefs.h. */
22894 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
22895 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22896 #define shmat innocuous_shmat
22898 /* System header to define __stub macros and hopefully few prototypes,
22899 which can conflict with char shmat (); below.
22900 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22901 <limits.h> exists even on freestanding compilers. */
22904 # include <limits.h>
22906 # include <assert.h>
22911 /* Override any GCC internal prototype to avoid an error.
22912 Use char because int might match the return type of a GCC
22913 builtin and then its argument prototype would still apply. */
22918 /* The GNU C library defines this for functions which it implements
22919 to always fail with ENOSYS. Some functions are actually named
22920 something starting with __ and the normal name is an alias. */
22921 #if defined __stub_shmat || defined __stub___shmat
22933 rm -f conftest.
$ac_objext conftest
$ac_exeext
22934 if { (ac_try
="$ac_link"
22935 case "(($ac_try" in
22936 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22937 *) ac_try_echo=$ac_try;;
22939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22940 (eval "$ac_link") 2>conftest.er1
22942 grep -v '^ *+' conftest.er1 >conftest.err
22944 cat conftest.err >&5
22945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22946 (exit $ac_status); } && {
22947 test -z "$ac_c_werror_flag" ||
22948 test ! -s conftest.err
22949 } && test -s conftest$ac_exeext &&
22950 $as_test_x conftest$ac_exeext; then
22951 ac_cv_func_shmat=yes
22953 echo "$as_me: failed program was:" >&5
22954 sed 's/^/| /' conftest.$ac_ext >&5
22956 ac_cv_func_shmat=no
22959 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22960 conftest$ac_exeext conftest.$ac_ext
22962 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
22963 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
22965 if test $ac_cv_func_shmat = no; then
22966 { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
22967 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
22968 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
22969 echo $ECHO_N "(cached) $ECHO_C" >&6
22971 ac_check_lib_save_LIBS=$LIBS
22973 cat >conftest.$ac_ext <<_ACEOF
22976 cat confdefs.h >>conftest.$ac_ext
22977 cat >>conftest.$ac_ext <<_ACEOF
22978 /* end confdefs.h. */
22980 /* Override any GCC internal prototype to avoid an error.
22981 Use char because int might match the return type of a GCC
22982 builtin and then its argument prototype would still apply. */
22995 rm -f conftest.$ac_objext conftest$ac_exeext
22996 if { (ac_try="$ac_link"
22997 case "(($ac_try" in
22998 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22999 *) ac_try_echo
=$ac_try;;
23001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23002 (eval "$ac_link") 2>conftest.er1
23004 grep -v '^ *+' conftest.er1
>conftest.err
23006 cat conftest.err
>&5
23007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23008 (exit $ac_status); } && {
23009 test -z "$ac_c_werror_flag" ||
23010 test ! -s conftest.err
23011 } && test -s conftest
$ac_exeext &&
23012 $as_test_x conftest
$ac_exeext; then
23013 ac_cv_lib_ipc_shmat
=yes
23015 echo "$as_me: failed program was:" >&5
23016 sed 's/^/| /' conftest.
$ac_ext >&5
23018 ac_cv_lib_ipc_shmat
=no
23021 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
23022 conftest
$ac_exeext conftest.
$ac_ext
23023 LIBS
=$ac_check_lib_save_LIBS
23025 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
23026 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
23027 if test $ac_cv_lib_ipc_shmat = yes; then
23028 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lipc"
23034 # Check for libraries that X11R6 Xt/Xaw programs need.
23035 ac_save_LDFLAGS
=$LDFLAGS
23036 test -n "$x_libraries" && LDFLAGS
="$LDFLAGS -L$x_libraries"
23037 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
23038 # check for ICE first), but we must link in the order -lSM -lICE or
23039 # we get undefined symbols. So assume we have SM if we have ICE.
23040 # These have to be linked with before -lX11, unlike the other
23041 # libraries we check for below, so use a different variable.
23042 # John Interrante, Karl Berry
23043 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
23044 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
23045 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
23046 echo $ECHO_N "(cached) $ECHO_C" >&6
23048 ac_check_lib_save_LIBS
=$LIBS
23049 LIBS
="-lICE $X_EXTRA_LIBS $LIBS"
23050 cat >conftest.
$ac_ext <<_ACEOF
23053 cat confdefs.h
>>conftest.
$ac_ext
23054 cat >>conftest.
$ac_ext <<_ACEOF
23055 /* end confdefs.h. */
23057 /* Override any GCC internal prototype to avoid an error.
23058 Use char because int might match the return type of a GCC
23059 builtin and then its argument prototype would still apply. */
23063 char IceConnectionNumber ();
23067 return IceConnectionNumber ();
23072 rm -f conftest.
$ac_objext conftest
$ac_exeext
23073 if { (ac_try
="$ac_link"
23074 case "(($ac_try" in
23075 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23076 *) ac_try_echo=$ac_try;;
23078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23079 (eval "$ac_link") 2>conftest.er1
23081 grep -v '^ *+' conftest.er1 >conftest.err
23083 cat conftest.err >&5
23084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23085 (exit $ac_status); } && {
23086 test -z "$ac_c_werror_flag" ||
23087 test ! -s conftest.err
23088 } && test -s conftest$ac_exeext &&
23089 $as_test_x conftest$ac_exeext; then
23090 ac_cv_lib_ICE_IceConnectionNumber=yes
23092 echo "$as_me: failed program was:" >&5
23093 sed 's/^/| /' conftest.$ac_ext >&5
23095 ac_cv_lib_ICE_IceConnectionNumber=no
23098 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23099 conftest$ac_exeext conftest.$ac_ext
23100 LIBS=$ac_check_lib_save_LIBS
23102 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
23103 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
23104 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
23105 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
23108 LDFLAGS=$ac_save_LDFLAGS
23113 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
23114 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
23115 if test "${ac_cv_c_bigendian+set}" = set; then
23116 echo $ECHO_N "(cached) $ECHO_C" >&6
23118 # See if sys/param.h defines the BYTE_ORDER macro.
23119 cat >conftest.$ac_ext <<_ACEOF
23122 cat confdefs.h >>conftest.$ac_ext
23123 cat >>conftest.$ac_ext <<_ACEOF
23124 /* end confdefs.h. */
23125 #include <sys/types.h>
23126 #include <sys/param.h>
23131 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
23132 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
23133 bogus endian macros
23140 rm -f conftest.$ac_objext
23141 if { (ac_try="$ac_compile"
23142 case "(($ac_try" in
23143 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23144 *) ac_try_echo
=$ac_try;;
23146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23147 (eval "$ac_compile") 2>conftest.er1
23149 grep -v '^ *+' conftest.er1
>conftest.err
23151 cat conftest.err
>&5
23152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23153 (exit $ac_status); } && {
23154 test -z "$ac_c_werror_flag" ||
23155 test ! -s conftest.err
23156 } && test -s conftest.
$ac_objext; then
23157 # It does; now see whether it defined to BIG_ENDIAN or not.
23158 cat >conftest.
$ac_ext <<_ACEOF
23161 cat confdefs.h
>>conftest.
$ac_ext
23162 cat >>conftest.
$ac_ext <<_ACEOF
23163 /* end confdefs.h. */
23164 #include <sys/types.h>
23165 #include <sys/param.h>
23170 #if BYTE_ORDER != BIG_ENDIAN
23178 rm -f conftest.
$ac_objext
23179 if { (ac_try
="$ac_compile"
23180 case "(($ac_try" in
23181 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23182 *) ac_try_echo=$ac_try;;
23184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23185 (eval "$ac_compile") 2>conftest.er1
23187 grep -v '^ *+' conftest.er1 >conftest.err
23189 cat conftest.err >&5
23190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23191 (exit $ac_status); } && {
23192 test -z "$ac_c_werror_flag" ||
23193 test ! -s conftest.err
23194 } && test -s conftest.$ac_objext; then
23195 ac_cv_c_bigendian=yes
23197 echo "$as_me: failed program was:" >&5
23198 sed 's/^/| /' conftest.$ac_ext >&5
23200 ac_cv_c_bigendian=no
23203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23205 echo "$as_me: failed program was:" >&5
23206 sed 's/^/| /' conftest.$ac_ext >&5
23208 # It does not; compile a test program.
23209 if test "$cross_compiling" = yes; then
23210 # try to guess the endianness by grepping values into an object file
23211 ac_cv_c_bigendian=unknown
23212 cat >conftest.$ac_ext <<_ACEOF
23215 cat confdefs.h >>conftest.$ac_ext
23216 cat >>conftest.$ac_ext <<_ACEOF
23217 /* end confdefs.h. */
23218 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
23219 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
23220 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
23221 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
23222 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
23223 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
23227 _ascii (); _ebcdic ();
23232 rm -f conftest.$ac_objext
23233 if { (ac_try="$ac_compile"
23234 case "(($ac_try" in
23235 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23236 *) ac_try_echo
=$ac_try;;
23238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23239 (eval "$ac_compile") 2>conftest.er1
23241 grep -v '^ *+' conftest.er1
>conftest.err
23243 cat conftest.err
>&5
23244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23245 (exit $ac_status); } && {
23246 test -z "$ac_c_werror_flag" ||
23247 test ! -s conftest.err
23248 } && test -s conftest.
$ac_objext; then
23249 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
23250 ac_cv_c_bigendian
=yes
23252 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
23253 if test "$ac_cv_c_bigendian" = unknown
; then
23254 ac_cv_c_bigendian
=no
23256 # finding both strings is unlikely to happen, but who knows?
23257 ac_cv_c_bigendian
=unknown
23261 echo "$as_me: failed program was:" >&5
23262 sed 's/^/| /' conftest.
$ac_ext >&5
23267 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23269 cat >conftest.
$ac_ext <<_ACEOF
23272 cat confdefs.h
>>conftest.
$ac_ext
23273 cat >>conftest.
$ac_ext <<_ACEOF
23274 /* end confdefs.h. */
23275 $ac_includes_default
23280 /* Are we little or big endian? From Harbison&Steele. */
23284 char c[sizeof (long int)];
23287 return u.c[sizeof (long int) - 1] == 1;
23293 rm -f conftest
$ac_exeext
23294 if { (ac_try
="$ac_link"
23295 case "(($ac_try" in
23296 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23297 *) ac_try_echo=$ac_try;;
23299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23300 (eval "$ac_link") 2>&5
23302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23303 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23304 { (case "(($ac_try" in
23305 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23306 *) ac_try_echo
=$ac_try;;
23308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23309 (eval "$ac_try") 2>&5
23311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23312 (exit $ac_status); }; }; then
23313 ac_cv_c_bigendian
=no
23315 echo "$as_me: program exited with status $ac_status" >&5
23316 echo "$as_me: failed program was:" >&5
23317 sed 's/^/| /' conftest.
$ac_ext >&5
23319 ( exit $ac_status )
23320 ac_cv_c_bigendian
=yes
23322 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
23328 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23330 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
23331 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
23332 case $ac_cv_c_bigendian in
23335 cat >>confdefs.h
<<\_ACEOF
23336 #define WORDS_BIGENDIAN 1
23342 { { echo "$as_me:$LINENO: error: unknown endianness
23343 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
23344 echo "$as_me: error: unknown endianness
23345 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
23346 { (exit 1); exit 1; }; } ;;
23349 { echo "$as_me:$LINENO: checking for inline" >&5
23350 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
23351 if test "${ac_cv_c_inline+set}" = set; then
23352 echo $ECHO_N "(cached) $ECHO_C" >&6
23355 for ac_kw
in inline __inline__ __inline
; do
23356 cat >conftest.
$ac_ext <<_ACEOF
23359 cat confdefs.h
>>conftest.
$ac_ext
23360 cat >>conftest.
$ac_ext <<_ACEOF
23361 /* end confdefs.h. */
23362 #ifndef __cplusplus
23364 static $ac_kw foo_t static_foo () {return 0; }
23365 $ac_kw foo_t foo () {return 0; }
23369 rm -f conftest.
$ac_objext
23370 if { (ac_try
="$ac_compile"
23371 case "(($ac_try" in
23372 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23373 *) ac_try_echo=$ac_try;;
23375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23376 (eval "$ac_compile") 2>conftest.er1
23378 grep -v '^ *+' conftest.er1 >conftest.err
23380 cat conftest.err >&5
23381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23382 (exit $ac_status); } && {
23383 test -z "$ac_c_werror_flag" ||
23384 test ! -s conftest.err
23385 } && test -s conftest.$ac_objext; then
23386 ac_cv_c_inline=$ac_kw
23388 echo "$as_me: failed program was:" >&5
23389 sed 's/^/| /' conftest.$ac_ext >&5
23394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23395 test "$ac_cv_c_inline" != no && break
23399 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
23400 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
23403 case $ac_cv_c_inline in
23406 case $ac_cv_c_inline in
23408 *) ac_val=$ac_cv_c_inline;;
23410 cat >>confdefs.h <<_ACEOF
23411 #ifndef __cplusplus
23412 #define inline $ac_val
23418 { echo "$as_me:$LINENO: checking for unsigned char" >&5
23419 echo $ECHO_N "checking for unsigned char... $ECHO_C" >&6; }
23420 if test "${ac_cv_type_unsigned_char+set}" = set; then
23421 echo $ECHO_N "(cached) $ECHO_C" >&6
23423 cat >conftest.$ac_ext <<_ACEOF
23426 cat confdefs.h >>conftest.$ac_ext
23427 cat >>conftest.$ac_ext <<_ACEOF
23428 /* end confdefs.h. */
23429 $ac_includes_default
23430 typedef unsigned char ac__type_new_;
23434 if ((ac__type_new_ *) 0)
23436 if (sizeof (ac__type_new_))
23442 rm -f conftest.$ac_objext
23443 if { (ac_try="$ac_compile"
23444 case "(($ac_try" in
23445 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23446 *) ac_try_echo
=$ac_try;;
23448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23449 (eval "$ac_compile") 2>conftest.er1
23451 grep -v '^ *+' conftest.er1
>conftest.err
23453 cat conftest.err
>&5
23454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23455 (exit $ac_status); } && {
23456 test -z "$ac_c_werror_flag" ||
23457 test ! -s conftest.err
23458 } && test -s conftest.
$ac_objext; then
23459 ac_cv_type_unsigned_char
=yes
23461 echo "$as_me: failed program was:" >&5
23462 sed 's/^/| /' conftest.
$ac_ext >&5
23464 ac_cv_type_unsigned_char
=no
23467 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23469 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_char" >&5
23470 echo "${ECHO_T}$ac_cv_type_unsigned_char" >&6; }
23472 # The cast to long int works around a bug in the HP C Compiler
23473 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23474 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23475 # This bug is HP SR number 8606223364.
23476 { echo "$as_me:$LINENO: checking size of unsigned char" >&5
23477 echo $ECHO_N "checking size of unsigned char... $ECHO_C" >&6; }
23478 if test "${ac_cv_sizeof_unsigned_char+set}" = set; then
23479 echo $ECHO_N "(cached) $ECHO_C" >&6
23481 if test "$cross_compiling" = yes; then
23482 # Depending upon the size, compute the lo and hi bounds.
23483 cat >conftest.
$ac_ext <<_ACEOF
23486 cat confdefs.h
>>conftest.
$ac_ext
23487 cat >>conftest.
$ac_ext <<_ACEOF
23488 /* end confdefs.h. */
23489 $ac_includes_default
23490 typedef unsigned char ac__type_sizeof_;
23494 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
23501 rm -f conftest.
$ac_objext
23502 if { (ac_try
="$ac_compile"
23503 case "(($ac_try" in
23504 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23505 *) ac_try_echo=$ac_try;;
23507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23508 (eval "$ac_compile") 2>conftest.er1
23510 grep -v '^ *+' conftest.er1 >conftest.err
23512 cat conftest.err >&5
23513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23514 (exit $ac_status); } && {
23515 test -z "$ac_c_werror_flag" ||
23516 test ! -s conftest.err
23517 } && test -s conftest.$ac_objext; then
23520 cat >conftest.$ac_ext <<_ACEOF
23523 cat confdefs.h >>conftest.$ac_ext
23524 cat >>conftest.$ac_ext <<_ACEOF
23525 /* end confdefs.h. */
23526 $ac_includes_default
23527 typedef unsigned char ac__type_sizeof_;
23531 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23538 rm -f conftest.$ac_objext
23539 if { (ac_try="$ac_compile"
23540 case "(($ac_try" in
23541 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23542 *) ac_try_echo
=$ac_try;;
23544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23545 (eval "$ac_compile") 2>conftest.er1
23547 grep -v '^ *+' conftest.er1
>conftest.err
23549 cat conftest.err
>&5
23550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23551 (exit $ac_status); } && {
23552 test -z "$ac_c_werror_flag" ||
23553 test ! -s conftest.err
23554 } && test -s conftest.
$ac_objext; then
23555 ac_hi
=$ac_mid; break
23557 echo "$as_me: failed program was:" >&5
23558 sed 's/^/| /' conftest.
$ac_ext >&5
23560 ac_lo
=`expr $ac_mid + 1`
23561 if test $ac_lo -le $ac_mid; then
23565 ac_mid
=`expr 2 '*' $ac_mid + 1`
23568 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23571 echo "$as_me: failed program was:" >&5
23572 sed 's/^/| /' conftest.
$ac_ext >&5
23574 cat >conftest.
$ac_ext <<_ACEOF
23577 cat confdefs.h
>>conftest.
$ac_ext
23578 cat >>conftest.
$ac_ext <<_ACEOF
23579 /* end confdefs.h. */
23580 $ac_includes_default
23581 typedef unsigned char ac__type_sizeof_;
23585 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
23592 rm -f conftest.
$ac_objext
23593 if { (ac_try
="$ac_compile"
23594 case "(($ac_try" in
23595 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23596 *) ac_try_echo=$ac_try;;
23598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23599 (eval "$ac_compile") 2>conftest.er1
23601 grep -v '^ *+' conftest.er1 >conftest.err
23603 cat conftest.err >&5
23604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23605 (exit $ac_status); } && {
23606 test -z "$ac_c_werror_flag" ||
23607 test ! -s conftest.err
23608 } && test -s conftest.$ac_objext; then
23611 cat >conftest.$ac_ext <<_ACEOF
23614 cat confdefs.h >>conftest.$ac_ext
23615 cat >>conftest.$ac_ext <<_ACEOF
23616 /* end confdefs.h. */
23617 $ac_includes_default
23618 typedef unsigned char ac__type_sizeof_;
23622 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
23629 rm -f conftest.$ac_objext
23630 if { (ac_try="$ac_compile"
23631 case "(($ac_try" in
23632 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23633 *) ac_try_echo
=$ac_try;;
23635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23636 (eval "$ac_compile") 2>conftest.er1
23638 grep -v '^ *+' conftest.er1
>conftest.err
23640 cat conftest.err
>&5
23641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23642 (exit $ac_status); } && {
23643 test -z "$ac_c_werror_flag" ||
23644 test ! -s conftest.err
23645 } && test -s conftest.
$ac_objext; then
23646 ac_lo
=$ac_mid; break
23648 echo "$as_me: failed program was:" >&5
23649 sed 's/^/| /' conftest.
$ac_ext >&5
23651 ac_hi
=`expr '(' $ac_mid ')' - 1`
23652 if test $ac_mid -le $ac_hi; then
23656 ac_mid
=`expr 2 '*' $ac_mid`
23659 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23662 echo "$as_me: failed program was:" >&5
23663 sed 's/^/| /' conftest.
$ac_ext >&5
23668 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23671 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23672 # Binary search between lo and hi bounds.
23673 while test "x$ac_lo" != "x$ac_hi"; do
23674 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23675 cat >conftest.
$ac_ext <<_ACEOF
23678 cat confdefs.h
>>conftest.
$ac_ext
23679 cat >>conftest.
$ac_ext <<_ACEOF
23680 /* end confdefs.h. */
23681 $ac_includes_default
23682 typedef unsigned char ac__type_sizeof_;
23686 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23693 rm -f conftest.
$ac_objext
23694 if { (ac_try
="$ac_compile"
23695 case "(($ac_try" in
23696 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23697 *) ac_try_echo=$ac_try;;
23699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23700 (eval "$ac_compile") 2>conftest.er1
23702 grep -v '^ *+' conftest.er1 >conftest.err
23704 cat conftest.err >&5
23705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23706 (exit $ac_status); } && {
23707 test -z "$ac_c_werror_flag" ||
23708 test ! -s conftest.err
23709 } && test -s conftest.$ac_objext; then
23712 echo "$as_me: failed program was:" >&5
23713 sed 's/^/| /' conftest.$ac_ext >&5
23715 ac_lo=`expr '(' $ac_mid ')' + 1`
23718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23721 ?*) ac_cv_sizeof_unsigned_char=$ac_lo;;
23722 '') if test "$ac_cv_type_unsigned_char" = yes; then
23723 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned char)
23724 See \`config.log
' for more details." >&5
23725 echo "$as_me: error: cannot compute sizeof (unsigned char)
23726 See \`config.log' for more details.
" >&2;}
23727 { (exit 77); exit 77; }; }
23729 ac_cv_sizeof_unsigned_char=0
23733 cat >conftest.$ac_ext <<_ACEOF
23736 cat confdefs.h >>conftest.$ac_ext
23737 cat >>conftest.$ac_ext <<_ACEOF
23738 /* end confdefs.h. */
23739 $ac_includes_default
23740 typedef unsigned char ac__type_sizeof_;
23741 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23742 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23744 #include <stdlib.h>
23749 FILE *f = fopen ("conftest.val
", "w
");
23752 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23754 long int i = longval ();
23755 if (i != ((long int) (sizeof (ac__type_sizeof_))))
23757 fprintf (f, "%ld
\n", i);
23761 unsigned long int i = ulongval ();
23762 if (i != ((long int) (sizeof (ac__type_sizeof_))))
23764 fprintf (f, "%lu
\n", i);
23766 return ferror (f) || fclose (f) != 0;
23772 rm -f conftest$ac_exeext
23773 if { (ac_try="$ac_link"
23774 case "(($ac_try" in
23775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23776 *) ac_try_echo=$ac_try;;
23778 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23779 (eval "$ac_link") 2>&5
23781 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23782 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23783 { (case "(($ac_try" in
23784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23785 *) ac_try_echo=$ac_try;;
23787 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23788 (eval "$ac_try") 2>&5
23790 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23791 (exit $ac_status); }; }; then
23792 ac_cv_sizeof_unsigned_char=`cat conftest.val`
23794 echo "$as_me: program exited with status
$ac_status" >&5
23795 echo "$as_me: failed program was
:" >&5
23796 sed 's/^/| /' conftest.$ac_ext >&5
23798 ( exit $ac_status )
23799 if test "$ac_cv_type_unsigned_char" = yes; then
23800 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(unsigned char
)
23801 See \
`config.log' for more details." >&5
23802 echo "$as_me: error: cannot compute sizeof (unsigned char)
23803 See \`config.log
' for more details." >&2;}
23804 { (exit 77); exit 77; }; }
23806 ac_cv_sizeof_unsigned_char=0
23809 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23813 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_char" >&5
23814 echo "${ECHO_T}$ac_cv_sizeof_unsigned_char" >&6; }
23818 cat >>confdefs.h <<_ACEOF
23819 #define SIZEOF_UNSIGNED_CHAR $ac_cv_sizeof_unsigned_char
23823 { echo "$as_me:$LINENO: checking for unsigned short" >&5
23824 echo $ECHO_N "checking for unsigned short... $ECHO_C" >&6; }
23825 if test "${ac_cv_type_unsigned_short+set}" = set; then
23826 echo $ECHO_N "(cached) $ECHO_C" >&6
23828 cat >conftest.$ac_ext <<_ACEOF
23831 cat confdefs.h >>conftest.$ac_ext
23832 cat >>conftest.$ac_ext <<_ACEOF
23833 /* end confdefs.h. */
23834 $ac_includes_default
23835 typedef unsigned short ac__type_new_;
23839 if ((ac__type_new_ *) 0)
23841 if (sizeof (ac__type_new_))
23847 rm -f conftest.$ac_objext
23848 if { (ac_try="$ac_compile"
23849 case "(($ac_try" in
23850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23851 *) ac_try_echo=$ac_try;;
23853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23854 (eval "$ac_compile") 2>conftest.er1
23856 grep -v '^
*+' conftest.er1 >conftest.err
23858 cat conftest.err >&5
23859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23860 (exit $ac_status); } && {
23861 test -z "$ac_c_werror_flag" ||
23862 test ! -s conftest.err
23863 } && test -s conftest.$ac_objext; then
23864 ac_cv_type_unsigned_short=yes
23866 echo "$as_me: failed program was:" >&5
23867 sed 's
/^
/|
/' conftest.$ac_ext >&5
23869 ac_cv_type_unsigned_short=no
23872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23874 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_short" >&5
23875 echo "${ECHO_T}$ac_cv_type_unsigned_short" >&6; }
23877 # The cast to long int works around a bug in the HP C Compiler
23878 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23879 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23880 # This bug is HP SR number 8606223364.
23881 { echo "$as_me:$LINENO: checking size of unsigned short" >&5
23882 echo $ECHO_N "checking size of unsigned short... $ECHO_C" >&6; }
23883 if test "${ac_cv_sizeof_unsigned_short+set}" = set; then
23884 echo $ECHO_N "(cached) $ECHO_C" >&6
23886 if test "$cross_compiling" = yes; then
23887 # Depending upon the size, compute the lo and hi bounds.
23888 cat >conftest.
$ac_ext <<_ACEOF
23891 cat confdefs.h
>>conftest.
$ac_ext
23892 cat >>conftest.
$ac_ext <<_ACEOF
23893 /* end confdefs.h. */
23894 $ac_includes_default
23895 typedef unsigned short ac__type_sizeof_;
23899 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
23906 rm -f conftest.
$ac_objext
23907 if { (ac_try
="$ac_compile"
23908 case "(($ac_try" in
23909 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23910 *) ac_try_echo=$ac_try;;
23912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23913 (eval "$ac_compile") 2>conftest.er1
23915 grep -v '^ *+' conftest.er1 >conftest.err
23917 cat conftest.err >&5
23918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23919 (exit $ac_status); } && {
23920 test -z "$ac_c_werror_flag" ||
23921 test ! -s conftest.err
23922 } && test -s conftest.$ac_objext; then
23925 cat >conftest.$ac_ext <<_ACEOF
23928 cat confdefs.h >>conftest.$ac_ext
23929 cat >>conftest.$ac_ext <<_ACEOF
23930 /* end confdefs.h. */
23931 $ac_includes_default
23932 typedef unsigned short ac__type_sizeof_;
23936 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23943 rm -f conftest.$ac_objext
23944 if { (ac_try="$ac_compile"
23945 case "(($ac_try" in
23946 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23947 *) ac_try_echo
=$ac_try;;
23949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23950 (eval "$ac_compile") 2>conftest.er1
23952 grep -v '^ *+' conftest.er1
>conftest.err
23954 cat conftest.err
>&5
23955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23956 (exit $ac_status); } && {
23957 test -z "$ac_c_werror_flag" ||
23958 test ! -s conftest.err
23959 } && test -s conftest.
$ac_objext; then
23960 ac_hi
=$ac_mid; break
23962 echo "$as_me: failed program was:" >&5
23963 sed 's/^/| /' conftest.
$ac_ext >&5
23965 ac_lo
=`expr $ac_mid + 1`
23966 if test $ac_lo -le $ac_mid; then
23970 ac_mid
=`expr 2 '*' $ac_mid + 1`
23973 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23976 echo "$as_me: failed program was:" >&5
23977 sed 's/^/| /' conftest.
$ac_ext >&5
23979 cat >conftest.
$ac_ext <<_ACEOF
23982 cat confdefs.h
>>conftest.
$ac_ext
23983 cat >>conftest.
$ac_ext <<_ACEOF
23984 /* end confdefs.h. */
23985 $ac_includes_default
23986 typedef unsigned short ac__type_sizeof_;
23990 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
23997 rm -f conftest.
$ac_objext
23998 if { (ac_try
="$ac_compile"
23999 case "(($ac_try" in
24000 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24001 *) ac_try_echo=$ac_try;;
24003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24004 (eval "$ac_compile") 2>conftest.er1
24006 grep -v '^ *+' conftest.er1 >conftest.err
24008 cat conftest.err >&5
24009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24010 (exit $ac_status); } && {
24011 test -z "$ac_c_werror_flag" ||
24012 test ! -s conftest.err
24013 } && test -s conftest.$ac_objext; then
24016 cat >conftest.$ac_ext <<_ACEOF
24019 cat confdefs.h >>conftest.$ac_ext
24020 cat >>conftest.$ac_ext <<_ACEOF
24021 /* end confdefs.h. */
24022 $ac_includes_default
24023 typedef unsigned short ac__type_sizeof_;
24027 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24034 rm -f conftest.$ac_objext
24035 if { (ac_try="$ac_compile"
24036 case "(($ac_try" in
24037 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24038 *) ac_try_echo
=$ac_try;;
24040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24041 (eval "$ac_compile") 2>conftest.er1
24043 grep -v '^ *+' conftest.er1
>conftest.err
24045 cat conftest.err
>&5
24046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24047 (exit $ac_status); } && {
24048 test -z "$ac_c_werror_flag" ||
24049 test ! -s conftest.err
24050 } && test -s conftest.
$ac_objext; then
24051 ac_lo
=$ac_mid; break
24053 echo "$as_me: failed program was:" >&5
24054 sed 's/^/| /' conftest.
$ac_ext >&5
24056 ac_hi
=`expr '(' $ac_mid ')' - 1`
24057 if test $ac_mid -le $ac_hi; then
24061 ac_mid
=`expr 2 '*' $ac_mid`
24064 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24067 echo "$as_me: failed program was:" >&5
24068 sed 's/^/| /' conftest.
$ac_ext >&5
24073 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24076 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24077 # Binary search between lo and hi bounds.
24078 while test "x$ac_lo" != "x$ac_hi"; do
24079 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24080 cat >conftest.
$ac_ext <<_ACEOF
24083 cat confdefs.h
>>conftest.
$ac_ext
24084 cat >>conftest.
$ac_ext <<_ACEOF
24085 /* end confdefs.h. */
24086 $ac_includes_default
24087 typedef unsigned short ac__type_sizeof_;
24091 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24098 rm -f conftest.
$ac_objext
24099 if { (ac_try
="$ac_compile"
24100 case "(($ac_try" in
24101 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24102 *) ac_try_echo=$ac_try;;
24104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24105 (eval "$ac_compile") 2>conftest.er1
24107 grep -v '^ *+' conftest.er1 >conftest.err
24109 cat conftest.err >&5
24110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24111 (exit $ac_status); } && {
24112 test -z "$ac_c_werror_flag" ||
24113 test ! -s conftest.err
24114 } && test -s conftest.$ac_objext; then
24117 echo "$as_me: failed program was:" >&5
24118 sed 's/^/| /' conftest.$ac_ext >&5
24120 ac_lo=`expr '(' $ac_mid ')' + 1`
24123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24126 ?*) ac_cv_sizeof_unsigned_short=$ac_lo;;
24127 '') if test "$ac_cv_type_unsigned_short" = yes; then
24128 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short)
24129 See \`config.log
' for more details." >&5
24130 echo "$as_me: error: cannot compute sizeof (unsigned short)
24131 See \`config.log' for more details.
" >&2;}
24132 { (exit 77); exit 77; }; }
24134 ac_cv_sizeof_unsigned_short=0
24138 cat >conftest.$ac_ext <<_ACEOF
24141 cat confdefs.h >>conftest.$ac_ext
24142 cat >>conftest.$ac_ext <<_ACEOF
24143 /* end confdefs.h. */
24144 $ac_includes_default
24145 typedef unsigned short ac__type_sizeof_;
24146 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24147 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24149 #include <stdlib.h>
24154 FILE *f = fopen ("conftest.val
", "w
");
24157 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24159 long int i = longval ();
24160 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24162 fprintf (f, "%ld
\n", i);
24166 unsigned long int i = ulongval ();
24167 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24169 fprintf (f, "%lu
\n", i);
24171 return ferror (f) || fclose (f) != 0;
24177 rm -f conftest$ac_exeext
24178 if { (ac_try="$ac_link"
24179 case "(($ac_try" in
24180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24181 *) ac_try_echo=$ac_try;;
24183 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24184 (eval "$ac_link") 2>&5
24186 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24187 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24188 { (case "(($ac_try" in
24189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24190 *) ac_try_echo=$ac_try;;
24192 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24193 (eval "$ac_try") 2>&5
24195 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24196 (exit $ac_status); }; }; then
24197 ac_cv_sizeof_unsigned_short=`cat conftest.val`
24199 echo "$as_me: program exited with status
$ac_status" >&5
24200 echo "$as_me: failed program was
:" >&5
24201 sed 's/^/| /' conftest.$ac_ext >&5
24203 ( exit $ac_status )
24204 if test "$ac_cv_type_unsigned_short" = yes; then
24205 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(unsigned short
)
24206 See \
`config.log' for more details." >&5
24207 echo "$as_me: error: cannot compute sizeof (unsigned short)
24208 See \`config.log
' for more details." >&2;}
24209 { (exit 77); exit 77; }; }
24211 ac_cv_sizeof_unsigned_short=0
24214 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24218 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_short" >&5
24219 echo "${ECHO_T}$ac_cv_sizeof_unsigned_short" >&6; }
24223 cat >>confdefs.h <<_ACEOF
24224 #define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
24228 { echo "$as_me:$LINENO: checking for unsigned int" >&5
24229 echo $ECHO_N "checking for unsigned int... $ECHO_C" >&6; }
24230 if test "${ac_cv_type_unsigned_int+set}" = set; then
24231 echo $ECHO_N "(cached) $ECHO_C" >&6
24233 cat >conftest.$ac_ext <<_ACEOF
24236 cat confdefs.h >>conftest.$ac_ext
24237 cat >>conftest.$ac_ext <<_ACEOF
24238 /* end confdefs.h. */
24239 $ac_includes_default
24240 typedef unsigned int ac__type_new_;
24244 if ((ac__type_new_ *) 0)
24246 if (sizeof (ac__type_new_))
24252 rm -f conftest.$ac_objext
24253 if { (ac_try="$ac_compile"
24254 case "(($ac_try" in
24255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24256 *) ac_try_echo=$ac_try;;
24258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24259 (eval "$ac_compile") 2>conftest.er1
24261 grep -v '^
*+' conftest.er1 >conftest.err
24263 cat conftest.err >&5
24264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24265 (exit $ac_status); } && {
24266 test -z "$ac_c_werror_flag" ||
24267 test ! -s conftest.err
24268 } && test -s conftest.$ac_objext; then
24269 ac_cv_type_unsigned_int=yes
24271 echo "$as_me: failed program was:" >&5
24272 sed 's
/^
/|
/' conftest.$ac_ext >&5
24274 ac_cv_type_unsigned_int=no
24277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24279 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_int" >&5
24280 echo "${ECHO_T}$ac_cv_type_unsigned_int" >&6; }
24282 # The cast to long int works around a bug in the HP C Compiler
24283 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24284 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24285 # This bug is HP SR number 8606223364.
24286 { echo "$as_me:$LINENO: checking size of unsigned int" >&5
24287 echo $ECHO_N "checking size of unsigned int... $ECHO_C" >&6; }
24288 if test "${ac_cv_sizeof_unsigned_int+set}" = set; then
24289 echo $ECHO_N "(cached) $ECHO_C" >&6
24291 if test "$cross_compiling" = yes; then
24292 # Depending upon the size, compute the lo and hi bounds.
24293 cat >conftest.
$ac_ext <<_ACEOF
24296 cat confdefs.h
>>conftest.
$ac_ext
24297 cat >>conftest.
$ac_ext <<_ACEOF
24298 /* end confdefs.h. */
24299 $ac_includes_default
24300 typedef unsigned int ac__type_sizeof_;
24304 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24311 rm -f conftest.
$ac_objext
24312 if { (ac_try
="$ac_compile"
24313 case "(($ac_try" in
24314 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24315 *) ac_try_echo=$ac_try;;
24317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24318 (eval "$ac_compile") 2>conftest.er1
24320 grep -v '^ *+' conftest.er1 >conftest.err
24322 cat conftest.err >&5
24323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24324 (exit $ac_status); } && {
24325 test -z "$ac_c_werror_flag" ||
24326 test ! -s conftest.err
24327 } && test -s conftest.$ac_objext; then
24330 cat >conftest.$ac_ext <<_ACEOF
24333 cat confdefs.h >>conftest.$ac_ext
24334 cat >>conftest.$ac_ext <<_ACEOF
24335 /* end confdefs.h. */
24336 $ac_includes_default
24337 typedef unsigned int ac__type_sizeof_;
24341 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24348 rm -f conftest.$ac_objext
24349 if { (ac_try="$ac_compile"
24350 case "(($ac_try" in
24351 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24352 *) ac_try_echo
=$ac_try;;
24354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24355 (eval "$ac_compile") 2>conftest.er1
24357 grep -v '^ *+' conftest.er1
>conftest.err
24359 cat conftest.err
>&5
24360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24361 (exit $ac_status); } && {
24362 test -z "$ac_c_werror_flag" ||
24363 test ! -s conftest.err
24364 } && test -s conftest.
$ac_objext; then
24365 ac_hi
=$ac_mid; break
24367 echo "$as_me: failed program was:" >&5
24368 sed 's/^/| /' conftest.
$ac_ext >&5
24370 ac_lo
=`expr $ac_mid + 1`
24371 if test $ac_lo -le $ac_mid; then
24375 ac_mid
=`expr 2 '*' $ac_mid + 1`
24378 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24381 echo "$as_me: failed program was:" >&5
24382 sed 's/^/| /' conftest.
$ac_ext >&5
24384 cat >conftest.
$ac_ext <<_ACEOF
24387 cat confdefs.h
>>conftest.
$ac_ext
24388 cat >>conftest.
$ac_ext <<_ACEOF
24389 /* end confdefs.h. */
24390 $ac_includes_default
24391 typedef unsigned int ac__type_sizeof_;
24395 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24402 rm -f conftest.
$ac_objext
24403 if { (ac_try
="$ac_compile"
24404 case "(($ac_try" in
24405 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24406 *) ac_try_echo=$ac_try;;
24408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24409 (eval "$ac_compile") 2>conftest.er1
24411 grep -v '^ *+' conftest.er1 >conftest.err
24413 cat conftest.err >&5
24414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24415 (exit $ac_status); } && {
24416 test -z "$ac_c_werror_flag" ||
24417 test ! -s conftest.err
24418 } && test -s conftest.$ac_objext; then
24421 cat >conftest.$ac_ext <<_ACEOF
24424 cat confdefs.h >>conftest.$ac_ext
24425 cat >>conftest.$ac_ext <<_ACEOF
24426 /* end confdefs.h. */
24427 $ac_includes_default
24428 typedef unsigned int ac__type_sizeof_;
24432 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24439 rm -f conftest.$ac_objext
24440 if { (ac_try="$ac_compile"
24441 case "(($ac_try" in
24442 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24443 *) ac_try_echo
=$ac_try;;
24445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24446 (eval "$ac_compile") 2>conftest.er1
24448 grep -v '^ *+' conftest.er1
>conftest.err
24450 cat conftest.err
>&5
24451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24452 (exit $ac_status); } && {
24453 test -z "$ac_c_werror_flag" ||
24454 test ! -s conftest.err
24455 } && test -s conftest.
$ac_objext; then
24456 ac_lo
=$ac_mid; break
24458 echo "$as_me: failed program was:" >&5
24459 sed 's/^/| /' conftest.
$ac_ext >&5
24461 ac_hi
=`expr '(' $ac_mid ')' - 1`
24462 if test $ac_mid -le $ac_hi; then
24466 ac_mid
=`expr 2 '*' $ac_mid`
24469 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24472 echo "$as_me: failed program was:" >&5
24473 sed 's/^/| /' conftest.
$ac_ext >&5
24478 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24481 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24482 # Binary search between lo and hi bounds.
24483 while test "x$ac_lo" != "x$ac_hi"; do
24484 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24485 cat >conftest.
$ac_ext <<_ACEOF
24488 cat confdefs.h
>>conftest.
$ac_ext
24489 cat >>conftest.
$ac_ext <<_ACEOF
24490 /* end confdefs.h. */
24491 $ac_includes_default
24492 typedef unsigned int ac__type_sizeof_;
24496 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24503 rm -f conftest.
$ac_objext
24504 if { (ac_try
="$ac_compile"
24505 case "(($ac_try" in
24506 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24507 *) ac_try_echo=$ac_try;;
24509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24510 (eval "$ac_compile") 2>conftest.er1
24512 grep -v '^ *+' conftest.er1 >conftest.err
24514 cat conftest.err >&5
24515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24516 (exit $ac_status); } && {
24517 test -z "$ac_c_werror_flag" ||
24518 test ! -s conftest.err
24519 } && test -s conftest.$ac_objext; then
24522 echo "$as_me: failed program was:" >&5
24523 sed 's/^/| /' conftest.$ac_ext >&5
24525 ac_lo=`expr '(' $ac_mid ')' + 1`
24528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24531 ?*) ac_cv_sizeof_unsigned_int=$ac_lo;;
24532 '') if test "$ac_cv_type_unsigned_int" = yes; then
24533 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int)
24534 See \`config.log
' for more details." >&5
24535 echo "$as_me: error: cannot compute sizeof (unsigned int)
24536 See \`config.log' for more details.
" >&2;}
24537 { (exit 77); exit 77; }; }
24539 ac_cv_sizeof_unsigned_int=0
24543 cat >conftest.$ac_ext <<_ACEOF
24546 cat confdefs.h >>conftest.$ac_ext
24547 cat >>conftest.$ac_ext <<_ACEOF
24548 /* end confdefs.h. */
24549 $ac_includes_default
24550 typedef unsigned int ac__type_sizeof_;
24551 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24552 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24554 #include <stdlib.h>
24559 FILE *f = fopen ("conftest.val
", "w
");
24562 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24564 long int i = longval ();
24565 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24567 fprintf (f, "%ld
\n", i);
24571 unsigned long int i = ulongval ();
24572 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24574 fprintf (f, "%lu
\n", i);
24576 return ferror (f) || fclose (f) != 0;
24582 rm -f conftest$ac_exeext
24583 if { (ac_try="$ac_link"
24584 case "(($ac_try" in
24585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24586 *) ac_try_echo=$ac_try;;
24588 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24589 (eval "$ac_link") 2>&5
24591 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24592 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24593 { (case "(($ac_try" in
24594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24595 *) ac_try_echo=$ac_try;;
24597 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24598 (eval "$ac_try") 2>&5
24600 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24601 (exit $ac_status); }; }; then
24602 ac_cv_sizeof_unsigned_int=`cat conftest.val`
24604 echo "$as_me: program exited with status
$ac_status" >&5
24605 echo "$as_me: failed program was
:" >&5
24606 sed 's/^/| /' conftest.$ac_ext >&5
24608 ( exit $ac_status )
24609 if test "$ac_cv_type_unsigned_int" = yes; then
24610 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(unsigned int
)
24611 See \
`config.log' for more details." >&5
24612 echo "$as_me: error: cannot compute sizeof (unsigned int)
24613 See \`config.log
' for more details." >&2;}
24614 { (exit 77); exit 77; }; }
24616 ac_cv_sizeof_unsigned_int=0
24619 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24623 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_int" >&5
24624 echo "${ECHO_T}$ac_cv_sizeof_unsigned_int" >&6; }
24628 cat >>confdefs.h <<_ACEOF
24629 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
24633 { echo "$as_me:$LINENO: checking for unsigned long" >&5
24634 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6; }
24635 if test "${ac_cv_type_unsigned_long+set}" = set; then
24636 echo $ECHO_N "(cached) $ECHO_C" >&6
24638 cat >conftest.$ac_ext <<_ACEOF
24641 cat confdefs.h >>conftest.$ac_ext
24642 cat >>conftest.$ac_ext <<_ACEOF
24643 /* end confdefs.h. */
24644 $ac_includes_default
24645 typedef unsigned long ac__type_new_;
24649 if ((ac__type_new_ *) 0)
24651 if (sizeof (ac__type_new_))
24657 rm -f conftest.$ac_objext
24658 if { (ac_try="$ac_compile"
24659 case "(($ac_try" in
24660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24661 *) ac_try_echo=$ac_try;;
24663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24664 (eval "$ac_compile") 2>conftest.er1
24666 grep -v '^
*+' conftest.er1 >conftest.err
24668 cat conftest.err >&5
24669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24670 (exit $ac_status); } && {
24671 test -z "$ac_c_werror_flag" ||
24672 test ! -s conftest.err
24673 } && test -s conftest.$ac_objext; then
24674 ac_cv_type_unsigned_long=yes
24676 echo "$as_me: failed program was:" >&5
24677 sed 's
/^
/|
/' conftest.$ac_ext >&5
24679 ac_cv_type_unsigned_long=no
24682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24684 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
24685 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6; }
24687 # The cast to long int works around a bug in the HP C Compiler
24688 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24689 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24690 # This bug is HP SR number 8606223364.
24691 { echo "$as_me:$LINENO: checking size of unsigned long" >&5
24692 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6; }
24693 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
24694 echo $ECHO_N "(cached) $ECHO_C" >&6
24696 if test "$cross_compiling" = yes; then
24697 # Depending upon the size, compute the lo and hi bounds.
24698 cat >conftest.
$ac_ext <<_ACEOF
24701 cat confdefs.h
>>conftest.
$ac_ext
24702 cat >>conftest.
$ac_ext <<_ACEOF
24703 /* end confdefs.h. */
24704 $ac_includes_default
24705 typedef unsigned long ac__type_sizeof_;
24709 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24716 rm -f conftest.
$ac_objext
24717 if { (ac_try
="$ac_compile"
24718 case "(($ac_try" in
24719 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24720 *) ac_try_echo=$ac_try;;
24722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24723 (eval "$ac_compile") 2>conftest.er1
24725 grep -v '^ *+' conftest.er1 >conftest.err
24727 cat conftest.err >&5
24728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24729 (exit $ac_status); } && {
24730 test -z "$ac_c_werror_flag" ||
24731 test ! -s conftest.err
24732 } && test -s conftest.$ac_objext; then
24735 cat >conftest.$ac_ext <<_ACEOF
24738 cat confdefs.h >>conftest.$ac_ext
24739 cat >>conftest.$ac_ext <<_ACEOF
24740 /* end confdefs.h. */
24741 $ac_includes_default
24742 typedef unsigned long ac__type_sizeof_;
24746 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24753 rm -f conftest.$ac_objext
24754 if { (ac_try="$ac_compile"
24755 case "(($ac_try" in
24756 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24757 *) ac_try_echo
=$ac_try;;
24759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24760 (eval "$ac_compile") 2>conftest.er1
24762 grep -v '^ *+' conftest.er1
>conftest.err
24764 cat conftest.err
>&5
24765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24766 (exit $ac_status); } && {
24767 test -z "$ac_c_werror_flag" ||
24768 test ! -s conftest.err
24769 } && test -s conftest.
$ac_objext; then
24770 ac_hi
=$ac_mid; break
24772 echo "$as_me: failed program was:" >&5
24773 sed 's/^/| /' conftest.
$ac_ext >&5
24775 ac_lo
=`expr $ac_mid + 1`
24776 if test $ac_lo -le $ac_mid; then
24780 ac_mid
=`expr 2 '*' $ac_mid + 1`
24783 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24786 echo "$as_me: failed program was:" >&5
24787 sed 's/^/| /' conftest.
$ac_ext >&5
24789 cat >conftest.
$ac_ext <<_ACEOF
24792 cat confdefs.h
>>conftest.
$ac_ext
24793 cat >>conftest.
$ac_ext <<_ACEOF
24794 /* end confdefs.h. */
24795 $ac_includes_default
24796 typedef unsigned long ac__type_sizeof_;
24800 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24807 rm -f conftest.
$ac_objext
24808 if { (ac_try
="$ac_compile"
24809 case "(($ac_try" in
24810 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24811 *) ac_try_echo=$ac_try;;
24813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24814 (eval "$ac_compile") 2>conftest.er1
24816 grep -v '^ *+' conftest.er1 >conftest.err
24818 cat conftest.err >&5
24819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24820 (exit $ac_status); } && {
24821 test -z "$ac_c_werror_flag" ||
24822 test ! -s conftest.err
24823 } && test -s conftest.$ac_objext; then
24826 cat >conftest.$ac_ext <<_ACEOF
24829 cat confdefs.h >>conftest.$ac_ext
24830 cat >>conftest.$ac_ext <<_ACEOF
24831 /* end confdefs.h. */
24832 $ac_includes_default
24833 typedef unsigned long ac__type_sizeof_;
24837 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24844 rm -f conftest.$ac_objext
24845 if { (ac_try="$ac_compile"
24846 case "(($ac_try" in
24847 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24848 *) ac_try_echo
=$ac_try;;
24850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24851 (eval "$ac_compile") 2>conftest.er1
24853 grep -v '^ *+' conftest.er1
>conftest.err
24855 cat conftest.err
>&5
24856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24857 (exit $ac_status); } && {
24858 test -z "$ac_c_werror_flag" ||
24859 test ! -s conftest.err
24860 } && test -s conftest.
$ac_objext; then
24861 ac_lo
=$ac_mid; break
24863 echo "$as_me: failed program was:" >&5
24864 sed 's/^/| /' conftest.
$ac_ext >&5
24866 ac_hi
=`expr '(' $ac_mid ')' - 1`
24867 if test $ac_mid -le $ac_hi; then
24871 ac_mid
=`expr 2 '*' $ac_mid`
24874 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24877 echo "$as_me: failed program was:" >&5
24878 sed 's/^/| /' conftest.
$ac_ext >&5
24883 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24886 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24887 # Binary search between lo and hi bounds.
24888 while test "x$ac_lo" != "x$ac_hi"; do
24889 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24890 cat >conftest.
$ac_ext <<_ACEOF
24893 cat confdefs.h
>>conftest.
$ac_ext
24894 cat >>conftest.
$ac_ext <<_ACEOF
24895 /* end confdefs.h. */
24896 $ac_includes_default
24897 typedef unsigned long ac__type_sizeof_;
24901 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24908 rm -f conftest.
$ac_objext
24909 if { (ac_try
="$ac_compile"
24910 case "(($ac_try" in
24911 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24912 *) ac_try_echo=$ac_try;;
24914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24915 (eval "$ac_compile") 2>conftest.er1
24917 grep -v '^ *+' conftest.er1 >conftest.err
24919 cat conftest.err >&5
24920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24921 (exit $ac_status); } && {
24922 test -z "$ac_c_werror_flag" ||
24923 test ! -s conftest.err
24924 } && test -s conftest.$ac_objext; then
24927 echo "$as_me: failed program was:" >&5
24928 sed 's/^/| /' conftest.$ac_ext >&5
24930 ac_lo=`expr '(' $ac_mid ')' + 1`
24933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24936 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
24937 '') if test "$ac_cv_type_unsigned_long" = yes; then
24938 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
24939 See \`config.log
' for more details." >&5
24940 echo "$as_me: error: cannot compute sizeof (unsigned long)
24941 See \`config.log' for more details.
" >&2;}
24942 { (exit 77); exit 77; }; }
24944 ac_cv_sizeof_unsigned_long=0
24948 cat >conftest.$ac_ext <<_ACEOF
24951 cat confdefs.h >>conftest.$ac_ext
24952 cat >>conftest.$ac_ext <<_ACEOF
24953 /* end confdefs.h. */
24954 $ac_includes_default
24955 typedef unsigned long ac__type_sizeof_;
24956 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24957 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24959 #include <stdlib.h>
24964 FILE *f = fopen ("conftest.val
", "w
");
24967 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24969 long int i = longval ();
24970 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24972 fprintf (f, "%ld
\n", i);
24976 unsigned long int i = ulongval ();
24977 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24979 fprintf (f, "%lu
\n", i);
24981 return ferror (f) || fclose (f) != 0;
24987 rm -f conftest$ac_exeext
24988 if { (ac_try="$ac_link"
24989 case "(($ac_try" in
24990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24991 *) ac_try_echo=$ac_try;;
24993 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24994 (eval "$ac_link") 2>&5
24996 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24997 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24998 { (case "(($ac_try" in
24999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25000 *) ac_try_echo=$ac_try;;
25002 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25003 (eval "$ac_try") 2>&5
25005 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25006 (exit $ac_status); }; }; then
25007 ac_cv_sizeof_unsigned_long=`cat conftest.val`
25009 echo "$as_me: program exited with status
$ac_status" >&5
25010 echo "$as_me: failed program was
:" >&5
25011 sed 's/^/| /' conftest.$ac_ext >&5
25013 ( exit $ac_status )
25014 if test "$ac_cv_type_unsigned_long" = yes; then
25015 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(unsigned long
)
25016 See \
`config.log' for more details." >&5
25017 echo "$as_me: error: cannot compute sizeof (unsigned long)
25018 See \`config.log
' for more details." >&2;}
25019 { (exit 77); exit 77; }; }
25021 ac_cv_sizeof_unsigned_long=0
25024 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25028 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
25029 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6; }
25033 cat >>confdefs.h <<_ACEOF
25034 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
25038 { echo "$as_me:$LINENO: checking for unsigned long long" >&5
25039 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
25040 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
25041 echo $ECHO_N "(cached) $ECHO_C" >&6
25043 cat >conftest.$ac_ext <<_ACEOF
25046 cat confdefs.h >>conftest.$ac_ext
25047 cat >>conftest.$ac_ext <<_ACEOF
25048 /* end confdefs.h. */
25049 $ac_includes_default
25050 typedef unsigned long long ac__type_new_;
25054 if ((ac__type_new_ *) 0)
25056 if (sizeof (ac__type_new_))
25062 rm -f conftest.$ac_objext
25063 if { (ac_try="$ac_compile"
25064 case "(($ac_try" in
25065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25066 *) ac_try_echo=$ac_try;;
25068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25069 (eval "$ac_compile") 2>conftest.er1
25071 grep -v '^
*+' conftest.er1 >conftest.err
25073 cat conftest.err >&5
25074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25075 (exit $ac_status); } && {
25076 test -z "$ac_c_werror_flag" ||
25077 test ! -s conftest.err
25078 } && test -s conftest.$ac_objext; then
25079 ac_cv_type_unsigned_long_long=yes
25081 echo "$as_me: failed program was:" >&5
25082 sed 's
/^
/|
/' conftest.$ac_ext >&5
25084 ac_cv_type_unsigned_long_long=no
25087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25089 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
25090 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
25092 # The cast to long int works around a bug in the HP C Compiler
25093 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25094 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25095 # This bug is HP SR number 8606223364.
25096 { echo "$as_me:$LINENO: checking size of unsigned long long" >&5
25097 echo $ECHO_N "checking size of unsigned long long... $ECHO_C" >&6; }
25098 if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then
25099 echo $ECHO_N "(cached) $ECHO_C" >&6
25101 if test "$cross_compiling" = yes; then
25102 # Depending upon the size, compute the lo and hi bounds.
25103 cat >conftest.
$ac_ext <<_ACEOF
25106 cat confdefs.h
>>conftest.
$ac_ext
25107 cat >>conftest.
$ac_ext <<_ACEOF
25108 /* end confdefs.h. */
25109 $ac_includes_default
25110 typedef unsigned long long ac__type_sizeof_;
25114 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
25121 rm -f conftest.
$ac_objext
25122 if { (ac_try
="$ac_compile"
25123 case "(($ac_try" in
25124 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25125 *) ac_try_echo=$ac_try;;
25127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25128 (eval "$ac_compile") 2>conftest.er1
25130 grep -v '^ *+' conftest.er1 >conftest.err
25132 cat conftest.err >&5
25133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25134 (exit $ac_status); } && {
25135 test -z "$ac_c_werror_flag" ||
25136 test ! -s conftest.err
25137 } && test -s conftest.$ac_objext; then
25140 cat >conftest.$ac_ext <<_ACEOF
25143 cat confdefs.h >>conftest.$ac_ext
25144 cat >>conftest.$ac_ext <<_ACEOF
25145 /* end confdefs.h. */
25146 $ac_includes_default
25147 typedef unsigned long long ac__type_sizeof_;
25151 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25158 rm -f conftest.$ac_objext
25159 if { (ac_try="$ac_compile"
25160 case "(($ac_try" in
25161 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25162 *) ac_try_echo
=$ac_try;;
25164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25165 (eval "$ac_compile") 2>conftest.er1
25167 grep -v '^ *+' conftest.er1
>conftest.err
25169 cat conftest.err
>&5
25170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25171 (exit $ac_status); } && {
25172 test -z "$ac_c_werror_flag" ||
25173 test ! -s conftest.err
25174 } && test -s conftest.
$ac_objext; then
25175 ac_hi
=$ac_mid; break
25177 echo "$as_me: failed program was:" >&5
25178 sed 's/^/| /' conftest.
$ac_ext >&5
25180 ac_lo
=`expr $ac_mid + 1`
25181 if test $ac_lo -le $ac_mid; then
25185 ac_mid
=`expr 2 '*' $ac_mid + 1`
25188 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25191 echo "$as_me: failed program was:" >&5
25192 sed 's/^/| /' conftest.
$ac_ext >&5
25194 cat >conftest.
$ac_ext <<_ACEOF
25197 cat confdefs.h
>>conftest.
$ac_ext
25198 cat >>conftest.
$ac_ext <<_ACEOF
25199 /* end confdefs.h. */
25200 $ac_includes_default
25201 typedef unsigned long long ac__type_sizeof_;
25205 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
25212 rm -f conftest.
$ac_objext
25213 if { (ac_try
="$ac_compile"
25214 case "(($ac_try" in
25215 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25216 *) ac_try_echo=$ac_try;;
25218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25219 (eval "$ac_compile") 2>conftest.er1
25221 grep -v '^ *+' conftest.er1 >conftest.err
25223 cat conftest.err >&5
25224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25225 (exit $ac_status); } && {
25226 test -z "$ac_c_werror_flag" ||
25227 test ! -s conftest.err
25228 } && test -s conftest.$ac_objext; then
25231 cat >conftest.$ac_ext <<_ACEOF
25234 cat confdefs.h >>conftest.$ac_ext
25235 cat >>conftest.$ac_ext <<_ACEOF
25236 /* end confdefs.h. */
25237 $ac_includes_default
25238 typedef unsigned long long ac__type_sizeof_;
25242 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
25249 rm -f conftest.$ac_objext
25250 if { (ac_try="$ac_compile"
25251 case "(($ac_try" in
25252 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25253 *) ac_try_echo
=$ac_try;;
25255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25256 (eval "$ac_compile") 2>conftest.er1
25258 grep -v '^ *+' conftest.er1
>conftest.err
25260 cat conftest.err
>&5
25261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25262 (exit $ac_status); } && {
25263 test -z "$ac_c_werror_flag" ||
25264 test ! -s conftest.err
25265 } && test -s conftest.
$ac_objext; then
25266 ac_lo
=$ac_mid; break
25268 echo "$as_me: failed program was:" >&5
25269 sed 's/^/| /' conftest.
$ac_ext >&5
25271 ac_hi
=`expr '(' $ac_mid ')' - 1`
25272 if test $ac_mid -le $ac_hi; then
25276 ac_mid
=`expr 2 '*' $ac_mid`
25279 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25282 echo "$as_me: failed program was:" >&5
25283 sed 's/^/| /' conftest.
$ac_ext >&5
25288 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25291 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25292 # Binary search between lo and hi bounds.
25293 while test "x$ac_lo" != "x$ac_hi"; do
25294 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25295 cat >conftest.
$ac_ext <<_ACEOF
25298 cat confdefs.h
>>conftest.
$ac_ext
25299 cat >>conftest.
$ac_ext <<_ACEOF
25300 /* end confdefs.h. */
25301 $ac_includes_default
25302 typedef unsigned long long ac__type_sizeof_;
25306 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25313 rm -f conftest.
$ac_objext
25314 if { (ac_try
="$ac_compile"
25315 case "(($ac_try" in
25316 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25317 *) ac_try_echo=$ac_try;;
25319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25320 (eval "$ac_compile") 2>conftest.er1
25322 grep -v '^ *+' conftest.er1 >conftest.err
25324 cat conftest.err >&5
25325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25326 (exit $ac_status); } && {
25327 test -z "$ac_c_werror_flag" ||
25328 test ! -s conftest.err
25329 } && test -s conftest.$ac_objext; then
25332 echo "$as_me: failed program was:" >&5
25333 sed 's/^/| /' conftest.$ac_ext >&5
25335 ac_lo=`expr '(' $ac_mid ')' + 1`
25338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25341 ?*) ac_cv_sizeof_unsigned_long_long=$ac_lo;;
25342 '') if test "$ac_cv_type_unsigned_long_long" = yes; then
25343 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long long)
25344 See \`config.log
' for more details." >&5
25345 echo "$as_me: error: cannot compute sizeof (unsigned long long)
25346 See \`config.log' for more details.
" >&2;}
25347 { (exit 77); exit 77; }; }
25349 ac_cv_sizeof_unsigned_long_long=0
25353 cat >conftest.$ac_ext <<_ACEOF
25356 cat confdefs.h >>conftest.$ac_ext
25357 cat >>conftest.$ac_ext <<_ACEOF
25358 /* end confdefs.h. */
25359 $ac_includes_default
25360 typedef unsigned long long ac__type_sizeof_;
25361 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
25362 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
25364 #include <stdlib.h>
25369 FILE *f = fopen ("conftest.val
", "w
");
25372 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
25374 long int i = longval ();
25375 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25377 fprintf (f, "%ld
\n", i);
25381 unsigned long int i = ulongval ();
25382 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25384 fprintf (f, "%lu
\n", i);
25386 return ferror (f) || fclose (f) != 0;
25392 rm -f conftest$ac_exeext
25393 if { (ac_try="$ac_link"
25394 case "(($ac_try" in
25395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25396 *) ac_try_echo=$ac_try;;
25398 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25399 (eval "$ac_link") 2>&5
25401 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25402 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25403 { (case "(($ac_try" in
25404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25405 *) ac_try_echo=$ac_try;;
25407 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25408 (eval "$ac_try") 2>&5
25410 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25411 (exit $ac_status); }; }; then
25412 ac_cv_sizeof_unsigned_long_long=`cat conftest.val`
25414 echo "$as_me: program exited with status
$ac_status" >&5
25415 echo "$as_me: failed program was
:" >&5
25416 sed 's/^/| /' conftest.$ac_ext >&5
25418 ( exit $ac_status )
25419 if test "$ac_cv_type_unsigned_long_long" = yes; then
25420 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(unsigned long long
)
25421 See \
`config.log' for more details." >&5
25422 echo "$as_me: error: cannot compute sizeof (unsigned long long)
25423 See \`config.log
' for more details." >&2;}
25424 { (exit 77); exit 77; }; }
25426 ac_cv_sizeof_unsigned_long_long=0
25429 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25433 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_long" >&5
25434 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long_long" >&6; }
25438 cat >>confdefs.h <<_ACEOF
25439 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
25443 { echo "$as_me:$LINENO: checking for int *" >&5
25444 echo $ECHO_N "checking for int *... $ECHO_C" >&6; }
25445 if test "${ac_cv_type_int_p+set}" = set; then
25446 echo $ECHO_N "(cached) $ECHO_C" >&6
25448 cat >conftest.$ac_ext <<_ACEOF
25451 cat confdefs.h >>conftest.$ac_ext
25452 cat >>conftest.$ac_ext <<_ACEOF
25453 /* end confdefs.h. */
25454 $ac_includes_default
25455 typedef int * ac__type_new_;
25459 if ((ac__type_new_ *) 0)
25461 if (sizeof (ac__type_new_))
25467 rm -f conftest.$ac_objext
25468 if { (ac_try="$ac_compile"
25469 case "(($ac_try" in
25470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25471 *) ac_try_echo=$ac_try;;
25473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25474 (eval "$ac_compile") 2>conftest.er1
25476 grep -v '^
*+' conftest.er1 >conftest.err
25478 cat conftest.err >&5
25479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25480 (exit $ac_status); } && {
25481 test -z "$ac_c_werror_flag" ||
25482 test ! -s conftest.err
25483 } && test -s conftest.$ac_objext; then
25484 ac_cv_type_int_p=yes
25486 echo "$as_me: failed program was:" >&5
25487 sed 's
/^
/|
/' conftest.$ac_ext >&5
25489 ac_cv_type_int_p=no
25492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25494 { echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
25495 echo "${ECHO_T}$ac_cv_type_int_p" >&6; }
25497 # The cast to long int works around a bug in the HP C Compiler
25498 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25499 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25500 # This bug is HP SR number 8606223364.
25501 { echo "$as_me:$LINENO: checking size of int *" >&5
25502 echo $ECHO_N "checking size of int *... $ECHO_C" >&6; }
25503 if test "${ac_cv_sizeof_int_p+set}" = set; then
25504 echo $ECHO_N "(cached) $ECHO_C" >&6
25506 if test "$cross_compiling" = yes; then
25507 # Depending upon the size, compute the lo and hi bounds.
25508 cat >conftest.
$ac_ext <<_ACEOF
25511 cat confdefs.h
>>conftest.
$ac_ext
25512 cat >>conftest.
$ac_ext <<_ACEOF
25513 /* end confdefs.h. */
25514 $ac_includes_default
25515 typedef int * ac__type_sizeof_;
25519 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
25526 rm -f conftest.
$ac_objext
25527 if { (ac_try
="$ac_compile"
25528 case "(($ac_try" in
25529 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25530 *) ac_try_echo=$ac_try;;
25532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25533 (eval "$ac_compile") 2>conftest.er1
25535 grep -v '^ *+' conftest.er1 >conftest.err
25537 cat conftest.err >&5
25538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25539 (exit $ac_status); } && {
25540 test -z "$ac_c_werror_flag" ||
25541 test ! -s conftest.err
25542 } && test -s conftest.$ac_objext; then
25545 cat >conftest.$ac_ext <<_ACEOF
25548 cat confdefs.h >>conftest.$ac_ext
25549 cat >>conftest.$ac_ext <<_ACEOF
25550 /* end confdefs.h. */
25551 $ac_includes_default
25552 typedef int * ac__type_sizeof_;
25556 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25563 rm -f conftest.$ac_objext
25564 if { (ac_try="$ac_compile"
25565 case "(($ac_try" in
25566 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25567 *) ac_try_echo
=$ac_try;;
25569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25570 (eval "$ac_compile") 2>conftest.er1
25572 grep -v '^ *+' conftest.er1
>conftest.err
25574 cat conftest.err
>&5
25575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25576 (exit $ac_status); } && {
25577 test -z "$ac_c_werror_flag" ||
25578 test ! -s conftest.err
25579 } && test -s conftest.
$ac_objext; then
25580 ac_hi
=$ac_mid; break
25582 echo "$as_me: failed program was:" >&5
25583 sed 's/^/| /' conftest.
$ac_ext >&5
25585 ac_lo
=`expr $ac_mid + 1`
25586 if test $ac_lo -le $ac_mid; then
25590 ac_mid
=`expr 2 '*' $ac_mid + 1`
25593 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25596 echo "$as_me: failed program was:" >&5
25597 sed 's/^/| /' conftest.
$ac_ext >&5
25599 cat >conftest.
$ac_ext <<_ACEOF
25602 cat confdefs.h
>>conftest.
$ac_ext
25603 cat >>conftest.
$ac_ext <<_ACEOF
25604 /* end confdefs.h. */
25605 $ac_includes_default
25606 typedef int * ac__type_sizeof_;
25610 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
25617 rm -f conftest.
$ac_objext
25618 if { (ac_try
="$ac_compile"
25619 case "(($ac_try" in
25620 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25621 *) ac_try_echo=$ac_try;;
25623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25624 (eval "$ac_compile") 2>conftest.er1
25626 grep -v '^ *+' conftest.er1 >conftest.err
25628 cat conftest.err >&5
25629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25630 (exit $ac_status); } && {
25631 test -z "$ac_c_werror_flag" ||
25632 test ! -s conftest.err
25633 } && test -s conftest.$ac_objext; then
25636 cat >conftest.$ac_ext <<_ACEOF
25639 cat confdefs.h >>conftest.$ac_ext
25640 cat >>conftest.$ac_ext <<_ACEOF
25641 /* end confdefs.h. */
25642 $ac_includes_default
25643 typedef int * ac__type_sizeof_;
25647 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
25654 rm -f conftest.$ac_objext
25655 if { (ac_try="$ac_compile"
25656 case "(($ac_try" in
25657 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25658 *) ac_try_echo
=$ac_try;;
25660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25661 (eval "$ac_compile") 2>conftest.er1
25663 grep -v '^ *+' conftest.er1
>conftest.err
25665 cat conftest.err
>&5
25666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25667 (exit $ac_status); } && {
25668 test -z "$ac_c_werror_flag" ||
25669 test ! -s conftest.err
25670 } && test -s conftest.
$ac_objext; then
25671 ac_lo
=$ac_mid; break
25673 echo "$as_me: failed program was:" >&5
25674 sed 's/^/| /' conftest.
$ac_ext >&5
25676 ac_hi
=`expr '(' $ac_mid ')' - 1`
25677 if test $ac_mid -le $ac_hi; then
25681 ac_mid
=`expr 2 '*' $ac_mid`
25684 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25687 echo "$as_me: failed program was:" >&5
25688 sed 's/^/| /' conftest.
$ac_ext >&5
25693 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25696 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25697 # Binary search between lo and hi bounds.
25698 while test "x$ac_lo" != "x$ac_hi"; do
25699 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
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 typedef int * ac__type_sizeof_;
25711 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25718 rm -f conftest.
$ac_objext
25719 if { (ac_try
="$ac_compile"
25720 case "(($ac_try" in
25721 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25722 *) ac_try_echo=$ac_try;;
25724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25725 (eval "$ac_compile") 2>conftest.er1
25727 grep -v '^ *+' conftest.er1 >conftest.err
25729 cat conftest.err >&5
25730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25731 (exit $ac_status); } && {
25732 test -z "$ac_c_werror_flag" ||
25733 test ! -s conftest.err
25734 } && test -s conftest.$ac_objext; then
25737 echo "$as_me: failed program was:" >&5
25738 sed 's/^/| /' conftest.$ac_ext >&5
25740 ac_lo=`expr '(' $ac_mid ')' + 1`
25743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25746 ?*) ac_cv_sizeof_int_p=$ac_lo;;
25747 '') if test "$ac_cv_type_int_p" = yes; then
25748 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
25749 See \`config.log
' for more details." >&5
25750 echo "$as_me: error: cannot compute sizeof (int *)
25751 See \`config.log' for more details.
" >&2;}
25752 { (exit 77); exit 77; }; }
25754 ac_cv_sizeof_int_p=0
25758 cat >conftest.$ac_ext <<_ACEOF
25761 cat confdefs.h >>conftest.$ac_ext
25762 cat >>conftest.$ac_ext <<_ACEOF
25763 /* end confdefs.h. */
25764 $ac_includes_default
25765 typedef int * ac__type_sizeof_;
25766 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
25767 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
25769 #include <stdlib.h>
25774 FILE *f = fopen ("conftest.val
", "w
");
25777 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
25779 long int i = longval ();
25780 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25782 fprintf (f, "%ld
\n", i);
25786 unsigned long int i = ulongval ();
25787 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25789 fprintf (f, "%lu
\n", i);
25791 return ferror (f) || fclose (f) != 0;
25797 rm -f conftest$ac_exeext
25798 if { (ac_try="$ac_link"
25799 case "(($ac_try" in
25800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25801 *) ac_try_echo=$ac_try;;
25803 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25804 (eval "$ac_link") 2>&5
25806 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25807 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25808 { (case "(($ac_try" in
25809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25810 *) ac_try_echo=$ac_try;;
25812 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25813 (eval "$ac_try") 2>&5
25815 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25816 (exit $ac_status); }; }; then
25817 ac_cv_sizeof_int_p=`cat conftest.val`
25819 echo "$as_me: program exited with status
$ac_status" >&5
25820 echo "$as_me: failed program was
:" >&5
25821 sed 's/^/| /' conftest.$ac_ext >&5
25823 ( exit $ac_status )
25824 if test "$ac_cv_type_int_p" = yes; then
25825 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(int
*)
25826 See \
`config.log' for more details." >&5
25827 echo "$as_me: error: cannot compute sizeof (int *)
25828 See \`config.log
' for more details." >&2;}
25829 { (exit 77); exit 77; }; }
25831 ac_cv_sizeof_int_p=0
25834 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25838 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
25839 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6; }
25843 cat >>confdefs.h <<_ACEOF
25844 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
25849 for ac_func in getenv
25851 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25852 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25853 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25854 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25855 echo $ECHO_N "(cached) $ECHO_C" >&6
25857 cat >conftest.$ac_ext <<_ACEOF
25860 cat confdefs.h >>conftest.$ac_ext
25861 cat >>conftest.$ac_ext <<_ACEOF
25862 /* end confdefs.h. */
25863 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25864 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25865 #define $ac_func innocuous_$ac_func
25867 /* System header to define __stub macros and hopefully few prototypes,
25868 which can conflict with char $ac_func (); below.
25869 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25870 <limits.h> exists even on freestanding compilers. */
25873 # include <limits.h>
25875 # include <assert.h>
25880 /* Override any GCC internal prototype to avoid an error.
25881 Use char because int might match the return type of a GCC
25882 builtin and then its argument prototype would still apply. */
25887 /* The GNU C library defines this for functions which it implements
25888 to always fail with ENOSYS. Some functions are actually named
25889 something starting with __ and the normal name is an alias. */
25890 #if defined __stub_$ac_func || defined __stub___$ac_func
25897 return $ac_func ();
25902 rm -f conftest.$ac_objext conftest$ac_exeext
25903 if { (ac_try="$ac_link"
25904 case "(($ac_try" in
25905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25906 *) ac_try_echo=$ac_try;;
25908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25909 (eval "$ac_link") 2>conftest.er1
25911 grep -v '^
*+' conftest.er1 >conftest.err
25913 cat conftest.err >&5
25914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25915 (exit $ac_status); } && {
25916 test -z "$ac_c_werror_flag" ||
25917 test ! -s conftest.err
25918 } && test -s conftest$ac_exeext &&
25919 $as_test_x conftest$ac_exeext; then
25920 eval "$as_ac_var=yes"
25922 echo "$as_me: failed program was:" >&5
25923 sed 's
/^
/|
/' conftest.$ac_ext >&5
25925 eval "$as_ac_var=no"
25928 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25929 conftest$ac_exeext conftest.$ac_ext
25931 ac_res=`eval echo '${'$as_ac_var'}'`
25932 { echo "$as_me:$LINENO: result: $ac_res" >&5
25933 echo "${ECHO_T}$ac_res" >&6; }
25934 if test `eval echo '${'$as_ac_var'}'` = yes; then
25935 cat >>confdefs.h <<_ACEOF
25936 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25938 cat >>confdefs.h <<\_ACEOF
25939 #define BX_HAVE_GETENV 1
25946 for ac_func in setenv
25948 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25949 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25950 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25951 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25952 echo $ECHO_N "(cached) $ECHO_C" >&6
25954 cat >conftest.$ac_ext <<_ACEOF
25957 cat confdefs.h >>conftest.$ac_ext
25958 cat >>conftest.$ac_ext <<_ACEOF
25959 /* end confdefs.h. */
25960 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25961 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25962 #define $ac_func innocuous_$ac_func
25964 /* System header to define __stub macros and hopefully few prototypes,
25965 which can conflict with char $ac_func (); below.
25966 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25967 <limits.h> exists even on freestanding compilers. */
25970 # include <limits.h>
25972 # include <assert.h>
25977 /* Override any GCC internal prototype to avoid an error.
25978 Use char because int might match the return type of a GCC
25979 builtin and then its argument prototype would still apply. */
25984 /* The GNU C library defines this for functions which it implements
25985 to always fail with ENOSYS. Some functions are actually named
25986 something starting with __ and the normal name is an alias. */
25987 #if defined __stub_$ac_func || defined __stub___$ac_func
25994 return $ac_func ();
25999 rm -f conftest.$ac_objext conftest$ac_exeext
26000 if { (ac_try="$ac_link"
26001 case "(($ac_try" in
26002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26003 *) ac_try_echo=$ac_try;;
26005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26006 (eval "$ac_link") 2>conftest.er1
26008 grep -v '^
*+' conftest.er1 >conftest.err
26010 cat conftest.err >&5
26011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26012 (exit $ac_status); } && {
26013 test -z "$ac_c_werror_flag" ||
26014 test ! -s conftest.err
26015 } && test -s conftest$ac_exeext &&
26016 $as_test_x conftest$ac_exeext; then
26017 eval "$as_ac_var=yes"
26019 echo "$as_me: failed program was:" >&5
26020 sed 's
/^
/|
/' conftest.$ac_ext >&5
26022 eval "$as_ac_var=no"
26025 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26026 conftest$ac_exeext conftest.$ac_ext
26028 ac_res=`eval echo '${'$as_ac_var'}'`
26029 { echo "$as_me:$LINENO: result: $ac_res" >&5
26030 echo "${ECHO_T}$ac_res" >&6; }
26031 if test `eval echo '${'$as_ac_var'}'` = yes; then
26032 cat >>confdefs.h <<_ACEOF
26033 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26035 cat >>confdefs.h <<\_ACEOF
26036 #define BX_HAVE_SETENV 1
26043 for ac_func in select
26045 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26046 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26047 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26048 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26049 echo $ECHO_N "(cached) $ECHO_C" >&6
26051 cat >conftest.$ac_ext <<_ACEOF
26054 cat confdefs.h >>conftest.$ac_ext
26055 cat >>conftest.$ac_ext <<_ACEOF
26056 /* end confdefs.h. */
26057 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26058 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26059 #define $ac_func innocuous_$ac_func
26061 /* System header to define __stub macros and hopefully few prototypes,
26062 which can conflict with char $ac_func (); below.
26063 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26064 <limits.h> exists even on freestanding compilers. */
26067 # include <limits.h>
26069 # include <assert.h>
26074 /* Override any GCC internal prototype to avoid an error.
26075 Use char because int might match the return type of a GCC
26076 builtin and then its argument prototype would still apply. */
26081 /* The GNU C library defines this for functions which it implements
26082 to always fail with ENOSYS. Some functions are actually named
26083 something starting with __ and the normal name is an alias. */
26084 #if defined __stub_$ac_func || defined __stub___$ac_func
26091 return $ac_func ();
26096 rm -f conftest.$ac_objext conftest$ac_exeext
26097 if { (ac_try="$ac_link"
26098 case "(($ac_try" in
26099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26100 *) ac_try_echo=$ac_try;;
26102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26103 (eval "$ac_link") 2>conftest.er1
26105 grep -v '^
*+' conftest.er1 >conftest.err
26107 cat conftest.err >&5
26108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26109 (exit $ac_status); } && {
26110 test -z "$ac_c_werror_flag" ||
26111 test ! -s conftest.err
26112 } && test -s conftest$ac_exeext &&
26113 $as_test_x conftest$ac_exeext; then
26114 eval "$as_ac_var=yes"
26116 echo "$as_me: failed program was:" >&5
26117 sed 's
/^
/|
/' conftest.$ac_ext >&5
26119 eval "$as_ac_var=no"
26122 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26123 conftest$ac_exeext conftest.$ac_ext
26125 ac_res=`eval echo '${'$as_ac_var'}'`
26126 { echo "$as_me:$LINENO: result: $ac_res" >&5
26127 echo "${ECHO_T}$ac_res" >&6; }
26128 if test `eval echo '${'$as_ac_var'}'` = yes; then
26129 cat >>confdefs.h <<_ACEOF
26130 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26132 cat >>confdefs.h <<\_ACEOF
26133 #define BX_HAVE_SELECT 1
26140 for ac_func in snprintf
26142 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26143 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26144 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26145 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26146 echo $ECHO_N "(cached) $ECHO_C" >&6
26148 cat >conftest.$ac_ext <<_ACEOF
26151 cat confdefs.h >>conftest.$ac_ext
26152 cat >>conftest.$ac_ext <<_ACEOF
26153 /* end confdefs.h. */
26154 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26155 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26156 #define $ac_func innocuous_$ac_func
26158 /* System header to define __stub macros and hopefully few prototypes,
26159 which can conflict with char $ac_func (); below.
26160 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26161 <limits.h> exists even on freestanding compilers. */
26164 # include <limits.h>
26166 # include <assert.h>
26171 /* Override any GCC internal prototype to avoid an error.
26172 Use char because int might match the return type of a GCC
26173 builtin and then its argument prototype would still apply. */
26178 /* The GNU C library defines this for functions which it implements
26179 to always fail with ENOSYS. Some functions are actually named
26180 something starting with __ and the normal name is an alias. */
26181 #if defined __stub_$ac_func || defined __stub___$ac_func
26188 return $ac_func ();
26193 rm -f conftest.$ac_objext conftest$ac_exeext
26194 if { (ac_try="$ac_link"
26195 case "(($ac_try" in
26196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26197 *) ac_try_echo=$ac_try;;
26199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26200 (eval "$ac_link") 2>conftest.er1
26202 grep -v '^
*+' conftest.er1 >conftest.err
26204 cat conftest.err >&5
26205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26206 (exit $ac_status); } && {
26207 test -z "$ac_c_werror_flag" ||
26208 test ! -s conftest.err
26209 } && test -s conftest$ac_exeext &&
26210 $as_test_x conftest$ac_exeext; then
26211 eval "$as_ac_var=yes"
26213 echo "$as_me: failed program was:" >&5
26214 sed 's
/^
/|
/' conftest.$ac_ext >&5
26216 eval "$as_ac_var=no"
26219 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26220 conftest$ac_exeext conftest.$ac_ext
26222 ac_res=`eval echo '${'$as_ac_var'}'`
26223 { echo "$as_me:$LINENO: result: $ac_res" >&5
26224 echo "${ECHO_T}$ac_res" >&6; }
26225 if test `eval echo '${'$as_ac_var'}'` = yes; then
26226 cat >>confdefs.h <<_ACEOF
26227 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26229 cat >>confdefs.h <<\_ACEOF
26230 #define BX_HAVE_SNPRINTF 1
26237 for ac_func in vsnprintf
26239 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26240 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26241 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26242 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26243 echo $ECHO_N "(cached) $ECHO_C" >&6
26245 cat >conftest.$ac_ext <<_ACEOF
26248 cat confdefs.h >>conftest.$ac_ext
26249 cat >>conftest.$ac_ext <<_ACEOF
26250 /* end confdefs.h. */
26251 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26252 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26253 #define $ac_func innocuous_$ac_func
26255 /* System header to define __stub macros and hopefully few prototypes,
26256 which can conflict with char $ac_func (); below.
26257 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26258 <limits.h> exists even on freestanding compilers. */
26261 # include <limits.h>
26263 # include <assert.h>
26268 /* Override any GCC internal prototype to avoid an error.
26269 Use char because int might match the return type of a GCC
26270 builtin and then its argument prototype would still apply. */
26275 /* The GNU C library defines this for functions which it implements
26276 to always fail with ENOSYS. Some functions are actually named
26277 something starting with __ and the normal name is an alias. */
26278 #if defined __stub_$ac_func || defined __stub___$ac_func
26285 return $ac_func ();
26290 rm -f conftest.$ac_objext conftest$ac_exeext
26291 if { (ac_try="$ac_link"
26292 case "(($ac_try" in
26293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26294 *) ac_try_echo=$ac_try;;
26296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26297 (eval "$ac_link") 2>conftest.er1
26299 grep -v '^
*+' conftest.er1 >conftest.err
26301 cat conftest.err >&5
26302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26303 (exit $ac_status); } && {
26304 test -z "$ac_c_werror_flag" ||
26305 test ! -s conftest.err
26306 } && test -s conftest$ac_exeext &&
26307 $as_test_x conftest$ac_exeext; then
26308 eval "$as_ac_var=yes"
26310 echo "$as_me: failed program was:" >&5
26311 sed 's
/^
/|
/' conftest.$ac_ext >&5
26313 eval "$as_ac_var=no"
26316 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26317 conftest$ac_exeext conftest.$ac_ext
26319 ac_res=`eval echo '${'$as_ac_var'}'`
26320 { echo "$as_me:$LINENO: result: $ac_res" >&5
26321 echo "${ECHO_T}$ac_res" >&6; }
26322 if test `eval echo '${'$as_ac_var'}'` = yes; then
26323 cat >>confdefs.h <<_ACEOF
26324 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26326 cat >>confdefs.h <<\_ACEOF
26327 #define BX_HAVE_VSNPRINTF 1
26334 for ac_func in strtoull
26336 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26337 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26338 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26339 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26340 echo $ECHO_N "(cached) $ECHO_C" >&6
26342 cat >conftest.$ac_ext <<_ACEOF
26345 cat confdefs.h >>conftest.$ac_ext
26346 cat >>conftest.$ac_ext <<_ACEOF
26347 /* end confdefs.h. */
26348 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26349 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26350 #define $ac_func innocuous_$ac_func
26352 /* System header to define __stub macros and hopefully few prototypes,
26353 which can conflict with char $ac_func (); below.
26354 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26355 <limits.h> exists even on freestanding compilers. */
26358 # include <limits.h>
26360 # include <assert.h>
26365 /* Override any GCC internal prototype to avoid an error.
26366 Use char because int might match the return type of a GCC
26367 builtin and then its argument prototype would still apply. */
26372 /* The GNU C library defines this for functions which it implements
26373 to always fail with ENOSYS. Some functions are actually named
26374 something starting with __ and the normal name is an alias. */
26375 #if defined __stub_$ac_func || defined __stub___$ac_func
26382 return $ac_func ();
26387 rm -f conftest.$ac_objext conftest$ac_exeext
26388 if { (ac_try="$ac_link"
26389 case "(($ac_try" in
26390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26391 *) ac_try_echo=$ac_try;;
26393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26394 (eval "$ac_link") 2>conftest.er1
26396 grep -v '^
*+' conftest.er1 >conftest.err
26398 cat conftest.err >&5
26399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26400 (exit $ac_status); } && {
26401 test -z "$ac_c_werror_flag" ||
26402 test ! -s conftest.err
26403 } && test -s conftest$ac_exeext &&
26404 $as_test_x conftest$ac_exeext; then
26405 eval "$as_ac_var=yes"
26407 echo "$as_me: failed program was:" >&5
26408 sed 's
/^
/|
/' conftest.$ac_ext >&5
26410 eval "$as_ac_var=no"
26413 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26414 conftest$ac_exeext conftest.$ac_ext
26416 ac_res=`eval echo '${'$as_ac_var'}'`
26417 { echo "$as_me:$LINENO: result: $ac_res" >&5
26418 echo "${ECHO_T}$ac_res" >&6; }
26419 if test `eval echo '${'$as_ac_var'}'` = yes; then
26420 cat >>confdefs.h <<_ACEOF
26421 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26423 cat >>confdefs.h <<\_ACEOF
26424 #define BX_HAVE_STRTOULL 1
26431 for ac_func in strtouq
26433 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26434 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26435 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26436 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26437 echo $ECHO_N "(cached) $ECHO_C" >&6
26439 cat >conftest.$ac_ext <<_ACEOF
26442 cat confdefs.h >>conftest.$ac_ext
26443 cat >>conftest.$ac_ext <<_ACEOF
26444 /* end confdefs.h. */
26445 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26446 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26447 #define $ac_func innocuous_$ac_func
26449 /* System header to define __stub macros and hopefully few prototypes,
26450 which can conflict with char $ac_func (); below.
26451 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26452 <limits.h> exists even on freestanding compilers. */
26455 # include <limits.h>
26457 # include <assert.h>
26462 /* Override any GCC internal prototype to avoid an error.
26463 Use char because int might match the return type of a GCC
26464 builtin and then its argument prototype would still apply. */
26469 /* The GNU C library defines this for functions which it implements
26470 to always fail with ENOSYS. Some functions are actually named
26471 something starting with __ and the normal name is an alias. */
26472 #if defined __stub_$ac_func || defined __stub___$ac_func
26479 return $ac_func ();
26484 rm -f conftest.$ac_objext conftest$ac_exeext
26485 if { (ac_try="$ac_link"
26486 case "(($ac_try" in
26487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26488 *) ac_try_echo=$ac_try;;
26490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26491 (eval "$ac_link") 2>conftest.er1
26493 grep -v '^
*+' conftest.er1 >conftest.err
26495 cat conftest.err >&5
26496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26497 (exit $ac_status); } && {
26498 test -z "$ac_c_werror_flag" ||
26499 test ! -s conftest.err
26500 } && test -s conftest$ac_exeext &&
26501 $as_test_x conftest$ac_exeext; then
26502 eval "$as_ac_var=yes"
26504 echo "$as_me: failed program was:" >&5
26505 sed 's
/^
/|
/' conftest.$ac_ext >&5
26507 eval "$as_ac_var=no"
26510 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26511 conftest$ac_exeext conftest.$ac_ext
26513 ac_res=`eval echo '${'$as_ac_var'}'`
26514 { echo "$as_me:$LINENO: result: $ac_res" >&5
26515 echo "${ECHO_T}$ac_res" >&6; }
26516 if test `eval echo '${'$as_ac_var'}'` = yes; then
26517 cat >>confdefs.h <<_ACEOF
26518 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26520 cat >>confdefs.h <<\_ACEOF
26521 #define BX_HAVE_STRTOUQ 1
26528 for ac_func in strdup
26530 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26531 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26532 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26533 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26534 echo $ECHO_N "(cached) $ECHO_C" >&6
26536 cat >conftest.$ac_ext <<_ACEOF
26539 cat confdefs.h >>conftest.$ac_ext
26540 cat >>conftest.$ac_ext <<_ACEOF
26541 /* end confdefs.h. */
26542 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26543 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26544 #define $ac_func innocuous_$ac_func
26546 /* System header to define __stub macros and hopefully few prototypes,
26547 which can conflict with char $ac_func (); below.
26548 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26549 <limits.h> exists even on freestanding compilers. */
26552 # include <limits.h>
26554 # include <assert.h>
26559 /* Override any GCC internal prototype to avoid an error.
26560 Use char because int might match the return type of a GCC
26561 builtin and then its argument prototype would still apply. */
26566 /* The GNU C library defines this for functions which it implements
26567 to always fail with ENOSYS. Some functions are actually named
26568 something starting with __ and the normal name is an alias. */
26569 #if defined __stub_$ac_func || defined __stub___$ac_func
26576 return $ac_func ();
26581 rm -f conftest.$ac_objext conftest$ac_exeext
26582 if { (ac_try="$ac_link"
26583 case "(($ac_try" in
26584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26585 *) ac_try_echo=$ac_try;;
26587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26588 (eval "$ac_link") 2>conftest.er1
26590 grep -v '^
*+' conftest.er1 >conftest.err
26592 cat conftest.err >&5
26593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26594 (exit $ac_status); } && {
26595 test -z "$ac_c_werror_flag" ||
26596 test ! -s conftest.err
26597 } && test -s conftest$ac_exeext &&
26598 $as_test_x conftest$ac_exeext; then
26599 eval "$as_ac_var=yes"
26601 echo "$as_me: failed program was:" >&5
26602 sed 's
/^
/|
/' conftest.$ac_ext >&5
26604 eval "$as_ac_var=no"
26607 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26608 conftest$ac_exeext conftest.$ac_ext
26610 ac_res=`eval echo '${'$as_ac_var'}'`
26611 { echo "$as_me:$LINENO: result: $ac_res" >&5
26612 echo "${ECHO_T}$ac_res" >&6; }
26613 if test `eval echo '${'$as_ac_var'}'` = yes; then
26614 cat >>confdefs.h <<_ACEOF
26615 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26617 cat >>confdefs.h <<\_ACEOF
26618 #define BX_HAVE_STRDUP 1
26625 for ac_func in strrev
26627 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26628 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26629 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26630 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26631 echo $ECHO_N "(cached) $ECHO_C" >&6
26633 cat >conftest.$ac_ext <<_ACEOF
26636 cat confdefs.h >>conftest.$ac_ext
26637 cat >>conftest.$ac_ext <<_ACEOF
26638 /* end confdefs.h. */
26639 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26640 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26641 #define $ac_func innocuous_$ac_func
26643 /* System header to define __stub macros and hopefully few prototypes,
26644 which can conflict with char $ac_func (); below.
26645 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26646 <limits.h> exists even on freestanding compilers. */
26649 # include <limits.h>
26651 # include <assert.h>
26656 /* Override any GCC internal prototype to avoid an error.
26657 Use char because int might match the return type of a GCC
26658 builtin and then its argument prototype would still apply. */
26663 /* The GNU C library defines this for functions which it implements
26664 to always fail with ENOSYS. Some functions are actually named
26665 something starting with __ and the normal name is an alias. */
26666 #if defined __stub_$ac_func || defined __stub___$ac_func
26673 return $ac_func ();
26678 rm -f conftest.$ac_objext conftest$ac_exeext
26679 if { (ac_try="$ac_link"
26680 case "(($ac_try" in
26681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26682 *) ac_try_echo=$ac_try;;
26684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26685 (eval "$ac_link") 2>conftest.er1
26687 grep -v '^
*+' conftest.er1 >conftest.err
26689 cat conftest.err >&5
26690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26691 (exit $ac_status); } && {
26692 test -z "$ac_c_werror_flag" ||
26693 test ! -s conftest.err
26694 } && test -s conftest$ac_exeext &&
26695 $as_test_x conftest$ac_exeext; then
26696 eval "$as_ac_var=yes"
26698 echo "$as_me: failed program was:" >&5
26699 sed 's
/^
/|
/' conftest.$ac_ext >&5
26701 eval "$as_ac_var=no"
26704 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26705 conftest$ac_exeext conftest.$ac_ext
26707 ac_res=`eval echo '${'$as_ac_var'}'`
26708 { echo "$as_me:$LINENO: result: $ac_res" >&5
26709 echo "${ECHO_T}$ac_res" >&6; }
26710 if test `eval echo '${'$as_ac_var'}'` = yes; then
26711 cat >>confdefs.h <<_ACEOF
26712 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26714 cat >>confdefs.h <<\_ACEOF
26715 #define BX_HAVE_STRREV 1
26722 for ac_func in sleep
26724 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26725 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26726 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26727 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26728 echo $ECHO_N "(cached) $ECHO_C" >&6
26730 cat >conftest.$ac_ext <<_ACEOF
26733 cat confdefs.h >>conftest.$ac_ext
26734 cat >>conftest.$ac_ext <<_ACEOF
26735 /* end confdefs.h. */
26736 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26737 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26738 #define $ac_func innocuous_$ac_func
26740 /* System header to define __stub macros and hopefully few prototypes,
26741 which can conflict with char $ac_func (); below.
26742 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26743 <limits.h> exists even on freestanding compilers. */
26746 # include <limits.h>
26748 # include <assert.h>
26753 /* Override any GCC internal prototype to avoid an error.
26754 Use char because int might match the return type of a GCC
26755 builtin and then its argument prototype would still apply. */
26760 /* The GNU C library defines this for functions which it implements
26761 to always fail with ENOSYS. Some functions are actually named
26762 something starting with __ and the normal name is an alias. */
26763 #if defined __stub_$ac_func || defined __stub___$ac_func
26770 return $ac_func ();
26775 rm -f conftest.$ac_objext conftest$ac_exeext
26776 if { (ac_try="$ac_link"
26777 case "(($ac_try" in
26778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26779 *) ac_try_echo=$ac_try;;
26781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26782 (eval "$ac_link") 2>conftest.er1
26784 grep -v '^
*+' conftest.er1 >conftest.err
26786 cat conftest.err >&5
26787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26788 (exit $ac_status); } && {
26789 test -z "$ac_c_werror_flag" ||
26790 test ! -s conftest.err
26791 } && test -s conftest$ac_exeext &&
26792 $as_test_x conftest$ac_exeext; then
26793 eval "$as_ac_var=yes"
26795 echo "$as_me: failed program was:" >&5
26796 sed 's
/^
/|
/' conftest.$ac_ext >&5
26798 eval "$as_ac_var=no"
26801 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26802 conftest$ac_exeext conftest.$ac_ext
26804 ac_res=`eval echo '${'$as_ac_var'}'`
26805 { echo "$as_me:$LINENO: result: $ac_res" >&5
26806 echo "${ECHO_T}$ac_res" >&6; }
26807 if test `eval echo '${'$as_ac_var'}'` = yes; then
26808 cat >>confdefs.h <<_ACEOF
26809 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26811 cat >>confdefs.h <<\_ACEOF
26812 #define BX_HAVE_SLEEP 1
26819 for ac_func in usleep
26821 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26822 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26823 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26824 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26825 echo $ECHO_N "(cached) $ECHO_C" >&6
26827 cat >conftest.$ac_ext <<_ACEOF
26830 cat confdefs.h >>conftest.$ac_ext
26831 cat >>conftest.$ac_ext <<_ACEOF
26832 /* end confdefs.h. */
26833 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26834 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26835 #define $ac_func innocuous_$ac_func
26837 /* System header to define __stub macros and hopefully few prototypes,
26838 which can conflict with char $ac_func (); below.
26839 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26840 <limits.h> exists even on freestanding compilers. */
26843 # include <limits.h>
26845 # include <assert.h>
26850 /* Override any GCC internal prototype to avoid an error.
26851 Use char because int might match the return type of a GCC
26852 builtin and then its argument prototype would still apply. */
26857 /* The GNU C library defines this for functions which it implements
26858 to always fail with ENOSYS. Some functions are actually named
26859 something starting with __ and the normal name is an alias. */
26860 #if defined __stub_$ac_func || defined __stub___$ac_func
26867 return $ac_func ();
26872 rm -f conftest.$ac_objext conftest$ac_exeext
26873 if { (ac_try="$ac_link"
26874 case "(($ac_try" in
26875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26876 *) ac_try_echo=$ac_try;;
26878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26879 (eval "$ac_link") 2>conftest.er1
26881 grep -v '^
*+' conftest.er1 >conftest.err
26883 cat conftest.err >&5
26884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26885 (exit $ac_status); } && {
26886 test -z "$ac_c_werror_flag" ||
26887 test ! -s conftest.err
26888 } && test -s conftest$ac_exeext &&
26889 $as_test_x conftest$ac_exeext; then
26890 eval "$as_ac_var=yes"
26892 echo "$as_me: failed program was:" >&5
26893 sed 's
/^
/|
/' conftest.$ac_ext >&5
26895 eval "$as_ac_var=no"
26898 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26899 conftest$ac_exeext conftest.$ac_ext
26901 ac_res=`eval echo '${'$as_ac_var'}'`
26902 { echo "$as_me:$LINENO: result: $ac_res" >&5
26903 echo "${ECHO_T}$ac_res" >&6; }
26904 if test `eval echo '${'$as_ac_var'}'` = yes; then
26905 cat >>confdefs.h <<_ACEOF
26906 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26908 cat >>confdefs.h <<\_ACEOF
26909 #define BX_HAVE_USLEEP 1
26916 for ac_func in nanosleep
26918 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26919 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26920 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26921 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26922 echo $ECHO_N "(cached) $ECHO_C" >&6
26924 cat >conftest.$ac_ext <<_ACEOF
26927 cat confdefs.h >>conftest.$ac_ext
26928 cat >>conftest.$ac_ext <<_ACEOF
26929 /* end confdefs.h. */
26930 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26931 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26932 #define $ac_func innocuous_$ac_func
26934 /* System header to define __stub macros and hopefully few prototypes,
26935 which can conflict with char $ac_func (); below.
26936 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26937 <limits.h> exists even on freestanding compilers. */
26940 # include <limits.h>
26942 # include <assert.h>
26947 /* Override any GCC internal prototype to avoid an error.
26948 Use char because int might match the return type of a GCC
26949 builtin and then its argument prototype would still apply. */
26954 /* The GNU C library defines this for functions which it implements
26955 to always fail with ENOSYS. Some functions are actually named
26956 something starting with __ and the normal name is an alias. */
26957 #if defined __stub_$ac_func || defined __stub___$ac_func
26964 return $ac_func ();
26969 rm -f conftest.$ac_objext conftest$ac_exeext
26970 if { (ac_try="$ac_link"
26971 case "(($ac_try" in
26972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26973 *) ac_try_echo=$ac_try;;
26975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26976 (eval "$ac_link") 2>conftest.er1
26978 grep -v '^
*+' conftest.er1 >conftest.err
26980 cat conftest.err >&5
26981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26982 (exit $ac_status); } && {
26983 test -z "$ac_c_werror_flag" ||
26984 test ! -s conftest.err
26985 } && test -s conftest$ac_exeext &&
26986 $as_test_x conftest$ac_exeext; then
26987 eval "$as_ac_var=yes"
26989 echo "$as_me: failed program was:" >&5
26990 sed 's
/^
/|
/' conftest.$ac_ext >&5
26992 eval "$as_ac_var=no"
26995 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26996 conftest$ac_exeext conftest.$ac_ext
26998 ac_res=`eval echo '${'$as_ac_var'}'`
26999 { echo "$as_me:$LINENO: result: $ac_res" >&5
27000 echo "${ECHO_T}$ac_res" >&6; }
27001 if test `eval echo '${'$as_ac_var'}'` = yes; then
27002 cat >>confdefs.h <<_ACEOF
27003 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27005 cat >>confdefs.h <<\_ACEOF
27006 #define BX_HAVE_NANOSLEEP 1
27013 for ac_func in abort
27015 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27016 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27017 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27018 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27019 echo $ECHO_N "(cached) $ECHO_C" >&6
27021 cat >conftest.$ac_ext <<_ACEOF
27024 cat confdefs.h >>conftest.$ac_ext
27025 cat >>conftest.$ac_ext <<_ACEOF
27026 /* end confdefs.h. */
27027 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27028 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27029 #define $ac_func innocuous_$ac_func
27031 /* System header to define __stub macros and hopefully few prototypes,
27032 which can conflict with char $ac_func (); below.
27033 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27034 <limits.h> exists even on freestanding compilers. */
27037 # include <limits.h>
27039 # include <assert.h>
27044 /* Override any GCC internal prototype to avoid an error.
27045 Use char because int might match the return type of a GCC
27046 builtin and then its argument prototype would still apply. */
27051 /* The GNU C library defines this for functions which it implements
27052 to always fail with ENOSYS. Some functions are actually named
27053 something starting with __ and the normal name is an alias. */
27054 #if defined __stub_$ac_func || defined __stub___$ac_func
27061 return $ac_func ();
27066 rm -f conftest.$ac_objext conftest$ac_exeext
27067 if { (ac_try="$ac_link"
27068 case "(($ac_try" in
27069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27070 *) ac_try_echo=$ac_try;;
27072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27073 (eval "$ac_link") 2>conftest.er1
27075 grep -v '^
*+' conftest.er1 >conftest.err
27077 cat conftest.err >&5
27078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27079 (exit $ac_status); } && {
27080 test -z "$ac_c_werror_flag" ||
27081 test ! -s conftest.err
27082 } && test -s conftest$ac_exeext &&
27083 $as_test_x conftest$ac_exeext; then
27084 eval "$as_ac_var=yes"
27086 echo "$as_me: failed program was:" >&5
27087 sed 's
/^
/|
/' conftest.$ac_ext >&5
27089 eval "$as_ac_var=no"
27092 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27093 conftest$ac_exeext conftest.$ac_ext
27095 ac_res=`eval echo '${'$as_ac_var'}'`
27096 { echo "$as_me:$LINENO: result: $ac_res" >&5
27097 echo "${ECHO_T}$ac_res" >&6; }
27098 if test `eval echo '${'$as_ac_var'}'` = yes; then
27099 cat >>confdefs.h <<_ACEOF
27100 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27102 cat >>confdefs.h <<\_ACEOF
27103 #define BX_HAVE_ABORT 1
27110 for ac_func in gettimeofday
27112 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27113 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27114 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27115 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27116 echo $ECHO_N "(cached) $ECHO_C" >&6
27118 cat >conftest.$ac_ext <<_ACEOF
27121 cat confdefs.h >>conftest.$ac_ext
27122 cat >>conftest.$ac_ext <<_ACEOF
27123 /* end confdefs.h. */
27124 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27125 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27126 #define $ac_func innocuous_$ac_func
27128 /* System header to define __stub macros and hopefully few prototypes,
27129 which can conflict with char $ac_func (); below.
27130 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27131 <limits.h> exists even on freestanding compilers. */
27134 # include <limits.h>
27136 # include <assert.h>
27141 /* Override any GCC internal prototype to avoid an error.
27142 Use char because int might match the return type of a GCC
27143 builtin and then its argument prototype would still apply. */
27148 /* The GNU C library defines this for functions which it implements
27149 to always fail with ENOSYS. Some functions are actually named
27150 something starting with __ and the normal name is an alias. */
27151 #if defined __stub_$ac_func || defined __stub___$ac_func
27158 return $ac_func ();
27163 rm -f conftest.$ac_objext conftest$ac_exeext
27164 if { (ac_try="$ac_link"
27165 case "(($ac_try" in
27166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27167 *) ac_try_echo=$ac_try;;
27169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27170 (eval "$ac_link") 2>conftest.er1
27172 grep -v '^
*+' conftest.er1 >conftest.err
27174 cat conftest.err >&5
27175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27176 (exit $ac_status); } && {
27177 test -z "$ac_c_werror_flag" ||
27178 test ! -s conftest.err
27179 } && test -s conftest$ac_exeext &&
27180 $as_test_x conftest$ac_exeext; then
27181 eval "$as_ac_var=yes"
27183 echo "$as_me: failed program was:" >&5
27184 sed 's
/^
/|
/' conftest.$ac_ext >&5
27186 eval "$as_ac_var=no"
27189 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27190 conftest$ac_exeext conftest.$ac_ext
27192 ac_res=`eval echo '${'$as_ac_var'}'`
27193 { echo "$as_me:$LINENO: result: $ac_res" >&5
27194 echo "${ECHO_T}$ac_res" >&6; }
27195 if test `eval echo '${'$as_ac_var'}'` = yes; then
27196 cat >>confdefs.h <<_ACEOF
27197 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27199 cat >>confdefs.h <<\_ACEOF
27200 #define BX_HAVE_GETTIMEOFDAY 1
27206 { echo "$as_me:$LINENO: checking for socklen_t" >&5
27207 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
27208 if test "${ac_cv_type_socklen_t+set}" = set; then
27209 echo $ECHO_N "(cached) $ECHO_C" >&6
27211 cat >conftest.$ac_ext <<_ACEOF
27214 cat confdefs.h >>conftest.$ac_ext
27215 cat >>conftest.$ac_ext <<_ACEOF
27216 /* end confdefs.h. */
27217 #include <sys/types.h>
27218 #include <sys/socket.h>
27220 typedef socklen_t ac__type_new_;
27224 if ((ac__type_new_ *) 0)
27226 if (sizeof (ac__type_new_))
27232 rm -f conftest.$ac_objext
27233 if { (ac_try="$ac_compile"
27234 case "(($ac_try" in
27235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27236 *) ac_try_echo=$ac_try;;
27238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27239 (eval "$ac_compile") 2>conftest.er1
27241 grep -v '^
*+' conftest.er1 >conftest.err
27243 cat conftest.err >&5
27244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27245 (exit $ac_status); } && {
27246 test -z "$ac_c_werror_flag" ||
27247 test ! -s conftest.err
27248 } && test -s conftest.$ac_objext; then
27249 ac_cv_type_socklen_t=yes
27251 echo "$as_me: failed program was:" >&5
27252 sed 's
/^
/|
/' conftest.$ac_ext >&5
27254 ac_cv_type_socklen_t=no
27257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27259 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
27260 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
27261 if test $ac_cv_type_socklen_t = yes; then
27262 cat >>confdefs.h <<\_ACEOF
27263 #define BX_HAVE_SOCKLEN_T 1
27268 { echo "$as_me:$LINENO: checking for struct sockaddr_in.sin_len" >&5
27269 echo $ECHO_N "checking for struct sockaddr_in.sin_len... $ECHO_C" >&6; }
27270 if test "${ac_cv_member_struct_sockaddr_in_sin_len+set}" = set; then
27271 echo $ECHO_N "(cached) $ECHO_C" >&6
27273 cat >conftest.$ac_ext <<_ACEOF
27276 cat confdefs.h >>conftest.$ac_ext
27277 cat >>conftest.$ac_ext <<_ACEOF
27278 /* end confdefs.h. */
27279 #include <sys/socket.h>
27280 #include <netinet/in.h>
27285 static struct sockaddr_in ac_aggr;
27286 if (ac_aggr.sin_len)
27292 rm -f conftest.$ac_objext
27293 if { (ac_try="$ac_compile"
27294 case "(($ac_try" in
27295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27296 *) ac_try_echo=$ac_try;;
27298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27299 (eval "$ac_compile") 2>conftest.er1
27301 grep -v '^
*+' conftest.er1 >conftest.err
27303 cat conftest.err >&5
27304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27305 (exit $ac_status); } && {
27306 test -z "$ac_c_werror_flag" ||
27307 test ! -s conftest.err
27308 } && test -s conftest.$ac_objext; then
27309 ac_cv_member_struct_sockaddr_in_sin_len=yes
27311 echo "$as_me: failed program was:" >&5
27312 sed 's
/^
/|
/' conftest.$ac_ext >&5
27314 cat >conftest.$ac_ext <<_ACEOF
27317 cat confdefs.h >>conftest.$ac_ext
27318 cat >>conftest.$ac_ext <<_ACEOF
27319 /* end confdefs.h. */
27320 #include <sys/socket.h>
27321 #include <netinet/in.h>
27326 static struct sockaddr_in ac_aggr;
27327 if (sizeof ac_aggr.sin_len)
27333 rm -f conftest.$ac_objext
27334 if { (ac_try="$ac_compile"
27335 case "(($ac_try" in
27336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27337 *) ac_try_echo=$ac_try;;
27339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27340 (eval "$ac_compile") 2>conftest.er1
27342 grep -v '^
*+' conftest.er1 >conftest.err
27344 cat conftest.err >&5
27345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27346 (exit $ac_status); } && {
27347 test -z "$ac_c_werror_flag" ||
27348 test ! -s conftest.err
27349 } && test -s conftest.$ac_objext; then
27350 ac_cv_member_struct_sockaddr_in_sin_len=yes
27352 echo "$as_me: failed program was:" >&5
27353 sed 's
/^
/|
/' conftest.$ac_ext >&5
27355 ac_cv_member_struct_sockaddr_in_sin_len=no
27358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27363 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_in_sin_len" >&5
27364 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_in_sin_len" >&6; }
27365 if test $ac_cv_member_struct_sockaddr_in_sin_len = yes; then
27366 cat >>confdefs.h <<\_ACEOF
27367 #define BX_HAVE_SOCKADDR_IN_SIN_LEN 1
27373 for ac_func in mkstemp
27375 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27376 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27377 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27378 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27379 echo $ECHO_N "(cached) $ECHO_C" >&6
27381 cat >conftest.$ac_ext <<_ACEOF
27384 cat confdefs.h >>conftest.$ac_ext
27385 cat >>conftest.$ac_ext <<_ACEOF
27386 /* end confdefs.h. */
27387 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27388 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27389 #define $ac_func innocuous_$ac_func
27391 /* System header to define __stub macros and hopefully few prototypes,
27392 which can conflict with char $ac_func (); below.
27393 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27394 <limits.h> exists even on freestanding compilers. */
27397 # include <limits.h>
27399 # include <assert.h>
27404 /* Override any GCC internal prototype to avoid an error.
27405 Use char because int might match the return type of a GCC
27406 builtin and then its argument prototype would still apply. */
27411 /* The GNU C library defines this for functions which it implements
27412 to always fail with ENOSYS. Some functions are actually named
27413 something starting with __ and the normal name is an alias. */
27414 #if defined __stub_$ac_func || defined __stub___$ac_func
27421 return $ac_func ();
27426 rm -f conftest.$ac_objext conftest$ac_exeext
27427 if { (ac_try="$ac_link"
27428 case "(($ac_try" in
27429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27430 *) ac_try_echo=$ac_try;;
27432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27433 (eval "$ac_link") 2>conftest.er1
27435 grep -v '^
*+' conftest.er1 >conftest.err
27437 cat conftest.err >&5
27438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27439 (exit $ac_status); } && {
27440 test -z "$ac_c_werror_flag" ||
27441 test ! -s conftest.err
27442 } && test -s conftest$ac_exeext &&
27443 $as_test_x conftest$ac_exeext; then
27444 eval "$as_ac_var=yes"
27446 echo "$as_me: failed program was:" >&5
27447 sed 's
/^
/|
/' conftest.$ac_ext >&5
27449 eval "$as_ac_var=no"
27452 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27453 conftest$ac_exeext conftest.$ac_ext
27455 ac_res=`eval echo '${'$as_ac_var'}'`
27456 { echo "$as_me:$LINENO: result: $ac_res" >&5
27457 echo "${ECHO_T}$ac_res" >&6; }
27458 if test `eval echo '${'$as_ac_var'}'` = yes; then
27459 cat >>confdefs.h <<_ACEOF
27460 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27462 cat >>confdefs.h <<\_ACEOF
27463 #define BX_HAVE_MKSTEMP 1
27469 if test "${ac_cv_header_sys_mman_h+set}" = set; then
27470 { echo "$as_me:$LINENO: checking for sys/mman.h" >&5
27471 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6; }
27472 if test "${ac_cv_header_sys_mman_h+set}" = set; then
27473 echo $ECHO_N "(cached) $ECHO_C" >&6
27475 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
27476 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6; }
27478 # Is the header compilable?
27479 { echo "$as_me:$LINENO: checking sys/mman.h usability" >&5
27480 echo $ECHO_N "checking sys/mman.h usability... $ECHO_C" >&6; }
27481 cat >conftest.$ac_ext <<_ACEOF
27484 cat confdefs.h >>conftest.$ac_ext
27485 cat >>conftest.$ac_ext <<_ACEOF
27486 /* end confdefs.h. */
27487 $ac_includes_default
27488 #include <sys/mman.h>
27490 rm -f conftest.$ac_objext
27491 if { (ac_try="$ac_compile"
27492 case "(($ac_try" in
27493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27494 *) ac_try_echo=$ac_try;;
27496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27497 (eval "$ac_compile") 2>conftest.er1
27499 grep -v '^
*+' conftest.er1 >conftest.err
27501 cat conftest.err >&5
27502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27503 (exit $ac_status); } && {
27504 test -z "$ac_c_werror_flag" ||
27505 test ! -s conftest.err
27506 } && test -s conftest.$ac_objext; then
27507 ac_header_compiler=yes
27509 echo "$as_me: failed program was:" >&5
27510 sed 's
/^
/|
/' conftest.$ac_ext >&5
27512 ac_header_compiler=no
27515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27516 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27517 echo "${ECHO_T}$ac_header_compiler" >&6; }
27519 # Is the header present?
27520 { echo "$as_me:$LINENO: checking sys/mman.h presence" >&5
27521 echo $ECHO_N "checking sys/mman.h presence... $ECHO_C" >&6; }
27522 cat >conftest.$ac_ext <<_ACEOF
27525 cat confdefs.h >>conftest.$ac_ext
27526 cat >>conftest.$ac_ext <<_ACEOF
27527 /* end confdefs.h. */
27528 #include <sys/mman.h>
27530 if { (ac_try="$ac_cpp conftest.$ac_ext"
27531 case "(($ac_try" in
27532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27533 *) ac_try_echo=$ac_try;;
27535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27536 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27538 grep -v '^
*+' conftest.er1 >conftest.err
27540 cat conftest.err >&5
27541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27542 (exit $ac_status); } >/dev/null && {
27543 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27544 test ! -s conftest.err
27546 ac_header_preproc=yes
27548 echo "$as_me: failed program was:" >&5
27549 sed 's
/^
/|
/' conftest.$ac_ext >&5
27551 ac_header_preproc=no
27554 rm -f conftest.err conftest.$ac_ext
27555 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27556 echo "${ECHO_T}$ac_header_preproc" >&6; }
27558 # So? What about this header?
27559 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27561 { echo "$as_me:$LINENO: WARNING: sys/mman.h: accepted by the compiler, rejected by the preprocessor!" >&5
27562 echo "$as_me: WARNING: sys/mman.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27563 { echo "$as_me:$LINENO: WARNING: sys/mman.h: proceeding with the compiler's result
" >&5
27564 echo "$as_me: WARNING
: sys
/mman.h
: proceeding with the compiler
's result" >&2;}
27565 ac_header_preproc=yes
27568 { echo "$as_me:$LINENO: WARNING: sys/mman.h: present but cannot be compiled" >&5
27569 echo "$as_me: WARNING: sys/mman.h: present but cannot be compiled" >&2;}
27570 { echo "$as_me:$LINENO: WARNING: sys/mman.h: check for missing prerequisite headers?" >&5
27571 echo "$as_me: WARNING: sys/mman.h: check for missing prerequisite headers?" >&2;}
27572 { echo "$as_me:$LINENO: WARNING: sys/mman.h: see the Autoconf documentation" >&5
27573 echo "$as_me: WARNING: sys/mman.h: see the Autoconf documentation" >&2;}
27574 { echo "$as_me:$LINENO: WARNING: sys/mman.h: section \"Present But Cannot Be Compiled\"" >&5
27575 echo "$as_me: WARNING: sys/mman.h: section \"Present But Cannot Be Compiled\"" >&2;}
27576 { echo "$as_me:$LINENO: WARNING: sys/mman.h: proceeding with the preprocessor's result
" >&5
27577 echo "$as_me: WARNING
: sys
/mman.h
: proceeding with the preprocessor
's result" >&2;}
27578 { echo "$as_me:$LINENO: WARNING: sys/mman.h: in the future, the compiler will take precedence" >&5
27579 echo "$as_me: WARNING: sys/mman.h: in the future, the compiler will take precedence" >&2;}
27583 { echo "$as_me:$LINENO: checking for sys/mman.h" >&5
27584 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6; }
27585 if test "${ac_cv_header_sys_mman_h+set}" = set; then
27586 echo $ECHO_N "(cached) $ECHO_C" >&6
27588 ac_cv_header_sys_mman_h=$ac_header_preproc
27590 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
27591 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6; }
27594 if test $ac_cv_header_sys_mman_h = yes; then
27595 cat >>confdefs.h <<\_ACEOF
27596 #define BX_HAVE_SYS_MMAN_H 1
27603 for ac_func in timelocal
27605 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27606 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27607 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27608 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27609 echo $ECHO_N "(cached) $ECHO_C" >&6
27611 cat >conftest.$ac_ext <<_ACEOF
27614 cat confdefs.h >>conftest.$ac_ext
27615 cat >>conftest.$ac_ext <<_ACEOF
27616 /* end confdefs.h. */
27617 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27618 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27619 #define $ac_func innocuous_$ac_func
27621 /* System header to define __stub macros and hopefully few prototypes,
27622 which can conflict with char $ac_func (); below.
27623 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27624 <limits.h> exists even on freestanding compilers. */
27627 # include <limits.h>
27629 # include <assert.h>
27634 /* Override any GCC internal prototype to avoid an error.
27635 Use char because int might match the return type of a GCC
27636 builtin and then its argument prototype would still apply. */
27641 /* The GNU C library defines this for functions which it implements
27642 to always fail with ENOSYS. Some functions are actually named
27643 something starting with __ and the normal name is an alias. */
27644 #if defined __stub_$ac_func || defined __stub___$ac_func
27651 return $ac_func ();
27656 rm -f conftest.$ac_objext conftest$ac_exeext
27657 if { (ac_try="$ac_link"
27658 case "(($ac_try" in
27659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27660 *) ac_try_echo=$ac_try;;
27662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27663 (eval "$ac_link") 2>conftest.er1
27665 grep -v '^
*+' conftest.er1 >conftest.err
27667 cat conftest.err >&5
27668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27669 (exit $ac_status); } && {
27670 test -z "$ac_c_werror_flag" ||
27671 test ! -s conftest.err
27672 } && test -s conftest$ac_exeext &&
27673 $as_test_x conftest$ac_exeext; then
27674 eval "$as_ac_var=yes"
27676 echo "$as_me: failed program was:" >&5
27677 sed 's
/^
/|
/' conftest.$ac_ext >&5
27679 eval "$as_ac_var=no"
27682 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27683 conftest$ac_exeext conftest.$ac_ext
27685 ac_res=`eval echo '${'$as_ac_var'}'`
27686 { echo "$as_me:$LINENO: result: $ac_res" >&5
27687 echo "${ECHO_T}$ac_res" >&6; }
27688 if test `eval echo '${'$as_ac_var'}'` = yes; then
27689 cat >>confdefs.h <<_ACEOF
27690 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27692 cat >>confdefs.h <<\_ACEOF
27693 #define BX_HAVE_TIMELOCAL 1
27700 for ac_func in gmtime
27702 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27703 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27704 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27705 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27706 echo $ECHO_N "(cached) $ECHO_C" >&6
27708 cat >conftest.$ac_ext <<_ACEOF
27711 cat confdefs.h >>conftest.$ac_ext
27712 cat >>conftest.$ac_ext <<_ACEOF
27713 /* end confdefs.h. */
27714 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27715 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27716 #define $ac_func innocuous_$ac_func
27718 /* System header to define __stub macros and hopefully few prototypes,
27719 which can conflict with char $ac_func (); below.
27720 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27721 <limits.h> exists even on freestanding compilers. */
27724 # include <limits.h>
27726 # include <assert.h>
27731 /* Override any GCC internal prototype to avoid an error.
27732 Use char because int might match the return type of a GCC
27733 builtin and then its argument prototype would still apply. */
27738 /* The GNU C library defines this for functions which it implements
27739 to always fail with ENOSYS. Some functions are actually named
27740 something starting with __ and the normal name is an alias. */
27741 #if defined __stub_$ac_func || defined __stub___$ac_func
27748 return $ac_func ();
27753 rm -f conftest.$ac_objext conftest$ac_exeext
27754 if { (ac_try="$ac_link"
27755 case "(($ac_try" in
27756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27757 *) ac_try_echo=$ac_try;;
27759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27760 (eval "$ac_link") 2>conftest.er1
27762 grep -v '^
*+' conftest.er1 >conftest.err
27764 cat conftest.err >&5
27765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27766 (exit $ac_status); } && {
27767 test -z "$ac_c_werror_flag" ||
27768 test ! -s conftest.err
27769 } && test -s conftest$ac_exeext &&
27770 $as_test_x conftest$ac_exeext; then
27771 eval "$as_ac_var=yes"
27773 echo "$as_me: failed program was:" >&5
27774 sed 's
/^
/|
/' conftest.$ac_ext >&5
27776 eval "$as_ac_var=no"
27779 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27780 conftest$ac_exeext conftest.$ac_ext
27782 ac_res=`eval echo '${'$as_ac_var'}'`
27783 { echo "$as_me:$LINENO: result: $ac_res" >&5
27784 echo "${ECHO_T}$ac_res" >&6; }
27785 if test `eval echo '${'$as_ac_var'}'` = yes; then
27786 cat >>confdefs.h <<_ACEOF
27787 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27789 cat >>confdefs.h <<\_ACEOF
27790 #define BX_HAVE_GMTIME 1
27797 for ac_func in mktime
27799 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27800 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27801 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27802 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27803 echo $ECHO_N "(cached) $ECHO_C" >&6
27805 cat >conftest.$ac_ext <<_ACEOF
27808 cat confdefs.h >>conftest.$ac_ext
27809 cat >>conftest.$ac_ext <<_ACEOF
27810 /* end confdefs.h. */
27811 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27812 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27813 #define $ac_func innocuous_$ac_func
27815 /* System header to define __stub macros and hopefully few prototypes,
27816 which can conflict with char $ac_func (); below.
27817 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27818 <limits.h> exists even on freestanding compilers. */
27821 # include <limits.h>
27823 # include <assert.h>
27828 /* Override any GCC internal prototype to avoid an error.
27829 Use char because int might match the return type of a GCC
27830 builtin and then its argument prototype would still apply. */
27835 /* The GNU C library defines this for functions which it implements
27836 to always fail with ENOSYS. Some functions are actually named
27837 something starting with __ and the normal name is an alias. */
27838 #if defined __stub_$ac_func || defined __stub___$ac_func
27845 return $ac_func ();
27850 rm -f conftest.$ac_objext conftest$ac_exeext
27851 if { (ac_try="$ac_link"
27852 case "(($ac_try" in
27853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27854 *) ac_try_echo=$ac_try;;
27856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27857 (eval "$ac_link") 2>conftest.er1
27859 grep -v '^
*+' conftest.er1 >conftest.err
27861 cat conftest.err >&5
27862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27863 (exit $ac_status); } && {
27864 test -z "$ac_c_werror_flag" ||
27865 test ! -s conftest.err
27866 } && test -s conftest$ac_exeext &&
27867 $as_test_x conftest$ac_exeext; then
27868 eval "$as_ac_var=yes"
27870 echo "$as_me: failed program was:" >&5
27871 sed 's
/^
/|
/' conftest.$ac_ext >&5
27873 eval "$as_ac_var=no"
27876 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27877 conftest$ac_exeext conftest.$ac_ext
27879 ac_res=`eval echo '${'$as_ac_var'}'`
27880 { echo "$as_me:$LINENO: result: $ac_res" >&5
27881 echo "${ECHO_T}$ac_res" >&6; }
27882 if test `eval echo '${'$as_ac_var'}'` = yes; then
27883 cat >>confdefs.h <<_ACEOF
27884 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27886 cat >>confdefs.h <<\_ACEOF
27887 #define BX_HAVE_MKTIME 1
27894 # Check whether --enable-largefile was given.
27895 if test "${enable_largefile+set}" = set; then
27896 enableval=$enable_largefile;
27899 if test "$enable_largefile" != no; then
27902 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
27903 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
27904 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
27905 echo $ECHO_N "(cached) $ECHO_C" >&6
27908 cat >conftest.$ac_ext <<_ACEOF
27911 cat confdefs.h >>conftest.$ac_ext
27912 cat >>conftest.$ac_ext <<_ACEOF
27913 /* end confdefs.h. */
27914 #define _FILE_OFFSET_BITS 64
27915 #include <sys/types.h>
27920 unsigned int field: sizeof(off_t) == 8;
27927 rm -f conftest.$ac_objext
27928 if { (ac_try="$ac_compile"
27929 case "(($ac_try" in
27930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27931 *) ac_try_echo=$ac_try;;
27933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27934 (eval "$ac_compile") 2>conftest.er1
27936 grep -v '^
*+' conftest.er1 >conftest.err
27938 cat conftest.err >&5
27939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27940 (exit $ac_status); } && {
27941 test -z "$ac_c_werror_flag" ||
27942 test ! -s conftest.err
27943 } && test -s conftest.$ac_objext; then
27944 ac_cv_sys_file_offset_bits=64
27946 echo "$as_me: failed program was:" >&5
27947 sed 's
/^
/|
/' conftest.$ac_ext >&5
27949 ac_cv_sys_file_offset_bits=no
27952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27956 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
27957 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
27959 if test "$ac_cv_sys_file_offset_bits" != no; then
27961 cat >>confdefs.h <<_ACEOF
27962 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
27967 if test "x$wx_largefile" != "xyes"; then
27969 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
27970 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
27971 if test "${ac_cv_sys_large_files+set}" = set; then
27972 echo $ECHO_N "(cached) $ECHO_C" >&6
27975 cat >conftest.$ac_ext <<_ACEOF
27978 cat confdefs.h >>conftest.$ac_ext
27979 cat >>conftest.$ac_ext <<_ACEOF
27980 /* end confdefs.h. */
27981 #define _LARGE_FILES 1
27982 #include <sys/types.h>
27987 unsigned int field: sizeof(off_t) == 8;
27994 rm -f conftest.$ac_objext
27995 if { (ac_try="$ac_compile"
27996 case "(($ac_try" in
27997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27998 *) ac_try_echo=$ac_try;;
28000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28001 (eval "$ac_compile") 2>conftest.er1
28003 grep -v '^
*+' conftest.er1 >conftest.err
28005 cat conftest.err >&5
28006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28007 (exit $ac_status); } && {
28008 test -z "$ac_c_werror_flag" ||
28009 test ! -s conftest.err
28010 } && test -s conftest.$ac_objext; then
28011 ac_cv_sys_large_files=1
28013 echo "$as_me: failed program was:" >&5
28014 sed 's
/^
/|
/' conftest.$ac_ext >&5
28016 ac_cv_sys_large_files=no
28019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28023 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
28024 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
28026 if test "$ac_cv_sys_large_files" != no; then
28028 cat >>confdefs.h <<_ACEOF
28029 #define _LARGE_FILES $ac_cv_sys_large_files
28036 { echo "$as_me:$LINENO: checking if large file support is available" >&5
28037 echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6; }
28038 if test "x$wx_largefile" = "xyes"; then
28039 cat >>confdefs.h <<\_ACEOF
28040 #define HAVE_LARGEFILE_SUPPORT 1
28044 { echo "$as_me:$LINENO: result: $wx_largefile" >&5
28045 echo "${ECHO_T}$wx_largefile" >&6; }
28049 if test "x$wx_largefile" = "xyes"; then
28050 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
28051 BX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
28053 BX_LARGEFILE_FLAGS="-D_LARGE_FILES"
28055 CPPFLAGS="$CPPFLAGS $BX_LARGEFILE_FLAGS"
28056 CFLAGS="$CFLAGS $BX_LARGEFILE_FLAGS"
28057 CXXFLAGS="$CXXFLAGS $BX_LARGEFILE_FLAGS"
28065 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28066 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28067 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28068 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28069 echo $ECHO_N "(cached) $ECHO_C" >&6
28071 cat >conftest.$ac_ext <<_ACEOF
28074 cat confdefs.h >>conftest.$ac_ext
28075 cat >>conftest.$ac_ext <<_ACEOF
28076 /* end confdefs.h. */
28077 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28078 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28079 #define $ac_func innocuous_$ac_func
28081 /* System header to define __stub macros and hopefully few prototypes,
28082 which can conflict with char $ac_func (); below.
28083 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28084 <limits.h> exists even on freestanding compilers. */
28087 # include <limits.h>
28089 # include <assert.h>
28094 /* Override any GCC internal prototype to avoid an error.
28095 Use char because int might match the return type of a GCC
28096 builtin and then its argument prototype would still apply. */
28101 /* The GNU C library defines this for functions which it implements
28102 to always fail with ENOSYS. Some functions are actually named
28103 something starting with __ and the normal name is an alias. */
28104 #if defined __stub_$ac_func || defined __stub___$ac_func
28111 return $ac_func ();
28116 rm -f conftest.$ac_objext conftest$ac_exeext
28117 if { (ac_try="$ac_link"
28118 case "(($ac_try" in
28119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28120 *) ac_try_echo=$ac_try;;
28122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28123 (eval "$ac_link") 2>conftest.er1
28125 grep -v '^
*+' conftest.er1 >conftest.err
28127 cat conftest.err >&5
28128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28129 (exit $ac_status); } && {
28130 test -z "$ac_c_werror_flag" ||
28131 test ! -s conftest.err
28132 } && test -s conftest$ac_exeext &&
28133 $as_test_x conftest$ac_exeext; then
28134 eval "$as_ac_var=yes"
28136 echo "$as_me: failed program was:" >&5
28137 sed 's
/^
/|
/' conftest.$ac_ext >&5
28139 eval "$as_ac_var=no"
28142 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28143 conftest$ac_exeext conftest.$ac_ext
28145 ac_res=`eval echo '${'$as_ac_var'}'`
28146 { echo "$as_me:$LINENO: result: $ac_res" >&5
28147 echo "${ECHO_T}$ac_res" >&6; }
28148 if test `eval echo '${'$as_ac_var'}'` = yes; then
28149 cat >>confdefs.h <<_ACEOF
28150 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28157 for ac_func in floor
28159 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28160 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28161 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28162 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28163 echo $ECHO_N "(cached) $ECHO_C" >&6
28165 cat >conftest.$ac_ext <<_ACEOF
28168 cat confdefs.h >>conftest.$ac_ext
28169 cat >>conftest.$ac_ext <<_ACEOF
28170 /* end confdefs.h. */
28171 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28172 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28173 #define $ac_func innocuous_$ac_func
28175 /* System header to define __stub macros and hopefully few prototypes,
28176 which can conflict with char $ac_func (); below.
28177 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28178 <limits.h> exists even on freestanding compilers. */
28181 # include <limits.h>
28183 # include <assert.h>
28188 /* Override any GCC internal prototype to avoid an error.
28189 Use char because int might match the return type of a GCC
28190 builtin and then its argument prototype would still apply. */
28195 /* The GNU C library defines this for functions which it implements
28196 to always fail with ENOSYS. Some functions are actually named
28197 something starting with __ and the normal name is an alias. */
28198 #if defined __stub_$ac_func || defined __stub___$ac_func
28205 return $ac_func ();
28210 rm -f conftest.$ac_objext conftest$ac_exeext
28211 if { (ac_try="$ac_link"
28212 case "(($ac_try" in
28213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28214 *) ac_try_echo=$ac_try;;
28216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28217 (eval "$ac_link") 2>conftest.er1
28219 grep -v '^
*+' conftest.er1 >conftest.err
28221 cat conftest.err >&5
28222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28223 (exit $ac_status); } && {
28224 test -z "$ac_c_werror_flag" ||
28225 test ! -s conftest.err
28226 } && test -s conftest$ac_exeext &&
28227 $as_test_x conftest$ac_exeext; then
28228 eval "$as_ac_var=yes"
28230 echo "$as_me: failed program was:" >&5
28231 sed 's
/^
/|
/' conftest.$ac_ext >&5
28233 eval "$as_ac_var=no"
28236 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28237 conftest$ac_exeext conftest.$ac_ext
28239 ac_res=`eval echo '${'$as_ac_var'}'`
28240 { echo "$as_me:$LINENO: result: $ac_res" >&5
28241 echo "${ECHO_T}$ac_res" >&6; }
28242 if test `eval echo '${'$as_ac_var'}'` = yes; then
28243 cat >>confdefs.h <<_ACEOF
28244 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28250 { echo "$as_me:$LINENO: checking if math functions link without -lm" >&5
28251 echo $ECHO_N "checking if math functions link without -lm... $ECHO_C" >&6; }
28252 if test "$have_cos" = 1 -a "$have_floor" = 1; then
28253 { echo "$as_me:$LINENO: result: yes" >&5
28254 echo "${ECHO_T}yes" >&6; }
28256 { echo "$as_me:$LINENO: result: no" >&5
28257 echo "${ECHO_T}no" >&6; }
28259 # use different functions to bypass configure caching
28265 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28266 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28267 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28268 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28269 echo $ECHO_N "(cached) $ECHO_C" >&6
28271 cat >conftest.$ac_ext <<_ACEOF
28274 cat confdefs.h >>conftest.$ac_ext
28275 cat >>conftest.$ac_ext <<_ACEOF
28276 /* end confdefs.h. */
28277 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28278 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28279 #define $ac_func innocuous_$ac_func
28281 /* System header to define __stub macros and hopefully few prototypes,
28282 which can conflict with char $ac_func (); below.
28283 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28284 <limits.h> exists even on freestanding compilers. */
28287 # include <limits.h>
28289 # include <assert.h>
28294 /* Override any GCC internal prototype to avoid an error.
28295 Use char because int might match the return type of a GCC
28296 builtin and then its argument prototype would still apply. */
28301 /* The GNU C library defines this for functions which it implements
28302 to always fail with ENOSYS. Some functions are actually named
28303 something starting with __ and the normal name is an alias. */
28304 #if defined __stub_$ac_func || defined __stub___$ac_func
28311 return $ac_func ();
28316 rm -f conftest.$ac_objext conftest$ac_exeext
28317 if { (ac_try="$ac_link"
28318 case "(($ac_try" in
28319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28320 *) ac_try_echo=$ac_try;;
28322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28323 (eval "$ac_link") 2>conftest.er1
28325 grep -v '^
*+' conftest.er1 >conftest.err
28327 cat conftest.err >&5
28328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28329 (exit $ac_status); } && {
28330 test -z "$ac_c_werror_flag" ||
28331 test ! -s conftest.err
28332 } && test -s conftest$ac_exeext &&
28333 $as_test_x conftest$ac_exeext; then
28334 eval "$as_ac_var=yes"
28336 echo "$as_me: failed program was:" >&5
28337 sed 's
/^
/|
/' conftest.$ac_ext >&5
28339 eval "$as_ac_var=no"
28342 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28343 conftest$ac_exeext conftest.$ac_ext
28345 ac_res=`eval echo '${'$as_ac_var'}'`
28346 { echo "$as_me:$LINENO: result: $ac_res" >&5
28347 echo "${ECHO_T}$ac_res" >&6; }
28348 if test `eval echo '${'$as_ac_var'}'` = yes; then
28349 cat >>confdefs.h <<_ACEOF
28350 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28357 for ac_func in ceil
28359 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28360 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28361 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28362 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28363 echo $ECHO_N "(cached) $ECHO_C" >&6
28365 cat >conftest.$ac_ext <<_ACEOF
28368 cat confdefs.h >>conftest.$ac_ext
28369 cat >>conftest.$ac_ext <<_ACEOF
28370 /* end confdefs.h. */
28371 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28372 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28373 #define $ac_func innocuous_$ac_func
28375 /* System header to define __stub macros and hopefully few prototypes,
28376 which can conflict with char $ac_func (); below.
28377 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28378 <limits.h> exists even on freestanding compilers. */
28381 # include <limits.h>
28383 # include <assert.h>
28388 /* Override any GCC internal prototype to avoid an error.
28389 Use char because int might match the return type of a GCC
28390 builtin and then its argument prototype would still apply. */
28395 /* The GNU C library defines this for functions which it implements
28396 to always fail with ENOSYS. Some functions are actually named
28397 something starting with __ and the normal name is an alias. */
28398 #if defined __stub_$ac_func || defined __stub___$ac_func
28405 return $ac_func ();
28410 rm -f conftest.$ac_objext conftest$ac_exeext
28411 if { (ac_try="$ac_link"
28412 case "(($ac_try" in
28413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28414 *) ac_try_echo=$ac_try;;
28416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28417 (eval "$ac_link") 2>conftest.er1
28419 grep -v '^
*+' conftest.er1 >conftest.err
28421 cat conftest.err >&5
28422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28423 (exit $ac_status); } && {
28424 test -z "$ac_c_werror_flag" ||
28425 test ! -s conftest.err
28426 } && test -s conftest$ac_exeext &&
28427 $as_test_x conftest$ac_exeext; then
28428 eval "$as_ac_var=yes"
28430 echo "$as_me: failed program was:" >&5
28431 sed 's
/^
/|
/' conftest.$ac_ext >&5
28433 eval "$as_ac_var=no"
28436 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28437 conftest$ac_exeext conftest.$ac_ext
28439 ac_res=`eval echo '${'$as_ac_var'}'`
28440 { echo "$as_me:$LINENO: result: $ac_res" >&5
28441 echo "${ECHO_T}$ac_res" >&6; }
28442 if test `eval echo '${'$as_ac_var'}'` = yes; then
28443 cat >>confdefs.h <<_ACEOF
28444 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28450 { echo "$as_me:$LINENO: checking if math functions link with -lm" >&5
28451 echo $ECHO_N "checking if math functions link with -lm... $ECHO_C" >&6; }
28452 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
28453 { echo "$as_me:$LINENO: result: yes" >&5
28454 echo "${ECHO_T}yes" >&6; }
28456 { echo "$as_me:$LINENO: result: no" >&5
28457 echo "${ECHO_T}no" >&6; }
28458 # not sure we should warn the user, crash, etc.
28459 # expect link failure
28463 { echo "$as_me:$LINENO: checking for struct timeval" >&5
28464 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
28465 cat >conftest.$ac_ext <<_ACEOF
28468 cat confdefs.h >>conftest.$ac_ext
28469 cat >>conftest.$ac_ext <<_ACEOF
28470 /* end confdefs.h. */
28471 #include <sys/time.h>
28480 rm -f conftest.$ac_objext
28481 if { (ac_try="$ac_compile"
28482 case "(($ac_try" in
28483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28484 *) ac_try_echo=$ac_try;;
28486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28487 (eval "$ac_compile") 2>conftest.er1
28489 grep -v '^
*+' conftest.er1 >conftest.err
28491 cat conftest.err >&5
28492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28493 (exit $ac_status); } && {
28494 test -z "$ac_c_werror_flag" ||
28495 test ! -s conftest.err
28496 } && test -s conftest.$ac_objext; then
28498 { echo "$as_me:$LINENO: result: yes" >&5
28499 echo "${ECHO_T}yes" >&6; }
28500 cat >>confdefs.h <<\_ACEOF
28501 #define BX_HAVE_STRUCT_TIMEVAL 1
28506 echo "$as_me: failed program was:" >&5
28507 sed 's
/^
/|
/' conftest.$ac_ext >&5
28509 { echo "$as_me:$LINENO: result: no" >&5
28510 echo "${ECHO_T}no" >&6; }
28513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28515 { echo "$as_me:$LINENO: checking if compiler allows empty structs" >&5
28516 echo $ECHO_N "checking if compiler allows empty structs... $ECHO_C" >&6; }
28517 cat >conftest.$ac_ext <<_ACEOF
28520 cat confdefs.h >>conftest.$ac_ext
28521 cat >>conftest.$ac_ext <<_ACEOF
28522 /* end confdefs.h. */
28527 typedef struct { } junk;
28532 rm -f conftest.$ac_objext
28533 if { (ac_try="$ac_compile"
28534 case "(($ac_try" in
28535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28536 *) ac_try_echo=$ac_try;;
28538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28539 (eval "$ac_compile") 2>conftest.er1
28541 grep -v '^
*+' conftest.er1 >conftest.err
28543 cat conftest.err >&5
28544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28545 (exit $ac_status); } && {
28546 test -z "$ac_c_werror_flag" ||
28547 test ! -s conftest.err
28548 } && test -s conftest.$ac_objext; then
28549 { echo "$as_me:$LINENO: result: yes" >&5
28550 echo "${ECHO_T}yes" >&6; }
28552 echo "$as_me: failed program was:" >&5
28553 sed 's
/^
/|
/' conftest.$ac_ext >&5
28556 cat >>confdefs.h <<\_ACEOF
28557 #define BX_NO_EMPTY_STRUCTS 1
28560 { echo "$as_me:$LINENO: result: no" >&5
28561 echo "${ECHO_T}no" >&6; }
28565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28567 { echo "$as_me:$LINENO: checking if compiler allows __attribute__" >&5
28568 echo $ECHO_N "checking if compiler allows __attribute__... $ECHO_C" >&6; }
28569 cat >conftest.$ac_ext <<_ACEOF
28572 cat confdefs.h >>conftest.$ac_ext
28573 cat >>conftest.$ac_ext <<_ACEOF
28574 /* end confdefs.h. */
28579 typedef struct { } __attribute__ ((packed)) junk;
28584 rm -f conftest.$ac_objext
28585 if { (ac_try="$ac_compile"
28586 case "(($ac_try" in
28587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28588 *) ac_try_echo=$ac_try;;
28590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28591 (eval "$ac_compile") 2>conftest.er1
28593 grep -v '^
*+' conftest.er1 >conftest.err
28595 cat conftest.err >&5
28596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28597 (exit $ac_status); } && {
28598 test -z "$ac_c_werror_flag" ||
28599 test ! -s conftest.err
28600 } && test -s conftest.$ac_objext; then
28601 { echo "$as_me:$LINENO: result: yes" >&5
28602 echo "${ECHO_T}yes" >&6; }
28604 echo "$as_me: failed program was:" >&5
28605 sed 's
/^
/|
/' conftest.$ac_ext >&5
28608 { echo "$as_me:$LINENO: result: no" >&5
28609 echo "${ECHO_T}no" >&6; }
28610 cat >>confdefs.h <<\_ACEOF
28611 #define BX_NO_ATTRIBUTES 1
28617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28621 ac_cpp='$CXXCPP $CPPFLAGS'
28622 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
28623 ac_link='$CXX -o conftest
$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
28624 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28626 { echo "$as_me:$LINENO: checking for hash_map" >&5
28627 echo $ECHO_N "checking for hash_map... $ECHO_C" >&6; }
28628 cat >conftest.$ac_ext <<_ACEOF
28631 cat confdefs.h >>conftest.$ac_ext
28632 cat >>conftest.$ac_ext <<_ACEOF
28633 /* end confdefs.h. */
28634 #include <hash_map>
28643 rm -f conftest.$ac_objext
28644 if { (ac_try="$ac_compile"
28645 case "(($ac_try" in
28646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28647 *) ac_try_echo=$ac_try;;
28649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28650 (eval "$ac_compile") 2>conftest.er1
28652 grep -v '^
*+' conftest.er1 >conftest.err
28654 cat conftest.err >&5
28655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28656 (exit $ac_status); } && {
28657 test -z "$ac_cxx_werror_flag" ||
28658 test ! -s conftest.err
28659 } && test -s conftest.$ac_objext; then
28661 { echo "$as_me:$LINENO: result: yes" >&5
28662 echo "${ECHO_T}yes" >&6; }
28663 cat >>confdefs.h <<\_ACEOF
28664 #define BX_HAVE_HASH_MAP 1
28669 echo "$as_me: failed program was:" >&5
28670 sed 's
/^
/|
/' conftest.$ac_ext >&5
28672 { echo "$as_me:$LINENO: result: no" >&5
28673 echo "${ECHO_T}no" >&6; }
28676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28677 { echo "$as_me:$LINENO: checking for hash_map.h" >&5
28678 echo $ECHO_N "checking for hash_map.h... $ECHO_C" >&6; }
28679 cat >conftest.$ac_ext <<_ACEOF
28682 cat confdefs.h >>conftest.$ac_ext
28683 cat >>conftest.$ac_ext <<_ACEOF
28684 /* end confdefs.h. */
28685 #include <hash_map.h>
28694 rm -f conftest.$ac_objext
28695 if { (ac_try="$ac_compile"
28696 case "(($ac_try" in
28697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28698 *) ac_try_echo=$ac_try;;
28700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28701 (eval "$ac_compile") 2>conftest.er1
28703 grep -v '^
*+' conftest.er1 >conftest.err
28705 cat conftest.err >&5
28706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28707 (exit $ac_status); } && {
28708 test -z "$ac_cxx_werror_flag" ||
28709 test ! -s conftest.err
28710 } && test -s conftest.$ac_objext; then
28712 { echo "$as_me:$LINENO: result: yes" >&5
28713 echo "${ECHO_T}yes" >&6; }
28714 cat >>confdefs.h <<\_ACEOF
28715 #define BX_HAVE_HASH_MAP_H 1
28720 echo "$as_me: failed program was:" >&5
28721 sed 's
/^
/|
/' conftest.$ac_ext >&5
28723 { echo "$as_me:$LINENO: result: no" >&5
28724 echo "${ECHO_T}no" >&6; }
28727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28728 { echo "$as_me:$LINENO: checking for set" >&5
28729 echo $ECHO_N "checking for set... $ECHO_C" >&6; }
28730 cat >conftest.$ac_ext <<_ACEOF
28733 cat confdefs.h >>conftest.$ac_ext
28734 cat >>conftest.$ac_ext <<_ACEOF
28735 /* end confdefs.h. */
28745 rm -f conftest.$ac_objext
28746 if { (ac_try="$ac_compile"
28747 case "(($ac_try" in
28748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28749 *) ac_try_echo=$ac_try;;
28751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28752 (eval "$ac_compile") 2>conftest.er1
28754 grep -v '^
*+' conftest.er1 >conftest.err
28756 cat conftest.err >&5
28757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28758 (exit $ac_status); } && {
28759 test -z "$ac_cxx_werror_flag" ||
28760 test ! -s conftest.err
28761 } && test -s conftest.$ac_objext; then
28763 { echo "$as_me:$LINENO: result: yes" >&5
28764 echo "${ECHO_T}yes" >&6; }
28765 cat >>confdefs.h <<\_ACEOF
28766 #define BX_HAVE_SET 1
28771 echo "$as_me: failed program was:" >&5
28772 sed 's
/^
/|
/' conftest.$ac_ext >&5
28774 { echo "$as_me:$LINENO: result: no" >&5
28775 echo "${ECHO_T}no" >&6; }
28778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28779 { echo "$as_me:$LINENO: checking for set.h" >&5
28780 echo $ECHO_N "checking for set.h... $ECHO_C" >&6; }
28781 cat >conftest.$ac_ext <<_ACEOF
28784 cat confdefs.h >>conftest.$ac_ext
28785 cat >>conftest.$ac_ext <<_ACEOF
28786 /* end confdefs.h. */
28796 rm -f conftest.$ac_objext
28797 if { (ac_try="$ac_compile"
28798 case "(($ac_try" in
28799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28800 *) ac_try_echo=$ac_try;;
28802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28803 (eval "$ac_compile") 2>conftest.er1
28805 grep -v '^
*+' conftest.er1 >conftest.err
28807 cat conftest.err >&5
28808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28809 (exit $ac_status); } && {
28810 test -z "$ac_cxx_werror_flag" ||
28811 test ! -s conftest.err
28812 } && test -s conftest.$ac_objext; then
28814 { echo "$as_me:$LINENO: result: yes" >&5
28815 echo "${ECHO_T}yes" >&6; }
28816 cat >>confdefs.h <<\_ACEOF
28817 #define BX_HAVE_SET_H 1
28822 echo "$as_me: failed program was:" >&5
28823 sed 's
/^
/|
/' conftest.$ac_ext >&5
28825 { echo "$as_me:$LINENO: result: no" >&5
28826 echo "${ECHO_T}no" >&6; }
28829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28831 ac_cpp='$CPP $CPPFLAGS'
28832 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
28833 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
28834 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28837 if test "$with_all_libs" = yes; then
28838 if test "$cross_configure" = 1; then
28839 { echo "$as_me:$LINENO: WARNING: Using --with-all-libs while cross configuring is very unlikely to be what you want. You should specify the --with-* args yourself." >&5
28840 echo "$as_me: WARNING: Using --with-all-libs while cross configuring is very unlikely to be what you want. You should specify the --with-* args yourself." >&2;}
28842 if test "$with_beos" != yes; then
28844 if test "${ac_cv_header_app_Application_h+set}" = set; then
28845 { echo "$as_me:$LINENO: checking for app/Application.h" >&5
28846 echo $ECHO_N "checking for app/Application.h... $ECHO_C" >&6; }
28847 if test "${ac_cv_header_app_Application_h+set}" = set; then
28848 echo $ECHO_N "(cached) $ECHO_C" >&6
28850 { echo "$as_me:$LINENO: result: $ac_cv_header_app_Application_h" >&5
28851 echo "${ECHO_T}$ac_cv_header_app_Application_h" >&6; }
28853 # Is the header compilable?
28854 { echo "$as_me:$LINENO: checking app/Application.h usability" >&5
28855 echo $ECHO_N "checking app/Application.h usability... $ECHO_C" >&6; }
28856 cat >conftest.$ac_ext <<_ACEOF
28859 cat confdefs.h >>conftest.$ac_ext
28860 cat >>conftest.$ac_ext <<_ACEOF
28861 /* end confdefs.h. */
28862 $ac_includes_default
28863 #include <app/Application.h>
28865 rm -f conftest.$ac_objext
28866 if { (ac_try="$ac_compile"
28867 case "(($ac_try" in
28868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28869 *) ac_try_echo=$ac_try;;
28871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28872 (eval "$ac_compile") 2>conftest.er1
28874 grep -v '^
*+' conftest.er1 >conftest.err
28876 cat conftest.err >&5
28877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28878 (exit $ac_status); } && {
28879 test -z "$ac_c_werror_flag" ||
28880 test ! -s conftest.err
28881 } && test -s conftest.$ac_objext; then
28882 ac_header_compiler=yes
28884 echo "$as_me: failed program was:" >&5
28885 sed 's
/^
/|
/' conftest.$ac_ext >&5
28887 ac_header_compiler=no
28890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28891 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28892 echo "${ECHO_T}$ac_header_compiler" >&6; }
28894 # Is the header present?
28895 { echo "$as_me:$LINENO: checking app/Application.h presence" >&5
28896 echo $ECHO_N "checking app/Application.h presence... $ECHO_C" >&6; }
28897 cat >conftest.$ac_ext <<_ACEOF
28900 cat confdefs.h >>conftest.$ac_ext
28901 cat >>conftest.$ac_ext <<_ACEOF
28902 /* end confdefs.h. */
28903 #include <app/Application.h>
28905 if { (ac_try="$ac_cpp conftest.$ac_ext"
28906 case "(($ac_try" in
28907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28908 *) ac_try_echo=$ac_try;;
28910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28911 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28913 grep -v '^
*+' conftest.er1 >conftest.err
28915 cat conftest.err >&5
28916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28917 (exit $ac_status); } >/dev/null && {
28918 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28919 test ! -s conftest.err
28921 ac_header_preproc=yes
28923 echo "$as_me: failed program was:" >&5
28924 sed 's
/^
/|
/' conftest.$ac_ext >&5
28926 ac_header_preproc=no
28929 rm -f conftest.err conftest.$ac_ext
28930 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28931 echo "${ECHO_T}$ac_header_preproc" >&6; }
28933 # So? What about this header?
28934 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28936 { echo "$as_me:$LINENO: WARNING: app/Application.h: accepted by the compiler, rejected by the preprocessor!" >&5
28937 echo "$as_me: WARNING: app/Application.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28938 { echo "$as_me:$LINENO: WARNING: app/Application.h: proceeding with the compiler's result
" >&5
28939 echo "$as_me: WARNING
: app
/Application.h
: proceeding with the compiler
's result" >&2;}
28940 ac_header_preproc=yes
28943 { echo "$as_me:$LINENO: WARNING: app/Application.h: present but cannot be compiled" >&5
28944 echo "$as_me: WARNING: app/Application.h: present but cannot be compiled" >&2;}
28945 { echo "$as_me:$LINENO: WARNING: app/Application.h: check for missing prerequisite headers?" >&5
28946 echo "$as_me: WARNING: app/Application.h: check for missing prerequisite headers?" >&2;}
28947 { echo "$as_me:$LINENO: WARNING: app/Application.h: see the Autoconf documentation" >&5
28948 echo "$as_me: WARNING: app/Application.h: see the Autoconf documentation" >&2;}
28949 { echo "$as_me:$LINENO: WARNING: app/Application.h: section \"Present But Cannot Be Compiled\"" >&5
28950 echo "$as_me: WARNING: app/Application.h: section \"Present But Cannot Be Compiled\"" >&2;}
28951 { echo "$as_me:$LINENO: WARNING: app/Application.h: proceeding with the preprocessor's result
" >&5
28952 echo "$as_me: WARNING
: app
/Application.h
: proceeding with the preprocessor
's result" >&2;}
28953 { echo "$as_me:$LINENO: WARNING: app/Application.h: in the future, the compiler will take precedence" >&5
28954 echo "$as_me: WARNING: app/Application.h: in the future, the compiler will take precedence" >&2;}
28958 { echo "$as_me:$LINENO: checking for app/Application.h" >&5
28959 echo $ECHO_N "checking for app/Application.h... $ECHO_C" >&6; }
28960 if test "${ac_cv_header_app_Application_h+set}" = set; then
28961 echo $ECHO_N "(cached) $ECHO_C" >&6
28963 ac_cv_header_app_Application_h=$ac_header_preproc
28965 { echo "$as_me:$LINENO: result: $ac_cv_header_app_Application_h" >&5
28966 echo "${ECHO_T}$ac_cv_header_app_Application_h" >&6; }
28969 if test $ac_cv_header_app_Application_h = yes; then
28976 if test "${ac_cv_header_interface_Window_h+set}" = set; then
28977 { echo "$as_me:$LINENO: checking for interface/Window.h" >&5
28978 echo $ECHO_N "checking for interface/Window.h... $ECHO_C" >&6; }
28979 if test "${ac_cv_header_interface_Window_h+set}" = set; then
28980 echo $ECHO_N "(cached) $ECHO_C" >&6
28982 { echo "$as_me:$LINENO: result: $ac_cv_header_interface_Window_h" >&5
28983 echo "${ECHO_T}$ac_cv_header_interface_Window_h" >&6; }
28985 # Is the header compilable?
28986 { echo "$as_me:$LINENO: checking interface/Window.h usability" >&5
28987 echo $ECHO_N "checking interface/Window.h usability... $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. */
28994 $ac_includes_default
28995 #include <interface/Window.h>
28997 rm -f conftest.$ac_objext
28998 if { (ac_try="$ac_compile"
28999 case "(($ac_try" in
29000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29001 *) ac_try_echo=$ac_try;;
29003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29004 (eval "$ac_compile") 2>conftest.er1
29006 grep -v '^
*+' conftest.er1 >conftest.err
29008 cat conftest.err >&5
29009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29010 (exit $ac_status); } && {
29011 test -z "$ac_c_werror_flag" ||
29012 test ! -s conftest.err
29013 } && test -s conftest.$ac_objext; then
29014 ac_header_compiler=yes
29016 echo "$as_me: failed program was:" >&5
29017 sed 's
/^
/|
/' conftest.$ac_ext >&5
29019 ac_header_compiler=no
29022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29023 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29024 echo "${ECHO_T}$ac_header_compiler" >&6; }
29026 # Is the header present?
29027 { echo "$as_me:$LINENO: checking interface/Window.h presence" >&5
29028 echo $ECHO_N "checking interface/Window.h presence... $ECHO_C" >&6; }
29029 cat >conftest.$ac_ext <<_ACEOF
29032 cat confdefs.h >>conftest.$ac_ext
29033 cat >>conftest.$ac_ext <<_ACEOF
29034 /* end confdefs.h. */
29035 #include <interface/Window.h>
29037 if { (ac_try="$ac_cpp conftest.$ac_ext"
29038 case "(($ac_try" in
29039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29040 *) ac_try_echo=$ac_try;;
29042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29043 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29045 grep -v '^
*+' conftest.er1 >conftest.err
29047 cat conftest.err >&5
29048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29049 (exit $ac_status); } >/dev/null && {
29050 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29051 test ! -s conftest.err
29053 ac_header_preproc=yes
29055 echo "$as_me: failed program was:" >&5
29056 sed 's
/^
/|
/' conftest.$ac_ext >&5
29058 ac_header_preproc=no
29061 rm -f conftest.err conftest.$ac_ext
29062 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29063 echo "${ECHO_T}$ac_header_preproc" >&6; }
29065 # So? What about this header?
29066 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29068 { echo "$as_me:$LINENO: WARNING: interface/Window.h: accepted by the compiler, rejected by the preprocessor!" >&5
29069 echo "$as_me: WARNING: interface/Window.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29070 { echo "$as_me:$LINENO: WARNING: interface/Window.h: proceeding with the compiler's result
" >&5
29071 echo "$as_me: WARNING
: interface
/Window.h
: proceeding with the compiler
's result" >&2;}
29072 ac_header_preproc=yes
29075 { echo "$as_me:$LINENO: WARNING: interface/Window.h: present but cannot be compiled" >&5
29076 echo "$as_me: WARNING: interface/Window.h: present but cannot be compiled" >&2;}
29077 { echo "$as_me:$LINENO: WARNING: interface/Window.h: check for missing prerequisite headers?" >&5
29078 echo "$as_me: WARNING: interface/Window.h: check for missing prerequisite headers?" >&2;}
29079 { echo "$as_me:$LINENO: WARNING: interface/Window.h: see the Autoconf documentation" >&5
29080 echo "$as_me: WARNING: interface/Window.h: see the Autoconf documentation" >&2;}
29081 { echo "$as_me:$LINENO: WARNING: interface/Window.h: section \"Present But Cannot Be Compiled\"" >&5
29082 echo "$as_me: WARNING: interface/Window.h: section \"Present But Cannot Be Compiled\"" >&2;}
29083 { echo "$as_me:$LINENO: WARNING: interface/Window.h: proceeding with the preprocessor's result
" >&5
29084 echo "$as_me: WARNING
: interface
/Window.h
: proceeding with the preprocessor
's result" >&2;}
29085 { echo "$as_me:$LINENO: WARNING: interface/Window.h: in the future, the compiler will take precedence" >&5
29086 echo "$as_me: WARNING: interface/Window.h: in the future, the compiler will take precedence" >&2;}
29090 { echo "$as_me:$LINENO: checking for interface/Window.h" >&5
29091 echo $ECHO_N "checking for interface/Window.h... $ECHO_C" >&6; }
29092 if test "${ac_cv_header_interface_Window_h+set}" = set; then
29093 echo $ECHO_N "(cached) $ECHO_C" >&6
29095 ac_cv_header_interface_Window_h=$ac_header_preproc
29097 { echo "$as_me:$LINENO: result: $ac_cv_header_interface_Window_h" >&5
29098 echo "${ECHO_T}$ac_cv_header_interface_Window_h" >&6; }
29101 if test $ac_cv_header_interface_Window_h = yes; then
29108 if test "${ac_cv_header_interface_View_h+set}" = set; then
29109 { echo "$as_me:$LINENO: checking for interface/View.h" >&5
29110 echo $ECHO_N "checking for interface/View.h... $ECHO_C" >&6; }
29111 if test "${ac_cv_header_interface_View_h+set}" = set; then
29112 echo $ECHO_N "(cached) $ECHO_C" >&6
29114 { echo "$as_me:$LINENO: result: $ac_cv_header_interface_View_h" >&5
29115 echo "${ECHO_T}$ac_cv_header_interface_View_h" >&6; }
29117 # Is the header compilable?
29118 { echo "$as_me:$LINENO: checking interface/View.h usability" >&5
29119 echo $ECHO_N "checking interface/View.h usability... $ECHO_C" >&6; }
29120 cat >conftest.$ac_ext <<_ACEOF
29123 cat confdefs.h >>conftest.$ac_ext
29124 cat >>conftest.$ac_ext <<_ACEOF
29125 /* end confdefs.h. */
29126 $ac_includes_default
29127 #include <interface/View.h>
29129 rm -f conftest.$ac_objext
29130 if { (ac_try="$ac_compile"
29131 case "(($ac_try" in
29132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29133 *) ac_try_echo=$ac_try;;
29135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29136 (eval "$ac_compile") 2>conftest.er1
29138 grep -v '^
*+' conftest.er1 >conftest.err
29140 cat conftest.err >&5
29141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29142 (exit $ac_status); } && {
29143 test -z "$ac_c_werror_flag" ||
29144 test ! -s conftest.err
29145 } && test -s conftest.$ac_objext; then
29146 ac_header_compiler=yes
29148 echo "$as_me: failed program was:" >&5
29149 sed 's
/^
/|
/' conftest.$ac_ext >&5
29151 ac_header_compiler=no
29154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29155 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29156 echo "${ECHO_T}$ac_header_compiler" >&6; }
29158 # Is the header present?
29159 { echo "$as_me:$LINENO: checking interface/View.h presence" >&5
29160 echo $ECHO_N "checking interface/View.h presence... $ECHO_C" >&6; }
29161 cat >conftest.$ac_ext <<_ACEOF
29164 cat confdefs.h >>conftest.$ac_ext
29165 cat >>conftest.$ac_ext <<_ACEOF
29166 /* end confdefs.h. */
29167 #include <interface/View.h>
29169 if { (ac_try="$ac_cpp conftest.$ac_ext"
29170 case "(($ac_try" in
29171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29172 *) ac_try_echo=$ac_try;;
29174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29175 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29177 grep -v '^
*+' conftest.er1 >conftest.err
29179 cat conftest.err >&5
29180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29181 (exit $ac_status); } >/dev/null && {
29182 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29183 test ! -s conftest.err
29185 ac_header_preproc=yes
29187 echo "$as_me: failed program was:" >&5
29188 sed 's
/^
/|
/' conftest.$ac_ext >&5
29190 ac_header_preproc=no
29193 rm -f conftest.err conftest.$ac_ext
29194 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29195 echo "${ECHO_T}$ac_header_preproc" >&6; }
29197 # So? What about this header?
29198 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29200 { echo "$as_me:$LINENO: WARNING: interface/View.h: accepted by the compiler, rejected by the preprocessor!" >&5
29201 echo "$as_me: WARNING: interface/View.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29202 { echo "$as_me:$LINENO: WARNING: interface/View.h: proceeding with the compiler's result
" >&5
29203 echo "$as_me: WARNING
: interface
/View.h
: proceeding with the compiler
's result" >&2;}
29204 ac_header_preproc=yes
29207 { echo "$as_me:$LINENO: WARNING: interface/View.h: present but cannot be compiled" >&5
29208 echo "$as_me: WARNING: interface/View.h: present but cannot be compiled" >&2;}
29209 { echo "$as_me:$LINENO: WARNING: interface/View.h: check for missing prerequisite headers?" >&5
29210 echo "$as_me: WARNING: interface/View.h: check for missing prerequisite headers?" >&2;}
29211 { echo "$as_me:$LINENO: WARNING: interface/View.h: see the Autoconf documentation" >&5
29212 echo "$as_me: WARNING: interface/View.h: see the Autoconf documentation" >&2;}
29213 { echo "$as_me:$LINENO: WARNING: interface/View.h: section \"Present But Cannot Be Compiled\"" >&5
29214 echo "$as_me: WARNING: interface/View.h: section \"Present But Cannot Be Compiled\"" >&2;}
29215 { echo "$as_me:$LINENO: WARNING: interface/View.h: proceeding with the preprocessor's result
" >&5
29216 echo "$as_me: WARNING
: interface
/View.h
: proceeding with the preprocessor
's result" >&2;}
29217 { echo "$as_me:$LINENO: WARNING: interface/View.h: in the future, the compiler will take precedence" >&5
29218 echo "$as_me: WARNING: interface/View.h: in the future, the compiler will take precedence" >&2;}
29222 { echo "$as_me:$LINENO: checking for interface/View.h" >&5
29223 echo $ECHO_N "checking for interface/View.h... $ECHO_C" >&6; }
29224 if test "${ac_cv_header_interface_View_h+set}" = set; then
29225 echo $ECHO_N "(cached) $ECHO_C" >&6
29227 ac_cv_header_interface_View_h=$ac_header_preproc
29229 { echo "$as_me:$LINENO: result: $ac_cv_header_interface_View_h" >&5
29230 echo "${ECHO_T}$ac_cv_header_interface_View_h" >&6; }
29233 if test $ac_cv_header_interface_View_h = yes; then
29240 if test $can_compile_beos = 1; then
29245 if test "$with_amigaos" != yes; then
29246 can_compile_amigaos=1
29247 if test "${ac_cv_header_proto_intuition_h+set}" = set; then
29248 { echo "$as_me:$LINENO: checking for proto/intuition.h" >&5
29249 echo $ECHO_N "checking for proto/intuition.h... $ECHO_C" >&6; }
29250 if test "${ac_cv_header_proto_intuition_h+set}" = set; then
29251 echo $ECHO_N "(cached) $ECHO_C" >&6
29253 { echo "$as_me:$LINENO: result: $ac_cv_header_proto_intuition_h" >&5
29254 echo "${ECHO_T}$ac_cv_header_proto_intuition_h" >&6; }
29256 # Is the header compilable?
29257 { echo "$as_me:$LINENO: checking proto/intuition.h usability" >&5
29258 echo $ECHO_N "checking proto/intuition.h usability... $ECHO_C" >&6; }
29259 cat >conftest.$ac_ext <<_ACEOF
29262 cat confdefs.h >>conftest.$ac_ext
29263 cat >>conftest.$ac_ext <<_ACEOF
29264 /* end confdefs.h. */
29265 $ac_includes_default
29266 #include <proto/intuition.h>
29268 rm -f conftest.$ac_objext
29269 if { (ac_try="$ac_compile"
29270 case "(($ac_try" in
29271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29272 *) ac_try_echo=$ac_try;;
29274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29275 (eval "$ac_compile") 2>conftest.er1
29277 grep -v '^
*+' conftest.er1 >conftest.err
29279 cat conftest.err >&5
29280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29281 (exit $ac_status); } && {
29282 test -z "$ac_c_werror_flag" ||
29283 test ! -s conftest.err
29284 } && test -s conftest.$ac_objext; then
29285 ac_header_compiler=yes
29287 echo "$as_me: failed program was:" >&5
29288 sed 's
/^
/|
/' conftest.$ac_ext >&5
29290 ac_header_compiler=no
29293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29294 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29295 echo "${ECHO_T}$ac_header_compiler" >&6; }
29297 # Is the header present?
29298 { echo "$as_me:$LINENO: checking proto/intuition.h presence" >&5
29299 echo $ECHO_N "checking proto/intuition.h presence... $ECHO_C" >&6; }
29300 cat >conftest.$ac_ext <<_ACEOF
29303 cat confdefs.h >>conftest.$ac_ext
29304 cat >>conftest.$ac_ext <<_ACEOF
29305 /* end confdefs.h. */
29306 #include <proto/intuition.h>
29308 if { (ac_try="$ac_cpp conftest.$ac_ext"
29309 case "(($ac_try" in
29310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29311 *) ac_try_echo=$ac_try;;
29313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29314 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29316 grep -v '^
*+' conftest.er1 >conftest.err
29318 cat conftest.err >&5
29319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29320 (exit $ac_status); } >/dev/null && {
29321 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29322 test ! -s conftest.err
29324 ac_header_preproc=yes
29326 echo "$as_me: failed program was:" >&5
29327 sed 's
/^
/|
/' conftest.$ac_ext >&5
29329 ac_header_preproc=no
29332 rm -f conftest.err conftest.$ac_ext
29333 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29334 echo "${ECHO_T}$ac_header_preproc" >&6; }
29336 # So? What about this header?
29337 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29339 { echo "$as_me:$LINENO: WARNING: proto/intuition.h: accepted by the compiler, rejected by the preprocessor!" >&5
29340 echo "$as_me: WARNING: proto/intuition.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29341 { echo "$as_me:$LINENO: WARNING: proto/intuition.h: proceeding with the compiler's result
" >&5
29342 echo "$as_me: WARNING
: proto
/intuition.h
: proceeding with the compiler
's result" >&2;}
29343 ac_header_preproc=yes
29346 { echo "$as_me:$LINENO: WARNING: proto/intuition.h: present but cannot be compiled" >&5
29347 echo "$as_me: WARNING: proto/intuition.h: present but cannot be compiled" >&2;}
29348 { echo "$as_me:$LINENO: WARNING: proto/intuition.h: check for missing prerequisite headers?" >&5
29349 echo "$as_me: WARNING: proto/intuition.h: check for missing prerequisite headers?" >&2;}
29350 { echo "$as_me:$LINENO: WARNING: proto/intuition.h: see the Autoconf documentation" >&5
29351 echo "$as_me: WARNING: proto/intuition.h: see the Autoconf documentation" >&2;}
29352 { echo "$as_me:$LINENO: WARNING: proto/intuition.h: section \"Present But Cannot Be Compiled\"" >&5
29353 echo "$as_me: WARNING: proto/intuition.h: section \"Present But Cannot Be Compiled\"" >&2;}
29354 { echo "$as_me:$LINENO: WARNING: proto/intuition.h: proceeding with the preprocessor's result
" >&5
29355 echo "$as_me: WARNING
: proto
/intuition.h
: proceeding with the preprocessor
's result" >&2;}
29356 { echo "$as_me:$LINENO: WARNING: proto/intuition.h: in the future, the compiler will take precedence" >&5
29357 echo "$as_me: WARNING: proto/intuition.h: in the future, the compiler will take precedence" >&2;}
29361 { echo "$as_me:$LINENO: checking for proto/intuition.h" >&5
29362 echo $ECHO_N "checking for proto/intuition.h... $ECHO_C" >&6; }
29363 if test "${ac_cv_header_proto_intuition_h+set}" = set; then
29364 echo $ECHO_N "(cached) $ECHO_C" >&6
29366 ac_cv_header_proto_intuition_h=$ac_header_preproc
29368 { echo "$as_me:$LINENO: result: $ac_cv_header_proto_intuition_h" >&5
29369 echo "${ECHO_T}$ac_cv_header_proto_intuition_h" >&6; }
29372 if test $ac_cv_header_proto_intuition_h = yes; then
29375 can_compile_amigaos=0
29379 if test "${ac_cv_header_intuition_intuitionbase_h+set}" = set; then
29380 { echo "$as_me:$LINENO: checking for intuition/intuitionbase.h" >&5
29381 echo $ECHO_N "checking for intuition/intuitionbase.h... $ECHO_C" >&6; }
29382 if test "${ac_cv_header_intuition_intuitionbase_h+set}" = set; then
29383 echo $ECHO_N "(cached) $ECHO_C" >&6
29385 { echo "$as_me:$LINENO: result: $ac_cv_header_intuition_intuitionbase_h" >&5
29386 echo "${ECHO_T}$ac_cv_header_intuition_intuitionbase_h" >&6; }
29388 # Is the header compilable?
29389 { echo "$as_me:$LINENO: checking intuition/intuitionbase.h usability" >&5
29390 echo $ECHO_N "checking intuition/intuitionbase.h usability... $ECHO_C" >&6; }
29391 cat >conftest.$ac_ext <<_ACEOF
29394 cat confdefs.h >>conftest.$ac_ext
29395 cat >>conftest.$ac_ext <<_ACEOF
29396 /* end confdefs.h. */
29397 $ac_includes_default
29398 #include <intuition/intuitionbase.h>
29400 rm -f conftest.$ac_objext
29401 if { (ac_try="$ac_compile"
29402 case "(($ac_try" in
29403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29404 *) ac_try_echo=$ac_try;;
29406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29407 (eval "$ac_compile") 2>conftest.er1
29409 grep -v '^
*+' conftest.er1 >conftest.err
29411 cat conftest.err >&5
29412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29413 (exit $ac_status); } && {
29414 test -z "$ac_c_werror_flag" ||
29415 test ! -s conftest.err
29416 } && test -s conftest.$ac_objext; then
29417 ac_header_compiler=yes
29419 echo "$as_me: failed program was:" >&5
29420 sed 's
/^
/|
/' conftest.$ac_ext >&5
29422 ac_header_compiler=no
29425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29426 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29427 echo "${ECHO_T}$ac_header_compiler" >&6; }
29429 # Is the header present?
29430 { echo "$as_me:$LINENO: checking intuition/intuitionbase.h presence" >&5
29431 echo $ECHO_N "checking intuition/intuitionbase.h presence... $ECHO_C" >&6; }
29432 cat >conftest.$ac_ext <<_ACEOF
29435 cat confdefs.h >>conftest.$ac_ext
29436 cat >>conftest.$ac_ext <<_ACEOF
29437 /* end confdefs.h. */
29438 #include <intuition/intuitionbase.h>
29440 if { (ac_try="$ac_cpp conftest.$ac_ext"
29441 case "(($ac_try" in
29442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29443 *) ac_try_echo=$ac_try;;
29445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29446 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29448 grep -v '^
*+' conftest.er1 >conftest.err
29450 cat conftest.err >&5
29451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29452 (exit $ac_status); } >/dev/null && {
29453 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29454 test ! -s conftest.err
29456 ac_header_preproc=yes
29458 echo "$as_me: failed program was:" >&5
29459 sed 's
/^
/|
/' conftest.$ac_ext >&5
29461 ac_header_preproc=no
29464 rm -f conftest.err conftest.$ac_ext
29465 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29466 echo "${ECHO_T}$ac_header_preproc" >&6; }
29468 # So? What about this header?
29469 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29471 { echo "$as_me:$LINENO: WARNING: intuition/intuitionbase.h: accepted by the compiler, rejected by the preprocessor!" >&5
29472 echo "$as_me: WARNING: intuition/intuitionbase.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29473 { echo "$as_me:$LINENO: WARNING: intuition/intuitionbase.h: proceeding with the compiler's result
" >&5
29474 echo "$as_me: WARNING
: intuition
/intuitionbase.h
: proceeding with the compiler
's result" >&2;}
29475 ac_header_preproc=yes
29478 { echo "$as_me:$LINENO: WARNING: intuition/intuitionbase.h: present but cannot be compiled" >&5
29479 echo "$as_me: WARNING: intuition/intuitionbase.h: present but cannot be compiled" >&2;}
29480 { echo "$as_me:$LINENO: WARNING: intuition/intuitionbase.h: check for missing prerequisite headers?" >&5
29481 echo "$as_me: WARNING: intuition/intuitionbase.h: check for missing prerequisite headers?" >&2;}
29482 { echo "$as_me:$LINENO: WARNING: intuition/intuitionbase.h: see the Autoconf documentation" >&5
29483 echo "$as_me: WARNING: intuition/intuitionbase.h: see the Autoconf documentation" >&2;}
29484 { echo "$as_me:$LINENO: WARNING: intuition/intuitionbase.h: section \"Present But Cannot Be Compiled\"" >&5
29485 echo "$as_me: WARNING: intuition/intuitionbase.h: section \"Present But Cannot Be Compiled\"" >&2;}
29486 { echo "$as_me:$LINENO: WARNING: intuition/intuitionbase.h: proceeding with the preprocessor's result
" >&5
29487 echo "$as_me: WARNING
: intuition
/intuitionbase.h
: proceeding with the preprocessor
's result" >&2;}
29488 { echo "$as_me:$LINENO: WARNING: intuition/intuitionbase.h: in the future, the compiler will take precedence" >&5
29489 echo "$as_me: WARNING: intuition/intuitionbase.h: in the future, the compiler will take precedence" >&2;}
29493 { echo "$as_me:$LINENO: checking for intuition/intuitionbase.h" >&5
29494 echo $ECHO_N "checking for intuition/intuitionbase.h... $ECHO_C" >&6; }
29495 if test "${ac_cv_header_intuition_intuitionbase_h+set}" = set; then
29496 echo $ECHO_N "(cached) $ECHO_C" >&6
29498 ac_cv_header_intuition_intuitionbase_h=$ac_header_preproc
29500 { echo "$as_me:$LINENO: result: $ac_cv_header_intuition_intuitionbase_h" >&5
29501 echo "${ECHO_T}$ac_cv_header_intuition_intuitionbase_h" >&6; }
29504 if test $ac_cv_header_intuition_intuitionbase_h = yes; then
29507 can_compile_amigaos=0
29511 if test "${ac_cv_header_cybergraphx_cybergraphics_h+set}" = set; then
29512 { echo "$as_me:$LINENO: checking for cybergraphx/cybergraphics.h" >&5
29513 echo $ECHO_N "checking for cybergraphx/cybergraphics.h... $ECHO_C" >&6; }
29514 if test "${ac_cv_header_cybergraphx_cybergraphics_h+set}" = set; then
29515 echo $ECHO_N "(cached) $ECHO_C" >&6
29517 { echo "$as_me:$LINENO: result: $ac_cv_header_cybergraphx_cybergraphics_h" >&5
29518 echo "${ECHO_T}$ac_cv_header_cybergraphx_cybergraphics_h" >&6; }
29520 # Is the header compilable?
29521 { echo "$as_me:$LINENO: checking cybergraphx/cybergraphics.h usability" >&5
29522 echo $ECHO_N "checking cybergraphx/cybergraphics.h usability... $ECHO_C" >&6; }
29523 cat >conftest.$ac_ext <<_ACEOF
29526 cat confdefs.h >>conftest.$ac_ext
29527 cat >>conftest.$ac_ext <<_ACEOF
29528 /* end confdefs.h. */
29529 $ac_includes_default
29530 #include <cybergraphx/cybergraphics.h>
29532 rm -f conftest.$ac_objext
29533 if { (ac_try="$ac_compile"
29534 case "(($ac_try" in
29535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29536 *) ac_try_echo=$ac_try;;
29538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29539 (eval "$ac_compile") 2>conftest.er1
29541 grep -v '^
*+' conftest.er1 >conftest.err
29543 cat conftest.err >&5
29544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29545 (exit $ac_status); } && {
29546 test -z "$ac_c_werror_flag" ||
29547 test ! -s conftest.err
29548 } && test -s conftest.$ac_objext; then
29549 ac_header_compiler=yes
29551 echo "$as_me: failed program was:" >&5
29552 sed 's
/^
/|
/' conftest.$ac_ext >&5
29554 ac_header_compiler=no
29557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29558 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29559 echo "${ECHO_T}$ac_header_compiler" >&6; }
29561 # Is the header present?
29562 { echo "$as_me:$LINENO: checking cybergraphx/cybergraphics.h presence" >&5
29563 echo $ECHO_N "checking cybergraphx/cybergraphics.h presence... $ECHO_C" >&6; }
29564 cat >conftest.$ac_ext <<_ACEOF
29567 cat confdefs.h >>conftest.$ac_ext
29568 cat >>conftest.$ac_ext <<_ACEOF
29569 /* end confdefs.h. */
29570 #include <cybergraphx/cybergraphics.h>
29572 if { (ac_try="$ac_cpp conftest.$ac_ext"
29573 case "(($ac_try" in
29574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29575 *) ac_try_echo=$ac_try;;
29577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29578 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29580 grep -v '^
*+' conftest.er1 >conftest.err
29582 cat conftest.err >&5
29583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29584 (exit $ac_status); } >/dev/null && {
29585 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29586 test ! -s conftest.err
29588 ac_header_preproc=yes
29590 echo "$as_me: failed program was:" >&5
29591 sed 's
/^
/|
/' conftest.$ac_ext >&5
29593 ac_header_preproc=no
29596 rm -f conftest.err conftest.$ac_ext
29597 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29598 echo "${ECHO_T}$ac_header_preproc" >&6; }
29600 # So? What about this header?
29601 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29603 { echo "$as_me:$LINENO: WARNING: cybergraphx/cybergraphics.h: accepted by the compiler, rejected by the preprocessor!" >&5
29604 echo "$as_me: WARNING: cybergraphx/cybergraphics.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29605 { echo "$as_me:$LINENO: WARNING: cybergraphx/cybergraphics.h: proceeding with the compiler's result
" >&5
29606 echo "$as_me: WARNING
: cybergraphx
/cybergraphics.h
: proceeding with the compiler
's result" >&2;}
29607 ac_header_preproc=yes
29610 { echo "$as_me:$LINENO: WARNING: cybergraphx/cybergraphics.h: present but cannot be compiled" >&5
29611 echo "$as_me: WARNING: cybergraphx/cybergraphics.h: present but cannot be compiled" >&2;}
29612 { echo "$as_me:$LINENO: WARNING: cybergraphx/cybergraphics.h: check for missing prerequisite headers?" >&5
29613 echo "$as_me: WARNING: cybergraphx/cybergraphics.h: check for missing prerequisite headers?" >&2;}
29614 { echo "$as_me:$LINENO: WARNING: cybergraphx/cybergraphics.h: see the Autoconf documentation" >&5
29615 echo "$as_me: WARNING: cybergraphx/cybergraphics.h: see the Autoconf documentation" >&2;}
29616 { echo "$as_me:$LINENO: WARNING: cybergraphx/cybergraphics.h: section \"Present But Cannot Be Compiled\"" >&5
29617 echo "$as_me: WARNING: cybergraphx/cybergraphics.h: section \"Present But Cannot Be Compiled\"" >&2;}
29618 { echo "$as_me:$LINENO: WARNING: cybergraphx/cybergraphics.h: proceeding with the preprocessor's result
" >&5
29619 echo "$as_me: WARNING
: cybergraphx
/cybergraphics.h
: proceeding with the preprocessor
's result" >&2;}
29620 { echo "$as_me:$LINENO: WARNING: cybergraphx/cybergraphics.h: in the future, the compiler will take precedence" >&5
29621 echo "$as_me: WARNING: cybergraphx/cybergraphics.h: in the future, the compiler will take precedence" >&2;}
29625 { echo "$as_me:$LINENO: checking for cybergraphx/cybergraphics.h" >&5
29626 echo $ECHO_N "checking for cybergraphx/cybergraphics.h... $ECHO_C" >&6; }
29627 if test "${ac_cv_header_cybergraphx_cybergraphics_h+set}" = set; then
29628 echo $ECHO_N "(cached) $ECHO_C" >&6
29630 ac_cv_header_cybergraphx_cybergraphics_h=$ac_header_preproc
29632 { echo "$as_me:$LINENO: result: $ac_cv_header_cybergraphx_cybergraphics_h" >&5
29633 echo "${ECHO_T}$ac_cv_header_cybergraphx_cybergraphics_h" >&6; }
29636 if test $ac_cv_header_cybergraphx_cybergraphics_h = yes; then
29639 can_compile_amigaos=0
29643 if test "${ac_cv_header_devices_trackdisk_h+set}" = set; then
29644 { echo "$as_me:$LINENO: checking for devices/trackdisk.h" >&5
29645 echo $ECHO_N "checking for devices/trackdisk.h... $ECHO_C" >&6; }
29646 if test "${ac_cv_header_devices_trackdisk_h+set}" = set; then
29647 echo $ECHO_N "(cached) $ECHO_C" >&6
29649 { echo "$as_me:$LINENO: result: $ac_cv_header_devices_trackdisk_h" >&5
29650 echo "${ECHO_T}$ac_cv_header_devices_trackdisk_h" >&6; }
29652 # Is the header compilable?
29653 { echo "$as_me:$LINENO: checking devices/trackdisk.h usability" >&5
29654 echo $ECHO_N "checking devices/trackdisk.h usability... $ECHO_C" >&6; }
29655 cat >conftest.$ac_ext <<_ACEOF
29658 cat confdefs.h >>conftest.$ac_ext
29659 cat >>conftest.$ac_ext <<_ACEOF
29660 /* end confdefs.h. */
29661 $ac_includes_default
29662 #include <devices/trackdisk.h>
29664 rm -f conftest.$ac_objext
29665 if { (ac_try="$ac_compile"
29666 case "(($ac_try" in
29667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29668 *) ac_try_echo=$ac_try;;
29670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29671 (eval "$ac_compile") 2>conftest.er1
29673 grep -v '^
*+' conftest.er1 >conftest.err
29675 cat conftest.err >&5
29676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29677 (exit $ac_status); } && {
29678 test -z "$ac_c_werror_flag" ||
29679 test ! -s conftest.err
29680 } && test -s conftest.$ac_objext; then
29681 ac_header_compiler=yes
29683 echo "$as_me: failed program was:" >&5
29684 sed 's
/^
/|
/' conftest.$ac_ext >&5
29686 ac_header_compiler=no
29689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29690 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29691 echo "${ECHO_T}$ac_header_compiler" >&6; }
29693 # Is the header present?
29694 { echo "$as_me:$LINENO: checking devices/trackdisk.h presence" >&5
29695 echo $ECHO_N "checking devices/trackdisk.h presence... $ECHO_C" >&6; }
29696 cat >conftest.$ac_ext <<_ACEOF
29699 cat confdefs.h >>conftest.$ac_ext
29700 cat >>conftest.$ac_ext <<_ACEOF
29701 /* end confdefs.h. */
29702 #include <devices/trackdisk.h>
29704 if { (ac_try="$ac_cpp conftest.$ac_ext"
29705 case "(($ac_try" in
29706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29707 *) ac_try_echo=$ac_try;;
29709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29710 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29712 grep -v '^
*+' conftest.er1 >conftest.err
29714 cat conftest.err >&5
29715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29716 (exit $ac_status); } >/dev/null && {
29717 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29718 test ! -s conftest.err
29720 ac_header_preproc=yes
29722 echo "$as_me: failed program was:" >&5
29723 sed 's
/^
/|
/' conftest.$ac_ext >&5
29725 ac_header_preproc=no
29728 rm -f conftest.err conftest.$ac_ext
29729 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29730 echo "${ECHO_T}$ac_header_preproc" >&6; }
29732 # So? What about this header?
29733 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29735 { echo "$as_me:$LINENO: WARNING: devices/trackdisk.h: accepted by the compiler, rejected by the preprocessor!" >&5
29736 echo "$as_me: WARNING: devices/trackdisk.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29737 { echo "$as_me:$LINENO: WARNING: devices/trackdisk.h: proceeding with the compiler's result
" >&5
29738 echo "$as_me: WARNING
: devices
/trackdisk.h
: proceeding with the compiler
's result" >&2;}
29739 ac_header_preproc=yes
29742 { echo "$as_me:$LINENO: WARNING: devices/trackdisk.h: present but cannot be compiled" >&5
29743 echo "$as_me: WARNING: devices/trackdisk.h: present but cannot be compiled" >&2;}
29744 { echo "$as_me:$LINENO: WARNING: devices/trackdisk.h: check for missing prerequisite headers?" >&5
29745 echo "$as_me: WARNING: devices/trackdisk.h: check for missing prerequisite headers?" >&2;}
29746 { echo "$as_me:$LINENO: WARNING: devices/trackdisk.h: see the Autoconf documentation" >&5
29747 echo "$as_me: WARNING: devices/trackdisk.h: see the Autoconf documentation" >&2;}
29748 { echo "$as_me:$LINENO: WARNING: devices/trackdisk.h: section \"Present But Cannot Be Compiled\"" >&5
29749 echo "$as_me: WARNING: devices/trackdisk.h: section \"Present But Cannot Be Compiled\"" >&2;}
29750 { echo "$as_me:$LINENO: WARNING: devices/trackdisk.h: proceeding with the preprocessor's result
" >&5
29751 echo "$as_me: WARNING
: devices
/trackdisk.h
: proceeding with the preprocessor
's result" >&2;}
29752 { echo "$as_me:$LINENO: WARNING: devices/trackdisk.h: in the future, the compiler will take precedence" >&5
29753 echo "$as_me: WARNING: devices/trackdisk.h: in the future, the compiler will take precedence" >&2;}
29757 { echo "$as_me:$LINENO: checking for devices/trackdisk.h" >&5
29758 echo $ECHO_N "checking for devices/trackdisk.h... $ECHO_C" >&6; }
29759 if test "${ac_cv_header_devices_trackdisk_h+set}" = set; then
29760 echo $ECHO_N "(cached) $ECHO_C" >&6
29762 ac_cv_header_devices_trackdisk_h=$ac_header_preproc
29764 { echo "$as_me:$LINENO: result: $ac_cv_header_devices_trackdisk_h" >&5
29765 echo "${ECHO_T}$ac_cv_header_devices_trackdisk_h" >&6; }
29768 if test $ac_cv_header_devices_trackdisk_h = yes; then
29771 can_compile_amigaos=0
29775 if test $can_compile_amigaos = 1; then
29780 if test "$with_macos" != yes; then
29781 can_compile_macos=1
29782 if test "${ac_cv_header_Quickdraw_h+set}" = set; then
29783 { echo "$as_me:$LINENO: checking for Quickdraw.h" >&5
29784 echo $ECHO_N "checking for Quickdraw.h... $ECHO_C" >&6; }
29785 if test "${ac_cv_header_Quickdraw_h+set}" = set; then
29786 echo $ECHO_N "(cached) $ECHO_C" >&6
29788 { echo "$as_me:$LINENO: result: $ac_cv_header_Quickdraw_h" >&5
29789 echo "${ECHO_T}$ac_cv_header_Quickdraw_h" >&6; }
29791 # Is the header compilable?
29792 { echo "$as_me:$LINENO: checking Quickdraw.h usability" >&5
29793 echo $ECHO_N "checking Quickdraw.h usability... $ECHO_C" >&6; }
29794 cat >conftest.$ac_ext <<_ACEOF
29797 cat confdefs.h >>conftest.$ac_ext
29798 cat >>conftest.$ac_ext <<_ACEOF
29799 /* end confdefs.h. */
29800 $ac_includes_default
29801 #include <Quickdraw.h>
29803 rm -f conftest.$ac_objext
29804 if { (ac_try="$ac_compile"
29805 case "(($ac_try" in
29806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29807 *) ac_try_echo=$ac_try;;
29809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29810 (eval "$ac_compile") 2>conftest.er1
29812 grep -v '^
*+' conftest.er1 >conftest.err
29814 cat conftest.err >&5
29815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29816 (exit $ac_status); } && {
29817 test -z "$ac_c_werror_flag" ||
29818 test ! -s conftest.err
29819 } && test -s conftest.$ac_objext; then
29820 ac_header_compiler=yes
29822 echo "$as_me: failed program was:" >&5
29823 sed 's
/^
/|
/' conftest.$ac_ext >&5
29825 ac_header_compiler=no
29828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29829 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29830 echo "${ECHO_T}$ac_header_compiler" >&6; }
29832 # Is the header present?
29833 { echo "$as_me:$LINENO: checking Quickdraw.h presence" >&5
29834 echo $ECHO_N "checking Quickdraw.h presence... $ECHO_C" >&6; }
29835 cat >conftest.$ac_ext <<_ACEOF
29838 cat confdefs.h >>conftest.$ac_ext
29839 cat >>conftest.$ac_ext <<_ACEOF
29840 /* end confdefs.h. */
29841 #include <Quickdraw.h>
29843 if { (ac_try="$ac_cpp conftest.$ac_ext"
29844 case "(($ac_try" in
29845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29846 *) ac_try_echo=$ac_try;;
29848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29849 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29851 grep -v '^
*+' conftest.er1 >conftest.err
29853 cat conftest.err >&5
29854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29855 (exit $ac_status); } >/dev/null && {
29856 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29857 test ! -s conftest.err
29859 ac_header_preproc=yes
29861 echo "$as_me: failed program was:" >&5
29862 sed 's
/^
/|
/' conftest.$ac_ext >&5
29864 ac_header_preproc=no
29867 rm -f conftest.err conftest.$ac_ext
29868 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29869 echo "${ECHO_T}$ac_header_preproc" >&6; }
29871 # So? What about this header?
29872 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29874 { echo "$as_me:$LINENO: WARNING: Quickdraw.h: accepted by the compiler, rejected by the preprocessor!" >&5
29875 echo "$as_me: WARNING: Quickdraw.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29876 { echo "$as_me:$LINENO: WARNING: Quickdraw.h: proceeding with the compiler's result
" >&5
29877 echo "$as_me: WARNING
: Quickdraw.h
: proceeding with the compiler
's result" >&2;}
29878 ac_header_preproc=yes
29881 { echo "$as_me:$LINENO: WARNING: Quickdraw.h: present but cannot be compiled" >&5
29882 echo "$as_me: WARNING: Quickdraw.h: present but cannot be compiled" >&2;}
29883 { echo "$as_me:$LINENO: WARNING: Quickdraw.h: check for missing prerequisite headers?" >&5
29884 echo "$as_me: WARNING: Quickdraw.h: check for missing prerequisite headers?" >&2;}
29885 { echo "$as_me:$LINENO: WARNING: Quickdraw.h: see the Autoconf documentation" >&5
29886 echo "$as_me: WARNING: Quickdraw.h: see the Autoconf documentation" >&2;}
29887 { echo "$as_me:$LINENO: WARNING: Quickdraw.h: section \"Present But Cannot Be Compiled\"" >&5
29888 echo "$as_me: WARNING: Quickdraw.h: section \"Present But Cannot Be Compiled\"" >&2;}
29889 { echo "$as_me:$LINENO: WARNING: Quickdraw.h: proceeding with the preprocessor's result
" >&5
29890 echo "$as_me: WARNING
: Quickdraw.h
: proceeding with the preprocessor
's result" >&2;}
29891 { echo "$as_me:$LINENO: WARNING: Quickdraw.h: in the future, the compiler will take precedence" >&5
29892 echo "$as_me: WARNING: Quickdraw.h: in the future, the compiler will take precedence" >&2;}
29896 { echo "$as_me:$LINENO: checking for Quickdraw.h" >&5
29897 echo $ECHO_N "checking for Quickdraw.h... $ECHO_C" >&6; }
29898 if test "${ac_cv_header_Quickdraw_h+set}" = set; then
29899 echo $ECHO_N "(cached) $ECHO_C" >&6
29901 ac_cv_header_Quickdraw_h=$ac_header_preproc
29903 { echo "$as_me:$LINENO: result: $ac_cv_header_Quickdraw_h" >&5
29904 echo "${ECHO_T}$ac_cv_header_Quickdraw_h" >&6; }
29907 if test $ac_cv_header_Quickdraw_h = yes; then
29910 can_compile_macos=0
29914 if test "${ac_cv_header_Dialogs_h+set}" = set; then
29915 { echo "$as_me:$LINENO: checking for Dialogs.h" >&5
29916 echo $ECHO_N "checking for Dialogs.h... $ECHO_C" >&6; }
29917 if test "${ac_cv_header_Dialogs_h+set}" = set; then
29918 echo $ECHO_N "(cached) $ECHO_C" >&6
29920 { echo "$as_me:$LINENO: result: $ac_cv_header_Dialogs_h" >&5
29921 echo "${ECHO_T}$ac_cv_header_Dialogs_h" >&6; }
29923 # Is the header compilable?
29924 { echo "$as_me:$LINENO: checking Dialogs.h usability" >&5
29925 echo $ECHO_N "checking Dialogs.h usability... $ECHO_C" >&6; }
29926 cat >conftest.$ac_ext <<_ACEOF
29929 cat confdefs.h >>conftest.$ac_ext
29930 cat >>conftest.$ac_ext <<_ACEOF
29931 /* end confdefs.h. */
29932 $ac_includes_default
29933 #include <Dialogs.h>
29935 rm -f conftest.$ac_objext
29936 if { (ac_try="$ac_compile"
29937 case "(($ac_try" in
29938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29939 *) ac_try_echo=$ac_try;;
29941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29942 (eval "$ac_compile") 2>conftest.er1
29944 grep -v '^
*+' conftest.er1 >conftest.err
29946 cat conftest.err >&5
29947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29948 (exit $ac_status); } && {
29949 test -z "$ac_c_werror_flag" ||
29950 test ! -s conftest.err
29951 } && test -s conftest.$ac_objext; then
29952 ac_header_compiler=yes
29954 echo "$as_me: failed program was:" >&5
29955 sed 's
/^
/|
/' conftest.$ac_ext >&5
29957 ac_header_compiler=no
29960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29961 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29962 echo "${ECHO_T}$ac_header_compiler" >&6; }
29964 # Is the header present?
29965 { echo "$as_me:$LINENO: checking Dialogs.h presence" >&5
29966 echo $ECHO_N "checking Dialogs.h presence... $ECHO_C" >&6; }
29967 cat >conftest.$ac_ext <<_ACEOF
29970 cat confdefs.h >>conftest.$ac_ext
29971 cat >>conftest.$ac_ext <<_ACEOF
29972 /* end confdefs.h. */
29973 #include <Dialogs.h>
29975 if { (ac_try="$ac_cpp conftest.$ac_ext"
29976 case "(($ac_try" in
29977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29978 *) ac_try_echo=$ac_try;;
29980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29981 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29983 grep -v '^
*+' conftest.er1 >conftest.err
29985 cat conftest.err >&5
29986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29987 (exit $ac_status); } >/dev/null && {
29988 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29989 test ! -s conftest.err
29991 ac_header_preproc=yes
29993 echo "$as_me: failed program was:" >&5
29994 sed 's
/^
/|
/' conftest.$ac_ext >&5
29996 ac_header_preproc=no
29999 rm -f conftest.err conftest.$ac_ext
30000 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30001 echo "${ECHO_T}$ac_header_preproc" >&6; }
30003 # So? What about this header?
30004 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30006 { echo "$as_me:$LINENO: WARNING: Dialogs.h: accepted by the compiler, rejected by the preprocessor!" >&5
30007 echo "$as_me: WARNING: Dialogs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30008 { echo "$as_me:$LINENO: WARNING: Dialogs.h: proceeding with the compiler's result
" >&5
30009 echo "$as_me: WARNING
: Dialogs.h
: proceeding with the compiler
's result" >&2;}
30010 ac_header_preproc=yes
30013 { echo "$as_me:$LINENO: WARNING: Dialogs.h: present but cannot be compiled" >&5
30014 echo "$as_me: WARNING: Dialogs.h: present but cannot be compiled" >&2;}
30015 { echo "$as_me:$LINENO: WARNING: Dialogs.h: check for missing prerequisite headers?" >&5
30016 echo "$as_me: WARNING: Dialogs.h: check for missing prerequisite headers?" >&2;}
30017 { echo "$as_me:$LINENO: WARNING: Dialogs.h: see the Autoconf documentation" >&5
30018 echo "$as_me: WARNING: Dialogs.h: see the Autoconf documentation" >&2;}
30019 { echo "$as_me:$LINENO: WARNING: Dialogs.h: section \"Present But Cannot Be Compiled\"" >&5
30020 echo "$as_me: WARNING: Dialogs.h: section \"Present But Cannot Be Compiled\"" >&2;}
30021 { echo "$as_me:$LINENO: WARNING: Dialogs.h: proceeding with the preprocessor's result
" >&5
30022 echo "$as_me: WARNING
: Dialogs.h
: proceeding with the preprocessor
's result" >&2;}
30023 { echo "$as_me:$LINENO: WARNING: Dialogs.h: in the future, the compiler will take precedence" >&5
30024 echo "$as_me: WARNING: Dialogs.h: in the future, the compiler will take precedence" >&2;}
30028 { echo "$as_me:$LINENO: checking for Dialogs.h" >&5
30029 echo $ECHO_N "checking for Dialogs.h... $ECHO_C" >&6; }
30030 if test "${ac_cv_header_Dialogs_h+set}" = set; then
30031 echo $ECHO_N "(cached) $ECHO_C" >&6
30033 ac_cv_header_Dialogs_h=$ac_header_preproc
30035 { echo "$as_me:$LINENO: result: $ac_cv_header_Dialogs_h" >&5
30036 echo "${ECHO_T}$ac_cv_header_Dialogs_h" >&6; }
30039 if test $ac_cv_header_Dialogs_h = yes; then
30042 can_compile_macos=0
30046 if test $can_compile_macos = 1; then
30051 if test "$with_carbon" != yes; then
30052 can_compile_carbon=1
30053 if test "${ac_cv_header_Carbon_h+set}" = set; then
30054 { echo "$as_me:$LINENO: checking for Carbon.h" >&5
30055 echo $ECHO_N "checking for Carbon.h... $ECHO_C" >&6; }
30056 if test "${ac_cv_header_Carbon_h+set}" = set; then
30057 echo $ECHO_N "(cached) $ECHO_C" >&6
30059 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_h" >&5
30060 echo "${ECHO_T}$ac_cv_header_Carbon_h" >&6; }
30062 # Is the header compilable?
30063 { echo "$as_me:$LINENO: checking Carbon.h usability" >&5
30064 echo $ECHO_N "checking Carbon.h usability... $ECHO_C" >&6; }
30065 cat >conftest.$ac_ext <<_ACEOF
30068 cat confdefs.h >>conftest.$ac_ext
30069 cat >>conftest.$ac_ext <<_ACEOF
30070 /* end confdefs.h. */
30071 $ac_includes_default
30072 #include <Carbon.h>
30074 rm -f conftest.$ac_objext
30075 if { (ac_try="$ac_compile"
30076 case "(($ac_try" in
30077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30078 *) ac_try_echo=$ac_try;;
30080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30081 (eval "$ac_compile") 2>conftest.er1
30083 grep -v '^
*+' conftest.er1 >conftest.err
30085 cat conftest.err >&5
30086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30087 (exit $ac_status); } && {
30088 test -z "$ac_c_werror_flag" ||
30089 test ! -s conftest.err
30090 } && test -s conftest.$ac_objext; then
30091 ac_header_compiler=yes
30093 echo "$as_me: failed program was:" >&5
30094 sed 's
/^
/|
/' conftest.$ac_ext >&5
30096 ac_header_compiler=no
30099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30100 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30101 echo "${ECHO_T}$ac_header_compiler" >&6; }
30103 # Is the header present?
30104 { echo "$as_me:$LINENO: checking Carbon.h presence" >&5
30105 echo $ECHO_N "checking Carbon.h presence... $ECHO_C" >&6; }
30106 cat >conftest.$ac_ext <<_ACEOF
30109 cat confdefs.h >>conftest.$ac_ext
30110 cat >>conftest.$ac_ext <<_ACEOF
30111 /* end confdefs.h. */
30112 #include <Carbon.h>
30114 if { (ac_try="$ac_cpp conftest.$ac_ext"
30115 case "(($ac_try" in
30116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30117 *) ac_try_echo=$ac_try;;
30119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30120 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30122 grep -v '^
*+' conftest.er1 >conftest.err
30124 cat conftest.err >&5
30125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30126 (exit $ac_status); } >/dev/null && {
30127 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30128 test ! -s conftest.err
30130 ac_header_preproc=yes
30132 echo "$as_me: failed program was:" >&5
30133 sed 's
/^
/|
/' conftest.$ac_ext >&5
30135 ac_header_preproc=no
30138 rm -f conftest.err conftest.$ac_ext
30139 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30140 echo "${ECHO_T}$ac_header_preproc" >&6; }
30142 # So? What about this header?
30143 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30145 { echo "$as_me:$LINENO: WARNING: Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
30146 echo "$as_me: WARNING: Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30147 { echo "$as_me:$LINENO: WARNING: Carbon.h: proceeding with the compiler's result
" >&5
30148 echo "$as_me: WARNING
: Carbon.h
: proceeding with the compiler
's result" >&2;}
30149 ac_header_preproc=yes
30152 { echo "$as_me:$LINENO: WARNING: Carbon.h: present but cannot be compiled" >&5
30153 echo "$as_me: WARNING: Carbon.h: present but cannot be compiled" >&2;}
30154 { echo "$as_me:$LINENO: WARNING: Carbon.h: check for missing prerequisite headers?" >&5
30155 echo "$as_me: WARNING: Carbon.h: check for missing prerequisite headers?" >&2;}
30156 { echo "$as_me:$LINENO: WARNING: Carbon.h: see the Autoconf documentation" >&5
30157 echo "$as_me: WARNING: Carbon.h: see the Autoconf documentation" >&2;}
30158 { echo "$as_me:$LINENO: WARNING: Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
30159 echo "$as_me: WARNING: Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
30160 { echo "$as_me:$LINENO: WARNING: Carbon.h: proceeding with the preprocessor's result
" >&5
30161 echo "$as_me: WARNING
: Carbon.h
: proceeding with the preprocessor
's result" >&2;}
30162 { echo "$as_me:$LINENO: WARNING: Carbon.h: in the future, the compiler will take precedence" >&5
30163 echo "$as_me: WARNING: Carbon.h: in the future, the compiler will take precedence" >&2;}
30167 { echo "$as_me:$LINENO: checking for Carbon.h" >&5
30168 echo $ECHO_N "checking for Carbon.h... $ECHO_C" >&6; }
30169 if test "${ac_cv_header_Carbon_h+set}" = set; then
30170 echo $ECHO_N "(cached) $ECHO_C" >&6
30172 ac_cv_header_Carbon_h=$ac_header_preproc
30174 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_h" >&5
30175 echo "${ECHO_T}$ac_cv_header_Carbon_h" >&6; }
30178 if test $ac_cv_header_Carbon_h = yes; then
30181 can_compile_carbon=0
30185 if test "${ac_cv_header_ApplicationServices_ApplicationServices_h+set}" = set; then
30186 { echo "$as_me:$LINENO: checking for ApplicationServices/ApplicationServices.h" >&5
30187 echo $ECHO_N "checking for ApplicationServices/ApplicationServices.h... $ECHO_C" >&6; }
30188 if test "${ac_cv_header_ApplicationServices_ApplicationServices_h+set}" = set; then
30189 echo $ECHO_N "(cached) $ECHO_C" >&6
30191 { echo "$as_me:$LINENO: result: $ac_cv_header_ApplicationServices_ApplicationServices_h" >&5
30192 echo "${ECHO_T}$ac_cv_header_ApplicationServices_ApplicationServices_h" >&6; }
30194 # Is the header compilable?
30195 { echo "$as_me:$LINENO: checking ApplicationServices/ApplicationServices.h usability" >&5
30196 echo $ECHO_N "checking ApplicationServices/ApplicationServices.h usability... $ECHO_C" >&6; }
30197 cat >conftest.$ac_ext <<_ACEOF
30200 cat confdefs.h >>conftest.$ac_ext
30201 cat >>conftest.$ac_ext <<_ACEOF
30202 /* end confdefs.h. */
30203 $ac_includes_default
30204 #include <ApplicationServices/ApplicationServices.h>
30206 rm -f conftest.$ac_objext
30207 if { (ac_try="$ac_compile"
30208 case "(($ac_try" in
30209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30210 *) ac_try_echo=$ac_try;;
30212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30213 (eval "$ac_compile") 2>conftest.er1
30215 grep -v '^
*+' conftest.er1 >conftest.err
30217 cat conftest.err >&5
30218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30219 (exit $ac_status); } && {
30220 test -z "$ac_c_werror_flag" ||
30221 test ! -s conftest.err
30222 } && test -s conftest.$ac_objext; then
30223 ac_header_compiler=yes
30225 echo "$as_me: failed program was:" >&5
30226 sed 's
/^
/|
/' conftest.$ac_ext >&5
30228 ac_header_compiler=no
30231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30232 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30233 echo "${ECHO_T}$ac_header_compiler" >&6; }
30235 # Is the header present?
30236 { echo "$as_me:$LINENO: checking ApplicationServices/ApplicationServices.h presence" >&5
30237 echo $ECHO_N "checking ApplicationServices/ApplicationServices.h presence... $ECHO_C" >&6; }
30238 cat >conftest.$ac_ext <<_ACEOF
30241 cat confdefs.h >>conftest.$ac_ext
30242 cat >>conftest.$ac_ext <<_ACEOF
30243 /* end confdefs.h. */
30244 #include <ApplicationServices/ApplicationServices.h>
30246 if { (ac_try="$ac_cpp conftest.$ac_ext"
30247 case "(($ac_try" in
30248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30249 *) ac_try_echo=$ac_try;;
30251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30252 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30254 grep -v '^
*+' conftest.er1 >conftest.err
30256 cat conftest.err >&5
30257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30258 (exit $ac_status); } >/dev/null && {
30259 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30260 test ! -s conftest.err
30262 ac_header_preproc=yes
30264 echo "$as_me: failed program was:" >&5
30265 sed 's
/^
/|
/' conftest.$ac_ext >&5
30267 ac_header_preproc=no
30270 rm -f conftest.err conftest.$ac_ext
30271 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30272 echo "${ECHO_T}$ac_header_preproc" >&6; }
30274 # So? What about this header?
30275 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30277 { echo "$as_me:$LINENO: WARNING: ApplicationServices/ApplicationServices.h: accepted by the compiler, rejected by the preprocessor!" >&5
30278 echo "$as_me: WARNING: ApplicationServices/ApplicationServices.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30279 { echo "$as_me:$LINENO: WARNING: ApplicationServices/ApplicationServices.h: proceeding with the compiler's result
" >&5
30280 echo "$as_me: WARNING
: ApplicationServices
/ApplicationServices.h
: proceeding with the compiler
's result" >&2;}
30281 ac_header_preproc=yes
30284 { echo "$as_me:$LINENO: WARNING: ApplicationServices/ApplicationServices.h: present but cannot be compiled" >&5
30285 echo "$as_me: WARNING: ApplicationServices/ApplicationServices.h: present but cannot be compiled" >&2;}
30286 { echo "$as_me:$LINENO: WARNING: ApplicationServices/ApplicationServices.h: check for missing prerequisite headers?" >&5
30287 echo "$as_me: WARNING: ApplicationServices/ApplicationServices.h: check for missing prerequisite headers?" >&2;}
30288 { echo "$as_me:$LINENO: WARNING: ApplicationServices/ApplicationServices.h: see the Autoconf documentation" >&5
30289 echo "$as_me: WARNING: ApplicationServices/ApplicationServices.h: see the Autoconf documentation" >&2;}
30290 { echo "$as_me:$LINENO: WARNING: ApplicationServices/ApplicationServices.h: section \"Present But Cannot Be Compiled\"" >&5
30291 echo "$as_me: WARNING: ApplicationServices/ApplicationServices.h: section \"Present But Cannot Be Compiled\"" >&2;}
30292 { echo "$as_me:$LINENO: WARNING: ApplicationServices/ApplicationServices.h: proceeding with the preprocessor's result
" >&5
30293 echo "$as_me: WARNING
: ApplicationServices
/ApplicationServices.h
: proceeding with the preprocessor
's result" >&2;}
30294 { echo "$as_me:$LINENO: WARNING: ApplicationServices/ApplicationServices.h: in the future, the compiler will take precedence" >&5
30295 echo "$as_me: WARNING: ApplicationServices/ApplicationServices.h: in the future, the compiler will take precedence" >&2;}
30299 { echo "$as_me:$LINENO: checking for ApplicationServices/ApplicationServices.h" >&5
30300 echo $ECHO_N "checking for ApplicationServices/ApplicationServices.h... $ECHO_C" >&6; }
30301 if test "${ac_cv_header_ApplicationServices_ApplicationServices_h+set}" = set; then
30302 echo $ECHO_N "(cached) $ECHO_C" >&6
30304 ac_cv_header_ApplicationServices_ApplicationServices_h=$ac_header_preproc
30306 { echo "$as_me:$LINENO: result: $ac_cv_header_ApplicationServices_ApplicationServices_h" >&5
30307 echo "${ECHO_T}$ac_cv_header_ApplicationServices_ApplicationServices_h" >&6; }
30310 if test $ac_cv_header_ApplicationServices_ApplicationServices_h = yes; then
30313 can_compile_carbon=0
30317 if test $can_compile_carbon = 1; then
30322 if test "$with_win32" != yes; then
30323 can_compile_win32=1
30324 if test "${ac_cv_header_windows_h+set}" = set; then
30325 { echo "$as_me:$LINENO: checking for windows.h" >&5
30326 echo $ECHO_N "checking for windows.h... $ECHO_C" >&6; }
30327 if test "${ac_cv_header_windows_h+set}" = set; then
30328 echo $ECHO_N "(cached) $ECHO_C" >&6
30330 { echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
30331 echo "${ECHO_T}$ac_cv_header_windows_h" >&6; }
30333 # Is the header compilable?
30334 { echo "$as_me:$LINENO: checking windows.h usability" >&5
30335 echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6; }
30336 cat >conftest.$ac_ext <<_ACEOF
30339 cat confdefs.h >>conftest.$ac_ext
30340 cat >>conftest.$ac_ext <<_ACEOF
30341 /* end confdefs.h. */
30342 $ac_includes_default
30343 #include <windows.h>
30345 rm -f conftest.$ac_objext
30346 if { (ac_try="$ac_compile"
30347 case "(($ac_try" in
30348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30349 *) ac_try_echo=$ac_try;;
30351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30352 (eval "$ac_compile") 2>conftest.er1
30354 grep -v '^
*+' conftest.er1 >conftest.err
30356 cat conftest.err >&5
30357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30358 (exit $ac_status); } && {
30359 test -z "$ac_c_werror_flag" ||
30360 test ! -s conftest.err
30361 } && test -s conftest.$ac_objext; then
30362 ac_header_compiler=yes
30364 echo "$as_me: failed program was:" >&5
30365 sed 's
/^
/|
/' conftest.$ac_ext >&5
30367 ac_header_compiler=no
30370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30371 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30372 echo "${ECHO_T}$ac_header_compiler" >&6; }
30374 # Is the header present?
30375 { echo "$as_me:$LINENO: checking windows.h presence" >&5
30376 echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6; }
30377 cat >conftest.$ac_ext <<_ACEOF
30380 cat confdefs.h >>conftest.$ac_ext
30381 cat >>conftest.$ac_ext <<_ACEOF
30382 /* end confdefs.h. */
30383 #include <windows.h>
30385 if { (ac_try="$ac_cpp conftest.$ac_ext"
30386 case "(($ac_try" in
30387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30388 *) ac_try_echo=$ac_try;;
30390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30391 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30393 grep -v '^
*+' conftest.er1 >conftest.err
30395 cat conftest.err >&5
30396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30397 (exit $ac_status); } >/dev/null && {
30398 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30399 test ! -s conftest.err
30401 ac_header_preproc=yes
30403 echo "$as_me: failed program was:" >&5
30404 sed 's
/^
/|
/' conftest.$ac_ext >&5
30406 ac_header_preproc=no
30409 rm -f conftest.err conftest.$ac_ext
30410 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30411 echo "${ECHO_T}$ac_header_preproc" >&6; }
30413 # So? What about this header?
30414 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30416 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
30417 echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30418 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result
" >&5
30419 echo "$as_me: WARNING
: windows.h
: proceeding with the compiler
's result" >&2;}
30420 ac_header_preproc=yes
30423 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
30424 echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
30425 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
30426 echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
30427 { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
30428 echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
30429 { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5
30430 echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;}
30431 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result
" >&5
30432 echo "$as_me: WARNING
: windows.h
: proceeding with the preprocessor
's result" >&2;}
30433 { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
30434 echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
30438 { echo "$as_me:$LINENO: checking for windows.h" >&5
30439 echo $ECHO_N "checking for windows.h... $ECHO_C" >&6; }
30440 if test "${ac_cv_header_windows_h+set}" = set; then
30441 echo $ECHO_N "(cached) $ECHO_C" >&6
30443 ac_cv_header_windows_h=$ac_header_preproc
30445 { echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
30446 echo "${ECHO_T}$ac_cv_header_windows_h" >&6; }
30449 if test $ac_cv_header_windows_h = yes; then
30452 can_compile_win32=0
30456 if test "${ac_cv_header_commctrl_h+set}" = set; then
30457 { echo "$as_me:$LINENO: checking for commctrl.h" >&5
30458 echo $ECHO_N "checking for commctrl.h... $ECHO_C" >&6; }
30459 if test "${ac_cv_header_commctrl_h+set}" = set; then
30460 echo $ECHO_N "(cached) $ECHO_C" >&6
30462 { echo "$as_me:$LINENO: result: $ac_cv_header_commctrl_h" >&5
30463 echo "${ECHO_T}$ac_cv_header_commctrl_h" >&6; }
30465 # Is the header compilable?
30466 { echo "$as_me:$LINENO: checking commctrl.h usability" >&5
30467 echo $ECHO_N "checking commctrl.h usability... $ECHO_C" >&6; }
30468 cat >conftest.$ac_ext <<_ACEOF
30471 cat confdefs.h >>conftest.$ac_ext
30472 cat >>conftest.$ac_ext <<_ACEOF
30473 /* end confdefs.h. */
30474 $ac_includes_default
30475 #include <commctrl.h>
30477 rm -f conftest.$ac_objext
30478 if { (ac_try="$ac_compile"
30479 case "(($ac_try" in
30480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30481 *) ac_try_echo=$ac_try;;
30483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30484 (eval "$ac_compile") 2>conftest.er1
30486 grep -v '^
*+' conftest.er1 >conftest.err
30488 cat conftest.err >&5
30489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30490 (exit $ac_status); } && {
30491 test -z "$ac_c_werror_flag" ||
30492 test ! -s conftest.err
30493 } && test -s conftest.$ac_objext; then
30494 ac_header_compiler=yes
30496 echo "$as_me: failed program was:" >&5
30497 sed 's
/^
/|
/' conftest.$ac_ext >&5
30499 ac_header_compiler=no
30502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30503 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30504 echo "${ECHO_T}$ac_header_compiler" >&6; }
30506 # Is the header present?
30507 { echo "$as_me:$LINENO: checking commctrl.h presence" >&5
30508 echo $ECHO_N "checking commctrl.h presence... $ECHO_C" >&6; }
30509 cat >conftest.$ac_ext <<_ACEOF
30512 cat confdefs.h >>conftest.$ac_ext
30513 cat >>conftest.$ac_ext <<_ACEOF
30514 /* end confdefs.h. */
30515 #include <commctrl.h>
30517 if { (ac_try="$ac_cpp conftest.$ac_ext"
30518 case "(($ac_try" in
30519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30520 *) ac_try_echo=$ac_try;;
30522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30523 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30525 grep -v '^
*+' conftest.er1 >conftest.err
30527 cat conftest.err >&5
30528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30529 (exit $ac_status); } >/dev/null && {
30530 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30531 test ! -s conftest.err
30533 ac_header_preproc=yes
30535 echo "$as_me: failed program was:" >&5
30536 sed 's
/^
/|
/' conftest.$ac_ext >&5
30538 ac_header_preproc=no
30541 rm -f conftest.err conftest.$ac_ext
30542 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30543 echo "${ECHO_T}$ac_header_preproc" >&6; }
30545 # So? What about this header?
30546 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30548 { echo "$as_me:$LINENO: WARNING: commctrl.h: accepted by the compiler, rejected by the preprocessor!" >&5
30549 echo "$as_me: WARNING: commctrl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30550 { echo "$as_me:$LINENO: WARNING: commctrl.h: proceeding with the compiler's result
" >&5
30551 echo "$as_me: WARNING
: commctrl.h
: proceeding with the compiler
's result" >&2;}
30552 ac_header_preproc=yes
30555 { echo "$as_me:$LINENO: WARNING: commctrl.h: present but cannot be compiled" >&5
30556 echo "$as_me: WARNING: commctrl.h: present but cannot be compiled" >&2;}
30557 { echo "$as_me:$LINENO: WARNING: commctrl.h: check for missing prerequisite headers?" >&5
30558 echo "$as_me: WARNING: commctrl.h: check for missing prerequisite headers?" >&2;}
30559 { echo "$as_me:$LINENO: WARNING: commctrl.h: see the Autoconf documentation" >&5
30560 echo "$as_me: WARNING: commctrl.h: see the Autoconf documentation" >&2;}
30561 { echo "$as_me:$LINENO: WARNING: commctrl.h: section \"Present But Cannot Be Compiled\"" >&5
30562 echo "$as_me: WARNING: commctrl.h: section \"Present But Cannot Be Compiled\"" >&2;}
30563 { echo "$as_me:$LINENO: WARNING: commctrl.h: proceeding with the preprocessor's result
" >&5
30564 echo "$as_me: WARNING
: commctrl.h
: proceeding with the preprocessor
's result" >&2;}
30565 { echo "$as_me:$LINENO: WARNING: commctrl.h: in the future, the compiler will take precedence" >&5
30566 echo "$as_me: WARNING: commctrl.h: in the future, the compiler will take precedence" >&2;}
30570 { echo "$as_me:$LINENO: checking for commctrl.h" >&5
30571 echo $ECHO_N "checking for commctrl.h... $ECHO_C" >&6; }
30572 if test "${ac_cv_header_commctrl_h+set}" = set; then
30573 echo $ECHO_N "(cached) $ECHO_C" >&6
30575 ac_cv_header_commctrl_h=$ac_header_preproc
30577 { echo "$as_me:$LINENO: result: $ac_cv_header_commctrl_h" >&5
30578 echo "${ECHO_T}$ac_cv_header_commctrl_h" >&6; }
30581 if test $ac_cv_header_commctrl_h = yes; then
30584 can_compile_win32=0
30588 if test $can_compile_win32 = 1; then
30593 if test "$with_sdl" != yes; then
30595 if test "${ac_cv_header_SDL_SDL_h+set}" = set; then
30596 { echo "$as_me:$LINENO: checking for SDL/SDL.h" >&5
30597 echo $ECHO_N "checking for SDL/SDL.h... $ECHO_C" >&6; }
30598 if test "${ac_cv_header_SDL_SDL_h+set}" = set; then
30599 echo $ECHO_N "(cached) $ECHO_C" >&6
30601 { echo "$as_me:$LINENO: result: $ac_cv_header_SDL_SDL_h" >&5
30602 echo "${ECHO_T}$ac_cv_header_SDL_SDL_h" >&6; }
30604 # Is the header compilable?
30605 { echo "$as_me:$LINENO: checking SDL/SDL.h usability" >&5
30606 echo $ECHO_N "checking SDL/SDL.h usability... $ECHO_C" >&6; }
30607 cat >conftest.$ac_ext <<_ACEOF
30610 cat confdefs.h >>conftest.$ac_ext
30611 cat >>conftest.$ac_ext <<_ACEOF
30612 /* end confdefs.h. */
30613 $ac_includes_default
30614 #include <SDL/SDL.h>
30616 rm -f conftest.$ac_objext
30617 if { (ac_try="$ac_compile"
30618 case "(($ac_try" in
30619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30620 *) ac_try_echo=$ac_try;;
30622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30623 (eval "$ac_compile") 2>conftest.er1
30625 grep -v '^
*+' conftest.er1 >conftest.err
30627 cat conftest.err >&5
30628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30629 (exit $ac_status); } && {
30630 test -z "$ac_c_werror_flag" ||
30631 test ! -s conftest.err
30632 } && test -s conftest.$ac_objext; then
30633 ac_header_compiler=yes
30635 echo "$as_me: failed program was:" >&5
30636 sed 's
/^
/|
/' conftest.$ac_ext >&5
30638 ac_header_compiler=no
30641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30642 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30643 echo "${ECHO_T}$ac_header_compiler" >&6; }
30645 # Is the header present?
30646 { echo "$as_me:$LINENO: checking SDL/SDL.h presence" >&5
30647 echo $ECHO_N "checking SDL/SDL.h presence... $ECHO_C" >&6; }
30648 cat >conftest.$ac_ext <<_ACEOF
30651 cat confdefs.h >>conftest.$ac_ext
30652 cat >>conftest.$ac_ext <<_ACEOF
30653 /* end confdefs.h. */
30654 #include <SDL/SDL.h>
30656 if { (ac_try="$ac_cpp conftest.$ac_ext"
30657 case "(($ac_try" in
30658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30659 *) ac_try_echo=$ac_try;;
30661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30662 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30664 grep -v '^
*+' conftest.er1 >conftest.err
30666 cat conftest.err >&5
30667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30668 (exit $ac_status); } >/dev/null && {
30669 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30670 test ! -s conftest.err
30672 ac_header_preproc=yes
30674 echo "$as_me: failed program was:" >&5
30675 sed 's
/^
/|
/' conftest.$ac_ext >&5
30677 ac_header_preproc=no
30680 rm -f conftest.err conftest.$ac_ext
30681 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30682 echo "${ECHO_T}$ac_header_preproc" >&6; }
30684 # So? What about this header?
30685 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30687 { echo "$as_me:$LINENO: WARNING: SDL/SDL.h: accepted by the compiler, rejected by the preprocessor!" >&5
30688 echo "$as_me: WARNING: SDL/SDL.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30689 { echo "$as_me:$LINENO: WARNING: SDL/SDL.h: proceeding with the compiler's result
" >&5
30690 echo "$as_me: WARNING
: SDL
/SDL.h
: proceeding with the compiler
's result" >&2;}
30691 ac_header_preproc=yes
30694 { echo "$as_me:$LINENO: WARNING: SDL/SDL.h: present but cannot be compiled" >&5
30695 echo "$as_me: WARNING: SDL/SDL.h: present but cannot be compiled" >&2;}
30696 { echo "$as_me:$LINENO: WARNING: SDL/SDL.h: check for missing prerequisite headers?" >&5
30697 echo "$as_me: WARNING: SDL/SDL.h: check for missing prerequisite headers?" >&2;}
30698 { echo "$as_me:$LINENO: WARNING: SDL/SDL.h: see the Autoconf documentation" >&5
30699 echo "$as_me: WARNING: SDL/SDL.h: see the Autoconf documentation" >&2;}
30700 { echo "$as_me:$LINENO: WARNING: SDL/SDL.h: section \"Present But Cannot Be Compiled\"" >&5
30701 echo "$as_me: WARNING: SDL/SDL.h: section \"Present But Cannot Be Compiled\"" >&2;}
30702 { echo "$as_me:$LINENO: WARNING: SDL/SDL.h: proceeding with the preprocessor's result
" >&5
30703 echo "$as_me: WARNING
: SDL
/SDL.h
: proceeding with the preprocessor
's result" >&2;}
30704 { echo "$as_me:$LINENO: WARNING: SDL/SDL.h: in the future, the compiler will take precedence" >&5
30705 echo "$as_me: WARNING: SDL/SDL.h: in the future, the compiler will take precedence" >&2;}
30709 { echo "$as_me:$LINENO: checking for SDL/SDL.h" >&5
30710 echo $ECHO_N "checking for SDL/SDL.h... $ECHO_C" >&6; }
30711 if test "${ac_cv_header_SDL_SDL_h+set}" = set; then
30712 echo $ECHO_N "(cached) $ECHO_C" >&6
30714 ac_cv_header_SDL_SDL_h=$ac_header_preproc
30716 { echo "$as_me:$LINENO: result: $ac_cv_header_SDL_SDL_h" >&5
30717 echo "${ECHO_T}$ac_cv_header_SDL_SDL_h" >&6; }
30720 if test $ac_cv_header_SDL_SDL_h = yes; then
30727 if test "${ac_cv_header_SDL_SDL_main_h+set}" = set; then
30728 { echo "$as_me:$LINENO: checking for SDL/SDL_main.h" >&5
30729 echo $ECHO_N "checking for SDL/SDL_main.h... $ECHO_C" >&6; }
30730 if test "${ac_cv_header_SDL_SDL_main_h+set}" = set; then
30731 echo $ECHO_N "(cached) $ECHO_C" >&6
30733 { echo "$as_me:$LINENO: result: $ac_cv_header_SDL_SDL_main_h" >&5
30734 echo "${ECHO_T}$ac_cv_header_SDL_SDL_main_h" >&6; }
30736 # Is the header compilable?
30737 { echo "$as_me:$LINENO: checking SDL/SDL_main.h usability" >&5
30738 echo $ECHO_N "checking SDL/SDL_main.h usability... $ECHO_C" >&6; }
30739 cat >conftest.$ac_ext <<_ACEOF
30742 cat confdefs.h >>conftest.$ac_ext
30743 cat >>conftest.$ac_ext <<_ACEOF
30744 /* end confdefs.h. */
30745 $ac_includes_default
30746 #include <SDL/SDL_main.h>
30748 rm -f conftest.$ac_objext
30749 if { (ac_try="$ac_compile"
30750 case "(($ac_try" in
30751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30752 *) ac_try_echo=$ac_try;;
30754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30755 (eval "$ac_compile") 2>conftest.er1
30757 grep -v '^
*+' conftest.er1 >conftest.err
30759 cat conftest.err >&5
30760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30761 (exit $ac_status); } && {
30762 test -z "$ac_c_werror_flag" ||
30763 test ! -s conftest.err
30764 } && test -s conftest.$ac_objext; then
30765 ac_header_compiler=yes
30767 echo "$as_me: failed program was:" >&5
30768 sed 's
/^
/|
/' conftest.$ac_ext >&5
30770 ac_header_compiler=no
30773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30774 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30775 echo "${ECHO_T}$ac_header_compiler" >&6; }
30777 # Is the header present?
30778 { echo "$as_me:$LINENO: checking SDL/SDL_main.h presence" >&5
30779 echo $ECHO_N "checking SDL/SDL_main.h presence... $ECHO_C" >&6; }
30780 cat >conftest.$ac_ext <<_ACEOF
30783 cat confdefs.h >>conftest.$ac_ext
30784 cat >>conftest.$ac_ext <<_ACEOF
30785 /* end confdefs.h. */
30786 #include <SDL/SDL_main.h>
30788 if { (ac_try="$ac_cpp conftest.$ac_ext"
30789 case "(($ac_try" in
30790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30791 *) ac_try_echo=$ac_try;;
30793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30794 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30796 grep -v '^
*+' conftest.er1 >conftest.err
30798 cat conftest.err >&5
30799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30800 (exit $ac_status); } >/dev/null && {
30801 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30802 test ! -s conftest.err
30804 ac_header_preproc=yes
30806 echo "$as_me: failed program was:" >&5
30807 sed 's
/^
/|
/' conftest.$ac_ext >&5
30809 ac_header_preproc=no
30812 rm -f conftest.err conftest.$ac_ext
30813 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30814 echo "${ECHO_T}$ac_header_preproc" >&6; }
30816 # So? What about this header?
30817 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30819 { echo "$as_me:$LINENO: WARNING: SDL/SDL_main.h: accepted by the compiler, rejected by the preprocessor!" >&5
30820 echo "$as_me: WARNING: SDL/SDL_main.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30821 { echo "$as_me:$LINENO: WARNING: SDL/SDL_main.h: proceeding with the compiler's result
" >&5
30822 echo "$as_me: WARNING
: SDL
/SDL_main.h
: proceeding with the compiler
's result" >&2;}
30823 ac_header_preproc=yes
30826 { echo "$as_me:$LINENO: WARNING: SDL/SDL_main.h: present but cannot be compiled" >&5
30827 echo "$as_me: WARNING: SDL/SDL_main.h: present but cannot be compiled" >&2;}
30828 { echo "$as_me:$LINENO: WARNING: SDL/SDL_main.h: check for missing prerequisite headers?" >&5
30829 echo "$as_me: WARNING: SDL/SDL_main.h: check for missing prerequisite headers?" >&2;}
30830 { echo "$as_me:$LINENO: WARNING: SDL/SDL_main.h: see the Autoconf documentation" >&5
30831 echo "$as_me: WARNING: SDL/SDL_main.h: see the Autoconf documentation" >&2;}
30832 { echo "$as_me:$LINENO: WARNING: SDL/SDL_main.h: section \"Present But Cannot Be Compiled\"" >&5
30833 echo "$as_me: WARNING: SDL/SDL_main.h: section \"Present But Cannot Be Compiled\"" >&2;}
30834 { echo "$as_me:$LINENO: WARNING: SDL/SDL_main.h: proceeding with the preprocessor's result
" >&5
30835 echo "$as_me: WARNING
: SDL
/SDL_main.h
: proceeding with the preprocessor
's result" >&2;}
30836 { echo "$as_me:$LINENO: WARNING: SDL/SDL_main.h: in the future, the compiler will take precedence" >&5
30837 echo "$as_me: WARNING: SDL/SDL_main.h: in the future, the compiler will take precedence" >&2;}
30841 { echo "$as_me:$LINENO: checking for SDL/SDL_main.h" >&5
30842 echo $ECHO_N "checking for SDL/SDL_main.h... $ECHO_C" >&6; }
30843 if test "${ac_cv_header_SDL_SDL_main_h+set}" = set; then
30844 echo $ECHO_N "(cached) $ECHO_C" >&6
30846 ac_cv_header_SDL_SDL_main_h=$ac_header_preproc
30848 { echo "$as_me:$LINENO: result: $ac_cv_header_SDL_SDL_main_h" >&5
30849 echo "${ECHO_T}$ac_cv_header_SDL_SDL_main_h" >&6; }
30852 if test $ac_cv_header_SDL_SDL_main_h = yes; then
30859 if test $can_compile_sdl = 1; then
30864 if test "$with_svga" != yes; then
30866 if test "${ac_cv_header_vga_h+set}" = set; then
30867 { echo "$as_me:$LINENO: checking for vga.h" >&5
30868 echo $ECHO_N "checking for vga.h... $ECHO_C" >&6; }
30869 if test "${ac_cv_header_vga_h+set}" = set; then
30870 echo $ECHO_N "(cached) $ECHO_C" >&6
30872 { echo "$as_me:$LINENO: result: $ac_cv_header_vga_h" >&5
30873 echo "${ECHO_T}$ac_cv_header_vga_h" >&6; }
30875 # Is the header compilable?
30876 { echo "$as_me:$LINENO: checking vga.h usability" >&5
30877 echo $ECHO_N "checking vga.h usability... $ECHO_C" >&6; }
30878 cat >conftest.$ac_ext <<_ACEOF
30881 cat confdefs.h >>conftest.$ac_ext
30882 cat >>conftest.$ac_ext <<_ACEOF
30883 /* end confdefs.h. */
30884 $ac_includes_default
30887 rm -f conftest.$ac_objext
30888 if { (ac_try="$ac_compile"
30889 case "(($ac_try" in
30890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30891 *) ac_try_echo=$ac_try;;
30893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30894 (eval "$ac_compile") 2>conftest.er1
30896 grep -v '^
*+' conftest.er1 >conftest.err
30898 cat conftest.err >&5
30899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30900 (exit $ac_status); } && {
30901 test -z "$ac_c_werror_flag" ||
30902 test ! -s conftest.err
30903 } && test -s conftest.$ac_objext; then
30904 ac_header_compiler=yes
30906 echo "$as_me: failed program was:" >&5
30907 sed 's
/^
/|
/' conftest.$ac_ext >&5
30909 ac_header_compiler=no
30912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30913 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30914 echo "${ECHO_T}$ac_header_compiler" >&6; }
30916 # Is the header present?
30917 { echo "$as_me:$LINENO: checking vga.h presence" >&5
30918 echo $ECHO_N "checking vga.h presence... $ECHO_C" >&6; }
30919 cat >conftest.$ac_ext <<_ACEOF
30922 cat confdefs.h >>conftest.$ac_ext
30923 cat >>conftest.$ac_ext <<_ACEOF
30924 /* end confdefs.h. */
30927 if { (ac_try="$ac_cpp conftest.$ac_ext"
30928 case "(($ac_try" in
30929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30930 *) ac_try_echo=$ac_try;;
30932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30933 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30935 grep -v '^
*+' conftest.er1 >conftest.err
30937 cat conftest.err >&5
30938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30939 (exit $ac_status); } >/dev/null && {
30940 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30941 test ! -s conftest.err
30943 ac_header_preproc=yes
30945 echo "$as_me: failed program was:" >&5
30946 sed 's
/^
/|
/' conftest.$ac_ext >&5
30948 ac_header_preproc=no
30951 rm -f conftest.err conftest.$ac_ext
30952 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30953 echo "${ECHO_T}$ac_header_preproc" >&6; }
30955 # So? What about this header?
30956 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30958 { echo "$as_me:$LINENO: WARNING: vga.h: accepted by the compiler, rejected by the preprocessor!" >&5
30959 echo "$as_me: WARNING: vga.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30960 { echo "$as_me:$LINENO: WARNING: vga.h: proceeding with the compiler's result
" >&5
30961 echo "$as_me: WARNING
: vga.h
: proceeding with the compiler
's result" >&2;}
30962 ac_header_preproc=yes
30965 { echo "$as_me:$LINENO: WARNING: vga.h: present but cannot be compiled" >&5
30966 echo "$as_me: WARNING: vga.h: present but cannot be compiled" >&2;}
30967 { echo "$as_me:$LINENO: WARNING: vga.h: check for missing prerequisite headers?" >&5
30968 echo "$as_me: WARNING: vga.h: check for missing prerequisite headers?" >&2;}
30969 { echo "$as_me:$LINENO: WARNING: vga.h: see the Autoconf documentation" >&5
30970 echo "$as_me: WARNING: vga.h: see the Autoconf documentation" >&2;}
30971 { echo "$as_me:$LINENO: WARNING: vga.h: section \"Present But Cannot Be Compiled\"" >&5
30972 echo "$as_me: WARNING: vga.h: section \"Present But Cannot Be Compiled\"" >&2;}
30973 { echo "$as_me:$LINENO: WARNING: vga.h: proceeding with the preprocessor's result
" >&5
30974 echo "$as_me: WARNING
: vga.h
: proceeding with the preprocessor
's result" >&2;}
30975 { echo "$as_me:$LINENO: WARNING: vga.h: in the future, the compiler will take precedence" >&5
30976 echo "$as_me: WARNING: vga.h: in the future, the compiler will take precedence" >&2;}
30980 { echo "$as_me:$LINENO: checking for vga.h" >&5
30981 echo $ECHO_N "checking for vga.h... $ECHO_C" >&6; }
30982 if test "${ac_cv_header_vga_h+set}" = set; then
30983 echo $ECHO_N "(cached) $ECHO_C" >&6
30985 ac_cv_header_vga_h=$ac_header_preproc
30987 { echo "$as_me:$LINENO: result: $ac_cv_header_vga_h" >&5
30988 echo "${ECHO_T}$ac_cv_header_vga_h" >&6; }
30991 if test $ac_cv_header_vga_h = yes; then
30998 if test "${ac_cv_header_vgagl_h+set}" = set; then
30999 { echo "$as_me:$LINENO: checking for vgagl.h" >&5
31000 echo $ECHO_N "checking for vgagl.h... $ECHO_C" >&6; }
31001 if test "${ac_cv_header_vgagl_h+set}" = set; then
31002 echo $ECHO_N "(cached) $ECHO_C" >&6
31004 { echo "$as_me:$LINENO: result: $ac_cv_header_vgagl_h" >&5
31005 echo "${ECHO_T}$ac_cv_header_vgagl_h" >&6; }
31007 # Is the header compilable?
31008 { echo "$as_me:$LINENO: checking vgagl.h usability" >&5
31009 echo $ECHO_N "checking vgagl.h usability... $ECHO_C" >&6; }
31010 cat >conftest.$ac_ext <<_ACEOF
31013 cat confdefs.h >>conftest.$ac_ext
31014 cat >>conftest.$ac_ext <<_ACEOF
31015 /* end confdefs.h. */
31016 $ac_includes_default
31019 rm -f conftest.$ac_objext
31020 if { (ac_try="$ac_compile"
31021 case "(($ac_try" in
31022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31023 *) ac_try_echo=$ac_try;;
31025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31026 (eval "$ac_compile") 2>conftest.er1
31028 grep -v '^
*+' conftest.er1 >conftest.err
31030 cat conftest.err >&5
31031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31032 (exit $ac_status); } && {
31033 test -z "$ac_c_werror_flag" ||
31034 test ! -s conftest.err
31035 } && test -s conftest.$ac_objext; then
31036 ac_header_compiler=yes
31038 echo "$as_me: failed program was:" >&5
31039 sed 's
/^
/|
/' conftest.$ac_ext >&5
31041 ac_header_compiler=no
31044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31045 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31046 echo "${ECHO_T}$ac_header_compiler" >&6; }
31048 # Is the header present?
31049 { echo "$as_me:$LINENO: checking vgagl.h presence" >&5
31050 echo $ECHO_N "checking vgagl.h presence... $ECHO_C" >&6; }
31051 cat >conftest.$ac_ext <<_ACEOF
31054 cat confdefs.h >>conftest.$ac_ext
31055 cat >>conftest.$ac_ext <<_ACEOF
31056 /* end confdefs.h. */
31059 if { (ac_try="$ac_cpp conftest.$ac_ext"
31060 case "(($ac_try" in
31061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31062 *) ac_try_echo=$ac_try;;
31064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31065 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31067 grep -v '^
*+' conftest.er1 >conftest.err
31069 cat conftest.err >&5
31070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31071 (exit $ac_status); } >/dev/null && {
31072 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31073 test ! -s conftest.err
31075 ac_header_preproc=yes
31077 echo "$as_me: failed program was:" >&5
31078 sed 's
/^
/|
/' conftest.$ac_ext >&5
31080 ac_header_preproc=no
31083 rm -f conftest.err conftest.$ac_ext
31084 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31085 echo "${ECHO_T}$ac_header_preproc" >&6; }
31087 # So? What about this header?
31088 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31090 { echo "$as_me:$LINENO: WARNING: vgagl.h: accepted by the compiler, rejected by the preprocessor!" >&5
31091 echo "$as_me: WARNING: vgagl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31092 { echo "$as_me:$LINENO: WARNING: vgagl.h: proceeding with the compiler's result
" >&5
31093 echo "$as_me: WARNING
: vgagl.h
: proceeding with the compiler
's result" >&2;}
31094 ac_header_preproc=yes
31097 { echo "$as_me:$LINENO: WARNING: vgagl.h: present but cannot be compiled" >&5
31098 echo "$as_me: WARNING: vgagl.h: present but cannot be compiled" >&2;}
31099 { echo "$as_me:$LINENO: WARNING: vgagl.h: check for missing prerequisite headers?" >&5
31100 echo "$as_me: WARNING: vgagl.h: check for missing prerequisite headers?" >&2;}
31101 { echo "$as_me:$LINENO: WARNING: vgagl.h: see the Autoconf documentation" >&5
31102 echo "$as_me: WARNING: vgagl.h: see the Autoconf documentation" >&2;}
31103 { echo "$as_me:$LINENO: WARNING: vgagl.h: section \"Present But Cannot Be Compiled\"" >&5
31104 echo "$as_me: WARNING: vgagl.h: section \"Present But Cannot Be Compiled\"" >&2;}
31105 { echo "$as_me:$LINENO: WARNING: vgagl.h: proceeding with the preprocessor's result
" >&5
31106 echo "$as_me: WARNING
: vgagl.h
: proceeding with the preprocessor
's result" >&2;}
31107 { echo "$as_me:$LINENO: WARNING: vgagl.h: in the future, the compiler will take precedence" >&5
31108 echo "$as_me: WARNING: vgagl.h: in the future, the compiler will take precedence" >&2;}
31112 { echo "$as_me:$LINENO: checking for vgagl.h" >&5
31113 echo $ECHO_N "checking for vgagl.h... $ECHO_C" >&6; }
31114 if test "${ac_cv_header_vgagl_h+set}" = set; then
31115 echo $ECHO_N "(cached) $ECHO_C" >&6
31117 ac_cv_header_vgagl_h=$ac_header_preproc
31119 { echo "$as_me:$LINENO: result: $ac_cv_header_vgagl_h" >&5
31120 echo "${ECHO_T}$ac_cv_header_vgagl_h" >&6; }
31123 if test $ac_cv_header_vgagl_h = yes; then
31130 if test $can_compile_svga = 1; then
31135 if test "$with_x11" != yes; then
31137 if test "${ac_cv_header_X11_Xlib_h+set}" = set; then
31138 { echo "$as_me:$LINENO: checking for X11/Xlib.h" >&5
31139 echo $ECHO_N "checking for X11/Xlib.h... $ECHO_C" >&6; }
31140 if test "${ac_cv_header_X11_Xlib_h+set}" = set; then
31141 echo $ECHO_N "(cached) $ECHO_C" >&6
31143 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xlib_h" >&5
31144 echo "${ECHO_T}$ac_cv_header_X11_Xlib_h" >&6; }
31146 # Is the header compilable?
31147 { echo "$as_me:$LINENO: checking X11/Xlib.h usability" >&5
31148 echo $ECHO_N "checking X11/Xlib.h usability... $ECHO_C" >&6; }
31149 cat >conftest.$ac_ext <<_ACEOF
31152 cat confdefs.h >>conftest.$ac_ext
31153 cat >>conftest.$ac_ext <<_ACEOF
31154 /* end confdefs.h. */
31155 $ac_includes_default
31156 #include <X11/Xlib.h>
31158 rm -f conftest.$ac_objext
31159 if { (ac_try="$ac_compile"
31160 case "(($ac_try" in
31161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31162 *) ac_try_echo=$ac_try;;
31164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31165 (eval "$ac_compile") 2>conftest.er1
31167 grep -v '^
*+' conftest.er1 >conftest.err
31169 cat conftest.err >&5
31170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31171 (exit $ac_status); } && {
31172 test -z "$ac_c_werror_flag" ||
31173 test ! -s conftest.err
31174 } && test -s conftest.$ac_objext; then
31175 ac_header_compiler=yes
31177 echo "$as_me: failed program was:" >&5
31178 sed 's
/^
/|
/' conftest.$ac_ext >&5
31180 ac_header_compiler=no
31183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31184 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31185 echo "${ECHO_T}$ac_header_compiler" >&6; }
31187 # Is the header present?
31188 { echo "$as_me:$LINENO: checking X11/Xlib.h presence" >&5
31189 echo $ECHO_N "checking X11/Xlib.h presence... $ECHO_C" >&6; }
31190 cat >conftest.$ac_ext <<_ACEOF
31193 cat confdefs.h >>conftest.$ac_ext
31194 cat >>conftest.$ac_ext <<_ACEOF
31195 /* end confdefs.h. */
31196 #include <X11/Xlib.h>
31198 if { (ac_try="$ac_cpp conftest.$ac_ext"
31199 case "(($ac_try" in
31200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31201 *) ac_try_echo=$ac_try;;
31203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31204 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31206 grep -v '^
*+' conftest.er1 >conftest.err
31208 cat conftest.err >&5
31209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31210 (exit $ac_status); } >/dev/null && {
31211 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31212 test ! -s conftest.err
31214 ac_header_preproc=yes
31216 echo "$as_me: failed program was:" >&5
31217 sed 's
/^
/|
/' conftest.$ac_ext >&5
31219 ac_header_preproc=no
31222 rm -f conftest.err conftest.$ac_ext
31223 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31224 echo "${ECHO_T}$ac_header_preproc" >&6; }
31226 # So? What about this header?
31227 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31229 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
31230 echo "$as_me: WARNING: X11/Xlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31231 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: proceeding with the compiler's result
" >&5
31232 echo "$as_me: WARNING
: X11
/Xlib.h
: proceeding with the compiler
's result" >&2;}
31233 ac_header_preproc=yes
31236 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: present but cannot be compiled" >&5
31237 echo "$as_me: WARNING: X11/Xlib.h: present but cannot be compiled" >&2;}
31238 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: check for missing prerequisite headers?" >&5
31239 echo "$as_me: WARNING: X11/Xlib.h: check for missing prerequisite headers?" >&2;}
31240 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: see the Autoconf documentation" >&5
31241 echo "$as_me: WARNING: X11/Xlib.h: see the Autoconf documentation" >&2;}
31242 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: section \"Present But Cannot Be Compiled\"" >&5
31243 echo "$as_me: WARNING: X11/Xlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
31244 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: proceeding with the preprocessor's result
" >&5
31245 echo "$as_me: WARNING
: X11
/Xlib.h
: proceeding with the preprocessor
's result" >&2;}
31246 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: in the future, the compiler will take precedence" >&5
31247 echo "$as_me: WARNING: X11/Xlib.h: in the future, the compiler will take precedence" >&2;}
31251 { echo "$as_me:$LINENO: checking for X11/Xlib.h" >&5
31252 echo $ECHO_N "checking for X11/Xlib.h... $ECHO_C" >&6; }
31253 if test "${ac_cv_header_X11_Xlib_h+set}" = set; then
31254 echo $ECHO_N "(cached) $ECHO_C" >&6
31256 ac_cv_header_X11_Xlib_h=$ac_header_preproc
31258 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xlib_h" >&5
31259 echo "${ECHO_T}$ac_cv_header_X11_Xlib_h" >&6; }
31262 if test $ac_cv_header_X11_Xlib_h = yes; then
31269 if test "${ac_cv_header_X11_Xutil_h+set}" = set; then
31270 { echo "$as_me:$LINENO: checking for X11/Xutil.h" >&5
31271 echo $ECHO_N "checking for X11/Xutil.h... $ECHO_C" >&6; }
31272 if test "${ac_cv_header_X11_Xutil_h+set}" = set; then
31273 echo $ECHO_N "(cached) $ECHO_C" >&6
31275 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xutil_h" >&5
31276 echo "${ECHO_T}$ac_cv_header_X11_Xutil_h" >&6; }
31278 # Is the header compilable?
31279 { echo "$as_me:$LINENO: checking X11/Xutil.h usability" >&5
31280 echo $ECHO_N "checking X11/Xutil.h usability... $ECHO_C" >&6; }
31281 cat >conftest.$ac_ext <<_ACEOF
31284 cat confdefs.h >>conftest.$ac_ext
31285 cat >>conftest.$ac_ext <<_ACEOF
31286 /* end confdefs.h. */
31287 $ac_includes_default
31288 #include <X11/Xutil.h>
31290 rm -f conftest.$ac_objext
31291 if { (ac_try="$ac_compile"
31292 case "(($ac_try" in
31293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31294 *) ac_try_echo=$ac_try;;
31296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31297 (eval "$ac_compile") 2>conftest.er1
31299 grep -v '^
*+' conftest.er1 >conftest.err
31301 cat conftest.err >&5
31302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31303 (exit $ac_status); } && {
31304 test -z "$ac_c_werror_flag" ||
31305 test ! -s conftest.err
31306 } && test -s conftest.$ac_objext; then
31307 ac_header_compiler=yes
31309 echo "$as_me: failed program was:" >&5
31310 sed 's
/^
/|
/' conftest.$ac_ext >&5
31312 ac_header_compiler=no
31315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31316 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31317 echo "${ECHO_T}$ac_header_compiler" >&6; }
31319 # Is the header present?
31320 { echo "$as_me:$LINENO: checking X11/Xutil.h presence" >&5
31321 echo $ECHO_N "checking X11/Xutil.h presence... $ECHO_C" >&6; }
31322 cat >conftest.$ac_ext <<_ACEOF
31325 cat confdefs.h >>conftest.$ac_ext
31326 cat >>conftest.$ac_ext <<_ACEOF
31327 /* end confdefs.h. */
31328 #include <X11/Xutil.h>
31330 if { (ac_try="$ac_cpp conftest.$ac_ext"
31331 case "(($ac_try" in
31332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31333 *) ac_try_echo=$ac_try;;
31335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31336 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31338 grep -v '^
*+' conftest.er1 >conftest.err
31340 cat conftest.err >&5
31341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31342 (exit $ac_status); } >/dev/null && {
31343 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31344 test ! -s conftest.err
31346 ac_header_preproc=yes
31348 echo "$as_me: failed program was:" >&5
31349 sed 's
/^
/|
/' conftest.$ac_ext >&5
31351 ac_header_preproc=no
31354 rm -f conftest.err conftest.$ac_ext
31355 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31356 echo "${ECHO_T}$ac_header_preproc" >&6; }
31358 # So? What about this header?
31359 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31361 { echo "$as_me:$LINENO: WARNING: X11/Xutil.h: accepted by the compiler, rejected by the preprocessor!" >&5
31362 echo "$as_me: WARNING: X11/Xutil.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31363 { echo "$as_me:$LINENO: WARNING: X11/Xutil.h: proceeding with the compiler's result
" >&5
31364 echo "$as_me: WARNING
: X11
/Xutil.h
: proceeding with the compiler
's result" >&2;}
31365 ac_header_preproc=yes
31368 { echo "$as_me:$LINENO: WARNING: X11/Xutil.h: present but cannot be compiled" >&5
31369 echo "$as_me: WARNING: X11/Xutil.h: present but cannot be compiled" >&2;}
31370 { echo "$as_me:$LINENO: WARNING: X11/Xutil.h: check for missing prerequisite headers?" >&5
31371 echo "$as_me: WARNING: X11/Xutil.h: check for missing prerequisite headers?" >&2;}
31372 { echo "$as_me:$LINENO: WARNING: X11/Xutil.h: see the Autoconf documentation" >&5
31373 echo "$as_me: WARNING: X11/Xutil.h: see the Autoconf documentation" >&2;}
31374 { echo "$as_me:$LINENO: WARNING: X11/Xutil.h: section \"Present But Cannot Be Compiled\"" >&5
31375 echo "$as_me: WARNING: X11/Xutil.h: section \"Present But Cannot Be Compiled\"" >&2;}
31376 { echo "$as_me:$LINENO: WARNING: X11/Xutil.h: proceeding with the preprocessor's result
" >&5
31377 echo "$as_me: WARNING
: X11
/Xutil.h
: proceeding with the preprocessor
's result" >&2;}
31378 { echo "$as_me:$LINENO: WARNING: X11/Xutil.h: in the future, the compiler will take precedence" >&5
31379 echo "$as_me: WARNING: X11/Xutil.h: in the future, the compiler will take precedence" >&2;}
31383 { echo "$as_me:$LINENO: checking for X11/Xutil.h" >&5
31384 echo $ECHO_N "checking for X11/Xutil.h... $ECHO_C" >&6; }
31385 if test "${ac_cv_header_X11_Xutil_h+set}" = set; then
31386 echo $ECHO_N "(cached) $ECHO_C" >&6
31388 ac_cv_header_X11_Xutil_h=$ac_header_preproc
31390 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xutil_h" >&5
31391 echo "${ECHO_T}$ac_cv_header_X11_Xutil_h" >&6; }
31394 if test $ac_cv_header_X11_Xutil_h = yes; then
31401 if test $can_compile_x11 = 1; then
31406 if test "$with_rfb" != yes; then
31409 *-pc-windows* | *-pc-winnt* | *-pc-cygwin* | *-pc-mingw32*)
31410 if test "${ac_cv_header_winsock_h+set}" = set; then
31411 { echo "$as_me:$LINENO: checking for winsock.h" >&5
31412 echo $ECHO_N "checking for winsock.h... $ECHO_C" >&6; }
31413 if test "${ac_cv_header_winsock_h+set}" = set; then
31414 echo $ECHO_N "(cached) $ECHO_C" >&6
31416 { echo "$as_me:$LINENO: result: $ac_cv_header_winsock_h" >&5
31417 echo "${ECHO_T}$ac_cv_header_winsock_h" >&6; }
31419 # Is the header compilable?
31420 { echo "$as_me:$LINENO: checking winsock.h usability" >&5
31421 echo $ECHO_N "checking winsock.h usability... $ECHO_C" >&6; }
31422 cat >conftest.$ac_ext <<_ACEOF
31425 cat confdefs.h >>conftest.$ac_ext
31426 cat >>conftest.$ac_ext <<_ACEOF
31427 /* end confdefs.h. */
31428 $ac_includes_default
31429 #include <winsock.h>
31431 rm -f conftest.$ac_objext
31432 if { (ac_try="$ac_compile"
31433 case "(($ac_try" in
31434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31435 *) ac_try_echo=$ac_try;;
31437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31438 (eval "$ac_compile") 2>conftest.er1
31440 grep -v '^
*+' conftest.er1 >conftest.err
31442 cat conftest.err >&5
31443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31444 (exit $ac_status); } && {
31445 test -z "$ac_c_werror_flag" ||
31446 test ! -s conftest.err
31447 } && test -s conftest.$ac_objext; then
31448 ac_header_compiler=yes
31450 echo "$as_me: failed program was:" >&5
31451 sed 's
/^
/|
/' conftest.$ac_ext >&5
31453 ac_header_compiler=no
31456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31457 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31458 echo "${ECHO_T}$ac_header_compiler" >&6; }
31460 # Is the header present?
31461 { echo "$as_me:$LINENO: checking winsock.h presence" >&5
31462 echo $ECHO_N "checking winsock.h presence... $ECHO_C" >&6; }
31463 cat >conftest.$ac_ext <<_ACEOF
31466 cat confdefs.h >>conftest.$ac_ext
31467 cat >>conftest.$ac_ext <<_ACEOF
31468 /* end confdefs.h. */
31469 #include <winsock.h>
31471 if { (ac_try="$ac_cpp conftest.$ac_ext"
31472 case "(($ac_try" in
31473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31474 *) ac_try_echo=$ac_try;;
31476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31477 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31479 grep -v '^
*+' conftest.er1 >conftest.err
31481 cat conftest.err >&5
31482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31483 (exit $ac_status); } >/dev/null && {
31484 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31485 test ! -s conftest.err
31487 ac_header_preproc=yes
31489 echo "$as_me: failed program was:" >&5
31490 sed 's
/^
/|
/' conftest.$ac_ext >&5
31492 ac_header_preproc=no
31495 rm -f conftest.err conftest.$ac_ext
31496 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31497 echo "${ECHO_T}$ac_header_preproc" >&6; }
31499 # So? What about this header?
31500 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31502 { echo "$as_me:$LINENO: WARNING: winsock.h: accepted by the compiler, rejected by the preprocessor!" >&5
31503 echo "$as_me: WARNING: winsock.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31504 { echo "$as_me:$LINENO: WARNING: winsock.h: proceeding with the compiler's result
" >&5
31505 echo "$as_me: WARNING
: winsock.h
: proceeding with the compiler
's result" >&2;}
31506 ac_header_preproc=yes
31509 { echo "$as_me:$LINENO: WARNING: winsock.h: present but cannot be compiled" >&5
31510 echo "$as_me: WARNING: winsock.h: present but cannot be compiled" >&2;}
31511 { echo "$as_me:$LINENO: WARNING: winsock.h: check for missing prerequisite headers?" >&5
31512 echo "$as_me: WARNING: winsock.h: check for missing prerequisite headers?" >&2;}
31513 { echo "$as_me:$LINENO: WARNING: winsock.h: see the Autoconf documentation" >&5
31514 echo "$as_me: WARNING: winsock.h: see the Autoconf documentation" >&2;}
31515 { echo "$as_me:$LINENO: WARNING: winsock.h: section \"Present But Cannot Be Compiled\"" >&5
31516 echo "$as_me: WARNING: winsock.h: section \"Present But Cannot Be Compiled\"" >&2;}
31517 { echo "$as_me:$LINENO: WARNING: winsock.h: proceeding with the preprocessor's result
" >&5
31518 echo "$as_me: WARNING
: winsock.h
: proceeding with the preprocessor
's result" >&2;}
31519 { echo "$as_me:$LINENO: WARNING: winsock.h: in the future, the compiler will take precedence" >&5
31520 echo "$as_me: WARNING: winsock.h: in the future, the compiler will take precedence" >&2;}
31524 { echo "$as_me:$LINENO: checking for winsock.h" >&5
31525 echo $ECHO_N "checking for winsock.h... $ECHO_C" >&6; }
31526 if test "${ac_cv_header_winsock_h+set}" = set; then
31527 echo $ECHO_N "(cached) $ECHO_C" >&6
31529 ac_cv_header_winsock_h=$ac_header_preproc
31531 { echo "$as_me:$LINENO: result: $ac_cv_header_winsock_h" >&5
31532 echo "${ECHO_T}$ac_cv_header_winsock_h" >&6; }
31535 if test $ac_cv_header_winsock_h = yes; then
31542 if test "${ac_cv_header_process_h+set}" = set; then
31543 { echo "$as_me:$LINENO: checking for process.h" >&5
31544 echo $ECHO_N "checking for process.h... $ECHO_C" >&6; }
31545 if test "${ac_cv_header_process_h+set}" = set; then
31546 echo $ECHO_N "(cached) $ECHO_C" >&6
31548 { echo "$as_me:$LINENO: result: $ac_cv_header_process_h" >&5
31549 echo "${ECHO_T}$ac_cv_header_process_h" >&6; }
31551 # Is the header compilable?
31552 { echo "$as_me:$LINENO: checking process.h usability" >&5
31553 echo $ECHO_N "checking process.h usability... $ECHO_C" >&6; }
31554 cat >conftest.$ac_ext <<_ACEOF
31557 cat confdefs.h >>conftest.$ac_ext
31558 cat >>conftest.$ac_ext <<_ACEOF
31559 /* end confdefs.h. */
31560 $ac_includes_default
31561 #include <process.h>
31563 rm -f conftest.$ac_objext
31564 if { (ac_try="$ac_compile"
31565 case "(($ac_try" in
31566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31567 *) ac_try_echo=$ac_try;;
31569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31570 (eval "$ac_compile") 2>conftest.er1
31572 grep -v '^
*+' conftest.er1 >conftest.err
31574 cat conftest.err >&5
31575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31576 (exit $ac_status); } && {
31577 test -z "$ac_c_werror_flag" ||
31578 test ! -s conftest.err
31579 } && test -s conftest.$ac_objext; then
31580 ac_header_compiler=yes
31582 echo "$as_me: failed program was:" >&5
31583 sed 's
/^
/|
/' conftest.$ac_ext >&5
31585 ac_header_compiler=no
31588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31589 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31590 echo "${ECHO_T}$ac_header_compiler" >&6; }
31592 # Is the header present?
31593 { echo "$as_me:$LINENO: checking process.h presence" >&5
31594 echo $ECHO_N "checking process.h presence... $ECHO_C" >&6; }
31595 cat >conftest.$ac_ext <<_ACEOF
31598 cat confdefs.h >>conftest.$ac_ext
31599 cat >>conftest.$ac_ext <<_ACEOF
31600 /* end confdefs.h. */
31601 #include <process.h>
31603 if { (ac_try="$ac_cpp conftest.$ac_ext"
31604 case "(($ac_try" in
31605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31606 *) ac_try_echo=$ac_try;;
31608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31609 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31611 grep -v '^
*+' conftest.er1 >conftest.err
31613 cat conftest.err >&5
31614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31615 (exit $ac_status); } >/dev/null && {
31616 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31617 test ! -s conftest.err
31619 ac_header_preproc=yes
31621 echo "$as_me: failed program was:" >&5
31622 sed 's
/^
/|
/' conftest.$ac_ext >&5
31624 ac_header_preproc=no
31627 rm -f conftest.err conftest.$ac_ext
31628 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31629 echo "${ECHO_T}$ac_header_preproc" >&6; }
31631 # So? What about this header?
31632 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31634 { echo "$as_me:$LINENO: WARNING: process.h: accepted by the compiler, rejected by the preprocessor!" >&5
31635 echo "$as_me: WARNING: process.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31636 { echo "$as_me:$LINENO: WARNING: process.h: proceeding with the compiler's result
" >&5
31637 echo "$as_me: WARNING
: process.h
: proceeding with the compiler
's result" >&2;}
31638 ac_header_preproc=yes
31641 { echo "$as_me:$LINENO: WARNING: process.h: present but cannot be compiled" >&5
31642 echo "$as_me: WARNING: process.h: present but cannot be compiled" >&2;}
31643 { echo "$as_me:$LINENO: WARNING: process.h: check for missing prerequisite headers?" >&5
31644 echo "$as_me: WARNING: process.h: check for missing prerequisite headers?" >&2;}
31645 { echo "$as_me:$LINENO: WARNING: process.h: see the Autoconf documentation" >&5
31646 echo "$as_me: WARNING: process.h: see the Autoconf documentation" >&2;}
31647 { echo "$as_me:$LINENO: WARNING: process.h: section \"Present But Cannot Be Compiled\"" >&5
31648 echo "$as_me: WARNING: process.h: section \"Present But Cannot Be Compiled\"" >&2;}
31649 { echo "$as_me:$LINENO: WARNING: process.h: proceeding with the preprocessor's result
" >&5
31650 echo "$as_me: WARNING
: process.h
: proceeding with the preprocessor
's result" >&2;}
31651 { echo "$as_me:$LINENO: WARNING: process.h: in the future, the compiler will take precedence" >&5
31652 echo "$as_me: WARNING: process.h: in the future, the compiler will take precedence" >&2;}
31656 { echo "$as_me:$LINENO: checking for process.h" >&5
31657 echo $ECHO_N "checking for process.h... $ECHO_C" >&6; }
31658 if test "${ac_cv_header_process_h+set}" = set; then
31659 echo $ECHO_N "(cached) $ECHO_C" >&6
31661 ac_cv_header_process_h=$ac_header_preproc
31663 { echo "$as_me:$LINENO: result: $ac_cv_header_process_h" >&5
31664 echo "${ECHO_T}$ac_cv_header_process_h" >&6; }
31667 if test $ac_cv_header_process_h = yes; then
31676 if test "${ac_cv_header_sys_socket_h+set}" = set; then
31677 { echo "$as_me:$LINENO: checking for sys/socket.h" >&5
31678 echo $ECHO_N "checking for sys/socket.h... $ECHO_C" >&6; }
31679 if test "${ac_cv_header_sys_socket_h+set}" = set; then
31680 echo $ECHO_N "(cached) $ECHO_C" >&6
31682 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_socket_h" >&5
31683 echo "${ECHO_T}$ac_cv_header_sys_socket_h" >&6; }
31685 # Is the header compilable?
31686 { echo "$as_me:$LINENO: checking sys/socket.h usability" >&5
31687 echo $ECHO_N "checking sys/socket.h usability... $ECHO_C" >&6; }
31688 cat >conftest.$ac_ext <<_ACEOF
31691 cat confdefs.h >>conftest.$ac_ext
31692 cat >>conftest.$ac_ext <<_ACEOF
31693 /* end confdefs.h. */
31694 $ac_includes_default
31695 #include <sys/socket.h>
31697 rm -f conftest.$ac_objext
31698 if { (ac_try="$ac_compile"
31699 case "(($ac_try" in
31700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31701 *) ac_try_echo=$ac_try;;
31703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31704 (eval "$ac_compile") 2>conftest.er1
31706 grep -v '^
*+' conftest.er1 >conftest.err
31708 cat conftest.err >&5
31709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31710 (exit $ac_status); } && {
31711 test -z "$ac_c_werror_flag" ||
31712 test ! -s conftest.err
31713 } && test -s conftest.$ac_objext; then
31714 ac_header_compiler=yes
31716 echo "$as_me: failed program was:" >&5
31717 sed 's
/^
/|
/' conftest.$ac_ext >&5
31719 ac_header_compiler=no
31722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31723 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31724 echo "${ECHO_T}$ac_header_compiler" >&6; }
31726 # Is the header present?
31727 { echo "$as_me:$LINENO: checking sys/socket.h presence" >&5
31728 echo $ECHO_N "checking sys/socket.h presence... $ECHO_C" >&6; }
31729 cat >conftest.$ac_ext <<_ACEOF
31732 cat confdefs.h >>conftest.$ac_ext
31733 cat >>conftest.$ac_ext <<_ACEOF
31734 /* end confdefs.h. */
31735 #include <sys/socket.h>
31737 if { (ac_try="$ac_cpp conftest.$ac_ext"
31738 case "(($ac_try" in
31739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31740 *) ac_try_echo=$ac_try;;
31742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31743 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31745 grep -v '^
*+' conftest.er1 >conftest.err
31747 cat conftest.err >&5
31748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31749 (exit $ac_status); } >/dev/null && {
31750 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31751 test ! -s conftest.err
31753 ac_header_preproc=yes
31755 echo "$as_me: failed program was:" >&5
31756 sed 's
/^
/|
/' conftest.$ac_ext >&5
31758 ac_header_preproc=no
31761 rm -f conftest.err conftest.$ac_ext
31762 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31763 echo "${ECHO_T}$ac_header_preproc" >&6; }
31765 # So? What about this header?
31766 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31768 { echo "$as_me:$LINENO: WARNING: sys/socket.h: accepted by the compiler, rejected by the preprocessor!" >&5
31769 echo "$as_me: WARNING: sys/socket.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31770 { echo "$as_me:$LINENO: WARNING: sys/socket.h: proceeding with the compiler's result
" >&5
31771 echo "$as_me: WARNING
: sys
/socket.h
: proceeding with the compiler
's result" >&2;}
31772 ac_header_preproc=yes
31775 { echo "$as_me:$LINENO: WARNING: sys/socket.h: present but cannot be compiled" >&5
31776 echo "$as_me: WARNING: sys/socket.h: present but cannot be compiled" >&2;}
31777 { echo "$as_me:$LINENO: WARNING: sys/socket.h: check for missing prerequisite headers?" >&5
31778 echo "$as_me: WARNING: sys/socket.h: check for missing prerequisite headers?" >&2;}
31779 { echo "$as_me:$LINENO: WARNING: sys/socket.h: see the Autoconf documentation" >&5
31780 echo "$as_me: WARNING: sys/socket.h: see the Autoconf documentation" >&2;}
31781 { echo "$as_me:$LINENO: WARNING: sys/socket.h: section \"Present But Cannot Be Compiled\"" >&5
31782 echo "$as_me: WARNING: sys/socket.h: section \"Present But Cannot Be Compiled\"" >&2;}
31783 { echo "$as_me:$LINENO: WARNING: sys/socket.h: proceeding with the preprocessor's result
" >&5
31784 echo "$as_me: WARNING
: sys
/socket.h
: proceeding with the preprocessor
's result" >&2;}
31785 { echo "$as_me:$LINENO: WARNING: sys/socket.h: in the future, the compiler will take precedence" >&5
31786 echo "$as_me: WARNING: sys/socket.h: in the future, the compiler will take precedence" >&2;}
31790 { echo "$as_me:$LINENO: checking for sys/socket.h" >&5
31791 echo $ECHO_N "checking for sys/socket.h... $ECHO_C" >&6; }
31792 if test "${ac_cv_header_sys_socket_h+set}" = set; then
31793 echo $ECHO_N "(cached) $ECHO_C" >&6
31795 ac_cv_header_sys_socket_h=$ac_header_preproc
31797 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_socket_h" >&5
31798 echo "${ECHO_T}$ac_cv_header_sys_socket_h" >&6; }
31801 if test $ac_cv_header_sys_socket_h = yes; then
31808 if test "${ac_cv_header_netinet_tcp_h+set}" = set; then
31809 { echo "$as_me:$LINENO: checking for netinet/tcp.h" >&5
31810 echo $ECHO_N "checking for netinet/tcp.h... $ECHO_C" >&6; }
31811 if test "${ac_cv_header_netinet_tcp_h+set}" = set; then
31812 echo $ECHO_N "(cached) $ECHO_C" >&6
31814 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_tcp_h" >&5
31815 echo "${ECHO_T}$ac_cv_header_netinet_tcp_h" >&6; }
31817 # Is the header compilable?
31818 { echo "$as_me:$LINENO: checking netinet/tcp.h usability" >&5
31819 echo $ECHO_N "checking netinet/tcp.h usability... $ECHO_C" >&6; }
31820 cat >conftest.$ac_ext <<_ACEOF
31823 cat confdefs.h >>conftest.$ac_ext
31824 cat >>conftest.$ac_ext <<_ACEOF
31825 /* end confdefs.h. */
31826 $ac_includes_default
31827 #include <netinet/tcp.h>
31829 rm -f conftest.$ac_objext
31830 if { (ac_try="$ac_compile"
31831 case "(($ac_try" in
31832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31833 *) ac_try_echo=$ac_try;;
31835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31836 (eval "$ac_compile") 2>conftest.er1
31838 grep -v '^
*+' conftest.er1 >conftest.err
31840 cat conftest.err >&5
31841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31842 (exit $ac_status); } && {
31843 test -z "$ac_c_werror_flag" ||
31844 test ! -s conftest.err
31845 } && test -s conftest.$ac_objext; then
31846 ac_header_compiler=yes
31848 echo "$as_me: failed program was:" >&5
31849 sed 's
/^
/|
/' conftest.$ac_ext >&5
31851 ac_header_compiler=no
31854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31855 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31856 echo "${ECHO_T}$ac_header_compiler" >&6; }
31858 # Is the header present?
31859 { echo "$as_me:$LINENO: checking netinet/tcp.h presence" >&5
31860 echo $ECHO_N "checking netinet/tcp.h presence... $ECHO_C" >&6; }
31861 cat >conftest.$ac_ext <<_ACEOF
31864 cat confdefs.h >>conftest.$ac_ext
31865 cat >>conftest.$ac_ext <<_ACEOF
31866 /* end confdefs.h. */
31867 #include <netinet/tcp.h>
31869 if { (ac_try="$ac_cpp conftest.$ac_ext"
31870 case "(($ac_try" in
31871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31872 *) ac_try_echo=$ac_try;;
31874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31875 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31877 grep -v '^
*+' conftest.er1 >conftest.err
31879 cat conftest.err >&5
31880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31881 (exit $ac_status); } >/dev/null && {
31882 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31883 test ! -s conftest.err
31885 ac_header_preproc=yes
31887 echo "$as_me: failed program was:" >&5
31888 sed 's
/^
/|
/' conftest.$ac_ext >&5
31890 ac_header_preproc=no
31893 rm -f conftest.err conftest.$ac_ext
31894 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31895 echo "${ECHO_T}$ac_header_preproc" >&6; }
31897 # So? What about this header?
31898 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31900 { echo "$as_me:$LINENO: WARNING: netinet/tcp.h: accepted by the compiler, rejected by the preprocessor!" >&5
31901 echo "$as_me: WARNING: netinet/tcp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31902 { echo "$as_me:$LINENO: WARNING: netinet/tcp.h: proceeding with the compiler's result
" >&5
31903 echo "$as_me: WARNING
: netinet
/tcp.h
: proceeding with the compiler
's result" >&2;}
31904 ac_header_preproc=yes
31907 { echo "$as_me:$LINENO: WARNING: netinet/tcp.h: present but cannot be compiled" >&5
31908 echo "$as_me: WARNING: netinet/tcp.h: present but cannot be compiled" >&2;}
31909 { echo "$as_me:$LINENO: WARNING: netinet/tcp.h: check for missing prerequisite headers?" >&5
31910 echo "$as_me: WARNING: netinet/tcp.h: check for missing prerequisite headers?" >&2;}
31911 { echo "$as_me:$LINENO: WARNING: netinet/tcp.h: see the Autoconf documentation" >&5
31912 echo "$as_me: WARNING: netinet/tcp.h: see the Autoconf documentation" >&2;}
31913 { echo "$as_me:$LINENO: WARNING: netinet/tcp.h: section \"Present But Cannot Be Compiled\"" >&5
31914 echo "$as_me: WARNING: netinet/tcp.h: section \"Present But Cannot Be Compiled\"" >&2;}
31915 { echo "$as_me:$LINENO: WARNING: netinet/tcp.h: proceeding with the preprocessor's result
" >&5
31916 echo "$as_me: WARNING
: netinet
/tcp.h
: proceeding with the preprocessor
's result" >&2;}
31917 { echo "$as_me:$LINENO: WARNING: netinet/tcp.h: in the future, the compiler will take precedence" >&5
31918 echo "$as_me: WARNING: netinet/tcp.h: in the future, the compiler will take precedence" >&2;}
31922 { echo "$as_me:$LINENO: checking for netinet/tcp.h" >&5
31923 echo $ECHO_N "checking for netinet/tcp.h... $ECHO_C" >&6; }
31924 if test "${ac_cv_header_netinet_tcp_h+set}" = set; then
31925 echo $ECHO_N "(cached) $ECHO_C" >&6
31927 ac_cv_header_netinet_tcp_h=$ac_header_preproc
31929 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_tcp_h" >&5
31930 echo "${ECHO_T}$ac_cv_header_netinet_tcp_h" >&6; }
31933 if test $ac_cv_header_netinet_tcp_h = yes; then
31940 if test "${ac_cv_header_pthread_h+set}" = set; then
31941 { echo "$as_me:$LINENO: checking for pthread.h" >&5
31942 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
31943 if test "${ac_cv_header_pthread_h+set}" = set; then
31944 echo $ECHO_N "(cached) $ECHO_C" >&6
31946 { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
31947 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
31949 # Is the header compilable?
31950 { echo "$as_me:$LINENO: checking pthread.h usability" >&5
31951 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6; }
31952 cat >conftest.$ac_ext <<_ACEOF
31955 cat confdefs.h >>conftest.$ac_ext
31956 cat >>conftest.$ac_ext <<_ACEOF
31957 /* end confdefs.h. */
31958 $ac_includes_default
31959 #include <pthread.h>
31961 rm -f conftest.$ac_objext
31962 if { (ac_try="$ac_compile"
31963 case "(($ac_try" in
31964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31965 *) ac_try_echo=$ac_try;;
31967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31968 (eval "$ac_compile") 2>conftest.er1
31970 grep -v '^
*+' conftest.er1 >conftest.err
31972 cat conftest.err >&5
31973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31974 (exit $ac_status); } && {
31975 test -z "$ac_c_werror_flag" ||
31976 test ! -s conftest.err
31977 } && test -s conftest.$ac_objext; then
31978 ac_header_compiler=yes
31980 echo "$as_me: failed program was:" >&5
31981 sed 's
/^
/|
/' conftest.$ac_ext >&5
31983 ac_header_compiler=no
31986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31987 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31988 echo "${ECHO_T}$ac_header_compiler" >&6; }
31990 # Is the header present?
31991 { echo "$as_me:$LINENO: checking pthread.h presence" >&5
31992 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6; }
31993 cat >conftest.$ac_ext <<_ACEOF
31996 cat confdefs.h >>conftest.$ac_ext
31997 cat >>conftest.$ac_ext <<_ACEOF
31998 /* end confdefs.h. */
31999 #include <pthread.h>
32001 if { (ac_try="$ac_cpp conftest.$ac_ext"
32002 case "(($ac_try" in
32003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32004 *) ac_try_echo=$ac_try;;
32006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32007 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32009 grep -v '^
*+' conftest.er1 >conftest.err
32011 cat conftest.err >&5
32012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32013 (exit $ac_status); } >/dev/null && {
32014 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32015 test ! -s conftest.err
32017 ac_header_preproc=yes
32019 echo "$as_me: failed program was:" >&5
32020 sed 's
/^
/|
/' conftest.$ac_ext >&5
32022 ac_header_preproc=no
32025 rm -f conftest.err conftest.$ac_ext
32026 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32027 echo "${ECHO_T}$ac_header_preproc" >&6; }
32029 # So? What about this header?
32030 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32032 { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
32033 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32034 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result
" >&5
32035 echo "$as_me: WARNING
: pthread.h
: proceeding with the compiler
's result" >&2;}
32036 ac_header_preproc=yes
32039 { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
32040 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
32041 { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
32042 echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
32043 { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
32044 echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
32045 { echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
32046 echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
32047 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result
" >&5
32048 echo "$as_me: WARNING
: pthread.h
: proceeding with the preprocessor
's result" >&2;}
32049 { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
32050 echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
32054 { echo "$as_me:$LINENO: checking for pthread.h" >&5
32055 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
32056 if test "${ac_cv_header_pthread_h+set}" = set; then
32057 echo $ECHO_N "(cached) $ECHO_C" >&6
32059 ac_cv_header_pthread_h=$ac_header_preproc
32061 { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
32062 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
32065 if test $ac_cv_header_pthread_h = yes; then
32074 if test $can_compile_rfb = 1; then
32079 if test "$with_term" != yes; then
32081 if test "${ac_cv_header_curses_h+set}" = set; then
32082 { echo "$as_me:$LINENO: checking for curses.h" >&5
32083 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
32084 if test "${ac_cv_header_curses_h+set}" = set; then
32085 echo $ECHO_N "(cached) $ECHO_C" >&6
32087 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
32088 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
32090 # Is the header compilable?
32091 { echo "$as_me:$LINENO: checking curses.h usability" >&5
32092 echo $ECHO_N "checking curses.h usability... $ECHO_C" >&6; }
32093 cat >conftest.$ac_ext <<_ACEOF
32096 cat confdefs.h >>conftest.$ac_ext
32097 cat >>conftest.$ac_ext <<_ACEOF
32098 /* end confdefs.h. */
32099 $ac_includes_default
32100 #include <curses.h>
32102 rm -f conftest.$ac_objext
32103 if { (ac_try="$ac_compile"
32104 case "(($ac_try" in
32105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32106 *) ac_try_echo=$ac_try;;
32108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32109 (eval "$ac_compile") 2>conftest.er1
32111 grep -v '^
*+' conftest.er1 >conftest.err
32113 cat conftest.err >&5
32114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32115 (exit $ac_status); } && {
32116 test -z "$ac_c_werror_flag" ||
32117 test ! -s conftest.err
32118 } && test -s conftest.$ac_objext; then
32119 ac_header_compiler=yes
32121 echo "$as_me: failed program was:" >&5
32122 sed 's
/^
/|
/' conftest.$ac_ext >&5
32124 ac_header_compiler=no
32127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32128 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32129 echo "${ECHO_T}$ac_header_compiler" >&6; }
32131 # Is the header present?
32132 { echo "$as_me:$LINENO: checking curses.h presence" >&5
32133 echo $ECHO_N "checking curses.h presence... $ECHO_C" >&6; }
32134 cat >conftest.$ac_ext <<_ACEOF
32137 cat confdefs.h >>conftest.$ac_ext
32138 cat >>conftest.$ac_ext <<_ACEOF
32139 /* end confdefs.h. */
32140 #include <curses.h>
32142 if { (ac_try="$ac_cpp conftest.$ac_ext"
32143 case "(($ac_try" in
32144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32145 *) ac_try_echo=$ac_try;;
32147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32148 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32150 grep -v '^
*+' conftest.er1 >conftest.err
32152 cat conftest.err >&5
32153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32154 (exit $ac_status); } >/dev/null && {
32155 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32156 test ! -s conftest.err
32158 ac_header_preproc=yes
32160 echo "$as_me: failed program was:" >&5
32161 sed 's
/^
/|
/' conftest.$ac_ext >&5
32163 ac_header_preproc=no
32166 rm -f conftest.err conftest.$ac_ext
32167 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32168 echo "${ECHO_T}$ac_header_preproc" >&6; }
32170 # So? What about this header?
32171 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32173 { echo "$as_me:$LINENO: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
32174 echo "$as_me: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32175 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the compiler's result
" >&5
32176 echo "$as_me: WARNING
: curses.h
: proceeding with the compiler
's result" >&2;}
32177 ac_header_preproc=yes
32180 { echo "$as_me:$LINENO: WARNING: curses.h: present but cannot be compiled" >&5
32181 echo "$as_me: WARNING: curses.h: present but cannot be compiled" >&2;}
32182 { echo "$as_me:$LINENO: WARNING: curses.h: check for missing prerequisite headers?" >&5
32183 echo "$as_me: WARNING: curses.h: check for missing prerequisite headers?" >&2;}
32184 { echo "$as_me:$LINENO: WARNING: curses.h: see the Autoconf documentation" >&5
32185 echo "$as_me: WARNING: curses.h: see the Autoconf documentation" >&2;}
32186 { echo "$as_me:$LINENO: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&5
32187 echo "$as_me: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
32188 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the preprocessor's result
" >&5
32189 echo "$as_me: WARNING
: curses.h
: proceeding with the preprocessor
's result" >&2;}
32190 { echo "$as_me:$LINENO: WARNING: curses.h: in the future, the compiler will take precedence" >&5
32191 echo "$as_me: WARNING: curses.h: in the future, the compiler will take precedence" >&2;}
32195 { echo "$as_me:$LINENO: checking for curses.h" >&5
32196 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
32197 if test "${ac_cv_header_curses_h+set}" = set; then
32198 echo $ECHO_N "(cached) $ECHO_C" >&6
32200 ac_cv_header_curses_h=$ac_header_preproc
32202 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
32203 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
32206 if test $ac_cv_header_curses_h = yes; then
32213 if test "${ac_cv_header_signal_h+set}" = set; then
32214 { echo "$as_me:$LINENO: checking for signal.h" >&5
32215 echo $ECHO_N "checking for signal.h... $ECHO_C" >&6; }
32216 if test "${ac_cv_header_signal_h+set}" = set; then
32217 echo $ECHO_N "(cached) $ECHO_C" >&6
32219 { echo "$as_me:$LINENO: result: $ac_cv_header_signal_h" >&5
32220 echo "${ECHO_T}$ac_cv_header_signal_h" >&6; }
32222 # Is the header compilable?
32223 { echo "$as_me:$LINENO: checking signal.h usability" >&5
32224 echo $ECHO_N "checking signal.h usability... $ECHO_C" >&6; }
32225 cat >conftest.$ac_ext <<_ACEOF
32228 cat confdefs.h >>conftest.$ac_ext
32229 cat >>conftest.$ac_ext <<_ACEOF
32230 /* end confdefs.h. */
32231 $ac_includes_default
32232 #include <signal.h>
32234 rm -f conftest.$ac_objext
32235 if { (ac_try="$ac_compile"
32236 case "(($ac_try" in
32237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32238 *) ac_try_echo=$ac_try;;
32240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32241 (eval "$ac_compile") 2>conftest.er1
32243 grep -v '^
*+' conftest.er1 >conftest.err
32245 cat conftest.err >&5
32246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32247 (exit $ac_status); } && {
32248 test -z "$ac_c_werror_flag" ||
32249 test ! -s conftest.err
32250 } && test -s conftest.$ac_objext; then
32251 ac_header_compiler=yes
32253 echo "$as_me: failed program was:" >&5
32254 sed 's
/^
/|
/' conftest.$ac_ext >&5
32256 ac_header_compiler=no
32259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32260 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32261 echo "${ECHO_T}$ac_header_compiler" >&6; }
32263 # Is the header present?
32264 { echo "$as_me:$LINENO: checking signal.h presence" >&5
32265 echo $ECHO_N "checking signal.h presence... $ECHO_C" >&6; }
32266 cat >conftest.$ac_ext <<_ACEOF
32269 cat confdefs.h >>conftest.$ac_ext
32270 cat >>conftest.$ac_ext <<_ACEOF
32271 /* end confdefs.h. */
32272 #include <signal.h>
32274 if { (ac_try="$ac_cpp conftest.$ac_ext"
32275 case "(($ac_try" in
32276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32277 *) ac_try_echo=$ac_try;;
32279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32280 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32282 grep -v '^
*+' conftest.er1 >conftest.err
32284 cat conftest.err >&5
32285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32286 (exit $ac_status); } >/dev/null && {
32287 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32288 test ! -s conftest.err
32290 ac_header_preproc=yes
32292 echo "$as_me: failed program was:" >&5
32293 sed 's
/^
/|
/' conftest.$ac_ext >&5
32295 ac_header_preproc=no
32298 rm -f conftest.err conftest.$ac_ext
32299 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32300 echo "${ECHO_T}$ac_header_preproc" >&6; }
32302 # So? What about this header?
32303 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32305 { echo "$as_me:$LINENO: WARNING: signal.h: accepted by the compiler, rejected by the preprocessor!" >&5
32306 echo "$as_me: WARNING: signal.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32307 { echo "$as_me:$LINENO: WARNING: signal.h: proceeding with the compiler's result
" >&5
32308 echo "$as_me: WARNING
: signal.h
: proceeding with the compiler
's result" >&2;}
32309 ac_header_preproc=yes
32312 { echo "$as_me:$LINENO: WARNING: signal.h: present but cannot be compiled" >&5
32313 echo "$as_me: WARNING: signal.h: present but cannot be compiled" >&2;}
32314 { echo "$as_me:$LINENO: WARNING: signal.h: check for missing prerequisite headers?" >&5
32315 echo "$as_me: WARNING: signal.h: check for missing prerequisite headers?" >&2;}
32316 { echo "$as_me:$LINENO: WARNING: signal.h: see the Autoconf documentation" >&5
32317 echo "$as_me: WARNING: signal.h: see the Autoconf documentation" >&2;}
32318 { echo "$as_me:$LINENO: WARNING: signal.h: section \"Present But Cannot Be Compiled\"" >&5
32319 echo "$as_me: WARNING: signal.h: section \"Present But Cannot Be Compiled\"" >&2;}
32320 { echo "$as_me:$LINENO: WARNING: signal.h: proceeding with the preprocessor's result
" >&5
32321 echo "$as_me: WARNING
: signal.h
: proceeding with the preprocessor
's result" >&2;}
32322 { echo "$as_me:$LINENO: WARNING: signal.h: in the future, the compiler will take precedence" >&5
32323 echo "$as_me: WARNING: signal.h: in the future, the compiler will take precedence" >&2;}
32327 { echo "$as_me:$LINENO: checking for signal.h" >&5
32328 echo $ECHO_N "checking for signal.h... $ECHO_C" >&6; }
32329 if test "${ac_cv_header_signal_h+set}" = set; then
32330 echo $ECHO_N "(cached) $ECHO_C" >&6
32332 ac_cv_header_signal_h=$ac_header_preproc
32334 { echo "$as_me:$LINENO: result: $ac_cv_header_signal_h" >&5
32335 echo "${ECHO_T}$ac_cv_header_signal_h" >&6; }
32338 if test $ac_cv_header_signal_h = yes; then
32345 if test $can_compile_term = 1; then
32350 if test "$with_nogui" != yes; then
32353 fi # end of if $with_all_libs = yes
32355 { echo "$as_me:$LINENO: checking for idle hack" >&5
32356 echo $ECHO_N "checking for idle hack... $ECHO_C" >&6; }
32357 # Check whether --enable-idle-hack was given.
32358 if test "${enable_idle_hack+set}" = set; then
32359 enableval=$enable_idle_hack; if test "$enableval" = yes; then
32360 { echo "$as_me:$LINENO: result: yes" >&5
32361 echo "${ECHO_T}yes" >&6; }
32362 cat >>confdefs.h <<\_ACEOF
32363 #define BX_USE_IDLE_HACK 1
32367 { echo "$as_me:$LINENO: result: no" >&5
32368 echo "${ECHO_T}no" >&6; }
32369 cat >>confdefs.h <<\_ACEOF
32370 #define BX_USE_IDLE_HACK 0
32376 { echo "$as_me:$LINENO: result: no" >&5
32377 echo "${ECHO_T}no" >&6; }
32378 cat >>confdefs.h <<\_ACEOF
32379 #define BX_USE_IDLE_HACK 0
32388 if test "${ac_cv_header_dlfcn_h+set}" = set; then
32389 { echo "$as_me:$LINENO: checking for dlfcn.h" >&5
32390 echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6; }
32391 if test "${ac_cv_header_dlfcn_h+set}" = set; then
32392 echo $ECHO_N "(cached) $ECHO_C" >&6
32394 { echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
32395 echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6; }
32397 # Is the header compilable?
32398 { echo "$as_me:$LINENO: checking dlfcn.h usability" >&5
32399 echo $ECHO_N "checking dlfcn.h usability... $ECHO_C" >&6; }
32400 cat >conftest.$ac_ext <<_ACEOF
32403 cat confdefs.h >>conftest.$ac_ext
32404 cat >>conftest.$ac_ext <<_ACEOF
32405 /* end confdefs.h. */
32406 $ac_includes_default
32409 rm -f conftest.$ac_objext
32410 if { (ac_try="$ac_compile"
32411 case "(($ac_try" in
32412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32413 *) ac_try_echo=$ac_try;;
32415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32416 (eval "$ac_compile") 2>conftest.er1
32418 grep -v '^
*+' conftest.er1 >conftest.err
32420 cat conftest.err >&5
32421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32422 (exit $ac_status); } && {
32423 test -z "$ac_c_werror_flag" ||
32424 test ! -s conftest.err
32425 } && test -s conftest.$ac_objext; then
32426 ac_header_compiler=yes
32428 echo "$as_me: failed program was:" >&5
32429 sed 's
/^
/|
/' conftest.$ac_ext >&5
32431 ac_header_compiler=no
32434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32435 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32436 echo "${ECHO_T}$ac_header_compiler" >&6; }
32438 # Is the header present?
32439 { echo "$as_me:$LINENO: checking dlfcn.h presence" >&5
32440 echo $ECHO_N "checking dlfcn.h presence... $ECHO_C" >&6; }
32441 cat >conftest.$ac_ext <<_ACEOF
32444 cat confdefs.h >>conftest.$ac_ext
32445 cat >>conftest.$ac_ext <<_ACEOF
32446 /* end confdefs.h. */
32449 if { (ac_try="$ac_cpp conftest.$ac_ext"
32450 case "(($ac_try" in
32451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32452 *) ac_try_echo=$ac_try;;
32454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32455 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32457 grep -v '^
*+' conftest.er1 >conftest.err
32459 cat conftest.err >&5
32460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32461 (exit $ac_status); } >/dev/null && {
32462 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32463 test ! -s conftest.err
32465 ac_header_preproc=yes
32467 echo "$as_me: failed program was:" >&5
32468 sed 's
/^
/|
/' conftest.$ac_ext >&5
32470 ac_header_preproc=no
32473 rm -f conftest.err conftest.$ac_ext
32474 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32475 echo "${ECHO_T}$ac_header_preproc" >&6; }
32477 # So? What about this header?
32478 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32480 { echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5
32481 echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32482 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result
" >&5
32483 echo "$as_me: WARNING
: dlfcn.h
: proceeding with the compiler
's result" >&2;}
32484 ac_header_preproc=yes
32487 { echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5
32488 echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;}
32489 { echo "$as_me:$LINENO: WARNING: dlfcn.h: check for missing prerequisite headers?" >&5
32490 echo "$as_me: WARNING: dlfcn.h: check for missing prerequisite headers?" >&2;}
32491 { echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5
32492 echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;}
32493 { echo "$as_me:$LINENO: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&5
32494 echo "$as_me: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&2;}
32495 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result
" >&5
32496 echo "$as_me: WARNING
: dlfcn.h
: proceeding with the preprocessor
's result" >&2;}
32497 { echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5
32498 echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;}
32502 { echo "$as_me:$LINENO: checking for dlfcn.h" >&5
32503 echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6; }
32504 if test "${ac_cv_header_dlfcn_h+set}" = set; then
32505 echo $ECHO_N "(cached) $ECHO_C" >&6
32507 ac_cv_header_dlfcn_h=$ac_header_preproc
32509 { echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
32510 echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6; }
32513 if test $ac_cv_header_dlfcn_h = yes; then
32514 cat >>confdefs.h <<\_ACEOF
32515 #define BX_HAVE_DLFCN_H 1
32521 if test "${ac_cv_header_assert_h+set}" = set; then
32522 { echo "$as_me:$LINENO: checking for assert.h" >&5
32523 echo $ECHO_N "checking for assert.h... $ECHO_C" >&6; }
32524 if test "${ac_cv_header_assert_h+set}" = set; then
32525 echo $ECHO_N "(cached) $ECHO_C" >&6
32527 { echo "$as_me:$LINENO: result: $ac_cv_header_assert_h" >&5
32528 echo "${ECHO_T}$ac_cv_header_assert_h" >&6; }
32530 # Is the header compilable?
32531 { echo "$as_me:$LINENO: checking assert.h usability" >&5
32532 echo $ECHO_N "checking assert.h usability... $ECHO_C" >&6; }
32533 cat >conftest.$ac_ext <<_ACEOF
32536 cat confdefs.h >>conftest.$ac_ext
32537 cat >>conftest.$ac_ext <<_ACEOF
32538 /* end confdefs.h. */
32539 $ac_includes_default
32540 #include <assert.h>
32542 rm -f conftest.$ac_objext
32543 if { (ac_try="$ac_compile"
32544 case "(($ac_try" in
32545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32546 *) ac_try_echo=$ac_try;;
32548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32549 (eval "$ac_compile") 2>conftest.er1
32551 grep -v '^
*+' conftest.er1 >conftest.err
32553 cat conftest.err >&5
32554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32555 (exit $ac_status); } && {
32556 test -z "$ac_c_werror_flag" ||
32557 test ! -s conftest.err
32558 } && test -s conftest.$ac_objext; then
32559 ac_header_compiler=yes
32561 echo "$as_me: failed program was:" >&5
32562 sed 's
/^
/|
/' conftest.$ac_ext >&5
32564 ac_header_compiler=no
32567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32568 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32569 echo "${ECHO_T}$ac_header_compiler" >&6; }
32571 # Is the header present?
32572 { echo "$as_me:$LINENO: checking assert.h presence" >&5
32573 echo $ECHO_N "checking assert.h presence... $ECHO_C" >&6; }
32574 cat >conftest.$ac_ext <<_ACEOF
32577 cat confdefs.h >>conftest.$ac_ext
32578 cat >>conftest.$ac_ext <<_ACEOF
32579 /* end confdefs.h. */
32580 #include <assert.h>
32582 if { (ac_try="$ac_cpp conftest.$ac_ext"
32583 case "(($ac_try" in
32584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32585 *) ac_try_echo=$ac_try;;
32587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32588 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32590 grep -v '^
*+' conftest.er1 >conftest.err
32592 cat conftest.err >&5
32593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32594 (exit $ac_status); } >/dev/null && {
32595 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32596 test ! -s conftest.err
32598 ac_header_preproc=yes
32600 echo "$as_me: failed program was:" >&5
32601 sed 's
/^
/|
/' conftest.$ac_ext >&5
32603 ac_header_preproc=no
32606 rm -f conftest.err conftest.$ac_ext
32607 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32608 echo "${ECHO_T}$ac_header_preproc" >&6; }
32610 # So? What about this header?
32611 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32613 { echo "$as_me:$LINENO: WARNING: assert.h: accepted by the compiler, rejected by the preprocessor!" >&5
32614 echo "$as_me: WARNING: assert.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32615 { echo "$as_me:$LINENO: WARNING: assert.h: proceeding with the compiler's result
" >&5
32616 echo "$as_me: WARNING
: assert.h
: proceeding with the compiler
's result" >&2;}
32617 ac_header_preproc=yes
32620 { echo "$as_me:$LINENO: WARNING: assert.h: present but cannot be compiled" >&5
32621 echo "$as_me: WARNING: assert.h: present but cannot be compiled" >&2;}
32622 { echo "$as_me:$LINENO: WARNING: assert.h: check for missing prerequisite headers?" >&5
32623 echo "$as_me: WARNING: assert.h: check for missing prerequisite headers?" >&2;}
32624 { echo "$as_me:$LINENO: WARNING: assert.h: see the Autoconf documentation" >&5
32625 echo "$as_me: WARNING: assert.h: see the Autoconf documentation" >&2;}
32626 { echo "$as_me:$LINENO: WARNING: assert.h: section \"Present But Cannot Be Compiled\"" >&5
32627 echo "$as_me: WARNING: assert.h: section \"Present But Cannot Be Compiled\"" >&2;}
32628 { echo "$as_me:$LINENO: WARNING: assert.h: proceeding with the preprocessor's result
" >&5
32629 echo "$as_me: WARNING
: assert.h
: proceeding with the preprocessor
's result" >&2;}
32630 { echo "$as_me:$LINENO: WARNING: assert.h: in the future, the compiler will take precedence" >&5
32631 echo "$as_me: WARNING: assert.h: in the future, the compiler will take precedence" >&2;}
32635 { echo "$as_me:$LINENO: checking for assert.h" >&5
32636 echo $ECHO_N "checking for assert.h... $ECHO_C" >&6; }
32637 if test "${ac_cv_header_assert_h+set}" = set; then
32638 echo $ECHO_N "(cached) $ECHO_C" >&6
32640 ac_cv_header_assert_h=$ac_header_preproc
32642 { echo "$as_me:$LINENO: result: $ac_cv_header_assert_h" >&5
32643 echo "${ECHO_T}$ac_cv_header_assert_h" >&6; }
32646 if test $ac_cv_header_assert_h = yes; then
32647 cat >>confdefs.h <<\_ACEOF
32648 #define HAVE_ASSERT_H 1
32655 { echo "$as_me:$LINENO: checking for plugins support" >&5
32656 echo $ECHO_N "checking for plugins support... $ECHO_C" >&6; }
32657 # Check whether --enable-plugins was given.
32658 if test "${enable_plugins+set}" = set; then
32659 enableval=$enable_plugins; if test "$enableval" = yes; then
32672 if test "$bx_plugins" = 1; then
32673 { echo "$as_me:$LINENO: result: yes" >&5
32674 echo "${ECHO_T}yes" >&6; }
32675 cat >>confdefs.h <<\_ACEOF
32676 #define BX_PLUGINS 1
32679 GUI_NON_PLUGIN_OBJS='$
(OBJS_THAT_CANNOT_BE_PLUGINS
)'
32680 GUI_PLUGIN_OBJS='$
(OBJS_THAT_CAN_BE_PLUGINS
)'
32681 DEFINE_PLUGIN_PATH='-DBX_PLUGIN_PATH="\"${plugdir}\""'
32682 # and the $(OBJS_THAT_SUPPORT_OTHER_PLUGINS) will be built and linked
32683 # by special link rules for the plugins that they support.
32684 LIBS="$LIBS $LIBADD_DL"
32685 PLUGIN_VAR='ltdl.o
'
32686 PLUGIN_TARGET=bochs_plugins
32687 INSTALL_PLUGINS_VAR=install_libtool_plugins
32688 NONPLUGIN_GUI_LINK_OPTS=''
32690 { echo "$as_me:$LINENO: result: no" >&5
32691 echo "${ECHO_T}no" >&6; }
32693 cat >>confdefs.h <<\_ACEOF
32694 #define BX_PLUGINS 0
32697 GUI_NON_PLUGIN_OBJS='$
(OBJS_THAT_CANNOT_BE_PLUGINS
) $
(OBJS_THAT_CAN_BE_PLUGINS
) $
(OBJS_THAT_SUPPORT_OTHER_PLUGINS
)'
32699 NONPLUGIN_GUI_LINK_OPTS='$
(GUI_LINK_OPTS
)'
32704 # copy gui variables into iodev variables. Later, we will add to the gui
32705 # objs list, according to which display libraries are enabled.
32706 IODEV_NON_PLUGIN_OBJS=$GUI_NON_PLUGIN_OBJS
32707 IODEV_PLUGIN_OBJS=$GUI_PLUGIN_OBJS
32709 # on MacOSX if they enabled plugins, make sure that dlopen() was found.
32710 # It is provided by a library called dlcompat.
32711 if test "$bx_plugins" = 1 -a "$need_dlcompat_for_plugins" = 1; then
32713 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
32714 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
32715 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
32716 echo $ECHO_N "(cached) $ECHO_C" >&6
32718 ac_check_lib_save_LIBS=$LIBS
32720 cat >conftest.$ac_ext <<_ACEOF
32723 cat confdefs.h >>conftest.$ac_ext
32724 cat >>conftest.$ac_ext <<_ACEOF
32725 /* end confdefs.h. */
32727 /* Override any GCC internal prototype to avoid an error.
32728 Use char because int might match the return type of a GCC
32729 builtin and then its argument prototype would still apply. */
32742 rm -f conftest.$ac_objext conftest$ac_exeext
32743 if { (ac_try="$ac_link"
32744 case "(($ac_try" in
32745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32746 *) ac_try_echo=$ac_try;;
32748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32749 (eval "$ac_link") 2>conftest.er1
32751 grep -v '^
*+' conftest.er1 >conftest.err
32753 cat conftest.err >&5
32754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32755 (exit $ac_status); } && {
32756 test -z "$ac_c_werror_flag" ||
32757 test ! -s conftest.err
32758 } && test -s conftest$ac_exeext &&
32759 $as_test_x conftest$ac_exeext; then
32760 ac_cv_lib_dl_dlopen=yes
32762 echo "$as_me: failed program was:" >&5
32763 sed 's
/^
/|
/' conftest.$ac_ext >&5
32765 ac_cv_lib_dl_dlopen=no
32768 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32769 conftest$ac_exeext conftest.$ac_ext
32770 LIBS=$ac_check_lib_save_LIBS
32772 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
32773 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
32774 if test $ac_cv_lib_dl_dlopen = yes; then
32778 { echo "$as_me:$LINENO: checking if you have dlcompat" >&5
32779 echo $ECHO_N "checking if you have dlcompat... $ECHO_C" >&6; }
32780 if test "$have_dlopen" = 0; then
32781 { echo "$as_me:$LINENO: result: no" >&5
32782 echo "${ECHO_T}no" >&6; }
32783 { { echo "$as_me:$LINENO: error: To use plugins on MacOSX you must use a library called dlcompat. The configure script was not able to find dlcompat. If it is already installed then you must set up your environment variables to point to it, as is done in .conf.macosx. If you cannot resolve this, you should turn off plugins." >&5
32784 echo "$as_me: error: To use plugins on MacOSX you must use a library called dlcompat. The configure script was not able to find dlcompat. If it is already installed then you must set up your environment variables to point to it, as is done in .conf.macosx. If you cannot resolve this, you should turn off plugins." >&2;}
32785 { (exit 1); exit 1; }; }
32787 { echo "$as_me:$LINENO: result: yes" >&5
32788 echo "${ECHO_T}yes" >&6; }
32792 { echo "$as_me:$LINENO: checking if compiler allows blank labels" >&5
32793 echo $ECHO_N "checking if compiler allows blank labels... $ECHO_C" >&6; }
32794 cat >conftest.$ac_ext <<_ACEOF
32797 cat confdefs.h >>conftest.$ac_ext
32798 cat >>conftest.$ac_ext <<_ACEOF
32799 /* end confdefs.h. */
32809 rm -f conftest.$ac_objext
32810 if { (ac_try="$ac_compile"
32811 case "(($ac_try" in
32812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32813 *) ac_try_echo=$ac_try;;
32815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32816 (eval "$ac_compile") 2>conftest.er1
32818 grep -v '^
*+' conftest.er1 >conftest.err
32820 cat conftest.err >&5
32821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32822 (exit $ac_status); } && {
32823 test -z "$ac_c_werror_flag" ||
32824 test ! -s conftest.err
32825 } && test -s conftest.$ac_objext; then
32826 { echo "$as_me:$LINENO: result: yes" >&5
32827 echo "${ECHO_T}yes" >&6; }
32829 echo "$as_me: failed program was:" >&5
32830 sed 's
/^
/|
/' conftest.$ac_ext >&5
32833 { echo "$as_me:$LINENO: result: no" >&5
32834 echo "${ECHO_T}no" >&6; }
32835 cat >>confdefs.h <<\_ACEOF
32836 #define BX_NO_BLANK_LABELS 1
32842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32844 { echo "$as_me:$LINENO: checking if compiler allows LL for 64-bit constants" >&5
32845 echo $ECHO_N "checking if compiler allows LL for 64-bit constants... $ECHO_C" >&6; }
32846 cat >conftest.$ac_ext <<_ACEOF
32849 cat confdefs.h >>conftest.$ac_ext
32850 cat >>conftest.$ac_ext <<_ACEOF
32851 /* end confdefs.h. */
32861 rm -f conftest.$ac_objext
32862 if { (ac_try="$ac_compile"
32863 case "(($ac_try" in
32864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32865 *) ac_try_echo=$ac_try;;
32867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32868 (eval "$ac_compile") 2>conftest.er1
32870 grep -v '^
*+' conftest.er1 >conftest.err
32872 cat conftest.err >&5
32873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32874 (exit $ac_status); } && {
32875 test -z "$ac_c_werror_flag" ||
32876 test ! -s conftest.err
32877 } && test -s conftest.$ac_objext; then
32878 { echo "$as_me:$LINENO: result: yes" >&5
32879 echo "${ECHO_T}yes" >&6; }
32881 echo "$as_me: failed program was:" >&5
32882 sed 's
/^
/|
/' conftest.$ac_ext >&5
32885 { echo "$as_me:$LINENO: result: no" >&5
32886 echo "${ECHO_T}no" >&6; }
32887 cat >>confdefs.h <<\_ACEOF
32888 #define BX_64BIT_CONSTANTS_USE_LL 0
32894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32897 { echo "$as_me:$LINENO: checking for x86-64 support" >&5
32898 echo $ECHO_N "checking for x86-64 support... $ECHO_C" >&6; }
32899 # Check whether --enable-x86-64 was given.
32900 if test "${enable_x86_64+set}" = set; then
32901 enableval=$enable_x86_64; if test "$enableval" = yes; then
32902 { echo "$as_me:$LINENO: result: yes" >&5
32903 echo "${ECHO_T}yes" >&6; }
32905 cat >>confdefs.h <<\_ACEOF
32906 #define BX_SUPPORT_X86_64 1
32911 { echo "$as_me:$LINENO: result: no" >&5
32912 echo "${ECHO_T}no" >&6; }
32914 cat >>confdefs.h <<\_ACEOF
32915 #define BX_SUPPORT_X86_64 0
32922 { echo "$as_me:$LINENO: result: no" >&5
32923 echo "${ECHO_T}no" >&6; }
32925 cat >>confdefs.h <<\_ACEOF
32926 #define BX_SUPPORT_X86_64 0
32936 { echo "$as_me:$LINENO: checking for SMP support" >&5
32937 echo $ECHO_N "checking for SMP support... $ECHO_C" >&6; }
32938 # Check whether --enable-smp was given.
32939 if test "${enable_smp+set}" = set; then
32940 enableval=$enable_smp; if test "$enableval" = yes; then
32941 { echo "$as_me:$LINENO: result: yes" >&5
32942 echo "${ECHO_T}yes" >&6; }
32943 cat >>confdefs.h <<\_ACEOF
32944 #define BX_SUPPORT_SMP 1
32947 cat >>confdefs.h <<\_ACEOF
32948 #define BX_USE_CPU_SMF 0
32953 { echo "$as_me:$LINENO: result: no" >&5
32954 echo "${ECHO_T}no" >&6; }
32955 cat >>confdefs.h <<\_ACEOF
32956 #define BX_SUPPORT_SMP 0
32963 { echo "$as_me:$LINENO: result: no" >&5
32964 echo "${ECHO_T}no" >&6; }
32965 cat >>confdefs.h <<\_ACEOF
32966 #define BX_SUPPORT_SMP 0
32974 { echo "$as_me:$LINENO: checking for cpu level" >&5
32975 echo $ECHO_N "checking for cpu level... $ECHO_C" >&6; }
32976 # Check whether --enable-cpu-level was given.
32977 if test "${enable_cpu_level+set}" = set; then
32978 enableval=$enable_cpu_level; case "$enableval" in
32980 { echo "$as_me:$LINENO: result: 3" >&5
32981 echo "${ECHO_T}3" >&6; }
32982 cat >>confdefs.h <<\_ACEOF
32983 #define BX_CPU_LEVEL 3
32986 cat >>confdefs.h <<\_ACEOF
32987 #define BX_CPU_LEVEL_HACKED 3
32992 { echo "$as_me:$LINENO: result: 4" >&5
32993 echo "${ECHO_T}4" >&6; }
32994 cat >>confdefs.h <<\_ACEOF
32995 #define BX_CPU_LEVEL 4
32998 cat >>confdefs.h <<\_ACEOF
32999 #define BX_CPU_LEVEL_HACKED 4
33004 { echo "$as_me:$LINENO: result: 5" >&5
33005 echo "${ECHO_T}5" >&6; }
33006 cat >>confdefs.h <<\_ACEOF
33007 #define BX_CPU_LEVEL 5
33010 cat >>confdefs.h <<\_ACEOF
33011 #define BX_CPU_LEVEL_HACKED 5
33016 { echo "$as_me:$LINENO: result: 6" >&5
33017 echo "${ECHO_T}6" >&6; }
33018 cat >>confdefs.h <<\_ACEOF
33019 #define BX_CPU_LEVEL 6
33022 cat >>confdefs.h <<\_ACEOF
33023 #define BX_CPU_LEVEL_HACKED 6
33029 echo "ERROR: you must supply a valid CPU level to --enable-cpu-level"
33033 bx_cpu_level=$enableval
33034 if test "$use_smp" = 1 -a "$enableval" -lt 6; then
33035 echo "ERROR: with >1 processor, use --enable-cpu-level=6"
33041 # for multiprocessors or x86-64, cpu level must be 6
33042 if test "$use_smp" = 1 -o "$use_x86_64" = 1; then
33043 { echo "$as_me:$LINENO: result: 6" >&5
33044 echo "${ECHO_T}6" >&6; }
33045 cat >>confdefs.h <<\_ACEOF
33046 #define BX_CPU_LEVEL 6
33049 cat >>confdefs.h <<\_ACEOF
33050 #define BX_CPU_LEVEL_HACKED 6
33055 { echo "$as_me:$LINENO: result: 5" >&5
33056 echo "${ECHO_T}5" >&6; }
33057 cat >>confdefs.h <<\_ACEOF
33058 #define BX_CPU_LEVEL 5
33061 cat >>confdefs.h <<\_ACEOF
33062 #define BX_CPU_LEVEL_HACKED 5
33073 { echo "$as_me:$LINENO: checking for APIC support" >&5
33074 echo $ECHO_N "checking for APIC support... $ECHO_C" >&6; }
33075 # Check whether --enable-apic was given.
33076 if test "${enable_apic+set}" = set; then
33077 enableval=$enable_apic; if test "$enableval" = yes; then
33078 { echo "$as_me:$LINENO: result: yes" >&5
33079 echo "${ECHO_T}yes" >&6; }
33080 cat >>confdefs.h <<\_ACEOF
33081 #define BX_SUPPORT_APIC 1
33084 IOAPIC_OBJS='ioapic.o
'
33086 { echo "$as_me:$LINENO: result: no" >&5
33087 echo "${ECHO_T}no" >&6; }
33088 if test "$use_smp" = 1; then
33089 echo "ERROR: With SMP configuration you must use --enable-apic"
33092 cat >>confdefs.h <<\_ACEOF
33093 #define BX_SUPPORT_APIC 0
33101 if test "$use_smp" = 1 -o "$bx_cpu_level" -gt 5; then
33102 # enable APIC by default, if SMP configuration or if cpulevel>5
33103 { echo "$as_me:$LINENO: result: yes" >&5
33104 echo "${ECHO_T}yes" >&6; }
33105 cat >>confdefs.h <<\_ACEOF
33106 #define BX_SUPPORT_APIC 1
33109 IOAPIC_OBJS='ioapic.o
'
33111 { echo "$as_me:$LINENO: result: no" >&5
33112 echo "${ECHO_T}no" >&6; }
33113 cat >>confdefs.h <<\_ACEOF
33114 #define BX_SUPPORT_APIC 0
33125 if test "${ac_cv_header_zlib_h+set}" = set; then
33126 { echo "$as_me:$LINENO: checking for zlib.h" >&5
33127 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
33128 if test "${ac_cv_header_zlib_h+set}" = set; then
33129 echo $ECHO_N "(cached) $ECHO_C" >&6
33131 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
33132 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
33134 # Is the header compilable?
33135 { echo "$as_me:$LINENO: checking zlib.h usability" >&5
33136 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
33137 cat >conftest.$ac_ext <<_ACEOF
33140 cat confdefs.h >>conftest.$ac_ext
33141 cat >>conftest.$ac_ext <<_ACEOF
33142 /* end confdefs.h. */
33143 $ac_includes_default
33146 rm -f conftest.$ac_objext
33147 if { (ac_try="$ac_compile"
33148 case "(($ac_try" in
33149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33150 *) ac_try_echo=$ac_try;;
33152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33153 (eval "$ac_compile") 2>conftest.er1
33155 grep -v '^
*+' conftest.er1 >conftest.err
33157 cat conftest.err >&5
33158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33159 (exit $ac_status); } && {
33160 test -z "$ac_c_werror_flag" ||
33161 test ! -s conftest.err
33162 } && test -s conftest.$ac_objext; then
33163 ac_header_compiler=yes
33165 echo "$as_me: failed program was:" >&5
33166 sed 's
/^
/|
/' conftest.$ac_ext >&5
33168 ac_header_compiler=no
33171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33172 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33173 echo "${ECHO_T}$ac_header_compiler" >&6; }
33175 # Is the header present?
33176 { echo "$as_me:$LINENO: checking zlib.h presence" >&5
33177 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
33178 cat >conftest.$ac_ext <<_ACEOF
33181 cat confdefs.h >>conftest.$ac_ext
33182 cat >>conftest.$ac_ext <<_ACEOF
33183 /* end confdefs.h. */
33186 if { (ac_try="$ac_cpp conftest.$ac_ext"
33187 case "(($ac_try" in
33188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33189 *) ac_try_echo=$ac_try;;
33191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33192 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33194 grep -v '^
*+' conftest.er1 >conftest.err
33196 cat conftest.err >&5
33197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33198 (exit $ac_status); } >/dev/null && {
33199 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33200 test ! -s conftest.err
33202 ac_header_preproc=yes
33204 echo "$as_me: failed program was:" >&5
33205 sed 's
/^
/|
/' conftest.$ac_ext >&5
33207 ac_header_preproc=no
33210 rm -f conftest.err conftest.$ac_ext
33211 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33212 echo "${ECHO_T}$ac_header_preproc" >&6; }
33214 # So? What about this header?
33215 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33217 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
33218 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33219 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result
" >&5
33220 echo "$as_me: WARNING
: zlib.h
: proceeding with the compiler
's result" >&2;}
33221 ac_header_preproc=yes
33224 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
33225 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
33226 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
33227 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
33228 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
33229 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
33230 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
33231 echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
33232 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result
" >&5
33233 echo "$as_me: WARNING
: zlib.h
: proceeding with the preprocessor
's result" >&2;}
33234 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
33235 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
33239 { echo "$as_me:$LINENO: checking for zlib.h" >&5
33240 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
33241 if test "${ac_cv_header_zlib_h+set}" = set; then
33242 echo $ECHO_N "(cached) $ECHO_C" >&6
33244 ac_cv_header_zlib_h=$ac_header_preproc
33246 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
33247 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
33250 if test $ac_cv_header_zlib_h = yes; then
33251 { echo "$as_me:$LINENO: checking for gzopen in -lz" >&5
33252 echo $ECHO_N "checking for gzopen in -lz... $ECHO_C" >&6; }
33253 if test "${ac_cv_lib_z_gzopen+set}" = set; then
33254 echo $ECHO_N "(cached) $ECHO_C" >&6
33256 ac_check_lib_save_LIBS=$LIBS
33258 cat >conftest.$ac_ext <<_ACEOF
33261 cat confdefs.h >>conftest.$ac_ext
33262 cat >>conftest.$ac_ext <<_ACEOF
33263 /* end confdefs.h. */
33265 /* Override any GCC internal prototype to avoid an error.
33266 Use char because int might match the return type of a GCC
33267 builtin and then its argument prototype would still apply. */
33280 rm -f conftest.$ac_objext conftest$ac_exeext
33281 if { (ac_try="$ac_link"
33282 case "(($ac_try" in
33283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33284 *) ac_try_echo=$ac_try;;
33286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33287 (eval "$ac_link") 2>conftest.er1
33289 grep -v '^
*+' conftest.er1 >conftest.err
33291 cat conftest.err >&5
33292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33293 (exit $ac_status); } && {
33294 test -z "$ac_c_werror_flag" ||
33295 test ! -s conftest.err
33296 } && test -s conftest$ac_exeext &&
33297 $as_test_x conftest$ac_exeext; then
33298 ac_cv_lib_z_gzopen=yes
33300 echo "$as_me: failed program was:" >&5
33301 sed 's
/^
/|
/' conftest.$ac_ext >&5
33303 ac_cv_lib_z_gzopen=no
33306 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33307 conftest$ac_exeext conftest.$ac_ext
33308 LIBS=$ac_check_lib_save_LIBS
33310 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzopen" >&5
33311 echo "${ECHO_T}$ac_cv_lib_z_gzopen" >&6; }
33312 if test $ac_cv_lib_z_gzopen = yes; then
33313 cat >>confdefs.h <<\_ACEOF
33314 #define BX_HAVE_ZLIB 1
33323 { echo "$as_me:$LINENO: checking for compressed hard disk image support" >&5
33324 echo $ECHO_N "checking for compressed hard disk image support... $ECHO_C" >&6; }
33325 # Check whether --enable-compressed-hd was given.
33326 if test "${enable_compressed_hd+set}" = set; then
33327 enableval=$enable_compressed_hd; if test "$enableval" = yes; then
33328 { echo "$as_me:$LINENO: result: yes" >&5
33329 echo "${ECHO_T}yes" >&6; }
33330 cat >>confdefs.h <<\_ACEOF
33331 #define BX_COMPRESSED_HD_SUPPORT 1
33336 { echo "$as_me:$LINENO: result: no" >&5
33337 echo "${ECHO_T}no" >&6; }
33338 cat >>confdefs.h <<\_ACEOF
33339 #define BX_COMPRESSED_HD_SUPPORT 0
33345 { echo "$as_me:$LINENO: result: no" >&5
33346 echo "${ECHO_T}no" >&6; }
33347 cat >>confdefs.h <<\_ACEOF
33348 #define BX_COMPRESSED_HD_SUPPORT 0
33357 { echo "$as_me:$LINENO: checking for NE2000 support" >&5
33358 echo $ECHO_N "checking for NE2000 support... $ECHO_C" >&6; }
33359 # Check whether --enable-ne2000 was given.
33360 if test "${enable_ne2000+set}" = set; then
33361 enableval=$enable_ne2000; if test "$enableval" = yes; then
33362 { echo "$as_me:$LINENO: result: yes" >&5
33363 echo "${ECHO_T}yes" >&6; }
33364 cat >>confdefs.h <<\_ACEOF
33365 #define BX_SUPPORT_NE2K 1
33371 { echo "$as_me:$LINENO: result: no" >&5
33372 echo "${ECHO_T}no" >&6; }
33373 cat >>confdefs.h <<\_ACEOF
33374 #define BX_SUPPORT_NE2K 0
33382 { echo "$as_me:$LINENO: result: no" >&5
33383 echo "${ECHO_T}no" >&6; }
33384 cat >>confdefs.h <<\_ACEOF
33385 #define BX_SUPPORT_NE2K 0
33396 { echo "$as_me:$LINENO: checking for ACPI support" >&5
33397 echo $ECHO_N "checking for ACPI support... $ECHO_C" >&6; }
33398 # Check whether --enable-acpi was given.
33399 if test "${enable_acpi+set}" = set; then
33400 enableval=$enable_acpi; if test "$enableval" = yes; then
33401 { echo "$as_me:$LINENO: result: yes" >&5
33402 echo "${ECHO_T}yes" >&6; }
33403 cat >>confdefs.h <<\_ACEOF
33404 #define BX_SUPPORT_ACPI 1
33408 { echo "$as_me:$LINENO: result: no" >&5
33409 echo "${ECHO_T}no" >&6; }
33410 cat >>confdefs.h <<\_ACEOF
33411 #define BX_SUPPORT_ACPI 0
33417 { echo "$as_me:$LINENO: result: no" >&5
33418 echo "${ECHO_T}no" >&6; }
33419 cat >>confdefs.h <<\_ACEOF
33420 #define BX_SUPPORT_ACPI 0
33429 { echo "$as_me:$LINENO: checking for i440FX PCI support" >&5
33430 echo $ECHO_N "checking for i440FX PCI support... $ECHO_C" >&6; }
33431 # Check whether --enable-pci was given.
33432 if test "${enable_pci+set}" = set; then
33433 enableval=$enable_pci; if test "$enableval" = yes; then
33434 { echo "$as_me:$LINENO: result: yes" >&5
33435 echo "${ECHO_T}yes" >&6; }
33436 cat >>confdefs.h <<\_ACEOF
33437 #define BX_SUPPORT_PCI 1
33441 PCI_OBJ='pci.o pci2isa.o pci_ide.o pcivga.o acpi.o
'
33443 { echo "$as_me:$LINENO: result: no" >&5
33444 echo "${ECHO_T}no" >&6; }
33445 cat >>confdefs.h <<\_ACEOF
33446 #define BX_SUPPORT_PCI 0
33454 { echo "$as_me:$LINENO: result: no" >&5
33455 echo "${ECHO_T}no" >&6; }
33456 cat >>confdefs.h <<\_ACEOF
33457 #define BX_SUPPORT_PCI 0
33469 # PCI host device support
33471 { echo "$as_me:$LINENO: checking for PCI host device mapping support" >&5
33472 echo $ECHO_N "checking for PCI host device mapping support... $ECHO_C" >&6; }
33473 # Check whether --enable-pcidev was given.
33474 if test "${enable_pcidev+set}" = set; then
33475 enableval=$enable_pcidev;
33476 if test "$enableval" = "yes"; then
33477 { echo "$as_me:$LINENO: result: yes" >&5
33478 echo "${ECHO_T}yes" >&6; }
33479 if test "$pci" != "1"; then
33480 { { echo "$as_me:$LINENO: error: PCI host device mapping requires PCI support" >&5
33481 echo "$as_me: error: PCI host device mapping requires PCI support" >&2;}
33482 { (exit 1); exit 1; }; }
33486 { echo "$as_me:$LINENO: Linux detected as host for PCI host device mapping" >&5
33487 echo "$as_me: Linux detected as host for PCI host device mapping" >&6;}
33488 linux_version=`uname -r`
33489 case "$linux_version" in
33491 PCIDEV_MODULE_MAKE_ALL="all-kernel24"
33492 KERNEL_MODULE_SUFFIX="o"
33495 PCIDEV_MODULE_MAKE_ALL="all-kernel26"
33496 KERNEL_MODULE_SUFFIX="ko"
33499 { { echo "$as_me:$LINENO: error: Linux kernel 2.4 or 2.6 is required" >&5
33500 echo "$as_me: error: Linux kernel 2.4 or 2.6 is required" >&2;}
33501 { (exit 1); exit 1; }; }
33504 KERNELDIR="/lib/modules/$linux_version/build"
33518 { { echo "$as_me:$LINENO: error: PCI host device mapping requires Linux as host" >&5
33519 echo "$as_me: error: PCI host device mapping requires Linux as host" >&2;}
33520 { (exit 1); exit 1; }; }
33523 cat >>confdefs.h <<\_ACEOF
33524 #define BX_SUPPORT_PCIDEV 1
33527 PCI_OBJ="$PCI_OBJ pcidev.o"
33529 { echo "$as_me:$LINENO: result: no" >&5
33530 echo "${ECHO_T}no" >&6; }
33531 cat >>confdefs.h <<\_ACEOF
33532 #define BX_SUPPORT_PCIDEV 0
33539 { echo "$as_me:$LINENO: result: no" >&5
33540 echo "${ECHO_T}no" >&6; }
33541 cat >>confdefs.h <<\_ACEOF
33542 #define BX_SUPPORT_PCIDEV 0
33552 { echo "$as_me:$LINENO: checking for limited USB support" >&5
33553 echo $ECHO_N "checking for limited USB support... $ECHO_C" >&6; }
33554 # Check whether --enable-usb was given.
33555 if test "${enable_usb+set}" = set; then
33556 enableval=$enable_usb; if test "$enableval" = yes; then
33557 { echo "$as_me:$LINENO: result: yes" >&5
33558 echo "${ECHO_T}yes" >&6; }
33559 cat >>confdefs.h <<\_ACEOF
33560 #define BX_SUPPORT_PCIUSB 1
33563 PCI_OBJ="$PCI_OBJ pciusb.o"
33564 USBDEV_OBJS="usb_hid.o usb_msd.o"
33565 SCSI_OBJS="scsi_device.o"
33567 { echo "$as_me:$LINENO: result: no" >&5
33568 echo "${ECHO_T}no" >&6; }
33569 cat >>confdefs.h <<\_ACEOF
33570 #define BX_SUPPORT_PCIUSB 0
33576 { echo "$as_me:$LINENO: result: no" >&5
33577 echo "${ECHO_T}no" >&6; }
33578 cat >>confdefs.h <<\_ACEOF
33579 #define BX_SUPPORT_PCIUSB 0
33590 { echo "$as_me:$LINENO: checking for PCI pseudo NIC support" >&5
33591 echo $ECHO_N "checking for PCI pseudo NIC support... $ECHO_C" >&6; }
33592 # Check whether --enable-pnic was given.
33593 if test "${enable_pnic+set}" = set; then
33594 enableval=$enable_pnic; if test "$enableval" = yes; then
33595 { echo "$as_me:$LINENO: result: yes" >&5
33596 echo "${ECHO_T}yes" >&6; }
33597 cat >>confdefs.h <<\_ACEOF
33598 #define BX_SUPPORT_PCIPNIC 1
33601 PCI_OBJ="$PCI_OBJ pcipnic.o"
33604 { echo "$as_me:$LINENO: result: no" >&5
33605 echo "${ECHO_T}no" >&6; }
33606 cat >>confdefs.h <<\_ACEOF
33607 #define BX_SUPPORT_PCIPNIC 0
33613 { echo "$as_me:$LINENO: result: no" >&5
33614 echo "${ECHO_T}no" >&6; }
33615 cat >>confdefs.h <<\_ACEOF
33616 #define BX_SUPPORT_PCIPNIC 0
33625 if test "$networking" = yes; then
33626 NETLOW_OBJS='eth.o eth_null.o eth_vnet.o
'
33627 if test "${ac_cv_header_net_bpf_h+set}" = set; then
33628 { echo "$as_me:$LINENO: checking for net/bpf.h" >&5
33629 echo $ECHO_N "checking for net/bpf.h... $ECHO_C" >&6; }
33630 if test "${ac_cv_header_net_bpf_h+set}" = set; then
33631 echo $ECHO_N "(cached) $ECHO_C" >&6
33633 { echo "$as_me:$LINENO: result: $ac_cv_header_net_bpf_h" >&5
33634 echo "${ECHO_T}$ac_cv_header_net_bpf_h" >&6; }
33636 # Is the header compilable?
33637 { echo "$as_me:$LINENO: checking net/bpf.h usability" >&5
33638 echo $ECHO_N "checking net/bpf.h usability... $ECHO_C" >&6; }
33639 cat >conftest.$ac_ext <<_ACEOF
33642 cat confdefs.h >>conftest.$ac_ext
33643 cat >>conftest.$ac_ext <<_ACEOF
33644 /* end confdefs.h. */
33645 $ac_includes_default
33646 #include <net/bpf.h>
33648 rm -f conftest.$ac_objext
33649 if { (ac_try="$ac_compile"
33650 case "(($ac_try" in
33651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33652 *) ac_try_echo=$ac_try;;
33654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33655 (eval "$ac_compile") 2>conftest.er1
33657 grep -v '^
*+' conftest.er1 >conftest.err
33659 cat conftest.err >&5
33660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33661 (exit $ac_status); } && {
33662 test -z "$ac_c_werror_flag" ||
33663 test ! -s conftest.err
33664 } && test -s conftest.$ac_objext; then
33665 ac_header_compiler=yes
33667 echo "$as_me: failed program was:" >&5
33668 sed 's
/^
/|
/' conftest.$ac_ext >&5
33670 ac_header_compiler=no
33673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33674 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33675 echo "${ECHO_T}$ac_header_compiler" >&6; }
33677 # Is the header present?
33678 { echo "$as_me:$LINENO: checking net/bpf.h presence" >&5
33679 echo $ECHO_N "checking net/bpf.h presence... $ECHO_C" >&6; }
33680 cat >conftest.$ac_ext <<_ACEOF
33683 cat confdefs.h >>conftest.$ac_ext
33684 cat >>conftest.$ac_ext <<_ACEOF
33685 /* end confdefs.h. */
33686 #include <net/bpf.h>
33688 if { (ac_try="$ac_cpp conftest.$ac_ext"
33689 case "(($ac_try" in
33690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33691 *) ac_try_echo=$ac_try;;
33693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33694 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33696 grep -v '^
*+' conftest.er1 >conftest.err
33698 cat conftest.err >&5
33699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33700 (exit $ac_status); } >/dev/null && {
33701 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33702 test ! -s conftest.err
33704 ac_header_preproc=yes
33706 echo "$as_me: failed program was:" >&5
33707 sed 's
/^
/|
/' conftest.$ac_ext >&5
33709 ac_header_preproc=no
33712 rm -f conftest.err conftest.$ac_ext
33713 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33714 echo "${ECHO_T}$ac_header_preproc" >&6; }
33716 # So? What about this header?
33717 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33719 { echo "$as_me:$LINENO: WARNING: net/bpf.h: accepted by the compiler, rejected by the preprocessor!" >&5
33720 echo "$as_me: WARNING: net/bpf.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33721 { echo "$as_me:$LINENO: WARNING: net/bpf.h: proceeding with the compiler's result
" >&5
33722 echo "$as_me: WARNING
: net
/bpf.h
: proceeding with the compiler
's result" >&2;}
33723 ac_header_preproc=yes
33726 { echo "$as_me:$LINENO: WARNING: net/bpf.h: present but cannot be compiled" >&5
33727 echo "$as_me: WARNING: net/bpf.h: present but cannot be compiled" >&2;}
33728 { echo "$as_me:$LINENO: WARNING: net/bpf.h: check for missing prerequisite headers?" >&5
33729 echo "$as_me: WARNING: net/bpf.h: check for missing prerequisite headers?" >&2;}
33730 { echo "$as_me:$LINENO: WARNING: net/bpf.h: see the Autoconf documentation" >&5
33731 echo "$as_me: WARNING: net/bpf.h: see the Autoconf documentation" >&2;}
33732 { echo "$as_me:$LINENO: WARNING: net/bpf.h: section \"Present But Cannot Be Compiled\"" >&5
33733 echo "$as_me: WARNING: net/bpf.h: section \"Present But Cannot Be Compiled\"" >&2;}
33734 { echo "$as_me:$LINENO: WARNING: net/bpf.h: proceeding with the preprocessor's result
" >&5
33735 echo "$as_me: WARNING
: net
/bpf.h
: proceeding with the preprocessor
's result" >&2;}
33736 { echo "$as_me:$LINENO: WARNING: net/bpf.h: in the future, the compiler will take precedence" >&5
33737 echo "$as_me: WARNING: net/bpf.h: in the future, the compiler will take precedence" >&2;}
33741 { echo "$as_me:$LINENO: checking for net/bpf.h" >&5
33742 echo $ECHO_N "checking for net/bpf.h... $ECHO_C" >&6; }
33743 if test "${ac_cv_header_net_bpf_h+set}" = set; then
33744 echo $ECHO_N "(cached) $ECHO_C" >&6
33746 ac_cv_header_net_bpf_h=$ac_header_preproc
33748 { echo "$as_me:$LINENO: result: $ac_cv_header_net_bpf_h" >&5
33749 echo "${ECHO_T}$ac_cv_header_net_bpf_h" >&6; }
33752 if test $ac_cv_header_net_bpf_h = yes; then
33753 NETLOW_OBJS="$NETLOW_OBJS eth_fbsd.o"
33757 if test "${ac_cv_header_netpacket_packet_h+set}" = set; then
33758 { echo "$as_me:$LINENO: checking for netpacket/packet.h" >&5
33759 echo $ECHO_N "checking for netpacket/packet.h... $ECHO_C" >&6; }
33760 if test "${ac_cv_header_netpacket_packet_h+set}" = set; then
33761 echo $ECHO_N "(cached) $ECHO_C" >&6
33763 { echo "$as_me:$LINENO: result: $ac_cv_header_netpacket_packet_h" >&5
33764 echo "${ECHO_T}$ac_cv_header_netpacket_packet_h" >&6; }
33766 # Is the header compilable?
33767 { echo "$as_me:$LINENO: checking netpacket/packet.h usability" >&5
33768 echo $ECHO_N "checking netpacket/packet.h usability... $ECHO_C" >&6; }
33769 cat >conftest.$ac_ext <<_ACEOF
33772 cat confdefs.h >>conftest.$ac_ext
33773 cat >>conftest.$ac_ext <<_ACEOF
33774 /* end confdefs.h. */
33775 $ac_includes_default
33776 #include <netpacket/packet.h>
33778 rm -f conftest.$ac_objext
33779 if { (ac_try="$ac_compile"
33780 case "(($ac_try" in
33781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33782 *) ac_try_echo=$ac_try;;
33784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33785 (eval "$ac_compile") 2>conftest.er1
33787 grep -v '^
*+' conftest.er1 >conftest.err
33789 cat conftest.err >&5
33790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33791 (exit $ac_status); } && {
33792 test -z "$ac_c_werror_flag" ||
33793 test ! -s conftest.err
33794 } && test -s conftest.$ac_objext; then
33795 ac_header_compiler=yes
33797 echo "$as_me: failed program was:" >&5
33798 sed 's
/^
/|
/' conftest.$ac_ext >&5
33800 ac_header_compiler=no
33803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33804 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33805 echo "${ECHO_T}$ac_header_compiler" >&6; }
33807 # Is the header present?
33808 { echo "$as_me:$LINENO: checking netpacket/packet.h presence" >&5
33809 echo $ECHO_N "checking netpacket/packet.h presence... $ECHO_C" >&6; }
33810 cat >conftest.$ac_ext <<_ACEOF
33813 cat confdefs.h >>conftest.$ac_ext
33814 cat >>conftest.$ac_ext <<_ACEOF
33815 /* end confdefs.h. */
33816 #include <netpacket/packet.h>
33818 if { (ac_try="$ac_cpp conftest.$ac_ext"
33819 case "(($ac_try" in
33820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33821 *) ac_try_echo=$ac_try;;
33823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33824 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33826 grep -v '^
*+' conftest.er1 >conftest.err
33828 cat conftest.err >&5
33829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33830 (exit $ac_status); } >/dev/null && {
33831 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33832 test ! -s conftest.err
33834 ac_header_preproc=yes
33836 echo "$as_me: failed program was:" >&5
33837 sed 's
/^
/|
/' conftest.$ac_ext >&5
33839 ac_header_preproc=no
33842 rm -f conftest.err conftest.$ac_ext
33843 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33844 echo "${ECHO_T}$ac_header_preproc" >&6; }
33846 # So? What about this header?
33847 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33849 { echo "$as_me:$LINENO: WARNING: netpacket/packet.h: accepted by the compiler, rejected by the preprocessor!" >&5
33850 echo "$as_me: WARNING: netpacket/packet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33851 { echo "$as_me:$LINENO: WARNING: netpacket/packet.h: proceeding with the compiler's result
" >&5
33852 echo "$as_me: WARNING
: netpacket
/packet.h
: proceeding with the compiler
's result" >&2;}
33853 ac_header_preproc=yes
33856 { echo "$as_me:$LINENO: WARNING: netpacket/packet.h: present but cannot be compiled" >&5
33857 echo "$as_me: WARNING: netpacket/packet.h: present but cannot be compiled" >&2;}
33858 { echo "$as_me:$LINENO: WARNING: netpacket/packet.h: check for missing prerequisite headers?" >&5
33859 echo "$as_me: WARNING: netpacket/packet.h: check for missing prerequisite headers?" >&2;}
33860 { echo "$as_me:$LINENO: WARNING: netpacket/packet.h: see the Autoconf documentation" >&5
33861 echo "$as_me: WARNING: netpacket/packet.h: see the Autoconf documentation" >&2;}
33862 { echo "$as_me:$LINENO: WARNING: netpacket/packet.h: section \"Present But Cannot Be Compiled\"" >&5
33863 echo "$as_me: WARNING: netpacket/packet.h: section \"Present But Cannot Be Compiled\"" >&2;}
33864 { echo "$as_me:$LINENO: WARNING: netpacket/packet.h: proceeding with the preprocessor's result
" >&5
33865 echo "$as_me: WARNING
: netpacket
/packet.h
: proceeding with the preprocessor
's result" >&2;}
33866 { echo "$as_me:$LINENO: WARNING: netpacket/packet.h: in the future, the compiler will take precedence" >&5
33867 echo "$as_me: WARNING: netpacket/packet.h: in the future, the compiler will take precedence" >&2;}
33871 { echo "$as_me:$LINENO: checking for netpacket/packet.h" >&5
33872 echo $ECHO_N "checking for netpacket/packet.h... $ECHO_C" >&6; }
33873 if test "${ac_cv_header_netpacket_packet_h+set}" = set; then
33874 echo $ECHO_N "(cached) $ECHO_C" >&6
33876 ac_cv_header_netpacket_packet_h=$ac_header_preproc
33878 { echo "$as_me:$LINENO: result: $ac_cv_header_netpacket_packet_h" >&5
33879 echo "${ECHO_T}$ac_cv_header_netpacket_packet_h" >&6; }
33882 if test $ac_cv_header_netpacket_packet_h = yes; then
33883 NETLOW_OBJS="$NETLOW_OBJS eth_linux.o"
33888 *-pc-windows* | *-pc-winnt* | *-pc-cygwin* | *-pc-mingw32*)
33889 NETLOW_OBJS="$NETLOW_OBJS eth_win32.o"
33891 *-macosx* | *-darwin*)
33892 NETLOW_OBJS="$NETLOW_OBJS eth_tuntap.o"
33893 cat >>confdefs.h <<\_ACEOF
33894 #define HAVE_TUNTAP 1
33899 { echo "$as_me:$LINENO: checking for net/if.h" >&5
33900 echo $ECHO_N "checking for net/if.h... $ECHO_C" >&6; }
33901 if test "${ac_cv_header_net_if_h+set}" = set; then
33902 echo $ECHO_N "(cached) $ECHO_C" >&6
33904 cat >conftest.$ac_ext <<_ACEOF
33907 cat confdefs.h >>conftest.$ac_ext
33908 cat >>conftest.$ac_ext <<_ACEOF
33909 /* end confdefs.h. */
33911 #include <sys/types.h>
33912 #include <sys/socket.h>
33915 #include <net/if.h>
33917 rm -f conftest.$ac_objext
33918 if { (ac_try="$ac_compile"
33919 case "(($ac_try" in
33920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33921 *) ac_try_echo=$ac_try;;
33923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33924 (eval "$ac_compile") 2>conftest.er1
33926 grep -v '^
*+' conftest.er1 >conftest.err
33928 cat conftest.err >&5
33929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33930 (exit $ac_status); } && {
33931 test -z "$ac_c_werror_flag" ||
33932 test ! -s conftest.err
33933 } && test -s conftest.$ac_objext; then
33934 ac_cv_header_net_if_h=yes
33936 echo "$as_me: failed program was:" >&5
33937 sed 's
/^
/|
/' conftest.$ac_ext >&5
33939 ac_cv_header_net_if_h=no
33942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33944 { echo "$as_me:$LINENO: result: $ac_cv_header_net_if_h" >&5
33945 echo "${ECHO_T}$ac_cv_header_net_if_h" >&6; }
33946 if test $ac_cv_header_net_if_h = yes; then
33949 cat >>confdefs.h <<\_ACEOF
33950 #define BX_HAVE_NET_IF_H 1
33957 { echo "$as_me:$LINENO: checking for linux/netlink.h" >&5
33958 echo $ECHO_N "checking for linux/netlink.h... $ECHO_C" >&6; }
33959 if test "${ac_cv_header_linux_netlink_h+set}" = set; then
33960 echo $ECHO_N "(cached) $ECHO_C" >&6
33962 cat >conftest.$ac_ext <<_ACEOF
33965 cat confdefs.h >>conftest.$ac_ext
33966 cat >>conftest.$ac_ext <<_ACEOF
33967 /* end confdefs.h. */
33969 #include <asm/types.h>
33970 #include <sys/socket.h>
33973 #include <linux/netlink.h>
33975 rm -f conftest.$ac_objext
33976 if { (ac_try="$ac_compile"
33977 case "(($ac_try" in
33978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33979 *) ac_try_echo=$ac_try;;
33981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33982 (eval "$ac_compile") 2>conftest.er1
33984 grep -v '^
*+' conftest.er1 >conftest.err
33986 cat conftest.err >&5
33987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33988 (exit $ac_status); } && {
33989 test -z "$ac_c_werror_flag" ||
33990 test ! -s conftest.err
33991 } && test -s conftest.$ac_objext; then
33992 ac_cv_header_linux_netlink_h=yes
33994 echo "$as_me: failed program was:" >&5
33995 sed 's
/^
/|
/' conftest.$ac_ext >&5
33997 ac_cv_header_linux_netlink_h=no
34000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34002 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_netlink_h" >&5
34003 echo "${ECHO_T}$ac_cv_header_linux_netlink_h" >&6; }
34004 if test $ac_cv_header_linux_netlink_h = yes; then
34012 if test "$use_ethertap" = yes; then
34013 NETLOW_OBJS="$NETLOW_OBJS eth_tap.o eth_vde.o"
34014 cat >>confdefs.h <<\_ACEOF
34015 #define HAVE_ETHERTAP 1
34018 cat >>confdefs.h <<\_ACEOF
34024 { echo "$as_me:$LINENO: checking for net/if_tun.h" >&5
34025 echo $ECHO_N "checking for net/if_tun.h... $ECHO_C" >&6; }
34026 if test "${ac_cv_header_net_if_tun_h+set}" = set; then
34027 echo $ECHO_N "(cached) $ECHO_C" >&6
34029 cat >conftest.$ac_ext <<_ACEOF
34032 cat confdefs.h >>conftest.$ac_ext
34033 cat >>conftest.$ac_ext <<_ACEOF
34034 /* end confdefs.h. */
34036 #include <sys/types.h>
34037 #include <sys/socket.h>
34038 #include <net/if.h>
34041 #include <net/if_tun.h>
34043 rm -f conftest.$ac_objext
34044 if { (ac_try="$ac_compile"
34045 case "(($ac_try" in
34046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34047 *) ac_try_echo=$ac_try;;
34049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34050 (eval "$ac_compile") 2>conftest.er1
34052 grep -v '^
*+' conftest.er1 >conftest.err
34054 cat conftest.err >&5
34055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34056 (exit $ac_status); } && {
34057 test -z "$ac_c_werror_flag" ||
34058 test ! -s conftest.err
34059 } && test -s conftest.$ac_objext; then
34060 ac_cv_header_net_if_tun_h=yes
34062 echo "$as_me: failed program was:" >&5
34063 sed 's
/^
/|
/' conftest.$ac_ext >&5
34065 ac_cv_header_net_if_tun_h=no
34068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34070 { echo "$as_me:$LINENO: result: $ac_cv_header_net_if_tun_h" >&5
34071 echo "${ECHO_T}$ac_cv_header_net_if_tun_h" >&6; }
34072 if test $ac_cv_header_net_if_tun_h = yes; then
34079 { echo "$as_me:$LINENO: checking for linux/if_tun.h" >&5
34080 echo $ECHO_N "checking for linux/if_tun.h... $ECHO_C" >&6; }
34081 if test "${ac_cv_header_linux_if_tun_h+set}" = set; then
34082 echo $ECHO_N "(cached) $ECHO_C" >&6
34084 cat >conftest.$ac_ext <<_ACEOF
34087 cat confdefs.h >>conftest.$ac_ext
34088 cat >>conftest.$ac_ext <<_ACEOF
34089 /* end confdefs.h. */
34091 #include <asm/types.h>
34092 #include <sys/socket.h>
34095 #include <linux/if_tun.h>
34097 rm -f conftest.$ac_objext
34098 if { (ac_try="$ac_compile"
34099 case "(($ac_try" in
34100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34101 *) ac_try_echo=$ac_try;;
34103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34104 (eval "$ac_compile") 2>conftest.er1
34106 grep -v '^
*+' conftest.er1 >conftest.err
34108 cat conftest.err >&5
34109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34110 (exit $ac_status); } && {
34111 test -z "$ac_c_werror_flag" ||
34112 test ! -s conftest.err
34113 } && test -s conftest.$ac_objext; then
34114 ac_cv_header_linux_if_tun_h=yes
34116 echo "$as_me: failed program was:" >&5
34117 sed 's
/^
/|
/' conftest.$ac_ext >&5
34119 ac_cv_header_linux_if_tun_h=no
34122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34124 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_if_tun_h" >&5
34125 echo "${ECHO_T}$ac_cv_header_linux_if_tun_h" >&6; }
34126 if test $ac_cv_header_linux_if_tun_h = yes; then
34133 if test "$use_tuntap" = yes; then
34134 NETLOW_OBJS="$NETLOW_OBJS eth_tuntap.o"
34135 cat >>confdefs.h <<\_ACEOF
34136 #define HAVE_TUNTAP 1
34143 cat >>confdefs.h <<\_ACEOF
34144 #define BX_NETWORKING 1
34148 cat >>confdefs.h <<\_ACEOF
34149 #define BX_NETWORKING 0
34157 { echo "$as_me:$LINENO: checking for large pages support" >&5
34158 echo $ECHO_N "checking for large pages support... $ECHO_C" >&6; }
34159 # Check whether --enable-large-pages was given.
34160 if test "${enable_large_pages+set}" = set; then
34161 enableval=$enable_large_pages; if test "$enableval" = yes; then
34162 { echo "$as_me:$LINENO: result: yes" >&5
34163 echo "${ECHO_T}yes" >&6; }
34164 cat >>confdefs.h <<\_ACEOF
34165 #define BX_SUPPORT_LARGE_PAGES 1
34168 support_large_pages=1
34170 { echo "$as_me:$LINENO: result: no" >&5
34171 echo "${ECHO_T}no" >&6; }
34172 cat >>confdefs.h <<\_ACEOF
34173 #define BX_SUPPORT_LARGE_PAGES 0
34176 support_large_pages=0
34180 if test "$bx_cpu_level" -gt 4; then
34181 { echo "$as_me:$LINENO: result: yes" >&5
34182 echo "${ECHO_T}yes" >&6; }
34183 cat >>confdefs.h <<\_ACEOF
34184 #define BX_SUPPORT_LARGE_PAGES 1
34187 support_large_pages=1
34189 { echo "$as_me:$LINENO: result: no" >&5
34190 echo "${ECHO_T}no" >&6; }
34191 cat >>confdefs.h <<\_ACEOF
34192 #define BX_SUPPORT_LARGE_PAGES 0
34195 support_large_pages=0
34203 { echo "$as_me:$LINENO: checking for PAE support" >&5
34204 echo $ECHO_N "checking for PAE support... $ECHO_C" >&6; }
34205 # Check whether --enable-pae was given.
34206 if test "${enable_pae+set}" = set; then
34207 enableval=$enable_pae; if test "$enableval" = yes; then
34208 { echo "$as_me:$LINENO: result: yes" >&5
34209 echo "${ECHO_T}yes" >&6; }
34210 cat >>confdefs.h <<\_ACEOF
34211 #define BX_SUPPORT_PAE 1
34216 { echo "$as_me:$LINENO: result: no" >&5
34217 echo "${ECHO_T}no" >&6; }
34218 cat >>confdefs.h <<\_ACEOF
34219 #define BX_SUPPORT_PAE 0
34226 if test "$bx_cpu_level" -gt 5; then
34227 { echo "$as_me:$LINENO: result: yes" >&5
34228 echo "${ECHO_T}yes" >&6; }
34229 cat >>confdefs.h <<\_ACEOF
34230 #define BX_SUPPORT_PAE 1
34235 { echo "$as_me:$LINENO: result: no" >&5
34236 echo "${ECHO_T}no" >&6; }
34237 cat >>confdefs.h <<\_ACEOF
34238 #define BX_SUPPORT_PAE 0
34248 { echo "$as_me:$LINENO: checking for global pages support" >&5
34249 echo $ECHO_N "checking for global pages support... $ECHO_C" >&6; }
34250 # Check whether --enable-global-pages was given.
34251 if test "${enable_global_pages+set}" = set; then
34252 enableval=$enable_global_pages; if test "$enableval" = yes; then
34253 { echo "$as_me:$LINENO: result: yes" >&5
34254 echo "${ECHO_T}yes" >&6; }
34255 cat >>confdefs.h <<\_ACEOF
34256 #define BX_SUPPORT_GLOBAL_PAGES 1
34259 support_global_pages=1
34261 { echo "$as_me:$LINENO: result: no" >&5
34262 echo "${ECHO_T}no" >&6; }
34263 cat >>confdefs.h <<\_ACEOF
34264 #define BX_SUPPORT_GLOBAL_PAGES 0
34267 support_global_pages=0
34271 if test "$bx_cpu_level" -gt 5; then
34272 # enable by default
34273 { echo "$as_me:$LINENO: result: yes" >&5
34274 echo "${ECHO_T}yes" >&6; }
34275 cat >>confdefs.h <<\_ACEOF
34276 #define BX_SUPPORT_GLOBAL_PAGES 1
34279 support_global_pages=1
34281 { echo "$as_me:$LINENO: result: no" >&5
34282 echo "${ECHO_T}no" >&6; }
34283 cat >>confdefs.h <<\_ACEOF
34284 #define BX_SUPPORT_GLOBAL_PAGES 0
34287 support_global_pages=0
34294 if test "$bx_cpu_level" -lt 4 -a "$support_large_pages" = 1; then
34295 { { echo "$as_me:$LINENO: error: for large paging support the CPU level must be >= 4" >&5
34296 echo "$as_me: error: for large paging support the CPU level must be >= 4" >&2;}
34297 { (exit 1); exit 1; }; }
34300 if test "$bx_cpu_level" -lt 5 -a "$support_pae" = 1; then
34301 { { echo "$as_me:$LINENO: error: for PAE support the CPU level must be >= 5" >&5
34302 echo "$as_me: error: for PAE support the CPU level must be >= 5" >&2;}
34303 { (exit 1); exit 1; }; }
34306 if test "$bx_cpu_level" -lt 5 -a "$support_global_pages" = 1; then
34307 { { echo "$as_me:$LINENO: error: for Global Pages support the CPU level must be >= 5" >&5
34308 echo "$as_me: error: for Global Pages support the CPU level must be >= 5" >&2;}
34309 { (exit 1); exit 1; }; }
34312 { echo "$as_me:$LINENO: checking for MTRRs support" >&5
34313 echo $ECHO_N "checking for MTRRs support... $ECHO_C" >&6; }
34314 # Check whether --enable-mtrr was given.
34315 if test "${enable_mtrr+set}" = set; then
34316 enableval=$enable_mtrr; if test "$enableval" = yes; then
34317 { echo "$as_me:$LINENO: result: yes" >&5
34318 echo "${ECHO_T}yes" >&6; }
34319 cat >>confdefs.h <<\_ACEOF
34320 #define BX_SUPPORT_MTRR 1
34324 { echo "$as_me:$LINENO: result: no" >&5
34325 echo "${ECHO_T}no" >&6; }
34326 cat >>confdefs.h <<\_ACEOF
34327 #define BX_SUPPORT_MTRR 0
34333 if test "$bx_cpu_level" -gt 5; then
34334 # enable by default
34335 { echo "$as_me:$LINENO: result: yes" >&5
34336 echo "${ECHO_T}yes" >&6; }
34337 cat >>confdefs.h <<\_ACEOF
34338 #define BX_SUPPORT_MTRR 1
34342 { echo "$as_me:$LINENO: result: no" >&5
34343 echo "${ECHO_T}no" >&6; }
34344 cat >>confdefs.h <<\_ACEOF
34345 #define BX_SUPPORT_MTRR 0
34354 { echo "$as_me:$LINENO: checking for guest to host TLB support" >&5
34355 echo $ECHO_N "checking for guest to host TLB support... $ECHO_C" >&6; }
34356 # Check whether --enable-guest2host-tlb was given.
34357 if test "${enable_guest2host_tlb+set}" = set; then
34358 enableval=$enable_guest2host_tlb; if test "$enableval" = yes; then
34359 { echo "$as_me:$LINENO: result: yes" >&5
34360 echo "${ECHO_T}yes" >&6; }
34361 speedup_guest2host_tlb=1
34363 { echo "$as_me:$LINENO: result: no" >&5
34364 echo "${ECHO_T}no" >&6; }
34365 speedup_guest2host_tlb=0
34369 { echo "$as_me:$LINENO: result: no" >&5
34370 echo "${ECHO_T}no" >&6; }
34371 speedup_guest2host_tlb=0
34377 { echo "$as_me:$LINENO: checking for repeated IO and mem copy speedups" >&5
34378 echo $ECHO_N "checking for repeated IO and mem copy speedups... $ECHO_C" >&6; }
34379 # Check whether --enable-repeat-speedups was given.
34380 if test "${enable_repeat_speedups+set}" = set; then
34381 enableval=$enable_repeat_speedups; if test "$enableval" = yes; then
34382 { echo "$as_me:$LINENO: result: yes" >&5
34383 echo "${ECHO_T}yes" >&6; }
34386 { echo "$as_me:$LINENO: result: no" >&5
34387 echo "${ECHO_T}no" >&6; }
34392 { echo "$as_me:$LINENO: result: no" >&5
34393 echo "${ECHO_T}no" >&6; }
34400 { echo "$as_me:$LINENO: checking for instruction trace cache support" >&5
34401 echo $ECHO_N "checking for instruction trace cache support... $ECHO_C" >&6; }
34402 # Check whether --enable-trace-cache was given.
34403 if test "${enable_trace_cache+set}" = set; then
34404 enableval=$enable_trace_cache; if test "$enableval" = yes; then
34405 { echo "$as_me:$LINENO: result: yes" >&5
34406 echo "${ECHO_T}yes" >&6; }
34407 speedup_TraceCache=1
34409 { echo "$as_me:$LINENO: result: no" >&5
34410 echo "${ECHO_T}no" >&6; }
34411 speedup_TraceCache=0
34415 if test "$speedup_TraceCache " = 1; then
34416 { echo "$as_me:$LINENO: result: yes" >&5
34417 echo "${ECHO_T}yes" >&6; }
34418 speedup_TraceCache=1
34420 { echo "$as_me:$LINENO: result: no" >&5
34421 echo "${ECHO_T}no" >&6; }
34422 speedup_TraceCache=0
34429 { echo "$as_me:$LINENO: checking for instruction cache support" >&5
34430 echo $ECHO_N "checking for instruction cache support... $ECHO_C" >&6; }
34431 # Check whether --enable-icache was given.
34432 if test "${enable_icache+set}" = set; then
34433 enableval=$enable_icache; if test "$enableval" = yes; then
34434 { echo "$as_me:$LINENO: result: yes" >&5
34435 echo "${ECHO_T}yes" >&6; }
34438 { echo "$as_me:$LINENO: result: no" >&5
34439 echo "${ECHO_T}no" >&6; }
34444 { echo "$as_me:$LINENO: result: no" >&5
34445 echo "${ECHO_T}no" >&6; }
34452 { echo "$as_me:$LINENO: checking for gcc fast function calls optimization" >&5
34453 echo $ECHO_N "checking for gcc fast function calls optimization... $ECHO_C" >&6; }
34454 # Check whether --enable-fast-function-calls was given.
34455 if test "${enable_fast_function_calls+set}" = set; then
34456 enableval=$enable_fast_function_calls; if test "$enableval" = yes; then
34457 { echo "$as_me:$LINENO: result: yes" >&5
34458 echo "${ECHO_T}yes" >&6; }
34461 { echo "$as_me:$LINENO: result: no" >&5
34462 echo "${ECHO_T}no" >&6; }
34467 { echo "$as_me:$LINENO: result: no" >&5
34468 echo "${ECHO_T}no" >&6; }
34475 { echo "$as_me:$LINENO: checking for host specific inline assembly accelerations" >&5
34476 echo $ECHO_N "checking for host specific inline assembly accelerations... $ECHO_C" >&6; }
34477 # Check whether --enable-host-specific-asms was given.
34478 if test "${enable_host_specific_asms+set}" = set; then
34479 enableval=$enable_host_specific_asms; if test "$enableval" = yes; then
34480 { echo "$as_me:$LINENO: result: yes" >&5
34481 echo "${ECHO_T}yes" >&6; }
34482 speedup_host_specific_asms=1
34484 { echo "$as_me:$LINENO: result: no" >&5
34485 echo "${ECHO_T}no" >&6; }
34486 speedup_host_specific_asms=0
34490 { echo "$as_me:$LINENO: result: no" >&5
34491 echo "${ECHO_T}no" >&6; }
34492 speedup_host_specific_asms=0
34498 { echo "$as_me:$LINENO: checking whether to ignore bad MSR references" >&5
34499 echo $ECHO_N "checking whether to ignore bad MSR references... $ECHO_C" >&6; }
34500 # Check whether --enable-ignore-bad-msr was given.
34501 if test "${enable_ignore_bad_msr+set}" = set; then
34502 enableval=$enable_ignore_bad_msr; if test "$enableval" = yes; then
34503 { echo "$as_me:$LINENO: result: yes" >&5
34504 echo "${ECHO_T}yes" >&6; }
34505 cat >>confdefs.h <<\_ACEOF
34506 #define BX_IGNORE_BAD_MSR 1
34510 { echo "$as_me:$LINENO: result: no" >&5
34511 echo "${ECHO_T}no" >&6; }
34512 cat >>confdefs.h <<\_ACEOF
34513 #define BX_IGNORE_BAD_MSR 0
34519 { echo "$as_me:$LINENO: result: yes" >&5
34520 echo "${ECHO_T}yes" >&6; }
34521 cat >>confdefs.h <<\_ACEOF
34522 #define BX_IGNORE_BAD_MSR 1
34530 { echo "$as_me:$LINENO: checking for port e9 hack" >&5
34531 echo $ECHO_N "checking for port e9 hack... $ECHO_C" >&6; }
34532 # Check whether --enable-port-e9-hack was given.
34533 if test "${enable_port_e9_hack+set}" = set; then
34534 enableval=$enable_port_e9_hack; if test "$enableval" = yes; then
34535 { echo "$as_me:$LINENO: result: yes" >&5
34536 echo "${ECHO_T}yes" >&6; }
34537 cat >>confdefs.h <<\_ACEOF
34538 #define BX_PORT_E9_HACK 1
34542 { echo "$as_me:$LINENO: result: no" >&5
34543 echo "${ECHO_T}no" >&6; }
34544 cat >>confdefs.h <<\_ACEOF
34545 #define BX_PORT_E9_HACK 0
34551 { echo "$as_me:$LINENO: result: yes" >&5
34552 echo "${ECHO_T}yes" >&6; }
34553 cat >>confdefs.h <<\_ACEOF
34554 #define BX_PORT_E9_HACK 1
34562 { echo "$as_me:$LINENO: checking show IPS" >&5
34563 echo $ECHO_N "checking show IPS... $ECHO_C" >&6; }
34564 # Check whether --enable-show-ips was given.
34565 if test "${enable_show_ips+set}" = set; then
34566 enableval=$enable_show_ips; if test "$enableval" = yes; then
34567 { echo "$as_me:$LINENO: result: yes" >&5
34568 echo "${ECHO_T}yes" >&6; }
34569 cat >>confdefs.h <<\_ACEOF
34570 #define BX_SHOW_IPS 1
34574 { echo "$as_me:$LINENO: result: no" >&5
34575 echo "${ECHO_T}no" >&6; }
34576 cat >>confdefs.h <<\_ACEOF
34577 #define BX_SHOW_IPS 0
34583 { echo "$as_me:$LINENO: result: no" >&5
34584 echo "${ECHO_T}no" >&6; }
34585 cat >>confdefs.h <<\_ACEOF
34586 #define BX_SHOW_IPS 0
34594 { echo "$as_me:$LINENO: checking for use of .cpp as suffix" >&5
34595 echo $ECHO_N "checking for use of .cpp as suffix... $ECHO_C" >&6; }
34596 # Check whether --enable-cpp was given.
34597 if test "${enable_cpp+set}" = set; then
34598 enableval=$enable_cpp; if test "$enableval" = yes; then
34599 { echo "$as_me:$LINENO: result: yes" >&5
34600 echo "${ECHO_T}yes" >&6; }
34601 SUFFIX_LINE='.SUFFIXES
: .cpp
'
34604 { echo "$as_me:$LINENO: result: no" >&5
34605 echo "${ECHO_T}no" >&6; }
34606 SUFFIX_LINE='.SUFFIXES
: .cc
'
34611 { echo "$as_me:$LINENO: result: no" >&5
34612 echo "${ECHO_T}no" >&6; }
34613 SUFFIX_LINE='.SUFFIXES
: .cc
'
34622 if test "$enable_cpp" = yes; then
34623 echo "moving .cc source files to .cpp"
34624 sourcefiles=`find . -name "*.cc" -print`
34625 if test "$sourcefiles" != ""; then
34626 for ccname in $sourcefiles
34628 cppname=`echo $ccname | sed -e "s/\.cc$/.cpp/"`
34629 echo "mv $ccname $cppname"
34630 mv $ccname $cppname
34633 echo "no more .cc source files to rename"
34639 { echo "$as_me:$LINENO: checking for Bochs internal debugger support" >&5
34640 echo $ECHO_N "checking for Bochs internal debugger support... $ECHO_C" >&6; }
34641 # Check whether --enable-debugger was given.
34642 if test "${enable_debugger+set}" = set; then
34643 enableval=$enable_debugger; if test "$enableval" = yes; then
34644 { echo "$as_me:$LINENO: result: yes" >&5
34645 echo "${ECHO_T}yes" >&6; }
34646 cat >>confdefs.h <<\_ACEOF
34647 #define BX_DEBUGGER 1
34650 DEBUGGER_VAR='$
(DEBUGGER_LIB
)'
34653 { echo "$as_me:$LINENO: result: no" >&5
34654 echo "${ECHO_T}no" >&6; }
34655 cat >>confdefs.h <<\_ACEOF
34656 #define BX_DEBUGGER 0
34665 { echo "$as_me:$LINENO: result: no" >&5
34666 echo "${ECHO_T}no" >&6; }
34667 cat >>confdefs.h <<\_ACEOF
34668 #define BX_DEBUGGER 0
34679 { echo "$as_me:$LINENO: checking for disassembler support" >&5
34680 echo $ECHO_N "checking for disassembler support... $ECHO_C" >&6; }
34681 # Check whether --enable-disasm was given.
34682 if test "${enable_disasm+set}" = set; then
34683 enableval=$enable_disasm; if test "$enableval" = yes; then
34684 { echo "$as_me:$LINENO: result: yes" >&5
34685 echo "${ECHO_T}yes" >&6; }
34686 cat >>confdefs.h <<\_ACEOF
34687 #define BX_DISASM 1
34690 DISASM_VAR='$
(DISASM_LIB
)'
34692 { echo "$as_me:$LINENO: result: no" >&5
34693 echo "${ECHO_T}no" >&6; }
34694 if test "$bx_debugger" = 1; then
34695 echo "ERROR: debugger is enabled, so --enable-disasm is required"
34698 cat >>confdefs.h <<\_ACEOF
34699 #define BX_DISASM 0
34706 { echo "$as_me:$LINENO: result: yes" >&5
34707 echo "${ECHO_T}yes" >&6; }
34708 cat >>confdefs.h <<\_ACEOF
34709 #define BX_DISASM 1
34712 DISASM_VAR='$
(DISASM_LIB
)'
34718 { echo "$as_me:$LINENO: checking for ALL optimizations enabled" >&5
34719 echo $ECHO_N "checking for ALL optimizations enabled... $ECHO_C" >&6; }
34720 # Check whether --enable-all-optimizations was given.
34721 if test "${enable_all_optimizations+set}" = set; then
34722 enableval=$enable_all_optimizations; if test "$enableval" = yes; then
34723 { echo "$as_me:$LINENO: result: yes" >&5
34724 echo "${ECHO_T}yes" >&6; }
34727 { echo "$as_me:$LINENO: result: no" >&5
34728 echo "${ECHO_T}no" >&6; }
34734 { echo "$as_me:$LINENO: result: no" >&5
34735 echo "${ECHO_T}no" >&6; }
34743 # Optimizations section. Decide what the status of various optimizations
34744 # should be based on configure choices and other factors.
34747 if test "$speedups_all" = 1; then
34748 # Configure requested to force all options enabled.
34749 speedup_guest2host_tlb=1
34752 speedup_TraceCache=1
34756 if test "$speedup_iCache" = 0 -a "$speedup_TraceCache" = 1; then
34757 { { echo "$as_me:$LINENO: error: iCache is required to compile with trace cache optimization" >&5
34758 echo "$as_me: error: iCache is required to compile with trace cache optimization" >&2;}
34759 { (exit 1); exit 1; }; }
34762 if test "$speedup_guest2host_tlb" = 1; then
34763 cat >>confdefs.h <<\_ACEOF
34764 #define BX_SupportGuest2HostTLB 1
34768 cat >>confdefs.h <<\_ACEOF
34769 #define BX_SupportGuest2HostTLB 0
34774 if test "$speedup_repeat" = 1; then
34775 cat >>confdefs.h <<\_ACEOF
34776 #define BX_SupportRepeatSpeedups 1
34780 cat >>confdefs.h <<\_ACEOF
34781 #define BX_SupportRepeatSpeedups 0
34786 if test "$speedup_iCache" = 1; then
34787 cat >>confdefs.h <<\_ACEOF
34788 #define BX_SUPPORT_ICACHE 1
34792 cat >>confdefs.h <<\_ACEOF
34793 #define BX_SUPPORT_ICACHE 0
34798 if test "$speedup_host_specific_asms" = 1; then
34799 cat >>confdefs.h <<\_ACEOF
34800 #define BX_SupportHostAsms 1
34804 cat >>confdefs.h <<\_ACEOF
34805 #define BX_SupportHostAsms 0
34810 if test "$speedup_fastcall" = 1; then
34811 cat >>confdefs.h <<\_ACEOF
34812 #define BX_FAST_FUNC_CALL 1
34816 cat >>confdefs.h <<\_ACEOF
34817 #define BX_FAST_FUNC_CALL 0
34822 if test "$speedup_TraceCache" = 1; then
34823 cat >>confdefs.h <<\_ACEOF
34824 #define BX_SUPPORT_TRACE_CACHE 1
34828 cat >>confdefs.h <<\_ACEOF
34829 #define BX_SUPPORT_TRACE_CACHE 0
34836 rl_without_curses_ok=no
34837 rl_with_curses_ok=no
34839 { echo "$as_me:$LINENO: checking whether user wants readline" >&5
34840 echo $ECHO_N "checking whether user wants readline... $ECHO_C" >&6; }
34841 # Check whether --enable-readline was given.
34842 if test "${enable_readline+set}" = set; then
34843 enableval=$enable_readline; if test "$enableval" = yes; then
34844 { echo "$as_me:$LINENO: result: yes" >&5
34845 echo "${ECHO_T}yes" >&6; }
34848 { echo "$as_me:$LINENO: result: no" >&5
34849 echo "${ECHO_T}no" >&6; }
34854 { echo "$as_me:$LINENO: result: yes" >&5
34855 echo "${ECHO_T}yes" >&6; }
34863 { echo "$as_me:$LINENO: checking whether to use readline" >&5
34864 echo $ECHO_N "checking whether to use readline... $ECHO_C" >&6; }
34865 if test "$want_readline" = yes; then
34866 if test "$bx_debugger" = 1; then
34868 { echo "$as_me:$LINENO: checking if readline works without -lcurses" >&5
34869 echo $ECHO_N "checking if readline works without -lcurses... $ECHO_C" >&6; }
34871 LIBS="$LIBS -lreadline"
34872 if test "$cross_compiling" = yes; then
34873 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
34874 See \`config.log' for more details.
" >&5
34875 echo "$as_me: error
: cannot run
test program
while cross compiling
34876 See \
`config.log' for more details." >&2;}
34877 { (exit 1); exit 1; }; }
34879 cat >conftest.$ac_ext <<_ACEOF
34882 cat confdefs.h >>conftest.$ac_ext
34883 cat >>conftest.$ac_ext <<_ACEOF
34884 /* end confdefs.h. */
34887 #include <readline/readline.h>
34888 int main() { rl_initialize(); exit(0); }
34891 rm -f conftest$ac_exeext
34892 if { (ac_try="$ac_link"
34893 case "(($ac_try" in
34894 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
34895 *) ac_try_echo
=$ac_try;;
34897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34898 (eval "$ac_link") 2>&5
34900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34901 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
34902 { (case "(($ac_try" in
34903 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
34904 *) ac_try_echo=$ac_try;;
34906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34907 (eval "$ac_try") 2>&5
34909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34910 (exit $ac_status); }; }; then
34911 { echo "$as_me:$LINENO: result: yes" >&5
34912 echo "${ECHO_T}yes" >&6; }
34913 rl_without_curses_ok=yes
34915 echo "$as_me: program exited with status $ac_status" >&5
34916 echo "$as_me: failed program was:" >&5
34917 sed 's/^/| /' conftest.$ac_ext >&5
34919 ( exit $ac_status )
34920 { echo "$as_me:$LINENO: result: no" >&5
34921 echo "${ECHO_T}no" >&6; }
34924 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34928 { echo "$as_me:$LINENO: checking if readline works with -lcurses" >&5
34929 echo $ECHO_N "checking if readline works with -lcurses... $ECHO_C" >&6; }
34930 LIBS="$LIBS -lcurses"
34931 if test "$cross_compiling" = yes; then
34932 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
34933 See \`config.log
' for more details." >&5
34934 echo "$as_me: error: cannot run test program while cross compiling
34935 See \`config.log' for more details.
" >&2;}
34936 { (exit 1); exit 1; }; }
34938 cat >conftest.$ac_ext <<_ACEOF
34941 cat confdefs.h >>conftest.$ac_ext
34942 cat >>conftest.$ac_ext <<_ACEOF
34943 /* end confdefs.h. */
34946 #include <readline/readline.h>
34947 int main() { rl_initialize(); exit(0); }
34950 rm -f conftest$ac_exeext
34951 if { (ac_try="$ac_link"
34952 case "(($ac_try" in
34953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34954 *) ac_try_echo=$ac_try;;
34956 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
34957 (eval "$ac_link") 2>&5
34959 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
34960 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34961 { (case "(($ac_try" in
34962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34963 *) ac_try_echo=$ac_try;;
34965 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
34966 (eval "$ac_try") 2>&5
34968 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
34969 (exit $ac_status); }; }; then
34970 { echo "$as_me:$LINENO: result
: yes" >&5
34971 echo "${ECHO_T}yes" >&6; }
34972 rl_with_curses_ok=yes
34974 echo "$as_me: program exited with status
$ac_status" >&5
34975 echo "$as_me: failed program was
:" >&5
34976 sed 's/^/| /' conftest.$ac_ext >&5
34978 ( exit $ac_status )
34979 { echo "$as_me:$LINENO: result
: no
" >&5
34980 echo "${ECHO_T}no
" >&6; }
34983 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34989 if test "$rl_without_curses_ok" = yes; then
34990 { echo "$as_me:$LINENO: result
: yes" >&5
34991 echo "${ECHO_T}yes" >&6; }
34992 cat >>confdefs.h <<\_ACEOF
34993 #define HAVE_LIBREADLINE 1
34996 READLINE_LIB="-lreadline"
34998 elif test "$rl_with_curses_ok" = yes; then
34999 { echo "$as_me:$LINENO: result
: yes" >&5
35000 echo "${ECHO_T}yes" >&6; }
35001 cat >>confdefs.h <<\_ACEOF
35002 #define HAVE_LIBREADLINE 1
35005 READLINE_LIB="-lreadline -lcurses"
35008 { echo "$as_me:$LINENO: result
: no
" >&5
35009 echo "${ECHO_T}no
" >&6; }
35010 echo WARNING: The readline library was disabled because it was not found.
35013 { echo "$as_me:$LINENO: result
: no
" >&5
35014 echo "${ECHO_T}no
" >&6; }
35017 { echo "$as_me:$LINENO: result
: no
" >&5
35018 echo "${ECHO_T}no
" >&6; }
35022 if test "${ac_cv_header_readline_history_h+set}" = set; then
35023 { echo "$as_me:$LINENO: checking
for readline
/history.h
" >&5
35024 echo $ECHO_N "checking
for readline
/history.h...
$ECHO_C" >&6; }
35025 if test "${ac_cv_header_readline_history_h+set}" = set; then
35026 echo $ECHO_N "(cached
) $ECHO_C" >&6
35028 { echo "$as_me:$LINENO: result
: $ac_cv_header_readline_history_h" >&5
35029 echo "${ECHO_T}$ac_cv_header_readline_history_h" >&6; }
35031 # Is the header compilable?
35032 { echo "$as_me:$LINENO: checking readline
/history.h usability
" >&5
35033 echo $ECHO_N "checking readline
/history.h usability...
$ECHO_C" >&6; }
35034 cat >conftest.$ac_ext <<_ACEOF
35037 cat confdefs.h >>conftest.$ac_ext
35038 cat >>conftest.$ac_ext <<_ACEOF
35039 /* end confdefs.h. */
35040 $ac_includes_default
35041 #include <readline/history.h>
35043 rm -f conftest.$ac_objext
35044 if { (ac_try="$ac_compile"
35045 case "(($ac_try" in
35046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35047 *) ac_try_echo=$ac_try;;
35049 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
35050 (eval "$ac_compile") 2>conftest.er1
35052 grep -v '^ *+' conftest.er1 >conftest.err
35054 cat conftest.err >&5
35055 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
35056 (exit $ac_status); } && {
35057 test -z "$ac_c_werror_flag" ||
35058 test ! -s conftest.err
35059 } && test -s conftest.$ac_objext; then
35060 ac_header_compiler=yes
35062 echo "$as_me: failed program was
:" >&5
35063 sed 's/^/| /' conftest.$ac_ext >&5
35065 ac_header_compiler=no
35068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35069 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
35070 echo "${ECHO_T}$ac_header_compiler" >&6; }
35072 # Is the header present?
35073 { echo "$as_me:$LINENO: checking readline
/history.h presence
" >&5
35074 echo $ECHO_N "checking readline
/history.h presence...
$ECHO_C" >&6; }
35075 cat >conftest.$ac_ext <<_ACEOF
35078 cat confdefs.h >>conftest.$ac_ext
35079 cat >>conftest.$ac_ext <<_ACEOF
35080 /* end confdefs.h. */
35081 #include <readline/history.h>
35083 if { (ac_try="$ac_cpp conftest.
$ac_ext"
35084 case "(($ac_try" in
35085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35086 *) ac_try_echo=$ac_try;;
35088 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
35089 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
35091 grep -v '^ *+' conftest.er1 >conftest.err
35093 cat conftest.err >&5
35094 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
35095 (exit $ac_status); } >/dev/null && {
35096 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
35097 test ! -s conftest.err
35099 ac_header_preproc=yes
35101 echo "$as_me: failed program was
:" >&5
35102 sed 's/^/| /' conftest.$ac_ext >&5
35104 ac_header_preproc=no
35107 rm -f conftest.err conftest.$ac_ext
35108 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
35109 echo "${ECHO_T}$ac_header_preproc" >&6; }
35111 # So? What about this header?
35112 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35114 { echo "$as_me:$LINENO: WARNING
: readline
/history.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
35115 echo "$as_me: WARNING
: readline
/history.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
35116 { echo "$as_me:$LINENO: WARNING
: readline
/history.h
: proceeding with the compiler
's result" >&5
35117 echo "$as_me: WARNING: readline/history.h: proceeding with the compiler's result
" >&2;}
35118 ac_header_preproc=yes
35121 { echo "$as_me:$LINENO: WARNING
: readline
/history.h
: present but cannot be compiled
" >&5
35122 echo "$as_me: WARNING
: readline
/history.h
: present but cannot be compiled
" >&2;}
35123 { echo "$as_me:$LINENO: WARNING
: readline
/history.h
: check
for missing prerequisite headers?
" >&5
35124 echo "$as_me: WARNING
: readline
/history.h
: check
for missing prerequisite headers?
" >&2;}
35125 { echo "$as_me:$LINENO: WARNING
: readline
/history.h
: see the Autoconf documentation
" >&5
35126 echo "$as_me: WARNING
: readline
/history.h
: see the Autoconf documentation
" >&2;}
35127 { echo "$as_me:$LINENO: WARNING
: readline
/history.h
: section
\"Present But Cannot Be Compiled
\"" >&5
35128 echo "$as_me: WARNING
: readline
/history.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
35129 { echo "$as_me:$LINENO: WARNING
: readline
/history.h
: proceeding with the preprocessor
's result" >&5
35130 echo "$as_me: WARNING: readline/history.h: proceeding with the preprocessor's result
" >&2;}
35131 { echo "$as_me:$LINENO: WARNING
: readline
/history.h
: in the future
, the compiler will take precedence
" >&5
35132 echo "$as_me: WARNING
: readline
/history.h
: in the future
, the compiler will take precedence
" >&2;}
35136 { echo "$as_me:$LINENO: checking
for readline
/history.h
" >&5
35137 echo $ECHO_N "checking
for readline
/history.h...
$ECHO_C" >&6; }
35138 if test "${ac_cv_header_readline_history_h+set}" = set; then
35139 echo $ECHO_N "(cached
) $ECHO_C" >&6
35141 ac_cv_header_readline_history_h=$ac_header_preproc
35143 { echo "$as_me:$LINENO: result
: $ac_cv_header_readline_history_h" >&5
35144 echo "${ECHO_T}$ac_cv_header_readline_history_h" >&6; }
35147 if test $ac_cv_header_readline_history_h = yes; then
35148 cat >>confdefs.h <<\_ACEOF
35149 #define HAVE_READLINE_HISTORY_H 1
35157 INSTRUMENT_DIR='instrument/stubs'
35159 { echo "$as_me:$LINENO: checking
for instrumentation support
" >&5
35160 echo $ECHO_N "checking
for instrumentation support...
$ECHO_C" >&6; }
35161 # Check whether --enable-instrumentation was given.
35162 if test "${enable_instrumentation+set}" = set; then
35163 enableval=$enable_instrumentation; if test "$enableval" = yes; then
35164 { echo "$as_me:$LINENO: result
: yes" >&5
35165 echo "${ECHO_T}yes" >&6; }
35166 cat >>confdefs.h <<\_ACEOF
35167 #define BX_INSTRUMENTATION 1
35170 INSTRUMENT_VAR='$(INSTRUMENT_LIB)'
35171 elif test "$enableval" = no; then
35172 { echo "$as_me:$LINENO: result
: no
" >&5
35173 echo "${ECHO_T}no
" >&6; }
35174 cat >>confdefs.h <<\_ACEOF
35175 #define BX_INSTRUMENTATION 0
35180 { echo "$as_me:$LINENO: result
: yes" >&5
35181 echo "${ECHO_T}yes" >&6; }
35182 cat >>confdefs.h <<\_ACEOF
35183 #define BX_INSTRUMENTATION 1
35186 INSTRUMENT_DIR=$enableval
35187 INSTRUMENT_VAR='$(INSTRUMENT_LIB)'
35191 { echo "$as_me:$LINENO: result
: no
" >&5
35192 echo "${ECHO_T}no
" >&6; }
35193 cat >>confdefs.h <<\_ACEOF
35194 #define BX_INSTRUMENTATION 0
35205 if test "$bx_plugins" = 0; then
35208 DEVICE_LINK_OPTS="$DEVICE_LINK_OPTS wsock32.lib
"
35210 *-cygwin* | *-mingw32*)
35211 DEVICE_LINK_OPTS="$DEVICE_LINK_OPTS -lwsock32"
35216 { echo "$as_me:$LINENO: checking
enable logging
" >&5
35217 echo $ECHO_N "checking
enable logging...
$ECHO_C" >&6; }
35218 # Check whether --enable-logging was given.
35219 if test "${enable_logging+set}" = set; then
35220 enableval=$enable_logging; if test "$enableval" = yes; then
35221 { echo "$as_me:$LINENO: result
: yes" >&5
35222 echo "${ECHO_T}yes" >&6; }
35223 cat >>confdefs.h <<\_ACEOF
35224 #define BX_NO_LOGGING 0
35228 { echo "$as_me:$LINENO: result
: no
" >&5
35229 echo "${ECHO_T}no
" >&6; }
35230 cat >>confdefs.h <<\_ACEOF
35231 #define BX_NO_LOGGING 1
35237 { echo "$as_me:$LINENO: result
: yes" >&5
35238 echo "${ECHO_T}yes" >&6; }
35239 cat >>confdefs.h <<\_ACEOF
35240 #define BX_NO_LOGGING 0
35248 { echo "$as_me:$LINENO: checking
enable assert checks
" >&5
35249 echo $ECHO_N "checking
enable assert checks...
$ECHO_C" >&6; }
35250 # Check whether --enable-assert-checks was given.
35251 if test "${enable_assert_checks+set}" = set; then
35252 enableval=$enable_assert_checks; if test "$enableval" = yes; then
35253 { echo "$as_me:$LINENO: result
: yes" >&5
35254 echo "${ECHO_T}yes" >&6; }
35255 cat >>confdefs.h <<\_ACEOF
35256 #define BX_ASSERT_ENABLE 1
35260 { echo "$as_me:$LINENO: result
: no
" >&5
35261 echo "${ECHO_T}no
" >&6; }
35262 cat >>confdefs.h <<\_ACEOF
35263 #define BX_ASSERT_ENABLE 0
35269 if test "$bx_debugger" = 1; then
35270 { echo "$as_me:$LINENO: result
: yes" >&5
35271 echo "${ECHO_T}yes" >&6; }
35272 cat >>confdefs.h <<\_ACEOF
35273 #define BX_ASSERT_ENABLE 1
35277 { echo "$as_me:$LINENO: result
: no
" >&5
35278 echo "${ECHO_T}no
" >&6; }
35279 cat >>confdefs.h <<\_ACEOF
35280 #define BX_ASSERT_ENABLE 0
35289 { echo "$as_me:$LINENO: checking
for raw serial support
" >&5
35290 echo $ECHO_N "checking
for raw serial support...
$ECHO_C" >&6; }
35291 # Check whether --enable-raw-serial was given.
35292 if test "${enable_raw_serial+set}" = set; then
35293 enableval=$enable_raw_serial; if test "$enableval" = yes; then
35294 { echo "$as_me:$LINENO: result
: yes" >&5
35295 echo "${ECHO_T}yes" >&6; }
35296 cat >>confdefs.h <<\_ACEOF
35297 #define USE_RAW_SERIAL 1
35301 { echo "$as_me:$LINENO: result
: no
" >&5
35302 echo "${ECHO_T}no
" >&6; }
35303 cat >>confdefs.h <<\_ACEOF
35304 #define USE_RAW_SERIAL 0
35310 { echo "$as_me:$LINENO: result
: no
" >&5
35311 echo "${ECHO_T}no
" >&6; }
35312 cat >>confdefs.h <<\_ACEOF
35313 #define USE_RAW_SERIAL 0
35321 { echo "$as_me:$LINENO: checking
for VESA BIOS extensions
" >&5
35322 echo $ECHO_N "checking
for VESA BIOS extensions...
$ECHO_C" >&6; }
35323 # Check whether --enable-vbe was given.
35324 if test "${enable_vbe+set}" = set; then
35325 enableval=$enable_vbe; if test "$enableval" = yes; then
35326 { echo "$as_me:$LINENO: result
: yes" >&5
35327 echo "${ECHO_T}yes" >&6; }
35328 cat >>confdefs.h <<\_ACEOF
35329 #define BX_SUPPORT_VBE 1
35332 if test "$pci" = 1; then
35333 cat >>confdefs.h <<\_ACEOF
35334 #define BX_SUPPORT_PCIVGA 1
35339 { echo "$as_me:$LINENO: result
: no
" >&5
35340 echo "${ECHO_T}no
" >&6; }
35341 cat >>confdefs.h <<\_ACEOF
35342 #define BX_SUPPORT_VBE 0
35348 { echo "$as_me:$LINENO: result
: yes" >&5
35349 echo "${ECHO_T}yes" >&6; }
35350 cat >>confdefs.h <<\_ACEOF
35351 #define BX_SUPPORT_VBE 1
35354 if test "$pci" = 1; then
35355 cat >>confdefs.h <<\_ACEOF
35356 #define BX_SUPPORT_PCIVGA 1
35365 { echo "$as_me:$LINENO: checking
for CLGD54XX emulation
" >&5
35366 echo $ECHO_N "checking
for CLGD54XX emulation...
$ECHO_C" >&6; }
35367 # Check whether --enable-clgd54xx was given.
35368 if test "${enable_clgd54xx+set}" = set; then
35369 enableval=$enable_clgd54xx; if test "$enableval" = yes; then
35370 { echo "$as_me:$LINENO: result
: yes" >&5
35371 echo "${ECHO_T}yes" >&6; }
35372 cat >>confdefs.h <<\_ACEOF
35373 #define BX_SUPPORT_CLGD54XX 1
35377 { echo "$as_me:$LINENO: result
: no
" >&5
35378 echo "${ECHO_T}no
" >&6; }
35379 cat >>confdefs.h <<\_ACEOF
35380 #define BX_SUPPORT_CLGD54XX 0
35386 { echo "$as_me:$LINENO: result
: no
" >&5
35387 echo "${ECHO_T}no
" >&6; }
35388 cat >>confdefs.h <<\_ACEOF
35389 #define BX_SUPPORT_CLGD54XX 0
35398 { echo "$as_me:$LINENO: checking
for FPU emulation
" >&5
35399 echo $ECHO_N "checking
for FPU emulation...
$ECHO_C" >&6; }
35401 # Check whether --enable-fpu was given.
35402 if test "${enable_fpu+set}" = set; then
35403 enableval=$enable_fpu; if test "$enableval" = yes; then
35404 { echo "$as_me:$LINENO: result
: yes" >&5
35405 echo "${ECHO_T}yes" >&6; }
35406 cat >>confdefs.h <<\_ACEOF
35407 #define BX_SUPPORT_FPU 1
35410 FPU_VAR='$(FPU_LIB)'
35411 elif test "$enableval" = no; then
35412 { echo "$as_me:$LINENO: result
: no
" >&5
35413 echo "${ECHO_T}no
" >&6; }
35414 cat >>confdefs.h <<\_ACEOF
35415 #define BX_SUPPORT_FPU 0
35421 echo "ERROR
: --enable-fpu does not accept a path
"
35427 { echo "$as_me:$LINENO: result
: yes" >&5
35428 echo "${ECHO_T}yes" >&6; }
35429 cat >>confdefs.h <<\_ACEOF
35430 #define BX_SUPPORT_FPU 1
35433 FPU_VAR='$(FPU_LIB)'
35440 { echo "$as_me:$LINENO: checking
for VME support
" >&5
35441 echo $ECHO_N "checking
for VME support...
$ECHO_C" >&6; }
35442 # Check whether --enable-vme was given.
35443 if test "${enable_vme+set}" = set; then
35444 enableval=$enable_vme; if test "$enableval" = yes; then
35445 { echo "$as_me:$LINENO: result
: yes" >&5
35446 echo "${ECHO_T}yes" >&6; }
35447 cat >>confdefs.h <<\_ACEOF
35448 #define BX_SUPPORT_VME 1
35451 elif test "$enableval" = no; then
35452 { echo "$as_me:$LINENO: result
: no
" >&5
35453 echo "${ECHO_T}no
" >&6; }
35454 cat >>confdefs.h <<\_ACEOF
35455 #define BX_SUPPORT_VME 0
35462 if test "$bx_cpu_level" -ge 5; then
35463 { echo "$as_me:$LINENO: result
: yes" >&5
35464 echo "${ECHO_T}yes" >&6; }
35465 cat >>confdefs.h <<\_ACEOF
35466 #define BX_SUPPORT_VME 1
35470 { echo "$as_me:$LINENO: result
: no
" >&5
35471 echo "${ECHO_T}no
" >&6; }
35472 cat >>confdefs.h <<\_ACEOF
35473 #define BX_SUPPORT_VME 0
35483 { echo "$as_me:$LINENO: checking
for MMX support
" >&5
35484 echo $ECHO_N "checking
for MMX support...
$ECHO_C" >&6; }
35485 # Check whether --enable-mmx was given.
35486 if test "${enable_mmx+set}" = set; then
35487 enableval=$enable_mmx; if test "$enableval" = yes; then
35488 { echo "$as_me:$LINENO: result
: yes" >&5
35489 echo "${ECHO_T}yes" >&6; }
35490 cat >>confdefs.h <<\_ACEOF
35491 #define BX_SUPPORT_MMX 1
35494 elif test "$enableval" = no; then
35495 { echo "$as_me:$LINENO: result
: no
" >&5
35496 echo "${ECHO_T}no
" >&6; }
35497 cat >>confdefs.h <<\_ACEOF
35498 #define BX_SUPPORT_MMX 0
35506 if test "$bx_cpu_level" -ge 5; then
35507 { echo "$as_me:$LINENO: result
: yes" >&5
35508 echo "${ECHO_T}yes" >&6; }
35509 cat >>confdefs.h <<\_ACEOF
35510 #define BX_SUPPORT_MMX 1
35514 { echo "$as_me:$LINENO: result
: no
" >&5
35515 echo "${ECHO_T}no
" >&6; }
35516 cat >>confdefs.h <<\_ACEOF
35517 #define BX_SUPPORT_MMX 0
35526 { echo "$as_me:$LINENO: checking
for 3DNow
! support
" >&5
35527 echo $ECHO_N "checking
for 3DNow
! support...
$ECHO_C" >&6; }
35528 # Check whether --enable-3dnow was given.
35529 if test "${enable_3dnow+set}" = set; then
35530 enableval=$enable_3dnow; if test "$enableval" = yes; then
35531 { echo "$as_me:$LINENO: result
: yes" >&5
35532 echo "${ECHO_T}yes" >&6; }
35533 cat >>confdefs.h <<\_ACEOF
35534 #define BX_SUPPORT_3DNOW 1
35537 elif test "$enableval" = no; then
35538 { echo "$as_me:$LINENO: result
: no
" >&5
35539 echo "${ECHO_T}no
" >&6; }
35540 cat >>confdefs.h <<\_ACEOF
35541 #define BX_SUPPORT_3DNOW 0
35548 { echo "$as_me:$LINENO: result
: no
" >&5
35549 echo "${ECHO_T}no
" >&6; }
35550 cat >>confdefs.h <<\_ACEOF
35551 #define BX_SUPPORT_3DNOW 0
35560 { echo "$as_me:$LINENO: checking
for SSE support
" >&5
35561 echo $ECHO_N "checking
for SSE support...
$ECHO_C" >&6; }
35562 # Check whether --enable-sse was given.
35563 if test "${enable_sse+set}" = set; then
35564 enableval=$enable_sse; case "$enableval" in
35567 { echo "$as_me:$LINENO: result
: no
" >&5
35568 echo "${ECHO_T}no
" >&6; }
35572 { echo "$as_me:$LINENO: result
: SSE1
" >&5
35573 echo "${ECHO_T}SSE1
" >&6; }
35577 { echo "$as_me:$LINENO: result
: SSE2
" >&5
35578 echo "${ECHO_T}SSE2
" >&6; }
35582 { echo "$as_me:$LINENO: result
: SSE3
" >&5
35583 echo "${ECHO_T}SSE3
" >&6; }
35587 { echo "$as_me:$LINENO: result
: SSE4
" >&5
35588 echo "${ECHO_T}SSE4
" >&6; }
35591 echo "ERROR
: --enable-sse=$enableval not understood. Use
--enable-sse=no|
1|
2|
3|
4"
35598 if test "$use_x86_64" = 1; then
35600 { echo "$as_me:$LINENO: result
: SSE2
" >&5
35601 echo "${ECHO_T}SSE2
" >&6; }
35603 { echo "$as_me:$LINENO: result
: no
" >&5
35604 echo "${ECHO_T}no
" >&6; }
35611 if test "$support_sse" -gt 0 -a "$bx_cpu_level" -lt 6; then
35612 { { echo "$as_me:$LINENO: error
: for SSE support the CPU level must be
set to
6" >&5
35613 echo "$as_me: error
: for SSE support the CPU level must be
set to
6" >&2;}
35614 { (exit 1); exit 1; }; }
35617 if test "$support_sse" -lt 2 -a "$use_x86_64" = 1; then
35618 { { echo "$as_me:$LINENO: error
: x86-64 needs SSE2 support
" >&5
35619 echo "$as_me: error
: x86-64 needs SSE2 support
" >&2;}
35620 { (exit 1); exit 1; }; }
35623 if test "$support_sse" = 4; then
35624 cat >>confdefs.h <<\_ACEOF
35625 #define BX_SUPPORT_SSE 4
35628 elif test "$support_sse" = 3; then
35629 cat >>confdefs.h <<\_ACEOF
35630 #define BX_SUPPORT_SSE 3
35633 elif test "$support_sse" = 2; then
35634 cat >>confdefs.h <<\_ACEOF
35635 #define BX_SUPPORT_SSE 2
35638 elif test "$support_sse" = 1; then
35639 cat >>confdefs.h <<\_ACEOF
35640 #define BX_SUPPORT_SSE 1
35644 cat >>confdefs.h <<\_ACEOF
35645 #define BX_SUPPORT_SSE 0
35650 support_sse_extensions=0
35651 { echo "$as_me:$LINENO: checking
for SSE extensions support
" >&5
35652 echo $ECHO_N "checking
for SSE extensions support...
$ECHO_C" >&6; }
35653 # Check whether --enable-sse-extension was given.
35654 if test "${enable_sse_extension+set}" = set; then
35655 enableval=$enable_sse_extension; if test "$enableval" = yes; then
35656 { echo "$as_me:$LINENO: result
: yes" >&5
35657 echo "${ECHO_T}yes" >&6; }
35658 cat >>confdefs.h <<\_ACEOF
35659 #define BX_SUPPORT_SSE_EXTENSION 1
35662 support_sse_extensions=1
35663 elif test "$enableval" = no; then
35664 { echo "$as_me:$LINENO: result
: no
" >&5
35665 echo "${ECHO_T}no
" >&6; }
35666 cat >>confdefs.h <<\_ACEOF
35667 #define BX_SUPPORT_SSE_EXTENSION 0
35674 { echo "$as_me:$LINENO: result
: no
" >&5
35675 echo "${ECHO_T}no
" >&6; }
35676 cat >>confdefs.h <<\_ACEOF
35677 #define BX_SUPPORT_SSE_EXTENSION 0
35685 { echo "$as_me:$LINENO: checking
for DAZ support
" >&5
35686 echo $ECHO_N "checking
for DAZ support...
$ECHO_C" >&6; }
35687 # Check whether --enable-daz was given.
35688 if test "${enable_daz+set}" = set; then
35689 enableval=$enable_daz; if test "$enableval" = yes; then
35690 { echo "$as_me:$LINENO: result
: yes" >&5
35691 echo "${ECHO_T}yes" >&6; }
35692 cat >>confdefs.h <<\_ACEOF
35693 #define BX_SUPPORT_DAZ 1
35696 elif test "$enableval" = no; then
35697 { echo "$as_me:$LINENO: result
: no
" >&5
35698 echo "${ECHO_T}no
" >&6; }
35699 cat >>confdefs.h <<\_ACEOF
35700 #define BX_SUPPORT_DAZ 0
35707 if test "$support_sse" -ge 2; then
35708 { echo "$as_me:$LINENO: result
: yes" >&5
35709 echo "${ECHO_T}yes" >&6; }
35710 cat >>confdefs.h <<\_ACEOF
35711 #define BX_SUPPORT_DAZ 1
35715 { echo "$as_me:$LINENO: result
: no
" >&5
35716 echo "${ECHO_T}no
" >&6; }
35717 cat >>confdefs.h <<\_ACEOF
35718 #define BX_SUPPORT_DAZ 0
35728 { echo "$as_me:$LINENO: checking
for XSAVE
/XRSTOR support
" >&5
35729 echo $ECHO_N "checking
for XSAVE
/XRSTOR support...
$ECHO_C" >&6; }
35730 # Check whether --enable-xsave was given.
35731 if test "${enable_xsave+set}" = set; then
35732 enableval=$enable_xsave; if test "$enableval" = yes; then
35733 { echo "$as_me:$LINENO: result
: yes" >&5
35734 echo "${ECHO_T}yes" >&6; }
35735 cat >>confdefs.h <<\_ACEOF
35736 #define BX_SUPPORT_XSAVE 1
35740 elif test "$enableval" = no; then
35741 { echo "$as_me:$LINENO: result
: no
" >&5
35742 echo "${ECHO_T}no
" >&6; }
35743 cat >>confdefs.h <<\_ACEOF
35744 #define BX_SUPPORT_XSAVE 0
35751 { echo "$as_me:$LINENO: result
: no
" >&5
35752 echo "${ECHO_T}no
" >&6; }
35753 cat >>confdefs.h <<\_ACEOF
35754 #define BX_SUPPORT_XSAVE 0
35762 if test "$support_sse" -lt 1 -a "$use_xsave" = 1; then
35763 { { echo "$as_me:$LINENO: error
: XSAVE requires SSE support
!" >&5
35764 echo "$as_me: error
: XSAVE requires SSE support
!" >&2;}
35765 { (exit 1); exit 1; }; }
35769 { echo "$as_me:$LINENO: checking
for AES instructions support
" >&5
35770 echo $ECHO_N "checking
for AES instructions support...
$ECHO_C" >&6; }
35771 # Check whether --enable-aes was given.
35772 if test "${enable_aes+set}" = set; then
35773 enableval=$enable_aes; if test "$enableval" = yes; then
35774 { echo "$as_me:$LINENO: result
: yes" >&5
35775 echo "${ECHO_T}yes" >&6; }
35776 cat >>confdefs.h <<\_ACEOF
35777 #define BX_SUPPORT_AES 1
35781 elif test "$enableval" = no; then
35782 { echo "$as_me:$LINENO: result
: no
" >&5
35783 echo "${ECHO_T}no
" >&6; }
35784 cat >>confdefs.h <<\_ACEOF
35785 #define BX_SUPPORT_AES 0
35792 { echo "$as_me:$LINENO: result
: no
" >&5
35793 echo "${ECHO_T}no
" >&6; }
35794 cat >>confdefs.h <<\_ACEOF
35795 #define BX_SUPPORT_AES 0
35803 if test "$support_sse" -lt 1 -a "$use_aes" = 1; then
35804 { { echo "$as_me:$LINENO: error
: AES requires SSE support
!" >&5
35805 echo "$as_me: error
: AES requires SSE support
!" >&2;}
35806 { (exit 1); exit 1; }; }
35809 { echo "$as_me:$LINENO: checking
for alignment check support
" >&5
35810 echo $ECHO_N "checking
for alignment check support...
$ECHO_C" >&6; }
35811 # Check whether --enable-alignment-check was given.
35812 if test "${enable_alignment_check+set}" = set; then
35813 enableval=$enable_alignment_check; if test "$enableval" = yes; then
35814 { echo "$as_me:$LINENO: result
: yes" >&5
35815 echo "${ECHO_T}yes" >&6; }
35816 cat >>confdefs.h <<\_ACEOF
35817 #define BX_SUPPORT_ALIGNMENT_CHECK 1
35820 elif test "$enableval" = no; then
35821 { echo "$as_me:$LINENO: result
: no
" >&5
35822 echo "${ECHO_T}no
" >&6; }
35823 cat >>confdefs.h <<\_ACEOF
35824 #define BX_SUPPORT_ALIGNMENT_CHECK 0
35831 if test "$bx_cpu_level" -gt 3; then
35832 { echo "$as_me:$LINENO: result
: yes" >&5
35833 echo "${ECHO_T}yes" >&6; }
35834 cat >>confdefs.h <<\_ACEOF
35835 #define BX_SUPPORT_ALIGNMENT_CHECK 1
35839 { echo "$as_me:$LINENO: result
: no
" >&5
35840 echo "${ECHO_T}no
" >&6; }
35841 cat >>confdefs.h <<\_ACEOF
35842 #define BX_SUPPORT_ALIGNMENT_CHECK 0
35851 { echo "$as_me:$LINENO: checking
for misaligned SSE support
" >&5
35852 echo $ECHO_N "checking
for misaligned SSE support...
$ECHO_C" >&6; }
35853 # Check whether --enable-misaligned-sse was given.
35854 if test "${enable_misaligned_sse+set}" = set; then
35855 enableval=$enable_misaligned_sse; if test "$enableval" = yes; then
35856 { echo "$as_me:$LINENO: result
: yes" >&5
35857 echo "${ECHO_T}yes" >&6; }
35858 cat >>confdefs.h <<\_ACEOF
35859 #define BX_SUPPORT_MISALIGNED_SSE 1
35862 elif test "$enableval" = no; then
35863 { echo "$as_me:$LINENO: result
: no
" >&5
35864 echo "${ECHO_T}no
" >&6; }
35865 cat >>confdefs.h <<\_ACEOF
35866 #define BX_SUPPORT_MISALIGNED_SSE 0
35873 { echo "$as_me:$LINENO: result
: no
" >&5
35874 echo "${ECHO_T}no
" >&6; }
35875 cat >>confdefs.h <<\_ACEOF
35876 #define BX_SUPPORT_MISALIGNED_SSE 0
35884 { echo "$as_me:$LINENO: checking
for SEP support
" >&5
35885 echo $ECHO_N "checking
for SEP support...
$ECHO_C" >&6; }
35886 # Check whether --enable-sep was given.
35887 if test "${enable_sep+set}" = set; then
35888 enableval=$enable_sep; if test "$enableval" = yes; then
35889 { echo "$as_me:$LINENO: result
: yes" >&5
35890 echo "${ECHO_T}yes" >&6; }
35891 cat >>confdefs.h <<\_ACEOF
35892 #define BX_SUPPORT_SEP 1
35895 elif test "$enableval" = no; then
35896 { echo "$as_me:$LINENO: result
: no
" >&5
35897 echo "${ECHO_T}no
" >&6; }
35898 cat >>confdefs.h <<\_ACEOF
35899 #define BX_SUPPORT_SEP 0
35906 if test "$bx_cpu_level" -ge 6 -a "$support_mmx" = 1; then
35907 { echo "$as_me:$LINENO: result
: yes" >&5
35908 echo "${ECHO_T}yes" >&6; }
35909 cat >>confdefs.h <<\_ACEOF
35910 #define BX_SUPPORT_SEP 1
35914 { echo "$as_me:$LINENO: result
: no
" >&5
35915 echo "${ECHO_T}no
" >&6; }
35916 cat >>confdefs.h <<\_ACEOF
35917 #define BX_SUPPORT_SEP 0
35926 { echo "$as_me:$LINENO: checking
for POPCNT instruction support
" >&5
35927 echo $ECHO_N "checking
for POPCNT instruction support...
$ECHO_C" >&6; }
35928 # Check whether --enable-popcnt was given.
35929 if test "${enable_popcnt+set}" = set; then
35930 enableval=$enable_popcnt; if test "$enableval" = yes; then
35931 { echo "$as_me:$LINENO: result
: yes" >&5
35932 echo "${ECHO_T}yes" >&6; }
35933 cat >>confdefs.h <<\_ACEOF
35934 #define BX_SUPPORT_POPCNT 1
35937 elif test "$enableval" = no; then
35938 { echo "$as_me:$LINENO: result
: no
" >&5
35939 echo "${ECHO_T}no
" >&6; }
35940 cat >>confdefs.h <<\_ACEOF
35941 #define BX_SUPPORT_POPCNT 0
35948 if test "$support_sse" -ge 4 -a "$support_sse_extensions" = 1; then
35949 { echo "$as_me:$LINENO: result
: yes" >&5
35950 echo "${ECHO_T}yes" >&6; }
35951 cat >>confdefs.h <<\_ACEOF
35952 #define BX_SUPPORT_POPCNT 1
35956 { echo "$as_me:$LINENO: result
: no
" >&5
35957 echo "${ECHO_T}no
" >&6; }
35958 cat >>confdefs.h <<\_ACEOF
35959 #define BX_SUPPORT_POPCNT 0
35968 { echo "$as_me:$LINENO: checking
for MOVBE instruction support
" >&5
35969 echo $ECHO_N "checking
for MOVBE instruction support...
$ECHO_C" >&6; }
35970 # Check whether --enable-movbe was given.
35971 if test "${enable_movbe+set}" = set; then
35972 enableval=$enable_movbe; if test "$enableval" = yes; then
35973 { echo "$as_me:$LINENO: result
: yes" >&5
35974 echo "${ECHO_T}yes" >&6; }
35975 cat >>confdefs.h <<\_ACEOF
35976 #define BX_SUPPORT_MOVBE 1
35979 elif test "$enableval" = no; then
35980 { echo "$as_me:$LINENO: result
: no
" >&5
35981 echo "${ECHO_T}no
" >&6; }
35982 cat >>confdefs.h <<\_ACEOF
35983 #define BX_SUPPORT_MOVBE 0
35990 { echo "$as_me:$LINENO: result
: no
" >&5
35991 echo "${ECHO_T}no
" >&6; }
35992 cat >>confdefs.h <<\_ACEOF
35993 #define BX_SUPPORT_MOVBE 0
36001 { echo "$as_me:$LINENO: checking
for MONITOR
/MWAIT instructions support
(experimental
)" >&5
36002 echo $ECHO_N "checking
for MONITOR
/MWAIT instructions support
(experimental
)...
$ECHO_C" >&6; }
36003 # Check whether --enable-monitor_mwait was given.
36004 if test "${enable_monitor_mwait+set}" = set; then
36005 enableval=$enable_monitor_mwait; if test "$enableval" = yes; then
36006 { echo "$as_me:$LINENO: result
: yes" >&5
36007 echo "${ECHO_T}yes" >&6; }
36008 cat >>confdefs.h <<\_ACEOF
36009 #define BX_SUPPORT_MONITOR_MWAIT 1
36012 elif test "$enableval" = no; then
36013 { echo "$as_me:$LINENO: result
: no
" >&5
36014 echo "${ECHO_T}no
" >&6; }
36015 cat >>confdefs.h <<\_ACEOF
36016 #define BX_SUPPORT_MONITOR_MWAIT 0
36023 { echo "$as_me:$LINENO: result
: no
" >&5
36024 echo "${ECHO_T}no
" >&6; }
36025 cat >>confdefs.h <<\_ACEOF
36026 #define BX_SUPPORT_MONITOR_MWAIT 0
36034 { echo "$as_me:$LINENO: checking
for x86 debugger support
" >&5
36035 echo $ECHO_N "checking
for x86 debugger support...
$ECHO_C" >&6; }
36036 # Check whether --enable-x86-debugger was given.
36037 if test "${enable_x86_debugger+set}" = set; then
36038 enableval=$enable_x86_debugger; if test "$enableval" = yes; then
36039 { echo "$as_me:$LINENO: result
: yes" >&5
36040 echo "${ECHO_T}yes" >&6; }
36041 cat >>confdefs.h <<\_ACEOF
36042 #define BX_X86_DEBUGGER 1
36045 elif test "$enableval" = no; then
36046 { echo "$as_me:$LINENO: result
: no
" >&5
36047 echo "${ECHO_T}no
" >&6; }
36048 cat >>confdefs.h <<\_ACEOF
36049 #define BX_X86_DEBUGGER 0
36056 { echo "$as_me:$LINENO: result
: no
" >&5
36057 echo "${ECHO_T}no
" >&6; }
36058 cat >>confdefs.h <<\_ACEOF
36059 #define BX_X86_DEBUGGER 0
36067 if test "${ac_cv_header_IOKit_storage_IOCDMedia_h+set}" = set; then
36068 { echo "$as_me:$LINENO: checking
for IOKit
/storage
/IOCDMedia.h
" >&5
36069 echo $ECHO_N "checking
for IOKit
/storage
/IOCDMedia.h...
$ECHO_C" >&6; }
36070 if test "${ac_cv_header_IOKit_storage_IOCDMedia_h+set}" = set; then
36071 echo $ECHO_N "(cached
) $ECHO_C" >&6
36073 { echo "$as_me:$LINENO: result
: $ac_cv_header_IOKit_storage_IOCDMedia_h" >&5
36074 echo "${ECHO_T}$ac_cv_header_IOKit_storage_IOCDMedia_h" >&6; }
36076 # Is the header compilable?
36077 { echo "$as_me:$LINENO: checking IOKit
/storage
/IOCDMedia.h usability
" >&5
36078 echo $ECHO_N "checking IOKit
/storage
/IOCDMedia.h usability...
$ECHO_C" >&6; }
36079 cat >conftest.$ac_ext <<_ACEOF
36082 cat confdefs.h >>conftest.$ac_ext
36083 cat >>conftest.$ac_ext <<_ACEOF
36084 /* end confdefs.h. */
36085 $ac_includes_default
36086 #include <IOKit/storage/IOCDMedia.h>
36088 rm -f conftest.$ac_objext
36089 if { (ac_try="$ac_compile"
36090 case "(($ac_try" in
36091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36092 *) ac_try_echo=$ac_try;;
36094 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
36095 (eval "$ac_compile") 2>conftest.er1
36097 grep -v '^ *+' conftest.er1 >conftest.err
36099 cat conftest.err >&5
36100 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
36101 (exit $ac_status); } && {
36102 test -z "$ac_c_werror_flag" ||
36103 test ! -s conftest.err
36104 } && test -s conftest.$ac_objext; then
36105 ac_header_compiler=yes
36107 echo "$as_me: failed program was
:" >&5
36108 sed 's/^/| /' conftest.$ac_ext >&5
36110 ac_header_compiler=no
36113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36114 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
36115 echo "${ECHO_T}$ac_header_compiler" >&6; }
36117 # Is the header present?
36118 { echo "$as_me:$LINENO: checking IOKit
/storage
/IOCDMedia.h presence
" >&5
36119 echo $ECHO_N "checking IOKit
/storage
/IOCDMedia.h presence...
$ECHO_C" >&6; }
36120 cat >conftest.$ac_ext <<_ACEOF
36123 cat confdefs.h >>conftest.$ac_ext
36124 cat >>conftest.$ac_ext <<_ACEOF
36125 /* end confdefs.h. */
36126 #include <IOKit/storage/IOCDMedia.h>
36128 if { (ac_try="$ac_cpp conftest.
$ac_ext"
36129 case "(($ac_try" in
36130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36131 *) ac_try_echo=$ac_try;;
36133 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
36134 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
36136 grep -v '^ *+' conftest.er1 >conftest.err
36138 cat conftest.err >&5
36139 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
36140 (exit $ac_status); } >/dev/null && {
36141 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
36142 test ! -s conftest.err
36144 ac_header_preproc=yes
36146 echo "$as_me: failed program was
:" >&5
36147 sed 's/^/| /' conftest.$ac_ext >&5
36149 ac_header_preproc=no
36152 rm -f conftest.err conftest.$ac_ext
36153 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
36154 echo "${ECHO_T}$ac_header_preproc" >&6; }
36156 # So? What about this header?
36157 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36159 { echo "$as_me:$LINENO: WARNING
: IOKit
/storage
/IOCDMedia.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
36160 echo "$as_me: WARNING
: IOKit
/storage
/IOCDMedia.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
36161 { echo "$as_me:$LINENO: WARNING
: IOKit
/storage
/IOCDMedia.h
: proceeding with the compiler
's result" >&5
36162 echo "$as_me: WARNING: IOKit/storage/IOCDMedia.h: proceeding with the compiler's result
" >&2;}
36163 ac_header_preproc=yes
36166 { echo "$as_me:$LINENO: WARNING
: IOKit
/storage
/IOCDMedia.h
: present but cannot be compiled
" >&5
36167 echo "$as_me: WARNING
: IOKit
/storage
/IOCDMedia.h
: present but cannot be compiled
" >&2;}
36168 { echo "$as_me:$LINENO: WARNING
: IOKit
/storage
/IOCDMedia.h
: check
for missing prerequisite headers?
" >&5
36169 echo "$as_me: WARNING
: IOKit
/storage
/IOCDMedia.h
: check
for missing prerequisite headers?
" >&2;}
36170 { echo "$as_me:$LINENO: WARNING
: IOKit
/storage
/IOCDMedia.h
: see the Autoconf documentation
" >&5
36171 echo "$as_me: WARNING
: IOKit
/storage
/IOCDMedia.h
: see the Autoconf documentation
" >&2;}
36172 { echo "$as_me:$LINENO: WARNING
: IOKit
/storage
/IOCDMedia.h
: section
\"Present But Cannot Be Compiled
\"" >&5
36173 echo "$as_me: WARNING
: IOKit
/storage
/IOCDMedia.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
36174 { echo "$as_me:$LINENO: WARNING
: IOKit
/storage
/IOCDMedia.h
: proceeding with the preprocessor
's result" >&5
36175 echo "$as_me: WARNING: IOKit/storage/IOCDMedia.h: proceeding with the preprocessor's result
" >&2;}
36176 { echo "$as_me:$LINENO: WARNING
: IOKit
/storage
/IOCDMedia.h
: in the future
, the compiler will take precedence
" >&5
36177 echo "$as_me: WARNING
: IOKit
/storage
/IOCDMedia.h
: in the future
, the compiler will take precedence
" >&2;}
36181 { echo "$as_me:$LINENO: checking
for IOKit
/storage
/IOCDMedia.h
" >&5
36182 echo $ECHO_N "checking
for IOKit
/storage
/IOCDMedia.h...
$ECHO_C" >&6; }
36183 if test "${ac_cv_header_IOKit_storage_IOCDMedia_h+set}" = set; then
36184 echo $ECHO_N "(cached
) $ECHO_C" >&6
36186 ac_cv_header_IOKit_storage_IOCDMedia_h=$ac_header_preproc
36188 { echo "$as_me:$LINENO: result
: $ac_cv_header_IOKit_storage_IOCDMedia_h" >&5
36189 echo "${ECHO_T}$ac_cv_header_IOKit_storage_IOCDMedia_h" >&6; }
36192 if test $ac_cv_header_IOKit_storage_IOCDMedia_h = yes; then
36193 can_use_osx_cdrom=yes
36199 { echo "$as_me:$LINENO: checking
for CDROM support
" >&5
36200 echo $ECHO_N "checking
for CDROM support...
$ECHO_C" >&6; }
36201 # Check whether --enable-cdrom was given.
36202 if test "${enable_cdrom+set}" = set; then
36203 enableval=$enable_cdrom; if test "$enableval" = no; then
36214 if test "$bx_cdrom" = 1; then
36215 { echo "$as_me:$LINENO: result
: yes" >&5
36216 echo "${ECHO_T}yes" >&6; }
36217 CDROM_OBJS='cdrom.o'
36218 if test "$with_amigaos" = yes; then
36219 # use the amiga cdrom file instead.
36220 CDROM_OBJS="cdrom_amigaos.o
"
36221 elif test "$can_use_osx_cdrom" = yes; then
36223 { echo "$as_me:$LINENO: result
: Using OSX IOKit CD Interface
" >&5
36224 echo "${ECHO_T}Using OSX IOKit CD Interface
" >&6; }
36225 CDROM_OBJS="cdrom.o
"
36226 EXTRA_LINK_OPTS="${EXTRA_LINK_OPTS} -framework IOKit
-framework CoreFoundation
"'$(GUI_LINK_OPTS)'
36230 # use the beos cdrom file instead
36231 CDROM_OBJS="$CDROM_OBJS cdrom_beos.o
"
36233 cat >>confdefs.h <<\_ACEOF
36234 #define BX_SUPPORT_CDROM 1
36238 { echo "$as_me:$LINENO: result
: no
" >&5
36239 echo "${ECHO_T}no
" >&6; }
36241 cat >>confdefs.h <<\_ACEOF
36242 #define BX_SUPPORT_CDROM 0
36251 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
36252 { echo "$as_me:$LINENO: checking
for alsa
/asoundlib.h
" >&5
36253 echo $ECHO_N "checking
for alsa
/asoundlib.h...
$ECHO_C" >&6; }
36254 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
36255 echo $ECHO_N "(cached
) $ECHO_C" >&6
36257 { echo "$as_me:$LINENO: result
: $ac_cv_header_alsa_asoundlib_h" >&5
36258 echo "${ECHO_T}$ac_cv_header_alsa_asoundlib_h" >&6; }
36260 # Is the header compilable?
36261 { echo "$as_me:$LINENO: checking alsa
/asoundlib.h usability
" >&5
36262 echo $ECHO_N "checking alsa
/asoundlib.h usability...
$ECHO_C" >&6; }
36263 cat >conftest.$ac_ext <<_ACEOF
36266 cat confdefs.h >>conftest.$ac_ext
36267 cat >>conftest.$ac_ext <<_ACEOF
36268 /* end confdefs.h. */
36269 $ac_includes_default
36270 #include <alsa/asoundlib.h>
36272 rm -f conftest.$ac_objext
36273 if { (ac_try="$ac_compile"
36274 case "(($ac_try" in
36275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36276 *) ac_try_echo=$ac_try;;
36278 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
36279 (eval "$ac_compile") 2>conftest.er1
36281 grep -v '^ *+' conftest.er1 >conftest.err
36283 cat conftest.err >&5
36284 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
36285 (exit $ac_status); } && {
36286 test -z "$ac_c_werror_flag" ||
36287 test ! -s conftest.err
36288 } && test -s conftest.$ac_objext; then
36289 ac_header_compiler=yes
36291 echo "$as_me: failed program was
:" >&5
36292 sed 's/^/| /' conftest.$ac_ext >&5
36294 ac_header_compiler=no
36297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36298 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
36299 echo "${ECHO_T}$ac_header_compiler" >&6; }
36301 # Is the header present?
36302 { echo "$as_me:$LINENO: checking alsa
/asoundlib.h presence
" >&5
36303 echo $ECHO_N "checking alsa
/asoundlib.h presence...
$ECHO_C" >&6; }
36304 cat >conftest.$ac_ext <<_ACEOF
36307 cat confdefs.h >>conftest.$ac_ext
36308 cat >>conftest.$ac_ext <<_ACEOF
36309 /* end confdefs.h. */
36310 #include <alsa/asoundlib.h>
36312 if { (ac_try="$ac_cpp conftest.
$ac_ext"
36313 case "(($ac_try" in
36314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36315 *) ac_try_echo=$ac_try;;
36317 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
36318 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
36320 grep -v '^ *+' conftest.er1 >conftest.err
36322 cat conftest.err >&5
36323 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
36324 (exit $ac_status); } >/dev/null && {
36325 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
36326 test ! -s conftest.err
36328 ac_header_preproc=yes
36330 echo "$as_me: failed program was
:" >&5
36331 sed 's/^/| /' conftest.$ac_ext >&5
36333 ac_header_preproc=no
36336 rm -f conftest.err conftest.$ac_ext
36337 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
36338 echo "${ECHO_T}$ac_header_preproc" >&6; }
36340 # So? What about this header?
36341 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36343 { echo "$as_me:$LINENO: WARNING
: alsa
/asoundlib.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
36344 echo "$as_me: WARNING
: alsa
/asoundlib.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
36345 { echo "$as_me:$LINENO: WARNING
: alsa
/asoundlib.h
: proceeding with the compiler
's result" >&5
36346 echo "$as_me: WARNING: alsa/asoundlib.h: proceeding with the compiler's result
" >&2;}
36347 ac_header_preproc=yes
36350 { echo "$as_me:$LINENO: WARNING
: alsa
/asoundlib.h
: present but cannot be compiled
" >&5
36351 echo "$as_me: WARNING
: alsa
/asoundlib.h
: present but cannot be compiled
" >&2;}
36352 { echo "$as_me:$LINENO: WARNING
: alsa
/asoundlib.h
: check
for missing prerequisite headers?
" >&5
36353 echo "$as_me: WARNING
: alsa
/asoundlib.h
: check
for missing prerequisite headers?
" >&2;}
36354 { echo "$as_me:$LINENO: WARNING
: alsa
/asoundlib.h
: see the Autoconf documentation
" >&5
36355 echo "$as_me: WARNING
: alsa
/asoundlib.h
: see the Autoconf documentation
" >&2;}
36356 { echo "$as_me:$LINENO: WARNING
: alsa
/asoundlib.h
: section
\"Present But Cannot Be Compiled
\"" >&5
36357 echo "$as_me: WARNING
: alsa
/asoundlib.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
36358 { echo "$as_me:$LINENO: WARNING
: alsa
/asoundlib.h
: proceeding with the preprocessor
's result" >&5
36359 echo "$as_me: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result
" >&2;}
36360 { echo "$as_me:$LINENO: WARNING
: alsa
/asoundlib.h
: in the future
, the compiler will take precedence
" >&5
36361 echo "$as_me: WARNING
: alsa
/asoundlib.h
: in the future
, the compiler will take precedence
" >&2;}
36365 { echo "$as_me:$LINENO: checking
for alsa
/asoundlib.h
" >&5
36366 echo $ECHO_N "checking
for alsa
/asoundlib.h...
$ECHO_C" >&6; }
36367 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
36368 echo $ECHO_N "(cached
) $ECHO_C" >&6
36370 ac_cv_header_alsa_asoundlib_h=$ac_header_preproc
36372 { echo "$as_me:$LINENO: result
: $ac_cv_header_alsa_asoundlib_h" >&5
36373 echo "${ECHO_T}$ac_cv_header_alsa_asoundlib_h" >&6; }
36376 if test $ac_cv_header_alsa_asoundlib_h = yes; then
36382 { echo "$as_me:$LINENO: checking
for Sound Blaster
16 support
" >&5
36383 echo $ECHO_N "checking
for Sound Blaster
16 support...
$ECHO_C" >&6; }
36388 # Check whether --enable-sb16 was given.
36389 if test "${enable_sb16+set}" = set; then
36390 enableval=$enable_sb16; if test "$enableval" = no; then
36391 { echo "$as_me:$LINENO: result
: no
" >&5
36392 echo "${ECHO_T}no
" >&6; }
36393 cat >>confdefs.h <<\_ACEOF
36394 #define BX_SUPPORT_SB16 0
36398 case "$enableval" in
36401 cat >>confdefs.h <<\_ACEOF
36402 #define BX_SOUND_OUTPUT_C bx_sound_output_c
36405 { echo "$as_me:$LINENO: result
: dummy
" >&5
36406 echo "${ECHO_T}dummy
" >&6; }
36409 SOUNDLOW_OBJS='soundlnx.o'
36410 cat >>confdefs.h <<\_ACEOF
36411 #define BX_SOUND_OUTPUT_C bx_sound_linux_c
36414 if test "$bx_have_alsa" = 1; then
36415 cat >>confdefs.h <<\_ACEOF
36416 #define BX_HAVE_ALSASOUND 1
36419 if test "$bx_plugins" = 1; then
36420 SOUND_LINK_OPTS="$SOUND_LINK_OPTS -lasound"
36422 DEVICE_LINK_OPTS="$DEVICE_LINK_OPTS -lasound"
36425 { echo "$as_me:$LINENO: result
: linux
" >&5
36426 echo "${ECHO_T}linux
" >&6; }
36429 SOUNDLOW_OBJS='soundwin.o'
36430 cat >>confdefs.h <<\_ACEOF
36431 #define BX_SOUND_OUTPUT_C bx_sound_windows_c
36434 { echo "$as_me:$LINENO: result
: win
" >&5
36435 echo "${ECHO_T}win
" >&6; }
36438 DEVICE_LINK_OPTS="$DEVICE_LINK_OPTS winmm.lib
"
36441 DEVICE_LINK_OPTS="$DEVICE_LINK_OPTS -lwinmm"
36446 SOUNDLOW_OBJS='soundosx.o'
36447 cat >>confdefs.h <<\_ACEOF
36448 #define BX_SOUND_OUTPUT_C bx_sound_osx_c
36451 { echo "$as_me:$LINENO: result
: osx
" >&5
36452 echo "${ECHO_T}osx
" >&6; }
36453 DEVICE_LINK_OPTS="$DEVICE_LINK_OPTS -framework AudioUnit
-framework AudioToolbox
"
36457 *-linux* | *-freebsd*)
36458 SOUNDLOW_OBJS='soundlnx.o'
36459 cat >>confdefs.h <<\_ACEOF
36460 #define BX_SOUND_OUTPUT_C bx_sound_linux_c
36463 if test "$bx_have_alsa" = 1; then
36464 cat >>confdefs.h <<\_ACEOF
36465 #define BX_HAVE_ALSASOUND 1
36468 if test "$bx_plugins" = 1; then
36469 SOUND_LINK_OPTS="$SOUND_LINK_OPTS -lasound"
36471 DEVICE_LINK_OPTS="$DEVICE_LINK_OPTS -lasound"
36474 { echo "$as_me:$LINENO: result
: linux
" >&5
36475 echo "${ECHO_T}linux
" >&6; }
36478 SOUNDLOW_OBJS='soundwin.o'
36479 cat >>confdefs.h <<\_ACEOF
36480 #define BX_SOUND_OUTPUT_C bx_sound_windows_c
36483 { echo "$as_me:$LINENO: result
: win
" >&5
36484 echo "${ECHO_T}win
" >&6; }
36485 DEVICE_LINK_OPTS="$DEVICE_LINK_OPTS winmm.lib
"
36487 *-cygwin* | *-mingw32*)
36488 SOUNDLOW_OBJS='soundwin.o'
36489 cat >>confdefs.h <<\_ACEOF
36490 #define BX_SOUND_OUTPUT_C bx_sound_windows_c
36493 { echo "$as_me:$LINENO: result
: win
" >&5
36494 echo "${ECHO_T}win
" >&6; }
36495 DEVICE_LINK_OPTS="$DEVICE_LINK_OPTS -lwinmm"
36497 *-macosx* | *-macos*)
36498 SOUNDLOW_OBJS='soundosx.o'
36499 cat >>confdefs.h <<\_ACEOF
36500 #define BX_SOUND_OUTPUT_C bx_sound_osx_c
36503 { echo "$as_me:$LINENO: result
: osx
" >&5
36504 echo "${ECHO_T}osx
" >&6; }
36505 DEVICE_LINK_OPTS="$DEVICE_LINK_OPTS -framework AudioUnit
-framework AudioToolbox
"
36509 cat >>confdefs.h <<\_ACEOF
36510 #define BX_SOUND_OUTPUT_C bx_sound_output_c
36513 { echo "$as_me:$LINENO: result
: dummy
" >&5
36514 echo "${ECHO_T}dummy
" >&6; }
36520 echo \!\!\!Error\!\!\!
36521 echo "You must pass one of dummy
, linux
, win
, freebsd
, osx to
--enable-sb16"
36525 cat >>confdefs.h <<\_ACEOF
36526 #define BX_SUPPORT_SB16 1
36529 GAME_OBJS='gameport.o'
36534 { echo "$as_me:$LINENO: result
: no
" >&5
36535 echo "${ECHO_T}no
" >&6; }
36536 cat >>confdefs.h <<\_ACEOF
36537 #define BX_SUPPORT_SB16 0
36549 { echo "$as_me:$LINENO: checking
for standard PC gameport support
" >&5
36550 echo $ECHO_N "checking
for standard PC gameport support...
$ECHO_C" >&6; }
36551 # Check whether --enable-gameport was given.
36552 if test "${enable_gameport+set}" = set; then
36553 enableval=$enable_gameport; if test "$enableval" = yes; then
36554 { echo "$as_me:$LINENO: result
: yes" >&5
36555 echo "${ECHO_T}yes" >&6; }
36556 cat >>confdefs.h <<\_ACEOF
36557 #define BX_SUPPORT_GAMEPORT 1
36560 if test "$gameport_present" = 0; then
36561 GAME_OBJS='gameport.o'
36563 *-cygwin* | *-mingw32*)
36564 DEVICE_LINK_OPTS="$DEVICE_LINK_OPTS -lwinmm"
36569 { echo "$as_me:$LINENO: result
: no
" >&5
36570 echo "${ECHO_T}no
" >&6; }
36572 cat >>confdefs.h <<\_ACEOF
36573 #define BX_SUPPORT_GAMEPORT 0
36579 if test "$gameport_present" = 1; then
36580 cat >>confdefs.h <<\_ACEOF
36581 #define BX_SUPPORT_GAMEPORT 1
36584 { echo "$as_me:$LINENO: result
: yes" >&5
36585 echo "${ECHO_T}yes" >&6; }
36587 cat >>confdefs.h <<\_ACEOF
36588 #define BX_SUPPORT_GAMEPORT 0
36591 { echo "$as_me:$LINENO: result
: no
" >&5
36592 echo "${ECHO_T}no
" >&6; }
36600 { echo "$as_me:$LINENO: checking
for gdb stub
enable" >&5
36601 echo $ECHO_N "checking
for gdb stub
enable...
$ECHO_C" >&6; }
36602 # Check whether --enable-gdb-stub was given.
36603 if test "${enable_gdb_stub+set}" = set; then
36604 enableval=$enable_gdb_stub; if test "$enableval" = yes; then
36605 { echo "$as_me:$LINENO: result
: yes" >&5
36606 echo "${ECHO_T}yes" >&6; }
36607 cat >>confdefs.h <<\_ACEOF
36608 #define BX_GDBSTUB 1
36611 GDBSTUB_VAR='$(GDBSTUB_OBJS)'
36612 if test "$bx_debugger" = 1; then
36613 { { echo "$as_me:$LINENO: error
: --enable-debugger and
--enable-gdb-stub are mutually exclusive
" >&5
36614 echo "$as_me: error
: --enable-debugger and
--enable-gdb-stub are mutually exclusive
" >&2;}
36615 { (exit 1); exit 1; }; }
36618 { echo "$as_me:$LINENO: result
: no
" >&5
36619 echo "${ECHO_T}no
" >&6; }
36620 cat >>confdefs.h <<\_ACEOF
36621 #define BX_GDBSTUB 0
36628 { echo "$as_me:$LINENO: result
: no
" >&5
36629 echo "${ECHO_T}no
" >&6; }
36630 cat >>confdefs.h <<\_ACEOF
36631 #define BX_GDBSTUB 0
36642 { echo "$as_me:$LINENO: checking
for I
/O Interface to the debugger
" >&5
36643 echo $ECHO_N "checking
for I
/O Interface to the debugger...
$ECHO_C" >&6; }
36645 # Check whether --enable-iodebug was given.
36646 if test "${enable_iodebug+set}" = set; then
36647 enableval=$enable_iodebug; if test "$enableval" = yes; then
36648 { echo "$as_me:$LINENO: result
: yes" >&5
36649 echo "${ECHO_T}yes" >&6; }
36650 cat >>confdefs.h <<\_ACEOF
36651 #define BX_SUPPORT_IODEBUG 1
36654 IODEBUG_OBJS='iodebug.o'
36656 { echo "$as_me:$LINENO: result
: no
" >&5
36657 echo "${ECHO_T}no
" >&6; }
36658 cat >>confdefs.h <<\_ACEOF
36659 #define BX_SUPPORT_IODEBUG 0
36666 if test "" = 1; then
36667 # enable by default if debugger is on
36668 { echo "$as_me:$LINENO: result
: yes" >&5
36669 echo "${ECHO_T}yes" >&6; }
36670 cat >>confdefs.h <<\_ACEOF
36671 #define BX_SUPPORT_IODEBUG 1
36674 IODEBUG_OBJS='iodebug.o'
36676 { echo "$as_me:$LINENO: result
: no
" >&5
36677 echo "${ECHO_T}no
" >&6; }
36686 # Extract the first word of "docbook2html
", so it can be a program name with args.
36687 set dummy docbook2html; ac_word=$2
36688 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
36689 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
36690 if test "${ac_cv_path_DOCBOOK2HTML+set}" = set; then
36691 echo $ECHO_N "(cached
) $ECHO_C" >&6
36693 case $DOCBOOK2HTML in
36695 ac_cv_path_DOCBOOK2HTML="$DOCBOOK2HTML" # Let the user override the test with a path.
36698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36699 for as_dir in $PATH
36702 test -z "$as_dir" && as_dir=.
36703 for ac_exec_ext in '' $ac_executable_extensions; do
36704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
36705 ac_cv_path_DOCBOOK2HTML="$as_dir/$ac_word$ac_exec_ext"
36706 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
36713 test -z "$ac_cv_path_DOCBOOK2HTML" && ac_cv_path_DOCBOOK2HTML="not_found
"
36717 DOCBOOK2HTML=$ac_cv_path_DOCBOOK2HTML
36718 if test -n "$DOCBOOK2HTML"; then
36719 { echo "$as_me:$LINENO: result
: $DOCBOOK2HTML" >&5
36720 echo "${ECHO_T}$DOCBOOK2HTML" >&6; }
36722 { echo "$as_me:$LINENO: result
: no
" >&5
36723 echo "${ECHO_T}no
" >&6; }
36727 { echo "$as_me:$LINENO: checking whether to build docbook documentation
" >&5
36728 echo $ECHO_N "checking whether to build docbook documentation...
$ECHO_C" >&6; }
36730 # Check whether --enable-docbook was given.
36731 if test "${enable_docbook+set}" = set; then
36732 enableval=$enable_docbook;
36733 if test "$enableval" = yes; then build_docbook=1; fi
36737 if test "$DOCBOOK2HTML" != not_found; then build_docbook=1; fi
36743 if test $build_docbook = 1; then
36744 { echo "$as_me:$LINENO: result
: yes" >&5
36745 echo "${ECHO_T}yes" >&6; }
36746 BUILD_DOCBOOK_VAR=build_docbook
36747 INSTALL_DOCBOOK_VAR=install_docbook
36748 if test "$DOCBOOK2HTML" = not_found; then
36749 echo "ERROR
: docbook2html must be installed to build the documentation
"
36753 { echo "$as_me:$LINENO: result
: no
" >&5
36754 echo "${ECHO_T}no
" >&6; }
36760 PRIMARY_TARGET='bochs'
36761 PLUGIN_LIBNAME_TRANSFORMATION='%.o=libbx_%.la'
36763 cat >>confdefs.h <<\_ACEOF
36764 #define BX_PROVIDE_DEVICE_MODELS 1
36767 IODEV_LIB_VAR='iodev/libiodev.a'
36768 cat >>confdefs.h <<\_ACEOF
36769 #define BX_PROVIDE_CPU_MEMORY 1
36772 NONINLINE_VAR='$(NONINLINE_OBJS)'
36784 # Check whether --with-x11 was given.
36785 if test "${with_x11+set}" = set; then
36791 # Check whether --with-beos was given.
36792 if test "${with_beos+set}" = set; then
36793 withval=$with_beos;
36798 # Check whether --with-win32 was given.
36799 if test "${with_win32+set}" = set; then
36800 withval=$with_win32;
36805 # Check whether --with-macos was given.
36806 if test "${with_macos+set}" = set; then
36807 withval=$with_macos;
36812 # Check whether --with-carbon was given.
36813 if test "${with_carbon+set}" = set; then
36814 withval=$with_carbon;
36819 # Check whether --with-nogui was given.
36820 if test "${with_nogui+set}" = set; then
36821 withval=$with_nogui;
36826 # Check whether --with-term was given.
36827 if test "${with_term+set}" = set; then
36828 withval=$with_term;
36833 # Check whether --with-rfb was given.
36834 if test "${with_rfb+set}" = set; then
36840 # Check whether --with-amigaos was given.
36841 if test "${with_amigaos+set}" = set; then
36842 withval=$with_amigaos;
36847 # Check whether --with-sdl was given.
36848 if test "${with_sdl+set}" = set; then
36854 # Check whether --with-svga was given.
36855 if test "${with_svga+set}" = set; then
36856 withval=$with_svga;
36861 # Check whether --with-wx was given.
36862 if test "${with_wx+set}" = set; then
36868 # Check whether --with-all-libs was given.
36869 if test "${with_all_libs+set}" = set; then
36870 withval=$with_all_libs;
36879 MAKELIB="ar rv \$@
"
36881 # first define link variables without libtool
36882 LINK="\$
(CXX
) -o \$@ \$
(CXXFLAGS
) \$
(LDFLAGS
)"
36883 LINK_CONSOLE="\$
(CXX
) -o \$@ \$
(CXXFLAGS_CONSOLE
) \$
(LDFLAGS
)"
36884 # unless NO_LT is set, add libtool to the front of the link command
36885 if test "$NO_LT" != 1; then
36886 LINK="\$
(LIBTOOL
) --mode=link
$LINK"
36887 LINK_CONSOLE="\$
(LIBTOOL
) --mode=link
$LINK_CONSOLE"
36890 COMMAND_SEPARATOR="&& \\"
36891 CD_UP_ONE="echo done"
36892 CD_UP_TWO="echo done"
36893 CD_UP_THREE="echo done"
36895 INSTALL_TARGET=install_unix
36896 INSTALL_LIST_FOR_PLATFORM=
36898 # check for existence of and usable version of wxWidgets. This comes
36899 # early so that it could affect which one gets chosen.
36900 if test x$WX_CONFIG = x; then
36901 # Extract the first word of " wx-config
--version ", so it can be a program name with args.
36902 set dummy wx-config --version ; ac_word=$2
36903 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
36904 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
36905 if test "${ac_cv_prog_WX_CONFIG+set}" = set; then
36906 echo $ECHO_N "(cached
) $ECHO_C" >&6
36908 if test -n "$WX_CONFIG"; then
36909 ac_cv_prog_WX_CONFIG="$WX_CONFIG" # Let the user override the test.
36911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36912 for as_dir in $PATH
36915 test -z "$as_dir" && as_dir=.
36916 for ac_exec_ext in '' $ac_executable_extensions; do
36917 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
36918 ac_cv_prog_WX_CONFIG="wx-config
"
36919 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
36926 test -z "$ac_cv_prog_WX_CONFIG" && ac_cv_prog_WX_CONFIG="not_found
"
36929 WX_CONFIG=$ac_cv_prog_WX_CONFIG
36930 if test -n "$WX_CONFIG"; then
36931 { echo "$as_me:$LINENO: result
: $WX_CONFIG" >&5
36932 echo "${ECHO_T}$WX_CONFIG" >&6; }
36934 { echo "$as_me:$LINENO: result
: no
" >&5
36935 echo "${ECHO_T}no
" >&6; }
36940 { echo "$as_me:$LINENO: checking
for wxWidgets configuration
script" >&5
36941 echo $ECHO_N "checking
for wxWidgets configuration
script...
$ECHO_C" >&6; }
36942 { echo "$as_me:$LINENO: result
: $WX_CONFIG" >&5
36943 echo "${ECHO_T}$WX_CONFIG" >&6; }
36948 { echo "$as_me:$LINENO: checking
for wxWidgets library version
" >&5
36949 echo $ECHO_N "checking
for wxWidgets library version...
$ECHO_C" >&6; }
36950 if test x$WX_CONFIG != xnot_found; then
36951 WX_VERSION=`$WX_CONFIG --version`
36952 WX_BASENAME=`$WX_CONFIG --basename`
36954 # test that version >= 2.3.2. Anybody have a better way to do this? Yuck.
36955 case x$WX_VERSION in
36956 x2.[012]*) ;; # less than version 2.3.x
36957 x2.3.[01]) ;; # less than version 2.3.2
36958 x2.3.[2-4]*) ok_wx_version=1 ;; # 2.3.2 or greater
36959 x2.[4-5]*) ok_wx_version=1 ;; # version 2.4 / 2.5
36960 x2.[6-9]*) # version 2.6 or greater
36963 case x$WX_BASENAME in
36964 xwx_gtk2|xwx_gtk2u) wx_needs_gtk2=1 ;;
36968 x[3-9]*) ok_wx_version=1 ;; # version 3 or greater
36973 { echo "$as_me:$LINENO: result
: $WX_VERSION" >&5
36974 echo "${ECHO_T}$WX_VERSION" >&6; }
36975 if test "$cross_configure" = 0; then
36976 if test "$ok_wx_version" = 1; then
36977 # detected a usable version
36978 if test "$with_all_libs" = yes; then
36982 if test "$with_wx" = yes; then
36983 { echo "$as_me:$LINENO: WARNING
: Bochs
for wxWidgets cannot be compiled here
, disabling it
" >&5
36984 echo "$as_me: WARNING
: Bochs
for wxWidgets cannot be compiled here
, disabling it
" >&2;}
36990 { echo "$as_me:$LINENO: checking
for default gui on this platform
" >&5
36991 echo $ECHO_N "checking
for default gui on this platform...
$ECHO_C" >&6; }
36992 { echo "$as_me:$LINENO: result
: $DEFAULT_GUI" >&5
36993 echo "${ECHO_T}$DEFAULT_GUI" >&6; }
36997 # the $with_* variable tells the gui library to use, but does NOT necessarily
36998 # indicate the platform. Settings that depend on the platform should be
37002 if test "$with_x11" = yes; then
37003 display_libs="$display_libs X11
"
37004 if test "$no_x" = yes; then
37005 echo ERROR: X windows gui was selected, but X windows libraries were not found.
37008 cat >>confdefs.h <<\_ACEOF
37009 #define BX_WITH_X11 1
37012 SPECIFIC_GUI_OBJS="$SPECIFIC_GUI_OBJS \$
(GUI_OBJS_X11
)"
37013 GUI_CFLAGS="$GUI_CFLAGS \$
(X_CFLAGS
)"
37014 GUI_CXXFLAGS="$GUI_CXXFLAGS \$
(X_CFLAGS
)"
37015 GUI_LINK_OPTS="$GUI_LINK_OPTS \$
(GUI_LINK_OPTS_X
)"
37017 { echo "$as_me:$LINENO: checking whether user wants XPM support
" >&5
37018 echo $ECHO_N "checking whether user wants XPM support...
$ECHO_C" >&6; }
37019 # Check whether --enable-xpm was given.
37020 if test "${enable_xpm+set}" = set; then
37021 enableval=$enable_xpm; if test "$enableval" = yes; then
37023 { echo "$as_me:$LINENO: result
: yes" >&5
37024 echo "${ECHO_T}yes" >&6; }
37027 { echo "$as_me:$LINENO: result
: no
" >&5
37028 echo "${ECHO_T}no
" >&6; }
37033 { echo "$as_me:$LINENO: result
: yes" >&5
37034 echo "${ECHO_T}yes" >&6; }
37040 if test $check_xpm = 1; then
37041 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
37042 { echo "$as_me:$LINENO: checking
for X11
/xpm.h
" >&5
37043 echo $ECHO_N "checking
for X11
/xpm.h...
$ECHO_C" >&6; }
37044 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
37045 echo $ECHO_N "(cached
) $ECHO_C" >&6
37047 { echo "$as_me:$LINENO: result
: $ac_cv_header_X11_xpm_h" >&5
37048 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
37050 # Is the header compilable?
37051 { echo "$as_me:$LINENO: checking X11
/xpm.h usability
" >&5
37052 echo $ECHO_N "checking X11
/xpm.h usability...
$ECHO_C" >&6; }
37053 cat >conftest.$ac_ext <<_ACEOF
37056 cat confdefs.h >>conftest.$ac_ext
37057 cat >>conftest.$ac_ext <<_ACEOF
37058 /* end confdefs.h. */
37059 $ac_includes_default
37060 #include <X11/xpm.h>
37062 rm -f conftest.$ac_objext
37063 if { (ac_try="$ac_compile"
37064 case "(($ac_try" in
37065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37066 *) ac_try_echo=$ac_try;;
37068 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
37069 (eval "$ac_compile") 2>conftest.er1
37071 grep -v '^ *+' conftest.er1 >conftest.err
37073 cat conftest.err >&5
37074 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
37075 (exit $ac_status); } && {
37076 test -z "$ac_c_werror_flag" ||
37077 test ! -s conftest.err
37078 } && test -s conftest.$ac_objext; then
37079 ac_header_compiler=yes
37081 echo "$as_me: failed program was
:" >&5
37082 sed 's/^/| /' conftest.$ac_ext >&5
37084 ac_header_compiler=no
37087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37088 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
37089 echo "${ECHO_T}$ac_header_compiler" >&6; }
37091 # Is the header present?
37092 { echo "$as_me:$LINENO: checking X11
/xpm.h presence
" >&5
37093 echo $ECHO_N "checking X11
/xpm.h presence...
$ECHO_C" >&6; }
37094 cat >conftest.$ac_ext <<_ACEOF
37097 cat confdefs.h >>conftest.$ac_ext
37098 cat >>conftest.$ac_ext <<_ACEOF
37099 /* end confdefs.h. */
37100 #include <X11/xpm.h>
37102 if { (ac_try="$ac_cpp conftest.
$ac_ext"
37103 case "(($ac_try" in
37104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37105 *) ac_try_echo=$ac_try;;
37107 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
37108 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
37110 grep -v '^ *+' conftest.er1 >conftest.err
37112 cat conftest.err >&5
37113 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
37114 (exit $ac_status); } >/dev/null && {
37115 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
37116 test ! -s conftest.err
37118 ac_header_preproc=yes
37120 echo "$as_me: failed program was
:" >&5
37121 sed 's/^/| /' conftest.$ac_ext >&5
37123 ac_header_preproc=no
37126 rm -f conftest.err conftest.$ac_ext
37127 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
37128 echo "${ECHO_T}$ac_header_preproc" >&6; }
37130 # So? What about this header?
37131 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37133 { echo "$as_me:$LINENO: WARNING
: X11
/xpm.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
37134 echo "$as_me: WARNING
: X11
/xpm.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
37135 { echo "$as_me:$LINENO: WARNING
: X11
/xpm.h
: proceeding with the compiler
's result" >&5
37136 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result
" >&2;}
37137 ac_header_preproc=yes
37140 { echo "$as_me:$LINENO: WARNING
: X11
/xpm.h
: present but cannot be compiled
" >&5
37141 echo "$as_me: WARNING
: X11
/xpm.h
: present but cannot be compiled
" >&2;}
37142 { echo "$as_me:$LINENO: WARNING
: X11
/xpm.h
: check
for missing prerequisite headers?
" >&5
37143 echo "$as_me: WARNING
: X11
/xpm.h
: check
for missing prerequisite headers?
" >&2;}
37144 { echo "$as_me:$LINENO: WARNING
: X11
/xpm.h
: see the Autoconf documentation
" >&5
37145 echo "$as_me: WARNING
: X11
/xpm.h
: see the Autoconf documentation
" >&2;}
37146 { echo "$as_me:$LINENO: WARNING
: X11
/xpm.h
: section
\"Present But Cannot Be Compiled
\"" >&5
37147 echo "$as_me: WARNING
: X11
/xpm.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
37148 { echo "$as_me:$LINENO: WARNING
: X11
/xpm.h
: proceeding with the preprocessor
's result" >&5
37149 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result
" >&2;}
37150 { echo "$as_me:$LINENO: WARNING
: X11
/xpm.h
: in the future
, the compiler will take precedence
" >&5
37151 echo "$as_me: WARNING
: X11
/xpm.h
: in the future
, the compiler will take precedence
" >&2;}
37155 { echo "$as_me:$LINENO: checking
for X11
/xpm.h
" >&5
37156 echo $ECHO_N "checking
for X11
/xpm.h...
$ECHO_C" >&6; }
37157 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
37158 echo $ECHO_N "(cached
) $ECHO_C" >&6
37160 ac_cv_header_X11_xpm_h=$ac_header_preproc
37162 { echo "$as_me:$LINENO: result
: $ac_cv_header_X11_xpm_h" >&5
37163 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
37166 if test $ac_cv_header_X11_xpm_h = yes; then
37168 cat >>confdefs.h <<\_ACEOF
37169 #define BX_HAVE_XPM_H 1
37181 if test "$with_beos" = yes; then
37182 display_libs="$display_libs beos
"
37183 cat >>confdefs.h <<\_ACEOF
37184 #define BX_WITH_BEOS 1
37187 SPECIFIC_GUI_OBJS="$SPECIFIC_GUI_OBJS \$
(GUI_OBJS_BEOS
)"
37188 GUI_LINK_OPTS="$GUI_LINK_OPTS \$
(GUI_LINK_OPTS_BEOS
)"
37191 if test "$with_sdl" = yes; then
37192 display_libs="$display_libs sdl
"
37193 cat >>confdefs.h <<\_ACEOF
37194 #define BX_WITH_SDL 1
37197 SPECIFIC_GUI_OBJS="$SPECIFIC_GUI_OBJS \$
(GUI_OBJS_SDL
)"
37198 # GUI_*FLAGS are added to the compilation of every bochs file, not just
37199 # the files in gui/*.cc.
37200 SDL_CFLAGS=`sdl-config --cflags`
37201 GUI_CFLAGS="$GUI_CFLAGS $SDL_CFLAGS"
37202 GUI_CXXFLAGS="$GUI_CXXFLAGS $SDL_CFLAGS"
37203 GUI_LINK_OPTS="$GUI_LINK_OPTS \$
(GUI_LINK_OPTS_SDL
)"
37204 if test "$with_win32" != yes -a "$with_wx" != yes; then
37208 EXTRA_BX_OBJS="$EXTRA_BX_OBJS win32res.o
"
37210 *-cygwin* | *-mingw32*)
37211 RC_CMD="windres
-o "
37212 EXTRA_BX_OBJS="$EXTRA_BX_OBJS win32res.o
"
37218 if test "$with_svga" = yes; then
37219 display_libs="$display_libs svga
"
37220 cat >>confdefs.h <<\_ACEOF
37221 #define BX_WITH_SVGA 1
37224 SPECIFIC_GUI_OBJS="$SPECIFIC_GUI_OBJS \$
(GUI_OBJS_SVGA
)"
37225 # GUI_*FLAGS are added to the compilation of every bochs file, not just
37226 # the files in gui/*.cc.
37227 GUI_CFLAGS="$GUI_CFLAGS"
37228 GUI_CXXFLAGS="$GUI_CXXFLAGS"
37229 GUI_LINK_OPTS="$GUI_LINK_OPTS \$
(GUI_LINK_OPTS_SVGA
)"
37232 if test "$with_rfb" = yes; then
37233 display_libs="$display_libs rfb
"
37234 cat >>confdefs.h <<\_ACEOF
37235 #define BX_WITH_RFB 1
37238 SPECIFIC_GUI_OBJS="$SPECIFIC_GUI_OBJS \$
(GUI_OBJS_RFB
)"
37239 GUI_LINK_OPTS="$GUI_LINK_OPTS \$
(GUI_LINK_OPTS_RFB
)"
37242 if test "$with_amigaos" = yes; then
37243 display_libs="$display_libs amigaos
"
37244 cat >>confdefs.h <<\_ACEOF
37245 #define BX_WITH_AMIGAOS 1
37248 SPECIFIC_GUI_OBJS="$SPECIFIC_GUI_OBJS \$
(GUI_OBJS_AMIGAOS
)"
37249 GUI_LINK_OPTS="$GUI_LINK_OPTS \$
(GUI_LINK_OPTS_AMIGAOS
)"
37252 if test "$with_win32" = yes; then
37253 display_libs="$display_libs win32
"
37254 cat >>confdefs.h <<\_ACEOF
37255 #define BX_WITH_WIN32 1
37258 SPECIFIC_GUI_OBJS="$SPECIFIC_GUI_OBJS \$
(GUI_OBJS_WIN32
)"
37261 if test "$with_wx" != yes; then
37263 EXTRA_BX_OBJS="$EXTRA_BX_OBJS win32res.o
"
37265 GUI_LINK_OPTS="$GUI_LINK_OPTS \$
(GUI_LINK_OPTS_WIN32_VCPP
)"
37267 *-cygwin* | *-mingw32*)
37268 if test "$with_wx" != yes; then
37269 RC_CMD="windres
-o "
37270 EXTRA_BX_OBJS="$EXTRA_BX_OBJS win32res.o
"
37272 GUI_LINK_OPTS="$GUI_LINK_OPTS \$
(GUI_LINK_OPTS_WIN32
)"
37274 *) echo Unsupported compile setup: GUI library is win32, but target is neither windows nor cygwin.
37279 if test "$with_macos" = yes; then
37280 display_libs="$display_libs macos
"
37281 cat >>confdefs.h <<\_ACEOF
37282 #define BX_WITH_MACOS 1
37285 SPECIFIC_GUI_OBJS="$SPECIFIC_GUI_OBJS \$
(GUI_OBJS_MACOS
)"
37286 GUI_LINK_OPTS="$GUI_LINK_OPTS \$
(GUI_LINK_OPTS_MACOS
)"
37289 if test "$with_carbon" = yes; then
37290 display_libs="$display_libs carbon
"
37291 cat >>confdefs.h <<\_ACEOF
37292 #define BX_WITH_CARBON 1
37295 SPECIFIC_GUI_OBJS="$SPECIFIC_GUI_OBJS \$
(GUI_OBJS_CARBON
)"
37296 GUI_LINK_OPTS="$GUI_LINK_OPTS \$
(GUI_LINK_OPTS_CARBON
)"
37297 if test "$bx_plugins" = 1; then
37298 PRIMARY_TARGET=bochs.app/.build_plugins # only for carbon application
37300 PRIMARY_TARGET=bochs.app/.build # only for carbon application
37302 INSTALL_TARGET='install_macosx'
37305 if test "$with_term" = yes; then
37306 display_libs="$display_libs term
"
37307 cat >>confdefs.h <<\_ACEOF
37308 #define BX_WITH_TERM 1
37311 SPECIFIC_GUI_OBJS="$SPECIFIC_GUI_OBJS \$
(GUI_OBJS_TERM
)"
37312 GUI_LINK_OPTS="$GUI_LINK_OPTS \$
(GUI_LINK_OPTS_TERM
)"
37316 if test "$with_wx" = yes; then
37317 display_libs="$display_libs wxWidgets
"
37318 if test "$cross_configure" = 1; then
37319 true # do not insist, if configuring for another machine
37321 if test x$ok_wx_version != x1; then
37322 echo ERROR: A usable version of wxWidgets was not found.
37323 echo Upgrade the library or choose another gui.
37327 cat >>confdefs.h <<\_ACEOF
37328 #define BX_WITH_WX 1
37331 SPECIFIC_GUI_OBJS="$SPECIFIC_GUI_OBJS \$
(GUI_OBJS_WX
)"
37332 SPECIFIC_GUI_SUPPORT_OBJS="$SPECIFIC_GUI_SUPPORT_OBJS \$
(GUI_OBJS_WX_SUPPORT
)"
37333 WX_CFLAGS="`$WX_CONFIG --cflags`"
37334 WX_CXXFLAGS="`$WX_CONFIG --cxxflags`"
37335 if test "$wx_multi_lib" = 1; then
37336 GUI_LINK_OPTS_WX="`$WX_CONFIG --libs core,base`"
37338 GUI_LINK_OPTS_WX="`$WX_CONFIG --libs`"
37340 if test "$wx_needs_gtk2" = 1; then
37343 if test "x
$ac_cv_env_PKG_CONFIG_set" != "xset
"; then
37344 if test -n "$ac_tool_prefix"; then
37345 # Extract the first word of "${ac_tool_prefix}pkg-config
", so it can be a program name with args.
37346 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
37347 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
37348 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
37349 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
37350 echo $ECHO_N "(cached
) $ECHO_C" >&6
37352 case $PKG_CONFIG in
37354 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
37357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37358 for as_dir in $PATH
37361 test -z "$as_dir" && as_dir=.
37362 for ac_exec_ext in '' $ac_executable_extensions; do
37363 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
37364 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
37365 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
37375 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
37376 if test -n "$PKG_CONFIG"; then
37377 { echo "$as_me:$LINENO: result
: $PKG_CONFIG" >&5
37378 echo "${ECHO_T}$PKG_CONFIG" >&6; }
37380 { echo "$as_me:$LINENO: result
: no
" >&5
37381 echo "${ECHO_T}no
" >&6; }
37386 if test -z "$ac_cv_path_PKG_CONFIG"; then
37387 ac_pt_PKG_CONFIG=$PKG_CONFIG
37388 # Extract the first word of "pkg-config
", so it can be a program name with args.
37389 set dummy pkg-config; ac_word=$2
37390 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
37391 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
37392 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
37393 echo $ECHO_N "(cached
) $ECHO_C" >&6
37395 case $ac_pt_PKG_CONFIG in
37397 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
37400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37401 for as_dir in $PATH
37404 test -z "$as_dir" && as_dir=.
37405 for ac_exec_ext in '' $ac_executable_extensions; do
37406 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
37407 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
37408 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
37418 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
37419 if test -n "$ac_pt_PKG_CONFIG"; then
37420 { echo "$as_me:$LINENO: result
: $ac_pt_PKG_CONFIG" >&5
37421 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
37423 { echo "$as_me:$LINENO: result
: no
" >&5
37424 echo "${ECHO_T}no
" >&6; }
37427 if test "x
$ac_pt_PKG_CONFIG" = x; then
37430 case $cross_compiling:$ac_tool_warned in
37432 { echo "$as_me:$LINENO: WARNING
: In the future
, Autoconf will not detect cross-tools
37433 whose name does not start with the
host triplet. If you think this
37434 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&5
37435 echo "$as_me: WARNING
: In the future
, Autoconf will not detect cross-tools
37436 whose name does not start with the
host triplet. If you think this
37437 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&2;}
37438 ac_tool_warned=yes ;;
37440 PKG_CONFIG=$ac_pt_PKG_CONFIG
37443 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
37447 if test -n "$PKG_CONFIG"; then
37448 _pkg_min_version=0.9.0
37449 { echo "$as_me:$LINENO: checking pkg-config is
at least version
$_pkg_min_version" >&5
37450 echo $ECHO_N "checking pkg-config is
at least version
$_pkg_min_version...
$ECHO_C" >&6; }
37451 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
37452 { echo "$as_me:$LINENO: result
: yes" >&5
37453 echo "${ECHO_T}yes" >&6; }
37455 { echo "$as_me:$LINENO: result
: no
" >&5
37456 echo "${ECHO_T}no
" >&6; }
37463 { echo "$as_me:$LINENO: checking
for GTK
" >&5
37464 echo $ECHO_N "checking
for GTK...
$ECHO_C" >&6; }
37466 if test -n "$PKG_CONFIG"; then
37467 if test -n "$GTK_CFLAGS"; then
37468 pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
37470 if test -n "$PKG_CONFIG" && \
37471 { (echo "$as_me:$LINENO: \
$PKG_CONFIG --exists --print-errors \"gtk
+-2.0
\"") >&5
37472 ($PKG_CONFIG --exists --print-errors "gtk
+-2.0
") 2>&5
37474 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
37475 (exit $ac_status); }; then
37476 pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk
+-2.0
" 2>/dev/null`
37484 if test -n "$PKG_CONFIG"; then
37485 if test -n "$GTK_LIBS"; then
37486 pkg_cv_GTK_LIBS="$GTK_LIBS"
37488 if test -n "$PKG_CONFIG" && \
37489 { (echo "$as_me:$LINENO: \
$PKG_CONFIG --exists --print-errors \"gtk
+-2.0
\"") >&5
37490 ($PKG_CONFIG --exists --print-errors "gtk
+-2.0
") 2>&5
37492 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
37493 (exit $ac_status); }; then
37494 pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk
+-2.0
" 2>/dev/null`
37505 if test $pkg_failed = yes; then
37507 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
37508 _pkg_short_errors_supported=yes
37510 _pkg_short_errors_supported=no
37512 if test $_pkg_short_errors_supported = yes; then
37513 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gtk
+-2.0
"`
37515 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk
+-2.0
"`
37517 # Put the nasty error message in config.log where it belongs
37518 echo "$GTK_PKG_ERRORS" >&5
37520 { { echo "$as_me:$LINENO: error
: Package requirements
(gtk
+-2.0
) were not met
:
37524 Consider adjusting the PKG_CONFIG_PATH environment variable
if you
37525 installed software
in a non-standard prefix.
37527 Alternatively
, you may
set the environment variables GTK_CFLAGS
37528 and GTK_LIBS to avoid the need to call pkg-config.
37529 See the pkg-config man page
for more details.
37531 echo "$as_me: error
: Package requirements
(gtk
+-2.0
) were not met
:
37535 Consider adjusting the PKG_CONFIG_PATH environment variable
if you
37536 installed software
in a non-standard prefix.
37538 Alternatively
, you may
set the environment variables GTK_CFLAGS
37539 and GTK_LIBS to avoid the need to call pkg-config.
37540 See the pkg-config man page
for more details.
37542 { (exit 1); exit 1; }; }
37543 elif test $pkg_failed = untried; then
37544 { { echo "$as_me:$LINENO: error
: The pkg-config
script could not be found or is too old. Make sure it
37545 is
in your PATH or
set the PKG_CONFIG environment variable to the full
37546 path to pkg-config.
37548 Alternatively
, you may
set the environment variables GTK_CFLAGS
37549 and GTK_LIBS to avoid the need to call pkg-config.
37550 See the pkg-config man page
for more details.
37552 To get pkg-config
, see
<http
://www.freedesktop.org
/software
/pkgconfig
>.
37553 See \
`config.log' for more details." >&5
37554 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
37555 is in your PATH or set the PKG_CONFIG environment variable to the full
37556 path to pkg-config.
37558 Alternatively, you may set the environment variables GTK_CFLAGS
37559 and GTK_LIBS to avoid the need to call pkg-config.
37560 See the pkg-config man page for more details.
37562 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
37563 See \`config.log
' for more details." >&2;}
37564 { (exit 1); exit 1; }; }
37566 GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
37567 GTK_LIBS=$pkg_cv_GTK_LIBS
37568 { echo "$as_me:$LINENO: result: yes" >&5
37569 echo "${ECHO_T}yes" >&6; }
37571 WX_CFLAGS="$WX_CFLAGS $GTK_CFLAGS"
37572 WX_CXXFLAGS="$WX_CXXFLAGS $GTK_CFLAGS"
37576 # if gtk-config exists, then add it to the cflags.
37577 gtkconf=`gtk-config --cflags`
37578 if test $? = 0; then
37579 # gtk-config was found and returned 0, so it must return valid output
37580 WX_CFLAGS="$WX_CFLAGS $gtkconf"
37581 WX_CXXFLAGS="$WX_CXXFLAGS $gtkconf"
37584 # GUI_C*FLAGS are added to the compilation of every bochs file, not just
37585 # the files in gui/*.cc. They are not used when building other things
37587 GUI_CFLAGS="$GUI_CFLAGS $WX_CFLAGS"
37588 GUI_CXXFLAGS="$GUI_CXXFLAGS $WX_CXXFLAGS"
37589 GUI_LINK_OPTS="$GUI_LINK_OPTS \$(GUI_LINK_OPTS_WX)"
37590 # using debugger with readline is failing due to thread/signal handler
37593 *-pc-windows* | *-cygwin* | *-mingw32*)
37594 EXTRA_BX_OBJS="$EXTRA_BX_OBJS wxbochs_resources.o"
37595 GUI_LINK_OPTS_WX="$GUI_LINK_OPTS_WX --subsystem,windows -mwindows"
37600 if test "$with_nogui" = yes; then
37601 display_libs="$display_libs nogui"
37602 cat >>confdefs.h <<\_ACEOF
37603 #define BX_WITH_NOGUI 1
37606 SPECIFIC_GUI_OBJS="$SPECIFIC_GUI_OBJS \$(GUI_OBJS_NOGUI)"
37609 { echo "$as_me:$LINENO: checking for display libraries" >&5
37610 echo $ECHO_N "checking for display libraries... $ECHO_C" >&6; }
37611 { echo "$as_me:$LINENO: result: $display_libs" >&5
37612 echo "${ECHO_T}$display_libs" >&6; }
37614 if test "$display_libs" = ""; then
37615 echo "No display libraries were selected. Use --with-* options to enable"
37616 echo "individual display libraries, or --with-all-libs to detect the ones"
37617 echo "that Bochs supports."
37621 if test "$display_libs" = " wxWidgets"; then
37622 { echo "$as_me:$LINENO: checking for default configuration interface" >&5
37623 echo $ECHO_N "checking for default configuration interface... $ECHO_C" >&6; }
37624 { echo "$as_me:$LINENO: result: wxWidgets" >&5
37625 echo "${ECHO_T}wxWidgets" >&6; }
37626 { echo "$as_me:$LINENO: checking for default display library" >&5
37627 echo $ECHO_N "checking for default display library... $ECHO_C" >&6; }
37628 { echo "$as_me:$LINENO: result: wxWidgets" >&5
37629 echo "${ECHO_T}wxWidgets" >&6; }
37630 cat >>confdefs.h <<\_ACEOF
37631 #define BX_DEFAULT_CONFIG_INTERFACE "wx"
37634 cat >>confdefs.h <<\_ACEOF
37635 #define BX_DEFAULT_DISPLAY_LIBRARY "wx"
37638 cat >>confdefs.h <<\_ACEOF
37639 #define BX_USE_TEXTCONFIG 0
37643 cat >>confdefs.h <<\_ACEOF
37644 #define BX_USE_TEXTCONFIG 1
37649 if test "$bx_plugins" = 1; then
37650 # every item in this list will be compiled as a plugin. Do not include
37651 # support objs; they will be mentioned in plugin-specific makefile rules.
37652 GUI_PLUGIN_OBJS="$GUI_PLUGIN_OBJS $SPECIFIC_GUI_OBJS"
37654 # include support objs
37655 GUI_NON_PLUGIN_OBJS="$GUI_NON_PLUGIN_OBJS $SPECIFIC_GUI_OBJS $SPECIFIC_GUI_SUPPORT_OBJS"
37664 for ac_prog in wget curl fetch
37666 # Extract the first word of "$ac_prog", so it can be a program name with args.
37667 set dummy $ac_prog; ac_word=$2
37668 { echo "$as_me:$LINENO: checking for $ac_word" >&5
37669 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
37670 if test "${ac_cv_prog_WGET+set}" = set; then
37671 echo $ECHO_N "(cached) $ECHO_C" >&6
37673 if test -n "$WGET"; then
37674 ac_cv_prog_WGET="$WGET" # Let the user override the test.
37676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37677 for as_dir in $PATH
37680 test -z "$as_dir" && as_dir=.
37681 for ac_exec_ext in '' $ac_executable_extensions; do
37682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
37683 ac_cv_prog_WGET="$ac_prog"
37684 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37693 WGET=$ac_cv_prog_WGET
37694 if test -n "$WGET"; then
37695 { echo "$as_me:$LINENO: result: $WGET" >&5
37696 echo "${ECHO_T}$WGET" >&6; }
37698 { echo "$as_me:$LINENO: result: no" >&5
37699 echo "${ECHO_T}no" >&6; }
37703 test -n "$WGET" && break
37705 test -n "$WGET" || WGET="not_found"
37707 if test "$WGET" = not_found; then
37708 { echo "$as_me:$LINENO: WARNING: cannot find wget (or equivalent) command" >&5
37709 echo "$as_me: WARNING: cannot find wget (or equivalent) command" >&2;}
37711 # everybody has to re-invent the wheel. differently.
37712 test "${WGET}" = "curl" && WGET="curl -O"
37714 # modify settings based on target platform
37717 cat >>confdefs.h <<\_ACEOF
37718 #define BX_HAVE_STRDUP 0
37723 cat >>confdefs.h <<\_ACEOF
37724 #define BX_HAVE_STRDUP 0
37727 cat >>confdefs.h <<\_ACEOF
37728 #define BX_PLUGINS 0
37731 cat >>confdefs.h <<\_ACEOF
37732 #define BX_HAVE_DLFCN_H 0
37735 cat >>confdefs.h <<\_ACEOF
37736 #define BX_HAVE_SOCKLEN_T 0
37739 cat >>confdefs.h <<\_ACEOF
37740 #define BX_HAVE_SELECT 0
37743 cat >>confdefs.h <<\_ACEOF
37744 #define BX_HAVE_GETTIMEOFDAY 0
37747 cat >>confdefs.h <<\_ACEOF
37748 #define BX_NO_ATTRIBUTES 1
37751 cat >>confdefs.h <<\_ACEOF
37752 #define HAVE_TUNTAP 0
37755 cat >>confdefs.h <<\_ACEOF
37756 #define HAVE_ETHERTAP 0
37759 cat >>confdefs.h <<\_ACEOF
37760 #define BX_HAVE_HASH_MAP 0
37765 INSTALL_TARGET='install_win32
'
37768 #C_OPT="/Zi" # for debugging
37769 C_OPT="/Ox" # optimize for speed
37770 CFLAGS="/nologo /G6 /MT /W3 /GX- /DNDEBUG /DWIN32 /D_WINDOWS $C_OPT"
37778 MAKELIB="lib /nologo /subsystem:console /verbose /out:\$@"
37781 #L_OPT="/debug" # for debugging
37782 L_OPT="" # no debug info
37783 LINK="link $L_OPT /nologo /subsystem:console /incremental:no /out:\$@ "
37786 PRIMARY_TARGET="bochs.exe"
37787 BXIMAGE_LINK_OPTS="user32.lib"
37788 # also compile niclist if networking is on
37789 if test "$networking" = yes; then
37790 PRIMARY_TARGET="$PRIMARY_TARGET niclist.exe"
37792 COMMAND_SEPARATOR=""
37794 CD_UP_TWO="cd ..\.."
37795 CD_UP_THREE="cd ..\..\.."
37796 have_gettimeofday=0 # even though it may exist in build environment
37797 cat >>confdefs.h <<\_ACEOF
37798 #define BX_64BIT_CONSTANTS_USE_LL 0
37801 cat >>confdefs.h <<\_ACEOF
37802 #define inline __inline
37805 cat >>confdefs.h <<\_ACEOF
37806 #define BX_NO_EMPTY_STRUCTS 1
37809 cat >>confdefs.h <<\_ACEOF
37810 #define BX_NO_ATTRIBUTES 1
37813 cat >>confdefs.h <<\_ACEOF
37814 #define BX_HAVE_HASH_MAP 0
37817 cat >>confdefs.h <<\_ACEOF
37818 #define BX_HAVE_HASH_MAP_H 0
37821 cat >>confdefs.h <<\_ACEOF
37822 #define BX_HAVE_STRTOULL 0
37825 cat >>confdefs.h <<\_ACEOF
37826 #define BX_HAVE_STRTOUQ 0
37829 cat >>confdefs.h <<\_ACEOF
37830 #define HAVE_LIBREADLINE 0
37833 cat >>confdefs.h <<\_ACEOF
37834 #define BX_HAVE_GETTIMEOFDAY 0
37837 cat >>confdefs.h <<\_ACEOF
37838 #define BX_HAVE_DLFCN_H 0
37841 cat >>confdefs.h <<\_ACEOF
37842 #define BX_HAVE_MKSTEMP 0
37845 cat >>confdefs.h <<\_ACEOF
37846 #define BX_HAVE_SYS_MMAN_H 0
37849 cat >>confdefs.h <<\_ACEOF
37850 #define BX_HAVE_USLEEP 0
37853 cat >>confdefs.h <<\_ACEOF
37854 #define HAVE_ETHERTAP 0
37857 cat >>confdefs.h <<\_ACEOF
37858 #define BX_HAVE_SELECT 1
37861 cat >>confdefs.h <<\_ACEOF
37862 #define BX_HAVE_SOCKLEN_T 0
37868 PRIMARY_TARGET="bochs.exe"
37869 BXIMAGE_LINK_OPTS="-luser32"
37870 if test "$networking" = yes; then
37871 PRIMARY_TARGET="$PRIMARY_TARGET niclist.exe"
37873 cat >>confdefs.h <<\_ACEOF
37874 #define BX_HAVE_SELECT 1
37879 BXIMAGE_LINK_OPTS="-luser32"
37880 if test "$networking" = yes; then
37881 PRIMARY_TARGET="$PRIMARY_TARGET niclist"
37883 cat >>confdefs.h <<\_ACEOF
37884 #define BX_HAVE_SELECT 1
37889 PRIMARY_TARGET=.bochs_beos_target
37894 EXPORT_DYNAMIC="-export-dynamic"
37896 *-pc-windows* | *-pc-winnt* | *-cygwin* | *-mingw*)
37897 if test "$bx_plugins" = 1; then
37898 { echo "$as_me:$LINENO: checking for opendir in -lmingwex" >&5
37899 echo $ECHO_N "checking for opendir in -lmingwex... $ECHO_C" >&6; }
37900 if test "${ac_cv_lib_mingwex_opendir+set}" = set; then
37901 echo $ECHO_N "(cached) $ECHO_C" >&6
37903 ac_check_lib_save_LIBS=$LIBS
37904 LIBS="-lmingwex $LIBS"
37905 cat >conftest.$ac_ext <<_ACEOF
37908 cat confdefs.h >>conftest.$ac_ext
37909 cat >>conftest.$ac_ext <<_ACEOF
37910 /* end confdefs.h. */
37912 /* Override any GCC internal prototype to avoid an error.
37913 Use char because int might match the return type of a GCC
37914 builtin and then its argument prototype would still apply. */
37927 rm -f conftest.$ac_objext conftest$ac_exeext
37928 if { (ac_try="$ac_link"
37929 case "(($ac_try" in
37930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37931 *) ac_try_echo=$ac_try;;
37933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37934 (eval "$ac_link") 2>conftest.er1
37936 grep -v '^
*+' conftest.er1 >conftest.err
37938 cat conftest.err >&5
37939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37940 (exit $ac_status); } && {
37941 test -z "$ac_c_werror_flag" ||
37942 test ! -s conftest.err
37943 } && test -s conftest$ac_exeext &&
37944 $as_test_x conftest$ac_exeext; then
37945 ac_cv_lib_mingwex_opendir=yes
37947 echo "$as_me: failed program was:" >&5
37948 sed 's
/^
/|
/' conftest.$ac_ext >&5
37950 ac_cv_lib_mingwex_opendir=no
37953 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37954 conftest$ac_exeext conftest.$ac_ext
37955 LIBS=$ac_check_lib_save_LIBS
37957 { echo "$as_me:$LINENO: result: $ac_cv_lib_mingwex_opendir" >&5
37958 echo "${ECHO_T}$ac_cv_lib_mingwex_opendir" >&6; }
37959 if test $ac_cv_lib_mingwex_opendir = yes; then
37960 LIBS="$LIBS -lmingwex"
37963 # set variables for building DLL plugins
37964 PRIMARY_TARGET=".win32_dll_plugin_target"
37965 PLUGIN_LIBNAME_TRANSFORMATION='%.o
=bx_
%.dll
'
37966 INSTALL_PLUGINS_VAR=install_dll_plugins
37968 if test "$with_win32" != yes; then
37969 LIBS="$LIBS -lcomctl32"
37972 DIALOG_OBJS="win32dialog.o win32_enh_dbg.o"
37979 if test "$use_curses" = yes -a "$cross_configure" = 0; then
37980 { echo "$as_me:$LINENO: checking for mvaddch in -lcurses" >&5
37981 echo $ECHO_N "checking for mvaddch in -lcurses... $ECHO_C" >&6; }
37982 if test "${ac_cv_lib_curses_mvaddch+set}" = set; then
37983 echo $ECHO_N "(cached) $ECHO_C" >&6
37985 ac_check_lib_save_LIBS=$LIBS
37986 LIBS="-lcurses $LIBS"
37987 cat >conftest.$ac_ext <<_ACEOF
37990 cat confdefs.h >>conftest.$ac_ext
37991 cat >>conftest.$ac_ext <<_ACEOF
37992 /* end confdefs.h. */
37994 /* Override any GCC internal prototype to avoid an error.
37995 Use char because int might match the return type of a GCC
37996 builtin and then its argument prototype would still apply. */
38009 rm -f conftest.$ac_objext conftest$ac_exeext
38010 if { (ac_try="$ac_link"
38011 case "(($ac_try" in
38012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38013 *) ac_try_echo=$ac_try;;
38015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38016 (eval "$ac_link") 2>conftest.er1
38018 grep -v '^
*+' conftest.er1 >conftest.err
38020 cat conftest.err >&5
38021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38022 (exit $ac_status); } && {
38023 test -z "$ac_c_werror_flag" ||
38024 test ! -s conftest.err
38025 } && test -s conftest$ac_exeext &&
38026 $as_test_x conftest$ac_exeext; then
38027 ac_cv_lib_curses_mvaddch=yes
38029 echo "$as_me: failed program was:" >&5
38030 sed 's
/^
/|
/' conftest.$ac_ext >&5
38032 ac_cv_lib_curses_mvaddch=no
38035 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38036 conftest$ac_exeext conftest.$ac_ext
38037 LIBS=$ac_check_lib_save_LIBS
38039 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_mvaddch" >&5
38040 echo "${ECHO_T}$ac_cv_lib_curses_mvaddch" >&6; }
38041 if test $ac_cv_lib_curses_mvaddch = yes; then
38042 GUI_LINK_OPTS_TERM='-lcurses'
38045 { echo "$as_me:$LINENO: checking for mvaddch in -lncurses" >&5
38046 echo $ECHO_N "checking for mvaddch in -lncurses... $ECHO_C" >&6; }
38047 if test "${ac_cv_lib_ncurses_mvaddch+set}" = set; then
38048 echo $ECHO_N "(cached) $ECHO_C" >&6
38050 ac_check_lib_save_LIBS=$LIBS
38051 LIBS="-lncurses $LIBS"
38052 cat >conftest.$ac_ext <<_ACEOF
38055 cat confdefs.h >>conftest.$ac_ext
38056 cat >>conftest.$ac_ext <<_ACEOF
38057 /* end confdefs.h. */
38059 /* Override any GCC internal prototype to avoid an error.
38060 Use char because int might match the return type of a GCC
38061 builtin and then its argument prototype would still apply. */
38074 rm -f conftest.$ac_objext conftest$ac_exeext
38075 if { (ac_try="$ac_link"
38076 case "(($ac_try" in
38077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38078 *) ac_try_echo=$ac_try;;
38080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38081 (eval "$ac_link") 2>conftest.er1
38083 grep -v '^
*+' conftest.er1 >conftest.err
38085 cat conftest.err >&5
38086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38087 (exit $ac_status); } && {
38088 test -z "$ac_c_werror_flag" ||
38089 test ! -s conftest.err
38090 } && test -s conftest$ac_exeext &&
38091 $as_test_x conftest$ac_exeext; then
38092 ac_cv_lib_ncurses_mvaddch=yes
38094 echo "$as_me: failed program was:" >&5
38095 sed 's
/^
/|
/' conftest.$ac_ext >&5
38097 ac_cv_lib_ncurses_mvaddch=no
38100 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38101 conftest$ac_exeext conftest.$ac_ext
38102 LIBS=$ac_check_lib_save_LIBS
38104 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_mvaddch" >&5
38105 echo "${ECHO_T}$ac_cv_lib_ncurses_mvaddch" >&6; }
38106 if test $ac_cv_lib_ncurses_mvaddch = yes; then
38107 GUI_LINK_OPTS_TERM='-lncurses'
38110 { echo "$as_me:$LINENO: checking for mvaddch in -ltermlib" >&5
38111 echo $ECHO_N "checking for mvaddch in -ltermlib... $ECHO_C" >&6; }
38112 if test "${ac_cv_lib_termlib_mvaddch+set}" = set; then
38113 echo $ECHO_N "(cached) $ECHO_C" >&6
38115 ac_check_lib_save_LIBS=$LIBS
38116 LIBS="-ltermlib $LIBS"
38117 cat >conftest.$ac_ext <<_ACEOF
38120 cat confdefs.h >>conftest.$ac_ext
38121 cat >>conftest.$ac_ext <<_ACEOF
38122 /* end confdefs.h. */
38124 /* Override any GCC internal prototype to avoid an error.
38125 Use char because int might match the return type of a GCC
38126 builtin and then its argument prototype would still apply. */
38139 rm -f conftest.$ac_objext conftest$ac_exeext
38140 if { (ac_try="$ac_link"
38141 case "(($ac_try" in
38142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38143 *) ac_try_echo=$ac_try;;
38145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38146 (eval "$ac_link") 2>conftest.er1
38148 grep -v '^
*+' conftest.er1 >conftest.err
38150 cat conftest.err >&5
38151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38152 (exit $ac_status); } && {
38153 test -z "$ac_c_werror_flag" ||
38154 test ! -s conftest.err
38155 } && test -s conftest$ac_exeext &&
38156 $as_test_x conftest$ac_exeext; then
38157 ac_cv_lib_termlib_mvaddch=yes
38159 echo "$as_me: failed program was:" >&5
38160 sed 's
/^
/|
/' conftest.$ac_ext >&5
38162 ac_cv_lib_termlib_mvaddch=no
38165 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38166 conftest$ac_exeext conftest.$ac_ext
38167 LIBS=$ac_check_lib_save_LIBS
38169 { echo "$as_me:$LINENO: result: $ac_cv_lib_termlib_mvaddch" >&5
38170 echo "${ECHO_T}$ac_cv_lib_termlib_mvaddch" >&6; }
38171 if test $ac_cv_lib_termlib_mvaddch = yes; then
38172 GUI_LINK_OPTS_TERM='-ltermlib'
38175 { echo "$as_me:$LINENO: checking for mvaddch in -lpdcurses" >&5
38176 echo $ECHO_N "checking for mvaddch in -lpdcurses... $ECHO_C" >&6; }
38177 if test "${ac_cv_lib_pdcurses_mvaddch+set}" = set; then
38178 echo $ECHO_N "(cached) $ECHO_C" >&6
38180 ac_check_lib_save_LIBS=$LIBS
38181 LIBS="-lpdcurses $LIBS"
38182 cat >conftest.$ac_ext <<_ACEOF
38185 cat confdefs.h >>conftest.$ac_ext
38186 cat >>conftest.$ac_ext <<_ACEOF
38187 /* end confdefs.h. */
38189 /* Override any GCC internal prototype to avoid an error.
38190 Use char because int might match the return type of a GCC
38191 builtin and then its argument prototype would still apply. */
38204 rm -f conftest.$ac_objext conftest$ac_exeext
38205 if { (ac_try="$ac_link"
38206 case "(($ac_try" in
38207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38208 *) ac_try_echo=$ac_try;;
38210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38211 (eval "$ac_link") 2>conftest.er1
38213 grep -v '^
*+' conftest.er1 >conftest.err
38215 cat conftest.err >&5
38216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38217 (exit $ac_status); } && {
38218 test -z "$ac_c_werror_flag" ||
38219 test ! -s conftest.err
38220 } && test -s conftest$ac_exeext &&
38221 $as_test_x conftest$ac_exeext; then
38222 ac_cv_lib_pdcurses_mvaddch=yes
38224 echo "$as_me: failed program was:" >&5
38225 sed 's
/^
/|
/' conftest.$ac_ext >&5
38227 ac_cv_lib_pdcurses_mvaddch=no
38230 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38231 conftest$ac_exeext conftest.$ac_ext
38232 LIBS=$ac_check_lib_save_LIBS
38234 { echo "$as_me:$LINENO: result: $ac_cv_lib_pdcurses_mvaddch" >&5
38235 echo "${ECHO_T}$ac_cv_lib_pdcurses_mvaddch" >&6; }
38236 if test $ac_cv_lib_pdcurses_mvaddch = yes; then
38237 GUI_LINK_OPTS_TERM='-lpdcurses'
38240 if test "$GUI_LINK_OPTS_TERM" = ""; then
38241 echo Curses library not found: tried curses, ncurses, termlib and pdcurses.
38246 if test "$with_term" = yes; then
38248 LIBS="$LIBS $GUI_LINK_OPTS_TERM"
38250 for ac_func in color_set
38252 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38253 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38254 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38255 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38256 echo $ECHO_N "(cached) $ECHO_C" >&6
38258 cat >conftest.$ac_ext <<_ACEOF
38261 cat confdefs.h >>conftest.$ac_ext
38262 cat >>conftest.$ac_ext <<_ACEOF
38263 /* end confdefs.h. */
38264 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38265 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38266 #define $ac_func innocuous_$ac_func
38268 /* System header to define __stub macros and hopefully few prototypes,
38269 which can conflict with char $ac_func (); below.
38270 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38271 <limits.h> exists even on freestanding compilers. */
38274 # include <limits.h>
38276 # include <assert.h>
38281 /* Override any GCC internal prototype to avoid an error.
38282 Use char because int might match the return type of a GCC
38283 builtin and then its argument prototype would still apply. */
38288 /* The GNU C library defines this for functions which it implements
38289 to always fail with ENOSYS. Some functions are actually named
38290 something starting with __ and the normal name is an alias. */
38291 #if defined __stub_$ac_func || defined __stub___$ac_func
38298 return $ac_func ();
38303 rm -f conftest.$ac_objext conftest$ac_exeext
38304 if { (ac_try="$ac_link"
38305 case "(($ac_try" in
38306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38307 *) ac_try_echo=$ac_try;;
38309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38310 (eval "$ac_link") 2>conftest.er1
38312 grep -v '^
*+' conftest.er1 >conftest.err
38314 cat conftest.err >&5
38315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38316 (exit $ac_status); } && {
38317 test -z "$ac_c_werror_flag" ||
38318 test ! -s conftest.err
38319 } && test -s conftest$ac_exeext &&
38320 $as_test_x conftest$ac_exeext; then
38321 eval "$as_ac_var=yes"
38323 echo "$as_me: failed program was:" >&5
38324 sed 's
/^
/|
/' conftest.$ac_ext >&5
38326 eval "$as_ac_var=no"
38329 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38330 conftest$ac_exeext conftest.$ac_ext
38332 ac_res=`eval echo '${'$as_ac_var'}'`
38333 { echo "$as_me:$LINENO: result: $ac_res" >&5
38334 echo "${ECHO_T}$ac_res" >&6; }
38335 if test `eval echo '${'$as_ac_var'}'` = yes; then
38336 cat >>confdefs.h <<_ACEOF
38337 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38339 cat >>confdefs.h <<\_ACEOF
38340 #define BX_HAVE_COLOR_SET 1
38347 for ac_func in mvhline
38349 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38350 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38351 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38352 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38353 echo $ECHO_N "(cached) $ECHO_C" >&6
38355 cat >conftest.$ac_ext <<_ACEOF
38358 cat confdefs.h >>conftest.$ac_ext
38359 cat >>conftest.$ac_ext <<_ACEOF
38360 /* end confdefs.h. */
38361 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38362 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38363 #define $ac_func innocuous_$ac_func
38365 /* System header to define __stub macros and hopefully few prototypes,
38366 which can conflict with char $ac_func (); below.
38367 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38368 <limits.h> exists even on freestanding compilers. */
38371 # include <limits.h>
38373 # include <assert.h>
38378 /* Override any GCC internal prototype to avoid an error.
38379 Use char because int might match the return type of a GCC
38380 builtin and then its argument prototype would still apply. */
38385 /* The GNU C library defines this for functions which it implements
38386 to always fail with ENOSYS. Some functions are actually named
38387 something starting with __ and the normal name is an alias. */
38388 #if defined __stub_$ac_func || defined __stub___$ac_func
38395 return $ac_func ();
38400 rm -f conftest.$ac_objext conftest$ac_exeext
38401 if { (ac_try="$ac_link"
38402 case "(($ac_try" in
38403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38404 *) ac_try_echo=$ac_try;;
38406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38407 (eval "$ac_link") 2>conftest.er1
38409 grep -v '^
*+' conftest.er1 >conftest.err
38411 cat conftest.err >&5
38412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38413 (exit $ac_status); } && {
38414 test -z "$ac_c_werror_flag" ||
38415 test ! -s conftest.err
38416 } && test -s conftest$ac_exeext &&
38417 $as_test_x conftest$ac_exeext; then
38418 eval "$as_ac_var=yes"
38420 echo "$as_me: failed program was:" >&5
38421 sed 's
/^
/|
/' conftest.$ac_ext >&5
38423 eval "$as_ac_var=no"
38426 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38427 conftest$ac_exeext conftest.$ac_ext
38429 ac_res=`eval echo '${'$as_ac_var'}'`
38430 { echo "$as_me:$LINENO: result: $ac_res" >&5
38431 echo "${ECHO_T}$ac_res" >&6; }
38432 if test `eval echo '${'$as_ac_var'}'` = yes; then
38433 cat >>confdefs.h <<_ACEOF
38434 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38436 cat >>confdefs.h <<\_ACEOF
38437 #define BX_HAVE_MVHLINE 1
38444 for ac_func in mvvline
38446 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38447 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38448 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38449 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38450 echo $ECHO_N "(cached) $ECHO_C" >&6
38452 cat >conftest.$ac_ext <<_ACEOF
38455 cat confdefs.h >>conftest.$ac_ext
38456 cat >>conftest.$ac_ext <<_ACEOF
38457 /* end confdefs.h. */
38458 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38459 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38460 #define $ac_func innocuous_$ac_func
38462 /* System header to define __stub macros and hopefully few prototypes,
38463 which can conflict with char $ac_func (); below.
38464 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38465 <limits.h> exists even on freestanding compilers. */
38468 # include <limits.h>
38470 # include <assert.h>
38475 /* Override any GCC internal prototype to avoid an error.
38476 Use char because int might match the return type of a GCC
38477 builtin and then its argument prototype would still apply. */
38482 /* The GNU C library defines this for functions which it implements
38483 to always fail with ENOSYS. Some functions are actually named
38484 something starting with __ and the normal name is an alias. */
38485 #if defined __stub_$ac_func || defined __stub___$ac_func
38492 return $ac_func ();
38497 rm -f conftest.$ac_objext conftest$ac_exeext
38498 if { (ac_try="$ac_link"
38499 case "(($ac_try" in
38500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38501 *) ac_try_echo=$ac_try;;
38503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38504 (eval "$ac_link") 2>conftest.er1
38506 grep -v '^
*+' conftest.er1 >conftest.err
38508 cat conftest.err >&5
38509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38510 (exit $ac_status); } && {
38511 test -z "$ac_c_werror_flag" ||
38512 test ! -s conftest.err
38513 } && test -s conftest$ac_exeext &&
38514 $as_test_x conftest$ac_exeext; then
38515 eval "$as_ac_var=yes"
38517 echo "$as_me: failed program was:" >&5
38518 sed 's
/^
/|
/' conftest.$ac_ext >&5
38520 eval "$as_ac_var=no"
38523 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38524 conftest$ac_exeext conftest.$ac_ext
38526 ac_res=`eval echo '${'$as_ac_var'}'`
38527 { echo "$as_me:$LINENO: result: $ac_res" >&5
38528 echo "${ECHO_T}$ac_res" >&6; }
38529 if test `eval echo '${'$as_ac_var'}'` = yes; then
38530 cat >>confdefs.h <<_ACEOF
38531 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38533 cat >>confdefs.h <<\_ACEOF
38534 #define BX_HAVE_MVVLINE 1
38543 if test "$with_rfb" = yes; then
38544 # we need the socket function
38547 # is this okay without a check ?
38548 RFB_LIBS="$RFB_LIBS wsock32.lib"
38551 *-pc-winnt* | *-pc-cygwin* | *-pc-mingw32*)
38552 # is this okay without a check ?
38553 RFB_LIBS="$RFB_LIBS -lwsock32"
38558 for ac_func in socket
38560 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38561 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38562 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38563 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38564 echo $ECHO_N "(cached) $ECHO_C" >&6
38566 cat >conftest.$ac_ext <<_ACEOF
38569 cat confdefs.h >>conftest.$ac_ext
38570 cat >>conftest.$ac_ext <<_ACEOF
38571 /* end confdefs.h. */
38572 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38573 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38574 #define $ac_func innocuous_$ac_func
38576 /* System header to define __stub macros and hopefully few prototypes,
38577 which can conflict with char $ac_func (); below.
38578 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38579 <limits.h> exists even on freestanding compilers. */
38582 # include <limits.h>
38584 # include <assert.h>
38589 /* Override any GCC internal prototype to avoid an error.
38590 Use char because int might match the return type of a GCC
38591 builtin and then its argument prototype would still apply. */
38596 /* The GNU C library defines this for functions which it implements
38597 to always fail with ENOSYS. Some functions are actually named
38598 something starting with __ and the normal name is an alias. */
38599 #if defined __stub_$ac_func || defined __stub___$ac_func
38606 return $ac_func ();
38611 rm -f conftest.$ac_objext conftest$ac_exeext
38612 if { (ac_try="$ac_link"
38613 case "(($ac_try" in
38614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38615 *) ac_try_echo=$ac_try;;
38617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38618 (eval "$ac_link") 2>conftest.er1
38620 grep -v '^
*+' conftest.er1 >conftest.err
38622 cat conftest.err >&5
38623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38624 (exit $ac_status); } && {
38625 test -z "$ac_c_werror_flag" ||
38626 test ! -s conftest.err
38627 } && test -s conftest$ac_exeext &&
38628 $as_test_x conftest$ac_exeext; then
38629 eval "$as_ac_var=yes"
38631 echo "$as_me: failed program was:" >&5
38632 sed 's
/^
/|
/' conftest.$ac_ext >&5
38634 eval "$as_ac_var=no"
38637 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38638 conftest$ac_exeext conftest.$ac_ext
38640 ac_res=`eval echo '${'$as_ac_var'}'`
38641 { echo "$as_me:$LINENO: result: $ac_res" >&5
38642 echo "${ECHO_T}$ac_res" >&6; }
38643 if test `eval echo '${'$as_ac_var'}'` = yes; then
38644 cat >>confdefs.h <<_ACEOF
38645 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38651 if test "$have_socket" != yes; then
38652 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
38653 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
38654 if test "${ac_cv_lib_socket_socket+set}" = set; then
38655 echo $ECHO_N "(cached) $ECHO_C" >&6
38657 ac_check_lib_save_LIBS=$LIBS
38658 LIBS="-lsocket $LIBS"
38659 cat >conftest.$ac_ext <<_ACEOF
38662 cat confdefs.h >>conftest.$ac_ext
38663 cat >>conftest.$ac_ext <<_ACEOF
38664 /* end confdefs.h. */
38666 /* Override any GCC internal prototype to avoid an error.
38667 Use char because int might match the return type of a GCC
38668 builtin and then its argument prototype would still apply. */
38681 rm -f conftest.$ac_objext conftest$ac_exeext
38682 if { (ac_try="$ac_link"
38683 case "(($ac_try" in
38684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38685 *) ac_try_echo=$ac_try;;
38687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38688 (eval "$ac_link") 2>conftest.er1
38690 grep -v '^
*+' conftest.er1 >conftest.err
38692 cat conftest.err >&5
38693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38694 (exit $ac_status); } && {
38695 test -z "$ac_c_werror_flag" ||
38696 test ! -s conftest.err
38697 } && test -s conftest$ac_exeext &&
38698 $as_test_x conftest$ac_exeext; then
38699 ac_cv_lib_socket_socket=yes
38701 echo "$as_me: failed program was:" >&5
38702 sed 's
/^
/|
/' conftest.$ac_ext >&5
38704 ac_cv_lib_socket_socket=no
38707 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38708 conftest$ac_exeext conftest.$ac_ext
38709 LIBS=$ac_check_lib_save_LIBS
38711 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
38712 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
38713 if test $ac_cv_lib_socket_socket = yes; then
38715 RFB_LIBS="$RFB_LIBS -lsocket"
38723 if test "$have_socket" != yes; then
38724 echo 'ERROR
: socket
function required
for RFB compile
'
38729 # The ACX_PTHREAD function was written by
38730 # Steven G. Johnson <stevenj@alum.mit.edu> and
38731 # Alejandro Forero Cuervo <bachue@bachue.com>
38732 # I found it in the ac-archive project on Source Forge.
38740 # First, check if the POSIX threads header, pthread.h, is available.
38741 # If it isn't
, don
't bother looking for the threads libraries.
38742 if test "${ac_cv_header_pthread_h+set}" = set; then
38743 { echo "$as_me:$LINENO: checking for pthread.h" >&5
38744 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
38745 if test "${ac_cv_header_pthread_h+set}" = set; then
38746 echo $ECHO_N "(cached) $ECHO_C" >&6
38748 { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
38749 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
38751 # Is the header compilable?
38752 { echo "$as_me:$LINENO: checking pthread.h usability" >&5
38753 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6; }
38754 cat >conftest.$ac_ext <<_ACEOF
38757 cat confdefs.h >>conftest.$ac_ext
38758 cat >>conftest.$ac_ext <<_ACEOF
38759 /* end confdefs.h. */
38760 $ac_includes_default
38761 #include <pthread.h>
38763 rm -f conftest.$ac_objext
38764 if { (ac_try="$ac_compile"
38765 case "(($ac_try" in
38766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38767 *) ac_try_echo=$ac_try;;
38769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38770 (eval "$ac_compile") 2>conftest.er1
38772 grep -v '^
*+' conftest.er1 >conftest.err
38774 cat conftest.err >&5
38775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38776 (exit $ac_status); } && {
38777 test -z "$ac_c_werror_flag" ||
38778 test ! -s conftest.err
38779 } && test -s conftest.$ac_objext; then
38780 ac_header_compiler=yes
38782 echo "$as_me: failed program was:" >&5
38783 sed 's
/^
/|
/' conftest.$ac_ext >&5
38785 ac_header_compiler=no
38788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38789 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38790 echo "${ECHO_T}$ac_header_compiler" >&6; }
38792 # Is the header present?
38793 { echo "$as_me:$LINENO: checking pthread.h presence" >&5
38794 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6; }
38795 cat >conftest.$ac_ext <<_ACEOF
38798 cat confdefs.h >>conftest.$ac_ext
38799 cat >>conftest.$ac_ext <<_ACEOF
38800 /* end confdefs.h. */
38801 #include <pthread.h>
38803 if { (ac_try="$ac_cpp conftest.$ac_ext"
38804 case "(($ac_try" in
38805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38806 *) ac_try_echo=$ac_try;;
38808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38809 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
38811 grep -v '^
*+' conftest.er1 >conftest.err
38813 cat conftest.err >&5
38814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38815 (exit $ac_status); } >/dev/null && {
38816 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
38817 test ! -s conftest.err
38819 ac_header_preproc=yes
38821 echo "$as_me: failed program was:" >&5
38822 sed 's
/^
/|
/' conftest.$ac_ext >&5
38824 ac_header_preproc=no
38827 rm -f conftest.err conftest.$ac_ext
38828 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38829 echo "${ECHO_T}$ac_header_preproc" >&6; }
38831 # So? What about this header?
38832 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38834 { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
38835 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
38836 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result
" >&5
38837 echo "$as_me: WARNING
: pthread.h
: proceeding with the compiler
's result" >&2;}
38838 ac_header_preproc=yes
38841 { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
38842 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
38843 { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
38844 echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
38845 { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
38846 echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
38847 { echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
38848 echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
38849 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result
" >&5
38850 echo "$as_me: WARNING
: pthread.h
: proceeding with the preprocessor
's result" >&2;}
38851 { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
38852 echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
38856 { echo "$as_me:$LINENO: checking for pthread.h" >&5
38857 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
38858 if test "${ac_cv_header_pthread_h+set}" = set; then
38859 echo $ECHO_N "(cached) $ECHO_C" >&6
38861 ac_cv_header_pthread_h=$ac_header_preproc
38863 { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
38864 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
38867 if test $ac_cv_header_pthread_h = yes; then
38870 acx_pthread_ok=noheader
38875 # We must check for the threads library under a number of different
38876 # names; the ordering is very important because some systems
38877 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
38878 # libraries is broken (non-POSIX).
38880 # First of all, check if the user has set any of the PTHREAD_LIBS,
38881 # etcetera environment variables, and if threads linking works using
38883 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
38884 save_CFLAGS="$CFLAGS"
38885 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
38886 CXXFLAGS="$CXXFLAGS $PTHREAD_CFLAGS"
38888 LIBS="$PTHREAD_LIBS $LIBS"
38889 { echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
38890 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6; }
38891 cat >conftest.$ac_ext <<_ACEOF
38894 cat confdefs.h >>conftest.$ac_ext
38895 cat >>conftest.$ac_ext <<_ACEOF
38896 /* end confdefs.h. */
38898 /* Override any GCC internal prototype to avoid an error.
38899 Use char because int might match the return type of a GCC
38900 builtin and then its argument prototype would still apply. */
38904 char pthread_join ();
38908 return pthread_join ();
38913 rm -f conftest.$ac_objext conftest$ac_exeext
38914 if { (ac_try="$ac_link"
38915 case "(($ac_try" in
38916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38917 *) ac_try_echo=$ac_try;;
38919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38920 (eval "$ac_link") 2>conftest.er1
38922 grep -v '^
*+' conftest.er1 >conftest.err
38924 cat conftest.err >&5
38925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38926 (exit $ac_status); } && {
38927 test -z "$ac_c_werror_flag" ||
38928 test ! -s conftest.err
38929 } && test -s conftest$ac_exeext &&
38930 $as_test_x conftest$ac_exeext; then
38933 echo "$as_me: failed program was:" >&5
38934 sed 's
/^
/|
/' conftest.$ac_ext >&5
38939 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38940 conftest$ac_exeext conftest.$ac_ext
38941 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
38942 echo "${ECHO_T}$acx_pthread_ok" >&6; }
38943 if test x"$acx_pthread_ok" = xno; then
38948 CFLAGS="$save_CFLAGS"
38951 # Create a list of thread flags to try. Items starting with a "-" are
38952 # C compiler flags, and other items are library names, except for "none"
38953 # which indicates that we try without any flags at all.
38955 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt"
38957 # The ordering *is* (sometimes) important. Some notes on the
38958 # individual items follow:
38960 # pthreads: AIX (must check this before -lpthread)
38961 # none: in case threads are in libc; should be tried before -Kthread and
38962 # other compiler flags to prevent continual compiler warnings
38963 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
38964 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
38965 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
38966 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
38967 # -pthreads: Solaris/gcc
38968 # -mthreads: Mingw32/gcc, Lynx/gcc
38969 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
38970 # doesn't hurt to check since this sometimes defines pthreads too
;
38971 # also defines -D_REENTRANT)
38972 # pthread: Linux, etcetera
38973 # --thread-safe: KAI C++
38975 case "${host_cpu}-${host_os}" in
38978 # On Solaris (at least, for some versions), libc contains stubbed
38979 # (non-functional) versions of the pthreads routines, so link-based
38980 # tests will erroneously succeed. (We need to link with -pthread or
38981 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
38982 # a function called by this macro, so we could check for that, but
38983 # who knows whether they'll stub that too in a future libc.) So,
38984 # we'll just look for -pthreads and -lpthread first:
38986 acx_pthread_flags
="-pthread -pthreads pthread -mt $acx_pthread_flags"
38990 if test x
"$acx_pthread_ok" = xno
; then
38991 for flag
in $acx_pthread_flags; do
38995 { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
38996 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
39000 { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
39001 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
39002 PTHREAD_CFLAGS
="$flag"
39006 { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
39007 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
39008 PTHREAD_LIBS
="-l$flag"
39013 save_CFLAGS
="$CFLAGS"
39014 LIBS
="$PTHREAD_LIBS $LIBS"
39015 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
39017 # Check for various functions. We must include pthread.h,
39018 # since some functions may be macros. (On the Sequent, we
39019 # need a special flag -Kthread to make this header compile.)
39020 # We check for pthread_join because it is in -lpthread on IRIX
39021 # while pthread_create is in libc. We check for pthread_attr_init
39022 # due to DEC craziness with -lpthreads. We check for
39023 # pthread_cleanup_push because it is one of the few pthread
39024 # functions on Solaris that doesn't have a non-functional libc stub.
39025 # We try pthread_create on general principles.
39026 cat >conftest.
$ac_ext <<_ACEOF
39029 cat confdefs.h
>>conftest.
$ac_ext
39030 cat >>conftest.
$ac_ext <<_ACEOF
39031 /* end confdefs.h. */
39032 #include <pthread.h>
39036 pthread_t th; pthread_join(th, 0);
39037 pthread_attr_init(0); pthread_cleanup_push(0, 0);
39038 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
39043 rm -f conftest.
$ac_objext conftest
$ac_exeext
39044 if { (ac_try
="$ac_link"
39045 case "(($ac_try" in
39046 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
39047 *) ac_try_echo=$ac_try;;
39049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39050 (eval "$ac_link") 2>conftest.er1
39052 grep -v '^ *+' conftest.er1 >conftest.err
39054 cat conftest.err >&5
39055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39056 (exit $ac_status); } && {
39057 test -z "$ac_c_werror_flag" ||
39058 test ! -s conftest.err
39059 } && test -s conftest$ac_exeext &&
39060 $as_test_x conftest$ac_exeext; then
39063 echo "$as_me: failed program was:" >&5
39064 sed 's/^/| /' conftest.$ac_ext >&5
39069 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39070 conftest$ac_exeext conftest.$ac_ext
39073 CFLAGS="$save_CFLAGS"
39075 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
39076 echo "${ECHO_T}$acx_pthread_ok" >&6; }
39077 if test "x$acx_pthread_ok" = xyes; then
39086 # Various other checks:
39087 if test "x$acx_pthread_ok" = xyes; then
39089 LIBS="$PTHREAD_LIBS $LIBS"
39090 save_CFLAGS="$CFLAGS"
39091 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
39093 # Detect AIX lossage: threads are created detached by default
39094 # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
39095 { echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
39096 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6; }
39097 cat >conftest.$ac_ext <<_ACEOF
39100 cat confdefs.h >>conftest.$ac_ext
39101 cat >>conftest.$ac_ext <<_ACEOF
39102 /* end confdefs.h. */
39103 #include <pthread.h>
39107 int attr=PTHREAD_CREATE_JOINABLE;
39112 rm -f conftest.$ac_objext conftest$ac_exeext
39113 if { (ac_try="$ac_link"
39114 case "(($ac_try" in
39115 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
39116 *) ac_try_echo
=$ac_try;;
39118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39119 (eval "$ac_link") 2>conftest.er1
39121 grep -v '^ *+' conftest.er1
>conftest.err
39123 cat conftest.err
>&5
39124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39125 (exit $ac_status); } && {
39126 test -z "$ac_c_werror_flag" ||
39127 test ! -s conftest.err
39128 } && test -s conftest
$ac_exeext &&
39129 $as_test_x conftest
$ac_exeext; then
39130 ok
=PTHREAD_CREATE_JOINABLE
39132 echo "$as_me: failed program was:" >&5
39133 sed 's/^/| /' conftest.
$ac_ext >&5
39138 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
39139 conftest
$ac_exeext conftest.
$ac_ext
39140 if test x
"$ok" = xunknown
; then
39141 cat >conftest.
$ac_ext <<_ACEOF
39144 cat confdefs.h
>>conftest.
$ac_ext
39145 cat >>conftest.
$ac_ext <<_ACEOF
39146 /* end confdefs.h. */
39147 #include <pthread.h>
39151 int attr=PTHREAD_CREATE_UNDETACHED;
39156 rm -f conftest.
$ac_objext conftest
$ac_exeext
39157 if { (ac_try
="$ac_link"
39158 case "(($ac_try" in
39159 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
39160 *) ac_try_echo=$ac_try;;
39162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39163 (eval "$ac_link") 2>conftest.er1
39165 grep -v '^ *+' conftest.er1 >conftest.err
39167 cat conftest.err >&5
39168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39169 (exit $ac_status); } && {
39170 test -z "$ac_c_werror_flag" ||
39171 test ! -s conftest.err
39172 } && test -s conftest$ac_exeext &&
39173 $as_test_x conftest$ac_exeext; then
39174 ok=PTHREAD_CREATE_UNDETACHED
39176 echo "$as_me: failed program was:" >&5
39177 sed 's/^/| /' conftest.$ac_ext >&5
39182 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39183 conftest$ac_exeext conftest.$ac_ext
39185 if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
39187 cat >>confdefs.h <<\_ACEOF
39188 #define PTHREAD_CREATE_JOINABLE $ok
39192 { echo "$as_me:$LINENO: result: ${ok}" >&5
39193 echo "${ECHO_T}${ok}" >&6; }
39194 if test x"$ok" = xunknown; then
39195 { echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5
39196 echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
39199 { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
39200 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
39202 case "${host_cpu}-${host_os}" in
39203 *-aix* | *-freebsd*) flag="-D_THREAD_SAFE";;
39204 *solaris* | alpha*-osf*) flag="-D_REENTRANT";;
39206 { echo "$as_me:$LINENO: result: ${flag}" >&5
39207 echo "${ECHO_T}${flag}" >&6; }
39208 if test "x$flag" != xno; then
39209 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
39213 CFLAGS="$save_CFLAGS"
39215 # More AIX lossage: must compile with cc_r
39216 # Extract the first word of "cc_r", so it can be a program name with args.
39217 set dummy cc_r; ac_word=$2
39218 { echo "$as_me:$LINENO: checking for $ac_word" >&5
39219 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
39220 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
39221 echo $ECHO_N "(cached) $ECHO_C" >&6
39223 if test -n "$PTHREAD_CC"; then
39224 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
39226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39227 for as_dir in $PATH
39230 test -z "$as_dir" && as_dir=.
39231 for ac_exec_ext in '' $ac_executable_extensions; do
39232 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
39233 ac_cv_prog_PTHREAD_CC="cc_r"
39234 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39241 test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
39244 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
39245 if test -n "$PTHREAD_CC"; then
39246 { echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
39247 echo "${ECHO_T}$PTHREAD_CC" >&6; }
39249 { echo "$as_me:$LINENO: result: no" >&5
39250 echo "${ECHO_T}no" >&6; }
39262 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
39263 if test x"$acx_pthread_ok" = xyes; then
39266 #echo Using PTHREAD_LIBS=$PTHREAD_LIBS
39267 #echo Using PTHREAD_CFLAGS=$PTHREAD_CFLAGS
39268 #echo Using PTHREAD_CC=$PTHREAD_CC
39279 # since RFB (usually) needs pthread library, check that it was found.
39280 # But on win32 platforms, the pthread library is not needed.
39281 if test "$with_rfb" = yes -a "$cross_configure" = 0; then
39282 if test "$pthread_ok" = yes; then
39283 RFB_LIBS="$RFB_LIBS $PTHREAD_LIBS"
39284 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
39285 CXXFLAGS="$CXXFLAGS $PTHREAD_CFLAGS"
39289 *-pc-windows* | *-pc-winnt* | *-cygwin* | *-mingw*)
39290 # pthread not needed for win32 platform
39293 echo ERROR: --with-rfb requires the pthread library, which could not be found.; exit 1
39299 { echo "$as_me:$LINENO: checking for external debugger interface (deprecated)" >&5
39300 echo $ECHO_N "checking for external debugger interface (deprecated)... $ECHO_C" >&6; }
39301 # Check whether --enable-external-debugger was given.
39302 if test "${enable_external_debugger+set}" = set; then
39303 enableval=$enable_external_debugger; { echo "$as_me:$LINENO: result: $enableval" >&5
39304 echo "${ECHO_T}$enableval" >&6; }
39305 { { echo "$as_me:$LINENO: error: DEPRECATED - Peter Tattam's external debugger interface is not supported anymore" >&5
39306 echo "$as_me: error: DEPRECATED - Peter Tattam's external debugger interface is not supported anymore" >&2;}
39307 { (exit 1); exit 1; }; }
39311 { echo "$as_me:$LINENO: result: no" >&5
39312 echo "${ECHO_T}no" >&6; }
39317 { echo "$as_me:$LINENO: checking for magic breakpoints (deprecated)" >&5
39318 echo $ECHO_N "checking for magic breakpoints (deprecated)... $ECHO_C" >&6; }
39319 # Check whether --enable-magic-breakpoints was given.
39320 if test "${enable_magic_breakpoints+set}" = set; then
39321 enableval=$enable_magic_breakpoints; { echo "$as_me:$LINENO: result: $enableval" >&5
39322 echo "${ECHO_T}$enableval" >&6; }
39323 { { echo "$as_me:$LINENO: error: DEPRECATED - magic breakpoints are always enabled with Bochs internal debugger" >&5
39324 echo "$as_me: error: DEPRECATED - magic breakpoints are always enabled with Bochs internal debugger" >&2;}
39325 { (exit 1); exit 1; }; }
39329 { echo "$as_me:$LINENO: result: no" >&5
39330 echo "${ECHO_T}no" >&6; }
39335 { echo "$as_me:$LINENO: checking for save/restore (deprecated)" >&5
39336 echo $ECHO_N "checking for save/restore (deprecated)... $ECHO_C" >&6; }
39337 # Check whether --enable-save-restore was given.
39338 if test "${enable_save_restore+set}" = set; then
39339 enableval=$enable_save_restore; { echo "$as_me:$LINENO: result: $enableval" >&5
39340 echo "${ECHO_T}$enableval" >&6; }
39341 { { echo "$as_me:$LINENO: error: DEPRECATED - save/restore feature is always enabled" >&5
39342 echo "$as_me: error: DEPRECATED - save/restore feature is always enabled" >&2;}
39343 { (exit 1); exit 1; }; }
39347 { echo "$as_me:$LINENO: result: no" >&5
39348 echo "${ECHO_T}no" >&6; }
39353 # Create some subdirectories for when you run configure from some other
39355 if test ! -d instrument; then mkdir instrument; fi
39356 if test ! -d build; then mkdir build; fi
39357 if test ! -d build/linux; then mkdir build/linux; fi
39358 if test ! -d build/win32; then mkdir build/win32; fi
39359 if test ! -d build/win32/nsis; then mkdir build/win32/nsis; fi
39399 # Extract the first word of "gzip", so it can be a program name with args.
39400 set dummy gzip; ac_word=$2
39401 { echo "$as_me:$LINENO: checking for $ac_word" >&5
39402 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
39403 if test "${ac_cv_path_GZIP+set}" = set; then
39404 echo $ECHO_N "(cached) $ECHO_C" >&6
39408 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
39411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39412 for as_dir in $PATH
39415 test -z "$as_dir" && as_dir=.
39416 for ac_exec_ext in '' $ac_executable_extensions; do
39417 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
39418 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
39419 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39429 GZIP=$ac_cv_path_GZIP
39430 if test -n "$GZIP"; then
39431 { echo "$as_me:$LINENO: result: $GZIP" >&5
39432 echo "${ECHO_T}$GZIP" >&6; }
39434 { echo "$as_me:$LINENO: result: no" >&5
39435 echo "${ECHO_T}no" >&6; }
39439 # Extract the first word of "tar", so it can be a program name with args.
39440 set dummy tar; ac_word=$2
39441 { echo "$as_me:$LINENO: checking for $ac_word" >&5
39442 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
39443 if test "${ac_cv_path_TAR+set}" = set; then
39444 echo $ECHO_N "(cached) $ECHO_C" >&6
39448 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
39451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39452 for as_dir in $PATH
39455 test -z "$as_dir" && as_dir=.
39456 for ac_exec_ext in '' $ac_executable_extensions; do
39457 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
39458 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
39459 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39469 TAR=$ac_cv_path_TAR
39470 if test -n "$TAR"; then
39471 { echo "$as_me:$LINENO: result: $TAR" >&5
39472 echo "${ECHO_T}$TAR" >&6; }
39474 { echo "$as_me:$LINENO: result: no" >&5
39475 echo "${ECHO_T}no" >&6; }
39480 ac_config_files="$ac_config_files Makefile iodev/Makefile bx_debug/Makefile bios/Makefile cpu/Makefile memory/Makefile gui/Makefile disasm/Makefile ${INSTRUMENT_DIR}/Makefile misc/Makefile fpu/Makefile doc/docbook/Makefile build/linux/bochs-dlx bxversion.h bxversion.rc build/macosx/Info.plist build/win32/nsis/Makefile build/win32/nsis/bochs.nsi host/linux/pcidev/Makefile"
39482 cat >confcache <<\_ACEOF
39483 # This file is a shell script that caches the results of configure
39484 # tests run on this system so they can be shared between configure
39485 # scripts and configure runs, see configure's option --config-cache.
39486 # It is not useful on other systems. If it contains results you don't
39487 # want to keep, you may remove or edit it.
39489 # config.status only pays attention to the cache file if you give it
39490 # the --recheck option to rerun configure.
39492 # `ac_cv_env_foo
' variables (set or unset) will be overridden when
39493 # loading this file, other *unset* `ac_cv_foo' will be assigned the
39494 # following values.
39498 # The following way of writing the cache mishandles newlines in values,
39499 # but we know of no workaround that is simple, portable, and efficient.
39500 # So, we kill variables containing newlines.
39501 # Ultrix sh set writes to stderr and can't be redirected directly,
39502 # and sets the high bit in the cache file unless we assign to the vars.
39504 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
39505 eval ac_val
=\$
$ac_var
39509 *_cv_
*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
39510 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
39513 _ | IFS | as_nl
) ;; #(
39514 *) $as_unset $ac_var ;;
39520 case $as_nl`(ac_space=' '; set) 2>&1` in #(
39521 *${as_nl}ac_space
=\
*)
39522 # `set' does not quote correctly, so add quotes (double-quote
39523 # substitution turns \\\\ into \\, and sed turns \\ into \).
39526 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
39529 # `set' quotes correctly as required by POSIX, so do not add quotes.
39530 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
39539 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
39541 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
39543 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
39544 if test -w "$cache_file"; then
39545 test "x$cache_file" != "x/dev/null" &&
39546 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
39547 echo "$as_me: updating cache $cache_file" >&6;}
39548 cat confcache
>$cache_file
39550 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
39551 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
39556 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
39557 # Let make expand exec_prefix.
39558 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
39560 DEFS
=-DHAVE_CONFIG_H
39564 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
39565 # 1. Remove the extension, and $U if already installed.
39566 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
39567 ac_i
=`echo "$ac_i" | sed "$ac_script"`
39568 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
39569 # will be set to the directory where LIBOBJS objects are built.
39570 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
39571 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
39573 LIBOBJS
=$ac_libobjs
39575 LTLIBOBJS
=$ac_ltlibobjs
39579 : ${CONFIG_STATUS=./config.status}
39580 ac_clean_files_save
=$ac_clean_files
39581 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
39582 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
39583 echo "$as_me: creating $CONFIG_STATUS" >&6;}
39584 cat >$CONFIG_STATUS <<_ACEOF
39586 # Generated by $as_me.
39587 # Run this file to recreate the current configuration.
39588 # Compiler output produced by configure, useful for debugging
39589 # configure, is in config.log if it exists.
39592 ac_cs_recheck=false
39594 SHELL=\${CONFIG_SHELL-$SHELL}
39597 cat >>$CONFIG_STATUS <<\_ACEOF
39598 ## --------------------- ##
39599 ## M4sh Initialization. ##
39600 ## --------------------- ##
39602 # Be more Bourne compatible
39603 DUALCASE
=1; export DUALCASE
# for MKS sh
39604 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
39607 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
39608 # is contrary to our usage. Disable this feature.
39609 alias -g '${1+"$@"}'='"$@"'
39610 setopt NO_GLOB_SUBST
39612 case `(set -o) 2>/dev/null` in
39613 *posix
*) set -o posix
;;
39622 # Avoid depending upon Character Ranges.
39623 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
39624 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39625 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
39626 as_cr_digits
='0123456789'
39627 as_cr_alnum
=$as_cr_Letters$as_cr_digits
39629 # The user is always right.
39630 if test "${PATH_SEPARATOR+set}" != set; then
39631 echo "#! /bin/sh" >conf$$.sh
39632 echo "exit 0" >>conf$$.sh
39634 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
39642 # Support unset when possible.
39643 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
39651 # We need space, tab and new line, in precisely that order. Quoting is
39652 # there to prevent editors from complaining about space-tab.
39653 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
39654 # splitting by setting IFS to empty value.)
39659 # Find who we are. Look in the path if we contain no directory separator.
39661 *[\\/]* ) as_myself
=$0 ;;
39662 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
39663 for as_dir
in $PATH
39666 test -z "$as_dir" && as_dir
=.
39667 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
39673 # We did not find ourselves, most probably we were run as `sh COMMAND'
39674 # in which case we are not to be found in the path.
39675 if test "x$as_myself" = x
; then
39678 if test ! -f "$as_myself"; then
39679 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
39680 { (exit 1); exit 1; }
39683 # Work around bugs in pre-3.0 UWIN ksh.
39684 for as_var
in ENV MAIL MAILPATH
39685 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
39693 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
39694 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
39695 LC_TELEPHONE LC_TIME
39697 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
39698 eval $as_var=C
; export $as_var
39700 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
39704 # Required to use basename.
39705 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
39706 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
39712 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
39713 as_basename
=basename
39719 # Name of the executable.
39720 as_me
=`$as_basename -- "$0" ||
39721 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
39722 X"$0" : 'X\(//\)$' \| \
39723 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
39725 sed '/^.*\/\([^/][^/]*\)\/*$/{
39744 as_lineno_1
=$LINENO
39745 as_lineno_2
=$LINENO
39746 test "x$as_lineno_1" != "x$as_lineno_2" &&
39747 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
39749 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
39750 # uniformly replaced by the line number. The first 'sed' inserts a
39751 # line-number line after each line using $LINENO; the second 'sed'
39752 # does the real work. The second script uses 'N' to pair each
39753 # line-number line with the line containing $LINENO, and appends
39754 # trailing '-' during substitution so that $LINENO is not a special
39755 # case at line end.
39756 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
39757 # scripts with optimization help from Paolo Bonzini. Blame Lee
39758 # E. McMahon (1931-1989) for sed's syntax. :-)
39770 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
39773 ' >$as_me.lineno
&&
39774 chmod +x
"$as_me.lineno" ||
39775 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
39776 { (exit 1); exit 1; }; }
39778 # Don't try to exec as it changes $[0], causing all sort of problems
39779 # (the dirname of $[0] is not the place where we might find the
39780 # original and so on. Autoconf is especially sensitive to this).
39781 .
"./$as_me.lineno"
39782 # Exit status is that of the last command.
39787 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
39793 ECHO_C
= ECHO_N
= ECHO_T
=
39794 case `echo -n x` in
39796 case `echo 'x\c'` in
39797 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
39804 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
39805 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
39811 rm -f conf$$ conf$$.exe conf$$.
file
39812 if test -d conf$$.dir
; then
39813 rm -f conf$$.dir
/conf$$.
file
39819 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
39821 # ... but there are two gotchas:
39822 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
39823 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
39824 # In both cases, we have to default to `cp -p'.
39825 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
39827 elif ln conf$$.
file conf$$
2>/dev
/null
; then
39832 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
39833 rmdir conf$$.dir
2>/dev
/null
39835 if mkdir
-p .
2>/dev
/null
; then
39838 test -d .
/-p && rmdir .
/-p
39842 if test -x / >/dev
/null
2>&1; then
39843 as_test_x
='test -x'
39845 if ls -dL / >/dev
/null
2>&1; then
39852 if test -d "$1"; then
39858 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
39859 ???[sx]*):;;*)false;;esac;fi
39863 as_executable_p
=$as_test_x
39865 # Sed expression to map a string onto a valid CPP name.
39866 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
39868 # Sed expression to map a string onto a valid variable name.
39869 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
39874 # Save the log message, to keep $[0] and so on meaningful, and to
39875 # report actual input values of CONFIG_FILES etc. instead of their
39876 # values after options handling.
39878 This file was extended by $as_me, which was
39879 generated by GNU Autoconf 2.61. Invocation command line was
39881 CONFIG_FILES = $CONFIG_FILES
39882 CONFIG_HEADERS = $CONFIG_HEADERS
39883 CONFIG_LINKS = $CONFIG_LINKS
39884 CONFIG_COMMANDS = $CONFIG_COMMANDS
39887 on `(hostname || uname -n) 2>/dev/null | sed 1q`
39892 cat >>$CONFIG_STATUS <<_ACEOF
39893 # Files that config.status was made for.
39894 config_files="$ac_config_files"
39895 config_headers="$ac_config_headers"
39899 cat >>$CONFIG_STATUS <<\_ACEOF
39901 \`$as_me' instantiates files from templates according to the
39902 current configuration.
39904 Usage: $0 [OPTIONS] [FILE]...
39906 -h, --help print this help, then exit
39907 -V, --version print version number and configuration settings, then exit
39908 -q, --quiet do not print progress messages
39909 -d, --debug don't remove temporary files
39910 --recheck update $as_me by reconfiguring in the same conditions
39911 --file=FILE[:TEMPLATE]
39912 instantiate the configuration file FILE
39913 --header=FILE[:TEMPLATE]
39914 instantiate the configuration header FILE
39916 Configuration files:
39919 Configuration headers:
39922 Report bugs to <bug-autoconf@gnu.org>."
39925 cat >>$CONFIG_STATUS <<_ACEOF
39928 configured by $0, generated by GNU Autoconf 2.61,
39929 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
39931 Copyright (C) 2006 Free Software Foundation, Inc.
39932 This config.status script is free software; the Free Software Foundation
39933 gives unlimited permission to copy, distribute and modify it."
39939 cat >>$CONFIG_STATUS <<\_ACEOF
39940 # If no file are specified by the user, then we need to provide default
39941 # value. By we need to know if files were specified by the user.
39947 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
39948 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
39959 # Handling of the options.
39960 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
39962 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
39963 echo "$ac_cs_version"; exit ;;
39964 --debug |
--debu |
--deb |
--de |
--d |
-d )
39966 --file |
--fil |
--fi |
--f )
39968 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
39969 ac_need_defaults
=false
;;
39970 --header |
--heade |
--head |
--hea )
39972 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
39973 ac_need_defaults
=false
;;
39975 # Conflict between --help and --header
39976 { echo "$as_me: error: ambiguous option: $1
39977 Try \`$0 --help' for more information." >&2
39978 { (exit 1); exit 1; }; };;
39979 --help |
--hel |
-h )
39980 echo "$ac_cs_usage"; exit ;;
39981 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
39982 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
39985 # This is an error.
39986 -*) { echo "$as_me: error: unrecognized option: $1
39987 Try \`$0 --help' for more information." >&2
39988 { (exit 1); exit 1; }; } ;;
39990 *) ac_config_targets
="$ac_config_targets $1"
39991 ac_need_defaults
=false
;;
39997 ac_configure_extra_args
=
39999 if $ac_cs_silent; then
40001 ac_configure_extra_args
="$ac_configure_extra_args --silent"
40005 cat >>$CONFIG_STATUS <<_ACEOF
40006 if \$ac_cs_recheck; then
40007 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
40008 CONFIG_SHELL=$SHELL
40009 export CONFIG_SHELL
40010 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
40014 cat >>$CONFIG_STATUS <<\_ACEOF
40018 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
40019 ## Running $as_me. ##
40025 cat >>$CONFIG_STATUS <<_ACEOF
40028 cat >>$CONFIG_STATUS <<\_ACEOF
40030 # Handling of arguments.
40031 for ac_config_target
in $ac_config_targets
40033 case $ac_config_target in
40034 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
40035 "ltdlconf.h") CONFIG_HEADERS
="$CONFIG_HEADERS ltdlconf.h" ;;
40036 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
40037 "iodev/Makefile") CONFIG_FILES
="$CONFIG_FILES iodev/Makefile" ;;
40038 "bx_debug/Makefile") CONFIG_FILES
="$CONFIG_FILES bx_debug/Makefile" ;;
40039 "bios/Makefile") CONFIG_FILES
="$CONFIG_FILES bios/Makefile" ;;
40040 "cpu/Makefile") CONFIG_FILES
="$CONFIG_FILES cpu/Makefile" ;;
40041 "memory/Makefile") CONFIG_FILES
="$CONFIG_FILES memory/Makefile" ;;
40042 "gui/Makefile") CONFIG_FILES
="$CONFIG_FILES gui/Makefile" ;;
40043 "disasm/Makefile") CONFIG_FILES
="$CONFIG_FILES disasm/Makefile" ;;
40044 "${INSTRUMENT_DIR}/Makefile") CONFIG_FILES
="$CONFIG_FILES ${INSTRUMENT_DIR}/Makefile" ;;
40045 "misc/Makefile") CONFIG_FILES
="$CONFIG_FILES misc/Makefile" ;;
40046 "fpu/Makefile") CONFIG_FILES
="$CONFIG_FILES fpu/Makefile" ;;
40047 "doc/docbook/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/docbook/Makefile" ;;
40048 "build/linux/bochs-dlx") CONFIG_FILES
="$CONFIG_FILES build/linux/bochs-dlx" ;;
40049 "bxversion.h") CONFIG_FILES
="$CONFIG_FILES bxversion.h" ;;
40050 "bxversion.rc") CONFIG_FILES
="$CONFIG_FILES bxversion.rc" ;;
40051 "build/macosx/Info.plist") CONFIG_FILES
="$CONFIG_FILES build/macosx/Info.plist" ;;
40052 "build/win32/nsis/Makefile") CONFIG_FILES
="$CONFIG_FILES build/win32/nsis/Makefile" ;;
40053 "build/win32/nsis/bochs.nsi") CONFIG_FILES
="$CONFIG_FILES build/win32/nsis/bochs.nsi" ;;
40054 "host/linux/pcidev/Makefile") CONFIG_FILES
="$CONFIG_FILES host/linux/pcidev/Makefile" ;;
40056 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
40057 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
40058 { (exit 1); exit 1; }; };;
40063 # If the user did not use the arguments to specify the items to instantiate,
40064 # then the envvar interface is used. Set only those that are not.
40065 # We use the long form for the default assignment because of an extremely
40066 # bizarre bug on SunOS 4.1.3.
40067 if $ac_need_defaults; then
40068 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
40069 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
40072 # Have a temporary directory for convenience. Make it in the build tree
40073 # simply because there is no reason against having it here, and in addition,
40074 # creating and moving files from /tmp can sometimes cause problems.
40075 # Hook for its removal unless debugging.
40076 # Note that there is a small window in which the directory will not be cleaned:
40077 # after its creation but before its name has been assigned to `$tmp'.
40081 trap 'exit_status=$?
40082 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
40084 trap '{ (exit 1); exit 1; }' 1 2 13 15
40086 # Create a (secure) tmp directory for tmp files.
40089 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
40090 test -n "$tmp" && test -d "$tmp"
40093 tmp
=.
/conf$$
-$RANDOM
40094 (umask 077 && mkdir
"$tmp")
40097 echo "$me: cannot create a temporary directory in ." >&2
40098 { (exit 1); exit 1; }
40102 # Set up the sed scripts for CONFIG_FILES section.
40105 # No need to generate the scripts if there are no CONFIG_FILES.
40106 # This happens for instance when ./config.status config.h
40107 if test -n "$CONFIG_FILES"; then
40114 for ac_last_try
in false false false false false
:; do
40115 cat >conf$
$subs.
sed <<_ACEOF
40116 SHELL!$SHELL$ac_delim
40117 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
40118 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
40119 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
40120 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
40121 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
40122 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
40123 exec_prefix!$exec_prefix$ac_delim
40124 prefix!$prefix$ac_delim
40125 program_transform_name!$program_transform_name$ac_delim
40126 bindir!$bindir$ac_delim
40127 sbindir!$sbindir$ac_delim
40128 libexecdir!$libexecdir$ac_delim
40129 datarootdir!$datarootdir$ac_delim
40130 datadir!$datadir$ac_delim
40131 sysconfdir!$sysconfdir$ac_delim
40132 sharedstatedir!$sharedstatedir$ac_delim
40133 localstatedir!$localstatedir$ac_delim
40134 includedir!$includedir$ac_delim
40135 oldincludedir!$oldincludedir$ac_delim
40136 docdir!$docdir$ac_delim
40137 infodir!$infodir$ac_delim
40138 htmldir!$htmldir$ac_delim
40139 dvidir!$dvidir$ac_delim
40140 pdfdir!$pdfdir$ac_delim
40141 psdir!$psdir$ac_delim
40142 libdir!$libdir$ac_delim
40143 localedir!$localedir$ac_delim
40144 mandir!$mandir$ac_delim
40145 DEFS!$DEFS$ac_delim
40146 ECHO_C!$ECHO_C$ac_delim
40147 ECHO_N!$ECHO_N$ac_delim
40148 ECHO_T!$ECHO_T$ac_delim
40149 LIBS!$LIBS$ac_delim
40150 build_alias!$build_alias$ac_delim
40151 host_alias!$host_alias$ac_delim
40152 target_alias!$target_alias$ac_delim
40153 build!$build$ac_delim
40154 build_cpu!$build_cpu$ac_delim
40155 build_vendor!$build_vendor$ac_delim
40156 build_os!$build_os$ac_delim
40157 host!$host$ac_delim
40158 host_cpu!$host_cpu$ac_delim
40159 host_vendor!$host_vendor$ac_delim
40160 host_os!$host_os$ac_delim
40161 target!$target$ac_delim
40162 target_cpu!$target_cpu$ac_delim
40163 target_vendor!$target_vendor$ac_delim
40164 target_os!$target_os$ac_delim
40166 CFLAGS!$CFLAGS$ac_delim
40167 LDFLAGS!$LDFLAGS$ac_delim
40168 CPPFLAGS!$CPPFLAGS$ac_delim
40169 ac_ct_CC!$ac_ct_CC$ac_delim
40170 EXEEXT!$EXEEXT$ac_delim
40171 OBJEXT!$OBJEXT$ac_delim
40173 CXXFLAGS!$CXXFLAGS$ac_delim
40174 ac_ct_CXX!$ac_ct_CXX$ac_delim
40175 SET_MAKE!$SET_MAKE$ac_delim
40176 GREP!$GREP$ac_delim
40177 EGREP!$EGREP$ac_delim
40178 LN_S!$LN_S$ac_delim
40179 ECHO!$ECHO$ac_delim
40181 RANLIB!$RANLIB$ac_delim
40182 STRIP!$STRIP$ac_delim
40184 CXXCPP!$CXXCPP$ac_delim
40186 FFLAGS!$FFLAGS$ac_delim
40187 ac_ct_F77!$ac_ct_F77$ac_delim
40188 LIBTOOL!$LIBTOOL$ac_delim
40189 LIBADD_DL!$LIBADD_DL$ac_delim
40190 XMKMF!$XMKMF$ac_delim
40191 X_CFLAGS!$X_CFLAGS$ac_delim
40192 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
40193 X_LIBS!$X_LIBS$ac_delim
40194 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
40195 BX_USE_IDLE_HACK!$BX_USE_IDLE_HACK$ac_delim
40196 DEFINE_PLUGIN_PATH!$DEFINE_PLUGIN_PATH$ac_delim
40197 NONPLUGIN_GUI_LINK_OPTS!$NONPLUGIN_GUI_LINK_OPTS$ac_delim
40198 OBJS64!$OBJS64$ac_delim
40199 IOAPIC_OBJS!$IOAPIC_OBJS$ac_delim
40200 BX_COMPRESSED_HD_SUPPORT!$BX_COMPRESSED_HD_SUPPORT$ac_delim
40201 NE2K_OBJS!$NE2K_OBJS$ac_delim
40202 BX_SUPPORT_ACPI!$BX_SUPPORT_ACPI$ac_delim
40203 PCI_OBJ!$PCI_OBJ$ac_delim
40204 KERNELDIR!$KERNELDIR$ac_delim
40205 LSMOD!$LSMOD$ac_delim
40206 INSMOD!$INSMOD$ac_delim
40207 RMMOD!$RMMOD$ac_delim
40208 DEPMOD!$DEPMOD$ac_delim
40209 PCIDEV_MODULE_MAKE_ALL!$PCIDEV_MODULE_MAKE_ALL$ac_delim
40210 KERNEL_MODULE_SUFFIX!$KERNEL_MODULE_SUFFIX$ac_delim
40211 USBDEV_OBJS!$USBDEV_OBJS$ac_delim
40212 SCSI_OBJS!$SCSI_OBJS$ac_delim
40215 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
40217 elif $ac_last_try; then
40218 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
40219 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
40220 { (exit 1); exit 1; }; }
40222 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
40226 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
40227 if test -n "$ac_eof"; then
40228 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
40229 ac_eof
=`expr $ac_eof + 1`
40232 cat >>$CONFIG_STATUS <<_ACEOF
40233 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
40234 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
40237 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
40238 s/^/s,@/; s/!/@,|#_!!_#|/
40241 s/'"$ac_delim"'$/,g/; t
40243 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
40244 ' >>$CONFIG_STATUS <conf$
$subs.
sed
40245 rm -f conf$
$subs.
sed
40246 cat >>$CONFIG_STATUS <<_ACEOF
40252 for ac_last_try
in false false false false false
:; do
40253 cat >conf$
$subs.
sed <<_ACEOF
40254 NETLOW_OBJS!$NETLOW_OBJS$ac_delim
40255 SUFFIX_LINE!$SUFFIX_LINE$ac_delim
40256 CPP_SUFFIX!$CPP_SUFFIX$ac_delim
40257 DEBUGGER_VAR!$DEBUGGER_VAR$ac_delim
40258 DISASM_VAR!$DISASM_VAR$ac_delim
40259 READLINE_LIB!$READLINE_LIB$ac_delim
40260 INSTRUMENT_DIR!$INSTRUMENT_DIR$ac_delim
40261 INSTRUMENT_VAR!$INSTRUMENT_VAR$ac_delim
40262 FPU_VAR!$FPU_VAR$ac_delim
40263 CDROM_OBJS!$CDROM_OBJS$ac_delim
40264 SB16_OBJS!$SB16_OBJS$ac_delim
40265 SOUNDLOW_OBJS!$SOUNDLOW_OBJS$ac_delim
40266 SOUND_LINK_OPTS!$SOUND_LINK_OPTS$ac_delim
40267 GAME_OBJS!$GAME_OBJS$ac_delim
40268 GDBSTUB_VAR!$GDBSTUB_VAR$ac_delim
40269 IODEBUG_OBJS!$IODEBUG_OBJS$ac_delim
40270 DOCBOOK2HTML!$DOCBOOK2HTML$ac_delim
40271 BUILD_DOCBOOK_VAR!$BUILD_DOCBOOK_VAR$ac_delim
40272 INSTALL_DOCBOOK_VAR!$INSTALL_DOCBOOK_VAR$ac_delim
40273 IODEV_LIB_VAR!$IODEV_LIB_VAR$ac_delim
40274 EXTRA_BX_OBJS!$EXTRA_BX_OBJS$ac_delim
40275 NONINLINE_VAR!$NONINLINE_VAR$ac_delim
40276 INLINE_VAR!$INLINE_VAR$ac_delim
40277 EXTERNAL_DEPENDENCY!$EXTERNAL_DEPENDENCY$ac_delim
40278 EXT_DEBUG_OBJS!$EXT_DEBUG_OBJS$ac_delim
40279 RC_CMD!$RC_CMD$ac_delim
40280 WX_CONFIG!$WX_CONFIG$ac_delim
40281 XPM_LIB!$XPM_LIB$ac_delim
40282 PKG_CONFIG!$PKG_CONFIG$ac_delim
40283 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
40284 GTK_LIBS!$GTK_LIBS$ac_delim
40285 GUI_CFLAGS!$GUI_CFLAGS$ac_delim
40286 GUI_CXXFLAGS!$GUI_CXXFLAGS$ac_delim
40287 WX_CFLAGS!$WX_CFLAGS$ac_delim
40288 WX_CXXFLAGS!$WX_CXXFLAGS$ac_delim
40289 WGET!$WGET$ac_delim
40290 DIALOG_OBJS!$DIALOG_OBJS$ac_delim
40291 EXPORT_DYNAMIC!$EXPORT_DYNAMIC$ac_delim
40292 PTHREAD_CC!$PTHREAD_CC$ac_delim
40293 PTHREAD_LIBS!$PTHREAD_LIBS$ac_delim
40294 PTHREAD_CFLAGS!$PTHREAD_CFLAGS$ac_delim
40295 INSTALL_TARGET!$INSTALL_TARGET$ac_delim
40296 INSTALL_LIST_FOR_PLATFORM!$INSTALL_LIST_FOR_PLATFORM$ac_delim
40297 RFB_LIBS!$RFB_LIBS$ac_delim
40298 GUI_OBJS!$GUI_OBJS$ac_delim
40299 DEVICE_LINK_OPTS!$DEVICE_LINK_OPTS$ac_delim
40300 GUI_LINK_OPTS!$GUI_LINK_OPTS$ac_delim
40301 GUI_LINK_OPTS_TERM!$GUI_LINK_OPTS_TERM$ac_delim
40302 GUI_LINK_OPTS_WX!$GUI_LINK_OPTS_WX$ac_delim
40303 BXIMAGE_LINK_OPTS!$BXIMAGE_LINK_OPTS$ac_delim
40304 DASH!$DASH$ac_delim
40305 SLASH!$SLASH$ac_delim
40306 CXXFP!$CXXFP$ac_delim
40309 MAKELIB!$MAKELIB$ac_delim
40310 RMCOMMAND!$RMCOMMAND$ac_delim
40311 LINK!$LINK$ac_delim
40312 LINK_CONSOLE!$LINK_CONSOLE$ac_delim
40314 PRIMARY_TARGET!$PRIMARY_TARGET$ac_delim
40315 PLUGIN_LIBNAME_TRANSFORMATION!$PLUGIN_LIBNAME_TRANSFORMATION$ac_delim
40316 COMMAND_SEPARATOR!$COMMAND_SEPARATOR$ac_delim
40317 CD_UP_ONE!$CD_UP_ONE$ac_delim
40318 CD_UP_TWO!$CD_UP_TWO$ac_delim
40319 CD_UP_THREE!$CD_UP_THREE$ac_delim
40320 VERSION!$VERSION$ac_delim
40321 VER_STRING!$VER_STRING$ac_delim
40322 WIN_VER_STRING!$WIN_VER_STRING$ac_delim
40323 REL_STRING!$REL_STRING$ac_delim
40324 EXTRA_LINK_OPTS!$EXTRA_LINK_OPTS$ac_delim
40325 GUI_NON_PLUGIN_OBJS!$GUI_NON_PLUGIN_OBJS$ac_delim
40326 GUI_PLUGIN_OBJS!$GUI_PLUGIN_OBJS$ac_delim
40327 IODEV_NON_PLUGIN_OBJS!$IODEV_NON_PLUGIN_OBJS$ac_delim
40328 IODEV_PLUGIN_OBJS!$IODEV_PLUGIN_OBJS$ac_delim
40329 PLUGIN_VAR!$PLUGIN_VAR$ac_delim
40330 PLUGIN_TARGET!$PLUGIN_TARGET$ac_delim
40331 INSTALL_PLUGINS_VAR!$INSTALL_PLUGINS_VAR$ac_delim
40332 GZIP!$GZIP$ac_delim
40334 LIBOBJS!$LIBOBJS$ac_delim
40335 LTLIBOBJS!$LTLIBOBJS$ac_delim
40338 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 82; then
40340 elif $ac_last_try; then
40341 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
40342 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
40343 { (exit 1); exit 1; }; }
40345 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
40349 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
40350 if test -n "$ac_eof"; then
40351 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
40352 ac_eof
=`expr $ac_eof + 1`
40355 cat >>$CONFIG_STATUS <<_ACEOF
40356 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
40357 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
40360 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
40361 s/^/s,@/; s/!/@,|#_!!_#|/
40364 s/'"$ac_delim"'$/,g/; t
40366 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
40367 ' >>$CONFIG_STATUS <conf$
$subs.
sed
40368 rm -f conf$
$subs.
sed
40369 cat >>$CONFIG_STATUS <<_ACEOF
40376 # VPATH may cause trouble with some makes, so we remove $(srcdir),
40377 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
40378 # trailing colons and then remove the whole line if VPATH becomes empty
40379 # (actually we leave an empty line to preserve line numbers).
40380 if test "x$srcdir" = x.
; then
40381 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
40382 s/:*\$(srcdir):*/:/
40383 s/:*\${srcdir}:*/:/
40385 s/^\([^=]*=[ ]*\):*/\1/
40391 cat >>$CONFIG_STATUS <<\_ACEOF
40392 fi # test -n "$CONFIG_FILES"
40395 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS
40398 :[FHLC
]) ac_mode
=$ac_tag; continue;;
40400 case $ac_mode$ac_tag in
40402 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
40403 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
40404 { (exit 1); exit 1; }; };;
40405 :[FH
]-) ac_tag
=-:-;;
40406 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
40423 -) ac_f
="$tmp/stdin";;
40424 *) # Look for the file first in the build tree, then in the source tree
40425 # (if the path is not absolute). The absolute path cannot be DOS-style,
40426 # because $ac_f cannot contain `:'.
40430 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
40432 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
40433 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
40434 { (exit 1); exit 1; }; };;
40436 ac_file_inputs
="$ac_file_inputs $ac_f"
40439 # Let's still pretend it is `configure' which instantiates (i.e., don't
40440 # use $as_me), people would be surprised to read:
40441 # /* config.h. Generated by config.status. */
40442 configure_input
="Generated from "`IFS=:
40443 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
40444 if test x
"$ac_file" != x-
; then
40445 configure_input
="$ac_file. $configure_input"
40446 { echo "$as_me:$LINENO: creating $ac_file" >&5
40447 echo "$as_me: creating $ac_file" >&6;}
40451 *:-:* |
*:-) cat >"$tmp/stdin";;
40456 ac_dir
=`$as_dirname -- "$ac_file" ||
40457 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40458 X"$ac_file" : 'X\(//\)[^/]' \| \
40459 X"$ac_file" : 'X\(//\)$' \| \
40460 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
40462 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
40466 /^X\(\/\/\)[^/].*/{
40481 -*) as_dir
=.
/$as_dir;;
40483 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
40487 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
40488 *) as_qdir
=$as_dir;;
40490 as_dirs
="'$as_qdir' $as_dirs"
40491 as_dir
=`$as_dirname -- "$as_dir" ||
40492 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40493 X"$as_dir" : 'X\(//\)[^/]' \| \
40494 X"$as_dir" : 'X\(//\)$' \| \
40495 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
40497 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
40501 /^X\(\/\/\)[^/].*/{
40514 test -d "$as_dir" && break
40516 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
40517 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
40518 echo "$as_me: error: cannot create directory $as_dir" >&2;}
40519 { (exit 1); exit 1; }; }; }
40523 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
40525 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
40526 # A ".." for each directory in $ac_dir_suffix.
40527 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
40528 case $ac_top_builddir_sub in
40529 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
40530 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
40533 ac_abs_top_builddir
=$ac_pwd
40534 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
40535 # for backward compatibility:
40536 ac_top_builddir
=$ac_top_build_prefix
40539 .
) # We are building in place.
40541 ac_top_srcdir
=$ac_top_builddir_sub
40542 ac_abs_top_srcdir
=$ac_pwd ;;
40543 [\\/]* | ?
:[\\/]* ) # Absolute name.
40544 ac_srcdir
=$srcdir$ac_dir_suffix;
40545 ac_top_srcdir
=$srcdir
40546 ac_abs_top_srcdir
=$srcdir ;;
40547 *) # Relative name.
40548 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
40549 ac_top_srcdir
=$ac_top_build_prefix$srcdir
40550 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
40552 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
40563 cat >>$CONFIG_STATUS <<\_ACEOF
40564 # If the template does not know about datarootdir, expand it.
40565 # FIXME: This hack should be removed a few years after 2.60.
40566 ac_datarootdir_hack
=; ac_datarootdir_seen
=
40568 case `sed -n '/datarootdir/ {
40577 ' $ac_file_inputs` in
40578 *datarootdir
*) ac_datarootdir_seen
=yes;;
40579 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
40580 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
40581 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
40583 cat >>$CONFIG_STATUS <<_ACEOF
40584 ac_datarootdir_hack='
40585 s&@datadir@&$datadir&g
40586 s&@docdir@&$docdir&g
40587 s&@infodir@&$infodir&g
40588 s&@localedir@&$localedir&g
40589 s&@mandir@&$mandir&g
40590 s&\\\${datarootdir}&$datarootdir&g' ;;
40594 # Neutralize VPATH when `$srcdir' = `.'.
40595 # Shell code in configure.ac might set extrasub.
40596 # FIXME: do we really want to maintain this feature?
40597 cat >>$CONFIG_STATUS <<_ACEOF
40601 cat >>$CONFIG_STATUS <<\_ACEOF
40603 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
40604 s
&@configure_input@
&$configure_input&;t t
40605 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
40606 s
&@srcdir@
&$ac_srcdir&;t t
40607 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
40608 s
&@top_srcdir@
&$ac_top_srcdir&;t t
40609 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
40610 s
&@builddir@
&$ac_builddir&;t t
40611 s
&@abs_builddir@
&$ac_abs_builddir&;t t
40612 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
40613 $ac_datarootdir_hack
40614 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
40616 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
40617 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
40618 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
40619 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
40620 which seems to be undefined. Please make sure it is defined." >&5
40621 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
40622 which seems to be undefined. Please make sure it is defined." >&2;}
40626 -) cat "$tmp/out"; rm -f "$tmp/out";;
40627 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
40636 # Transform confdefs.h into a sed script `conftest.defines', that
40637 # substitutes the proper values into config.h.in to produce config.h.
40638 rm -f conftest.defines conftest.
tail
40639 # First, append a space to every undef/define line, to ease matching.
40640 echo 's/$/ /' >conftest.defines
40641 # Then, protect against being on the right side of a sed subst, or in
40642 # an unquoted here document, in config.status. If some macros were
40643 # called several times there might be several #defines for the same
40644 # symbol, which is useless. But do not sort them, since the last
40645 # AC_DEFINE must be honored.
40646 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
40647 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
40648 # NAME is the cpp macro being defined, VALUE is the value it is being given.
40649 # PARAMS is the parameter list in the macro definition--in most cases, it's
40650 # just an empty string.
40651 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
40652 ac_dB
='\\)[ (].*,\\1define\\2'
40660 s/^[ ]*#[ ]*define[ ][ ]*//
40665 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
40666 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
40667 ' >>conftest.defines
40669 # Remove the space that was appended to ease matching.
40670 # Then replace #undef with comments. This is necessary, for
40671 # example, in the case of _POSIX_SOURCE, which is predefined and required
40672 # on some systems where configure will not decide to define it.
40673 # (The regexp can be short, since the line contains either #define or #undef.)
40675 s,^[ #]*u.*,/* & */,' >>conftest.defines
40677 # Break up conftest.defines:
40678 ac_max_sed_lines
=50
40680 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
40681 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
40682 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
40684 ac_in
='$ac_file_inputs'
40685 ac_out
='"$tmp/out1"'
40686 ac_nxt
='"$tmp/out2"'
40690 # Write a here document:
40691 cat >>$CONFIG_STATUS <<_ACEOF
40692 # First, check the format of the line:
40693 cat >"\$tmp/defines.sed" <<\\CEOF
40694 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
40695 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
40699 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
40701 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
40702 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
40703 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
40704 grep . conftest.
tail >/dev
/null ||
break
40705 rm -f conftest.defines
40706 mv conftest.
tail conftest.defines
40708 rm -f conftest.defines conftest.
tail
40710 echo "ac_result=$ac_in" >>$CONFIG_STATUS
40711 cat >>$CONFIG_STATUS <<\_ACEOF
40712 if test x
"$ac_file" != x-
; then
40713 echo "/* $configure_input */" >"$tmp/config.h"
40714 cat "$ac_result" >>"$tmp/config.h"
40715 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
40716 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
40717 echo "$as_me: $ac_file is unchanged" >&6;}
40720 mv "$tmp/config.h" $ac_file
40723 echo "/* $configure_input */"
40735 { (exit 0); exit 0; }
40737 chmod +x
$CONFIG_STATUS
40738 ac_clean_files
=$ac_clean_files_save
40741 # configure is writing to config.log, and then calls config.status.
40742 # config.status does its own redirection, appending to config.log.
40743 # Unfortunately, on DOS this fails, as config.log is still kept open
40744 # by configure, so config.status won't be able to write to it; its
40745 # output is simply discarded. So we exec the FD to /dev/null,
40746 # effectively closing config.log, so it can be properly (re)opened and
40747 # appended to by config.status. When coming back to configure, we
40748 # need to make the FD available again.
40749 if test "$no_create" != yes; then
40751 ac_config_status_args
=
40752 test "$silent" = yes &&
40753 ac_config_status_args
="$ac_config_status_args --quiet"
40755 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
40757 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
40758 # would make configure fail if this is the last instruction.
40759 $ac_cs_success ||
{ (exit 1); exit 1; }