Fixed compilation error
[bochs-mirror.git] / configure
blob39d1840e33b55b9549fb0efcc757c41616115f17
1 #! /bin/sh
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
17 emulate sh
18 NULLCMD=:
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+"$@"}'='"$@"'
22 setopt NO_GLOB_SUBST
23 else
24 case `(set -o) 2>/dev/null` in
25 *posix*) set -o posix ;;
26 esac
33 # PATH needs CR
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
45 chmod +x conf$$.sh
46 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
47 PATH_SEPARATOR=';'
48 else
49 PATH_SEPARATOR=:
51 rm -f conf$$.sh
54 # Support unset when possible.
55 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
56 as_unset=unset
57 else
58 as_unset=false
62 # IFS
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.)
67 as_nl='
69 IFS=" "" $as_nl"
71 # Find who we are. Look in the path if we contain no directory separator.
72 case $0 in
73 *[\\/]* ) as_myself=$0 ;;
74 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
75 for as_dir in $PATH
77 IFS=$as_save_IFS
78 test -z "$as_dir" && as_dir=.
79 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
80 done
81 IFS=$as_save_IFS
84 esac
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
88 as_myself=$0
90 if test ! -f "$as_myself"; then
91 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
92 { (exit 1); exit 1; }
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
98 done
99 PS1='$ '
100 PS2='> '
101 PS4='+ '
103 # NLS nuisances.
104 for as_var in \
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 \
107 LC_TELEPHONE LC_TIME
109 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
110 eval $as_var=C; export $as_var
111 else
112 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
114 done
116 # Required to use basename.
117 if expr a : '\(a\)' >/dev/null 2>&1 &&
118 test "X`expr 00001 : '.*\(...\)'`" = X001; then
119 as_expr=expr
120 else
121 as_expr=false
124 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
125 as_basename=basename
126 else
127 as_basename=false
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 ||
136 echo X/"$0" |
137 sed '/^.*\/\([^/][^/]*\)\/*$/{
138 s//\1/
141 /^X\/\(\/\/\)$/{
142 s//\1/
145 /^X\/\(\/\).*/{
146 s//\1/
149 s/.*/./; q'`
151 # CDPATH.
152 $as_unset CDPATH
155 if test "x$CONFIG_SHELL" = x; then
156 if (eval ":") 2>/dev/null; then
157 as_have_required=yes
158 else
159 as_have_required=no
162 if test $as_have_required = yes && (eval ":
163 (as_func_return () {
164 (exit \$1)
166 as_func_success () {
167 as_func_return 0
169 as_func_failure () {
170 as_func_return 1
172 as_func_ret_success () {
173 return 0
175 as_func_ret_failure () {
176 return 1
179 exitcode=0
180 if as_func_success; then
182 else
183 exitcode=1
184 echo as_func_success failed.
187 if as_func_failure; then
188 exitcode=1
189 echo as_func_failure succeeded.
192 if as_func_ret_success; then
194 else
195 exitcode=1
196 echo as_func_ret_success failed.
199 if as_func_ret_failure; then
200 exitcode=1
201 echo as_func_ret_failure succeeded.
204 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
206 else
207 exitcode=1
208 echo positional parameters were not saved.
211 test \$exitcode = 0) || { (exit 1); exit 1; }
214 as_lineno_1=\$LINENO
215 as_lineno_2=\$LINENO
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
220 else
221 as_candidate_shells=
222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
223 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 IFS=$as_save_IFS
226 test -z "$as_dir" && as_dir=.
227 case $as_dir in
229 for as_base in sh bash ksh sh5; do
230 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
231 done;;
232 esac
233 done
234 IFS=$as_save_IFS
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
242 emulate sh
243 NULLCMD=:
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+"$@"}'='"$@"'
247 setopt NO_GLOB_SUBST
248 else
249 case `(set -o) 2>/dev/null` in
250 *posix*) set -o posix ;;
251 esac
257 _ASEOF
258 }; then
259 CONFIG_SHELL=$as_shell
260 as_have_required=yes
261 if { "$as_shell" 2> /dev/null <<\_ASEOF
262 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
263 emulate sh
264 NULLCMD=:
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+"$@"}'='"$@"'
268 setopt NO_GLOB_SUBST
269 else
270 case `(set -o) 2>/dev/null` in
271 *posix*) set -o posix ;;
272 esac
278 (as_func_return () {
279 (exit $1)
281 as_func_success () {
282 as_func_return 0
284 as_func_failure () {
285 as_func_return 1
287 as_func_ret_success () {
288 return 0
290 as_func_ret_failure () {
291 return 1
294 exitcode=0
295 if as_func_success; then
297 else
298 exitcode=1
299 echo as_func_success failed.
302 if as_func_failure; then
303 exitcode=1
304 echo as_func_failure succeeded.
307 if as_func_ret_success; then
309 else
310 exitcode=1
311 echo as_func_ret_success failed.
314 if as_func_ret_failure; then
315 exitcode=1
316 echo as_func_ret_failure succeeded.
319 if ( set x; as_func_ret_success y && test x = "$1" ); then
321 else
322 exitcode=1
323 echo positional parameters were not saved.
326 test $exitcode = 0) || { (exit 1); exit 1; }
329 as_lineno_1=$LINENO
330 as_lineno_2=$LINENO
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; }
334 _ASEOF
335 }; then
336 break
341 done
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
346 done
347 export CONFIG_SHELL
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 () {
368 (exit \$1)
370 as_func_success () {
371 as_func_return 0
373 as_func_failure () {
374 as_func_return 1
376 as_func_ret_success () {
377 return 0
379 as_func_ret_failure () {
380 return 1
383 exitcode=0
384 if as_func_success; then
386 else
387 exitcode=1
388 echo as_func_success failed.
391 if as_func_failure; then
392 exitcode=1
393 echo as_func_failure succeeded.
396 if as_func_ret_success; then
398 else
399 exitcode=1
400 echo as_func_ret_success failed.
403 if as_func_ret_failure; then
404 exitcode=1
405 echo as_func_ret_failure succeeded.
408 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
410 else
411 exitcode=1
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
419 echo message
424 as_lineno_1=$LINENO
425 as_lineno_2=$LINENO
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
435 # case at line end.
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. :-)
439 sed -n '
441 /[$]LINENO/=
442 ' <$as_myself |
443 sed '
444 s/[$]LINENO.*/&-/
445 t lineno
447 :lineno
449 :loop
450 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
451 t loop
452 s/-\n.*//
453 ' >$as_me.lineno &&
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).
461 . "./$as_me.lineno"
462 # Exit status is that of the last command.
463 exit
467 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
468 as_dirname=dirname
469 else
470 as_dirname=false
473 ECHO_C= ECHO_N= ECHO_T=
474 case `echo -n x` in
475 -n*)
476 case `echo 'x\c'` in
477 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
478 *) ECHO_C='\c';;
479 esac;;
481 ECHO_N='-n';;
482 esac
484 if expr a : '\(a\)' >/dev/null 2>&1 &&
485 test "X`expr 00001 : '.*\(...\)'`" = X001; then
486 as_expr=expr
487 else
488 as_expr=false
491 rm -f conf$$ conf$$.exe conf$$.file
492 if test -d conf$$.dir; then
493 rm -f conf$$.dir/conf$$.file
494 else
495 rm -f conf$$.dir
496 mkdir conf$$.dir
498 echo >conf$$.file
499 if ln -s conf$$.file conf$$ 2>/dev/null; then
500 as_ln_s='ln -s'
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 ||
506 as_ln_s='cp -p'
507 elif ln conf$$.file conf$$ 2>/dev/null; then
508 as_ln_s=ln
509 else
510 as_ln_s='cp -p'
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
516 as_mkdir_p=:
517 else
518 test -d ./-p && rmdir ./-p
519 as_mkdir_p=false
522 if test -x / >/dev/null 2>&1; then
523 as_test_x='test -x'
524 else
525 if ls -dL / >/dev/null 2>&1; then
526 as_ls_L_option=L
527 else
528 as_ls_L_option=
530 as_test_x='
531 eval sh -c '\''
532 if test -d "$1"; then
533 test -d "$1/.";
534 else
535 case $1 in
536 -*)set "./$1";;
537 esac;
538 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
539 ???[sx]*):;;*)false;;esac;fi
540 '\'' sh
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}
557 case X$ECHO in
558 X*--fallback-echo)
559 # Remove one level of quotation (which was required for Make).
560 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
562 esac
564 echo=${ECHO-echo}
565 if test "X$1" = X--no-reexec; then
566 # Discard the --no-reexec flag, and continue.
567 shift
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!
574 else
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
581 shift
582 cat <<EOF
585 exit 0
588 # The HP-UX ksh and POSIX shell print the target directory to stdout
589 # if CDPATH is set.
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
600 then
601 break
603 done
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
610 else
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
619 IFS="$lt_save_ifs"
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
624 echo="$dir/echo"
625 break
627 done
628 IFS="$lt_save_ifs"
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.
636 echo='print -r'
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
643 export CONFIG_SHELL
644 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
645 else
646 # Try using printf.
647 echo='printf %s\n'
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
651 # Cool, printf works
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
658 export CONFIG_SHELL
659 SHELL="$CONFIG_SHELL"
660 export 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"
667 else
668 # maybe with a smaller string...
669 prev=:
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
673 then
674 break
676 prev="$cmd"
677 done
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+"$@"}
683 else
684 # Oops. We lost completely, so just stick with echo.
685 echo=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.
695 ECHO=$echo
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
709 # Name of the host.
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`
715 # Initializations.
717 ac_default_prefix=/usr/local
718 ac_clean_files=
719 ac_config_libobj_dir=.
720 LIBOBJS=
721 cross_compiling=no
722 subdirs=
723 MFLAGS=
724 MAKEFLAGS=
725 SHELL=${CONFIG_SHELL-/bin/sh}
727 # Identity of this package.
728 PACKAGE_NAME=
729 PACKAGE_TARNAME=
730 PACKAGE_VERSION=
731 PACKAGE_STRING=
732 PACKAGE_BUGREPORT=
734 ac_unique_file="bochs.h"
735 # Factoring default headers for most tests.
736 ac_includes_default="\
737 #include <stdio.h>
738 #ifdef HAVE_SYS_TYPES_H
739 # include <sys/types.h>
740 #endif
741 #ifdef HAVE_SYS_STAT_H
742 # include <sys/stat.h>
743 #endif
744 #ifdef STDC_HEADERS
745 # include <stdlib.h>
746 # include <stddef.h>
747 #else
748 # ifdef HAVE_STDLIB_H
749 # include <stdlib.h>
750 # endif
751 #endif
752 #ifdef HAVE_STRING_H
753 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
754 # include <memory.h>
755 # endif
756 # include <string.h>
757 #endif
758 #ifdef HAVE_STRINGS_H
759 # include <strings.h>
760 #endif
761 #ifdef HAVE_INTTYPES_H
762 # include <inttypes.h>
763 #endif
764 #ifdef HAVE_STDINT_H
765 # include <stdint.h>
766 #endif
767 #ifdef HAVE_UNISTD_H
768 # include <unistd.h>
769 #endif"
771 ac_subst_vars='SHELL
772 PATH_SEPARATOR
773 PACKAGE_NAME
774 PACKAGE_TARNAME
775 PACKAGE_VERSION
776 PACKAGE_STRING
777 PACKAGE_BUGREPORT
778 exec_prefix
779 prefix
780 program_transform_name
781 bindir
782 sbindir
783 libexecdir
784 datarootdir
785 datadir
786 sysconfdir
787 sharedstatedir
788 localstatedir
789 includedir
790 oldincludedir
791 docdir
792 infodir
793 htmldir
794 dvidir
795 pdfdir
796 psdir
797 libdir
798 localedir
799 mandir
800 DEFS
801 ECHO_C
802 ECHO_N
803 ECHO_T
804 LIBS
805 build_alias
806 host_alias
807 target_alias
808 build
809 build_cpu
810 build_vendor
811 build_os
812 host
813 host_cpu
814 host_vendor
815 host_os
816 target
817 target_cpu
818 target_vendor
819 target_os
821 CFLAGS
822 LDFLAGS
823 CPPFLAGS
824 ac_ct_CC
825 EXEEXT
826 OBJEXT
828 CXXFLAGS
829 ac_ct_CXX
830 SET_MAKE
831 GREP
832 EGREP
833 LN_S
834 ECHO
836 RANLIB
837 STRIP
839 CXXCPP
841 FFLAGS
842 ac_ct_F77
843 LIBTOOL
844 LIBADD_DL
845 XMKMF
846 X_CFLAGS
847 X_PRE_LIBS
848 X_LIBS
849 X_EXTRA_LIBS
850 BX_USE_IDLE_HACK
851 DEFINE_PLUGIN_PATH
852 NONPLUGIN_GUI_LINK_OPTS
853 OBJS64
854 IOAPIC_OBJS
855 BX_COMPRESSED_HD_SUPPORT
856 NE2K_OBJS
857 BX_SUPPORT_ACPI
858 PCI_OBJ
859 KERNELDIR
860 LSMOD
861 INSMOD
862 RMMOD
863 DEPMOD
864 PCIDEV_MODULE_MAKE_ALL
865 KERNEL_MODULE_SUFFIX
866 USBDEV_OBJS
867 SCSI_OBJS
868 NETLOW_OBJS
869 SUFFIX_LINE
870 CPP_SUFFIX
871 DEBUGGER_VAR
872 DISASM_VAR
873 READLINE_LIB
874 INSTRUMENT_DIR
875 INSTRUMENT_VAR
876 FPU_VAR
877 CDROM_OBJS
878 SB16_OBJS
879 SOUNDLOW_OBJS
880 SOUND_LINK_OPTS
881 GAME_OBJS
882 GDBSTUB_VAR
883 IODEBUG_OBJS
884 DOCBOOK2HTML
885 BUILD_DOCBOOK_VAR
886 INSTALL_DOCBOOK_VAR
887 IODEV_LIB_VAR
888 EXTRA_BX_OBJS
889 NONINLINE_VAR
890 INLINE_VAR
891 EXTERNAL_DEPENDENCY
892 EXT_DEBUG_OBJS
893 RC_CMD
894 WX_CONFIG
895 XPM_LIB
896 PKG_CONFIG
897 GTK_CFLAGS
898 GTK_LIBS
899 GUI_CFLAGS
900 GUI_CXXFLAGS
901 WX_CFLAGS
902 WX_CXXFLAGS
903 WGET
904 DIALOG_OBJS
905 EXPORT_DYNAMIC
906 PTHREAD_CC
907 PTHREAD_LIBS
908 PTHREAD_CFLAGS
909 INSTALL_TARGET
910 INSTALL_LIST_FOR_PLATFORM
911 RFB_LIBS
912 GUI_OBJS
913 DEVICE_LINK_OPTS
914 GUI_LINK_OPTS
915 GUI_LINK_OPTS_TERM
916 GUI_LINK_OPTS_WX
917 BXIMAGE_LINK_OPTS
918 DASH
919 SLASH
920 CXXFP
923 MAKELIB
924 RMCOMMAND
925 LINK
926 LINK_CONSOLE
928 PRIMARY_TARGET
929 PLUGIN_LIBNAME_TRANSFORMATION
930 COMMAND_SEPARATOR
931 CD_UP_ONE
932 CD_UP_TWO
933 CD_UP_THREE
934 VERSION
935 VER_STRING
936 WIN_VER_STRING
937 REL_STRING
938 EXTRA_LINK_OPTS
939 GUI_NON_PLUGIN_OBJS
940 GUI_PLUGIN_OBJS
941 IODEV_NON_PLUGIN_OBJS
942 IODEV_PLUGIN_OBJS
943 PLUGIN_VAR
944 PLUGIN_TARGET
945 INSTALL_PLUGINS_VAR
946 GZIP
948 LIBOBJS
949 LTLIBOBJS'
950 ac_subst_files=''
951 ac_precious_vars='build_alias
952 host_alias
953 target_alias
955 CFLAGS
956 LDFLAGS
957 LIBS
958 CPPFLAGS
960 CXXFLAGS
963 CXXCPP
965 FFLAGS
966 XMKMF
967 PKG_CONFIG
968 GTK_CFLAGS
969 GTK_LIBS'
972 # Initialize some variables set by options.
973 ac_init_help=
974 ac_init_version=false
975 # The variables have the same names as the options, with
976 # dashes changed to underlines.
977 cache_file=/dev/null
978 exec_prefix=NONE
979 no_create=
980 no_recursion=
981 prefix=NONE
982 program_prefix=NONE
983 program_suffix=NONE
984 program_transform_name=s,x,x,
985 silent=
986 site=
987 srcdir=
988 verbose=
989 x_includes=NONE
990 x_libraries=NONE
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'
1010 htmldir='${docdir}'
1011 dvidir='${docdir}'
1012 pdfdir='${docdir}'
1013 psdir='${docdir}'
1014 libdir='${exec_prefix}/lib'
1015 localedir='${datarootdir}/locale'
1016 mandir='${datarootdir}/man'
1018 ac_prev=
1019 ac_dashdash=
1020 for ac_option
1022 # If the previous option needs an argument, assign it.
1023 if test -n "$ac_prev"; then
1024 eval $ac_prev=\$ac_option
1025 ac_prev=
1026 continue
1029 case $ac_option in
1030 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1031 *) ac_optarg=yes ;;
1032 esac
1034 # Accept the important Cygnus configure options, so we can diagnose typos.
1036 case $ac_dashdash$ac_option in
1038 ac_dashdash=yes ;;
1040 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1041 ac_prev=bindir ;;
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)
1061 ac_prev=datadir ;;
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)
1082 ac_prev=docdir ;;
1083 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1084 docdir=$ac_optarg ;;
1086 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1087 ac_prev=dvidir ;;
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.
1111 with_gas=yes ;;
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)
1126 ac_prev=htmldir ;;
1127 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1128 | --ht=*)
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)
1139 ac_prev=infodir ;;
1140 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1141 infodir=$ac_optarg ;;
1143 -libdir | --libdir | --libdi | --libd)
1144 ac_prev=libdir ;;
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)
1168 ac_prev=mandir ;;
1169 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1170 mandir=$ac_optarg ;;
1172 -nfp | --nfp | --nf)
1173 # Obsolete; use --without-fp.
1174 with_fp=no ;;
1176 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1177 | --no-cr | --no-c | -n)
1178 no_create=yes ;;
1180 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1181 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1182 no_recursion=yes ;;
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)
1194 ac_prev=prefix ;;
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)
1230 ac_prev=pdfdir ;;
1231 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1232 pdfdir=$ac_optarg ;;
1234 -psdir | --psdir | --psdi | --psd | --ps)
1235 ac_prev=psdir ;;
1236 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1237 psdir=$ac_optarg ;;
1239 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1240 | -silent | --silent | --silen | --sile | --sil)
1241 silent=yes ;;
1243 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1244 ac_prev=sbindir ;;
1245 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1246 | --sbi=* | --sb=*)
1247 sbindir=$ac_optarg ;;
1249 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1250 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1251 | --sharedst | --shareds | --shared | --share | --shar \
1252 | --sha | --sh)
1253 ac_prev=sharedstatedir ;;
1254 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1255 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1256 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1257 | --sha=* | --sh=*)
1258 sharedstatedir=$ac_optarg ;;
1260 -site | --site | --sit)
1261 ac_prev=site ;;
1262 -site=* | --site=* | --sit=*)
1263 site=$ac_optarg ;;
1265 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1266 ac_prev=srcdir ;;
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)
1283 verbose=yes ;;
1285 -version | --version | --versio | --versi | --vers | -V)
1286 ac_init_version=: ;;
1288 -with-* | --with-*)
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 ;;
1306 --x)
1307 # Obsolete; use --with-x.
1308 with_x=yes ;;
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; }; }
1329 *=*)
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}
1346 esac
1347 done
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
1362 case $ac_val in
1363 [\\/$]* | ?:[\\/]* ) continue;;
1364 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1365 esac
1366 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1367 { (exit 1); exit 1; }; }
1368 done
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.
1373 build=$build_alias
1374 host=$host_alias
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
1384 cross_compiling=yes
1388 ac_tool_prefix=
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 ||
1413 echo X"$0" |
1414 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1415 s//\1/
1418 /^X\(\/\/\)[^/].*/{
1419 s//\1/
1422 /^X\(\/\/\)$/{
1423 s//\1/
1426 /^X\(\/\).*/{
1427 s//\1/
1430 s/.*/./; q'`
1431 srcdir=$ac_confdir
1432 if test ! -r "$srcdir/$ac_unique_file"; then
1433 srcdir=..
1435 else
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"
1444 ac_abs_confdir=`(
1445 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1446 { (exit 1); exit 1; }; }
1447 pwd)`
1448 # When building in place, set srcdir=.
1449 if test "$ac_abs_confdir" = "$ac_pwd"; then
1450 srcdir=.
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.
1455 case $srcdir in
1456 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1457 esac
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}
1463 done
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.
1471 cat <<_ACEOF
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.
1481 Configuration:
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
1496 [PREFIX]
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]
1525 _ACEOF
1527 cat <<\_ACEOF
1529 X features:
1530 --x-includes=DIR X include files are in DIR
1531 --x-libraries=DIR X library files are in DIR
1533 System types:
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]
1537 _ACEOF
1540 if test -n "$ac_init_help"; then
1542 cat <<\_ACEOF
1544 Optional Features:
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)
1618 Optional Packages:
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
1623 both]
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
1650 CPP C preprocessor
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.
1662 _ACEOF
1663 ac_status=$?
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
1670 ac_builddir=.
1672 case "$ac_dir" in
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/ ;;
1681 esac ;;
1682 esac
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
1688 case $srcdir in
1689 .) # We are building in place.
1690 ac_srcdir=.
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 ;;
1697 *) # Relative name.
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 ;;
1701 esac
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
1707 echo &&
1708 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1709 elif test -f "$ac_srcdir/configure"; then
1710 echo &&
1711 $SHELL "$ac_srcdir/configure" --help=recursive
1712 else
1713 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1714 fi || ac_status=$?
1715 cd "$ac_pwd" || { ac_status=$?; break; }
1716 done
1719 test -n "$ac_init_help" && exit $ac_status
1720 if $ac_init_version; then
1721 cat <<\_ACEOF
1722 configure
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.
1729 _ACEOF
1730 exit
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
1739 $ $0 $@
1741 _ACEOF
1742 exec 5>>config.log
1744 cat <<_ASUNAME
1745 ## --------- ##
1746 ## Platform. ##
1747 ## --------- ##
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`
1766 _ASUNAME
1768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1769 for as_dir in $PATH
1771 IFS=$as_save_IFS
1772 test -z "$as_dir" && as_dir=.
1773 echo "PATH: $as_dir"
1774 done
1775 IFS=$as_save_IFS
1777 } >&5
1779 cat >&5 <<_ACEOF
1782 ## ----------- ##
1783 ## Core tests. ##
1784 ## ----------- ##
1786 _ACEOF
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.
1794 ac_configure_args=
1795 ac_configure_args0=
1796 ac_configure_args1=
1797 ac_must_keep_next=false
1798 for ac_pass in 1 2
1800 for ac_arg
1802 case $ac_arg in
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)
1806 continue ;;
1807 *\'*)
1808 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1809 esac
1810 case $ac_pass in
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.
1816 else
1817 case $ac_arg in
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 ;;
1824 esac
1826 -* ) ac_must_keep_next=true ;;
1827 esac
1829 ac_configure_args="$ac_configure_args '$ac_arg'"
1831 esac
1832 done
1833 done
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.
1845 echo
1847 cat <<\_ASBOX
1848 ## ---------------- ##
1849 ## Cache variables. ##
1850 ## ---------------- ##
1851 _ASBOX
1852 echo
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
1857 case $ac_val in #(
1858 *${as_nl}*)
1859 case $ac_var in #(
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;} ;;
1862 esac
1863 case $ac_var in #(
1864 _ | IFS | as_nl) ;; #(
1865 *) $as_unset $ac_var ;;
1866 esac ;;
1867 esac
1868 done
1869 (set) 2>&1 |
1870 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1871 *${as_nl}ac_space=\ *)
1872 sed -n \
1873 "s/'\''/'\''\\\\'\'''\''/g;
1874 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1875 ;; #(
1877 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1879 esac |
1880 sort
1882 echo
1884 cat <<\_ASBOX
1885 ## ----------------- ##
1886 ## Output variables. ##
1887 ## ----------------- ##
1888 _ASBOX
1889 echo
1890 for ac_var in $ac_subst_vars
1892 eval ac_val=\$$ac_var
1893 case $ac_val in
1894 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1895 esac
1896 echo "$ac_var='\''$ac_val'\''"
1897 done | sort
1898 echo
1900 if test -n "$ac_subst_files"; then
1901 cat <<\_ASBOX
1902 ## ------------------- ##
1903 ## File substitutions. ##
1904 ## ------------------- ##
1905 _ASBOX
1906 echo
1907 for ac_var in $ac_subst_files
1909 eval ac_val=\$$ac_var
1910 case $ac_val in
1911 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1912 esac
1913 echo "$ac_var='\''$ac_val'\''"
1914 done | sort
1915 echo
1918 if test -s confdefs.h; then
1919 cat <<\_ASBOX
1920 ## ----------- ##
1921 ## confdefs.h. ##
1922 ## ----------- ##
1923 _ASBOX
1924 echo
1925 cat confdefs.h
1926 echo
1928 test "$ac_signal" != 0 &&
1929 echo "$as_me: caught signal $ac_signal"
1930 echo "$as_me: exit $exit_status"
1931 } >&5
1932 rm -f core *.core core.conftest.* &&
1933 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1934 exit $exit_status
1936 for ac_signal in 1 2 13 15; do
1937 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1938 done
1939 ac_signal=0
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"
1948 _ACEOF
1951 cat >>confdefs.h <<_ACEOF
1952 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1953 _ACEOF
1956 cat >>confdefs.h <<_ACEOF
1957 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1958 _ACEOF
1961 cat >>confdefs.h <<_ACEOF
1962 #define PACKAGE_STRING "$PACKAGE_STRING"
1963 _ACEOF
1966 cat >>confdefs.h <<_ACEOF
1967 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1968 _ACEOF
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"
1977 else
1978 set x "$ac_default_prefix/share/config.site" \
1979 "$ac_default_prefix/etc/config.site"
1981 shift
1982 for ac_site_file
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
1988 . "$ac_site_file"
1990 done
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;}
1998 case $cache_file in
1999 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2000 *) . "./$cache_file";;
2001 esac
2003 else
2004 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2005 echo "$as_me: creating cache $cache_file" >&6;}
2006 >$cache_file
2009 # Check that the precious variables saved in the cache have kept the same
2010 # value.
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
2018 set,)
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=: ;;
2022 ,set)
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=: ;;
2026 ,);;
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=:
2036 fi;;
2037 esac
2038 # Pass precious variables to config.status.
2039 if test "$ac_new_set" = set; then
2040 case $ac_new_val in
2041 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2042 *) ac_arg=$ac_var=$ac_new_val ;;
2043 esac
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'" ;;
2047 esac
2049 done
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; }; }
2074 ac_ext=c
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"
2087 VERSION="2.3.7.cvs"
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"
2095 ac_aux_dir=
2096 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2097 if test -f "$ac_dir/install-sh"; then
2098 ac_aux_dir=$ac_dir
2099 ac_install_sh="$ac_aux_dir/install-sh -c"
2100 break
2101 elif test -f "$ac_dir/install.sh"; then
2102 ac_aux_dir=$ac_dir
2103 ac_install_sh="$ac_aux_dir/install.sh -c"
2104 break
2105 elif test -f "$ac_dir/shtool"; then
2106 ac_aux_dir=$ac_dir
2107 ac_install_sh="$ac_aux_dir/shtool install -c"
2108 break
2110 done
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
2136 else
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
2153 *-*-*) ;;
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; }; };;
2157 esac
2158 build=$ac_cv_build
2159 ac_save_IFS=$IFS; IFS='-'
2160 set x $ac_cv_build
2161 shift
2162 build_cpu=$1
2163 build_vendor=$2
2164 shift; shift
2165 # Remember, the first character of IFS is used to create $*,
2166 # except with old shells:
2167 build_os=$*
2168 IFS=$ac_save_IFS
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
2176 else
2177 if test "x$host_alias" = x; then
2178 ac_cv_host=$ac_cv_build
2179 else
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; }
2189 case $ac_cv_host in
2190 *-*-*) ;;
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; }; };;
2194 esac
2195 host=$ac_cv_host
2196 ac_save_IFS=$IFS; IFS='-'
2197 set x $ac_cv_host
2198 shift
2199 host_cpu=$1
2200 host_vendor=$2
2201 shift; shift
2202 # Remember, the first character of IFS is used to create $*,
2203 # except with old shells:
2204 host_os=$*
2205 IFS=$ac_save_IFS
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
2213 else
2214 if test "x$target_alias" = x; then
2215 ac_cv_target=$ac_cv_host
2216 else
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
2227 *-*-*) ;;
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; }; };;
2231 esac
2232 target=$ac_cv_target
2233 ac_save_IFS=$IFS; IFS='-'
2234 set x $ac_cv_target
2235 shift
2236 target_cpu=$1
2237 target_vendor=$2
2238 shift; shift
2239 # Remember, the first character of IFS is used to create $*,
2240 # except with old shells:
2241 target_os=$*
2242 IFS=$ac_save_IFS
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" = \
2250 NONENONEs,x,x, &&
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; }
2258 cross_configure=1
2259 else
2260 { echo "$as_me:$LINENO: result: no" >&5
2261 echo "${ECHO_T}no" >&6; }
2262 cross_configure=0
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.
2269 NO_LT=0
2270 need_dlcompat_for_plugins=0
2271 case "$target" in
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"
2282 else
2283 # default case
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
2293 *-macos*)
2294 DEFAULT_GUI=macos # macos defaults to macos
2296 *-beos*)
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
2303 *-solaris*)
2304 ADD_FLAGS="-D_XOPEN_SOURCE_EXTENDED=1 -D__EXTENSIONS__" # required for correct function prototypes
2305 LIBS="$LIBS -lsocket -lnsl"
2306 DEFAULT_GUI=x11
2309 DEFAULT_GUI=x11
2311 esac
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"
2341 ac_ext=c
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
2353 else
2354 if test -n "$CC"; then
2355 ac_cv_prog_CC="$CC" # Let the user override the test.
2356 else
2357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2358 for as_dir in $PATH
2360 IFS=$as_save_IFS
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
2366 break 2
2368 done
2369 done
2370 IFS=$as_save_IFS
2374 CC=$ac_cv_prog_CC
2375 if test -n "$CC"; then
2376 { echo "$as_me:$LINENO: result: $CC" >&5
2377 echo "${ECHO_T}$CC" >&6; }
2378 else
2379 { echo "$as_me:$LINENO: result: no" >&5
2380 echo "${ECHO_T}no" >&6; }
2385 if test -z "$ac_cv_prog_CC"; then
2386 ac_ct_CC=$CC
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
2393 else
2394 if test -n "$ac_ct_CC"; then
2395 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2396 else
2397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2398 for as_dir in $PATH
2400 IFS=$as_save_IFS
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
2406 break 2
2408 done
2409 done
2410 IFS=$as_save_IFS
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; }
2418 else
2419 { echo "$as_me:$LINENO: result: no" >&5
2420 echo "${ECHO_T}no" >&6; }
2423 if test "x$ac_ct_CC" = x; then
2424 CC=""
2425 else
2426 case $cross_compiling:$ac_tool_warned in
2427 yes:)
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 ;;
2435 esac
2436 CC=$ac_ct_CC
2438 else
2439 CC="$ac_cv_prog_CC"
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
2450 else
2451 if test -n "$CC"; then
2452 ac_cv_prog_CC="$CC" # Let the user override the test.
2453 else
2454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2455 for as_dir in $PATH
2457 IFS=$as_save_IFS
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
2463 break 2
2465 done
2466 done
2467 IFS=$as_save_IFS
2471 CC=$ac_cv_prog_CC
2472 if test -n "$CC"; then
2473 { echo "$as_me:$LINENO: result: $CC" >&5
2474 echo "${ECHO_T}$CC" >&6; }
2475 else
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
2490 else
2491 if test -n "$CC"; then
2492 ac_cv_prog_CC="$CC" # Let the user override the test.
2493 else
2494 ac_prog_rejected=no
2495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2496 for as_dir in $PATH
2498 IFS=$as_save_IFS
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
2504 continue
2506 ac_cv_prog_CC="cc"
2507 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2508 break 2
2510 done
2511 done
2512 IFS=$as_save_IFS
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
2517 shift
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.
2522 shift
2523 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2528 CC=$ac_cv_prog_CC
2529 if test -n "$CC"; then
2530 { echo "$as_me:$LINENO: result: $CC" >&5
2531 echo "${ECHO_T}$CC" >&6; }
2532 else
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
2549 else
2550 if test -n "$CC"; then
2551 ac_cv_prog_CC="$CC" # Let the user override the test.
2552 else
2553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2554 for as_dir in $PATH
2556 IFS=$as_save_IFS
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
2562 break 2
2564 done
2565 done
2566 IFS=$as_save_IFS
2570 CC=$ac_cv_prog_CC
2571 if test -n "$CC"; then
2572 { echo "$as_me:$LINENO: result: $CC" >&5
2573 echo "${ECHO_T}$CC" >&6; }
2574 else
2575 { echo "$as_me:$LINENO: result: no" >&5
2576 echo "${ECHO_T}no" >&6; }
2580 test -n "$CC" && break
2581 done
2583 if test -z "$CC"; then
2584 ac_ct_CC=$CC
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
2593 else
2594 if test -n "$ac_ct_CC"; then
2595 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2596 else
2597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2598 for as_dir in $PATH
2600 IFS=$as_save_IFS
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
2606 break 2
2608 done
2609 done
2610 IFS=$as_save_IFS
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; }
2618 else
2619 { echo "$as_me:$LINENO: result: no" >&5
2620 echo "${ECHO_T}no" >&6; }
2624 test -n "$ac_ct_CC" && break
2625 done
2627 if test "x$ac_ct_CC" = x; then
2628 CC=""
2629 else
2630 case $cross_compiling:$ac_tool_warned in
2631 yes:)
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 ;;
2639 esac
2640 CC=$ac_ct_CC
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"
2657 case "(($ac_try" in
2658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2659 *) ac_try_echo=$ac_try;;
2660 esac
2661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2662 (eval "$ac_compiler --version >&5") 2>&5
2663 ac_status=$?
2664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2665 (exit $ac_status); }
2666 { (ac_try="$ac_compiler -v >&5"
2667 case "(($ac_try" in
2668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2669 *) ac_try_echo=$ac_try;;
2670 esac
2671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2672 (eval "$ac_compiler -v >&5") 2>&5
2673 ac_status=$?
2674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2675 (exit $ac_status); }
2676 { (ac_try="$ac_compiler -V >&5"
2677 case "(($ac_try" in
2678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2679 *) ac_try_echo=$ac_try;;
2680 esac
2681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2682 (eval "$ac_compiler -V >&5") 2>&5
2683 ac_status=$?
2684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2685 (exit $ac_status); }
2687 cat >conftest.$ac_ext <<_ACEOF
2688 /* confdefs.h. */
2689 _ACEOF
2690 cat confdefs.h >>conftest.$ac_ext
2691 cat >>conftest.$ac_ext <<_ACEOF
2692 /* end confdefs.h. */
2695 main ()
2699 return 0;
2701 _ACEOF
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
2706 # of exeext.
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.
2719 ac_rmfiles=
2720 for ac_file in $ac_files
2722 case $ac_file in
2723 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2724 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2725 esac
2726 done
2727 rm -f $ac_rmfiles
2729 if { (ac_try="$ac_link_default"
2730 case "(($ac_try" in
2731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2732 *) ac_try_echo=$ac_try;;
2733 esac
2734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2735 (eval "$ac_link_default") 2>&5
2736 ac_status=$?
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
2743 # Autoconf.
2744 for ac_file in $ac_files ''
2746 test -f "$ac_file" || continue
2747 case $ac_file in
2748 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2750 [ab].out )
2751 # We found the default executable, but exeext='' is most
2752 # certainly right.
2753 break;;
2754 *.* )
2755 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2756 then :; else
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
2763 # actually working.
2764 break;;
2766 break;;
2767 esac
2768 done
2769 test "$ac_cv_exeext" = no && ac_cv_exeext=
2771 else
2772 ac_file=''
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;;
2801 esac
2802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2803 (eval "$ac_try") 2>&5
2804 ac_status=$?
2805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2806 (exit $ac_status); }; }; then
2807 cross_compiling=no
2808 else
2809 if test "$cross_compiling" = maybe; then
2810 cross_compiling=yes
2811 else
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"
2837 case "(($ac_try" in
2838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2839 *) ac_try_echo=$ac_try;;
2840 esac
2841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2842 (eval "$ac_link") 2>&5
2843 ac_status=$?
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
2849 # `rm'.
2850 for ac_file in conftest.exe conftest conftest.*; do
2851 test -f "$ac_file" || continue
2852 case $ac_file in
2853 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2854 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2855 break;;
2856 * ) break;;
2857 esac
2858 done
2859 else
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
2873 ac_exeext=$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
2878 else
2879 cat >conftest.$ac_ext <<_ACEOF
2880 /* confdefs.h. */
2881 _ACEOF
2882 cat confdefs.h >>conftest.$ac_ext
2883 cat >>conftest.$ac_ext <<_ACEOF
2884 /* end confdefs.h. */
2887 main ()
2891 return 0;
2893 _ACEOF
2894 rm -f conftest.o conftest.obj
2895 if { (ac_try="$ac_compile"
2896 case "(($ac_try" in
2897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2898 *) ac_try_echo=$ac_try;;
2899 esac
2900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2901 (eval "$ac_compile") 2>&5
2902 ac_status=$?
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;
2907 case $ac_file in
2908 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2909 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2910 break;;
2911 esac
2912 done
2913 else
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
2929 ac_objext=$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
2934 else
2935 cat >conftest.$ac_ext <<_ACEOF
2936 /* confdefs.h. */
2937 _ACEOF
2938 cat confdefs.h >>conftest.$ac_ext
2939 cat >>conftest.$ac_ext <<_ACEOF
2940 /* end confdefs.h. */
2943 main ()
2945 #ifndef __GNUC__
2946 choke me
2947 #endif
2950 return 0;
2952 _ACEOF
2953 rm -f conftest.$ac_objext
2954 if { (ac_try="$ac_compile"
2955 case "(($ac_try" in
2956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2957 *) ac_try_echo=$ac_try;;
2958 esac
2959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2960 (eval "$ac_compile") 2>conftest.er1
2961 ac_status=$?
2962 grep -v '^ *+' conftest.er1 >conftest.err
2963 rm -f conftest.er1
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
2970 ac_compiler_gnu=yes
2971 else
2972 echo "$as_me: failed program was:" >&5
2973 sed 's/^/| /' conftest.$ac_ext >&5
2975 ac_compiler_gnu=no
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
2991 else
2992 ac_save_c_werror_flag=$ac_c_werror_flag
2993 ac_c_werror_flag=yes
2994 ac_cv_prog_cc_g=no
2995 CFLAGS="-g"
2996 cat >conftest.$ac_ext <<_ACEOF
2997 /* confdefs.h. */
2998 _ACEOF
2999 cat confdefs.h >>conftest.$ac_ext
3000 cat >>conftest.$ac_ext <<_ACEOF
3001 /* end confdefs.h. */
3004 main ()
3008 return 0;
3010 _ACEOF
3011 rm -f conftest.$ac_objext
3012 if { (ac_try="$ac_compile"
3013 case "(($ac_try" in
3014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3015 *) ac_try_echo=$ac_try;;
3016 esac
3017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3018 (eval "$ac_compile") 2>conftest.er1
3019 ac_status=$?
3020 grep -v '^ *+' conftest.er1 >conftest.err
3021 rm -f conftest.er1
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
3028 ac_cv_prog_cc_g=yes
3029 else
3030 echo "$as_me: failed program was:" >&5
3031 sed 's/^/| /' conftest.$ac_ext >&5
3033 CFLAGS=""
3034 cat >conftest.$ac_ext <<_ACEOF
3035 /* confdefs.h. */
3036 _ACEOF
3037 cat confdefs.h >>conftest.$ac_ext
3038 cat >>conftest.$ac_ext <<_ACEOF
3039 /* end confdefs.h. */
3042 main ()
3046 return 0;
3048 _ACEOF
3049 rm -f conftest.$ac_objext
3050 if { (ac_try="$ac_compile"
3051 case "(($ac_try" in
3052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3053 *) ac_try_echo=$ac_try;;
3054 esac
3055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3056 (eval "$ac_compile") 2>conftest.er1
3057 ac_status=$?
3058 grep -v '^ *+' conftest.er1 >conftest.err
3059 rm -f conftest.er1
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
3067 else
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
3072 CFLAGS="-g"
3073 cat >conftest.$ac_ext <<_ACEOF
3074 /* confdefs.h. */
3075 _ACEOF
3076 cat confdefs.h >>conftest.$ac_ext
3077 cat >>conftest.$ac_ext <<_ACEOF
3078 /* end confdefs.h. */
3081 main ()
3085 return 0;
3087 _ACEOF
3088 rm -f conftest.$ac_objext
3089 if { (ac_try="$ac_compile"
3090 case "(($ac_try" in
3091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3092 *) ac_try_echo=$ac_try;;
3093 esac
3094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3095 (eval "$ac_compile") 2>conftest.er1
3096 ac_status=$?
3097 grep -v '^ *+' conftest.er1 >conftest.err
3098 rm -f conftest.er1
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
3105 ac_cv_prog_cc_g=yes
3106 else
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
3128 CFLAGS="-g -O2"
3129 else
3130 CFLAGS="-g"
3132 else
3133 if test "$GCC" = yes; then
3134 CFLAGS="-O2"
3135 else
3136 CFLAGS=
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
3143 else
3144 ac_cv_prog_cc_c89=no
3145 ac_save_CC=$CC
3146 cat >conftest.$ac_ext <<_ACEOF
3147 /* confdefs.h. */
3148 _ACEOF
3149 cat confdefs.h >>conftest.$ac_ext
3150 cat >>conftest.$ac_ext <<_ACEOF
3151 /* end confdefs.h. */
3152 #include <stdarg.h>
3153 #include <stdio.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)
3160 char **p;
3161 int i;
3163 return p[i];
3165 static char *f (char * (*g) (char **, int), char **p, ...)
3167 char *s;
3168 va_list v;
3169 va_start (v,p);
3170 s = g (p, va_arg (v,int));
3171 va_end (v);
3172 return s;
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. */
3186 #define FOO(x) 'x'
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);
3193 int argc;
3194 char **argv;
3196 main ()
3198 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3200 return 0;
3202 _ACEOF
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"
3209 case "(($ac_try" in
3210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3211 *) ac_try_echo=$ac_try;;
3212 esac
3213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3214 (eval "$ac_compile") 2>conftest.er1
3215 ac_status=$?
3216 grep -v '^ *+' conftest.er1 >conftest.err
3217 rm -f conftest.er1
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
3225 else
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
3234 done
3235 rm -f conftest.$ac_ext
3236 CC=$ac_save_CC
3239 # AC_CACHE_VAL
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; } ;;
3244 xno)
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; } ;;
3251 esac
3254 ac_ext=c
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
3260 ac_ext=cpp
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
3267 CXX=$CCC
3268 else
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
3278 else
3279 if test -n "$CXX"; then
3280 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3281 else
3282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3283 for as_dir in $PATH
3285 IFS=$as_save_IFS
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
3291 break 2
3293 done
3294 done
3295 IFS=$as_save_IFS
3299 CXX=$ac_cv_prog_CXX
3300 if test -n "$CXX"; then
3301 { echo "$as_me:$LINENO: result: $CXX" >&5
3302 echo "${ECHO_T}$CXX" >&6; }
3303 else
3304 { echo "$as_me:$LINENO: result: no" >&5
3305 echo "${ECHO_T}no" >&6; }
3309 test -n "$CXX" && break
3310 done
3312 if test -z "$CXX"; then
3313 ac_ct_CXX=$CXX
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
3322 else
3323 if test -n "$ac_ct_CXX"; then
3324 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3325 else
3326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3327 for as_dir in $PATH
3329 IFS=$as_save_IFS
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
3335 break 2
3337 done
3338 done
3339 IFS=$as_save_IFS
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; }
3347 else
3348 { echo "$as_me:$LINENO: result: no" >&5
3349 echo "${ECHO_T}no" >&6; }
3353 test -n "$ac_ct_CXX" && break
3354 done
3356 if test "x$ac_ct_CXX" = x; then
3357 CXX="g++"
3358 else
3359 case $cross_compiling:$ac_tool_warned in
3360 yes:)
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 ;;
3368 esac
3369 CXX=$ac_ct_CXX
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"
3379 case "(($ac_try" in
3380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3381 *) ac_try_echo=$ac_try;;
3382 esac
3383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3384 (eval "$ac_compiler --version >&5") 2>&5
3385 ac_status=$?
3386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3387 (exit $ac_status); }
3388 { (ac_try="$ac_compiler -v >&5"
3389 case "(($ac_try" in
3390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3391 *) ac_try_echo=$ac_try;;
3392 esac
3393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3394 (eval "$ac_compiler -v >&5") 2>&5
3395 ac_status=$?
3396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3397 (exit $ac_status); }
3398 { (ac_try="$ac_compiler -V >&5"
3399 case "(($ac_try" in
3400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3401 *) ac_try_echo=$ac_try;;
3402 esac
3403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3404 (eval "$ac_compiler -V >&5") 2>&5
3405 ac_status=$?
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
3413 else
3414 cat >conftest.$ac_ext <<_ACEOF
3415 /* confdefs.h. */
3416 _ACEOF
3417 cat confdefs.h >>conftest.$ac_ext
3418 cat >>conftest.$ac_ext <<_ACEOF
3419 /* end confdefs.h. */
3422 main ()
3424 #ifndef __GNUC__
3425 choke me
3426 #endif
3429 return 0;
3431 _ACEOF
3432 rm -f conftest.$ac_objext
3433 if { (ac_try="$ac_compile"
3434 case "(($ac_try" in
3435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3436 *) ac_try_echo=$ac_try;;
3437 esac
3438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3439 (eval "$ac_compile") 2>conftest.er1
3440 ac_status=$?
3441 grep -v '^ *+' conftest.er1 >conftest.err
3442 rm -f conftest.er1
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
3449 ac_compiler_gnu=yes
3450 else
3451 echo "$as_me: failed program was:" >&5
3452 sed 's/^/| /' conftest.$ac_ext >&5
3454 ac_compiler_gnu=no
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
3470 else
3471 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3472 ac_cxx_werror_flag=yes
3473 ac_cv_prog_cxx_g=no
3474 CXXFLAGS="-g"
3475 cat >conftest.$ac_ext <<_ACEOF
3476 /* confdefs.h. */
3477 _ACEOF
3478 cat confdefs.h >>conftest.$ac_ext
3479 cat >>conftest.$ac_ext <<_ACEOF
3480 /* end confdefs.h. */
3483 main ()
3487 return 0;
3489 _ACEOF
3490 rm -f conftest.$ac_objext
3491 if { (ac_try="$ac_compile"
3492 case "(($ac_try" in
3493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3494 *) ac_try_echo=$ac_try;;
3495 esac
3496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3497 (eval "$ac_compile") 2>conftest.er1
3498 ac_status=$?
3499 grep -v '^ *+' conftest.er1 >conftest.err
3500 rm -f conftest.er1
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
3508 else
3509 echo "$as_me: failed program was:" >&5
3510 sed 's/^/| /' conftest.$ac_ext >&5
3512 CXXFLAGS=""
3513 cat >conftest.$ac_ext <<_ACEOF
3514 /* confdefs.h. */
3515 _ACEOF
3516 cat confdefs.h >>conftest.$ac_ext
3517 cat >>conftest.$ac_ext <<_ACEOF
3518 /* end confdefs.h. */
3521 main ()
3525 return 0;
3527 _ACEOF
3528 rm -f conftest.$ac_objext
3529 if { (ac_try="$ac_compile"
3530 case "(($ac_try" in
3531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3532 *) ac_try_echo=$ac_try;;
3533 esac
3534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3535 (eval "$ac_compile") 2>conftest.er1
3536 ac_status=$?
3537 grep -v '^ *+' conftest.er1 >conftest.err
3538 rm -f conftest.er1
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
3546 else
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
3551 CXXFLAGS="-g"
3552 cat >conftest.$ac_ext <<_ACEOF
3553 /* confdefs.h. */
3554 _ACEOF
3555 cat confdefs.h >>conftest.$ac_ext
3556 cat >>conftest.$ac_ext <<_ACEOF
3557 /* end confdefs.h. */
3560 main ()
3564 return 0;
3566 _ACEOF
3567 rm -f conftest.$ac_objext
3568 if { (ac_try="$ac_compile"
3569 case "(($ac_try" in
3570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3571 *) ac_try_echo=$ac_try;;
3572 esac
3573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3574 (eval "$ac_compile") 2>conftest.er1
3575 ac_status=$?
3576 grep -v '^ *+' conftest.er1 >conftest.err
3577 rm -f conftest.er1
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
3585 else
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
3607 CXXFLAGS="-g -O2"
3608 else
3609 CXXFLAGS="-g"
3611 else
3612 if test "$GXX" = yes; then
3613 CXXFLAGS="-O2"
3614 else
3615 CXXFLAGS=
3618 ac_ext=c
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
3629 else
3630 cat >conftest.make <<\_ACEOF
3631 SHELL = /bin/sh
3632 all:
3633 @echo '@@@%%%=$(MAKE)=@@@%%%'
3634 _ACEOF
3635 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3636 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3637 *@@@%%%=?*=@@@%%%*)
3638 eval ac_cv_prog_make_${ac_make}_set=yes;;
3640 eval ac_cv_prog_make_${ac_make}_set=no;;
3641 esac
3642 rm -f conftest.make
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; }
3647 SET_MAKE=
3648 else
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}
3658 case $enableval in
3659 yes) enable_static=yes ;;
3660 no) enable_static=no ;;
3662 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
3666 IFS="$lt_save_ifs"
3667 if test "X$pkg" = "X$p"; then
3668 enable_static=yes
3670 done
3671 IFS="$lt_save_ifs"
3673 esac
3674 else
3675 enable_static=no
3682 # Check whether --enable-shared was given.
3683 if test "${enable_shared+set}" = set; then
3684 enableval=$enable_shared; p=${PACKAGE-default}
3685 case $enableval in
3686 yes) enable_shared=yes ;;
3687 no) enable_shared=no ;;
3689 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
3693 IFS="$lt_save_ifs"
3694 if test "X$pkg" = "X$p"; then
3695 enable_shared=yes
3697 done
3698 IFS="$lt_save_ifs"
3700 esac
3701 else
3702 enable_shared=yes
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}
3709 case $enableval in
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
3717 IFS="$lt_save_ifs"
3718 if test "X$pkg" = "X$p"; then
3719 enable_fast_install=yes
3721 done
3722 IFS="$lt_save_ifs"
3724 esac
3725 else
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
3734 else
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
3738 for as_dir in $PATH
3740 IFS=$as_save_IFS
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"
3747 done
3748 done
3749 done
3750 lt_ac_max=0
3751 lt_ac_count=0
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
3757 lt_ac_count=0
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
3762 break
3764 while true; do
3765 cat conftest.in conftest.in >conftest.tmp
3766 mv conftest.tmp conftest.in
3767 cp conftest.in conftest.nl
3768 echo >>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
3778 done
3779 done
3780 SED=$lt_cv_path_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
3791 else
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
3797 else
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
3803 IFS=$as_save_IFS
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
3812 *GNU*)
3813 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3815 ac_count=0
3816 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3817 while :
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
3833 done
3834 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3835 esac
3838 $ac_path_GREP_found && break 3
3839 done
3840 done
3842 done
3843 IFS=$as_save_IFS
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/xpg4/bin" >&5
3851 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3852 { (exit 1); exit 1; }; }
3855 else
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
3870 else
3871 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3872 then ac_cv_path_EGREP="$GREP -E"
3873 else
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
3879 else
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
3885 IFS=$as_save_IFS
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
3894 *GNU*)
3895 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3897 ac_count=0
3898 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3899 while :
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
3915 done
3916 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3917 esac
3920 $ac_path_EGREP_found && break 3
3921 done
3922 done
3924 done
3925 IFS=$as_save_IFS
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/xpg4/bin" >&5
3933 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3934 { (exit 1); exit 1; }; }
3937 else
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
3953 else
3954 with_gnu_ld=no
3957 ac_prog=ld
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; }
3962 case $host in
3963 *-*-mingw*)
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` ;;
3968 esac
3969 case $ac_prog in
3970 # Accept absolute paths.
3971 [\\/]* | ?:[\\/]*)
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%/%"`
3977 done
3978 test -z "$LD" && LD="$ac_prog"
3981 # If it fails, then pretend we aren't using GCC.
3982 ac_prog=ld
3985 # If it is relative, then search for the first ld in PATH.
3986 with_gnu_ld=unknown
3988 esac
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; }
3992 else
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
3998 else
3999 if test -z "$LD"; then
4000 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4001 for ac_dir in $PATH; do
4002 IFS="$lt_save_ifs"
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
4016 esac
4018 done
4019 IFS="$lt_save_ifs"
4020 else
4021 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4025 LD="$lt_cv_path_LD"
4026 if test -n "$LD"; then
4027 { echo "$as_me:$LINENO: result: $LD" >&5
4028 echo "${ECHO_T}$LD" >&6; }
4029 else
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
4040 else
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
4049 esac
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
4060 else
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
4067 "" | " "*) ;;
4068 *) reload_flag=" $reload_flag" ;;
4069 esac
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
4076 else
4077 if test -n "$NM"; then
4078 # Let the user override the test.
4079 lt_cv_path_NM="$NM"
4080 else
4081 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4082 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4083 IFS="$lt_save_ifs"
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"
4094 break
4097 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4098 */dev/null*)
4099 lt_cv_path_NM="$tmp_nm -p"
4100 break
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
4106 esac
4107 esac
4109 done
4110 IFS="$lt_save_ifs"
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; }
4116 NM="$lt_cv_path_NM"
4118 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4119 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4120 LN_S=$as_ln_s
4121 if test "$LN_S" = "ln -s"; then
4122 { echo "$as_me:$LINENO: result: yes" >&5
4123 echo "${ECHO_T}yes" >&6; }
4124 else
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
4133 else
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.
4148 case $host_os in
4149 aix4* | aix5*)
4150 lt_cv_deplibs_check_method=pass_all
4153 beos*)
4154 lt_cv_deplibs_check_method=pass_all
4157 bsdi4*)
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'
4173 case "$host_os" in
4174 rhapsody* | darwin1.[012])
4175 lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
4177 *) # Darwin 1.3 on
4178 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4180 esac
4181 lt_cv_deplibs_check_method=pass_all
4184 freebsd* | kfreebsd*-gnu)
4185 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4186 case $host_cpu in
4187 i*86 )
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.*`
4194 esac
4195 else
4196 lt_cv_deplibs_check_method=pass_all
4200 gnu*)
4201 lt_cv_deplibs_check_method=pass_all
4204 hpux10.20* | hpux11*)
4205 lt_cv_file_magic_cmd=/usr/bin/file
4206 case "$host_cpu" in
4207 ia64*)
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
4211 hppa*64*)
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
4219 esac
4222 irix5* | irix6* | nonstopux*)
4223 case $host_os in
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"
4229 case $LD in
4230 *-32|*"-32 ") libmagic=32-bit;;
4231 *-n32|*"-n32 ") libmagic=N32;;
4232 *-64|*"-64 ") libmagic=64-bit;;
4233 *) libmagic=never-match;;
4234 esac
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"
4238 esac
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.
4244 linux*)
4245 case $host_cpu in
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 )' ;;
4251 esac
4252 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4255 netbsd*)
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)$'
4258 else
4259 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4263 newos6*)
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
4269 nto-qnx*)
4270 lt_cv_deplibs_check_method=unknown
4273 openbsd*)
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'
4278 else
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
4290 sco3.2v5*)
4291 lt_cv_deplibs_check_method=pass_all
4294 solaris*)
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
4301 motorola)
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*`
4305 ncr)
4306 lt_cv_deplibs_check_method=pass_all
4308 sequent)
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 )'
4312 sni)
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
4317 siemens)
4318 lt_cv_deplibs_check_method=pass_all
4320 esac
4323 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4324 lt_cv_deplibs_check_method=pass_all
4326 esac
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.
4339 LTCC=${LTCC-"$CC"}
4341 # Allow CC to be a program name with arguments.
4342 compiler=$CC
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
4353 # libtool support.
4354 case $host in
4355 ia64-*-hpux*)
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
4360 ac_status=$?
4361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4362 (exit $ac_status); }; then
4363 case `/usr/bin/file conftest.$ac_objext` in
4364 *ELF-32*)
4365 HPUX_IA64_MODE="32"
4367 *ELF-64*)
4368 HPUX_IA64_MODE="64"
4370 esac
4372 rm -rf conftest*
4374 *-*-irix6*)
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
4379 ac_status=$?
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
4384 *32-bit*)
4385 LD="${LD-ld} -melf32bsmip"
4387 *N32*)
4388 LD="${LD-ld} -melf32bmipn32"
4390 *64-bit*)
4391 LD="${LD-ld} -melf64bmip"
4393 esac
4394 else
4395 case `/usr/bin/file conftest.$ac_objext` in
4396 *32-bit*)
4397 LD="${LD-ld} -32"
4399 *N32*)
4400 LD="${LD-ld} -n32"
4402 *64-bit*)
4403 LD="${LD-ld} -64"
4405 esac
4408 rm -rf conftest*
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
4416 ac_status=$?
4417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4418 (exit $ac_status); }; then
4419 case "`/usr/bin/file conftest.o`" in
4420 *32-bit*)
4421 case $host in
4422 x86_64-*linux*)
4423 LD="${LD-ld} -m elf_i386"
4425 ppc64-*linux*|powerpc64-*linux*)
4426 LD="${LD-ld} -m elf32ppclinux"
4428 s390x-*linux*)
4429 LD="${LD-ld} -m elf_s390"
4431 sparc64-*linux*)
4432 LD="${LD-ld} -m elf32_sparc"
4434 esac
4436 *64-bit*)
4437 case $host in
4438 x86_64-*linux*)
4439 LD="${LD-ld} -m elf_x86_64"
4441 ppc*-*linux*|powerpc*-*linux*)
4442 LD="${LD-ld} -m elf64ppc"
4444 s390*-*linux*)
4445 LD="${LD-ld} -m elf64_s390"
4447 sparc*-*linux*)
4448 LD="${LD-ld} -m elf64_sparc"
4450 esac
4452 esac
4454 rm -rf conftest*
4457 *-*-sco3.2v5*)
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
4465 else
4466 ac_ext=c
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
4473 /* confdefs.h. */
4474 _ACEOF
4475 cat confdefs.h >>conftest.$ac_ext
4476 cat >>conftest.$ac_ext <<_ACEOF
4477 /* end confdefs.h. */
4480 main ()
4484 return 0;
4486 _ACEOF
4487 rm -f conftest.$ac_objext conftest$ac_exeext
4488 if { (ac_try="$ac_link"
4489 case "(($ac_try" in
4490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4491 *) ac_try_echo=$ac_try;;
4492 esac
4493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4494 (eval "$ac_link") 2>conftest.er1
4495 ac_status=$?
4496 grep -v '^ *+' conftest.er1 >conftest.err
4497 rm -f conftest.er1
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
4506 else
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
4515 ac_ext=c
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"
4530 esac
4532 need_locks="$enable_libtool_lock"
4535 ac_ext=c
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
4544 CPP=
4546 if test -z "$CPP"; then
4547 if test "${ac_cv_prog_CPP+set}" = set; then
4548 echo $ECHO_N "(cached) $ECHO_C" >&6
4549 else
4550 # Double quotes because CPP needs to be expanded
4551 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4553 ac_preproc_ok=false
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
4563 /* confdefs.h. */
4564 _ACEOF
4565 cat confdefs.h >>conftest.$ac_ext
4566 cat >>conftest.$ac_ext <<_ACEOF
4567 /* end confdefs.h. */
4568 #ifdef __STDC__
4569 # include <limits.h>
4570 #else
4571 # include <assert.h>
4572 #endif
4573 Syntax error
4574 _ACEOF
4575 if { (ac_try="$ac_cpp conftest.$ac_ext"
4576 case "(($ac_try" in
4577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4578 *) ac_try_echo=$ac_try;;
4579 esac
4580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4581 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4582 ac_status=$?
4583 grep -v '^ *+' conftest.er1 >conftest.err
4584 rm -f conftest.er1
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
4590 }; then
4592 else
4593 echo "$as_me: failed program was:" >&5
4594 sed 's/^/| /' conftest.$ac_ext >&5
4596 # Broken: fails on valid input.
4597 continue
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
4605 /* confdefs.h. */
4606 _ACEOF
4607 cat confdefs.h >>conftest.$ac_ext
4608 cat >>conftest.$ac_ext <<_ACEOF
4609 /* end confdefs.h. */
4610 #include <ac_nonexistent.h>
4611 _ACEOF
4612 if { (ac_try="$ac_cpp conftest.$ac_ext"
4613 case "(($ac_try" in
4614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4615 *) ac_try_echo=$ac_try;;
4616 esac
4617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4618 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4619 ac_status=$?
4620 grep -v '^ *+' conftest.er1 >conftest.err
4621 rm -f conftest.er1
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
4627 }; then
4628 # Broken: success on invalid input.
4629 continue
4630 else
4631 echo "$as_me: failed program was:" >&5
4632 sed 's/^/| /' conftest.$ac_ext >&5
4634 # Passes both tests.
4635 ac_preproc_ok=:
4636 break
4639 rm -f conftest.err conftest.$ac_ext
4641 done
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
4645 break
4648 done
4649 ac_cv_prog_CPP=$CPP
4652 CPP=$ac_cv_prog_CPP
4653 else
4654 ac_cv_prog_CPP=$CPP
4656 { echo "$as_me:$LINENO: result: $CPP" >&5
4657 echo "${ECHO_T}$CPP" >&6; }
4658 ac_preproc_ok=false
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
4668 /* confdefs.h. */
4669 _ACEOF
4670 cat confdefs.h >>conftest.$ac_ext
4671 cat >>conftest.$ac_ext <<_ACEOF
4672 /* end confdefs.h. */
4673 #ifdef __STDC__
4674 # include <limits.h>
4675 #else
4676 # include <assert.h>
4677 #endif
4678 Syntax error
4679 _ACEOF
4680 if { (ac_try="$ac_cpp conftest.$ac_ext"
4681 case "(($ac_try" in
4682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4683 *) ac_try_echo=$ac_try;;
4684 esac
4685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4686 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4687 ac_status=$?
4688 grep -v '^ *+' conftest.er1 >conftest.err
4689 rm -f conftest.er1
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
4695 }; then
4697 else
4698 echo "$as_me: failed program was:" >&5
4699 sed 's/^/| /' conftest.$ac_ext >&5
4701 # Broken: fails on valid input.
4702 continue
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
4710 /* confdefs.h. */
4711 _ACEOF
4712 cat confdefs.h >>conftest.$ac_ext
4713 cat >>conftest.$ac_ext <<_ACEOF
4714 /* end confdefs.h. */
4715 #include <ac_nonexistent.h>
4716 _ACEOF
4717 if { (ac_try="$ac_cpp conftest.$ac_ext"
4718 case "(($ac_try" in
4719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4720 *) ac_try_echo=$ac_try;;
4721 esac
4722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4723 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4724 ac_status=$?
4725 grep -v '^ *+' conftest.er1 >conftest.err
4726 rm -f conftest.er1
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
4732 }; then
4733 # Broken: success on invalid input.
4734 continue
4735 else
4736 echo "$as_me: failed program was:" >&5
4737 sed 's/^/| /' conftest.$ac_ext >&5
4739 # Passes both tests.
4740 ac_preproc_ok=:
4741 break
4744 rm -f conftest.err conftest.$ac_ext
4746 done
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
4751 else
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; }; }
4759 ac_ext=c
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
4770 else
4771 cat >conftest.$ac_ext <<_ACEOF
4772 /* confdefs.h. */
4773 _ACEOF
4774 cat confdefs.h >>conftest.$ac_ext
4775 cat >>conftest.$ac_ext <<_ACEOF
4776 /* end confdefs.h. */
4777 #include <stdlib.h>
4778 #include <stdarg.h>
4779 #include <string.h>
4780 #include <float.h>
4783 main ()
4787 return 0;
4789 _ACEOF
4790 rm -f conftest.$ac_objext
4791 if { (ac_try="$ac_compile"
4792 case "(($ac_try" in
4793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4794 *) ac_try_echo=$ac_try;;
4795 esac
4796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4797 (eval "$ac_compile") 2>conftest.er1
4798 ac_status=$?
4799 grep -v '^ *+' conftest.er1 >conftest.err
4800 rm -f conftest.er1
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
4808 else
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
4820 /* confdefs.h. */
4821 _ACEOF
4822 cat confdefs.h >>conftest.$ac_ext
4823 cat >>conftest.$ac_ext <<_ACEOF
4824 /* end confdefs.h. */
4825 #include <string.h>
4827 _ACEOF
4828 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4829 $EGREP "memchr" >/dev/null 2>&1; then
4831 else
4832 ac_cv_header_stdc=no
4834 rm -f conftest*
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
4841 /* confdefs.h. */
4842 _ACEOF
4843 cat confdefs.h >>conftest.$ac_ext
4844 cat >>conftest.$ac_ext <<_ACEOF
4845 /* end confdefs.h. */
4846 #include <stdlib.h>
4848 _ACEOF
4849 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4850 $EGREP "free" >/dev/null 2>&1; then
4852 else
4853 ac_cv_header_stdc=no
4855 rm -f conftest*
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
4863 else
4864 cat >conftest.$ac_ext <<_ACEOF
4865 /* confdefs.h. */
4866 _ACEOF
4867 cat confdefs.h >>conftest.$ac_ext
4868 cat >>conftest.$ac_ext <<_ACEOF
4869 /* end confdefs.h. */
4870 #include <ctype.h>
4871 #include <stdlib.h>
4872 #if ((' ' & 0x0FF) == 0x020)
4873 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4874 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4875 #else
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))
4881 #endif
4883 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4885 main ()
4887 int i;
4888 for (i = 0; i < 256; i++)
4889 if (XOR (islower (i), ISLOWER (i))
4890 || toupper (i) != TOUPPER (i))
4891 return 2;
4892 return 0;
4894 _ACEOF
4895 rm -f conftest$ac_exeext
4896 if { (ac_try="$ac_link"
4897 case "(($ac_try" in
4898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4899 *) ac_try_echo=$ac_try;;
4900 esac
4901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4902 (eval "$ac_link") 2>&5
4903 ac_status=$?
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;;
4909 esac
4910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4911 (eval "$ac_try") 2>&5
4912 ac_status=$?
4913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4914 (exit $ac_status); }; }; then
4916 else
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
4921 ( exit $ac_status )
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
4936 _ACEOF
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
4958 else
4959 cat >conftest.$ac_ext <<_ACEOF
4960 /* confdefs.h. */
4961 _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>
4968 _ACEOF
4969 rm -f conftest.$ac_objext
4970 if { (ac_try="$ac_compile"
4971 case "(($ac_try" in
4972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4973 *) ac_try_echo=$ac_try;;
4974 esac
4975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4976 (eval "$ac_compile") 2>conftest.er1
4977 ac_status=$?
4978 grep -v '^ *+' conftest.er1 >conftest.err
4979 rm -f conftest.er1
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"
4987 else
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
5002 _ACEOF
5006 done
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; }
5022 else
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
5027 /* confdefs.h. */
5028 _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>
5034 _ACEOF
5035 rm -f conftest.$ac_objext
5036 if { (ac_try="$ac_compile"
5037 case "(($ac_try" in
5038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5039 *) ac_try_echo=$ac_try;;
5040 esac
5041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5042 (eval "$ac_compile") 2>conftest.er1
5043 ac_status=$?
5044 grep -v '^ *+' conftest.er1 >conftest.err
5045 rm -f conftest.er1
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
5053 else
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
5068 /* confdefs.h. */
5069 _ACEOF
5070 cat confdefs.h >>conftest.$ac_ext
5071 cat >>conftest.$ac_ext <<_ACEOF
5072 /* end confdefs.h. */
5073 #include <$ac_header>
5074 _ACEOF
5075 if { (ac_try="$ac_cpp conftest.$ac_ext"
5076 case "(($ac_try" in
5077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5078 *) ac_try_echo=$ac_try;;
5079 esac
5080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5081 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5082 ac_status=$?
5083 grep -v '^ *+' conftest.er1 >conftest.err
5084 rm -f conftest.er1
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
5090 }; then
5091 ac_header_preproc=yes
5092 else
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
5105 yes:no: )
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
5112 no: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;}
5127 esac
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
5132 else
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
5143 _ACEOF
5147 done
5149 ac_ext=cpp
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
5159 else
5160 # Double quotes because CXXCPP needs to be expanded
5161 for CXXCPP in "$CXX -E" "/lib/cpp"
5163 ac_preproc_ok=false
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
5173 /* confdefs.h. */
5174 _ACEOF
5175 cat confdefs.h >>conftest.$ac_ext
5176 cat >>conftest.$ac_ext <<_ACEOF
5177 /* end confdefs.h. */
5178 #ifdef __STDC__
5179 # include <limits.h>
5180 #else
5181 # include <assert.h>
5182 #endif
5183 Syntax error
5184 _ACEOF
5185 if { (ac_try="$ac_cpp conftest.$ac_ext"
5186 case "(($ac_try" in
5187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5188 *) ac_try_echo=$ac_try;;
5189 esac
5190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5191 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5192 ac_status=$?
5193 grep -v '^ *+' conftest.er1 >conftest.err
5194 rm -f conftest.er1
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
5200 }; then
5202 else
5203 echo "$as_me: failed program was:" >&5
5204 sed 's/^/| /' conftest.$ac_ext >&5
5206 # Broken: fails on valid input.
5207 continue
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
5215 /* confdefs.h. */
5216 _ACEOF
5217 cat confdefs.h >>conftest.$ac_ext
5218 cat >>conftest.$ac_ext <<_ACEOF
5219 /* end confdefs.h. */
5220 #include <ac_nonexistent.h>
5221 _ACEOF
5222 if { (ac_try="$ac_cpp conftest.$ac_ext"
5223 case "(($ac_try" in
5224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5225 *) ac_try_echo=$ac_try;;
5226 esac
5227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5228 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5229 ac_status=$?
5230 grep -v '^ *+' conftest.er1 >conftest.err
5231 rm -f conftest.er1
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
5237 }; then
5238 # Broken: success on invalid input.
5239 continue
5240 else
5241 echo "$as_me: failed program was:" >&5
5242 sed 's/^/| /' conftest.$ac_ext >&5
5244 # Passes both tests.
5245 ac_preproc_ok=:
5246 break
5249 rm -f conftest.err conftest.$ac_ext
5251 done
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
5255 break
5258 done
5259 ac_cv_prog_CXXCPP=$CXXCPP
5262 CXXCPP=$ac_cv_prog_CXXCPP
5263 else
5264 ac_cv_prog_CXXCPP=$CXXCPP
5266 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5267 echo "${ECHO_T}$CXXCPP" >&6; }
5268 ac_preproc_ok=false
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
5278 /* confdefs.h. */
5279 _ACEOF
5280 cat confdefs.h >>conftest.$ac_ext
5281 cat >>conftest.$ac_ext <<_ACEOF
5282 /* end confdefs.h. */
5283 #ifdef __STDC__
5284 # include <limits.h>
5285 #else
5286 # include <assert.h>
5287 #endif
5288 Syntax error
5289 _ACEOF
5290 if { (ac_try="$ac_cpp conftest.$ac_ext"
5291 case "(($ac_try" in
5292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5293 *) ac_try_echo=$ac_try;;
5294 esac
5295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5296 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5297 ac_status=$?
5298 grep -v '^ *+' conftest.er1 >conftest.err
5299 rm -f conftest.er1
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
5305 }; then
5307 else
5308 echo "$as_me: failed program was:" >&5
5309 sed 's/^/| /' conftest.$ac_ext >&5
5311 # Broken: fails on valid input.
5312 continue
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
5320 /* confdefs.h. */
5321 _ACEOF
5322 cat confdefs.h >>conftest.$ac_ext
5323 cat >>conftest.$ac_ext <<_ACEOF
5324 /* end confdefs.h. */
5325 #include <ac_nonexistent.h>
5326 _ACEOF
5327 if { (ac_try="$ac_cpp conftest.$ac_ext"
5328 case "(($ac_try" in
5329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5330 *) ac_try_echo=$ac_try;;
5331 esac
5332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5333 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5334 ac_status=$?
5335 grep -v '^ *+' conftest.er1 >conftest.err
5336 rm -f conftest.er1
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
5342 }; then
5343 # Broken: success on invalid input.
5344 continue
5345 else
5346 echo "$as_me: failed program was:" >&5
5347 sed 's/^/| /' conftest.$ac_ext >&5
5349 # Passes both tests.
5350 ac_preproc_ok=:
5351 break
5354 rm -f conftest.err conftest.$ac_ext
5356 done
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
5361 else
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; }; }
5369 ac_ext=cpp
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
5376 ac_ext=f
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
5389 else
5390 if test -n "$F77"; then
5391 ac_cv_prog_F77="$F77" # Let the user override the test.
5392 else
5393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5394 for as_dir in $PATH
5396 IFS=$as_save_IFS
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
5402 break 2
5404 done
5405 done
5406 IFS=$as_save_IFS
5410 F77=$ac_cv_prog_F77
5411 if test -n "$F77"; then
5412 { echo "$as_me:$LINENO: result: $F77" >&5
5413 echo "${ECHO_T}$F77" >&6; }
5414 else
5415 { echo "$as_me:$LINENO: result: no" >&5
5416 echo "${ECHO_T}no" >&6; }
5420 test -n "$F77" && break
5421 done
5423 if test -z "$F77"; then
5424 ac_ct_F77=$F77
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
5433 else
5434 if test -n "$ac_ct_F77"; then
5435 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5436 else
5437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5438 for as_dir in $PATH
5440 IFS=$as_save_IFS
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
5446 break 2
5448 done
5449 done
5450 IFS=$as_save_IFS
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; }
5458 else
5459 { echo "$as_me:$LINENO: result: no" >&5
5460 echo "${ECHO_T}no" >&6; }
5464 test -n "$ac_ct_F77" && break
5465 done
5467 if test "x$ac_ct_F77" = x; then
5468 F77=""
5469 else
5470 case $cross_compiling:$ac_tool_warned in
5471 yes:)
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 ;;
5479 esac
5480 F77=$ac_ct_F77
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"
5489 case "(($ac_try" in
5490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5491 *) ac_try_echo=$ac_try;;
5492 esac
5493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5494 (eval "$ac_compiler --version >&5") 2>&5
5495 ac_status=$?
5496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5497 (exit $ac_status); }
5498 { (ac_try="$ac_compiler -v >&5"
5499 case "(($ac_try" in
5500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5501 *) ac_try_echo=$ac_try;;
5502 esac
5503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5504 (eval "$ac_compiler -v >&5") 2>&5
5505 ac_status=$?
5506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5507 (exit $ac_status); }
5508 { (ac_try="$ac_compiler -V >&5"
5509 case "(($ac_try" in
5510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5511 *) ac_try_echo=$ac_try;;
5512 esac
5513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5514 (eval "$ac_compiler -V >&5") 2>&5
5515 ac_status=$?
5516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5517 (exit $ac_status); }
5518 rm -f a.out
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.)
5522 ac_save_ext=$ac_ext
5523 ac_ext=F
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
5528 else
5529 cat >conftest.$ac_ext <<_ACEOF
5530 program main
5531 #ifndef __GNUC__
5532 choke me
5533 #endif
5536 _ACEOF
5537 rm -f conftest.$ac_objext
5538 if { (ac_try="$ac_compile"
5539 case "(($ac_try" in
5540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5541 *) ac_try_echo=$ac_try;;
5542 esac
5543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5544 (eval "$ac_compile") 2>conftest.er1
5545 ac_status=$?
5546 grep -v '^ *+' conftest.er1 >conftest.err
5547 rm -f conftest.er1
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
5554 ac_compiler_gnu=yes
5555 else
5556 echo "$as_me: failed program was:" >&5
5557 sed 's/^/| /' conftest.$ac_ext >&5
5559 ac_compiler_gnu=no
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; }
5568 ac_ext=$ac_save_ext
5569 ac_test_FFLAGS=${FFLAGS+set}
5570 ac_save_FFLAGS=$FFLAGS
5571 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
5576 else
5577 FFLAGS=-g
5578 cat >conftest.$ac_ext <<_ACEOF
5579 program main
5582 _ACEOF
5583 rm -f conftest.$ac_objext
5584 if { (ac_try="$ac_compile"
5585 case "(($ac_try" in
5586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5587 *) ac_try_echo=$ac_try;;
5588 esac
5589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5590 (eval "$ac_compile") 2>conftest.er1
5591 ac_status=$?
5592 grep -v '^ *+' conftest.er1 >conftest.err
5593 rm -f conftest.er1
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
5601 else
5602 echo "$as_me: failed program was:" >&5
5603 sed 's/^/| /' conftest.$ac_ext >&5
5605 ac_cv_prog_f77_g=no
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
5617 FFLAGS="-g -O2"
5618 else
5619 FFLAGS="-g"
5621 else
5622 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5623 FFLAGS="-O2"
5624 else
5625 FFLAGS=
5629 G77=`test $ac_compiler_gnu = yes && echo yes`
5630 ac_ext=c
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
5645 else
5647 testring="ABCD"
5649 case $build_os in
5650 msdosdjgpp*)
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
5658 gnu*)
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;
5665 cygwin* | mingw*)
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
5685 # we can't tell.
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
5692 i=`expr $i + 1`
5693 testring=$testring$testring
5694 done
5695 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`
5701 esac
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; }
5708 else
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
5721 else
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.
5742 case $host_os in
5743 aix*)
5744 symcode='[BCDT]'
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'"
5756 irix* | nonstopux*)
5757 symcode='[BCDEGRST]'
5759 osf*)
5760 symcode='[BCDEGQRST]'
5762 solaris* | sysv5*)
5763 symcode='[BDRT]'
5765 sysv4)
5766 symcode='[DFNSTU]'
5768 esac
5770 # Handle CRLF in mingw tool chain
5771 opt_cr=
5772 case $build_os in
5773 mingw*)
5774 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5776 esac
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]' ;;
5782 esac
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.
5791 pipe_works=no
5793 rm -f conftest*
5794 cat > conftest.$ac_ext <<EOF
5795 #ifdef __cplusplus
5796 extern "C" {
5797 #endif
5798 char nm_test_var;
5799 void nm_test_func(){}
5800 #ifdef __cplusplus
5802 #endif
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
5808 ac_status=$?
5809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5810 (exit $ac_status); }; then
5811 # Now try to grab the symbols.
5812 nlist=conftest.nm
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
5815 ac_status=$?
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"
5821 else
5822 rm -f "$nlist"T
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
5829 #ifdef __cplusplus
5830 extern "C" {
5831 #endif
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 *
5840 #else
5841 # define lt_ptr_t char *
5842 # define const
5843 #endif
5845 /* The mapping between symbol names and symbols. */
5846 const struct {
5847 const char *name;
5848 lt_ptr_t address;
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
5855 {0, (lt_ptr_t) 0}
5858 #ifdef __cplusplus
5860 #endif
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
5870 ac_status=$?
5871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5872 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5873 pipe_works=yes
5875 LIBS="$lt_save_LIBS"
5876 CFLAGS="$lt_save_CFLAGS"
5877 else
5878 echo "cannot find nm_test_func in $nlist" >&5
5880 else
5881 echo "cannot find nm_test_var in $nlist" >&5
5883 else
5884 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5886 else
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
5894 break
5895 else
5896 lt_cv_sys_global_symbol_pipe=
5898 done
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; }
5908 else
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
5917 else
5918 rm -f .libs 2>/dev/null
5919 mkdir .libs 2>/dev/null
5920 if test -d .libs; then
5921 lt_cv_objdir=.libs
5922 else
5923 # MS-DOS does not allow filenames that begin with a dot.
5924 lt_cv_objdir=_libs
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
5936 case $host_os in
5937 aix3*)
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
5942 COLLECT_NAMES=
5943 export COLLECT_NAMES
5946 esac
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'
5963 # Constants:
5964 rm="rm -f"
5966 # Global variables:
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').
5972 libext=a
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
5984 else
5985 if test -n "$AR"; then
5986 ac_cv_prog_AR="$AR" # Let the user override the test.
5987 else
5988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5989 for as_dir in $PATH
5991 IFS=$as_save_IFS
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
5997 break 2
5999 done
6000 done
6001 IFS=$as_save_IFS
6005 AR=$ac_cv_prog_AR
6006 if test -n "$AR"; then
6007 { echo "$as_me:$LINENO: result: $AR" >&5
6008 echo "${ECHO_T}$AR" >&6; }
6009 else
6010 { echo "$as_me:$LINENO: result: no" >&5
6011 echo "${ECHO_T}no" >&6; }
6016 if test -z "$ac_cv_prog_AR"; then
6017 ac_ct_AR=$AR
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
6024 else
6025 if test -n "$ac_ct_AR"; then
6026 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6027 else
6028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6029 for as_dir in $PATH
6031 IFS=$as_save_IFS
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
6037 break 2
6039 done
6040 done
6041 IFS=$as_save_IFS
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; }
6049 else
6050 { echo "$as_me:$LINENO: result: no" >&5
6051 echo "${ECHO_T}no" >&6; }
6054 if test "x$ac_ct_AR" = x; then
6055 AR="false"
6056 else
6057 case $cross_compiling:$ac_tool_warned in
6058 yes:)
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 ;;
6066 esac
6067 AR=$ac_ct_AR
6069 else
6070 AR="$ac_cv_prog_AR"
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
6080 else
6081 if test -n "$RANLIB"; then
6082 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6083 else
6084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6085 for as_dir in $PATH
6087 IFS=$as_save_IFS
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
6093 break 2
6095 done
6096 done
6097 IFS=$as_save_IFS
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; }
6105 else
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
6120 else
6121 if test -n "$ac_ct_RANLIB"; then
6122 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6123 else
6124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6125 for as_dir in $PATH
6127 IFS=$as_save_IFS
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
6133 break 2
6135 done
6136 done
6137 IFS=$as_save_IFS
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; }
6145 else
6146 { echo "$as_me:$LINENO: result: no" >&5
6147 echo "${ECHO_T}no" >&6; }
6150 if test "x$ac_ct_RANLIB" = x; then
6151 RANLIB=":"
6152 else
6153 case $cross_compiling:$ac_tool_warned in
6154 yes:)
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 ;;
6162 esac
6163 RANLIB=$ac_ct_RANLIB
6165 else
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
6176 else
6177 if test -n "$STRIP"; then
6178 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6179 else
6180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6181 for as_dir in $PATH
6183 IFS=$as_save_IFS
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
6189 break 2
6191 done
6192 done
6193 IFS=$as_save_IFS
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; }
6201 else
6202 { echo "$as_me:$LINENO: result: no" >&5
6203 echo "${ECHO_T}no" >&6; }
6208 if test -z "$ac_cv_prog_STRIP"; then
6209 ac_ct_STRIP=$STRIP
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
6216 else
6217 if test -n "$ac_ct_STRIP"; then
6218 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6219 else
6220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6221 for as_dir in $PATH
6223 IFS=$as_save_IFS
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
6229 break 2
6231 done
6232 done
6233 IFS=$as_save_IFS
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; }
6241 else
6242 { echo "$as_me:$LINENO: result: no" >&5
6243 echo "${ECHO_T}no" >&6; }
6246 if test "x$ac_ct_STRIP" = x; then
6247 STRIP=":"
6248 else
6249 case $cross_compiling:$ac_tool_warned in
6250 yes:)
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 ;;
6258 esac
6259 STRIP=$ac_ct_STRIP
6261 else
6262 STRIP="$ac_cv_prog_STRIP"
6266 old_CC="$CC"
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
6292 case $host_os in
6293 openbsd*)
6294 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6297 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6299 esac
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
6305 file_magic*)
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
6311 else
6312 case $MAGIC_CMD in
6313 [\\/*] | ?:[\\/]*)
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
6321 IFS="$lt_save_ifs"
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
6327 "file_magic "*)
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
6333 else
6334 cat <<EOF 1>&2
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
6346 fi ;;
6347 esac
6349 break
6351 done
6352 IFS="$lt_save_ifs"
6353 MAGIC_CMD="$lt_save_MAGIC_CMD"
6355 esac
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; }
6362 else
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
6373 else
6374 case $MAGIC_CMD in
6375 [\\/*] | ?:[\\/]*)
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
6383 IFS="$lt_save_ifs"
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
6389 "file_magic "*)
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
6395 else
6396 cat <<EOF 1>&2
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
6408 fi ;;
6409 esac
6411 break
6413 done
6414 IFS="$lt_save_ifs"
6415 MAGIC_CMD="$lt_save_MAGIC_CMD"
6417 esac
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; }
6424 else
6425 { echo "$as_me:$LINENO: result: no" >&5
6426 echo "${ECHO_T}no" >&6; }
6429 else
6430 MAGIC_CMD=:
6436 esac
6438 enable_dlopen=yes
6439 enable_win32_dll=no
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"
6452 else
6453 pic_mode=default
6456 test -z "$pic_mode" && pic_mode=default
6458 # Use C for the default configuration in the libtool script
6459 tagname=
6460 lt_save_CC="$CC"
6461 ac_ext=c
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.
6469 ac_ext=c
6471 # Object file extension for compiled C test sources.
6472 objext=o
6473 objext=$objext
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.
6483 LTCC=${LTCC-"$CC"}
6485 # Allow CC to be a program name with arguments.
6486 compiler=$CC
6490 # Check for any special shared library compilation flags.
6492 lt_prog_cc_shlib=
6493 if test "$GCC" = no; then
6494 case $host_os in
6495 sco3.2v5*)
6496 lt_prog_cc_shlib='-belf'
6498 esac
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 :
6504 else
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
6519 else
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
6530 else
6531 lt_prog_compiler_static_works=yes
6534 $rm conftest*
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
6543 else
6544 lt_prog_compiler_static=
6549 ## CAVEAT EMPTOR:
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
6564 else
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)
6580 ac_status=$?
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
6590 $rm conftest*
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"
6598 else
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'
6615 case $host_os in
6616 aix*)
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'
6624 amigaos*)
6625 # FIXME: we need at least 68020 code to build shared libraries, but
6626 # adding the `-m68020' flag to GCC prevents building anything better,
6627 # like `-m68040'.
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'
6647 msdosdjgpp*)
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
6651 enable_shared=no
6654 sysv4*MP*)
6655 if test -d /usr/nec; then
6656 lt_prog_compiler_pic=-Kconform_pic
6660 hpux*)
6661 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6662 # not for PA HP-UX.
6663 case "$host_cpu" in
6664 hppa*64*|ia64*)
6665 # +Z the default
6668 lt_prog_compiler_pic='-fPIC'
6670 esac
6674 lt_prog_compiler_pic='-fPIC'
6676 esac
6677 else
6678 # PORTME Check for flag to pass linker flags through the system compiler.
6679 case $host_os in
6680 aix*)
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'
6685 else
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
6699 # not for PA HP-UX.
6700 case "$host_cpu" in
6701 hppa*64*|ia64*)
6702 # +Z the default
6705 lt_prog_compiler_pic='+Z'
6707 esac
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'
6718 newsos6)
6719 lt_prog_compiler_pic='-KPIC'
6720 lt_prog_compiler_static='-Bstatic'
6723 linux*)
6724 case $CC in
6725 icc* | ecc*)
6726 lt_prog_compiler_wl='-Wl,'
6727 lt_prog_compiler_pic='-KPIC'
6728 lt_prog_compiler_static='-static'
6730 ccc*)
6731 lt_prog_compiler_wl='-Wl,'
6732 # All Alpha code is PIC.
6733 lt_prog_compiler_static='-non_shared'
6735 esac
6738 osf3* | osf4* | osf5*)
6739 lt_prog_compiler_wl='-Wl,'
6740 # All OSF/1 code is PIC.
6741 lt_prog_compiler_static='-non_shared'
6744 sco3.2v5*)
6745 lt_prog_compiler_pic='-Kpic'
6746 lt_prog_compiler_static='-dn'
6749 solaris*)
6750 lt_prog_compiler_wl='-Wl,'
6751 lt_prog_compiler_pic='-KPIC'
6752 lt_prog_compiler_static='-Bstatic'
6755 sunos4*)
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'
6767 sysv4*MP*)
6768 if test -d /usr/nec ;then
6769 lt_prog_compiler_pic='-Kconform_pic'
6770 lt_prog_compiler_static='-Bstatic'
6774 uts4*)
6775 lt_prog_compiler_pic='-pic'
6776 lt_prog_compiler_static='-Bstatic'
6780 lt_prog_compiler_can_build_shared=no
6782 esac
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
6797 else
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)
6813 ac_status=$?
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
6823 $rm conftest*
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
6831 "" | " "*) ;;
6832 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6833 esac
6834 else
6835 lt_prog_compiler_pic=
6836 lt_prog_compiler_can_build_shared=no
6840 case "$host_os" in
6841 # For platforms which do not support PIC, -DPIC is meaningless:
6842 *djgpp*)
6843 lt_prog_compiler_pic=
6846 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6848 esac
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
6854 else
6855 lt_cv_prog_compiler_c_o=no
6856 $rm -r conftest 2>/dev/null
6857 mkdir conftest
6858 cd conftest
6859 mkdir out
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
6866 # builds.
6867 chmod -w .
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)
6880 ac_status=$?
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
6884 then
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
6891 chmod u+w .
6892 $rm conftest*
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
6897 cd ..
6898 rmdir conftest
6899 $rm conftest*
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; }
6911 hard_links=yes
6912 $rm conftest*
6913 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6914 touch conftest.a
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;}
6922 need_locks=warn
6924 else
6925 need_locks=no
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; }
6931 runpath_var=
6932 allow_undefined_flag=
6933 enable_shared_with_static_runtimes=no
6934 archive_cmds=
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=
6944 hardcode_direct=no
6945 hardcode_minus_L=no
6946 hardcode_shlibpath_var=unsupported
6947 link_all_deplibs=unknown
6948 hardcode_automatic=no
6949 module_cmds=
6950 module_expsym_cmds=
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
6955 include_expsyms=
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=
6968 case $host_os in
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
6974 with_gnu_ld=no
6977 openbsd*)
6978 with_gnu_ld=no
6980 esac
6982 ld_shlibs=yes
6983 if test "$with_gnu_ld" = yes; then
6984 # If archive_cmds runs LD, not CC, wlarc should be empty
6985 wlarc='${wl}'
6987 # See if GNU ld supports shared libraries.
6988 case $host_os in
6989 aix3* | aix4* | aix5*)
6990 # On AIX/PPC, the GNU linker is very broken
6991 if test "$host_cpu" != ia64; then
6992 ld_shlibs=no
6993 cat <<EOF 1>&2
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.
7005 amigaos*)
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
7015 # them.
7016 ld_shlibs=no
7019 beos*)
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'
7025 else
7026 ld_shlibs=no
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;
7045 else
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'
7050 else
7051 ld_shlibs=no
7055 netbsd*)
7056 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7057 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7058 wlarc=
7059 else
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'
7065 solaris* | sysv5*)
7066 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7067 ld_shlibs=no
7068 cat <<EOF 1>&2
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'
7081 else
7082 ld_shlibs=no
7086 sunos4*)
7087 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7088 wlarc=
7089 hardcode_direct=yes
7090 hardcode_shlibpath_var=no
7093 linux*)
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 ;;
7104 esac
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'
7110 else
7111 archive_expsym_cmds="$tmp_archive_cmds"
7113 else
7114 ld_shlibs=no
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'
7122 else
7123 ld_shlibs=no
7126 esac
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'
7135 else
7136 whole_archive_flag_spec=
7139 else
7140 # PORTME fill in a description of your system's linker (not GNU ld)
7141 case $host_os in
7142 aix3*)
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
7151 # broken collect2.
7152 hardcode_direct=unsupported
7156 aix4* | aix5*)
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'
7162 no_entry_flag=""
7163 else
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'
7168 else
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
7180 break
7182 done
7183 esac
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.
7195 archive_cmds=''
7196 hardcode_direct=yes
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
7207 then
7208 # We have reworked collect2
7209 hardcode_direct=yes
7210 else
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=
7220 esac
7221 shared_flag='-shared'
7222 else
7223 # not using gcc
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:
7227 shared_flag='-G'
7228 else
7229 if test "$aix_use_runtimelinking" = yes; then
7230 shared_flag='${wl}-G'
7231 else
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
7246 /* confdefs.h. */
7247 _ACEOF
7248 cat confdefs.h >>conftest.$ac_ext
7249 cat >>conftest.$ac_ext <<_ACEOF
7250 /* end confdefs.h. */
7253 main ()
7257 return 0;
7259 _ACEOF
7260 rm -f conftest.$ac_objext conftest$ac_exeext
7261 if { (ac_try="$ac_link"
7262 case "(($ac_try" in
7263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7264 *) ac_try_echo=$ac_try;;
7265 esac
7266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7267 (eval "$ac_link") 2>conftest.er1
7268 ac_status=$?
7269 grep -v '^ *+' conftest.er1 >conftest.err
7270 rm -f conftest.er1
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; }
7283 }'`; fi
7284 else
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"
7297 else
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"
7302 else
7303 # Determine the default libpath from the value encoded in an empty executable.
7304 cat >conftest.$ac_ext <<_ACEOF
7305 /* confdefs.h. */
7306 _ACEOF
7307 cat confdefs.h >>conftest.$ac_ext
7308 cat >>conftest.$ac_ext <<_ACEOF
7309 /* end confdefs.h. */
7312 main ()
7316 return 0;
7318 _ACEOF
7319 rm -f conftest.$ac_objext conftest$ac_exeext
7320 if { (ac_try="$ac_link"
7321 case "(($ac_try" in
7322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7323 *) ac_try_echo=$ac_try;;
7324 esac
7325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7326 (eval "$ac_link") 2>conftest.er1
7327 ac_status=$?
7328 grep -v '^ *+' conftest.er1 >conftest.err
7329 rm -f conftest.er1
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; }
7342 }'`; fi
7343 else
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'
7370 amigaos*)
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
7375 ld_shlibs=no
7378 bsdi4*)
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.
7390 libext=lib
7391 # Tell ltmain to make .dll files, not .so files.
7392 shrext=".dll"
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
7406 case "$host_os" in
7407 rhapsody* | darwin1.[012])
7408 allow_undefined_flag='-undefined suppress'
7410 *) # Darwin 1.3 on
7411 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7412 allow_undefined_flag='-flat_namespace -undefined suppress'
7413 else
7414 case ${MACOSX_DEPLOYMENT_TARGET} in
7415 10.[012])
7416 allow_undefined_flag='-flat_namespace -undefined suppress'
7418 10.*)
7419 allow_undefined_flag='-undefined dynamic_lookup'
7421 esac
7424 esac
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'
7432 else
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}'
7439 else
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}'
7443 hardcode_direct=no
7444 hardcode_automatic=yes
7445 hardcode_shlibpath_var=unsupported
7446 whole_archive_flag_spec='-all_load $convenience'
7447 link_all_deplibs=yes
7448 else
7449 ld_shlibs=no
7453 dgux*)
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
7459 freebsd1*)
7460 ld_shlibs=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
7466 # extra space).
7467 freebsd2.2*)
7468 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7469 hardcode_libdir_flag_spec='-R$libdir'
7470 hardcode_direct=yes
7471 hardcode_shlibpath_var=no
7474 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7475 freebsd2*)
7476 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7477 hardcode_direct=yes
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'
7486 hardcode_direct=yes
7487 hardcode_shlibpath_var=no
7490 hpux9*)
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'
7493 else
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=:
7498 hardcode_direct=yes
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'
7506 hpux10* | hpux11*)
7507 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7508 case "$host_cpu" in
7509 hppa*64*|ia64*)
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'
7515 esac
7516 else
7517 case "$host_cpu" in
7518 hppa*64*|ia64*)
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'
7524 esac
7526 if test "$with_gnu_ld" = no; then
7527 case "$host_cpu" in
7528 hppa*64*)
7529 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7530 hardcode_libdir_flag_spec_ld='+b $libdir'
7531 hardcode_libdir_separator=:
7532 hardcode_direct=no
7533 hardcode_shlibpath_var=no
7535 ia64*)
7536 hardcode_libdir_flag_spec='-L$libdir'
7537 hardcode_direct=no
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=:
7547 hardcode_direct=yes
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
7554 esac
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'
7561 else
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
7570 netbsd*)
7571 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7572 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7573 else
7574 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7576 hardcode_libdir_flag_spec='-R$libdir'
7577 hardcode_direct=yes
7578 hardcode_shlibpath_var=no
7581 newsos6)
7582 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7583 hardcode_direct=yes
7584 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7585 hardcode_libdir_separator=:
7586 hardcode_shlibpath_var=no
7589 openbsd*)
7590 hardcode_direct=yes
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'
7596 else
7597 case $host_os in
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'
7606 esac
7610 os2*)
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'
7618 osf3*)
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'
7622 else
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'
7635 else
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=:
7647 sco3.2v5*)
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
7655 solaris*)
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'
7661 else
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
7668 case $host_os in
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' ;;
7672 esac
7673 link_all_deplibs=yes
7676 sunos4*)
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'
7681 else
7682 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7684 hardcode_libdir_flag_spec='-L$libdir'
7685 hardcode_direct=yes
7686 hardcode_minus_L=yes
7687 hardcode_shlibpath_var=no
7690 sysv4)
7691 case $host_vendor in
7692 sni)
7693 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7694 hardcode_direct=yes # is this really true???
7696 siemens)
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'
7701 hardcode_direct=no
7703 motorola)
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
7707 esac
7708 runpath_var='LD_RUN_PATH'
7709 hardcode_shlibpath_var=no
7712 sysv4.3*)
7713 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7714 hardcode_shlibpath_var=no
7715 export_dynamic_flag_spec='-Bexport'
7718 sysv4*MP*)
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
7724 ld_shlibs=yes
7728 sysv4.2uw2*)
7729 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7730 hardcode_direct=yes
7731 hardcode_minus_L=no
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'
7741 else
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
7748 sysv5*)
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'
7760 uts4*)
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
7767 ld_shlibs=no
7769 esac
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
7785 x|xyes)
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
7791 *'~'*)
7792 # FIXME: we may have to deal with multi-command sequences.
7794 '$CC '*)
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; }
7800 $rm conftest*
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
7805 ac_status=$?
7806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7807 (exit $ac_status); } 2>conftest.err; then
7808 soname=conftest
7809 lib=conftest
7810 libobjs=conftest.$ac_objext
7811 deplibs=
7812 wl=$lt_prog_compiler_wl
7813 compiler_flags=-v
7814 linker_flags=-v
7815 verstring=
7816 output_objdir=.
7817 libname=conftest
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
7822 ac_status=$?
7823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7824 (exit $ac_status); }
7825 then
7826 archive_cmds_need_lc=no
7827 else
7828 archive_cmds_need_lc=yes
7830 allow_undefined_flag=$lt_save_allow_undefined_flag
7831 else
7832 cat conftest.err 1>&5
7834 $rm conftest*
7835 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7836 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
7838 esac
7841 esac
7843 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7844 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
7845 library_names_spec=
7846 libname_spec='lib$name'
7847 soname_spec=
7848 shrext=".so"
7849 postinstall_cmds=
7850 postuninstall_cmds=
7851 finish_cmds=
7852 finish_eval=
7853 shlibpath_var=
7854 shlibpath_overrides_runpath=unknown
7855 version_type=none
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'`
7866 else
7867 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7869 else
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
7879 case $host_os in
7880 aix3*)
7881 version_type=linux
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'
7889 aix4* | aix5*)
7890 version_type=linux
7891 need_lib_prefix=no
7892 need_version=no
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
7898 else
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.
7904 case $host_os in
7905 aix4 | aix4.[01] | aix4.[01].*)
7906 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7907 echo ' yes '
7908 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7910 else
7911 can_build_shared=no
7914 esac
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}'
7923 else
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
7933 amigaos*)
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'
7939 beos*)
7940 library_names_spec='${libname}${shared_ext}'
7941 dynamic_linker="$host_os ld.so"
7942 shlibpath_var=LIBRARY_PATH
7945 bsdi4*)
7946 version_type=linux
7947 need_version=no
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
7961 shrext=".dll"
7962 need_version=no
7963 need_lib_prefix=no
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~
7976 $rm \$dlpath'
7977 shlibpath_overrides_runpath=yes
7979 case $host_os in
7980 cygwin*)
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"
7985 mingw*)
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'`
7997 else
7998 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8001 pw32*)
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}'
8005 esac
8009 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8011 esac
8012 dynamic_linker='Win32 ld.exe'
8013 # FIXME: first we should search . and the directory the executable is in
8014 shlibpath_var=PATH
8017 darwin* | rhapsody*)
8018 dynamic_linker="$host_os dyld"
8019 version_type=darwin
8020 need_lib_prefix=no
8021 need_version=no
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"`
8030 else
8031 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8033 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8036 dgux*)
8037 version_type=linux
8038 need_lib_prefix=no
8039 need_version=no
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
8045 freebsd1*)
8046 dynamic_linker=no
8049 kfreebsd*-gnu)
8050 version_type=linux
8051 need_lib_prefix=no
8052 need_version=no
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'
8061 freebsd*)
8062 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
8063 version_type=freebsd-$objformat
8064 case $version_type in
8065 freebsd-elf*)
8066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8067 need_version=no
8068 need_lib_prefix=no
8070 freebsd-*)
8071 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8072 need_version=yes
8074 esac
8075 shlibpath_var=LD_LIBRARY_PATH
8076 case $host_os in
8077 freebsd2*)
8078 shlibpath_overrides_runpath=yes
8080 freebsd3.01* | freebsdelf3.01*)
8081 shlibpath_overrides_runpath=yes
8082 hardcode_into_libs=yes
8084 *) # from 3.2 on
8085 shlibpath_overrides_runpath=no
8086 hardcode_into_libs=yes
8088 esac
8091 gnu*)
8092 version_type=linux
8093 need_lib_prefix=no
8094 need_version=no
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.
8104 version_type=sunos
8105 need_lib_prefix=no
8106 need_version=no
8107 case "$host_cpu" in
8108 ia64*)
8109 shrext='.so'
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"
8118 else
8119 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8121 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8123 hppa*64*)
8124 shrext='.sl'
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
8135 shrext='.sl'
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'
8142 esac
8143 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8144 postinstall_cmds='chmod 555 $lib'
8147 irix5* | irix6* | nonstopux*)
8148 case $host_os in
8149 nonstopux*) version_type=nonstopux ;;
8151 if test "$lt_cv_prog_gnu_ld" = yes; then
8152 version_type=linux
8153 else
8154 version_type=irix
8155 fi ;;
8156 esac
8157 need_lib_prefix=no
8158 need_version=no
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}'
8161 case $host_os in
8162 irix5* | nonstopux*)
8163 libsuff= shlibsuff=
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;;
8174 esac
8176 esac
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*)
8186 dynamic_linker=no
8189 # This must be Linux ELF.
8190 linux*)
8191 version_type=linux
8192 need_lib_prefix=no
8193 need_version=no
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'
8213 netbsd*)
8214 version_type=sunos
8215 need_lib_prefix=no
8216 need_version=no
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'
8221 else
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
8231 newsos6)
8232 version_type=linux
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
8238 nto-qnx*)
8239 version_type=linux
8240 need_lib_prefix=no
8241 need_version=no
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
8248 openbsd*)
8249 version_type=sunos
8250 need_lib_prefix=no
8251 need_version=no
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
8256 case $host_os in
8257 openbsd2.[89] | openbsd2.[89].*)
8258 shlibpath_overrides_runpath=no
8261 shlibpath_overrides_runpath=yes
8263 esac
8264 else
8265 shlibpath_overrides_runpath=yes
8269 os2*)
8270 libname_spec='$name'
8271 shrext=".dll"
8272 need_lib_prefix=no
8273 library_names_spec='$libname${shared_ext} $libname.a'
8274 dynamic_linker='OS/2 ld.exe'
8275 shlibpath_var=LIBPATH
8278 osf3* | osf4* | osf5*)
8279 version_type=osf
8280 need_lib_prefix=no
8281 need_version=no
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"
8289 sco3.2v5*)
8290 version_type=osf
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
8296 solaris*)
8297 version_type=linux
8298 need_lib_prefix=no
8299 need_version=no
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'
8309 sunos4*)
8310 version_type=sunos
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
8316 need_lib_prefix=no
8318 need_version=yes
8321 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8322 version_type=linux
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
8327 sni)
8328 shlibpath_overrides_runpath=no
8329 need_lib_prefix=no
8330 export_dynamic_flag_spec='${wl}-Blargedynsym'
8331 runpath_var=LD_RUN_PATH
8333 siemens)
8334 need_lib_prefix=no
8336 motorola)
8337 need_lib_prefix=no
8338 need_version=no
8339 shlibpath_overrides_runpath=no
8340 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8342 esac
8345 sysv4*MP*)
8346 if test -d /usr/nec ;then
8347 version_type=linux
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
8354 uts4*)
8355 version_type=linux
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
8362 dynamic_linker=no
8364 esac
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; }
8371 hardcode_action=
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
8385 else
8386 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8387 hardcode_action=immediate
8389 else
8390 # We cannot hardcode anything, or else we can only hardcode existing
8391 # directories.
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
8406 striplib=
8407 old_striplib=
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; }
8415 else
8416 # FIXME - insert some real tests, host_os isn't really good enough
8417 case $host_os in
8418 darwin*)
8419 if test -n "$STRIP" ; then
8420 striplib="$STRIP -x"
8421 { echo "$as_me:$LINENO: result: yes" >&5
8422 echo "${ECHO_T}yes" >&6; }
8423 else
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; }
8432 esac
8435 if test "x$enable_dlopen" != xyes; then
8436 enable_dlopen=unknown
8437 enable_dlopen_self=unknown
8438 enable_dlopen_self_static=unknown
8439 else
8440 lt_cv_dlopen=no
8441 lt_cv_dlopen_libs=
8443 case $host_os in
8444 beos*)
8445 lt_cv_dlopen="load_add_on"
8446 lt_cv_dlopen_libs=
8447 lt_cv_dlopen_self=yes
8450 mingw* | pw32*)
8451 lt_cv_dlopen="LoadLibrary"
8452 lt_cv_dlopen_libs=
8455 cygwin*)
8456 lt_cv_dlopen="dlopen"
8457 lt_cv_dlopen_libs=
8460 darwin*)
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
8466 else
8467 ac_check_lib_save_LIBS=$LIBS
8468 LIBS="-ldl $LIBS"
8469 cat >conftest.$ac_ext <<_ACEOF
8470 /* confdefs.h. */
8471 _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. */
8479 #ifdef __cplusplus
8480 extern "C"
8481 #endif
8482 char dlopen ();
8484 main ()
8486 return dlopen ();
8488 return 0;
8490 _ACEOF
8491 rm -f conftest.$ac_objext conftest$ac_exeext
8492 if { (ac_try="$ac_link"
8493 case "(($ac_try" in
8494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8495 *) ac_try_echo=$ac_try;;
8496 esac
8497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8498 (eval "$ac_link") 2>conftest.er1
8499 ac_status=$?
8500 grep -v '^ *+' conftest.er1 >conftest.err
8501 rm -f conftest.er1
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
8510 else
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"
8525 else
8527 lt_cv_dlopen="dyld"
8528 lt_cv_dlopen_libs=
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
8540 else
8541 cat >conftest.$ac_ext <<_ACEOF
8542 /* confdefs.h. */
8543 _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. */
8556 #ifdef __STDC__
8557 # include <limits.h>
8558 #else
8559 # include <assert.h>
8560 #endif
8562 #undef shl_load
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. */
8567 #ifdef __cplusplus
8568 extern "C"
8569 #endif
8570 char shl_load ();
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
8575 choke me
8576 #endif
8579 main ()
8581 return shl_load ();
8583 return 0;
8585 _ACEOF
8586 rm -f conftest.$ac_objext conftest$ac_exeext
8587 if { (ac_try="$ac_link"
8588 case "(($ac_try" in
8589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8590 *) ac_try_echo=$ac_try;;
8591 esac
8592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8593 (eval "$ac_link") 2>conftest.er1
8594 ac_status=$?
8595 grep -v '^ *+' conftest.er1 >conftest.err
8596 rm -f conftest.er1
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
8605 else
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"
8619 else
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
8624 else
8625 ac_check_lib_save_LIBS=$LIBS
8626 LIBS="-ldld $LIBS"
8627 cat >conftest.$ac_ext <<_ACEOF
8628 /* confdefs.h. */
8629 _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. */
8637 #ifdef __cplusplus
8638 extern "C"
8639 #endif
8640 char shl_load ();
8642 main ()
8644 return shl_load ();
8646 return 0;
8648 _ACEOF
8649 rm -f conftest.$ac_objext conftest$ac_exeext
8650 if { (ac_try="$ac_link"
8651 case "(($ac_try" in
8652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8653 *) ac_try_echo=$ac_try;;
8654 esac
8655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8656 (eval "$ac_link") 2>conftest.er1
8657 ac_status=$?
8658 grep -v '^ *+' conftest.er1 >conftest.err
8659 rm -f conftest.er1
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
8668 else
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"
8683 else
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
8688 else
8689 cat >conftest.$ac_ext <<_ACEOF
8690 /* confdefs.h. */
8691 _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. */
8704 #ifdef __STDC__
8705 # include <limits.h>
8706 #else
8707 # include <assert.h>
8708 #endif
8710 #undef dlopen
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. */
8715 #ifdef __cplusplus
8716 extern "C"
8717 #endif
8718 char dlopen ();
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
8723 choke me
8724 #endif
8727 main ()
8729 return dlopen ();
8731 return 0;
8733 _ACEOF
8734 rm -f conftest.$ac_objext conftest$ac_exeext
8735 if { (ac_try="$ac_link"
8736 case "(($ac_try" in
8737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8738 *) ac_try_echo=$ac_try;;
8739 esac
8740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8741 (eval "$ac_link") 2>conftest.er1
8742 ac_status=$?
8743 grep -v '^ *+' conftest.er1 >conftest.err
8744 rm -f conftest.er1
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
8753 else
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"
8767 else
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
8772 else
8773 ac_check_lib_save_LIBS=$LIBS
8774 LIBS="-ldl $LIBS"
8775 cat >conftest.$ac_ext <<_ACEOF
8776 /* confdefs.h. */
8777 _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. */
8785 #ifdef __cplusplus
8786 extern "C"
8787 #endif
8788 char dlopen ();
8790 main ()
8792 return dlopen ();
8794 return 0;
8796 _ACEOF
8797 rm -f conftest.$ac_objext conftest$ac_exeext
8798 if { (ac_try="$ac_link"
8799 case "(($ac_try" in
8800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8801 *) ac_try_echo=$ac_try;;
8802 esac
8803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8804 (eval "$ac_link") 2>conftest.er1
8805 ac_status=$?
8806 grep -v '^ *+' conftest.er1 >conftest.err
8807 rm -f conftest.er1
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
8816 else
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"
8831 else
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
8836 else
8837 ac_check_lib_save_LIBS=$LIBS
8838 LIBS="-lsvld $LIBS"
8839 cat >conftest.$ac_ext <<_ACEOF
8840 /* confdefs.h. */
8841 _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. */
8849 #ifdef __cplusplus
8850 extern "C"
8851 #endif
8852 char dlopen ();
8854 main ()
8856 return dlopen ();
8858 return 0;
8860 _ACEOF
8861 rm -f conftest.$ac_objext conftest$ac_exeext
8862 if { (ac_try="$ac_link"
8863 case "(($ac_try" in
8864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8865 *) ac_try_echo=$ac_try;;
8866 esac
8867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8868 (eval "$ac_link") 2>conftest.er1
8869 ac_status=$?
8870 grep -v '^ *+' conftest.er1 >conftest.err
8871 rm -f conftest.er1
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
8880 else
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"
8895 else
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
8900 else
8901 ac_check_lib_save_LIBS=$LIBS
8902 LIBS="-ldld $LIBS"
8903 cat >conftest.$ac_ext <<_ACEOF
8904 /* confdefs.h. */
8905 _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. */
8913 #ifdef __cplusplus
8914 extern "C"
8915 #endif
8916 char dld_link ();
8918 main ()
8920 return dld_link ();
8922 return 0;
8924 _ACEOF
8925 rm -f conftest.$ac_objext conftest$ac_exeext
8926 if { (ac_try="$ac_link"
8927 case "(($ac_try" in
8928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8929 *) ac_try_echo=$ac_try;;
8930 esac
8931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8932 (eval "$ac_link") 2>conftest.er1
8933 ac_status=$?
8934 grep -v '^ *+' conftest.er1 >conftest.err
8935 rm -f conftest.er1
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
8944 else
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"
8977 esac
8979 if test "x$lt_cv_dlopen" != xno; then
8980 enable_dlopen=yes
8981 else
8982 enable_dlopen=no
8985 case $lt_cv_dlopen in
8986 dlopen)
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\"
8993 save_LIBS="$LIBS"
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
9000 else
9001 if test "$cross_compiling" = yes; then :
9002 lt_cv_dlopen_self=cross
9003 else
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"
9010 #if HAVE_DLFCN_H
9011 #include <dlfcn.h>
9012 #endif
9014 #include <stdio.h>
9016 #ifdef RTLD_GLOBAL
9017 # define LT_DLGLOBAL RTLD_GLOBAL
9018 #else
9019 # ifdef DL_GLOBAL
9020 # define LT_DLGLOBAL DL_GLOBAL
9021 # else
9022 # define LT_DLGLOBAL 0
9023 # endif
9024 #endif
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
9029 # ifdef RTLD_LAZY
9030 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9031 # else
9032 # ifdef DL_LAZY
9033 # define LT_DLLAZY_OR_NOW DL_LAZY
9034 # else
9035 # ifdef RTLD_NOW
9036 # define LT_DLLAZY_OR_NOW RTLD_NOW
9037 # else
9038 # ifdef DL_NOW
9039 # define LT_DLLAZY_OR_NOW DL_NOW
9040 # else
9041 # define LT_DLLAZY_OR_NOW 0
9042 # endif
9043 # endif
9044 # endif
9045 # endif
9046 #endif
9048 #ifdef __cplusplus
9049 extern "C" void exit (int);
9050 #endif
9052 void fnord() { int i=42;}
9053 int main ()
9055 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9056 int status = $lt_dlunknown;
9058 if (self)
9060 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9061 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9062 /* dlclose (self); */
9065 exit (status);
9068 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9069 (eval $ac_link) 2>&5
9070 ac_status=$?
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
9074 lt_status=$?
9075 case x$lt_status in
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 ;;
9079 esac
9080 else :
9081 # compilation failed
9082 lt_cv_dlopen_self=no
9085 rm -fr conftest*
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
9098 else
9099 if test "$cross_compiling" = yes; then :
9100 lt_cv_dlopen_self_static=cross
9101 else
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"
9108 #if HAVE_DLFCN_H
9109 #include <dlfcn.h>
9110 #endif
9112 #include <stdio.h>
9114 #ifdef RTLD_GLOBAL
9115 # define LT_DLGLOBAL RTLD_GLOBAL
9116 #else
9117 # ifdef DL_GLOBAL
9118 # define LT_DLGLOBAL DL_GLOBAL
9119 # else
9120 # define LT_DLGLOBAL 0
9121 # endif
9122 #endif
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
9127 # ifdef RTLD_LAZY
9128 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9129 # else
9130 # ifdef DL_LAZY
9131 # define LT_DLLAZY_OR_NOW DL_LAZY
9132 # else
9133 # ifdef RTLD_NOW
9134 # define LT_DLLAZY_OR_NOW RTLD_NOW
9135 # else
9136 # ifdef DL_NOW
9137 # define LT_DLLAZY_OR_NOW DL_NOW
9138 # else
9139 # define LT_DLLAZY_OR_NOW 0
9140 # endif
9141 # endif
9142 # endif
9143 # endif
9144 #endif
9146 #ifdef __cplusplus
9147 extern "C" void exit (int);
9148 #endif
9150 void fnord() { int i=42;}
9151 int main ()
9153 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9154 int status = $lt_dlunknown;
9156 if (self)
9158 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9159 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9160 /* dlclose (self); */
9163 exit (status);
9166 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9167 (eval $ac_link) 2>&5
9168 ac_status=$?
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
9172 lt_status=$?
9173 case x$lt_status in
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 ;;
9177 esac
9178 else :
9179 # compilation failed
9180 lt_cv_dlopen_self_static=no
9183 rm -fr conftest*
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"
9193 LIBS="$save_LIBS"
9195 esac
9197 case $lt_cv_dlopen_self in
9198 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9199 *) enable_dlopen_self=unknown ;;
9200 esac
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 ;;
9205 esac
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.
9221 case "$host_os" in
9222 aix3*)
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'
9230 aix4*)
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
9238 case "$host_os" in
9239 rhapsody* | darwin1.[012])
9240 allow_undefined_flag='-undefined suppress'
9242 *) # Darwin 1.3 on
9243 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9244 allow_undefined_flag='-flat_namespace -undefined suppress'
9245 else
9246 case ${MACOSX_DEPLOYMENT_TARGET} in
9247 10.[012])
9248 allow_undefined_flag='-flat_namespace -undefined suppress'
9250 10.*)
9251 allow_undefined_flag='-undefined dynamic_lookup'
9253 esac
9256 esac
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}'
9263 hardcode_direct=no
9264 hardcode_automatic=yes
9265 hardcode_shlibpath_var=unsupported
9266 whole_archive_flag_spec='-all_load $convenience'
9267 link_all_deplibs=yes
9268 else
9269 ld_shlibs=no
9272 esac
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 \
9304 compiler \
9305 CC \
9306 LD \
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 \
9315 old_archive_cmds \
9316 old_archive_from_new_cmds \
9317 predep_objects \
9318 postdep_objects \
9319 predeps \
9320 postdeps \
9321 compiler_lib_search_path \
9322 archive_cmds \
9323 archive_expsym_cmds \
9324 postinstall_cmds \
9325 postuninstall_cmds \
9326 old_archive_from_expsyms_cmds \
9327 allow_undefined_flag \
9328 no_undefined_flag \
9329 export_symbols_cmds \
9330 hardcode_libdir_flag_spec \
9331 hardcode_libdir_flag_spec_ld \
9332 hardcode_libdir_separator \
9333 hardcode_automatic \
9334 module_cmds \
9335 module_expsym_cmds \
9336 lt_cv_prog_compiler_c_o \
9337 exclude_expsyms \
9338 include_expsyms; do
9340 case $var in
9341 old_archive_cmds | \
9342 old_archive_from_new_cmds | \
9343 archive_cmds | \
9344 archive_expsym_cmds | \
9345 module_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\"\`\\\""
9359 esac
9360 done
9362 case $lt_echo in
9363 *'\$0 --fallback-echo"')
9364 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9366 esac
9368 cfgfile="${ofile}T"
9369 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9370 $rm -f "$cfgfile"
9371 { echo "$as_me:$LINENO: creating $ofile" >&5
9372 echo "$as_me: creating $ofile" >&6;}
9374 cat <<__EOF__ >> "$cfgfile"
9375 #! $SHELL
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.
9407 SED=$lt_SED
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
9413 # if CDPATH is set.
9414 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
9416 # The names of the tagged configurations supported by this script.
9417 available_tags=
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.
9424 SHELL=$lt_SHELL
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
9441 # The host system.
9442 host_alias=$host_alias
9443 host=$host
9445 # An echo program that does not interpret backslashes.
9446 echo=$lt_echo
9448 # The archiver.
9449 AR=$lt_AR
9450 AR_FLAGS=$lt_AR_FLAGS
9452 # A C compiler.
9453 LTCC=$lt_LTCC
9455 # A language-specific compiler.
9456 CC=$lt_compiler
9458 # Is the compiler the GNU C compiler?
9459 with_gcc=$GCC
9461 # An ERE matcher.
9462 EGREP=$lt_EGREP
9464 # The linker used to build libraries.
9465 LD=$lt_LD
9467 # Whether we need hard or soft links.
9468 LN_S=$lt_LN_S
9470 # A BSD-compatible nm program.
9471 NM=$lt_NM
9473 # A symbol stripping program
9474 STRIP="$STRIP"
9476 # Used to examine libraries when file_magic_cmd begins "file"
9477 MAGIC_CMD=$MAGIC_CMD
9479 # Used on cygwin: DLL creation program.
9480 DLLTOOL="$DLLTOOL"
9482 # Used on cygwin: object dumper.
9483 OBJDUMP="$OBJDUMP"
9485 # Used on cygwin: assembler.
9486 AS="$AS"
9488 # The name of the directory that contains temporary libtool files.
9489 objdir=$objdir
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").
9499 objext="$ac_objext"
9501 # Old archive suffix (normally "a").
9502 libext="$libext"
9504 # Shared library suffix (normally ".so").
9505 shrext='$shrext'
9507 # Executable file suffix (normally "").
9508 exeext="$exeext"
9510 # Additional compiler flags for building library objects.
9511 pic_flag=$lt_lt_prog_compiler_pic
9512 pic_mode=$pic_mode
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.
9567 RANLIB=$lt_RANLIB
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
9593 # shared library.
9594 predep_objects=$lt_predep_objects
9596 # Dependencies to place after the objects being linked to create a
9597 # shared library.
9598 postdep_objects=$lt_postdep_objects
9600 # Dependencies to place before the objects being linked to create a
9601 # shared library.
9602 predeps=$lt_predeps
9604 # Dependencies to place after the objects being linked to create a
9605 # shared library.
9606 postdeps=$lt_postdeps
9608 # The library search path used internally by the compiler when linking
9609 # a shared library.
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
9660 # not exist.
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
9667 # resulting binary.
9668 hardcode_direct=$hardcode_direct
9670 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9671 # resulting binary.
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
9715 __EOF__
9718 case $host_os in
9719 aix3*)
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
9726 COLLECT_NAMES=
9727 export COLLECT_NAMES
9731 esac
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")
9741 chmod +x "$ofile"
9743 else
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"
9751 ac_ext=c
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
9757 CC="$lt_save_CC"
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;}
9777 else
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
9789 IFS="$lt_save_ifs"
9790 # Check whether tagname contains only valid characters
9791 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9792 "") ;;
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; }; }
9797 esac
9799 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9800 then
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
9810 case $tagname in
9811 CXX)
9812 if test -n "$CXX" && test "X$CXX" != "Xno"; then
9813 ac_ext=cpp
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
9833 module_cmds_CXX=
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:
9842 predep_objects_CXX=
9843 postdep_objects_CXX=
9844 predeps_CXX=
9845 postdeps_CXX=
9846 compiler_lib_search_path_CXX=
9848 # Source file extension for C++ test sources.
9849 ac_ext=cc
9851 # Object file extension for compiled C++ test sources.
9852 objext=o
9853 objext_CXX=$objext
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.
9864 LTCC=${LTCC-"$CC"}
9866 # Allow CC to be a program name with arguments.
9867 compiler=$CC
9870 # Allow CC to be a program name with arguments.
9871 lt_save_CC=$CC
9872 lt_save_LD=$LD
9873 lt_save_GCC=$GCC
9874 GCC=$GXX
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
9879 else
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
9884 else
9885 unset lt_cv_path_LD
9887 test -z "${LDCXX+set}" || LD=$LDCXX
9888 CC=${CXX-"c++"}
9889 compiler=$CC
9890 compiler_CXX=$CC
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'
9897 else
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
9908 else
9909 with_gnu_ld=no
9912 ac_prog=ld
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; }
9917 case $host in
9918 *-*-mingw*)
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` ;;
9923 esac
9924 case $ac_prog in
9925 # Accept absolute paths.
9926 [\\/]* | ?:[\\/]*)
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%/%"`
9932 done
9933 test -z "$LD" && LD="$ac_prog"
9936 # If it fails, then pretend we aren't using GCC.
9937 ac_prog=ld
9940 # If it is relative, then search for the first ld in PATH.
9941 with_gnu_ld=unknown
9943 esac
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; }
9947 else
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
9953 else
9954 if test -z "$LD"; then
9955 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9956 for ac_dir in $PATH; do
9957 IFS="$lt_save_ifs"
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
9971 esac
9973 done
9974 IFS="$lt_save_ifs"
9975 else
9976 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9980 LD="$lt_cv_path_LD"
9981 if test -n "$LD"; then
9982 { echo "$as_me:$LINENO: result: $LD" >&5
9983 echo "${ECHO_T}$LD" >&6; }
9984 else
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
9995 else
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
10004 esac
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)
10024 wlarc='${wl}'
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'
10030 else
10031 whole_archive_flag_spec_CXX=
10033 else
10034 with_gnu_ld=no
10035 wlarc=
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"'
10050 else
10051 GXX=no
10052 with_gnu_ld=no
10053 wlarc=
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; }
10059 ld_shlibs_CXX=yes
10060 case $host_os in
10061 aix3*)
10062 # FIXME: insert proper C++ library support
10063 ld_shlibs_CXX=no
10065 aix4* | aix5*)
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'
10071 no_entry_flag=""
10072 else
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
10080 case $ld_flag in
10081 *-brtl*)
10082 aix_use_runtimelinking=yes
10083 break
10085 esac
10086 done
10087 esac
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
10111 then
10112 # We have reworked collect2
10113 hardcode_direct_CXX=yes
10114 else
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=
10124 esac
10125 shared_flag='-shared'
10126 else
10127 # not using gcc
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:
10131 shared_flag='-G'
10132 else
10133 if test "$aix_use_runtimelinking" = yes; then
10134 shared_flag='${wl}-G'
10135 else
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
10150 /* confdefs.h. */
10151 _ACEOF
10152 cat confdefs.h >>conftest.$ac_ext
10153 cat >>conftest.$ac_ext <<_ACEOF
10154 /* end confdefs.h. */
10157 main ()
10161 return 0;
10163 _ACEOF
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;;
10169 esac
10170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10171 (eval "$ac_link") 2>conftest.er1
10172 ac_status=$?
10173 grep -v '^ *+' conftest.er1 >conftest.err
10174 rm -f conftest.er1
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; }
10187 }'`; fi
10188 else
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"
10202 else
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"
10207 else
10208 # Determine the default libpath from the value encoded in an empty executable.
10209 cat >conftest.$ac_ext <<_ACEOF
10210 /* confdefs.h. */
10211 _ACEOF
10212 cat confdefs.h >>conftest.$ac_ext
10213 cat >>conftest.$ac_ext <<_ACEOF
10214 /* end confdefs.h. */
10217 main ()
10221 return 0;
10223 _ACEOF
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;;
10229 esac
10230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10231 (eval "$ac_link") 2>conftest.er1
10232 ac_status=$?
10233 grep -v '^ *+' conftest.er1 >conftest.err
10234 rm -f conftest.er1
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; }
10247 }'`; fi
10248 else
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'
10274 chorus*)
10275 case $cc_basename in
10277 # FIXME: insert proper C++ library support
10278 ld_shlibs_CXX=no
10280 esac
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;
10297 else
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'
10302 else
10303 ld_shlibs_CXX=no
10307 darwin* | rhapsody*)
10308 if test "$GXX" = yes; then
10309 archive_cmds_need_lc_CXX=no
10310 case "$host_os" in
10311 rhapsody* | darwin1.[012])
10312 allow_undefined_flag_CXX='-undefined suppress'
10314 *) # Darwin 1.3 on
10315 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10316 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10317 else
10318 case ${MACOSX_DEPLOYMENT_TARGET} in
10319 10.[012])
10320 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10322 10.*)
10323 allow_undefined_flag_CXX='-undefined dynamic_lookup'
10325 esac
10328 esac
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'
10336 else
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}'
10344 else
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
10353 else
10354 ld_shlibs_CXX=no
10358 dgux*)
10359 case $cc_basename in
10360 ec++)
10361 # FIXME: insert proper C++ library support
10362 ld_shlibs_CXX=no
10364 ghcx)
10365 # Green Hills C++ Compiler
10366 # FIXME: insert proper C++ library support
10367 ld_shlibs_CXX=no
10370 # FIXME: insert proper C++ library support
10371 ld_shlibs_CXX=no
10373 esac
10375 freebsd12*)
10376 # C++ shared libraries reported to be fairly broken before switch to ELF
10377 ld_shlibs_CXX=no
10379 freebsd-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
10384 # conventions
10385 ld_shlibs_CXX=yes
10387 gnu*)
10389 hpux9*)
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
10401 ld_shlibs_CXX=no
10403 aCC)
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
10412 # dependencies.
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'
10418 else
10419 # FIXME: insert proper C++ library support
10420 ld_shlibs_CXX=no
10423 esac
10425 hpux10*|hpux11*)
10426 if test $with_gnu_ld = no; then
10427 case "$host_cpu" in
10428 hppa*64*)
10429 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10430 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10431 hardcode_libdir_separator_CXX=:
10433 ia64*)
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'
10441 esac
10443 case "$host_cpu" in
10444 hppa*64*)
10445 hardcode_direct_CXX=no
10446 hardcode_shlibpath_var_CXX=no
10448 ia64*)
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.
10461 esac
10463 case $cc_basename in
10465 # FIXME: insert proper C++ library support
10466 ld_shlibs_CXX=no
10468 aCC)
10469 case "$host_cpu" in
10470 hppa*64*|ia64*)
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'
10476 esac
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
10484 # dependencies.
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
10491 ia64*|hppa*64*)
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'
10497 esac
10499 else
10500 # FIXME: insert proper C++ library support
10501 ld_shlibs_CXX=no
10504 esac
10506 irix5* | irix6*)
10507 case $cc_basename in
10509 # SGI C++
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
10515 # in the archive.
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'
10522 else
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
10528 esac
10529 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10530 hardcode_libdir_separator_CXX=:
10532 linux*)
10533 case $cc_basename in
10534 KCC)
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
10549 # dependencies.
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'
10559 icpc)
10560 # Intel C++
10561 with_gnu_ld=yes
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'
10569 cxx)
10570 # Compaq C++
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
10585 # dependencies.
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'
10588 esac
10590 lynxos*)
10591 # FIXME: insert proper C++ library support
10592 ld_shlibs_CXX=no
10594 m88k*)
10595 # FIXME: insert proper C++ library support
10596 ld_shlibs_CXX=no
10598 mvs*)
10599 case $cc_basename in
10600 cxx)
10601 # FIXME: insert proper C++ library support
10602 ld_shlibs_CXX=no
10605 # FIXME: insert proper C++ library support
10606 ld_shlibs_CXX=no
10608 esac
10610 netbsd*)
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'
10613 wlarc=
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::"'
10621 osf3*)
10622 case $cc_basename in
10623 KCC)
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'
10639 RCC)
10640 # Rational C++ 2.4.1
10641 # FIXME: insert proper C++ library support
10642 ld_shlibs_CXX=no
10644 cxx)
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
10658 # dependencies.
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"'
10674 else
10675 # FIXME: insert proper C++ library support
10676 ld_shlibs_CXX=no
10679 esac
10681 osf4* | osf5*)
10682 case $cc_basename in
10683 KCC)
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'
10698 RCC)
10699 # Rational C++ 2.4.1
10700 # FIXME: insert proper C++ library support
10701 ld_shlibs_CXX=no
10703 cxx)
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~
10709 $rm $lib.exp'
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
10721 # dependencies.
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"'
10737 else
10738 # FIXME: insert proper C++ library support
10739 ld_shlibs_CXX=no
10742 esac
10744 psos*)
10745 # FIXME: insert proper C++ library support
10746 ld_shlibs_CXX=no
10748 sco*)
10749 archive_cmds_need_lc_CXX=no
10750 case $cc_basename in
10752 # FIXME: insert proper C++ library support
10753 ld_shlibs_CXX=no
10756 # FIXME: insert proper C++ library support
10757 ld_shlibs_CXX=no
10759 esac
10761 sunos4*)
10762 case $cc_basename in
10764 # Sun C++ 4.x
10765 # FIXME: insert proper C++ library support
10766 ld_shlibs_CXX=no
10768 lcc)
10769 # Lucid
10770 # FIXME: insert proper C++ library support
10771 ld_shlibs_CXX=no
10774 # FIXME: insert proper C++ library support
10775 ld_shlibs_CXX=no
10777 esac
10779 solaris*)
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
10790 case $host_os in
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
10795 # linker.
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'
10799 esac
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
10809 # dependencies.
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
10815 # in the archive.
10816 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10818 gcx)
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\""
10838 else
10839 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10840 # platform.
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'
10854 esac
10856 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10857 archive_cmds_need_lc_CXX=no
10859 tandem*)
10860 case $cc_basename in
10861 NCC)
10862 # NonStop-UX NCC 3.20
10863 # FIXME: insert proper C++ library support
10864 ld_shlibs_CXX=no
10867 # FIXME: insert proper C++ library support
10868 ld_shlibs_CXX=no
10870 esac
10872 vxworks*)
10873 # FIXME: insert proper C++ library support
10874 ld_shlibs_CXX=no
10877 # FIXME: insert proper C++ library support
10878 ld_shlibs_CXX=no
10880 esac
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
10885 GCC_CXX="$GXX"
10886 LD_CXX="$LD"
10888 ## CAVEAT EMPTOR:
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
10894 class Foo
10896 public:
10897 Foo (void) { a = 0; }
10898 private:
10899 int a;
10903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10904 (eval $ac_compile) 2>&5
10905 ac_status=$?
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
10921 case $p in
10923 -L* | -R* | -l*)
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
10928 prev=$p
10929 continue
10930 else
10931 prev=
10934 if test "$pre_test_object_deps_done" = no; then
10935 case $p in
10936 -L* | -R*)
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}"
10942 else
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.
10948 esac
10949 else
10950 if test -z "$postdeps_CXX"; then
10951 postdeps_CXX="${prev}${p}"
10952 else
10953 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10958 *.$objext)
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
10963 continue
10966 if test "$pre_test_object_deps_done" = no; then
10967 if test -z "$predep_objects_CXX"; then
10968 predep_objects_CXX="$p"
10969 else
10970 predep_objects_CXX="$predep_objects_CXX $p"
10972 else
10973 if test -z "$postdep_objects_CXX"; then
10974 postdep_objects_CXX="$p"
10975 else
10976 postdep_objects_CXX="$postdep_objects_CXX $p"
10981 *) ;; # Ignore the rest.
10983 esac
10984 done
10986 # Clean up.
10987 rm -f a.out a.exe
10988 else
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 ;;
10996 esac
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'
11010 case $host_os in
11011 aix*)
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'
11018 amigaos*)
11019 # FIXME: we need at least 68020 code to build shared libraries, but
11020 # adding the `-m68020' flag to GCC prevents building anything better,
11021 # like `-m68040'.
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'
11037 *djgpp*)
11038 # DJGPP does not support shared libraries at all
11039 lt_prog_compiler_pic_CXX=
11041 sysv4*MP*)
11042 if test -d /usr/nec; then
11043 lt_prog_compiler_pic_CXX=-Kconform_pic
11046 hpux*)
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
11050 hppa*64*|ia64*)
11053 lt_prog_compiler_pic_CXX='-fPIC'
11055 esac
11058 lt_prog_compiler_pic_CXX='-fPIC'
11060 esac
11061 else
11062 case $host_os in
11063 aix4* | aix5*)
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'
11068 else
11069 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11072 chorus*)
11073 case $cc_basename in
11074 cxch68)
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"
11078 esac
11080 dgux*)
11081 case $cc_basename in
11082 ec++)
11083 lt_prog_compiler_pic_CXX='-KPIC'
11085 ghcx)
11086 # Green Hills C++ Compiler
11087 lt_prog_compiler_pic_CXX='-pic'
11091 esac
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'
11105 aCC)
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
11109 hppa*64*|ia64*)
11110 # +Z the default
11113 lt_prog_compiler_pic_CXX='+Z'
11115 esac
11119 esac
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.
11130 esac
11132 linux*)
11133 case $cc_basename in
11134 KCC)
11135 # KAI C++ Compiler
11136 lt_prog_compiler_wl_CXX='--backend -Wl,'
11137 lt_prog_compiler_pic_CXX='-fPIC'
11139 icpc)
11140 # Intel C++
11141 lt_prog_compiler_wl_CXX='-Wl,'
11142 lt_prog_compiler_pic_CXX='-KPIC'
11143 lt_prog_compiler_static_CXX='-static'
11145 cxx)
11146 # Compaq C++
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'
11154 esac
11156 lynxos*)
11158 m88k*)
11160 mvs*)
11161 case $cc_basename in
11162 cxx)
11163 lt_prog_compiler_pic_CXX='-W c,exportall'
11167 esac
11169 netbsd*)
11171 osf3* | osf4* | osf5*)
11172 case $cc_basename in
11173 KCC)
11174 lt_prog_compiler_wl_CXX='--backend -Wl,'
11176 RCC)
11177 # Rational C++ 2.4.1
11178 lt_prog_compiler_pic_CXX='-pic'
11180 cxx)
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'
11190 esac
11192 psos*)
11194 sco*)
11195 case $cc_basename in
11197 lt_prog_compiler_pic_CXX='-fPIC'
11201 esac
11203 solaris*)
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 '
11211 gcx)
11212 # Green Hills C++ Compiler
11213 lt_prog_compiler_pic_CXX='-PIC'
11217 esac
11219 sunos4*)
11220 case $cc_basename in
11222 # Sun C++ 4.x
11223 lt_prog_compiler_pic_CXX='-pic'
11224 lt_prog_compiler_static_CXX='-Bstatic'
11226 lcc)
11227 # Lucid
11228 lt_prog_compiler_pic_CXX='-pic'
11232 esac
11234 tandem*)
11235 case $cc_basename in
11236 NCC)
11237 # NonStop-UX NCC 3.20
11238 lt_prog_compiler_pic_CXX='-KPIC'
11242 esac
11244 unixware*)
11246 vxworks*)
11249 lt_prog_compiler_can_build_shared_CXX=no
11251 esac
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
11266 else
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)
11282 ac_status=$?
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
11292 $rm conftest*
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
11300 "" | " "*) ;;
11301 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11302 esac
11303 else
11304 lt_prog_compiler_pic_CXX=
11305 lt_prog_compiler_can_build_shared_CXX=no
11309 case "$host_os" in
11310 # For platforms which do not support PIC, -DPIC is meaningless:
11311 *djgpp*)
11312 lt_prog_compiler_pic_CXX=
11315 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11317 esac
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
11323 else
11324 lt_cv_prog_compiler_c_o_CXX=no
11325 $rm -r conftest 2>/dev/null
11326 mkdir conftest
11327 cd conftest
11328 mkdir out
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
11335 # builds.
11336 chmod -w .
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)
11349 ac_status=$?
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
11353 then
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
11360 chmod u+w .
11361 $rm conftest*
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
11366 cd ..
11367 rmdir conftest
11368 $rm conftest*
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; }
11380 hard_links=yes
11381 $rm conftest*
11382 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11383 touch conftest.a
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;}
11391 need_locks=warn
11393 else
11394 need_locks=no
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'
11401 case $host_os in
11402 aix4* | aix5*)
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'
11407 else
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'
11411 pw32*)
11412 export_symbols_cmds_CXX="$ltdll_cmds"
11414 cygwin* | mingw*)
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'
11420 esac
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
11435 x|xyes)
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
11441 *'~'*)
11442 # FIXME: we may have to deal with multi-command sequences.
11444 '$CC '*)
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; }
11450 $rm conftest*
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
11455 ac_status=$?
11456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11457 (exit $ac_status); } 2>conftest.err; then
11458 soname=conftest
11459 lib=conftest
11460 libobjs=conftest.$ac_objext
11461 deplibs=
11462 wl=$lt_prog_compiler_wl_CXX
11463 compiler_flags=-v
11464 linker_flags=-v
11465 verstring=
11466 output_objdir=.
11467 libname=conftest
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
11472 ac_status=$?
11473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11474 (exit $ac_status); }
11475 then
11476 archive_cmds_need_lc_CXX=no
11477 else
11478 archive_cmds_need_lc_CXX=yes
11480 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11481 else
11482 cat conftest.err 1>&5
11484 $rm conftest*
11485 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11486 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
11488 esac
11491 esac
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'
11497 soname_spec=
11498 shrext=".so"
11499 postinstall_cmds=
11500 postuninstall_cmds=
11501 finish_cmds=
11502 finish_eval=
11503 shlibpath_var=
11504 shlibpath_overrides_runpath=unknown
11505 version_type=none
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'`
11516 else
11517 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11519 else
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
11529 case $host_os in
11530 aix3*)
11531 version_type=linux
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'
11539 aix4* | aix5*)
11540 version_type=linux
11541 need_lib_prefix=no
11542 need_version=no
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
11548 else
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.
11554 case $host_os in
11555 aix4 | aix4.[01] | aix4.[01].*)
11556 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11557 echo ' yes '
11558 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11560 else
11561 can_build_shared=no
11564 esac
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}'
11573 else
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
11583 amigaos*)
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'
11589 beos*)
11590 library_names_spec='${libname}${shared_ext}'
11591 dynamic_linker="$host_os ld.so"
11592 shlibpath_var=LIBRARY_PATH
11595 bsdi4*)
11596 version_type=linux
11597 need_version=no
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
11611 shrext=".dll"
11612 need_version=no
11613 need_lib_prefix=no
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~
11626 $rm \$dlpath'
11627 shlibpath_overrides_runpath=yes
11629 case $host_os in
11630 cygwin*)
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"
11635 mingw*)
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'`
11647 else
11648 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11651 pw32*)
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}'
11655 esac
11659 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11661 esac
11662 dynamic_linker='Win32 ld.exe'
11663 # FIXME: first we should search . and the directory the executable is in
11664 shlibpath_var=PATH
11667 darwin* | rhapsody*)
11668 dynamic_linker="$host_os dyld"
11669 version_type=darwin
11670 need_lib_prefix=no
11671 need_version=no
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"`
11680 else
11681 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11683 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11686 dgux*)
11687 version_type=linux
11688 need_lib_prefix=no
11689 need_version=no
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
11695 freebsd1*)
11696 dynamic_linker=no
11699 kfreebsd*-gnu)
11700 version_type=linux
11701 need_lib_prefix=no
11702 need_version=no
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'
11711 freebsd*)
11712 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11713 version_type=freebsd-$objformat
11714 case $version_type in
11715 freebsd-elf*)
11716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11717 need_version=no
11718 need_lib_prefix=no
11720 freebsd-*)
11721 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11722 need_version=yes
11724 esac
11725 shlibpath_var=LD_LIBRARY_PATH
11726 case $host_os in
11727 freebsd2*)
11728 shlibpath_overrides_runpath=yes
11730 freebsd3.01* | freebsdelf3.01*)
11731 shlibpath_overrides_runpath=yes
11732 hardcode_into_libs=yes
11734 *) # from 3.2 on
11735 shlibpath_overrides_runpath=no
11736 hardcode_into_libs=yes
11738 esac
11741 gnu*)
11742 version_type=linux
11743 need_lib_prefix=no
11744 need_version=no
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.
11754 version_type=sunos
11755 need_lib_prefix=no
11756 need_version=no
11757 case "$host_cpu" in
11758 ia64*)
11759 shrext='.so'
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"
11768 else
11769 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11771 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11773 hppa*64*)
11774 shrext='.sl'
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
11785 shrext='.sl'
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'
11792 esac
11793 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11794 postinstall_cmds='chmod 555 $lib'
11797 irix5* | irix6* | nonstopux*)
11798 case $host_os in
11799 nonstopux*) version_type=nonstopux ;;
11801 if test "$lt_cv_prog_gnu_ld" = yes; then
11802 version_type=linux
11803 else
11804 version_type=irix
11805 fi ;;
11806 esac
11807 need_lib_prefix=no
11808 need_version=no
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}'
11811 case $host_os in
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;;
11824 esac
11826 esac
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*)
11836 dynamic_linker=no
11839 # This must be Linux ELF.
11840 linux*)
11841 version_type=linux
11842 need_lib_prefix=no
11843 need_version=no
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'
11863 netbsd*)
11864 version_type=sunos
11865 need_lib_prefix=no
11866 need_version=no
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'
11871 else
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
11881 newsos6)
11882 version_type=linux
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
11888 nto-qnx*)
11889 version_type=linux
11890 need_lib_prefix=no
11891 need_version=no
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
11898 openbsd*)
11899 version_type=sunos
11900 need_lib_prefix=no
11901 need_version=no
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
11906 case $host_os in
11907 openbsd2.[89] | openbsd2.[89].*)
11908 shlibpath_overrides_runpath=no
11911 shlibpath_overrides_runpath=yes
11913 esac
11914 else
11915 shlibpath_overrides_runpath=yes
11919 os2*)
11920 libname_spec='$name'
11921 shrext=".dll"
11922 need_lib_prefix=no
11923 library_names_spec='$libname${shared_ext} $libname.a'
11924 dynamic_linker='OS/2 ld.exe'
11925 shlibpath_var=LIBPATH
11928 osf3* | osf4* | osf5*)
11929 version_type=osf
11930 need_lib_prefix=no
11931 need_version=no
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"
11939 sco3.2v5*)
11940 version_type=osf
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
11946 solaris*)
11947 version_type=linux
11948 need_lib_prefix=no
11949 need_version=no
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'
11959 sunos4*)
11960 version_type=sunos
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
11966 need_lib_prefix=no
11968 need_version=yes
11971 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11972 version_type=linux
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
11977 sni)
11978 shlibpath_overrides_runpath=no
11979 need_lib_prefix=no
11980 export_dynamic_flag_spec='${wl}-Blargedynsym'
11981 runpath_var=LD_RUN_PATH
11983 siemens)
11984 need_lib_prefix=no
11986 motorola)
11987 need_lib_prefix=no
11988 need_version=no
11989 shlibpath_overrides_runpath=no
11990 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11992 esac
11995 sysv4*MP*)
11996 if test -d /usr/nec ;then
11997 version_type=linux
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
12004 uts4*)
12005 version_type=linux
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
12012 dynamic_linker=no
12014 esac
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
12035 else
12036 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12037 hardcode_action_CXX=immediate
12039 else
12040 # We cannot hardcode anything, or else we can only hardcode existing
12041 # directories.
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
12056 striplib=
12057 old_striplib=
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; }
12065 else
12066 # FIXME - insert some real tests, host_os isn't really good enough
12067 case $host_os in
12068 darwin*)
12069 if test -n "$STRIP" ; then
12070 striplib="$STRIP -x"
12071 { echo "$as_me:$LINENO: result: yes" >&5
12072 echo "${ECHO_T}yes" >&6; }
12073 else
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; }
12082 esac
12085 if test "x$enable_dlopen" != xyes; then
12086 enable_dlopen=unknown
12087 enable_dlopen_self=unknown
12088 enable_dlopen_self_static=unknown
12089 else
12090 lt_cv_dlopen=no
12091 lt_cv_dlopen_libs=
12093 case $host_os in
12094 beos*)
12095 lt_cv_dlopen="load_add_on"
12096 lt_cv_dlopen_libs=
12097 lt_cv_dlopen_self=yes
12100 mingw* | pw32*)
12101 lt_cv_dlopen="LoadLibrary"
12102 lt_cv_dlopen_libs=
12105 cygwin*)
12106 lt_cv_dlopen="dlopen"
12107 lt_cv_dlopen_libs=
12110 darwin*)
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
12116 else
12117 ac_check_lib_save_LIBS=$LIBS
12118 LIBS="-ldl $LIBS"
12119 cat >conftest.$ac_ext <<_ACEOF
12120 /* confdefs.h. */
12121 _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. */
12129 #ifdef __cplusplus
12130 extern "C"
12131 #endif
12132 char dlopen ();
12134 main ()
12136 return dlopen ();
12138 return 0;
12140 _ACEOF
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;;
12146 esac
12147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12148 (eval "$ac_link") 2>conftest.er1
12149 ac_status=$?
12150 grep -v '^ *+' conftest.er1 >conftest.err
12151 rm -f conftest.er1
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
12160 else
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"
12175 else
12177 lt_cv_dlopen="dyld"
12178 lt_cv_dlopen_libs=
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
12190 else
12191 cat >conftest.$ac_ext <<_ACEOF
12192 /* confdefs.h. */
12193 _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. */
12206 #ifdef __STDC__
12207 # include <limits.h>
12208 #else
12209 # include <assert.h>
12210 #endif
12212 #undef shl_load
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. */
12217 #ifdef __cplusplus
12218 extern "C"
12219 #endif
12220 char shl_load ();
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
12225 choke me
12226 #endif
12229 main ()
12231 return shl_load ();
12233 return 0;
12235 _ACEOF
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;;
12241 esac
12242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12243 (eval "$ac_link") 2>conftest.er1
12244 ac_status=$?
12245 grep -v '^ *+' conftest.er1 >conftest.err
12246 rm -f conftest.er1
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
12255 else
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"
12269 else
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
12274 else
12275 ac_check_lib_save_LIBS=$LIBS
12276 LIBS="-ldld $LIBS"
12277 cat >conftest.$ac_ext <<_ACEOF
12278 /* confdefs.h. */
12279 _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. */
12287 #ifdef __cplusplus
12288 extern "C"
12289 #endif
12290 char shl_load ();
12292 main ()
12294 return shl_load ();
12296 return 0;
12298 _ACEOF
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;;
12304 esac
12305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12306 (eval "$ac_link") 2>conftest.er1
12307 ac_status=$?
12308 grep -v '^ *+' conftest.er1 >conftest.err
12309 rm -f conftest.er1
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
12318 else
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"
12333 else
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
12338 else
12339 cat >conftest.$ac_ext <<_ACEOF
12340 /* confdefs.h. */
12341 _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. */
12354 #ifdef __STDC__
12355 # include <limits.h>
12356 #else
12357 # include <assert.h>
12358 #endif
12360 #undef dlopen
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. */
12365 #ifdef __cplusplus
12366 extern "C"
12367 #endif
12368 char dlopen ();
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
12373 choke me
12374 #endif
12377 main ()
12379 return dlopen ();
12381 return 0;
12383 _ACEOF
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;;
12389 esac
12390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12391 (eval "$ac_link") 2>conftest.er1
12392 ac_status=$?
12393 grep -v '^ *+' conftest.er1 >conftest.err
12394 rm -f conftest.er1
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
12403 else
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"
12417 else
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
12422 else
12423 ac_check_lib_save_LIBS=$LIBS
12424 LIBS="-ldl $LIBS"
12425 cat >conftest.$ac_ext <<_ACEOF
12426 /* confdefs.h. */
12427 _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. */
12435 #ifdef __cplusplus
12436 extern "C"
12437 #endif
12438 char dlopen ();
12440 main ()
12442 return dlopen ();
12444 return 0;
12446 _ACEOF
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;;
12452 esac
12453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12454 (eval "$ac_link") 2>conftest.er1
12455 ac_status=$?
12456 grep -v '^ *+' conftest.er1 >conftest.err
12457 rm -f conftest.er1
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
12466 else
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"
12481 else
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
12486 else
12487 ac_check_lib_save_LIBS=$LIBS
12488 LIBS="-lsvld $LIBS"
12489 cat >conftest.$ac_ext <<_ACEOF
12490 /* confdefs.h. */
12491 _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. */
12499 #ifdef __cplusplus
12500 extern "C"
12501 #endif
12502 char dlopen ();
12504 main ()
12506 return dlopen ();
12508 return 0;
12510 _ACEOF
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;;
12516 esac
12517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12518 (eval "$ac_link") 2>conftest.er1
12519 ac_status=$?
12520 grep -v '^ *+' conftest.er1 >conftest.err
12521 rm -f conftest.er1
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
12530 else
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"
12545 else
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
12550 else
12551 ac_check_lib_save_LIBS=$LIBS
12552 LIBS="-ldld $LIBS"
12553 cat >conftest.$ac_ext <<_ACEOF
12554 /* confdefs.h. */
12555 _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. */
12563 #ifdef __cplusplus
12564 extern "C"
12565 #endif
12566 char dld_link ();
12568 main ()
12570 return dld_link ();
12572 return 0;
12574 _ACEOF
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;;
12580 esac
12581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12582 (eval "$ac_link") 2>conftest.er1
12583 ac_status=$?
12584 grep -v '^ *+' conftest.er1 >conftest.err
12585 rm -f conftest.er1
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
12594 else
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"
12627 esac
12629 if test "x$lt_cv_dlopen" != xno; then
12630 enable_dlopen=yes
12631 else
12632 enable_dlopen=no
12635 case $lt_cv_dlopen in
12636 dlopen)
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\"
12643 save_LIBS="$LIBS"
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
12650 else
12651 if test "$cross_compiling" = yes; then :
12652 lt_cv_dlopen_self=cross
12653 else
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"
12660 #if HAVE_DLFCN_H
12661 #include <dlfcn.h>
12662 #endif
12664 #include <stdio.h>
12666 #ifdef RTLD_GLOBAL
12667 # define LT_DLGLOBAL RTLD_GLOBAL
12668 #else
12669 # ifdef DL_GLOBAL
12670 # define LT_DLGLOBAL DL_GLOBAL
12671 # else
12672 # define LT_DLGLOBAL 0
12673 # endif
12674 #endif
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
12679 # ifdef RTLD_LAZY
12680 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12681 # else
12682 # ifdef DL_LAZY
12683 # define LT_DLLAZY_OR_NOW DL_LAZY
12684 # else
12685 # ifdef RTLD_NOW
12686 # define LT_DLLAZY_OR_NOW RTLD_NOW
12687 # else
12688 # ifdef DL_NOW
12689 # define LT_DLLAZY_OR_NOW DL_NOW
12690 # else
12691 # define LT_DLLAZY_OR_NOW 0
12692 # endif
12693 # endif
12694 # endif
12695 # endif
12696 #endif
12698 #ifdef __cplusplus
12699 extern "C" void exit (int);
12700 #endif
12702 void fnord() { int i=42;}
12703 int main ()
12705 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12706 int status = $lt_dlunknown;
12708 if (self)
12710 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12711 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12712 /* dlclose (self); */
12715 exit (status);
12718 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12719 (eval $ac_link) 2>&5
12720 ac_status=$?
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
12724 lt_status=$?
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 ;;
12729 esac
12730 else :
12731 # compilation failed
12732 lt_cv_dlopen_self=no
12735 rm -fr conftest*
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
12748 else
12749 if test "$cross_compiling" = yes; then :
12750 lt_cv_dlopen_self_static=cross
12751 else
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"
12758 #if HAVE_DLFCN_H
12759 #include <dlfcn.h>
12760 #endif
12762 #include <stdio.h>
12764 #ifdef RTLD_GLOBAL
12765 # define LT_DLGLOBAL RTLD_GLOBAL
12766 #else
12767 # ifdef DL_GLOBAL
12768 # define LT_DLGLOBAL DL_GLOBAL
12769 # else
12770 # define LT_DLGLOBAL 0
12771 # endif
12772 #endif
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
12777 # ifdef RTLD_LAZY
12778 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12779 # else
12780 # ifdef DL_LAZY
12781 # define LT_DLLAZY_OR_NOW DL_LAZY
12782 # else
12783 # ifdef RTLD_NOW
12784 # define LT_DLLAZY_OR_NOW RTLD_NOW
12785 # else
12786 # ifdef DL_NOW
12787 # define LT_DLLAZY_OR_NOW DL_NOW
12788 # else
12789 # define LT_DLLAZY_OR_NOW 0
12790 # endif
12791 # endif
12792 # endif
12793 # endif
12794 #endif
12796 #ifdef __cplusplus
12797 extern "C" void exit (int);
12798 #endif
12800 void fnord() { int i=42;}
12801 int main ()
12803 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12804 int status = $lt_dlunknown;
12806 if (self)
12808 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12809 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12810 /* dlclose (self); */
12813 exit (status);
12816 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12817 (eval $ac_link) 2>&5
12818 ac_status=$?
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
12822 lt_status=$?
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 ;;
12827 esac
12828 else :
12829 # compilation failed
12830 lt_cv_dlopen_self_static=no
12833 rm -fr conftest*
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"
12843 LIBS="$save_LIBS"
12845 esac
12847 case $lt_cv_dlopen_self in
12848 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12849 *) enable_dlopen_self=unknown ;;
12850 esac
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 ;;
12855 esac
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 \
12880 compiler_CXX \
12881 CC_CXX \
12882 LD_CXX \
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 \
12895 predeps_CXX \
12896 postdeps_CXX \
12897 compiler_lib_search_path_CXX \
12898 archive_cmds_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 \
12910 module_cmds_CXX \
12911 module_expsym_cmds_CXX \
12912 lt_cv_prog_compiler_c_o_CXX \
12913 exclude_expsyms_CXX \
12914 include_expsyms_CXX; do
12916 case $var in
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\"\`\\\""
12935 esac
12936 done
12938 case $lt_echo in
12939 *'\$0 --fallback-echo"')
12940 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12942 esac
12944 cfgfile="$ofile"
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.
12952 SHELL=$lt_SHELL
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
12969 # The host system.
12970 host_alias=$host_alias
12971 host=$host
12973 # An echo program that does not interpret backslashes.
12974 echo=$lt_echo
12976 # The archiver.
12977 AR=$lt_AR
12978 AR_FLAGS=$lt_AR_FLAGS
12980 # A C compiler.
12981 LTCC=$lt_LTCC
12983 # A language-specific compiler.
12984 CC=$lt_compiler_CXX
12986 # Is the compiler the GNU C compiler?
12987 with_gcc=$GCC_CXX
12989 # An ERE matcher.
12990 EGREP=$lt_EGREP
12992 # The linker used to build libraries.
12993 LD=$lt_LD_CXX
12995 # Whether we need hard or soft links.
12996 LN_S=$lt_LN_S
12998 # A BSD-compatible nm program.
12999 NM=$lt_NM
13001 # A symbol stripping program
13002 STRIP="$STRIP"
13004 # Used to examine libraries when file_magic_cmd begins "file"
13005 MAGIC_CMD=$MAGIC_CMD
13007 # Used on cygwin: DLL creation program.
13008 DLLTOOL="$DLLTOOL"
13010 # Used on cygwin: object dumper.
13011 OBJDUMP="$OBJDUMP"
13013 # Used on cygwin: assembler.
13014 AS="$AS"
13016 # The name of the directory that contains temporary libtool files.
13017 objdir=$objdir
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").
13030 libext="$libext"
13032 # Shared library suffix (normally ".so").
13033 shrext='$shrext'
13035 # Executable file suffix (normally "").
13036 exeext="$exeext"
13038 # Additional compiler flags for building library objects.
13039 pic_flag=$lt_lt_prog_compiler_pic_CXX
13040 pic_mode=$pic_mode
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.
13095 RANLIB=$lt_RANLIB
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
13121 # shared library.
13122 predep_objects=$lt_predep_objects_CXX
13124 # Dependencies to place after the objects being linked to create a
13125 # shared library.
13126 postdep_objects=$lt_postdep_objects_CXX
13128 # Dependencies to place before the objects being linked to create a
13129 # shared library.
13130 predeps=$lt_predeps_CXX
13132 # Dependencies to place after the objects being linked to create a
13133 # shared library.
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
13188 # not exist.
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
13243 __EOF__
13246 else
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"
13254 ac_ext=c
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
13260 CC=$lt_save_CC
13261 LDCXX=$LD
13262 LD=$lt_save_LD
13263 GCC=$lt_save_GCC
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
13271 else
13272 tagname=""
13276 F77)
13277 if test -n "$F77" && test "X$F77" != "Xno"; then
13279 ac_ext=f
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
13296 module_cmds_F77=
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.
13305 ac_ext=f
13307 # Object file extension for compiled f77 test sources.
13308 objext=o
13309 objext_F77=$objext
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.
13320 LTCC=${LTCC-"$CC"}
13322 # Allow CC to be a program name with arguments.
13323 compiler=$CC
13326 # Allow CC to be a program name with arguments.
13327 lt_save_CC="$CC"
13328 CC=${F77-"f77"}
13329 compiler=$CC
13330 compiler_F77=$CC
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.
13344 case "$host_os" in
13345 aix3*)
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'
13352 aix4*)
13353 test "$enable_shared" = yes && enable_static=no
13355 esac
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
13368 GCC_F77="$G77"
13369 LD_F77="$LD"
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'
13382 case $host_os in
13383 aix*)
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'
13391 amigaos*)
13392 # FIXME: we need at least 68020 code to build shared libraries, but
13393 # adding the `-m68020' flag to GCC prevents building anything better,
13394 # like `-m68040'.
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'
13414 msdosdjgpp*)
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
13418 enable_shared=no
13421 sysv4*MP*)
13422 if test -d /usr/nec; then
13423 lt_prog_compiler_pic_F77=-Kconform_pic
13427 hpux*)
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
13431 hppa*64*|ia64*)
13432 # +Z the default
13435 lt_prog_compiler_pic_F77='-fPIC'
13437 esac
13441 lt_prog_compiler_pic_F77='-fPIC'
13443 esac
13444 else
13445 # PORTME Check for flag to pass linker flags through the system compiler.
13446 case $host_os in
13447 aix*)
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'
13452 else
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
13468 hppa*64*|ia64*)
13469 # +Z the default
13472 lt_prog_compiler_pic_F77='+Z'
13474 esac
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'
13485 newsos6)
13486 lt_prog_compiler_pic_F77='-KPIC'
13487 lt_prog_compiler_static_F77='-Bstatic'
13490 linux*)
13491 case $CC in
13492 icc* | ecc*)
13493 lt_prog_compiler_wl_F77='-Wl,'
13494 lt_prog_compiler_pic_F77='-KPIC'
13495 lt_prog_compiler_static_F77='-static'
13497 ccc*)
13498 lt_prog_compiler_wl_F77='-Wl,'
13499 # All Alpha code is PIC.
13500 lt_prog_compiler_static_F77='-non_shared'
13502 esac
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'
13511 sco3.2v5*)
13512 lt_prog_compiler_pic_F77='-Kpic'
13513 lt_prog_compiler_static_F77='-dn'
13516 solaris*)
13517 lt_prog_compiler_wl_F77='-Wl,'
13518 lt_prog_compiler_pic_F77='-KPIC'
13519 lt_prog_compiler_static_F77='-Bstatic'
13522 sunos4*)
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'
13534 sysv4*MP*)
13535 if test -d /usr/nec ;then
13536 lt_prog_compiler_pic_F77='-Kconform_pic'
13537 lt_prog_compiler_static_F77='-Bstatic'
13541 uts4*)
13542 lt_prog_compiler_pic_F77='-pic'
13543 lt_prog_compiler_static_F77='-Bstatic'
13547 lt_prog_compiler_can_build_shared_F77=no
13549 esac
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
13564 else
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)
13580 ac_status=$?
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
13590 $rm conftest*
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
13598 "" | " "*) ;;
13599 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13600 esac
13601 else
13602 lt_prog_compiler_pic_F77=
13603 lt_prog_compiler_can_build_shared_F77=no
13607 case "$host_os" in
13608 # For platforms which do not support PIC, -DPIC is meaningless:
13609 *djgpp*)
13610 lt_prog_compiler_pic_F77=
13613 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13615 esac
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
13621 else
13622 lt_cv_prog_compiler_c_o_F77=no
13623 $rm -r conftest 2>/dev/null
13624 mkdir conftest
13625 cd conftest
13626 mkdir out
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
13633 # builds.
13634 chmod -w .
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)
13647 ac_status=$?
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
13651 then
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
13658 chmod u+w .
13659 $rm conftest*
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
13664 cd ..
13665 rmdir conftest
13666 $rm conftest*
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; }
13678 hard_links=yes
13679 $rm conftest*
13680 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13681 touch conftest.a
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;}
13689 need_locks=warn
13691 else
13692 need_locks=no
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; }
13698 runpath_var=
13699 allow_undefined_flag_F77=
13700 enable_shared_with_static_runtimes_F77=no
13701 archive_cmds_F77=
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
13716 module_cmds_F77=
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=
13735 case $host_os in
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
13741 with_gnu_ld=no
13744 openbsd*)
13745 with_gnu_ld=no
13747 esac
13749 ld_shlibs_F77=yes
13750 if test "$with_gnu_ld" = yes; then
13751 # If archive_cmds runs LD, not CC, wlarc should be empty
13752 wlarc='${wl}'
13754 # See if GNU ld supports shared libraries.
13755 case $host_os in
13756 aix3* | aix4* | aix5*)
13757 # On AIX/PPC, the GNU linker is very broken
13758 if test "$host_cpu" != ia64; then
13759 ld_shlibs_F77=no
13760 cat <<EOF 1>&2
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.
13772 amigaos*)
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
13782 # them.
13783 ld_shlibs_F77=no
13786 beos*)
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'
13792 else
13793 ld_shlibs_F77=no
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;
13812 else
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'
13817 else
13818 ld_shlibs=no
13822 netbsd*)
13823 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13824 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13825 wlarc=
13826 else
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'
13832 solaris* | sysv5*)
13833 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13834 ld_shlibs_F77=no
13835 cat <<EOF 1>&2
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'
13848 else
13849 ld_shlibs_F77=no
13853 sunos4*)
13854 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13855 wlarc=
13856 hardcode_direct_F77=yes
13857 hardcode_shlibpath_var_F77=no
13860 linux*)
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 ;;
13871 esac
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'
13877 else
13878 archive_expsym_cmds_F77="$tmp_archive_cmds"
13880 else
13881 ld_shlibs_F77=no
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'
13889 else
13890 ld_shlibs_F77=no
13893 esac
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'
13902 else
13903 whole_archive_flag_spec_F77=
13906 else
13907 # PORTME fill in a description of your system's linker (not GNU ld)
13908 case $host_os in
13909 aix3*)
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
13918 # broken collect2.
13919 hardcode_direct_F77=unsupported
13923 aix4* | aix5*)
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'
13929 no_entry_flag=""
13930 else
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'
13935 else
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
13947 break
13949 done
13950 esac
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
13974 then
13975 # We have reworked collect2
13976 hardcode_direct_F77=yes
13977 else
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=
13987 esac
13988 shared_flag='-shared'
13989 else
13990 # not using gcc
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:
13994 shared_flag='-G'
13995 else
13996 if test "$aix_use_runtimelinking" = yes; then
13997 shared_flag='${wl}-G'
13998 else
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
14013 program main
14016 _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;;
14022 esac
14023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14024 (eval "$ac_link") 2>conftest.er1
14025 ac_status=$?
14026 grep -v '^ *+' conftest.er1 >conftest.err
14027 rm -f conftest.er1
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; }
14040 }'`; fi
14041 else
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"
14054 else
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"
14059 else
14060 # Determine the default libpath from the value encoded in an empty executable.
14061 cat >conftest.$ac_ext <<_ACEOF
14062 program main
14065 _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;;
14071 esac
14072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14073 (eval "$ac_link") 2>conftest.er1
14074 ac_status=$?
14075 grep -v '^ *+' conftest.er1 >conftest.err
14076 rm -f conftest.er1
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; }
14089 }'`; fi
14090 else
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'
14117 amigaos*)
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
14122 ld_shlibs_F77=no
14125 bsdi4*)
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.
14137 libext=lib
14138 # Tell ltmain to make .dll files, not .so files.
14139 shrext=".dll"
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
14153 case "$host_os" in
14154 rhapsody* | darwin1.[012])
14155 allow_undefined_flag_F77='-undefined suppress'
14157 *) # Darwin 1.3 on
14158 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14159 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14160 else
14161 case ${MACOSX_DEPLOYMENT_TARGET} in
14162 10.[012])
14163 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14165 10.*)
14166 allow_undefined_flag_F77='-undefined dynamic_lookup'
14168 esac
14171 esac
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'
14179 else
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}'
14186 else
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
14195 else
14196 ld_shlibs_F77=no
14200 dgux*)
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
14206 freebsd1*)
14207 ld_shlibs_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
14213 # extra space).
14214 freebsd2.2*)
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.
14222 freebsd2*)
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
14237 hpux9*)
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'
14240 else
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'
14253 hpux10* | hpux11*)
14254 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14255 case "$host_cpu" in
14256 hppa*64*|ia64*)
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'
14262 esac
14263 else
14264 case "$host_cpu" in
14265 hppa*64*|ia64*)
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'
14271 esac
14273 if test "$with_gnu_ld" = no; then
14274 case "$host_cpu" in
14275 hppa*64*)
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
14282 ia64*)
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
14301 esac
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'
14308 else
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
14317 netbsd*)
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
14320 else
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
14328 newsos6)
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
14336 openbsd*)
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'
14343 else
14344 case $host_os in
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'
14353 esac
14357 os2*)
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'
14365 osf3*)
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'
14369 else
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'
14382 else
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=:
14394 sco3.2v5*)
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
14402 solaris*)
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'
14408 else
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
14415 case $host_os in
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' ;;
14419 esac
14420 link_all_deplibs_F77=yes
14423 sunos4*)
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'
14428 else
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
14437 sysv4)
14438 case $host_vendor in
14439 sni)
14440 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14441 hardcode_direct_F77=yes # is this really true???
14443 siemens)
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
14450 motorola)
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
14454 esac
14455 runpath_var='LD_RUN_PATH'
14456 hardcode_shlibpath_var_F77=no
14459 sysv4.3*)
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'
14465 sysv4*MP*)
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
14471 ld_shlibs_F77=yes
14475 sysv4.2uw2*)
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'
14488 else
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
14495 sysv5*)
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'
14507 uts4*)
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
14514 ld_shlibs_F77=no
14516 esac
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
14532 x|xyes)
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
14538 *'~'*)
14539 # FIXME: we may have to deal with multi-command sequences.
14541 '$CC '*)
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; }
14547 $rm conftest*
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
14552 ac_status=$?
14553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14554 (exit $ac_status); } 2>conftest.err; then
14555 soname=conftest
14556 lib=conftest
14557 libobjs=conftest.$ac_objext
14558 deplibs=
14559 wl=$lt_prog_compiler_wl_F77
14560 compiler_flags=-v
14561 linker_flags=-v
14562 verstring=
14563 output_objdir=.
14564 libname=conftest
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
14569 ac_status=$?
14570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14571 (exit $ac_status); }
14572 then
14573 archive_cmds_need_lc_F77=no
14574 else
14575 archive_cmds_need_lc_F77=yes
14577 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14578 else
14579 cat conftest.err 1>&5
14581 $rm conftest*
14582 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14583 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
14585 esac
14588 esac
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'
14594 soname_spec=
14595 shrext=".so"
14596 postinstall_cmds=
14597 postuninstall_cmds=
14598 finish_cmds=
14599 finish_eval=
14600 shlibpath_var=
14601 shlibpath_overrides_runpath=unknown
14602 version_type=none
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'`
14613 else
14614 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14616 else
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
14626 case $host_os in
14627 aix3*)
14628 version_type=linux
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'
14636 aix4* | aix5*)
14637 version_type=linux
14638 need_lib_prefix=no
14639 need_version=no
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
14645 else
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.
14651 case $host_os in
14652 aix4 | aix4.[01] | aix4.[01].*)
14653 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14654 echo ' yes '
14655 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14657 else
14658 can_build_shared=no
14661 esac
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}'
14670 else
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
14680 amigaos*)
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'
14686 beos*)
14687 library_names_spec='${libname}${shared_ext}'
14688 dynamic_linker="$host_os ld.so"
14689 shlibpath_var=LIBRARY_PATH
14692 bsdi4*)
14693 version_type=linux
14694 need_version=no
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
14708 shrext=".dll"
14709 need_version=no
14710 need_lib_prefix=no
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~
14723 $rm \$dlpath'
14724 shlibpath_overrides_runpath=yes
14726 case $host_os in
14727 cygwin*)
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"
14732 mingw*)
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'`
14744 else
14745 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14748 pw32*)
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}'
14752 esac
14756 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14758 esac
14759 dynamic_linker='Win32 ld.exe'
14760 # FIXME: first we should search . and the directory the executable is in
14761 shlibpath_var=PATH
14764 darwin* | rhapsody*)
14765 dynamic_linker="$host_os dyld"
14766 version_type=darwin
14767 need_lib_prefix=no
14768 need_version=no
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"`
14777 else
14778 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14780 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14783 dgux*)
14784 version_type=linux
14785 need_lib_prefix=no
14786 need_version=no
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
14792 freebsd1*)
14793 dynamic_linker=no
14796 kfreebsd*-gnu)
14797 version_type=linux
14798 need_lib_prefix=no
14799 need_version=no
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'
14808 freebsd*)
14809 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14810 version_type=freebsd-$objformat
14811 case $version_type in
14812 freebsd-elf*)
14813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14814 need_version=no
14815 need_lib_prefix=no
14817 freebsd-*)
14818 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14819 need_version=yes
14821 esac
14822 shlibpath_var=LD_LIBRARY_PATH
14823 case $host_os in
14824 freebsd2*)
14825 shlibpath_overrides_runpath=yes
14827 freebsd3.01* | freebsdelf3.01*)
14828 shlibpath_overrides_runpath=yes
14829 hardcode_into_libs=yes
14831 *) # from 3.2 on
14832 shlibpath_overrides_runpath=no
14833 hardcode_into_libs=yes
14835 esac
14838 gnu*)
14839 version_type=linux
14840 need_lib_prefix=no
14841 need_version=no
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.
14851 version_type=sunos
14852 need_lib_prefix=no
14853 need_version=no
14854 case "$host_cpu" in
14855 ia64*)
14856 shrext='.so'
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"
14865 else
14866 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14868 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14870 hppa*64*)
14871 shrext='.sl'
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
14882 shrext='.sl'
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'
14889 esac
14890 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14891 postinstall_cmds='chmod 555 $lib'
14894 irix5* | irix6* | nonstopux*)
14895 case $host_os in
14896 nonstopux*) version_type=nonstopux ;;
14898 if test "$lt_cv_prog_gnu_ld" = yes; then
14899 version_type=linux
14900 else
14901 version_type=irix
14902 fi ;;
14903 esac
14904 need_lib_prefix=no
14905 need_version=no
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}'
14908 case $host_os in
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;;
14921 esac
14923 esac
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*)
14933 dynamic_linker=no
14936 # This must be Linux ELF.
14937 linux*)
14938 version_type=linux
14939 need_lib_prefix=no
14940 need_version=no
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'
14960 netbsd*)
14961 version_type=sunos
14962 need_lib_prefix=no
14963 need_version=no
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'
14968 else
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
14978 newsos6)
14979 version_type=linux
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
14985 nto-qnx*)
14986 version_type=linux
14987 need_lib_prefix=no
14988 need_version=no
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
14995 openbsd*)
14996 version_type=sunos
14997 need_lib_prefix=no
14998 need_version=no
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
15003 case $host_os in
15004 openbsd2.[89] | openbsd2.[89].*)
15005 shlibpath_overrides_runpath=no
15008 shlibpath_overrides_runpath=yes
15010 esac
15011 else
15012 shlibpath_overrides_runpath=yes
15016 os2*)
15017 libname_spec='$name'
15018 shrext=".dll"
15019 need_lib_prefix=no
15020 library_names_spec='$libname${shared_ext} $libname.a'
15021 dynamic_linker='OS/2 ld.exe'
15022 shlibpath_var=LIBPATH
15025 osf3* | osf4* | osf5*)
15026 version_type=osf
15027 need_lib_prefix=no
15028 need_version=no
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"
15036 sco3.2v5*)
15037 version_type=osf
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
15043 solaris*)
15044 version_type=linux
15045 need_lib_prefix=no
15046 need_version=no
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'
15056 sunos4*)
15057 version_type=sunos
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
15063 need_lib_prefix=no
15065 need_version=yes
15068 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15069 version_type=linux
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
15074 sni)
15075 shlibpath_overrides_runpath=no
15076 need_lib_prefix=no
15077 export_dynamic_flag_spec='${wl}-Blargedynsym'
15078 runpath_var=LD_RUN_PATH
15080 siemens)
15081 need_lib_prefix=no
15083 motorola)
15084 need_lib_prefix=no
15085 need_version=no
15086 shlibpath_overrides_runpath=no
15087 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15089 esac
15092 sysv4*MP*)
15093 if test -d /usr/nec ;then
15094 version_type=linux
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
15101 uts4*)
15102 version_type=linux
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
15109 dynamic_linker=no
15111 esac
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
15132 else
15133 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15134 hardcode_action_F77=immediate
15136 else
15137 # We cannot hardcode anything, or else we can only hardcode existing
15138 # directories.
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
15153 striplib=
15154 old_striplib=
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; }
15162 else
15163 # FIXME - insert some real tests, host_os isn't really good enough
15164 case $host_os in
15165 darwin*)
15166 if test -n "$STRIP" ; then
15167 striplib="$STRIP -x"
15168 { echo "$as_me:$LINENO: result: yes" >&5
15169 echo "${ECHO_T}yes" >&6; }
15170 else
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; }
15179 esac
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 \
15205 compiler_F77 \
15206 CC_F77 \
15207 LD_F77 \
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 \
15220 predeps_F77 \
15221 postdeps_F77 \
15222 compiler_lib_search_path_F77 \
15223 archive_cmds_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 \
15235 module_cmds_F77 \
15236 module_expsym_cmds_F77 \
15237 lt_cv_prog_compiler_c_o_F77 \
15238 exclude_expsyms_F77 \
15239 include_expsyms_F77; do
15241 case $var in
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\"\`\\\""
15260 esac
15261 done
15263 case $lt_echo in
15264 *'\$0 --fallback-echo"')
15265 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15267 esac
15269 cfgfile="$ofile"
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.
15277 SHELL=$lt_SHELL
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
15294 # The host system.
15295 host_alias=$host_alias
15296 host=$host
15298 # An echo program that does not interpret backslashes.
15299 echo=$lt_echo
15301 # The archiver.
15302 AR=$lt_AR
15303 AR_FLAGS=$lt_AR_FLAGS
15305 # A C compiler.
15306 LTCC=$lt_LTCC
15308 # A language-specific compiler.
15309 CC=$lt_compiler_F77
15311 # Is the compiler the GNU C compiler?
15312 with_gcc=$GCC_F77
15314 # An ERE matcher.
15315 EGREP=$lt_EGREP
15317 # The linker used to build libraries.
15318 LD=$lt_LD_F77
15320 # Whether we need hard or soft links.
15321 LN_S=$lt_LN_S
15323 # A BSD-compatible nm program.
15324 NM=$lt_NM
15326 # A symbol stripping program
15327 STRIP="$STRIP"
15329 # Used to examine libraries when file_magic_cmd begins "file"
15330 MAGIC_CMD=$MAGIC_CMD
15332 # Used on cygwin: DLL creation program.
15333 DLLTOOL="$DLLTOOL"
15335 # Used on cygwin: object dumper.
15336 OBJDUMP="$OBJDUMP"
15338 # Used on cygwin: assembler.
15339 AS="$AS"
15341 # The name of the directory that contains temporary libtool files.
15342 objdir=$objdir
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").
15355 libext="$libext"
15357 # Shared library suffix (normally ".so").
15358 shrext='$shrext'
15360 # Executable file suffix (normally "").
15361 exeext="$exeext"
15363 # Additional compiler flags for building library objects.
15364 pic_flag=$lt_lt_prog_compiler_pic_F77
15365 pic_mode=$pic_mode
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.
15420 RANLIB=$lt_RANLIB
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
15446 # shared library.
15447 predep_objects=$lt_predep_objects_F77
15449 # Dependencies to place after the objects being linked to create a
15450 # shared library.
15451 postdep_objects=$lt_postdep_objects_F77
15453 # Dependencies to place before the objects being linked to create a
15454 # shared library.
15455 predeps=$lt_predeps_F77
15457 # Dependencies to place after the objects being linked to create a
15458 # shared library.
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
15513 # not exist.
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
15568 __EOF__
15571 else
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"
15579 ac_ext=c
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
15585 CC="$lt_save_CC"
15587 else
15588 tagname=""
15592 GCJ)
15593 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15596 # Source file extension for Java test sources.
15597 ac_ext=java
15599 # Object file extension for compiled Java test sources.
15600 objext=o
15601 objext_GCJ=$objext
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.
15612 LTCC=${LTCC-"$CC"}
15614 # Allow CC to be a program name with arguments.
15615 compiler=$CC
15618 # Allow CC to be a program name with arguments.
15619 lt_save_CC="$CC"
15620 CC=${GCJ-"gcj"}
15621 compiler=$CC
15622 compiler_GCJ=$CC
15624 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15625 archive_cmds_need_lc_GCJ=no
15627 ## CAVEAT EMPTOR:
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
15642 else
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)
15658 ac_status=$?
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
15668 $rm conftest*
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"
15676 else
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'
15693 case $host_os in
15694 aix*)
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'
15702 amigaos*)
15703 # FIXME: we need at least 68020 code to build shared libraries, but
15704 # adding the `-m68020' flag to GCC prevents building anything better,
15705 # like `-m68040'.
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'
15725 msdosdjgpp*)
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
15729 enable_shared=no
15732 sysv4*MP*)
15733 if test -d /usr/nec; then
15734 lt_prog_compiler_pic_GCJ=-Kconform_pic
15738 hpux*)
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
15742 hppa*64*|ia64*)
15743 # +Z the default
15746 lt_prog_compiler_pic_GCJ='-fPIC'
15748 esac
15752 lt_prog_compiler_pic_GCJ='-fPIC'
15754 esac
15755 else
15756 # PORTME Check for flag to pass linker flags through the system compiler.
15757 case $host_os in
15758 aix*)
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'
15763 else
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
15779 hppa*64*|ia64*)
15780 # +Z the default
15783 lt_prog_compiler_pic_GCJ='+Z'
15785 esac
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'
15796 newsos6)
15797 lt_prog_compiler_pic_GCJ='-KPIC'
15798 lt_prog_compiler_static_GCJ='-Bstatic'
15801 linux*)
15802 case $CC in
15803 icc* | ecc*)
15804 lt_prog_compiler_wl_GCJ='-Wl,'
15805 lt_prog_compiler_pic_GCJ='-KPIC'
15806 lt_prog_compiler_static_GCJ='-static'
15808 ccc*)
15809 lt_prog_compiler_wl_GCJ='-Wl,'
15810 # All Alpha code is PIC.
15811 lt_prog_compiler_static_GCJ='-non_shared'
15813 esac
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'
15822 sco3.2v5*)
15823 lt_prog_compiler_pic_GCJ='-Kpic'
15824 lt_prog_compiler_static_GCJ='-dn'
15827 solaris*)
15828 lt_prog_compiler_wl_GCJ='-Wl,'
15829 lt_prog_compiler_pic_GCJ='-KPIC'
15830 lt_prog_compiler_static_GCJ='-Bstatic'
15833 sunos4*)
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'
15845 sysv4*MP*)
15846 if test -d /usr/nec ;then
15847 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15848 lt_prog_compiler_static_GCJ='-Bstatic'
15852 uts4*)
15853 lt_prog_compiler_pic_GCJ='-pic'
15854 lt_prog_compiler_static_GCJ='-Bstatic'
15858 lt_prog_compiler_can_build_shared_GCJ=no
15860 esac
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
15875 else
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)
15891 ac_status=$?
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
15901 $rm conftest*
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
15909 "" | " "*) ;;
15910 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15911 esac
15912 else
15913 lt_prog_compiler_pic_GCJ=
15914 lt_prog_compiler_can_build_shared_GCJ=no
15918 case "$host_os" in
15919 # For platforms which do not support PIC, -DPIC is meaningless:
15920 *djgpp*)
15921 lt_prog_compiler_pic_GCJ=
15924 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15926 esac
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
15932 else
15933 lt_cv_prog_compiler_c_o_GCJ=no
15934 $rm -r conftest 2>/dev/null
15935 mkdir conftest
15936 cd conftest
15937 mkdir out
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
15944 # builds.
15945 chmod -w .
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)
15958 ac_status=$?
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
15962 then
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
15969 chmod u+w .
15970 $rm conftest*
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
15975 cd ..
15976 rmdir conftest
15977 $rm conftest*
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; }
15989 hard_links=yes
15990 $rm conftest*
15991 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15992 touch conftest.a
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;}
16000 need_locks=warn
16002 else
16003 need_locks=no
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; }
16009 runpath_var=
16010 allow_undefined_flag_GCJ=
16011 enable_shared_with_static_runtimes_GCJ=no
16012 archive_cmds_GCJ=
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
16027 module_cmds_GCJ=
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=
16046 case $host_os in
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
16052 with_gnu_ld=no
16055 openbsd*)
16056 with_gnu_ld=no
16058 esac
16060 ld_shlibs_GCJ=yes
16061 if test "$with_gnu_ld" = yes; then
16062 # If archive_cmds runs LD, not CC, wlarc should be empty
16063 wlarc='${wl}'
16065 # See if GNU ld supports shared libraries.
16066 case $host_os in
16067 aix3* | aix4* | aix5*)
16068 # On AIX/PPC, the GNU linker is very broken
16069 if test "$host_cpu" != ia64; then
16070 ld_shlibs_GCJ=no
16071 cat <<EOF 1>&2
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.
16083 amigaos*)
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
16093 # them.
16094 ld_shlibs_GCJ=no
16097 beos*)
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'
16103 else
16104 ld_shlibs_GCJ=no
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;
16123 else
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'
16128 else
16129 ld_shlibs=no
16133 netbsd*)
16134 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16135 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16136 wlarc=
16137 else
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'
16143 solaris* | sysv5*)
16144 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16145 ld_shlibs_GCJ=no
16146 cat <<EOF 1>&2
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'
16159 else
16160 ld_shlibs_GCJ=no
16164 sunos4*)
16165 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16166 wlarc=
16167 hardcode_direct_GCJ=yes
16168 hardcode_shlibpath_var_GCJ=no
16171 linux*)
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 ;;
16182 esac
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'
16188 else
16189 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
16191 else
16192 ld_shlibs_GCJ=no
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'
16200 else
16201 ld_shlibs_GCJ=no
16204 esac
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'
16213 else
16214 whole_archive_flag_spec_GCJ=
16217 else
16218 # PORTME fill in a description of your system's linker (not GNU ld)
16219 case $host_os in
16220 aix3*)
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
16229 # broken collect2.
16230 hardcode_direct_GCJ=unsupported
16234 aix4* | aix5*)
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'
16240 no_entry_flag=""
16241 else
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'
16246 else
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
16258 break
16260 done
16261 esac
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
16285 then
16286 # We have reworked collect2
16287 hardcode_direct_GCJ=yes
16288 else
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=
16298 esac
16299 shared_flag='-shared'
16300 else
16301 # not using gcc
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:
16305 shared_flag='-G'
16306 else
16307 if test "$aix_use_runtimelinking" = yes; then
16308 shared_flag='${wl}-G'
16309 else
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
16324 /* confdefs.h. */
16325 _ACEOF
16326 cat confdefs.h >>conftest.$ac_ext
16327 cat >>conftest.$ac_ext <<_ACEOF
16328 /* end confdefs.h. */
16331 main ()
16335 return 0;
16337 _ACEOF
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;;
16343 esac
16344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16345 (eval "$ac_link") 2>conftest.er1
16346 ac_status=$?
16347 grep -v '^ *+' conftest.er1 >conftest.err
16348 rm -f conftest.er1
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; }
16361 }'`; fi
16362 else
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"
16375 else
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"
16380 else
16381 # Determine the default libpath from the value encoded in an empty executable.
16382 cat >conftest.$ac_ext <<_ACEOF
16383 /* confdefs.h. */
16384 _ACEOF
16385 cat confdefs.h >>conftest.$ac_ext
16386 cat >>conftest.$ac_ext <<_ACEOF
16387 /* end confdefs.h. */
16390 main ()
16394 return 0;
16396 _ACEOF
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;;
16402 esac
16403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16404 (eval "$ac_link") 2>conftest.er1
16405 ac_status=$?
16406 grep -v '^ *+' conftest.er1 >conftest.err
16407 rm -f conftest.er1
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; }
16420 }'`; fi
16421 else
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'
16448 amigaos*)
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
16453 ld_shlibs_GCJ=no
16456 bsdi4*)
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.
16468 libext=lib
16469 # Tell ltmain to make .dll files, not .so files.
16470 shrext=".dll"
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
16484 case "$host_os" in
16485 rhapsody* | darwin1.[012])
16486 allow_undefined_flag_GCJ='-undefined suppress'
16488 *) # Darwin 1.3 on
16489 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16490 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16491 else
16492 case ${MACOSX_DEPLOYMENT_TARGET} in
16493 10.[012])
16494 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16496 10.*)
16497 allow_undefined_flag_GCJ='-undefined dynamic_lookup'
16499 esac
16502 esac
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'
16510 else
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}'
16517 else
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
16526 else
16527 ld_shlibs_GCJ=no
16531 dgux*)
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
16537 freebsd1*)
16538 ld_shlibs_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
16544 # extra space).
16545 freebsd2.2*)
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.
16553 freebsd2*)
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
16568 hpux9*)
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'
16571 else
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'
16584 hpux10* | hpux11*)
16585 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16586 case "$host_cpu" in
16587 hppa*64*|ia64*)
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'
16593 esac
16594 else
16595 case "$host_cpu" in
16596 hppa*64*|ia64*)
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'
16602 esac
16604 if test "$with_gnu_ld" = no; then
16605 case "$host_cpu" in
16606 hppa*64*)
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
16613 ia64*)
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
16632 esac
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'
16639 else
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
16648 netbsd*)
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
16651 else
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
16659 newsos6)
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
16667 openbsd*)
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'
16674 else
16675 case $host_os in
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'
16684 esac
16688 os2*)
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'
16696 osf3*)
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'
16700 else
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'
16713 else
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=:
16725 sco3.2v5*)
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
16733 solaris*)
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'
16739 else
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
16746 case $host_os in
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' ;;
16750 esac
16751 link_all_deplibs_GCJ=yes
16754 sunos4*)
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'
16759 else
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
16768 sysv4)
16769 case $host_vendor in
16770 sni)
16771 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16772 hardcode_direct_GCJ=yes # is this really true???
16774 siemens)
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
16781 motorola)
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
16785 esac
16786 runpath_var='LD_RUN_PATH'
16787 hardcode_shlibpath_var_GCJ=no
16790 sysv4.3*)
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'
16796 sysv4*MP*)
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
16802 ld_shlibs_GCJ=yes
16806 sysv4.2uw2*)
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'
16819 else
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
16826 sysv5*)
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'
16838 uts4*)
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
16845 ld_shlibs_GCJ=no
16847 esac
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
16863 x|xyes)
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
16869 *'~'*)
16870 # FIXME: we may have to deal with multi-command sequences.
16872 '$CC '*)
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; }
16878 $rm conftest*
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
16883 ac_status=$?
16884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16885 (exit $ac_status); } 2>conftest.err; then
16886 soname=conftest
16887 lib=conftest
16888 libobjs=conftest.$ac_objext
16889 deplibs=
16890 wl=$lt_prog_compiler_wl_GCJ
16891 compiler_flags=-v
16892 linker_flags=-v
16893 verstring=
16894 output_objdir=.
16895 libname=conftest
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
16900 ac_status=$?
16901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16902 (exit $ac_status); }
16903 then
16904 archive_cmds_need_lc_GCJ=no
16905 else
16906 archive_cmds_need_lc_GCJ=yes
16908 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16909 else
16910 cat conftest.err 1>&5
16912 $rm conftest*
16913 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16914 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
16916 esac
16919 esac
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'
16925 soname_spec=
16926 shrext=".so"
16927 postinstall_cmds=
16928 postuninstall_cmds=
16929 finish_cmds=
16930 finish_eval=
16931 shlibpath_var=
16932 shlibpath_overrides_runpath=unknown
16933 version_type=none
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'`
16944 else
16945 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16947 else
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
16957 case $host_os in
16958 aix3*)
16959 version_type=linux
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'
16967 aix4* | aix5*)
16968 version_type=linux
16969 need_lib_prefix=no
16970 need_version=no
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
16976 else
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.
16982 case $host_os in
16983 aix4 | aix4.[01] | aix4.[01].*)
16984 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16985 echo ' yes '
16986 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16988 else
16989 can_build_shared=no
16992 esac
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}'
17001 else
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
17011 amigaos*)
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'
17017 beos*)
17018 library_names_spec='${libname}${shared_ext}'
17019 dynamic_linker="$host_os ld.so"
17020 shlibpath_var=LIBRARY_PATH
17023 bsdi4*)
17024 version_type=linux
17025 need_version=no
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
17039 shrext=".dll"
17040 need_version=no
17041 need_lib_prefix=no
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~
17054 $rm \$dlpath'
17055 shlibpath_overrides_runpath=yes
17057 case $host_os in
17058 cygwin*)
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"
17063 mingw*)
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'`
17075 else
17076 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17079 pw32*)
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}'
17083 esac
17087 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17089 esac
17090 dynamic_linker='Win32 ld.exe'
17091 # FIXME: first we should search . and the directory the executable is in
17092 shlibpath_var=PATH
17095 darwin* | rhapsody*)
17096 dynamic_linker="$host_os dyld"
17097 version_type=darwin
17098 need_lib_prefix=no
17099 need_version=no
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"`
17108 else
17109 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17111 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17114 dgux*)
17115 version_type=linux
17116 need_lib_prefix=no
17117 need_version=no
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
17123 freebsd1*)
17124 dynamic_linker=no
17127 kfreebsd*-gnu)
17128 version_type=linux
17129 need_lib_prefix=no
17130 need_version=no
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'
17139 freebsd*)
17140 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17141 version_type=freebsd-$objformat
17142 case $version_type in
17143 freebsd-elf*)
17144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17145 need_version=no
17146 need_lib_prefix=no
17148 freebsd-*)
17149 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17150 need_version=yes
17152 esac
17153 shlibpath_var=LD_LIBRARY_PATH
17154 case $host_os in
17155 freebsd2*)
17156 shlibpath_overrides_runpath=yes
17158 freebsd3.01* | freebsdelf3.01*)
17159 shlibpath_overrides_runpath=yes
17160 hardcode_into_libs=yes
17162 *) # from 3.2 on
17163 shlibpath_overrides_runpath=no
17164 hardcode_into_libs=yes
17166 esac
17169 gnu*)
17170 version_type=linux
17171 need_lib_prefix=no
17172 need_version=no
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.
17182 version_type=sunos
17183 need_lib_prefix=no
17184 need_version=no
17185 case "$host_cpu" in
17186 ia64*)
17187 shrext='.so'
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"
17196 else
17197 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17199 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17201 hppa*64*)
17202 shrext='.sl'
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
17213 shrext='.sl'
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'
17220 esac
17221 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17222 postinstall_cmds='chmod 555 $lib'
17225 irix5* | irix6* | nonstopux*)
17226 case $host_os in
17227 nonstopux*) version_type=nonstopux ;;
17229 if test "$lt_cv_prog_gnu_ld" = yes; then
17230 version_type=linux
17231 else
17232 version_type=irix
17233 fi ;;
17234 esac
17235 need_lib_prefix=no
17236 need_version=no
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}'
17239 case $host_os in
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;;
17252 esac
17254 esac
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*)
17264 dynamic_linker=no
17267 # This must be Linux ELF.
17268 linux*)
17269 version_type=linux
17270 need_lib_prefix=no
17271 need_version=no
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'
17291 netbsd*)
17292 version_type=sunos
17293 need_lib_prefix=no
17294 need_version=no
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'
17299 else
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
17309 newsos6)
17310 version_type=linux
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
17316 nto-qnx*)
17317 version_type=linux
17318 need_lib_prefix=no
17319 need_version=no
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
17326 openbsd*)
17327 version_type=sunos
17328 need_lib_prefix=no
17329 need_version=no
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
17334 case $host_os in
17335 openbsd2.[89] | openbsd2.[89].*)
17336 shlibpath_overrides_runpath=no
17339 shlibpath_overrides_runpath=yes
17341 esac
17342 else
17343 shlibpath_overrides_runpath=yes
17347 os2*)
17348 libname_spec='$name'
17349 shrext=".dll"
17350 need_lib_prefix=no
17351 library_names_spec='$libname${shared_ext} $libname.a'
17352 dynamic_linker='OS/2 ld.exe'
17353 shlibpath_var=LIBPATH
17356 osf3* | osf4* | osf5*)
17357 version_type=osf
17358 need_lib_prefix=no
17359 need_version=no
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"
17367 sco3.2v5*)
17368 version_type=osf
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
17374 solaris*)
17375 version_type=linux
17376 need_lib_prefix=no
17377 need_version=no
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'
17387 sunos4*)
17388 version_type=sunos
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
17394 need_lib_prefix=no
17396 need_version=yes
17399 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17400 version_type=linux
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
17405 sni)
17406 shlibpath_overrides_runpath=no
17407 need_lib_prefix=no
17408 export_dynamic_flag_spec='${wl}-Blargedynsym'
17409 runpath_var=LD_RUN_PATH
17411 siemens)
17412 need_lib_prefix=no
17414 motorola)
17415 need_lib_prefix=no
17416 need_version=no
17417 shlibpath_overrides_runpath=no
17418 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17420 esac
17423 sysv4*MP*)
17424 if test -d /usr/nec ;then
17425 version_type=linux
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
17432 uts4*)
17433 version_type=linux
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
17440 dynamic_linker=no
17442 esac
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
17463 else
17464 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17465 hardcode_action_GCJ=immediate
17467 else
17468 # We cannot hardcode anything, or else we can only hardcode existing
17469 # directories.
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
17484 striplib=
17485 old_striplib=
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; }
17493 else
17494 # FIXME - insert some real tests, host_os isn't really good enough
17495 case $host_os in
17496 darwin*)
17497 if test -n "$STRIP" ; then
17498 striplib="$STRIP -x"
17499 { echo "$as_me:$LINENO: result: yes" >&5
17500 echo "${ECHO_T}yes" >&6; }
17501 else
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; }
17510 esac
17513 if test "x$enable_dlopen" != xyes; then
17514 enable_dlopen=unknown
17515 enable_dlopen_self=unknown
17516 enable_dlopen_self_static=unknown
17517 else
17518 lt_cv_dlopen=no
17519 lt_cv_dlopen_libs=
17521 case $host_os in
17522 beos*)
17523 lt_cv_dlopen="load_add_on"
17524 lt_cv_dlopen_libs=
17525 lt_cv_dlopen_self=yes
17528 mingw* | pw32*)
17529 lt_cv_dlopen="LoadLibrary"
17530 lt_cv_dlopen_libs=
17533 cygwin*)
17534 lt_cv_dlopen="dlopen"
17535 lt_cv_dlopen_libs=
17538 darwin*)
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
17544 else
17545 ac_check_lib_save_LIBS=$LIBS
17546 LIBS="-ldl $LIBS"
17547 cat >conftest.$ac_ext <<_ACEOF
17548 /* confdefs.h. */
17549 _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. */
17557 #ifdef __cplusplus
17558 extern "C"
17559 #endif
17560 char dlopen ();
17562 main ()
17564 return dlopen ();
17566 return 0;
17568 _ACEOF
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;;
17574 esac
17575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17576 (eval "$ac_link") 2>conftest.er1
17577 ac_status=$?
17578 grep -v '^ *+' conftest.er1 >conftest.err
17579 rm -f conftest.er1
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
17588 else
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"
17603 else
17605 lt_cv_dlopen="dyld"
17606 lt_cv_dlopen_libs=
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
17618 else
17619 cat >conftest.$ac_ext <<_ACEOF
17620 /* confdefs.h. */
17621 _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. */
17634 #ifdef __STDC__
17635 # include <limits.h>
17636 #else
17637 # include <assert.h>
17638 #endif
17640 #undef shl_load
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. */
17645 #ifdef __cplusplus
17646 extern "C"
17647 #endif
17648 char shl_load ();
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
17653 choke me
17654 #endif
17657 main ()
17659 return shl_load ();
17661 return 0;
17663 _ACEOF
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;;
17669 esac
17670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17671 (eval "$ac_link") 2>conftest.er1
17672 ac_status=$?
17673 grep -v '^ *+' conftest.er1 >conftest.err
17674 rm -f conftest.er1
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
17683 else
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"
17697 else
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
17702 else
17703 ac_check_lib_save_LIBS=$LIBS
17704 LIBS="-ldld $LIBS"
17705 cat >conftest.$ac_ext <<_ACEOF
17706 /* confdefs.h. */
17707 _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. */
17715 #ifdef __cplusplus
17716 extern "C"
17717 #endif
17718 char shl_load ();
17720 main ()
17722 return shl_load ();
17724 return 0;
17726 _ACEOF
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;;
17732 esac
17733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17734 (eval "$ac_link") 2>conftest.er1
17735 ac_status=$?
17736 grep -v '^ *+' conftest.er1 >conftest.err
17737 rm -f conftest.er1
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
17746 else
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"
17761 else
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
17766 else
17767 cat >conftest.$ac_ext <<_ACEOF
17768 /* confdefs.h. */
17769 _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. */
17782 #ifdef __STDC__
17783 # include <limits.h>
17784 #else
17785 # include <assert.h>
17786 #endif
17788 #undef dlopen
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. */
17793 #ifdef __cplusplus
17794 extern "C"
17795 #endif
17796 char dlopen ();
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
17801 choke me
17802 #endif
17805 main ()
17807 return dlopen ();
17809 return 0;
17811 _ACEOF
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;;
17817 esac
17818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17819 (eval "$ac_link") 2>conftest.er1
17820 ac_status=$?
17821 grep -v '^ *+' conftest.er1 >conftest.err
17822 rm -f conftest.er1
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
17831 else
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"
17845 else
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
17850 else
17851 ac_check_lib_save_LIBS=$LIBS
17852 LIBS="-ldl $LIBS"
17853 cat >conftest.$ac_ext <<_ACEOF
17854 /* confdefs.h. */
17855 _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. */
17863 #ifdef __cplusplus
17864 extern "C"
17865 #endif
17866 char dlopen ();
17868 main ()
17870 return dlopen ();
17872 return 0;
17874 _ACEOF
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;;
17880 esac
17881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17882 (eval "$ac_link") 2>conftest.er1
17883 ac_status=$?
17884 grep -v '^ *+' conftest.er1 >conftest.err
17885 rm -f conftest.er1
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
17894 else
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"
17909 else
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
17914 else
17915 ac_check_lib_save_LIBS=$LIBS
17916 LIBS="-lsvld $LIBS"
17917 cat >conftest.$ac_ext <<_ACEOF
17918 /* confdefs.h. */
17919 _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. */
17927 #ifdef __cplusplus
17928 extern "C"
17929 #endif
17930 char dlopen ();
17932 main ()
17934 return dlopen ();
17936 return 0;
17938 _ACEOF
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;;
17944 esac
17945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17946 (eval "$ac_link") 2>conftest.er1
17947 ac_status=$?
17948 grep -v '^ *+' conftest.er1 >conftest.err
17949 rm -f conftest.er1
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
17958 else
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"
17973 else
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
17978 else
17979 ac_check_lib_save_LIBS=$LIBS
17980 LIBS="-ldld $LIBS"
17981 cat >conftest.$ac_ext <<_ACEOF
17982 /* confdefs.h. */
17983 _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. */
17991 #ifdef __cplusplus
17992 extern "C"
17993 #endif
17994 char dld_link ();
17996 main ()
17998 return dld_link ();
18000 return 0;
18002 _ACEOF
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;;
18008 esac
18009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18010 (eval "$ac_link") 2>conftest.er1
18011 ac_status=$?
18012 grep -v '^ *+' conftest.er1 >conftest.err
18013 rm -f conftest.er1
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
18022 else
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"
18055 esac
18057 if test "x$lt_cv_dlopen" != xno; then
18058 enable_dlopen=yes
18059 else
18060 enable_dlopen=no
18063 case $lt_cv_dlopen in
18064 dlopen)
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\"
18071 save_LIBS="$LIBS"
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
18078 else
18079 if test "$cross_compiling" = yes; then :
18080 lt_cv_dlopen_self=cross
18081 else
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"
18088 #if HAVE_DLFCN_H
18089 #include <dlfcn.h>
18090 #endif
18092 #include <stdio.h>
18094 #ifdef RTLD_GLOBAL
18095 # define LT_DLGLOBAL RTLD_GLOBAL
18096 #else
18097 # ifdef DL_GLOBAL
18098 # define LT_DLGLOBAL DL_GLOBAL
18099 # else
18100 # define LT_DLGLOBAL 0
18101 # endif
18102 #endif
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
18107 # ifdef RTLD_LAZY
18108 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18109 # else
18110 # ifdef DL_LAZY
18111 # define LT_DLLAZY_OR_NOW DL_LAZY
18112 # else
18113 # ifdef RTLD_NOW
18114 # define LT_DLLAZY_OR_NOW RTLD_NOW
18115 # else
18116 # ifdef DL_NOW
18117 # define LT_DLLAZY_OR_NOW DL_NOW
18118 # else
18119 # define LT_DLLAZY_OR_NOW 0
18120 # endif
18121 # endif
18122 # endif
18123 # endif
18124 #endif
18126 #ifdef __cplusplus
18127 extern "C" void exit (int);
18128 #endif
18130 void fnord() { int i=42;}
18131 int main ()
18133 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18134 int status = $lt_dlunknown;
18136 if (self)
18138 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18139 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18140 /* dlclose (self); */
18143 exit (status);
18146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18147 (eval $ac_link) 2>&5
18148 ac_status=$?
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
18152 lt_status=$?
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 ;;
18157 esac
18158 else :
18159 # compilation failed
18160 lt_cv_dlopen_self=no
18163 rm -fr conftest*
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
18176 else
18177 if test "$cross_compiling" = yes; then :
18178 lt_cv_dlopen_self_static=cross
18179 else
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"
18186 #if HAVE_DLFCN_H
18187 #include <dlfcn.h>
18188 #endif
18190 #include <stdio.h>
18192 #ifdef RTLD_GLOBAL
18193 # define LT_DLGLOBAL RTLD_GLOBAL
18194 #else
18195 # ifdef DL_GLOBAL
18196 # define LT_DLGLOBAL DL_GLOBAL
18197 # else
18198 # define LT_DLGLOBAL 0
18199 # endif
18200 #endif
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
18205 # ifdef RTLD_LAZY
18206 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18207 # else
18208 # ifdef DL_LAZY
18209 # define LT_DLLAZY_OR_NOW DL_LAZY
18210 # else
18211 # ifdef RTLD_NOW
18212 # define LT_DLLAZY_OR_NOW RTLD_NOW
18213 # else
18214 # ifdef DL_NOW
18215 # define LT_DLLAZY_OR_NOW DL_NOW
18216 # else
18217 # define LT_DLLAZY_OR_NOW 0
18218 # endif
18219 # endif
18220 # endif
18221 # endif
18222 #endif
18224 #ifdef __cplusplus
18225 extern "C" void exit (int);
18226 #endif
18228 void fnord() { int i=42;}
18229 int main ()
18231 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18232 int status = $lt_dlunknown;
18234 if (self)
18236 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18237 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18238 /* dlclose (self); */
18241 exit (status);
18244 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18245 (eval $ac_link) 2>&5
18246 ac_status=$?
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
18250 lt_status=$?
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 ;;
18255 esac
18256 else :
18257 # compilation failed
18258 lt_cv_dlopen_self_static=no
18261 rm -fr conftest*
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"
18271 LIBS="$save_LIBS"
18273 esac
18275 case $lt_cv_dlopen_self in
18276 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18277 *) enable_dlopen_self=unknown ;;
18278 esac
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 ;;
18283 esac
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 \
18308 compiler_GCJ \
18309 CC_GCJ \
18310 LD_GCJ \
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 \
18323 predeps_GCJ \
18324 postdeps_GCJ \
18325 compiler_lib_search_path_GCJ \
18326 archive_cmds_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 \
18338 module_cmds_GCJ \
18339 module_expsym_cmds_GCJ \
18340 lt_cv_prog_compiler_c_o_GCJ \
18341 exclude_expsyms_GCJ \
18342 include_expsyms_GCJ; do
18344 case $var in
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\"\`\\\""
18363 esac
18364 done
18366 case $lt_echo in
18367 *'\$0 --fallback-echo"')
18368 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18370 esac
18372 cfgfile="$ofile"
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.
18380 SHELL=$lt_SHELL
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
18397 # The host system.
18398 host_alias=$host_alias
18399 host=$host
18401 # An echo program that does not interpret backslashes.
18402 echo=$lt_echo
18404 # The archiver.
18405 AR=$lt_AR
18406 AR_FLAGS=$lt_AR_FLAGS
18408 # A C compiler.
18409 LTCC=$lt_LTCC
18411 # A language-specific compiler.
18412 CC=$lt_compiler_GCJ
18414 # Is the compiler the GNU C compiler?
18415 with_gcc=$GCC_GCJ
18417 # An ERE matcher.
18418 EGREP=$lt_EGREP
18420 # The linker used to build libraries.
18421 LD=$lt_LD_GCJ
18423 # Whether we need hard or soft links.
18424 LN_S=$lt_LN_S
18426 # A BSD-compatible nm program.
18427 NM=$lt_NM
18429 # A symbol stripping program
18430 STRIP="$STRIP"
18432 # Used to examine libraries when file_magic_cmd begins "file"
18433 MAGIC_CMD=$MAGIC_CMD
18435 # Used on cygwin: DLL creation program.
18436 DLLTOOL="$DLLTOOL"
18438 # Used on cygwin: object dumper.
18439 OBJDUMP="$OBJDUMP"
18441 # Used on cygwin: assembler.
18442 AS="$AS"
18444 # The name of the directory that contains temporary libtool files.
18445 objdir=$objdir
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").
18458 libext="$libext"
18460 # Shared library suffix (normally ".so").
18461 shrext='$shrext'
18463 # Executable file suffix (normally "").
18464 exeext="$exeext"
18466 # Additional compiler flags for building library objects.
18467 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18468 pic_mode=$pic_mode
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.
18523 RANLIB=$lt_RANLIB
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
18549 # shared library.
18550 predep_objects=$lt_predep_objects_GCJ
18552 # Dependencies to place after the objects being linked to create a
18553 # shared library.
18554 postdep_objects=$lt_postdep_objects_GCJ
18556 # Dependencies to place before the objects being linked to create a
18557 # shared library.
18558 predeps=$lt_predeps_GCJ
18560 # Dependencies to place after the objects being linked to create a
18561 # shared library.
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
18616 # not exist.
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
18671 __EOF__
18674 else
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"
18682 ac_ext=c
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
18688 CC="$lt_save_CC"
18690 else
18691 tagname=""
18698 # Source file extension for RC test sources.
18699 ac_ext=rc
18701 # Object file extension for compiled RC test sources.
18702 objext=o
18703 objext_RC=$objext
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.
18714 LTCC=${LTCC-"$CC"}
18716 # Allow CC to be a program name with arguments.
18717 compiler=$CC
18720 # Allow CC to be a program name with arguments.
18721 lt_save_CC="$CC"
18722 CC=${RC-"windres"}
18723 compiler=$CC
18724 compiler_RC=$CC
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 \
18748 compiler_RC \
18749 CC_RC \
18750 LD_RC \
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 \
18763 predeps_RC \
18764 postdeps_RC \
18765 compiler_lib_search_path_RC \
18766 archive_cmds_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 \
18778 module_cmds_RC \
18779 module_expsym_cmds_RC \
18780 lt_cv_prog_compiler_c_o_RC \
18781 exclude_expsyms_RC \
18782 include_expsyms_RC; do
18784 case $var in
18785 old_archive_cmds_RC | \
18786 old_archive_from_new_cmds_RC | \
18787 archive_cmds_RC | \
18788 archive_expsym_cmds_RC | \
18789 module_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\"\`\\\""
18803 esac
18804 done
18806 case $lt_echo in
18807 *'\$0 --fallback-echo"')
18808 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18810 esac
18812 cfgfile="$ofile"
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.
18820 SHELL=$lt_SHELL
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
18837 # The host system.
18838 host_alias=$host_alias
18839 host=$host
18841 # An echo program that does not interpret backslashes.
18842 echo=$lt_echo
18844 # The archiver.
18845 AR=$lt_AR
18846 AR_FLAGS=$lt_AR_FLAGS
18848 # A C compiler.
18849 LTCC=$lt_LTCC
18851 # A language-specific compiler.
18852 CC=$lt_compiler_RC
18854 # Is the compiler the GNU C compiler?
18855 with_gcc=$GCC_RC
18857 # An ERE matcher.
18858 EGREP=$lt_EGREP
18860 # The linker used to build libraries.
18861 LD=$lt_LD_RC
18863 # Whether we need hard or soft links.
18864 LN_S=$lt_LN_S
18866 # A BSD-compatible nm program.
18867 NM=$lt_NM
18869 # A symbol stripping program
18870 STRIP="$STRIP"
18872 # Used to examine libraries when file_magic_cmd begins "file"
18873 MAGIC_CMD=$MAGIC_CMD
18875 # Used on cygwin: DLL creation program.
18876 DLLTOOL="$DLLTOOL"
18878 # Used on cygwin: object dumper.
18879 OBJDUMP="$OBJDUMP"
18881 # Used on cygwin: assembler.
18882 AS="$AS"
18884 # The name of the directory that contains temporary libtool files.
18885 objdir=$objdir
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").
18898 libext="$libext"
18900 # Shared library suffix (normally ".so").
18901 shrext='$shrext'
18903 # Executable file suffix (normally "").
18904 exeext="$exeext"
18906 # Additional compiler flags for building library objects.
18907 pic_flag=$lt_lt_prog_compiler_pic_RC
18908 pic_mode=$pic_mode
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.
18963 RANLIB=$lt_RANLIB
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
18989 # shared library.
18990 predep_objects=$lt_predep_objects_RC
18992 # Dependencies to place after the objects being linked to create a
18993 # shared library.
18994 postdep_objects=$lt_postdep_objects_RC
18996 # Dependencies to place before the objects being linked to create a
18997 # shared library.
18998 predeps=$lt_predeps_RC
19000 # Dependencies to place after the objects being linked to create a
19001 # shared library.
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
19056 # not exist.
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
19111 __EOF__
19114 else
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"
19122 ac_ext=c
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
19128 CC="$lt_save_CC"
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; }; }
19137 esac
19139 # Append the new tag name to the list of available tags.
19140 if test -n "$tagname" ; then
19141 available_tags="$available_tags $tagname"
19144 done
19145 IFS="$lt_save_ifs"
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"
19150 chmod +x "$ofile"
19151 else
19152 rm -f "${ofile}T"
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
19192 else
19193 cat >conftest.$ac_ext <<_ACEOF
19194 /* confdefs.h. */
19195 _ACEOF
19196 cat confdefs.h >>conftest.$ac_ext
19197 cat >>conftest.$ac_ext <<_ACEOF
19198 /* end confdefs.h. */
19201 main ()
19203 /* FIXME: Include the comments suggested by Paul. */
19204 #ifndef __cplusplus
19205 /* Ultrix mips cc rejects this. */
19206 typedef int charset[2];
19207 const charset cs;
19208 /* SunOS 4.1.1 cc rejects this. */
19209 char const *const *pcpcc;
19210 char **ppc;
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
19217 expression */
19218 const char *g = "string";
19219 pcpcc = &g + (g ? g-g : 0);
19220 /* HPUX 7.0 cc rejects these. */
19221 ++pcpcc;
19222 ppc = (char**) pcpcc;
19223 pcpcc = (char const *const *) ppc;
19224 { /* SCO 3.2v4 cc rejects this. */
19225 char *t;
19226 char const *s = 0 ? (char *) 0 : (char const *) 0;
19228 *t++ = 0;
19229 if (s) return 0;
19231 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
19232 int x[] = {25, 17};
19233 const int *foo = &x[0];
19234 ++foo;
19236 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19237 typedef const int *iptr;
19238 iptr p = 0;
19239 ++p;
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;
19251 #endif
19254 return 0;
19256 _ACEOF
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;;
19262 esac
19263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19264 (eval "$ac_compile") 2>conftest.er1
19265 ac_status=$?
19266 grep -v '^ *+' conftest.er1 >conftest.err
19267 rm -f conftest.er1
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
19274 ac_cv_c_const=yes
19275 else
19276 echo "$as_me: failed program was:" >&5
19277 sed 's/^/| /' conftest.$ac_ext >&5
19279 ac_cv_c_const=no
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
19289 #define const
19290 _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
19306 else
19307 cat >conftest.$ac_ext <<_ACEOF
19308 /* confdefs.h. */
19309 _ACEOF
19310 cat confdefs.h >>conftest.$ac_ext
19311 cat >>conftest.$ac_ext <<_ACEOF
19312 /* end confdefs.h. */
19313 #include <sys/types.h>
19314 #include <$ac_hdr>
19317 main ()
19319 if ((DIR *) 0)
19320 return 0;
19322 return 0;
19324 _ACEOF
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;;
19330 esac
19331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19332 (eval "$ac_compile") 2>conftest.er1
19333 ac_status=$?
19334 grep -v '^ *+' conftest.er1 >conftest.err
19335 rm -f conftest.er1
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"
19343 else
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
19358 _ACEOF
19360 ac_header_dirent=$ac_hdr; break
19363 done
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
19370 else
19371 ac_func_search_save_LIBS=$LIBS
19372 cat >conftest.$ac_ext <<_ACEOF
19373 /* confdefs.h. */
19374 _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. */
19382 #ifdef __cplusplus
19383 extern "C"
19384 #endif
19385 char opendir ();
19387 main ()
19389 return opendir ();
19391 return 0;
19393 _ACEOF
19394 for ac_lib in '' dir; do
19395 if test -z "$ac_lib"; then
19396 ac_res="none required"
19397 else
19398 ac_res=-l$ac_lib
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;;
19406 esac
19407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19408 (eval "$ac_link") 2>conftest.er1
19409 ac_status=$?
19410 grep -v '^ *+' conftest.er1 >conftest.err
19411 rm -f conftest.er1
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
19420 else
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 \
19428 conftest$ac_exeext
19429 if test "${ac_cv_search_opendir+set}" = set; then
19430 break
19432 done
19433 if test "${ac_cv_search_opendir+set}" = set; then
19435 else
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"
19449 else
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
19454 else
19455 ac_func_search_save_LIBS=$LIBS
19456 cat >conftest.$ac_ext <<_ACEOF
19457 /* confdefs.h. */
19458 _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. */
19466 #ifdef __cplusplus
19467 extern "C"
19468 #endif
19469 char opendir ();
19471 main ()
19473 return opendir ();
19475 return 0;
19477 _ACEOF
19478 for ac_lib in '' x; do
19479 if test -z "$ac_lib"; then
19480 ac_res="none required"
19481 else
19482 ac_res=-l$ac_lib
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;;
19490 esac
19491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19492 (eval "$ac_link") 2>conftest.er1
19493 ac_status=$?
19494 grep -v '^ *+' conftest.er1 >conftest.err
19495 rm -f conftest.er1
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
19504 else
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 \
19512 conftest$ac_exeext
19513 if test "${ac_cv_search_opendir+set}" = set; then
19514 break
19516 done
19517 if test "${ac_cv_search_opendir+set}" = set; then
19519 else
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
19544 _ACEOF
19547 if test x"${enable_ltdl_convenience-no}" != xno; then
19548 cat >>confdefs.h <<\_ACEOF
19549 #define CONVENIENCE_LTDL 1
19550 _ACEOF
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
19559 else
19561 module=yes
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"
19571 _ACEOF
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
19580 else
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"
19589 _ACEOF
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
19598 else
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
19604 sys_search_path=
19605 for dir in $libltdl_cv_sys_search_path; do
19606 if test -z "$sys_search_path"; then
19607 sys_search_path="$dir"
19608 else
19609 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
19611 done
19613 cat >>confdefs.h <<_ACEOF
19614 #define LTDL_SYSSEARCHPATH "$sys_search_path"
19615 _ACEOF
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
19623 else
19624 libltdl_cv_objdir="$objdir"
19625 if test -n "$objdir"; then
19627 else
19628 rm -f .libs 2>/dev/null
19629 mkdir .libs 2>/dev/null
19630 if test -d .libs; then
19631 libltdl_cv_objdir=.libs
19632 else
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/"
19645 _ACEOF
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
19653 else
19654 if test -n "$lt_cv_sys_global_symbol_pipe"; then
19655 libltdl_cv_preloaded_symbols=yes
19656 else
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
19667 _ACEOF
19671 LIBADD_DL=
19673 ac_ext=c
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
19684 else
19685 cat >conftest.$ac_ext <<_ACEOF
19686 /* confdefs.h. */
19687 _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. */
19700 #ifdef __STDC__
19701 # include <limits.h>
19702 #else
19703 # include <assert.h>
19704 #endif
19706 #undef shl_load
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. */
19711 #ifdef __cplusplus
19712 extern "C"
19713 #endif
19714 char shl_load ();
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
19719 choke me
19720 #endif
19723 main ()
19725 return shl_load ();
19727 return 0;
19729 _ACEOF
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;;
19735 esac
19736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19737 (eval "$ac_link") 2>conftest.er1
19738 ac_status=$?
19739 grep -v '^ *+' conftest.er1 >conftest.err
19740 rm -f conftest.er1
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
19749 else
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
19765 _ACEOF
19767 else
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
19772 else
19773 ac_check_lib_save_LIBS=$LIBS
19774 LIBS="-ldld $LIBS"
19775 cat >conftest.$ac_ext <<_ACEOF
19776 /* confdefs.h. */
19777 _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. */
19785 #ifdef __cplusplus
19786 extern "C"
19787 #endif
19788 char shl_load ();
19790 main ()
19792 return shl_load ();
19794 return 0;
19796 _ACEOF
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;;
19802 esac
19803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19804 (eval "$ac_link") 2>conftest.er1
19805 ac_status=$?
19806 grep -v '^ *+' conftest.er1 >conftest.err
19807 rm -f conftest.er1
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
19816 else
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
19833 _ACEOF
19835 LIBADD_DL="$LIBADD_DL -ldld"
19836 else
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
19841 else
19842 ac_check_lib_save_LIBS=$LIBS
19843 LIBS="-ldl $LIBS"
19844 cat >conftest.$ac_ext <<_ACEOF
19845 /* confdefs.h. */
19846 _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. */
19854 #ifdef __cplusplus
19855 extern "C"
19856 #endif
19857 char dlopen ();
19859 main ()
19861 return dlopen ();
19863 return 0;
19865 _ACEOF
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;;
19871 esac
19872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19873 (eval "$ac_link") 2>conftest.er1
19874 ac_status=$?
19875 grep -v '^ *+' conftest.er1 >conftest.err
19876 rm -f conftest.er1
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
19885 else
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
19902 _ACEOF
19904 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
19905 else
19906 cat >conftest.$ac_ext <<_ACEOF
19907 /* confdefs.h. */
19908 _ACEOF
19909 cat confdefs.h >>conftest.$ac_ext
19910 cat >>conftest.$ac_ext <<_ACEOF
19911 /* end confdefs.h. */
19912 #if HAVE_DLFCN_H
19913 # include <dlfcn.h>
19914 #endif
19917 main ()
19919 dlopen(0, 0);
19921 return 0;
19923 _ACEOF
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;;
19929 esac
19930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19931 (eval "$ac_link") 2>conftest.er1
19932 ac_status=$?
19933 grep -v '^ *+' conftest.er1 >conftest.err
19934 rm -f conftest.er1
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
19945 _ACEOF
19946 libltdl_cv_func_dlopen="yes"
19947 else
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
19955 else
19956 ac_check_lib_save_LIBS=$LIBS
19957 LIBS="-lsvld $LIBS"
19958 cat >conftest.$ac_ext <<_ACEOF
19959 /* confdefs.h. */
19960 _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. */
19968 #ifdef __cplusplus
19969 extern "C"
19970 #endif
19971 char dlopen ();
19973 main ()
19975 return dlopen ();
19977 return 0;
19979 _ACEOF
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;;
19985 esac
19986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19987 (eval "$ac_link") 2>conftest.er1
19988 ac_status=$?
19989 grep -v '^ *+' conftest.er1 >conftest.err
19990 rm -f conftest.er1
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
19999 else
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
20016 _ACEOF
20018 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
20019 else
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
20024 else
20025 ac_check_lib_save_LIBS=$LIBS
20026 LIBS="-ldld $LIBS"
20027 cat >conftest.$ac_ext <<_ACEOF
20028 /* confdefs.h. */
20029 _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. */
20037 #ifdef __cplusplus
20038 extern "C"
20039 #endif
20040 char dld_link ();
20042 main ()
20044 return dld_link ();
20046 return 0;
20048 _ACEOF
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;;
20054 esac
20055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20056 (eval "$ac_link") 2>conftest.er1
20057 ac_status=$?
20058 grep -v '^ *+' conftest.er1 >conftest.err
20059 rm -f conftest.er1
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
20068 else
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
20084 #define HAVE_DLD 1
20085 _ACEOF
20087 LIBADD_DL="$LIBADD_DL -ldld"
20088 else
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
20093 else
20094 cat >conftest.$ac_ext <<_ACEOF
20095 /* confdefs.h. */
20096 _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. */
20109 #ifdef __STDC__
20110 # include <limits.h>
20111 #else
20112 # include <assert.h>
20113 #endif
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. */
20120 #ifdef __cplusplus
20121 extern "C"
20122 #endif
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
20128 choke me
20129 #endif
20132 main ()
20134 return _dyld_func_lookup ();
20136 return 0;
20138 _ACEOF
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;;
20144 esac
20145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20146 (eval "$ac_link") 2>conftest.er1
20147 ac_status=$?
20148 grep -v '^ *+' conftest.er1 >conftest.err
20149 rm -f conftest.er1
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
20158 else
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
20174 _ACEOF
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
20200 then
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
20211 else
20212 cat >conftest.$ac_ext <<_ACEOF
20213 /* confdefs.h. */
20214 _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. */
20227 #ifdef __STDC__
20228 # include <limits.h>
20229 #else
20230 # include <assert.h>
20231 #endif
20233 #undef $ac_func
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. */
20238 #ifdef __cplusplus
20239 extern "C"
20240 #endif
20241 char $ac_func ();
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
20246 choke me
20247 #endif
20250 main ()
20252 return $ac_func ();
20254 return 0;
20256 _ACEOF
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;;
20262 esac
20263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20264 (eval "$ac_link") 2>conftest.er1
20265 ac_status=$?
20266 grep -v '^ *+' conftest.er1 >conftest.err
20267 rm -f conftest.er1
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"
20276 else
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
20292 _ACEOF
20295 done
20297 LIBS="$lt_save_LIBS"
20299 ac_ext=c
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
20311 else
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
20319 ac_status=$?
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
20326 ac_status=$?
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
20332 else
20333 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
20335 else
20336 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
20339 else
20340 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
20342 else
20343 echo "configure: failed program was:" >&5
20344 cat conftest.c >&5
20346 rm -rf conftest*
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
20360 else
20361 libltdl_cv_need_uscore=unknown
20362 save_LIBS="$LIBS"
20363 LIBS="$LIBS $LIBADD_DL"
20364 if test "$cross_compiling" = yes; then :
20365 libltdl_cv_need_uscore=cross
20366 else
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"
20373 #if HAVE_DLFCN_H
20374 #include <dlfcn.h>
20375 #endif
20377 #include <stdio.h>
20379 #ifdef RTLD_GLOBAL
20380 # define LT_DLGLOBAL RTLD_GLOBAL
20381 #else
20382 # ifdef DL_GLOBAL
20383 # define LT_DLGLOBAL DL_GLOBAL
20384 # else
20385 # define LT_DLGLOBAL 0
20386 # endif
20387 #endif
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
20392 # ifdef RTLD_LAZY
20393 # define LT_DLLAZY_OR_NOW RTLD_LAZY
20394 # else
20395 # ifdef DL_LAZY
20396 # define LT_DLLAZY_OR_NOW DL_LAZY
20397 # else
20398 # ifdef RTLD_NOW
20399 # define LT_DLLAZY_OR_NOW RTLD_NOW
20400 # else
20401 # ifdef DL_NOW
20402 # define LT_DLLAZY_OR_NOW DL_NOW
20403 # else
20404 # define LT_DLLAZY_OR_NOW 0
20405 # endif
20406 # endif
20407 # endif
20408 # endif
20409 #endif
20411 #ifdef __cplusplus
20412 extern "C" void exit (int);
20413 #endif
20415 void fnord() { int i=42;}
20416 int main ()
20418 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20419 int status = $lt_dlunknown;
20421 if (self)
20423 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
20424 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20425 /* dlclose (self); */
20428 exit (status);
20431 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20432 (eval $ac_link) 2>&5
20433 ac_status=$?
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
20437 lt_status=$?
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*) ;;
20442 esac
20443 else :
20444 # compilation failed
20448 rm -fr conftest*
20450 LIBS="$save_LIBS"
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
20462 _ACEOF
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
20471 else
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
20477 case "$host_os" in
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
20483 aix[45]*)
20484 libltdl_cv_sys_dlopen_deplibs=yes
20486 darwin*)
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
20491 kfreebsd*-gnu)
20492 libltdl_cv_sys_dlopen_deplibs=yes
20494 gnu*)
20495 libltdl_cv_sys_dlopen_deplibs=yes
20497 hpux10*|hpux11*)
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
20505 irix*)
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
20510 linux*)
20511 libltdl_cv_sys_dlopen_deplibs=yes
20513 netbsd*)
20514 libltdl_cv_sys_dlopen_deplibs=yes
20516 openbsd*)
20517 libltdl_cv_sys_dlopen_deplibs=yes
20519 osf[1234]*)
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
20534 osf*)
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
20541 solaris*)
20542 libltdl_cv_sys_dlopen_deplibs=yes
20544 esac
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
20553 _ACEOF
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; }
20570 else
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
20575 /* confdefs.h. */
20576 _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>
20582 _ACEOF
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;;
20588 esac
20589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20590 (eval "$ac_compile") 2>conftest.er1
20591 ac_status=$?
20592 grep -v '^ *+' conftest.er1 >conftest.err
20593 rm -f conftest.er1
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
20601 else
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
20616 /* confdefs.h. */
20617 _ACEOF
20618 cat confdefs.h >>conftest.$ac_ext
20619 cat >>conftest.$ac_ext <<_ACEOF
20620 /* end confdefs.h. */
20621 #include <$ac_header>
20622 _ACEOF
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;;
20627 esac
20628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20629 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20630 ac_status=$?
20631 grep -v '^ *+' conftest.er1 >conftest.err
20632 rm -f conftest.er1
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
20638 }; then
20639 ac_header_preproc=yes
20640 else
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
20653 yes:no: )
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
20660 no: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;}
20675 esac
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
20680 else
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
20691 _ACEOF
20695 done
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
20702 else
20703 cat >conftest.$ac_ext <<_ACEOF
20704 /* confdefs.h. */
20705 _ACEOF
20706 cat confdefs.h >>conftest.$ac_ext
20707 cat >>conftest.$ac_ext <<_ACEOF
20708 /* end confdefs.h. */
20709 #if HAVE_ARGZ_H
20710 # include <argz.h>
20711 #endif
20713 typedef error_t ac__type_new_;
20715 main ()
20717 if ((ac__type_new_ *) 0)
20718 return 0;
20719 if (sizeof (ac__type_new_))
20720 return 0;
20722 return 0;
20724 _ACEOF
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;;
20730 esac
20731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20732 (eval "$ac_compile") 2>conftest.er1
20733 ac_status=$?
20734 grep -v '^ *+' conftest.er1 >conftest.err
20735 rm -f conftest.er1
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
20743 else
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
20758 _ACEOF
20761 else
20763 cat >>confdefs.h <<\_ACEOF
20764 #define error_t int
20765 _ACEOF
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
20782 else
20783 cat >conftest.$ac_ext <<_ACEOF
20784 /* confdefs.h. */
20785 _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. */
20798 #ifdef __STDC__
20799 # include <limits.h>
20800 #else
20801 # include <assert.h>
20802 #endif
20804 #undef $ac_func
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. */
20809 #ifdef __cplusplus
20810 extern "C"
20811 #endif
20812 char $ac_func ();
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
20817 choke me
20818 #endif
20821 main ()
20823 return $ac_func ();
20825 return 0;
20827 _ACEOF
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;;
20833 esac
20834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20835 (eval "$ac_link") 2>conftest.er1
20836 ac_status=$?
20837 grep -v '^ *+' conftest.er1 >conftest.err
20838 rm -f conftest.er1
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"
20847 else
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
20863 _ACEOF
20866 done
20895 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
20896 stdio.h unistd.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; }
20908 else
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
20913 /* confdefs.h. */
20914 _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>
20920 _ACEOF
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;;
20926 esac
20927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20928 (eval "$ac_compile") 2>conftest.er1
20929 ac_status=$?
20930 grep -v '^ *+' conftest.er1 >conftest.err
20931 rm -f conftest.er1
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
20939 else
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
20954 /* confdefs.h. */
20955 _ACEOF
20956 cat confdefs.h >>conftest.$ac_ext
20957 cat >>conftest.$ac_ext <<_ACEOF
20958 /* end confdefs.h. */
20959 #include <$ac_header>
20960 _ACEOF
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;;
20965 esac
20966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20967 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20968 ac_status=$?
20969 grep -v '^ *+' conftest.er1 >conftest.err
20970 rm -f conftest.er1
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
20976 }; then
20977 ac_header_preproc=yes
20978 else
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
20991 yes:no: )
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
20998 no: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;}
21013 esac
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
21018 else
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
21029 _ACEOF
21033 done
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; }
21051 else
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
21056 /* confdefs.h. */
21057 _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>
21063 _ACEOF
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;;
21069 esac
21070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21071 (eval "$ac_compile") 2>conftest.er1
21072 ac_status=$?
21073 grep -v '^ *+' conftest.er1 >conftest.err
21074 rm -f conftest.er1
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
21082 else
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
21097 /* confdefs.h. */
21098 _ACEOF
21099 cat confdefs.h >>conftest.$ac_ext
21100 cat >>conftest.$ac_ext <<_ACEOF
21101 /* end confdefs.h. */
21102 #include <$ac_header>
21103 _ACEOF
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;;
21108 esac
21109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21110 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21111 ac_status=$?
21112 grep -v '^ *+' conftest.er1 >conftest.err
21113 rm -f conftest.er1
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
21119 }; then
21120 ac_header_preproc=yes
21121 else
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
21134 yes:no: )
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
21141 no: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;}
21156 esac
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
21161 else
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
21172 _ACEOF
21176 done
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; }
21192 else
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
21197 /* confdefs.h. */
21198 _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>
21204 _ACEOF
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;;
21210 esac
21211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21212 (eval "$ac_compile") 2>conftest.er1
21213 ac_status=$?
21214 grep -v '^ *+' conftest.er1 >conftest.err
21215 rm -f conftest.er1
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
21223 else
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
21238 /* confdefs.h. */
21239 _ACEOF
21240 cat confdefs.h >>conftest.$ac_ext
21241 cat >>conftest.$ac_ext <<_ACEOF
21242 /* end confdefs.h. */
21243 #include <$ac_header>
21244 _ACEOF
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;;
21249 esac
21250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21251 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21252 ac_status=$?
21253 grep -v '^ *+' conftest.er1 >conftest.err
21254 rm -f conftest.er1
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
21260 }; then
21261 ac_header_preproc=yes
21262 else
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
21275 yes:no: )
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
21282 no: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;}
21297 esac
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
21302 else
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
21313 _ACEOF
21314 break
21317 done
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
21329 else
21330 cat >conftest.$ac_ext <<_ACEOF
21331 /* confdefs.h. */
21332 _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. */
21345 #ifdef __STDC__
21346 # include <limits.h>
21347 #else
21348 # include <assert.h>
21349 #endif
21351 #undef $ac_func
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. */
21356 #ifdef __cplusplus
21357 extern "C"
21358 #endif
21359 char $ac_func ();
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
21364 choke me
21365 #endif
21368 main ()
21370 return $ac_func ();
21372 return 0;
21374 _ACEOF
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;;
21380 esac
21381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21382 (eval "$ac_link") 2>conftest.er1
21383 ac_status=$?
21384 grep -v '^ *+' conftest.er1 >conftest.err
21385 rm -f conftest.er1
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"
21394 else
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
21410 _ACEOF
21411 break
21413 done
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
21424 else
21425 cat >conftest.$ac_ext <<_ACEOF
21426 /* confdefs.h. */
21427 _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. */
21440 #ifdef __STDC__
21441 # include <limits.h>
21442 #else
21443 # include <assert.h>
21444 #endif
21446 #undef $ac_func
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. */
21451 #ifdef __cplusplus
21452 extern "C"
21453 #endif
21454 char $ac_func ();
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
21459 choke me
21460 #endif
21463 main ()
21465 return $ac_func ();
21467 return 0;
21469 _ACEOF
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;;
21475 esac
21476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21477 (eval "$ac_link") 2>conftest.er1
21478 ac_status=$?
21479 grep -v '^ *+' conftest.er1 >conftest.err
21480 rm -f conftest.er1
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"
21489 else
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
21505 _ACEOF
21506 break
21508 done
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
21519 else
21520 cat >conftest.$ac_ext <<_ACEOF
21521 /* confdefs.h. */
21522 _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. */
21535 #ifdef __STDC__
21536 # include <limits.h>
21537 #else
21538 # include <assert.h>
21539 #endif
21541 #undef $ac_func
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. */
21546 #ifdef __cplusplus
21547 extern "C"
21548 #endif
21549 char $ac_func ();
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
21554 choke me
21555 #endif
21558 main ()
21560 return $ac_func ();
21562 return 0;
21564 _ACEOF
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;;
21570 esac
21571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21572 (eval "$ac_link") 2>conftest.er1
21573 ac_status=$?
21574 grep -v '^ *+' conftest.er1 >conftest.err
21575 rm -f conftest.er1
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"
21584 else
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
21600 _ACEOF
21601 break
21603 done
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
21614 else
21615 cat >conftest.$ac_ext <<_ACEOF
21616 /* confdefs.h. */
21617 _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. */
21630 #ifdef __STDC__
21631 # include <limits.h>
21632 #else
21633 # include <assert.h>
21634 #endif
21636 #undef $ac_func
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. */
21641 #ifdef __cplusplus
21642 extern "C"
21643 #endif
21644 char $ac_func ();
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
21649 choke me
21650 #endif
21653 main ()
21655 return $ac_func ();
21657 return 0;
21659 _ACEOF
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;;
21665 esac
21666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21667 (eval "$ac_link") 2>conftest.er1
21668 ac_status=$?
21669 grep -v '^ *+' conftest.er1 >conftest.err
21670 rm -f conftest.er1
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"
21679 else
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
21695 _ACEOF
21698 done
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
21710 else
21711 cat >conftest.$ac_ext <<_ACEOF
21712 /* confdefs.h. */
21713 _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. */
21726 #ifdef __STDC__
21727 # include <limits.h>
21728 #else
21729 # include <assert.h>
21730 #endif
21732 #undef $ac_func
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. */
21737 #ifdef __cplusplus
21738 extern "C"
21739 #endif
21740 char $ac_func ();
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
21745 choke me
21746 #endif
21749 main ()
21751 return $ac_func ();
21753 return 0;
21755 _ACEOF
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;;
21761 esac
21762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21763 (eval "$ac_link") 2>conftest.er1
21764 ac_status=$?
21765 grep -v '^ *+' conftest.er1 >conftest.err
21766 rm -f conftest.er1
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"
21775 else
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
21791 _ACEOF
21794 done
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
21804 withval=$with_x;
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.
21810 have_x=disabled
21811 else
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
21818 else
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
21823 cd conftest.dir
21824 cat >Imakefile <<'_ACEOF'
21825 incroot:
21826 @echo incroot='${INCROOT}'
21827 usrlibdir:
21828 @echo usrlibdir='${USRLIBDIR}'
21829 libdir:
21830 @echo libdir='${LIBDIR}'
21831 _ACEOF
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'\`"
21836 done
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
21843 done
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;;
21850 esac
21851 case $ac_im_usrlibdir in
21852 /usr/lib | /lib) ;;
21853 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
21854 esac
21856 cd ..
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.
21862 ac_x_header_dirs='
21863 /usr/X11/include
21864 /usr/X11R6/include
21865 /usr/X11R5/include
21866 /usr/X11R4/include
21868 /usr/include/X11
21869 /usr/include/X11R6
21870 /usr/include/X11R5
21871 /usr/include/X11R4
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
21883 /usr/X386/include
21884 /usr/x386/include
21885 /usr/XFree86/include/X11
21887 /usr/include
21888 /usr/local/include
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
21901 /* confdefs.h. */
21902 _ACEOF
21903 cat confdefs.h >>conftest.$ac_ext
21904 cat >>conftest.$ac_ext <<_ACEOF
21905 /* end confdefs.h. */
21906 #include <X11/Xlib.h>
21907 _ACEOF
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;;
21912 esac
21913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21914 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21915 ac_status=$?
21916 grep -v '^ *+' conftest.er1 >conftest.err
21917 rm -f conftest.er1
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
21923 }; then
21924 # We can compile using X headers with no special include directory.
21925 ac_x_includes=
21926 else
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
21933 break
21935 done
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.
21945 ac_save_LIBS=$LIBS
21946 LIBS="-lX11 $LIBS"
21947 cat >conftest.$ac_ext <<_ACEOF
21948 /* confdefs.h. */
21949 _ACEOF
21950 cat confdefs.h >>conftest.$ac_ext
21951 cat >>conftest.$ac_ext <<_ACEOF
21952 /* end confdefs.h. */
21953 #include <X11/Xlib.h>
21955 main ()
21957 XrmInitialize ()
21959 return 0;
21961 _ACEOF
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;;
21967 esac
21968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21969 (eval "$ac_link") 2>conftest.er1
21970 ac_status=$?
21971 grep -v '^ *+' conftest.er1 >conftest.err
21972 rm -f conftest.er1
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
21980 LIBS=$ac_save_LIBS
21981 # We can link X programs with no special library path.
21982 ac_x_libraries=
21983 else
21984 echo "$as_me: failed program was:" >&5
21985 sed 's/^/| /' conftest.$ac_ext >&5
21987 LIBS=$ac_save_LIBS
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
21994 break 2
21996 done
21997 done
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'"
22013 esac
22015 ;; #(
22016 *) have_x=yes;;
22017 esac
22018 eval "$ac_cv_have_x"
22019 fi # $with_x != no
22021 if test "$have_x" != yes; then
22022 { echo "$as_me:$LINENO: result: $have_x" >&5
22023 echo "${ECHO_T}$have_x" >&6; }
22024 no_x=yes
22025 else
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
22042 _ACEOF
22044 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
22045 else
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
22061 /* confdefs.h. */
22062 _ACEOF
22063 cat confdefs.h >>conftest.$ac_ext
22064 cat >>conftest.$ac_ext <<_ACEOF
22065 /* end confdefs.h. */
22068 main ()
22072 return 0;
22074 _ACEOF
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;;
22080 esac
22081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22082 (eval "$ac_link") 2>conftest.er1
22083 ac_status=$?
22084 grep -v '^ *+' conftest.er1 >conftest.err
22085 rm -f conftest.er1
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"
22096 else
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
22102 /* confdefs.h. */
22103 _ACEOF
22104 cat confdefs.h >>conftest.$ac_ext
22105 cat >>conftest.$ac_ext <<_ACEOF
22106 /* end confdefs.h. */
22109 main ()
22113 return 0;
22115 _ACEOF
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;;
22121 esac
22122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22123 (eval "$ac_link") 2>conftest.er1
22124 ac_status=$?
22125 grep -v '^ *+' conftest.er1 >conftest.err
22126 rm -f conftest.er1
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"
22137 else
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"
22161 else
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
22167 /* confdefs.h. */
22168 _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. */
22176 #ifdef __cplusplus
22177 extern "C"
22178 #endif
22179 char XOpenDisplay ();
22181 main ()
22183 return XOpenDisplay ();
22185 return 0;
22187 _ACEOF
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;;
22193 esac
22194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22195 (eval "$ac_link") 2>conftest.er1
22196 ac_status=$?
22197 grep -v '^ *+' conftest.er1 >conftest.err
22198 rm -f conftest.er1
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
22207 else
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
22215 else
22216 ac_check_lib_save_LIBS=$LIBS
22217 LIBS="-ldnet $LIBS"
22218 cat >conftest.$ac_ext <<_ACEOF
22219 /* confdefs.h. */
22220 _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. */
22228 #ifdef __cplusplus
22229 extern "C"
22230 #endif
22231 char dnet_ntoa ();
22233 main ()
22235 return dnet_ntoa ();
22237 return 0;
22239 _ACEOF
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;;
22245 esac
22246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22247 (eval "$ac_link") 2>conftest.er1
22248 ac_status=$?
22249 grep -v '^ *+' conftest.er1 >conftest.err
22250 rm -f conftest.er1
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
22259 else
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
22281 else
22282 ac_check_lib_save_LIBS=$LIBS
22283 LIBS="-ldnet_stub $LIBS"
22284 cat >conftest.$ac_ext <<_ACEOF
22285 /* confdefs.h. */
22286 _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. */
22294 #ifdef __cplusplus
22295 extern "C"
22296 #endif
22297 char dnet_ntoa ();
22299 main ()
22301 return dnet_ntoa ();
22303 return 0;
22305 _ACEOF
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;;
22311 esac
22312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22313 (eval "$ac_link") 2>conftest.er1
22314 ac_status=$?
22315 grep -v '^ *+' conftest.er1 >conftest.err
22316 rm -f conftest.er1
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
22325 else
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)
22352 # needs -lnsl.
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
22361 else
22362 cat >conftest.$ac_ext <<_ACEOF
22363 /* confdefs.h. */
22364 _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. */
22377 #ifdef __STDC__
22378 # include <limits.h>
22379 #else
22380 # include <assert.h>
22381 #endif
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. */
22388 #ifdef __cplusplus
22389 extern "C"
22390 #endif
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
22396 choke me
22397 #endif
22400 main ()
22402 return gethostbyname ();
22404 return 0;
22406 _ACEOF
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;;
22412 esac
22413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22414 (eval "$ac_link") 2>conftest.er1
22415 ac_status=$?
22416 grep -v '^ *+' conftest.er1 >conftest.err
22417 rm -f conftest.er1
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
22426 else
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
22444 else
22445 ac_check_lib_save_LIBS=$LIBS
22446 LIBS="-lnsl $LIBS"
22447 cat >conftest.$ac_ext <<_ACEOF
22448 /* confdefs.h. */
22449 _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. */
22457 #ifdef __cplusplus
22458 extern "C"
22459 #endif
22460 char gethostbyname ();
22462 main ()
22464 return gethostbyname ();
22466 return 0;
22468 _ACEOF
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;;
22474 esac
22475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22476 (eval "$ac_link") 2>conftest.er1
22477 ac_status=$?
22478 grep -v '^ *+' conftest.er1 >conftest.err
22479 rm -f conftest.er1
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
22488 else
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
22510 else
22511 ac_check_lib_save_LIBS=$LIBS
22512 LIBS="-lbsd $LIBS"
22513 cat >conftest.$ac_ext <<_ACEOF
22514 /* confdefs.h. */
22515 _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. */
22523 #ifdef __cplusplus
22524 extern "C"
22525 #endif
22526 char gethostbyname ();
22528 main ()
22530 return gethostbyname ();
22532 return 0;
22534 _ACEOF
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;;
22540 esac
22541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22542 (eval "$ac_link") 2>conftest.er1
22543 ac_status=$?
22544 grep -v '^ *+' conftest.er1 >conftest.err
22545 rm -f conftest.er1
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
22554 else
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
22585 else
22586 cat >conftest.$ac_ext <<_ACEOF
22587 /* confdefs.h. */
22588 _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. */
22601 #ifdef __STDC__
22602 # include <limits.h>
22603 #else
22604 # include <assert.h>
22605 #endif
22607 #undef connect
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. */
22612 #ifdef __cplusplus
22613 extern "C"
22614 #endif
22615 char connect ();
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
22620 choke me
22621 #endif
22624 main ()
22626 return connect ();
22628 return 0;
22630 _ACEOF
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;;
22636 esac
22637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22638 (eval "$ac_link") 2>conftest.er1
22639 ac_status=$?
22640 grep -v '^ *+' conftest.er1 >conftest.err
22641 rm -f conftest.er1
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
22650 else
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
22668 else
22669 ac_check_lib_save_LIBS=$LIBS
22670 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
22671 cat >conftest.$ac_ext <<_ACEOF
22672 /* confdefs.h. */
22673 _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. */
22681 #ifdef __cplusplus
22682 extern "C"
22683 #endif
22684 char connect ();
22686 main ()
22688 return connect ();
22690 return 0;
22692 _ACEOF
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;;
22698 esac
22699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22700 (eval "$ac_link") 2>conftest.er1
22701 ac_status=$?
22702 grep -v '^ *+' conftest.er1 >conftest.err
22703 rm -f conftest.er1
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
22712 else
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
22736 else
22737 cat >conftest.$ac_ext <<_ACEOF
22738 /* confdefs.h. */
22739 _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. */
22752 #ifdef __STDC__
22753 # include <limits.h>
22754 #else
22755 # include <assert.h>
22756 #endif
22758 #undef remove
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. */
22763 #ifdef __cplusplus
22764 extern "C"
22765 #endif
22766 char remove ();
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
22771 choke me
22772 #endif
22775 main ()
22777 return remove ();
22779 return 0;
22781 _ACEOF
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;;
22787 esac
22788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22789 (eval "$ac_link") 2>conftest.er1
22790 ac_status=$?
22791 grep -v '^ *+' conftest.er1 >conftest.err
22792 rm -f conftest.er1
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
22801 else
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
22819 else
22820 ac_check_lib_save_LIBS=$LIBS
22821 LIBS="-lposix $LIBS"
22822 cat >conftest.$ac_ext <<_ACEOF
22823 /* confdefs.h. */
22824 _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. */
22832 #ifdef __cplusplus
22833 extern "C"
22834 #endif
22835 char remove ();
22837 main ()
22839 return remove ();
22841 return 0;
22843 _ACEOF
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;;
22849 esac
22850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22851 (eval "$ac_link") 2>conftest.er1
22852 ac_status=$?
22853 grep -v '^ *+' conftest.er1 >conftest.err
22854 rm -f conftest.er1
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
22863 else
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
22887 else
22888 cat >conftest.$ac_ext <<_ACEOF
22889 /* confdefs.h. */
22890 _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. */
22903 #ifdef __STDC__
22904 # include <limits.h>
22905 #else
22906 # include <assert.h>
22907 #endif
22909 #undef shmat
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. */
22914 #ifdef __cplusplus
22915 extern "C"
22916 #endif
22917 char shmat ();
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
22922 choke me
22923 #endif
22926 main ()
22928 return shmat ();
22930 return 0;
22932 _ACEOF
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;;
22938 esac
22939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22940 (eval "$ac_link") 2>conftest.er1
22941 ac_status=$?
22942 grep -v '^ *+' conftest.er1 >conftest.err
22943 rm -f conftest.er1
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
22952 else
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
22970 else
22971 ac_check_lib_save_LIBS=$LIBS
22972 LIBS="-lipc $LIBS"
22973 cat >conftest.$ac_ext <<_ACEOF
22974 /* confdefs.h. */
22975 _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. */
22983 #ifdef __cplusplus
22984 extern "C"
22985 #endif
22986 char shmat ();
22988 main ()
22990 return shmat ();
22992 return 0;
22994 _ACEOF
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;;
23000 esac
23001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23002 (eval "$ac_link") 2>conftest.er1
23003 ac_status=$?
23004 grep -v '^ *+' conftest.er1 >conftest.err
23005 rm -f conftest.er1
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
23014 else
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
23047 else
23048 ac_check_lib_save_LIBS=$LIBS
23049 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
23050 cat >conftest.$ac_ext <<_ACEOF
23051 /* confdefs.h. */
23052 _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. */
23060 #ifdef __cplusplus
23061 extern "C"
23062 #endif
23063 char IceConnectionNumber ();
23065 main ()
23067 return IceConnectionNumber ();
23069 return 0;
23071 _ACEOF
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;;
23077 esac
23078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23079 (eval "$ac_link") 2>conftest.er1
23080 ac_status=$?
23081 grep -v '^ *+' conftest.er1 >conftest.err
23082 rm -f conftest.er1
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
23091 else
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
23117 else
23118 # See if sys/param.h defines the BYTE_ORDER macro.
23119 cat >conftest.$ac_ext <<_ACEOF
23120 /* confdefs.h. */
23121 _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>
23129 main ()
23131 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
23132 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
23133 bogus endian macros
23134 #endif
23137 return 0;
23139 _ACEOF
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;;
23145 esac
23146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23147 (eval "$ac_compile") 2>conftest.er1
23148 ac_status=$?
23149 grep -v '^ *+' conftest.er1 >conftest.err
23150 rm -f conftest.er1
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
23159 /* confdefs.h. */
23160 _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>
23168 main ()
23170 #if BYTE_ORDER != BIG_ENDIAN
23171 not big endian
23172 #endif
23175 return 0;
23177 _ACEOF
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;;
23183 esac
23184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23185 (eval "$ac_compile") 2>conftest.er1
23186 ac_status=$?
23187 grep -v '^ *+' conftest.er1 >conftest.err
23188 rm -f conftest.er1
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
23196 else
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
23204 else
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
23213 /* confdefs.h. */
23214 _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; }
23225 main ()
23227 _ascii (); _ebcdic ();
23229 return 0;
23231 _ACEOF
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;;
23237 esac
23238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23239 (eval "$ac_compile") 2>conftest.er1
23240 ac_status=$?
23241 grep -v '^ *+' conftest.er1 >conftest.err
23242 rm -f conftest.er1
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
23255 else
23256 # finding both strings is unlikely to happen, but who knows?
23257 ac_cv_c_bigendian=unknown
23260 else
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
23268 else
23269 cat >conftest.$ac_ext <<_ACEOF
23270 /* confdefs.h. */
23271 _ACEOF
23272 cat confdefs.h >>conftest.$ac_ext
23273 cat >>conftest.$ac_ext <<_ACEOF
23274 /* end confdefs.h. */
23275 $ac_includes_default
23277 main ()
23280 /* Are we little or big endian? From Harbison&Steele. */
23281 union
23283 long int l;
23284 char c[sizeof (long int)];
23285 } u;
23286 u.l = 1;
23287 return u.c[sizeof (long int) - 1] == 1;
23290 return 0;
23292 _ACEOF
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;;
23298 esac
23299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23300 (eval "$ac_link") 2>&5
23301 ac_status=$?
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;;
23307 esac
23308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23309 (eval "$ac_try") 2>&5
23310 ac_status=$?
23311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23312 (exit $ac_status); }; }; then
23313 ac_cv_c_bigendian=no
23314 else
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
23333 yes)
23335 cat >>confdefs.h <<\_ACEOF
23336 #define WORDS_BIGENDIAN 1
23337 _ACEOF
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; }; } ;;
23347 esac
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
23353 else
23354 ac_cv_c_inline=no
23355 for ac_kw in inline __inline__ __inline; do
23356 cat >conftest.$ac_ext <<_ACEOF
23357 /* confdefs.h. */
23358 _ACEOF
23359 cat confdefs.h >>conftest.$ac_ext
23360 cat >>conftest.$ac_ext <<_ACEOF
23361 /* end confdefs.h. */
23362 #ifndef __cplusplus
23363 typedef int foo_t;
23364 static $ac_kw foo_t static_foo () {return 0; }
23365 $ac_kw foo_t foo () {return 0; }
23366 #endif
23368 _ACEOF
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;;
23374 esac
23375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23376 (eval "$ac_compile") 2>conftest.er1
23377 ac_status=$?
23378 grep -v '^ *+' conftest.er1 >conftest.err
23379 rm -f conftest.er1
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
23387 else
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
23396 done
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
23404 inline | yes) ;;
23406 case $ac_cv_c_inline in
23407 no) ac_val=;;
23408 *) ac_val=$ac_cv_c_inline;;
23409 esac
23410 cat >>confdefs.h <<_ACEOF
23411 #ifndef __cplusplus
23412 #define inline $ac_val
23413 #endif
23414 _ACEOF
23416 esac
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
23422 else
23423 cat >conftest.$ac_ext <<_ACEOF
23424 /* confdefs.h. */
23425 _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_;
23432 main ()
23434 if ((ac__type_new_ *) 0)
23435 return 0;
23436 if (sizeof (ac__type_new_))
23437 return 0;
23439 return 0;
23441 _ACEOF
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;;
23447 esac
23448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23449 (eval "$ac_compile") 2>conftest.er1
23450 ac_status=$?
23451 grep -v '^ *+' conftest.er1 >conftest.err
23452 rm -f conftest.er1
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
23460 else
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
23480 else
23481 if test "$cross_compiling" = yes; then
23482 # Depending upon the size, compute the lo and hi bounds.
23483 cat >conftest.$ac_ext <<_ACEOF
23484 /* confdefs.h. */
23485 _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_;
23492 main ()
23494 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
23495 test_array [0] = 0
23498 return 0;
23500 _ACEOF
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;;
23506 esac
23507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23508 (eval "$ac_compile") 2>conftest.er1
23509 ac_status=$?
23510 grep -v '^ *+' conftest.er1 >conftest.err
23511 rm -f conftest.er1
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
23518 ac_lo=0 ac_mid=0
23519 while :; do
23520 cat >conftest.$ac_ext <<_ACEOF
23521 /* confdefs.h. */
23522 _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_;
23529 main ()
23531 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23532 test_array [0] = 0
23535 return 0;
23537 _ACEOF
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;;
23543 esac
23544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23545 (eval "$ac_compile") 2>conftest.er1
23546 ac_status=$?
23547 grep -v '^ *+' conftest.er1 >conftest.err
23548 rm -f conftest.er1
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
23556 else
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
23562 ac_lo= ac_hi=
23563 break
23565 ac_mid=`expr 2 '*' $ac_mid + 1`
23568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23569 done
23570 else
23571 echo "$as_me: failed program was:" >&5
23572 sed 's/^/| /' conftest.$ac_ext >&5
23574 cat >conftest.$ac_ext <<_ACEOF
23575 /* confdefs.h. */
23576 _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_;
23583 main ()
23585 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
23586 test_array [0] = 0
23589 return 0;
23591 _ACEOF
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;;
23597 esac
23598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23599 (eval "$ac_compile") 2>conftest.er1
23600 ac_status=$?
23601 grep -v '^ *+' conftest.er1 >conftest.err
23602 rm -f conftest.er1
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
23609 ac_hi=-1 ac_mid=-1
23610 while :; do
23611 cat >conftest.$ac_ext <<_ACEOF
23612 /* confdefs.h. */
23613 _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_;
23620 main ()
23622 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
23623 test_array [0] = 0
23626 return 0;
23628 _ACEOF
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;;
23634 esac
23635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23636 (eval "$ac_compile") 2>conftest.er1
23637 ac_status=$?
23638 grep -v '^ *+' conftest.er1 >conftest.err
23639 rm -f conftest.er1
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
23647 else
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
23653 ac_lo= ac_hi=
23654 break
23656 ac_mid=`expr 2 '*' $ac_mid`
23659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23660 done
23661 else
23662 echo "$as_me: failed program was:" >&5
23663 sed 's/^/| /' conftest.$ac_ext >&5
23665 ac_lo= ac_hi=
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
23676 /* confdefs.h. */
23677 _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_;
23684 main ()
23686 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23687 test_array [0] = 0
23690 return 0;
23692 _ACEOF
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;;
23698 esac
23699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23700 (eval "$ac_compile") 2>conftest.er1
23701 ac_status=$?
23702 grep -v '^ *+' conftest.er1 >conftest.err
23703 rm -f conftest.er1
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
23710 ac_hi=$ac_mid
23711 else
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
23719 done
23720 case $ac_lo in
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; }; }
23728 else
23729 ac_cv_sizeof_unsigned_char=0
23730 fi ;;
23731 esac
23732 else
23733 cat >conftest.$ac_ext <<_ACEOF
23734 /* confdefs.h. */
23735 _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_)); }
23743 #include <stdio.h>
23744 #include <stdlib.h>
23746 main ()
23749 FILE *f = fopen ("conftest.val", "w");
23750 if (! f)
23751 return 1;
23752 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23754 long int i = longval ();
23755 if (i != ((long int) (sizeof (ac__type_sizeof_))))
23756 return 1;
23757 fprintf (f, "%ld\n", i);
23759 else
23761 unsigned long int i = ulongval ();
23762 if (i != ((long int) (sizeof (ac__type_sizeof_))))
23763 return 1;
23764 fprintf (f, "%lu\n", i);
23766 return ferror (f) || fclose (f) != 0;
23769 return 0;
23771 _ACEOF
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;;
23777 esac
23778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23779 (eval "$ac_link") 2>&5
23780 ac_status=$?
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;;
23786 esac
23787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23788 (eval "$ac_try") 2>&5
23789 ac_status=$?
23790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23791 (exit $ac_status); }; }; then
23792 ac_cv_sizeof_unsigned_char=`cat conftest.val`
23793 else
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; }; }
23805 else
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
23811 rm -f conftest.val
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
23820 _ACEOF
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
23827 else
23828 cat >conftest.$ac_ext <<_ACEOF
23829 /* confdefs.h. */
23830 _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_;
23837 main ()
23839 if ((ac__type_new_ *) 0)
23840 return 0;
23841 if (sizeof (ac__type_new_))
23842 return 0;
23844 return 0;
23846 _ACEOF
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;;
23852 esac
23853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23854 (eval "$ac_compile") 2>conftest.er1
23855 ac_status=$?
23856 grep -v '^ *+' conftest.er1 >conftest.err
23857 rm -f conftest.er1
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
23865 else
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
23885 else
23886 if test "$cross_compiling" = yes; then
23887 # Depending upon the size, compute the lo and hi bounds.
23888 cat >conftest.$ac_ext <<_ACEOF
23889 /* confdefs.h. */
23890 _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_;
23897 main ()
23899 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
23900 test_array [0] = 0
23903 return 0;
23905 _ACEOF
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;;
23911 esac
23912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23913 (eval "$ac_compile") 2>conftest.er1
23914 ac_status=$?
23915 grep -v '^ *+' conftest.er1 >conftest.err
23916 rm -f conftest.er1
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
23923 ac_lo=0 ac_mid=0
23924 while :; do
23925 cat >conftest.$ac_ext <<_ACEOF
23926 /* confdefs.h. */
23927 _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_;
23934 main ()
23936 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23937 test_array [0] = 0
23940 return 0;
23942 _ACEOF
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;;
23948 esac
23949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23950 (eval "$ac_compile") 2>conftest.er1
23951 ac_status=$?
23952 grep -v '^ *+' conftest.er1 >conftest.err
23953 rm -f conftest.er1
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
23961 else
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
23967 ac_lo= ac_hi=
23968 break
23970 ac_mid=`expr 2 '*' $ac_mid + 1`
23973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23974 done
23975 else
23976 echo "$as_me: failed program was:" >&5
23977 sed 's/^/| /' conftest.$ac_ext >&5
23979 cat >conftest.$ac_ext <<_ACEOF
23980 /* confdefs.h. */
23981 _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_;
23988 main ()
23990 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
23991 test_array [0] = 0
23994 return 0;
23996 _ACEOF
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;;
24002 esac
24003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24004 (eval "$ac_compile") 2>conftest.er1
24005 ac_status=$?
24006 grep -v '^ *+' conftest.er1 >conftest.err
24007 rm -f conftest.er1
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
24014 ac_hi=-1 ac_mid=-1
24015 while :; do
24016 cat >conftest.$ac_ext <<_ACEOF
24017 /* confdefs.h. */
24018 _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_;
24025 main ()
24027 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24028 test_array [0] = 0
24031 return 0;
24033 _ACEOF
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;;
24039 esac
24040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24041 (eval "$ac_compile") 2>conftest.er1
24042 ac_status=$?
24043 grep -v '^ *+' conftest.er1 >conftest.err
24044 rm -f conftest.er1
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
24052 else
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
24058 ac_lo= ac_hi=
24059 break
24061 ac_mid=`expr 2 '*' $ac_mid`
24064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24065 done
24066 else
24067 echo "$as_me: failed program was:" >&5
24068 sed 's/^/| /' conftest.$ac_ext >&5
24070 ac_lo= ac_hi=
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
24081 /* confdefs.h. */
24082 _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_;
24089 main ()
24091 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24092 test_array [0] = 0
24095 return 0;
24097 _ACEOF
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;;
24103 esac
24104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24105 (eval "$ac_compile") 2>conftest.er1
24106 ac_status=$?
24107 grep -v '^ *+' conftest.er1 >conftest.err
24108 rm -f conftest.er1
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
24115 ac_hi=$ac_mid
24116 else
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
24124 done
24125 case $ac_lo in
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; }; }
24133 else
24134 ac_cv_sizeof_unsigned_short=0
24135 fi ;;
24136 esac
24137 else
24138 cat >conftest.$ac_ext <<_ACEOF
24139 /* confdefs.h. */
24140 _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_)); }
24148 #include <stdio.h>
24149 #include <stdlib.h>
24151 main ()
24154 FILE *f = fopen ("conftest.val", "w");
24155 if (! f)
24156 return 1;
24157 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24159 long int i = longval ();
24160 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24161 return 1;
24162 fprintf (f, "%ld\n", i);
24164 else
24166 unsigned long int i = ulongval ();
24167 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24168 return 1;
24169 fprintf (f, "%lu\n", i);
24171 return ferror (f) || fclose (f) != 0;
24174 return 0;
24176 _ACEOF
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;;
24182 esac
24183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24184 (eval "$ac_link") 2>&5
24185 ac_status=$?
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;;
24191 esac
24192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24193 (eval "$ac_try") 2>&5
24194 ac_status=$?
24195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24196 (exit $ac_status); }; }; then
24197 ac_cv_sizeof_unsigned_short=`cat conftest.val`
24198 else
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; }; }
24210 else
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
24216 rm -f conftest.val
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
24225 _ACEOF
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
24232 else
24233 cat >conftest.$ac_ext <<_ACEOF
24234 /* confdefs.h. */
24235 _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_;
24242 main ()
24244 if ((ac__type_new_ *) 0)
24245 return 0;
24246 if (sizeof (ac__type_new_))
24247 return 0;
24249 return 0;
24251 _ACEOF
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;;
24257 esac
24258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24259 (eval "$ac_compile") 2>conftest.er1
24260 ac_status=$?
24261 grep -v '^ *+' conftest.er1 >conftest.err
24262 rm -f conftest.er1
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
24270 else
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
24290 else
24291 if test "$cross_compiling" = yes; then
24292 # Depending upon the size, compute the lo and hi bounds.
24293 cat >conftest.$ac_ext <<_ACEOF
24294 /* confdefs.h. */
24295 _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_;
24302 main ()
24304 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24305 test_array [0] = 0
24308 return 0;
24310 _ACEOF
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;;
24316 esac
24317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24318 (eval "$ac_compile") 2>conftest.er1
24319 ac_status=$?
24320 grep -v '^ *+' conftest.er1 >conftest.err
24321 rm -f conftest.er1
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
24328 ac_lo=0 ac_mid=0
24329 while :; do
24330 cat >conftest.$ac_ext <<_ACEOF
24331 /* confdefs.h. */
24332 _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_;
24339 main ()
24341 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24342 test_array [0] = 0
24345 return 0;
24347 _ACEOF
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;;
24353 esac
24354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24355 (eval "$ac_compile") 2>conftest.er1
24356 ac_status=$?
24357 grep -v '^ *+' conftest.er1 >conftest.err
24358 rm -f conftest.er1
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
24366 else
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
24372 ac_lo= ac_hi=
24373 break
24375 ac_mid=`expr 2 '*' $ac_mid + 1`
24378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24379 done
24380 else
24381 echo "$as_me: failed program was:" >&5
24382 sed 's/^/| /' conftest.$ac_ext >&5
24384 cat >conftest.$ac_ext <<_ACEOF
24385 /* confdefs.h. */
24386 _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_;
24393 main ()
24395 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24396 test_array [0] = 0
24399 return 0;
24401 _ACEOF
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;;
24407 esac
24408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24409 (eval "$ac_compile") 2>conftest.er1
24410 ac_status=$?
24411 grep -v '^ *+' conftest.er1 >conftest.err
24412 rm -f conftest.er1
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
24419 ac_hi=-1 ac_mid=-1
24420 while :; do
24421 cat >conftest.$ac_ext <<_ACEOF
24422 /* confdefs.h. */
24423 _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_;
24430 main ()
24432 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24433 test_array [0] = 0
24436 return 0;
24438 _ACEOF
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;;
24444 esac
24445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24446 (eval "$ac_compile") 2>conftest.er1
24447 ac_status=$?
24448 grep -v '^ *+' conftest.er1 >conftest.err
24449 rm -f conftest.er1
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
24457 else
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
24463 ac_lo= ac_hi=
24464 break
24466 ac_mid=`expr 2 '*' $ac_mid`
24469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24470 done
24471 else
24472 echo "$as_me: failed program was:" >&5
24473 sed 's/^/| /' conftest.$ac_ext >&5
24475 ac_lo= ac_hi=
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
24486 /* confdefs.h. */
24487 _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_;
24494 main ()
24496 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24497 test_array [0] = 0
24500 return 0;
24502 _ACEOF
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;;
24508 esac
24509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24510 (eval "$ac_compile") 2>conftest.er1
24511 ac_status=$?
24512 grep -v '^ *+' conftest.er1 >conftest.err
24513 rm -f conftest.er1
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
24520 ac_hi=$ac_mid
24521 else
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
24529 done
24530 case $ac_lo in
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; }; }
24538 else
24539 ac_cv_sizeof_unsigned_int=0
24540 fi ;;
24541 esac
24542 else
24543 cat >conftest.$ac_ext <<_ACEOF
24544 /* confdefs.h. */
24545 _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_)); }
24553 #include <stdio.h>
24554 #include <stdlib.h>
24556 main ()
24559 FILE *f = fopen ("conftest.val", "w");
24560 if (! f)
24561 return 1;
24562 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24564 long int i = longval ();
24565 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24566 return 1;
24567 fprintf (f, "%ld\n", i);
24569 else
24571 unsigned long int i = ulongval ();
24572 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24573 return 1;
24574 fprintf (f, "%lu\n", i);
24576 return ferror (f) || fclose (f) != 0;
24579 return 0;
24581 _ACEOF
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;;
24587 esac
24588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24589 (eval "$ac_link") 2>&5
24590 ac_status=$?
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;;
24596 esac
24597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24598 (eval "$ac_try") 2>&5
24599 ac_status=$?
24600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24601 (exit $ac_status); }; }; then
24602 ac_cv_sizeof_unsigned_int=`cat conftest.val`
24603 else
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; }; }
24615 else
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
24621 rm -f conftest.val
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
24630 _ACEOF
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
24637 else
24638 cat >conftest.$ac_ext <<_ACEOF
24639 /* confdefs.h. */
24640 _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_;
24647 main ()
24649 if ((ac__type_new_ *) 0)
24650 return 0;
24651 if (sizeof (ac__type_new_))
24652 return 0;
24654 return 0;
24656 _ACEOF
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;;
24662 esac
24663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24664 (eval "$ac_compile") 2>conftest.er1
24665 ac_status=$?
24666 grep -v '^ *+' conftest.er1 >conftest.err
24667 rm -f conftest.er1
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
24675 else
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
24695 else
24696 if test "$cross_compiling" = yes; then
24697 # Depending upon the size, compute the lo and hi bounds.
24698 cat >conftest.$ac_ext <<_ACEOF
24699 /* confdefs.h. */
24700 _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_;
24707 main ()
24709 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24710 test_array [0] = 0
24713 return 0;
24715 _ACEOF
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;;
24721 esac
24722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24723 (eval "$ac_compile") 2>conftest.er1
24724 ac_status=$?
24725 grep -v '^ *+' conftest.er1 >conftest.err
24726 rm -f conftest.er1
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
24733 ac_lo=0 ac_mid=0
24734 while :; do
24735 cat >conftest.$ac_ext <<_ACEOF
24736 /* confdefs.h. */
24737 _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_;
24744 main ()
24746 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24747 test_array [0] = 0
24750 return 0;
24752 _ACEOF
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;;
24758 esac
24759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24760 (eval "$ac_compile") 2>conftest.er1
24761 ac_status=$?
24762 grep -v '^ *+' conftest.er1 >conftest.err
24763 rm -f conftest.er1
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
24771 else
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
24777 ac_lo= ac_hi=
24778 break
24780 ac_mid=`expr 2 '*' $ac_mid + 1`
24783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24784 done
24785 else
24786 echo "$as_me: failed program was:" >&5
24787 sed 's/^/| /' conftest.$ac_ext >&5
24789 cat >conftest.$ac_ext <<_ACEOF
24790 /* confdefs.h. */
24791 _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_;
24798 main ()
24800 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24801 test_array [0] = 0
24804 return 0;
24806 _ACEOF
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;;
24812 esac
24813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24814 (eval "$ac_compile") 2>conftest.er1
24815 ac_status=$?
24816 grep -v '^ *+' conftest.er1 >conftest.err
24817 rm -f conftest.er1
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
24824 ac_hi=-1 ac_mid=-1
24825 while :; do
24826 cat >conftest.$ac_ext <<_ACEOF
24827 /* confdefs.h. */
24828 _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_;
24835 main ()
24837 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24838 test_array [0] = 0
24841 return 0;
24843 _ACEOF
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;;
24849 esac
24850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24851 (eval "$ac_compile") 2>conftest.er1
24852 ac_status=$?
24853 grep -v '^ *+' conftest.er1 >conftest.err
24854 rm -f conftest.er1
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
24862 else
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
24868 ac_lo= ac_hi=
24869 break
24871 ac_mid=`expr 2 '*' $ac_mid`
24874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24875 done
24876 else
24877 echo "$as_me: failed program was:" >&5
24878 sed 's/^/| /' conftest.$ac_ext >&5
24880 ac_lo= ac_hi=
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
24891 /* confdefs.h. */
24892 _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_;
24899 main ()
24901 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24902 test_array [0] = 0
24905 return 0;
24907 _ACEOF
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;;
24913 esac
24914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24915 (eval "$ac_compile") 2>conftest.er1
24916 ac_status=$?
24917 grep -v '^ *+' conftest.er1 >conftest.err
24918 rm -f conftest.er1
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
24925 ac_hi=$ac_mid
24926 else
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
24934 done
24935 case $ac_lo in
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; }; }
24943 else
24944 ac_cv_sizeof_unsigned_long=0
24945 fi ;;
24946 esac
24947 else
24948 cat >conftest.$ac_ext <<_ACEOF
24949 /* confdefs.h. */
24950 _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_)); }
24958 #include <stdio.h>
24959 #include <stdlib.h>
24961 main ()
24964 FILE *f = fopen ("conftest.val", "w");
24965 if (! f)
24966 return 1;
24967 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24969 long int i = longval ();
24970 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24971 return 1;
24972 fprintf (f, "%ld\n", i);
24974 else
24976 unsigned long int i = ulongval ();
24977 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24978 return 1;
24979 fprintf (f, "%lu\n", i);
24981 return ferror (f) || fclose (f) != 0;
24984 return 0;
24986 _ACEOF
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;;
24992 esac
24993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24994 (eval "$ac_link") 2>&5
24995 ac_status=$?
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;;
25001 esac
25002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25003 (eval "$ac_try") 2>&5
25004 ac_status=$?
25005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25006 (exit $ac_status); }; }; then
25007 ac_cv_sizeof_unsigned_long=`cat conftest.val`
25008 else
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; }; }
25020 else
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
25026 rm -f conftest.val
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
25035 _ACEOF
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
25042 else
25043 cat >conftest.$ac_ext <<_ACEOF
25044 /* confdefs.h. */
25045 _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_;
25052 main ()
25054 if ((ac__type_new_ *) 0)
25055 return 0;
25056 if (sizeof (ac__type_new_))
25057 return 0;
25059 return 0;
25061 _ACEOF
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;;
25067 esac
25068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25069 (eval "$ac_compile") 2>conftest.er1
25070 ac_status=$?
25071 grep -v '^ *+' conftest.er1 >conftest.err
25072 rm -f conftest.er1
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
25080 else
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
25100 else
25101 if test "$cross_compiling" = yes; then
25102 # Depending upon the size, compute the lo and hi bounds.
25103 cat >conftest.$ac_ext <<_ACEOF
25104 /* confdefs.h. */
25105 _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_;
25112 main ()
25114 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
25115 test_array [0] = 0
25118 return 0;
25120 _ACEOF
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;;
25126 esac
25127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25128 (eval "$ac_compile") 2>conftest.er1
25129 ac_status=$?
25130 grep -v '^ *+' conftest.er1 >conftest.err
25131 rm -f conftest.er1
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
25138 ac_lo=0 ac_mid=0
25139 while :; do
25140 cat >conftest.$ac_ext <<_ACEOF
25141 /* confdefs.h. */
25142 _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_;
25149 main ()
25151 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25152 test_array [0] = 0
25155 return 0;
25157 _ACEOF
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;;
25163 esac
25164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25165 (eval "$ac_compile") 2>conftest.er1
25166 ac_status=$?
25167 grep -v '^ *+' conftest.er1 >conftest.err
25168 rm -f conftest.er1
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
25176 else
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
25182 ac_lo= ac_hi=
25183 break
25185 ac_mid=`expr 2 '*' $ac_mid + 1`
25188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25189 done
25190 else
25191 echo "$as_me: failed program was:" >&5
25192 sed 's/^/| /' conftest.$ac_ext >&5
25194 cat >conftest.$ac_ext <<_ACEOF
25195 /* confdefs.h. */
25196 _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_;
25203 main ()
25205 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
25206 test_array [0] = 0
25209 return 0;
25211 _ACEOF
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;;
25217 esac
25218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25219 (eval "$ac_compile") 2>conftest.er1
25220 ac_status=$?
25221 grep -v '^ *+' conftest.er1 >conftest.err
25222 rm -f conftest.er1
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
25229 ac_hi=-1 ac_mid=-1
25230 while :; do
25231 cat >conftest.$ac_ext <<_ACEOF
25232 /* confdefs.h. */
25233 _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_;
25240 main ()
25242 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
25243 test_array [0] = 0
25246 return 0;
25248 _ACEOF
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;;
25254 esac
25255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25256 (eval "$ac_compile") 2>conftest.er1
25257 ac_status=$?
25258 grep -v '^ *+' conftest.er1 >conftest.err
25259 rm -f conftest.er1
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
25267 else
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
25273 ac_lo= ac_hi=
25274 break
25276 ac_mid=`expr 2 '*' $ac_mid`
25279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25280 done
25281 else
25282 echo "$as_me: failed program was:" >&5
25283 sed 's/^/| /' conftest.$ac_ext >&5
25285 ac_lo= ac_hi=
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
25296 /* confdefs.h. */
25297 _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_;
25304 main ()
25306 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25307 test_array [0] = 0
25310 return 0;
25312 _ACEOF
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;;
25318 esac
25319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25320 (eval "$ac_compile") 2>conftest.er1
25321 ac_status=$?
25322 grep -v '^ *+' conftest.er1 >conftest.err
25323 rm -f conftest.er1
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
25330 ac_hi=$ac_mid
25331 else
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
25339 done
25340 case $ac_lo in
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; }; }
25348 else
25349 ac_cv_sizeof_unsigned_long_long=0
25350 fi ;;
25351 esac
25352 else
25353 cat >conftest.$ac_ext <<_ACEOF
25354 /* confdefs.h. */
25355 _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_)); }
25363 #include <stdio.h>
25364 #include <stdlib.h>
25366 main ()
25369 FILE *f = fopen ("conftest.val", "w");
25370 if (! f)
25371 return 1;
25372 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
25374 long int i = longval ();
25375 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25376 return 1;
25377 fprintf (f, "%ld\n", i);
25379 else
25381 unsigned long int i = ulongval ();
25382 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25383 return 1;
25384 fprintf (f, "%lu\n", i);
25386 return ferror (f) || fclose (f) != 0;
25389 return 0;
25391 _ACEOF
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;;
25397 esac
25398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25399 (eval "$ac_link") 2>&5
25400 ac_status=$?
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;;
25406 esac
25407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25408 (eval "$ac_try") 2>&5
25409 ac_status=$?
25410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25411 (exit $ac_status); }; }; then
25412 ac_cv_sizeof_unsigned_long_long=`cat conftest.val`
25413 else
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; }; }
25425 else
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
25431 rm -f conftest.val
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
25440 _ACEOF
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
25447 else
25448 cat >conftest.$ac_ext <<_ACEOF
25449 /* confdefs.h. */
25450 _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_;
25457 main ()
25459 if ((ac__type_new_ *) 0)
25460 return 0;
25461 if (sizeof (ac__type_new_))
25462 return 0;
25464 return 0;
25466 _ACEOF
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;;
25472 esac
25473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25474 (eval "$ac_compile") 2>conftest.er1
25475 ac_status=$?
25476 grep -v '^ *+' conftest.er1 >conftest.err
25477 rm -f conftest.er1
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
25485 else
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
25505 else
25506 if test "$cross_compiling" = yes; then
25507 # Depending upon the size, compute the lo and hi bounds.
25508 cat >conftest.$ac_ext <<_ACEOF
25509 /* confdefs.h. */
25510 _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_;
25517 main ()
25519 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
25520 test_array [0] = 0
25523 return 0;
25525 _ACEOF
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;;
25531 esac
25532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25533 (eval "$ac_compile") 2>conftest.er1
25534 ac_status=$?
25535 grep -v '^ *+' conftest.er1 >conftest.err
25536 rm -f conftest.er1
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
25543 ac_lo=0 ac_mid=0
25544 while :; do
25545 cat >conftest.$ac_ext <<_ACEOF
25546 /* confdefs.h. */
25547 _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_;
25554 main ()
25556 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25557 test_array [0] = 0
25560 return 0;
25562 _ACEOF
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;;
25568 esac
25569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25570 (eval "$ac_compile") 2>conftest.er1
25571 ac_status=$?
25572 grep -v '^ *+' conftest.er1 >conftest.err
25573 rm -f conftest.er1
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
25581 else
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
25587 ac_lo= ac_hi=
25588 break
25590 ac_mid=`expr 2 '*' $ac_mid + 1`
25593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25594 done
25595 else
25596 echo "$as_me: failed program was:" >&5
25597 sed 's/^/| /' conftest.$ac_ext >&5
25599 cat >conftest.$ac_ext <<_ACEOF
25600 /* confdefs.h. */
25601 _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_;
25608 main ()
25610 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
25611 test_array [0] = 0
25614 return 0;
25616 _ACEOF
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;;
25622 esac
25623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25624 (eval "$ac_compile") 2>conftest.er1
25625 ac_status=$?
25626 grep -v '^ *+' conftest.er1 >conftest.err
25627 rm -f conftest.er1
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
25634 ac_hi=-1 ac_mid=-1
25635 while :; do
25636 cat >conftest.$ac_ext <<_ACEOF
25637 /* confdefs.h. */
25638 _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_;
25645 main ()
25647 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
25648 test_array [0] = 0
25651 return 0;
25653 _ACEOF
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;;
25659 esac
25660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25661 (eval "$ac_compile") 2>conftest.er1
25662 ac_status=$?
25663 grep -v '^ *+' conftest.er1 >conftest.err
25664 rm -f conftest.er1
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
25672 else
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
25678 ac_lo= ac_hi=
25679 break
25681 ac_mid=`expr 2 '*' $ac_mid`
25684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25685 done
25686 else
25687 echo "$as_me: failed program was:" >&5
25688 sed 's/^/| /' conftest.$ac_ext >&5
25690 ac_lo= ac_hi=
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
25701 /* confdefs.h. */
25702 _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_;
25709 main ()
25711 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25712 test_array [0] = 0
25715 return 0;
25717 _ACEOF
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;;
25723 esac
25724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25725 (eval "$ac_compile") 2>conftest.er1
25726 ac_status=$?
25727 grep -v '^ *+' conftest.er1 >conftest.err
25728 rm -f conftest.er1
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
25735 ac_hi=$ac_mid
25736 else
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
25744 done
25745 case $ac_lo in
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; }; }
25753 else
25754 ac_cv_sizeof_int_p=0
25755 fi ;;
25756 esac
25757 else
25758 cat >conftest.$ac_ext <<_ACEOF
25759 /* confdefs.h. */
25760 _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_)); }
25768 #include <stdio.h>
25769 #include <stdlib.h>
25771 main ()
25774 FILE *f = fopen ("conftest.val", "w");
25775 if (! f)
25776 return 1;
25777 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
25779 long int i = longval ();
25780 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25781 return 1;
25782 fprintf (f, "%ld\n", i);
25784 else
25786 unsigned long int i = ulongval ();
25787 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25788 return 1;
25789 fprintf (f, "%lu\n", i);
25791 return ferror (f) || fclose (f) != 0;
25794 return 0;
25796 _ACEOF
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;;
25802 esac
25803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25804 (eval "$ac_link") 2>&5
25805 ac_status=$?
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;;
25811 esac
25812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25813 (eval "$ac_try") 2>&5
25814 ac_status=$?
25815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25816 (exit $ac_status); }; }; then
25817 ac_cv_sizeof_int_p=`cat conftest.val`
25818 else
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; }; }
25830 else
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
25836 rm -f conftest.val
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
25845 _ACEOF
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
25856 else
25857 cat >conftest.$ac_ext <<_ACEOF
25858 /* confdefs.h. */
25859 _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. */
25872 #ifdef __STDC__
25873 # include <limits.h>
25874 #else
25875 # include <assert.h>
25876 #endif
25878 #undef $ac_func
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. */
25883 #ifdef __cplusplus
25884 extern "C"
25885 #endif
25886 char $ac_func ();
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
25891 choke me
25892 #endif
25895 main ()
25897 return $ac_func ();
25899 return 0;
25901 _ACEOF
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;;
25907 esac
25908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25909 (eval "$ac_link") 2>conftest.er1
25910 ac_status=$?
25911 grep -v '^ *+' conftest.er1 >conftest.err
25912 rm -f conftest.er1
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"
25921 else
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
25937 _ACEOF
25938 cat >>confdefs.h <<\_ACEOF
25939 #define BX_HAVE_GETENV 1
25940 _ACEOF
25943 done
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
25953 else
25954 cat >conftest.$ac_ext <<_ACEOF
25955 /* confdefs.h. */
25956 _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. */
25969 #ifdef __STDC__
25970 # include <limits.h>
25971 #else
25972 # include <assert.h>
25973 #endif
25975 #undef $ac_func
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. */
25980 #ifdef __cplusplus
25981 extern "C"
25982 #endif
25983 char $ac_func ();
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
25988 choke me
25989 #endif
25992 main ()
25994 return $ac_func ();
25996 return 0;
25998 _ACEOF
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;;
26004 esac
26005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26006 (eval "$ac_link") 2>conftest.er1
26007 ac_status=$?
26008 grep -v '^ *+' conftest.er1 >conftest.err
26009 rm -f conftest.er1
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"
26018 else
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
26034 _ACEOF
26035 cat >>confdefs.h <<\_ACEOF
26036 #define BX_HAVE_SETENV 1
26037 _ACEOF
26040 done
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
26050 else
26051 cat >conftest.$ac_ext <<_ACEOF
26052 /* confdefs.h. */
26053 _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. */
26066 #ifdef __STDC__
26067 # include <limits.h>
26068 #else
26069 # include <assert.h>
26070 #endif
26072 #undef $ac_func
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. */
26077 #ifdef __cplusplus
26078 extern "C"
26079 #endif
26080 char $ac_func ();
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
26085 choke me
26086 #endif
26089 main ()
26091 return $ac_func ();
26093 return 0;
26095 _ACEOF
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;;
26101 esac
26102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26103 (eval "$ac_link") 2>conftest.er1
26104 ac_status=$?
26105 grep -v '^ *+' conftest.er1 >conftest.err
26106 rm -f conftest.er1
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"
26115 else
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
26131 _ACEOF
26132 cat >>confdefs.h <<\_ACEOF
26133 #define BX_HAVE_SELECT 1
26134 _ACEOF
26137 done
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
26147 else
26148 cat >conftest.$ac_ext <<_ACEOF
26149 /* confdefs.h. */
26150 _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. */
26163 #ifdef __STDC__
26164 # include <limits.h>
26165 #else
26166 # include <assert.h>
26167 #endif
26169 #undef $ac_func
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. */
26174 #ifdef __cplusplus
26175 extern "C"
26176 #endif
26177 char $ac_func ();
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
26182 choke me
26183 #endif
26186 main ()
26188 return $ac_func ();
26190 return 0;
26192 _ACEOF
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;;
26198 esac
26199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26200 (eval "$ac_link") 2>conftest.er1
26201 ac_status=$?
26202 grep -v '^ *+' conftest.er1 >conftest.err
26203 rm -f conftest.er1
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"
26212 else
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
26228 _ACEOF
26229 cat >>confdefs.h <<\_ACEOF
26230 #define BX_HAVE_SNPRINTF 1
26231 _ACEOF
26234 done
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
26244 else
26245 cat >conftest.$ac_ext <<_ACEOF
26246 /* confdefs.h. */
26247 _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. */
26260 #ifdef __STDC__
26261 # include <limits.h>
26262 #else
26263 # include <assert.h>
26264 #endif
26266 #undef $ac_func
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. */
26271 #ifdef __cplusplus
26272 extern "C"
26273 #endif
26274 char $ac_func ();
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
26279 choke me
26280 #endif
26283 main ()
26285 return $ac_func ();
26287 return 0;
26289 _ACEOF
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;;
26295 esac
26296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26297 (eval "$ac_link") 2>conftest.er1
26298 ac_status=$?
26299 grep -v '^ *+' conftest.er1 >conftest.err
26300 rm -f conftest.er1
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"
26309 else
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
26325 _ACEOF
26326 cat >>confdefs.h <<\_ACEOF
26327 #define BX_HAVE_VSNPRINTF 1
26328 _ACEOF
26331 done
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
26341 else
26342 cat >conftest.$ac_ext <<_ACEOF
26343 /* confdefs.h. */
26344 _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. */
26357 #ifdef __STDC__
26358 # include <limits.h>
26359 #else
26360 # include <assert.h>
26361 #endif
26363 #undef $ac_func
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. */
26368 #ifdef __cplusplus
26369 extern "C"
26370 #endif
26371 char $ac_func ();
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
26376 choke me
26377 #endif
26380 main ()
26382 return $ac_func ();
26384 return 0;
26386 _ACEOF
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;;
26392 esac
26393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26394 (eval "$ac_link") 2>conftest.er1
26395 ac_status=$?
26396 grep -v '^ *+' conftest.er1 >conftest.err
26397 rm -f conftest.er1
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"
26406 else
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
26422 _ACEOF
26423 cat >>confdefs.h <<\_ACEOF
26424 #define BX_HAVE_STRTOULL 1
26425 _ACEOF
26428 done
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
26438 else
26439 cat >conftest.$ac_ext <<_ACEOF
26440 /* confdefs.h. */
26441 _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. */
26454 #ifdef __STDC__
26455 # include <limits.h>
26456 #else
26457 # include <assert.h>
26458 #endif
26460 #undef $ac_func
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. */
26465 #ifdef __cplusplus
26466 extern "C"
26467 #endif
26468 char $ac_func ();
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
26473 choke me
26474 #endif
26477 main ()
26479 return $ac_func ();
26481 return 0;
26483 _ACEOF
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;;
26489 esac
26490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26491 (eval "$ac_link") 2>conftest.er1
26492 ac_status=$?
26493 grep -v '^ *+' conftest.er1 >conftest.err
26494 rm -f conftest.er1
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"
26503 else
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
26519 _ACEOF
26520 cat >>confdefs.h <<\_ACEOF
26521 #define BX_HAVE_STRTOUQ 1
26522 _ACEOF
26525 done
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
26535 else
26536 cat >conftest.$ac_ext <<_ACEOF
26537 /* confdefs.h. */
26538 _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. */
26551 #ifdef __STDC__
26552 # include <limits.h>
26553 #else
26554 # include <assert.h>
26555 #endif
26557 #undef $ac_func
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. */
26562 #ifdef __cplusplus
26563 extern "C"
26564 #endif
26565 char $ac_func ();
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
26570 choke me
26571 #endif
26574 main ()
26576 return $ac_func ();
26578 return 0;
26580 _ACEOF
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;;
26586 esac
26587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26588 (eval "$ac_link") 2>conftest.er1
26589 ac_status=$?
26590 grep -v '^ *+' conftest.er1 >conftest.err
26591 rm -f conftest.er1
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"
26600 else
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
26616 _ACEOF
26617 cat >>confdefs.h <<\_ACEOF
26618 #define BX_HAVE_STRDUP 1
26619 _ACEOF
26622 done
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
26632 else
26633 cat >conftest.$ac_ext <<_ACEOF
26634 /* confdefs.h. */
26635 _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. */
26648 #ifdef __STDC__
26649 # include <limits.h>
26650 #else
26651 # include <assert.h>
26652 #endif
26654 #undef $ac_func
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. */
26659 #ifdef __cplusplus
26660 extern "C"
26661 #endif
26662 char $ac_func ();
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
26667 choke me
26668 #endif
26671 main ()
26673 return $ac_func ();
26675 return 0;
26677 _ACEOF
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;;
26683 esac
26684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26685 (eval "$ac_link") 2>conftest.er1
26686 ac_status=$?
26687 grep -v '^ *+' conftest.er1 >conftest.err
26688 rm -f conftest.er1
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"
26697 else
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
26713 _ACEOF
26714 cat >>confdefs.h <<\_ACEOF
26715 #define BX_HAVE_STRREV 1
26716 _ACEOF
26719 done
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
26729 else
26730 cat >conftest.$ac_ext <<_ACEOF
26731 /* confdefs.h. */
26732 _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. */
26745 #ifdef __STDC__
26746 # include <limits.h>
26747 #else
26748 # include <assert.h>
26749 #endif
26751 #undef $ac_func
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. */
26756 #ifdef __cplusplus
26757 extern "C"
26758 #endif
26759 char $ac_func ();
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
26764 choke me
26765 #endif
26768 main ()
26770 return $ac_func ();
26772 return 0;
26774 _ACEOF
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;;
26780 esac
26781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26782 (eval "$ac_link") 2>conftest.er1
26783 ac_status=$?
26784 grep -v '^ *+' conftest.er1 >conftest.err
26785 rm -f conftest.er1
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"
26794 else
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
26810 _ACEOF
26811 cat >>confdefs.h <<\_ACEOF
26812 #define BX_HAVE_SLEEP 1
26813 _ACEOF
26816 done
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
26826 else
26827 cat >conftest.$ac_ext <<_ACEOF
26828 /* confdefs.h. */
26829 _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. */
26842 #ifdef __STDC__
26843 # include <limits.h>
26844 #else
26845 # include <assert.h>
26846 #endif
26848 #undef $ac_func
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. */
26853 #ifdef __cplusplus
26854 extern "C"
26855 #endif
26856 char $ac_func ();
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
26861 choke me
26862 #endif
26865 main ()
26867 return $ac_func ();
26869 return 0;
26871 _ACEOF
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;;
26877 esac
26878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26879 (eval "$ac_link") 2>conftest.er1
26880 ac_status=$?
26881 grep -v '^ *+' conftest.er1 >conftest.err
26882 rm -f conftest.er1
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"
26891 else
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
26907 _ACEOF
26908 cat >>confdefs.h <<\_ACEOF
26909 #define BX_HAVE_USLEEP 1
26910 _ACEOF
26913 done
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
26923 else
26924 cat >conftest.$ac_ext <<_ACEOF
26925 /* confdefs.h. */
26926 _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. */
26939 #ifdef __STDC__
26940 # include <limits.h>
26941 #else
26942 # include <assert.h>
26943 #endif
26945 #undef $ac_func
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. */
26950 #ifdef __cplusplus
26951 extern "C"
26952 #endif
26953 char $ac_func ();
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
26958 choke me
26959 #endif
26962 main ()
26964 return $ac_func ();
26966 return 0;
26968 _ACEOF
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;;
26974 esac
26975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26976 (eval "$ac_link") 2>conftest.er1
26977 ac_status=$?
26978 grep -v '^ *+' conftest.er1 >conftest.err
26979 rm -f conftest.er1
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"
26988 else
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
27004 _ACEOF
27005 cat >>confdefs.h <<\_ACEOF
27006 #define BX_HAVE_NANOSLEEP 1
27007 _ACEOF
27010 done
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
27020 else
27021 cat >conftest.$ac_ext <<_ACEOF
27022 /* confdefs.h. */
27023 _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. */
27036 #ifdef __STDC__
27037 # include <limits.h>
27038 #else
27039 # include <assert.h>
27040 #endif
27042 #undef $ac_func
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. */
27047 #ifdef __cplusplus
27048 extern "C"
27049 #endif
27050 char $ac_func ();
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
27055 choke me
27056 #endif
27059 main ()
27061 return $ac_func ();
27063 return 0;
27065 _ACEOF
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;;
27071 esac
27072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27073 (eval "$ac_link") 2>conftest.er1
27074 ac_status=$?
27075 grep -v '^ *+' conftest.er1 >conftest.err
27076 rm -f conftest.er1
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"
27085 else
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
27101 _ACEOF
27102 cat >>confdefs.h <<\_ACEOF
27103 #define BX_HAVE_ABORT 1
27104 _ACEOF
27107 done
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
27117 else
27118 cat >conftest.$ac_ext <<_ACEOF
27119 /* confdefs.h. */
27120 _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. */
27133 #ifdef __STDC__
27134 # include <limits.h>
27135 #else
27136 # include <assert.h>
27137 #endif
27139 #undef $ac_func
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. */
27144 #ifdef __cplusplus
27145 extern "C"
27146 #endif
27147 char $ac_func ();
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
27152 choke me
27153 #endif
27156 main ()
27158 return $ac_func ();
27160 return 0;
27162 _ACEOF
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;;
27168 esac
27169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27170 (eval "$ac_link") 2>conftest.er1
27171 ac_status=$?
27172 grep -v '^ *+' conftest.er1 >conftest.err
27173 rm -f conftest.er1
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"
27182 else
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
27198 _ACEOF
27199 cat >>confdefs.h <<\_ACEOF
27200 #define BX_HAVE_GETTIMEOFDAY 1
27201 _ACEOF
27204 done
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
27210 else
27211 cat >conftest.$ac_ext <<_ACEOF
27212 /* confdefs.h. */
27213 _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_;
27222 main ()
27224 if ((ac__type_new_ *) 0)
27225 return 0;
27226 if (sizeof (ac__type_new_))
27227 return 0;
27229 return 0;
27231 _ACEOF
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;;
27237 esac
27238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27239 (eval "$ac_compile") 2>conftest.er1
27240 ac_status=$?
27241 grep -v '^ *+' conftest.er1 >conftest.err
27242 rm -f conftest.er1
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
27250 else
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
27264 _ACEOF
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
27272 else
27273 cat >conftest.$ac_ext <<_ACEOF
27274 /* confdefs.h. */
27275 _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>
27283 main ()
27285 static struct sockaddr_in ac_aggr;
27286 if (ac_aggr.sin_len)
27287 return 0;
27289 return 0;
27291 _ACEOF
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;;
27297 esac
27298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27299 (eval "$ac_compile") 2>conftest.er1
27300 ac_status=$?
27301 grep -v '^ *+' conftest.er1 >conftest.err
27302 rm -f conftest.er1
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
27310 else
27311 echo "$as_me: failed program was:" >&5
27312 sed 's/^/| /' conftest.$ac_ext >&5
27314 cat >conftest.$ac_ext <<_ACEOF
27315 /* confdefs.h. */
27316 _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>
27324 main ()
27326 static struct sockaddr_in ac_aggr;
27327 if (sizeof ac_aggr.sin_len)
27328 return 0;
27330 return 0;
27332 _ACEOF
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;;
27338 esac
27339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27340 (eval "$ac_compile") 2>conftest.er1
27341 ac_status=$?
27342 grep -v '^ *+' conftest.er1 >conftest.err
27343 rm -f conftest.er1
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
27351 else
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
27368 _ACEOF
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
27380 else
27381 cat >conftest.$ac_ext <<_ACEOF
27382 /* confdefs.h. */
27383 _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. */
27396 #ifdef __STDC__
27397 # include <limits.h>
27398 #else
27399 # include <assert.h>
27400 #endif
27402 #undef $ac_func
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. */
27407 #ifdef __cplusplus
27408 extern "C"
27409 #endif
27410 char $ac_func ();
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
27415 choke me
27416 #endif
27419 main ()
27421 return $ac_func ();
27423 return 0;
27425 _ACEOF
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;;
27431 esac
27432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27433 (eval "$ac_link") 2>conftest.er1
27434 ac_status=$?
27435 grep -v '^ *+' conftest.er1 >conftest.err
27436 rm -f conftest.er1
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"
27445 else
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
27461 _ACEOF
27462 cat >>confdefs.h <<\_ACEOF
27463 #define BX_HAVE_MKSTEMP 1
27464 _ACEOF
27467 done
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; }
27477 else
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
27482 /* confdefs.h. */
27483 _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>
27489 _ACEOF
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;;
27495 esac
27496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27497 (eval "$ac_compile") 2>conftest.er1
27498 ac_status=$?
27499 grep -v '^ *+' conftest.er1 >conftest.err
27500 rm -f conftest.er1
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
27508 else
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
27523 /* confdefs.h. */
27524 _ACEOF
27525 cat confdefs.h >>conftest.$ac_ext
27526 cat >>conftest.$ac_ext <<_ACEOF
27527 /* end confdefs.h. */
27528 #include <sys/mman.h>
27529 _ACEOF
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;;
27534 esac
27535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27536 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27537 ac_status=$?
27538 grep -v '^ *+' conftest.er1 >conftest.err
27539 rm -f conftest.er1
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
27545 }; then
27546 ac_header_preproc=yes
27547 else
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
27560 yes:no: )
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
27567 no: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;}
27582 esac
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
27587 else
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
27597 _ACEOF
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
27610 else
27611 cat >conftest.$ac_ext <<_ACEOF
27612 /* confdefs.h. */
27613 _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. */
27626 #ifdef __STDC__
27627 # include <limits.h>
27628 #else
27629 # include <assert.h>
27630 #endif
27632 #undef $ac_func
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. */
27637 #ifdef __cplusplus
27638 extern "C"
27639 #endif
27640 char $ac_func ();
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
27645 choke me
27646 #endif
27649 main ()
27651 return $ac_func ();
27653 return 0;
27655 _ACEOF
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;;
27661 esac
27662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27663 (eval "$ac_link") 2>conftest.er1
27664 ac_status=$?
27665 grep -v '^ *+' conftest.er1 >conftest.err
27666 rm -f conftest.er1
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"
27675 else
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
27691 _ACEOF
27692 cat >>confdefs.h <<\_ACEOF
27693 #define BX_HAVE_TIMELOCAL 1
27694 _ACEOF
27697 done
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
27707 else
27708 cat >conftest.$ac_ext <<_ACEOF
27709 /* confdefs.h. */
27710 _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. */
27723 #ifdef __STDC__
27724 # include <limits.h>
27725 #else
27726 # include <assert.h>
27727 #endif
27729 #undef $ac_func
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. */
27734 #ifdef __cplusplus
27735 extern "C"
27736 #endif
27737 char $ac_func ();
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
27742 choke me
27743 #endif
27746 main ()
27748 return $ac_func ();
27750 return 0;
27752 _ACEOF
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;;
27758 esac
27759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27760 (eval "$ac_link") 2>conftest.er1
27761 ac_status=$?
27762 grep -v '^ *+' conftest.er1 >conftest.err
27763 rm -f conftest.er1
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"
27772 else
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
27788 _ACEOF
27789 cat >>confdefs.h <<\_ACEOF
27790 #define BX_HAVE_GMTIME 1
27791 _ACEOF
27794 done
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
27804 else
27805 cat >conftest.$ac_ext <<_ACEOF
27806 /* confdefs.h. */
27807 _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. */
27820 #ifdef __STDC__
27821 # include <limits.h>
27822 #else
27823 # include <assert.h>
27824 #endif
27826 #undef $ac_func
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. */
27831 #ifdef __cplusplus
27832 extern "C"
27833 #endif
27834 char $ac_func ();
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
27839 choke me
27840 #endif
27843 main ()
27845 return $ac_func ();
27847 return 0;
27849 _ACEOF
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;;
27855 esac
27856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27857 (eval "$ac_link") 2>conftest.er1
27858 ac_status=$?
27859 grep -v '^ *+' conftest.er1 >conftest.err
27860 rm -f conftest.er1
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"
27869 else
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
27885 _ACEOF
27886 cat >>confdefs.h <<\_ACEOF
27887 #define BX_HAVE_MKTIME 1
27888 _ACEOF
27891 done
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
27900 wx_largefile=no
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
27906 else
27908 cat >conftest.$ac_ext <<_ACEOF
27909 /* confdefs.h. */
27910 _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>
27917 main ()
27919 typedef struct {
27920 unsigned int field: sizeof(off_t) == 8;
27921 } wxlf;
27924 return 0;
27926 _ACEOF
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;;
27932 esac
27933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27934 (eval "$ac_compile") 2>conftest.er1
27935 ac_status=$?
27936 grep -v '^ *+' conftest.er1 >conftest.err
27937 rm -f conftest.er1
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
27945 else
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
27960 wx_largefile=yes
27961 cat >>confdefs.h <<_ACEOF
27962 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
27963 _ACEOF
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
27973 else
27975 cat >conftest.$ac_ext <<_ACEOF
27976 /* confdefs.h. */
27977 _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>
27984 main ()
27986 typedef struct {
27987 unsigned int field: sizeof(off_t) == 8;
27988 } wxlf;
27991 return 0;
27993 _ACEOF
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;;
27999 esac
28000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28001 (eval "$ac_compile") 2>conftest.er1
28002 ac_status=$?
28003 grep -v '^ *+' conftest.er1 >conftest.err
28004 rm -f conftest.er1
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
28012 else
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
28027 wx_largefile=yes
28028 cat >>confdefs.h <<_ACEOF
28029 #define _LARGE_FILES $ac_cv_sys_large_files
28030 _ACEOF
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
28041 _ACEOF
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"
28052 else
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"
28060 have_cos=0
28061 have_floor=0
28063 for ac_func in cos
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
28070 else
28071 cat >conftest.$ac_ext <<_ACEOF
28072 /* confdefs.h. */
28073 _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. */
28086 #ifdef __STDC__
28087 # include <limits.h>
28088 #else
28089 # include <assert.h>
28090 #endif
28092 #undef $ac_func
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. */
28097 #ifdef __cplusplus
28098 extern "C"
28099 #endif
28100 char $ac_func ();
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
28105 choke me
28106 #endif
28109 main ()
28111 return $ac_func ();
28113 return 0;
28115 _ACEOF
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;;
28121 esac
28122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28123 (eval "$ac_link") 2>conftest.er1
28124 ac_status=$?
28125 grep -v '^ *+' conftest.er1 >conftest.err
28126 rm -f conftest.er1
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"
28135 else
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
28151 _ACEOF
28152 have_cos=1
28154 done
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
28164 else
28165 cat >conftest.$ac_ext <<_ACEOF
28166 /* confdefs.h. */
28167 _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. */
28180 #ifdef __STDC__
28181 # include <limits.h>
28182 #else
28183 # include <assert.h>
28184 #endif
28186 #undef $ac_func
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. */
28191 #ifdef __cplusplus
28192 extern "C"
28193 #endif
28194 char $ac_func ();
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
28199 choke me
28200 #endif
28203 main ()
28205 return $ac_func ();
28207 return 0;
28209 _ACEOF
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;;
28215 esac
28216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28217 (eval "$ac_link") 2>conftest.er1
28218 ac_status=$?
28219 grep -v '^ *+' conftest.er1 >conftest.err
28220 rm -f conftest.er1
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"
28229 else
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
28245 _ACEOF
28246 have_floor=1
28248 done
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; }
28255 else
28256 { echo "$as_me:$LINENO: result: no" >&5
28257 echo "${ECHO_T}no" >&6; }
28258 LIBS="$LIBS -lm"
28259 # use different functions to bypass configure caching
28260 have_sin=0
28261 have_ceil=0
28263 for ac_func in sin
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
28270 else
28271 cat >conftest.$ac_ext <<_ACEOF
28272 /* confdefs.h. */
28273 _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. */
28286 #ifdef __STDC__
28287 # include <limits.h>
28288 #else
28289 # include <assert.h>
28290 #endif
28292 #undef $ac_func
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. */
28297 #ifdef __cplusplus
28298 extern "C"
28299 #endif
28300 char $ac_func ();
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
28305 choke me
28306 #endif
28309 main ()
28311 return $ac_func ();
28313 return 0;
28315 _ACEOF
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;;
28321 esac
28322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28323 (eval "$ac_link") 2>conftest.er1
28324 ac_status=$?
28325 grep -v '^ *+' conftest.er1 >conftest.err
28326 rm -f conftest.er1
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"
28335 else
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
28351 _ACEOF
28352 have_sin=1
28354 done
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
28364 else
28365 cat >conftest.$ac_ext <<_ACEOF
28366 /* confdefs.h. */
28367 _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. */
28380 #ifdef __STDC__
28381 # include <limits.h>
28382 #else
28383 # include <assert.h>
28384 #endif
28386 #undef $ac_func
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. */
28391 #ifdef __cplusplus
28392 extern "C"
28393 #endif
28394 char $ac_func ();
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
28399 choke me
28400 #endif
28403 main ()
28405 return $ac_func ();
28407 return 0;
28409 _ACEOF
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;;
28415 esac
28416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28417 (eval "$ac_link") 2>conftest.er1
28418 ac_status=$?
28419 grep -v '^ *+' conftest.er1 >conftest.err
28420 rm -f conftest.er1
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"
28429 else
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
28445 _ACEOF
28446 have_ceil=1
28448 done
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; }
28455 else
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
28466 /* confdefs.h. */
28467 _ACEOF
28468 cat confdefs.h >>conftest.$ac_ext
28469 cat >>conftest.$ac_ext <<_ACEOF
28470 /* end confdefs.h. */
28471 #include <sys/time.h>
28473 main ()
28475 struct timeval x;
28477 return 0;
28479 _ACEOF
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;;
28485 esac
28486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28487 (eval "$ac_compile") 2>conftest.er1
28488 ac_status=$?
28489 grep -v '^ *+' conftest.er1 >conftest.err
28490 rm -f conftest.er1
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
28502 _ACEOF
28505 else
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
28518 /* confdefs.h. */
28519 _ACEOF
28520 cat confdefs.h >>conftest.$ac_ext
28521 cat >>conftest.$ac_ext <<_ACEOF
28522 /* end confdefs.h. */
28525 main ()
28527 typedef struct { } junk;
28529 return 0;
28531 _ACEOF
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;;
28537 esac
28538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28539 (eval "$ac_compile") 2>conftest.er1
28540 ac_status=$?
28541 grep -v '^ *+' conftest.er1 >conftest.err
28542 rm -f conftest.er1
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; }
28551 else
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
28558 _ACEOF
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
28570 /* confdefs.h. */
28571 _ACEOF
28572 cat confdefs.h >>conftest.$ac_ext
28573 cat >>conftest.$ac_ext <<_ACEOF
28574 /* end confdefs.h. */
28577 main ()
28579 typedef struct { } __attribute__ ((packed)) junk;
28581 return 0;
28583 _ACEOF
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;;
28589 esac
28590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28591 (eval "$ac_compile") 2>conftest.er1
28592 ac_status=$?
28593 grep -v '^ *+' conftest.er1 >conftest.err
28594 rm -f conftest.er1
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; }
28603 else
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
28612 _ACEOF
28617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28620 ac_ext=cpp
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
28629 /* confdefs.h. */
28630 _ACEOF
28631 cat confdefs.h >>conftest.$ac_ext
28632 cat >>conftest.$ac_ext <<_ACEOF
28633 /* end confdefs.h. */
28634 #include <hash_map>
28636 main ()
28640 return 0;
28642 _ACEOF
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;;
28648 esac
28649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28650 (eval "$ac_compile") 2>conftest.er1
28651 ac_status=$?
28652 grep -v '^ *+' conftest.er1 >conftest.err
28653 rm -f conftest.er1
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
28665 _ACEOF
28668 else
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
28680 /* confdefs.h. */
28681 _ACEOF
28682 cat confdefs.h >>conftest.$ac_ext
28683 cat >>conftest.$ac_ext <<_ACEOF
28684 /* end confdefs.h. */
28685 #include <hash_map.h>
28687 main ()
28691 return 0;
28693 _ACEOF
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;;
28699 esac
28700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28701 (eval "$ac_compile") 2>conftest.er1
28702 ac_status=$?
28703 grep -v '^ *+' conftest.er1 >conftest.err
28704 rm -f conftest.er1
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
28716 _ACEOF
28719 else
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
28731 /* confdefs.h. */
28732 _ACEOF
28733 cat confdefs.h >>conftest.$ac_ext
28734 cat >>conftest.$ac_ext <<_ACEOF
28735 /* end confdefs.h. */
28736 #include <set>
28738 main ()
28742 return 0;
28744 _ACEOF
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;;
28750 esac
28751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28752 (eval "$ac_compile") 2>conftest.er1
28753 ac_status=$?
28754 grep -v '^ *+' conftest.er1 >conftest.err
28755 rm -f conftest.er1
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
28767 _ACEOF
28770 else
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
28782 /* confdefs.h. */
28783 _ACEOF
28784 cat confdefs.h >>conftest.$ac_ext
28785 cat >>conftest.$ac_ext <<_ACEOF
28786 /* end confdefs.h. */
28787 #include <set.h>
28789 main ()
28793 return 0;
28795 _ACEOF
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;;
28801 esac
28802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28803 (eval "$ac_compile") 2>conftest.er1
28804 ac_status=$?
28805 grep -v '^ *+' conftest.er1 >conftest.err
28806 rm -f conftest.er1
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
28818 _ACEOF
28821 else
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
28830 ac_ext=c
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
28843 can_compile_beos=1
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; }
28852 else
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
28857 /* confdefs.h. */
28858 _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>
28864 _ACEOF
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;;
28870 esac
28871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28872 (eval "$ac_compile") 2>conftest.er1
28873 ac_status=$?
28874 grep -v '^ *+' conftest.er1 >conftest.err
28875 rm -f conftest.er1
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
28883 else
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
28898 /* confdefs.h. */
28899 _ACEOF
28900 cat confdefs.h >>conftest.$ac_ext
28901 cat >>conftest.$ac_ext <<_ACEOF
28902 /* end confdefs.h. */
28903 #include <app/Application.h>
28904 _ACEOF
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;;
28909 esac
28910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28911 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28912 ac_status=$?
28913 grep -v '^ *+' conftest.er1 >conftest.err
28914 rm -f conftest.er1
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
28920 }; then
28921 ac_header_preproc=yes
28922 else
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
28935 yes:no: )
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
28942 no: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;}
28957 esac
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
28962 else
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
28971 else
28972 can_compile_beos=0
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; }
28984 else
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
28989 /* confdefs.h. */
28990 _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>
28996 _ACEOF
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;;
29002 esac
29003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29004 (eval "$ac_compile") 2>conftest.er1
29005 ac_status=$?
29006 grep -v '^ *+' conftest.er1 >conftest.err
29007 rm -f conftest.er1
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
29015 else
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
29030 /* confdefs.h. */
29031 _ACEOF
29032 cat confdefs.h >>conftest.$ac_ext
29033 cat >>conftest.$ac_ext <<_ACEOF
29034 /* end confdefs.h. */
29035 #include <interface/Window.h>
29036 _ACEOF
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;;
29041 esac
29042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29043 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29044 ac_status=$?
29045 grep -v '^ *+' conftest.er1 >conftest.err
29046 rm -f conftest.er1
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
29052 }; then
29053 ac_header_preproc=yes
29054 else
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
29067 yes:no: )
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
29074 no: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;}
29089 esac
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
29094 else
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
29103 else
29104 can_compile_beos=0
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; }
29116 else
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
29121 /* confdefs.h. */
29122 _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>
29128 _ACEOF
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;;
29134 esac
29135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29136 (eval "$ac_compile") 2>conftest.er1
29137 ac_status=$?
29138 grep -v '^ *+' conftest.er1 >conftest.err
29139 rm -f conftest.er1
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
29147 else
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
29162 /* confdefs.h. */
29163 _ACEOF
29164 cat confdefs.h >>conftest.$ac_ext
29165 cat >>conftest.$ac_ext <<_ACEOF
29166 /* end confdefs.h. */
29167 #include <interface/View.h>
29168 _ACEOF
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;;
29173 esac
29174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29175 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29176 ac_status=$?
29177 grep -v '^ *+' conftest.er1 >conftest.err
29178 rm -f conftest.er1
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
29184 }; then
29185 ac_header_preproc=yes
29186 else
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
29199 yes:no: )
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
29206 no: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;}
29221 esac
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
29226 else
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
29235 else
29236 can_compile_beos=0
29240 if test $can_compile_beos = 1; then
29241 with_beos=yes
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; }
29255 else
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
29260 /* confdefs.h. */
29261 _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>
29267 _ACEOF
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;;
29273 esac
29274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29275 (eval "$ac_compile") 2>conftest.er1
29276 ac_status=$?
29277 grep -v '^ *+' conftest.er1 >conftest.err
29278 rm -f conftest.er1
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
29286 else
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
29301 /* confdefs.h. */
29302 _ACEOF
29303 cat confdefs.h >>conftest.$ac_ext
29304 cat >>conftest.$ac_ext <<_ACEOF
29305 /* end confdefs.h. */
29306 #include <proto/intuition.h>
29307 _ACEOF
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;;
29312 esac
29313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29314 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29315 ac_status=$?
29316 grep -v '^ *+' conftest.er1 >conftest.err
29317 rm -f conftest.er1
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
29323 }; then
29324 ac_header_preproc=yes
29325 else
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
29338 yes:no: )
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
29345 no: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;}
29360 esac
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
29365 else
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
29374 else
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; }
29387 else
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
29392 /* confdefs.h. */
29393 _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>
29399 _ACEOF
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;;
29405 esac
29406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29407 (eval "$ac_compile") 2>conftest.er1
29408 ac_status=$?
29409 grep -v '^ *+' conftest.er1 >conftest.err
29410 rm -f conftest.er1
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
29418 else
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
29433 /* confdefs.h. */
29434 _ACEOF
29435 cat confdefs.h >>conftest.$ac_ext
29436 cat >>conftest.$ac_ext <<_ACEOF
29437 /* end confdefs.h. */
29438 #include <intuition/intuitionbase.h>
29439 _ACEOF
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;;
29444 esac
29445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29446 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29447 ac_status=$?
29448 grep -v '^ *+' conftest.er1 >conftest.err
29449 rm -f conftest.er1
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
29455 }; then
29456 ac_header_preproc=yes
29457 else
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
29470 yes:no: )
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
29477 no: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;}
29492 esac
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
29497 else
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
29506 else
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; }
29519 else
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
29524 /* confdefs.h. */
29525 _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>
29531 _ACEOF
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;;
29537 esac
29538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29539 (eval "$ac_compile") 2>conftest.er1
29540 ac_status=$?
29541 grep -v '^ *+' conftest.er1 >conftest.err
29542 rm -f conftest.er1
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
29550 else
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
29565 /* confdefs.h. */
29566 _ACEOF
29567 cat confdefs.h >>conftest.$ac_ext
29568 cat >>conftest.$ac_ext <<_ACEOF
29569 /* end confdefs.h. */
29570 #include <cybergraphx/cybergraphics.h>
29571 _ACEOF
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;;
29576 esac
29577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29578 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29579 ac_status=$?
29580 grep -v '^ *+' conftest.er1 >conftest.err
29581 rm -f conftest.er1
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
29587 }; then
29588 ac_header_preproc=yes
29589 else
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
29602 yes:no: )
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
29609 no: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;}
29624 esac
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
29629 else
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
29638 else
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; }
29651 else
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
29656 /* confdefs.h. */
29657 _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>
29663 _ACEOF
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;;
29669 esac
29670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29671 (eval "$ac_compile") 2>conftest.er1
29672 ac_status=$?
29673 grep -v '^ *+' conftest.er1 >conftest.err
29674 rm -f conftest.er1
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
29682 else
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
29697 /* confdefs.h. */
29698 _ACEOF
29699 cat confdefs.h >>conftest.$ac_ext
29700 cat >>conftest.$ac_ext <<_ACEOF
29701 /* end confdefs.h. */
29702 #include <devices/trackdisk.h>
29703 _ACEOF
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;;
29708 esac
29709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29710 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29711 ac_status=$?
29712 grep -v '^ *+' conftest.er1 >conftest.err
29713 rm -f conftest.er1
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
29719 }; then
29720 ac_header_preproc=yes
29721 else
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
29734 yes:no: )
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
29741 no: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;}
29756 esac
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
29761 else
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
29770 else
29771 can_compile_amigaos=0
29775 if test $can_compile_amigaos = 1; then
29776 with_amigaos=yes
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; }
29790 else
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
29795 /* confdefs.h. */
29796 _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>
29802 _ACEOF
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;;
29808 esac
29809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29810 (eval "$ac_compile") 2>conftest.er1
29811 ac_status=$?
29812 grep -v '^ *+' conftest.er1 >conftest.err
29813 rm -f conftest.er1
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
29821 else
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
29836 /* confdefs.h. */
29837 _ACEOF
29838 cat confdefs.h >>conftest.$ac_ext
29839 cat >>conftest.$ac_ext <<_ACEOF
29840 /* end confdefs.h. */
29841 #include <Quickdraw.h>
29842 _ACEOF
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;;
29847 esac
29848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29849 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29850 ac_status=$?
29851 grep -v '^ *+' conftest.er1 >conftest.err
29852 rm -f conftest.er1
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
29858 }; then
29859 ac_header_preproc=yes
29860 else
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
29873 yes:no: )
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
29880 no: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;}
29895 esac
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
29900 else
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
29909 else
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; }
29922 else
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
29927 /* confdefs.h. */
29928 _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>
29934 _ACEOF
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;;
29940 esac
29941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29942 (eval "$ac_compile") 2>conftest.er1
29943 ac_status=$?
29944 grep -v '^ *+' conftest.er1 >conftest.err
29945 rm -f conftest.er1
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
29953 else
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
29968 /* confdefs.h. */
29969 _ACEOF
29970 cat confdefs.h >>conftest.$ac_ext
29971 cat >>conftest.$ac_ext <<_ACEOF
29972 /* end confdefs.h. */
29973 #include <Dialogs.h>
29974 _ACEOF
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;;
29979 esac
29980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29981 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29982 ac_status=$?
29983 grep -v '^ *+' conftest.er1 >conftest.err
29984 rm -f conftest.er1
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
29990 }; then
29991 ac_header_preproc=yes
29992 else
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
30005 yes:no: )
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
30012 no: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;}
30027 esac
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
30032 else
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
30041 else
30042 can_compile_macos=0
30046 if test $can_compile_macos = 1; then
30047 with_macos=yes
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; }
30061 else
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
30066 /* confdefs.h. */
30067 _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>
30073 _ACEOF
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;;
30079 esac
30080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30081 (eval "$ac_compile") 2>conftest.er1
30082 ac_status=$?
30083 grep -v '^ *+' conftest.er1 >conftest.err
30084 rm -f conftest.er1
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
30092 else
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
30107 /* confdefs.h. */
30108 _ACEOF
30109 cat confdefs.h >>conftest.$ac_ext
30110 cat >>conftest.$ac_ext <<_ACEOF
30111 /* end confdefs.h. */
30112 #include <Carbon.h>
30113 _ACEOF
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;;
30118 esac
30119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30120 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30121 ac_status=$?
30122 grep -v '^ *+' conftest.er1 >conftest.err
30123 rm -f conftest.er1
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
30129 }; then
30130 ac_header_preproc=yes
30131 else
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
30144 yes:no: )
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
30151 no: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;}
30166 esac
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
30171 else
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
30180 else
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; }
30193 else
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
30198 /* confdefs.h. */
30199 _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>
30205 _ACEOF
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;;
30211 esac
30212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30213 (eval "$ac_compile") 2>conftest.er1
30214 ac_status=$?
30215 grep -v '^ *+' conftest.er1 >conftest.err
30216 rm -f conftest.er1
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
30224 else
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
30239 /* confdefs.h. */
30240 _ACEOF
30241 cat confdefs.h >>conftest.$ac_ext
30242 cat >>conftest.$ac_ext <<_ACEOF
30243 /* end confdefs.h. */
30244 #include <ApplicationServices/ApplicationServices.h>
30245 _ACEOF
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;;
30250 esac
30251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30252 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30253 ac_status=$?
30254 grep -v '^ *+' conftest.er1 >conftest.err
30255 rm -f conftest.er1
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
30261 }; then
30262 ac_header_preproc=yes
30263 else
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
30276 yes:no: )
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
30283 no: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;}
30298 esac
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
30303 else
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
30312 else
30313 can_compile_carbon=0
30317 if test $can_compile_carbon = 1; then
30318 with_carbon=yes
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; }
30332 else
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
30337 /* confdefs.h. */
30338 _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>
30344 _ACEOF
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;;
30350 esac
30351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30352 (eval "$ac_compile") 2>conftest.er1
30353 ac_status=$?
30354 grep -v '^ *+' conftest.er1 >conftest.err
30355 rm -f conftest.er1
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
30363 else
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
30378 /* confdefs.h. */
30379 _ACEOF
30380 cat confdefs.h >>conftest.$ac_ext
30381 cat >>conftest.$ac_ext <<_ACEOF
30382 /* end confdefs.h. */
30383 #include <windows.h>
30384 _ACEOF
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;;
30389 esac
30390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30391 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30392 ac_status=$?
30393 grep -v '^ *+' conftest.er1 >conftest.err
30394 rm -f conftest.er1
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
30400 }; then
30401 ac_header_preproc=yes
30402 else
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
30415 yes:no: )
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
30422 no: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;}
30437 esac
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
30442 else
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
30451 else
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; }
30464 else
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
30469 /* confdefs.h. */
30470 _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>
30476 _ACEOF
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;;
30482 esac
30483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30484 (eval "$ac_compile") 2>conftest.er1
30485 ac_status=$?
30486 grep -v '^ *+' conftest.er1 >conftest.err
30487 rm -f conftest.er1
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
30495 else
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
30510 /* confdefs.h. */
30511 _ACEOF
30512 cat confdefs.h >>conftest.$ac_ext
30513 cat >>conftest.$ac_ext <<_ACEOF
30514 /* end confdefs.h. */
30515 #include <commctrl.h>
30516 _ACEOF
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;;
30521 esac
30522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30523 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30524 ac_status=$?
30525 grep -v '^ *+' conftest.er1 >conftest.err
30526 rm -f conftest.er1
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
30532 }; then
30533 ac_header_preproc=yes
30534 else
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
30547 yes:no: )
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
30554 no: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;}
30569 esac
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
30574 else
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
30583 else
30584 can_compile_win32=0
30588 if test $can_compile_win32 = 1; then
30589 with_win32=yes
30593 if test "$with_sdl" != yes; then
30594 can_compile_sdl=1
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; }
30603 else
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
30608 /* confdefs.h. */
30609 _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>
30615 _ACEOF
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;;
30621 esac
30622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30623 (eval "$ac_compile") 2>conftest.er1
30624 ac_status=$?
30625 grep -v '^ *+' conftest.er1 >conftest.err
30626 rm -f conftest.er1
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
30634 else
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
30649 /* confdefs.h. */
30650 _ACEOF
30651 cat confdefs.h >>conftest.$ac_ext
30652 cat >>conftest.$ac_ext <<_ACEOF
30653 /* end confdefs.h. */
30654 #include <SDL/SDL.h>
30655 _ACEOF
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;;
30660 esac
30661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30662 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30663 ac_status=$?
30664 grep -v '^ *+' conftest.er1 >conftest.err
30665 rm -f conftest.er1
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
30671 }; then
30672 ac_header_preproc=yes
30673 else
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
30686 yes:no: )
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
30693 no: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;}
30708 esac
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
30713 else
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
30722 else
30723 can_compile_sdl=0
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; }
30735 else
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
30740 /* confdefs.h. */
30741 _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>
30747 _ACEOF
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;;
30753 esac
30754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30755 (eval "$ac_compile") 2>conftest.er1
30756 ac_status=$?
30757 grep -v '^ *+' conftest.er1 >conftest.err
30758 rm -f conftest.er1
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
30766 else
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
30781 /* confdefs.h. */
30782 _ACEOF
30783 cat confdefs.h >>conftest.$ac_ext
30784 cat >>conftest.$ac_ext <<_ACEOF
30785 /* end confdefs.h. */
30786 #include <SDL/SDL_main.h>
30787 _ACEOF
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;;
30792 esac
30793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30794 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30795 ac_status=$?
30796 grep -v '^ *+' conftest.er1 >conftest.err
30797 rm -f conftest.er1
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
30803 }; then
30804 ac_header_preproc=yes
30805 else
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
30818 yes:no: )
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
30825 no: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;}
30840 esac
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
30845 else
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
30854 else
30855 can_compile_sdl=0
30859 if test $can_compile_sdl = 1; then
30860 with_sdl=yes
30864 if test "$with_svga" != yes; then
30865 can_compile_svga=1
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; }
30874 else
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
30879 /* confdefs.h. */
30880 _ACEOF
30881 cat confdefs.h >>conftest.$ac_ext
30882 cat >>conftest.$ac_ext <<_ACEOF
30883 /* end confdefs.h. */
30884 $ac_includes_default
30885 #include <vga.h>
30886 _ACEOF
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;;
30892 esac
30893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30894 (eval "$ac_compile") 2>conftest.er1
30895 ac_status=$?
30896 grep -v '^ *+' conftest.er1 >conftest.err
30897 rm -f conftest.er1
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
30905 else
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
30920 /* confdefs.h. */
30921 _ACEOF
30922 cat confdefs.h >>conftest.$ac_ext
30923 cat >>conftest.$ac_ext <<_ACEOF
30924 /* end confdefs.h. */
30925 #include <vga.h>
30926 _ACEOF
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;;
30931 esac
30932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30933 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30934 ac_status=$?
30935 grep -v '^ *+' conftest.er1 >conftest.err
30936 rm -f conftest.er1
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
30942 }; then
30943 ac_header_preproc=yes
30944 else
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
30957 yes:no: )
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
30964 no: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;}
30979 esac
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
30984 else
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
30993 else
30994 can_compile_svga=0
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; }
31006 else
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
31011 /* confdefs.h. */
31012 _ACEOF
31013 cat confdefs.h >>conftest.$ac_ext
31014 cat >>conftest.$ac_ext <<_ACEOF
31015 /* end confdefs.h. */
31016 $ac_includes_default
31017 #include <vgagl.h>
31018 _ACEOF
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;;
31024 esac
31025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31026 (eval "$ac_compile") 2>conftest.er1
31027 ac_status=$?
31028 grep -v '^ *+' conftest.er1 >conftest.err
31029 rm -f conftest.er1
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
31037 else
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
31052 /* confdefs.h. */
31053 _ACEOF
31054 cat confdefs.h >>conftest.$ac_ext
31055 cat >>conftest.$ac_ext <<_ACEOF
31056 /* end confdefs.h. */
31057 #include <vgagl.h>
31058 _ACEOF
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;;
31063 esac
31064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31065 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31066 ac_status=$?
31067 grep -v '^ *+' conftest.er1 >conftest.err
31068 rm -f conftest.er1
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
31074 }; then
31075 ac_header_preproc=yes
31076 else
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
31089 yes:no: )
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
31096 no: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;}
31111 esac
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
31116 else
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
31125 else
31126 can_compile_svga=0
31130 if test $can_compile_svga = 1; then
31131 with_svga=yes
31135 if test "$with_x11" != yes; then
31136 can_compile_x11=1
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; }
31145 else
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
31150 /* confdefs.h. */
31151 _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>
31157 _ACEOF
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;;
31163 esac
31164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31165 (eval "$ac_compile") 2>conftest.er1
31166 ac_status=$?
31167 grep -v '^ *+' conftest.er1 >conftest.err
31168 rm -f conftest.er1
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
31176 else
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
31191 /* confdefs.h. */
31192 _ACEOF
31193 cat confdefs.h >>conftest.$ac_ext
31194 cat >>conftest.$ac_ext <<_ACEOF
31195 /* end confdefs.h. */
31196 #include <X11/Xlib.h>
31197 _ACEOF
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;;
31202 esac
31203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31204 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31205 ac_status=$?
31206 grep -v '^ *+' conftest.er1 >conftest.err
31207 rm -f conftest.er1
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
31213 }; then
31214 ac_header_preproc=yes
31215 else
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
31228 yes:no: )
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
31235 no: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;}
31250 esac
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
31255 else
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
31264 else
31265 can_compile_x11=0
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; }
31277 else
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
31282 /* confdefs.h. */
31283 _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>
31289 _ACEOF
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;;
31295 esac
31296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31297 (eval "$ac_compile") 2>conftest.er1
31298 ac_status=$?
31299 grep -v '^ *+' conftest.er1 >conftest.err
31300 rm -f conftest.er1
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
31308 else
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
31323 /* confdefs.h. */
31324 _ACEOF
31325 cat confdefs.h >>conftest.$ac_ext
31326 cat >>conftest.$ac_ext <<_ACEOF
31327 /* end confdefs.h. */
31328 #include <X11/Xutil.h>
31329 _ACEOF
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;;
31334 esac
31335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31336 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31337 ac_status=$?
31338 grep -v '^ *+' conftest.er1 >conftest.err
31339 rm -f conftest.er1
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
31345 }; then
31346 ac_header_preproc=yes
31347 else
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
31360 yes:no: )
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
31367 no: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;}
31382 esac
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
31387 else
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
31396 else
31397 can_compile_x11=0
31401 if test $can_compile_x11 = 1; then
31402 with_x11=yes
31406 if test "$with_rfb" != yes; then
31407 can_compile_rfb=1
31408 case $target in
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; }
31418 else
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
31423 /* confdefs.h. */
31424 _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>
31430 _ACEOF
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;;
31436 esac
31437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31438 (eval "$ac_compile") 2>conftest.er1
31439 ac_status=$?
31440 grep -v '^ *+' conftest.er1 >conftest.err
31441 rm -f conftest.er1
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
31449 else
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
31464 /* confdefs.h. */
31465 _ACEOF
31466 cat confdefs.h >>conftest.$ac_ext
31467 cat >>conftest.$ac_ext <<_ACEOF
31468 /* end confdefs.h. */
31469 #include <winsock.h>
31470 _ACEOF
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;;
31475 esac
31476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31477 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31478 ac_status=$?
31479 grep -v '^ *+' conftest.er1 >conftest.err
31480 rm -f conftest.er1
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
31486 }; then
31487 ac_header_preproc=yes
31488 else
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
31501 yes:no: )
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
31508 no: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;}
31523 esac
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
31528 else
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
31537 else
31538 can_compile_rfb=0
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; }
31550 else
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
31555 /* confdefs.h. */
31556 _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>
31562 _ACEOF
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;;
31568 esac
31569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31570 (eval "$ac_compile") 2>conftest.er1
31571 ac_status=$?
31572 grep -v '^ *+' conftest.er1 >conftest.err
31573 rm -f conftest.er1
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
31581 else
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
31596 /* confdefs.h. */
31597 _ACEOF
31598 cat confdefs.h >>conftest.$ac_ext
31599 cat >>conftest.$ac_ext <<_ACEOF
31600 /* end confdefs.h. */
31601 #include <process.h>
31602 _ACEOF
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;;
31607 esac
31608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31609 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31610 ac_status=$?
31611 grep -v '^ *+' conftest.er1 >conftest.err
31612 rm -f conftest.er1
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
31618 }; then
31619 ac_header_preproc=yes
31620 else
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
31633 yes:no: )
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
31640 no: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;}
31655 esac
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
31660 else
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
31669 else
31670 can_compile_rfb=0
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; }
31684 else
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
31689 /* confdefs.h. */
31690 _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>
31696 _ACEOF
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;;
31702 esac
31703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31704 (eval "$ac_compile") 2>conftest.er1
31705 ac_status=$?
31706 grep -v '^ *+' conftest.er1 >conftest.err
31707 rm -f conftest.er1
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
31715 else
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
31730 /* confdefs.h. */
31731 _ACEOF
31732 cat confdefs.h >>conftest.$ac_ext
31733 cat >>conftest.$ac_ext <<_ACEOF
31734 /* end confdefs.h. */
31735 #include <sys/socket.h>
31736 _ACEOF
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;;
31741 esac
31742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31743 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31744 ac_status=$?
31745 grep -v '^ *+' conftest.er1 >conftest.err
31746 rm -f conftest.er1
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
31752 }; then
31753 ac_header_preproc=yes
31754 else
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
31767 yes:no: )
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
31774 no: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;}
31789 esac
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
31794 else
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
31803 else
31804 can_compile_rfb=0
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; }
31816 else
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
31821 /* confdefs.h. */
31822 _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>
31828 _ACEOF
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;;
31834 esac
31835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31836 (eval "$ac_compile") 2>conftest.er1
31837 ac_status=$?
31838 grep -v '^ *+' conftest.er1 >conftest.err
31839 rm -f conftest.er1
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
31847 else
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
31862 /* confdefs.h. */
31863 _ACEOF
31864 cat confdefs.h >>conftest.$ac_ext
31865 cat >>conftest.$ac_ext <<_ACEOF
31866 /* end confdefs.h. */
31867 #include <netinet/tcp.h>
31868 _ACEOF
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;;
31873 esac
31874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31875 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31876 ac_status=$?
31877 grep -v '^ *+' conftest.er1 >conftest.err
31878 rm -f conftest.er1
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
31884 }; then
31885 ac_header_preproc=yes
31886 else
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
31899 yes:no: )
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
31906 no: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;}
31921 esac
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
31926 else
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
31935 else
31936 can_compile_rfb=0
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; }
31948 else
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
31953 /* confdefs.h. */
31954 _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>
31960 _ACEOF
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;;
31966 esac
31967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31968 (eval "$ac_compile") 2>conftest.er1
31969 ac_status=$?
31970 grep -v '^ *+' conftest.er1 >conftest.err
31971 rm -f conftest.er1
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
31979 else
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
31994 /* confdefs.h. */
31995 _ACEOF
31996 cat confdefs.h >>conftest.$ac_ext
31997 cat >>conftest.$ac_ext <<_ACEOF
31998 /* end confdefs.h. */
31999 #include <pthread.h>
32000 _ACEOF
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;;
32005 esac
32006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32007 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32008 ac_status=$?
32009 grep -v '^ *+' conftest.er1 >conftest.err
32010 rm -f conftest.er1
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
32016 }; then
32017 ac_header_preproc=yes
32018 else
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
32031 yes:no: )
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
32038 no: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;}
32053 esac
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
32058 else
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
32067 else
32068 can_compile_rfb=0
32073 esac
32074 if test $can_compile_rfb = 1; then
32075 with_rfb=yes
32079 if test "$with_term" != yes; then
32080 can_compile_term=1
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; }
32089 else
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
32094 /* confdefs.h. */
32095 _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>
32101 _ACEOF
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;;
32107 esac
32108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32109 (eval "$ac_compile") 2>conftest.er1
32110 ac_status=$?
32111 grep -v '^ *+' conftest.er1 >conftest.err
32112 rm -f conftest.er1
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
32120 else
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
32135 /* confdefs.h. */
32136 _ACEOF
32137 cat confdefs.h >>conftest.$ac_ext
32138 cat >>conftest.$ac_ext <<_ACEOF
32139 /* end confdefs.h. */
32140 #include <curses.h>
32141 _ACEOF
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;;
32146 esac
32147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32148 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32149 ac_status=$?
32150 grep -v '^ *+' conftest.er1 >conftest.err
32151 rm -f conftest.er1
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
32157 }; then
32158 ac_header_preproc=yes
32159 else
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
32172 yes:no: )
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
32179 no: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;}
32194 esac
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
32199 else
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
32208 else
32209 can_compile_term=0
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; }
32221 else
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
32226 /* confdefs.h. */
32227 _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>
32233 _ACEOF
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;;
32239 esac
32240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32241 (eval "$ac_compile") 2>conftest.er1
32242 ac_status=$?
32243 grep -v '^ *+' conftest.er1 >conftest.err
32244 rm -f conftest.er1
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
32252 else
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
32267 /* confdefs.h. */
32268 _ACEOF
32269 cat confdefs.h >>conftest.$ac_ext
32270 cat >>conftest.$ac_ext <<_ACEOF
32271 /* end confdefs.h. */
32272 #include <signal.h>
32273 _ACEOF
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;;
32278 esac
32279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32280 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32281 ac_status=$?
32282 grep -v '^ *+' conftest.er1 >conftest.err
32283 rm -f conftest.er1
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
32289 }; then
32290 ac_header_preproc=yes
32291 else
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
32304 yes:no: )
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
32311 no: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;}
32326 esac
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
32331 else
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
32340 else
32341 can_compile_term=0
32345 if test $can_compile_term = 1; then
32346 with_term=yes
32350 if test "$with_nogui" != yes; then
32351 with_nogui=yes
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
32364 _ACEOF
32366 else
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
32371 _ACEOF
32374 else
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
32380 _ACEOF
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; }
32396 else
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
32401 /* confdefs.h. */
32402 _ACEOF
32403 cat confdefs.h >>conftest.$ac_ext
32404 cat >>conftest.$ac_ext <<_ACEOF
32405 /* end confdefs.h. */
32406 $ac_includes_default
32407 #include <dlfcn.h>
32408 _ACEOF
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;;
32414 esac
32415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32416 (eval "$ac_compile") 2>conftest.er1
32417 ac_status=$?
32418 grep -v '^ *+' conftest.er1 >conftest.err
32419 rm -f conftest.er1
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
32427 else
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
32442 /* confdefs.h. */
32443 _ACEOF
32444 cat confdefs.h >>conftest.$ac_ext
32445 cat >>conftest.$ac_ext <<_ACEOF
32446 /* end confdefs.h. */
32447 #include <dlfcn.h>
32448 _ACEOF
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;;
32453 esac
32454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32455 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32456 ac_status=$?
32457 grep -v '^ *+' conftest.er1 >conftest.err
32458 rm -f conftest.er1
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
32464 }; then
32465 ac_header_preproc=yes
32466 else
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
32479 yes:no: )
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
32486 no: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;}
32501 esac
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
32506 else
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
32516 _ACEOF
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; }
32529 else
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
32534 /* confdefs.h. */
32535 _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>
32541 _ACEOF
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;;
32547 esac
32548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32549 (eval "$ac_compile") 2>conftest.er1
32550 ac_status=$?
32551 grep -v '^ *+' conftest.er1 >conftest.err
32552 rm -f conftest.er1
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
32560 else
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
32575 /* confdefs.h. */
32576 _ACEOF
32577 cat confdefs.h >>conftest.$ac_ext
32578 cat >>conftest.$ac_ext <<_ACEOF
32579 /* end confdefs.h. */
32580 #include <assert.h>
32581 _ACEOF
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;;
32586 esac
32587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32588 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32589 ac_status=$?
32590 grep -v '^ *+' conftest.er1 >conftest.err
32591 rm -f conftest.er1
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
32597 }; then
32598 ac_header_preproc=yes
32599 else
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
32612 yes:no: )
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
32619 no: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;}
32634 esac
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
32639 else
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
32649 _ACEOF
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
32660 bx_plugins=1
32661 else
32662 bx_plugins=0
32664 else
32666 bx_plugins=0
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
32677 _ACEOF
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=''
32689 else
32690 { echo "$as_me:$LINENO: result: no" >&5
32691 echo "${ECHO_T}no" >&6; }
32692 bx_plugins=0
32693 cat >>confdefs.h <<\_ACEOF
32694 #define BX_PLUGINS 0
32695 _ACEOF
32697 GUI_NON_PLUGIN_OBJS='$(OBJS_THAT_CANNOT_BE_PLUGINS) $(OBJS_THAT_CAN_BE_PLUGINS) $(OBJS_THAT_SUPPORT_OTHER_PLUGINS)'
32698 GUI_PLUGIN_OBJS=''
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
32712 have_dlopen=0
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
32717 else
32718 ac_check_lib_save_LIBS=$LIBS
32719 LIBS="-ldl $LIBS"
32720 cat >conftest.$ac_ext <<_ACEOF
32721 /* confdefs.h. */
32722 _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. */
32730 #ifdef __cplusplus
32731 extern "C"
32732 #endif
32733 char dlopen ();
32735 main ()
32737 return dlopen ();
32739 return 0;
32741 _ACEOF
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;;
32747 esac
32748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32749 (eval "$ac_link") 2>conftest.er1
32750 ac_status=$?
32751 grep -v '^ *+' conftest.er1 >conftest.err
32752 rm -f conftest.er1
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
32761 else
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
32775 have_dlopen=1
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; }; }
32786 else
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
32795 /* confdefs.h. */
32796 _ACEOF
32797 cat confdefs.h >>conftest.$ac_ext
32798 cat >>conftest.$ac_ext <<_ACEOF
32799 /* end confdefs.h. */
32802 main ()
32804 { label1: }
32806 return 0;
32808 _ACEOF
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;;
32814 esac
32815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32816 (eval "$ac_compile") 2>conftest.er1
32817 ac_status=$?
32818 grep -v '^ *+' conftest.er1 >conftest.err
32819 rm -f conftest.er1
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; }
32828 else
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
32837 _ACEOF
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
32847 /* confdefs.h. */
32848 _ACEOF
32849 cat confdefs.h >>conftest.$ac_ext
32850 cat >>conftest.$ac_ext <<_ACEOF
32851 /* end confdefs.h. */
32854 main ()
32856 { 42LL; }
32858 return 0;
32860 _ACEOF
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;;
32866 esac
32867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32868 (eval "$ac_compile") 2>conftest.er1
32869 ac_status=$?
32870 grep -v '^ *+' conftest.er1 >conftest.err
32871 rm -f conftest.er1
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; }
32880 else
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
32889 _ACEOF
32894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32896 use_x86_64=0
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; }
32904 OBJS64='$(OBJS64)'
32905 cat >>confdefs.h <<\_ACEOF
32906 #define BX_SUPPORT_X86_64 1
32907 _ACEOF
32909 use_x86_64=1
32910 else
32911 { echo "$as_me:$LINENO: result: no" >&5
32912 echo "${ECHO_T}no" >&6; }
32913 OBJS64=''
32914 cat >>confdefs.h <<\_ACEOF
32915 #define BX_SUPPORT_X86_64 0
32916 _ACEOF
32920 else
32922 { echo "$as_me:$LINENO: result: no" >&5
32923 echo "${ECHO_T}no" >&6; }
32924 OBJS64=''
32925 cat >>confdefs.h <<\_ACEOF
32926 #define BX_SUPPORT_X86_64 0
32927 _ACEOF
32935 use_smp=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
32945 _ACEOF
32947 cat >>confdefs.h <<\_ACEOF
32948 #define BX_USE_CPU_SMF 0
32949 _ACEOF
32951 use_smp=1
32952 else
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
32957 _ACEOF
32961 else
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
32967 _ACEOF
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
32984 _ACEOF
32986 cat >>confdefs.h <<\_ACEOF
32987 #define BX_CPU_LEVEL_HACKED 3
32988 _ACEOF
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
32996 _ACEOF
32998 cat >>confdefs.h <<\_ACEOF
32999 #define BX_CPU_LEVEL_HACKED 4
33000 _ACEOF
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
33008 _ACEOF
33010 cat >>confdefs.h <<\_ACEOF
33011 #define BX_CPU_LEVEL_HACKED 5
33012 _ACEOF
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
33020 _ACEOF
33022 cat >>confdefs.h <<\_ACEOF
33023 #define BX_CPU_LEVEL_HACKED 6
33024 _ACEOF
33028 echo " "
33029 echo "ERROR: you must supply a valid CPU level to --enable-cpu-level"
33030 exit 1
33032 esac
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"
33036 exit 1
33039 else
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
33047 _ACEOF
33049 cat >>confdefs.h <<\_ACEOF
33050 #define BX_CPU_LEVEL_HACKED 6
33051 _ACEOF
33053 bx_cpu_level=6
33054 else
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
33059 _ACEOF
33061 cat >>confdefs.h <<\_ACEOF
33062 #define BX_CPU_LEVEL_HACKED 5
33063 _ACEOF
33065 bx_cpu_level=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
33082 _ACEOF
33084 IOAPIC_OBJS='ioapic.o'
33085 else
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"
33090 exit 1
33092 cat >>confdefs.h <<\_ACEOF
33093 #define BX_SUPPORT_APIC 0
33094 _ACEOF
33096 IOAPIC_OBJS=''
33099 else
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
33107 _ACEOF
33109 IOAPIC_OBJS='ioapic.o'
33110 else
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
33115 _ACEOF
33117 IOAPIC_OBJS=''
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; }
33133 else
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
33138 /* confdefs.h. */
33139 _ACEOF
33140 cat confdefs.h >>conftest.$ac_ext
33141 cat >>conftest.$ac_ext <<_ACEOF
33142 /* end confdefs.h. */
33143 $ac_includes_default
33144 #include <zlib.h>
33145 _ACEOF
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;;
33151 esac
33152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33153 (eval "$ac_compile") 2>conftest.er1
33154 ac_status=$?
33155 grep -v '^ *+' conftest.er1 >conftest.err
33156 rm -f conftest.er1
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
33164 else
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
33179 /* confdefs.h. */
33180 _ACEOF
33181 cat confdefs.h >>conftest.$ac_ext
33182 cat >>conftest.$ac_ext <<_ACEOF
33183 /* end confdefs.h. */
33184 #include <zlib.h>
33185 _ACEOF
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;;
33190 esac
33191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33192 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33193 ac_status=$?
33194 grep -v '^ *+' conftest.er1 >conftest.err
33195 rm -f conftest.er1
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
33201 }; then
33202 ac_header_preproc=yes
33203 else
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
33216 yes:no: )
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
33223 no: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;}
33238 esac
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
33243 else
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
33255 else
33256 ac_check_lib_save_LIBS=$LIBS
33257 LIBS="-lz $LIBS"
33258 cat >conftest.$ac_ext <<_ACEOF
33259 /* confdefs.h. */
33260 _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. */
33268 #ifdef __cplusplus
33269 extern "C"
33270 #endif
33271 char gzopen ();
33273 main ()
33275 return gzopen ();
33277 return 0;
33279 _ACEOF
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;;
33285 esac
33286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33287 (eval "$ac_link") 2>conftest.er1
33288 ac_status=$?
33289 grep -v '^ *+' conftest.er1 >conftest.err
33290 rm -f conftest.er1
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
33299 else
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
33315 _ACEOF
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
33332 _ACEOF
33334 LIBS="$LIBS -lz"
33335 else
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
33340 _ACEOF
33343 else
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
33349 _ACEOF
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
33366 _ACEOF
33368 NE2K_OBJS='ne2k.o'
33369 networking=yes
33370 else
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
33375 _ACEOF
33377 NE2K_OBJS=''
33378 networking=no
33380 else
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
33386 _ACEOF
33388 NE2K_OBJS=''
33389 networking=no
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
33405 _ACEOF
33407 else
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
33412 _ACEOF
33415 else
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
33421 _ACEOF
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
33438 _ACEOF
33440 pci=1
33441 PCI_OBJ='pci.o pci2isa.o pci_ide.o pcivga.o acpi.o'
33442 else
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
33447 _ACEOF
33449 pci=0
33450 PCI_OBJ=''
33452 else
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
33458 _ACEOF
33460 pci=0
33461 PCI_OBJ=''
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; }; }
33484 case "$target" in
33485 *-linux*)
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
33490 2.4*)
33491 PCIDEV_MODULE_MAKE_ALL="all-kernel24"
33492 KERNEL_MODULE_SUFFIX="o"
33494 2.6*)
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; }; }
33503 esac
33504 KERNELDIR="/lib/modules/$linux_version/build"
33505 LSMOD="lsmod"
33506 INSMOD="insmod"
33507 RMMOD="rmmod"
33508 DEPMOD="depmod"
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; }; }
33522 esac
33523 cat >>confdefs.h <<\_ACEOF
33524 #define BX_SUPPORT_PCIDEV 1
33525 _ACEOF
33527 PCI_OBJ="$PCI_OBJ pcidev.o"
33528 else
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
33533 _ACEOF
33537 else
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
33543 _ACEOF
33550 USBDEV_OBJS=''
33551 SCSI_OBJS=''
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
33561 _ACEOF
33563 PCI_OBJ="$PCI_OBJ pciusb.o"
33564 USBDEV_OBJS="usb_hid.o usb_msd.o"
33565 SCSI_OBJS="scsi_device.o"
33566 else
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
33571 _ACEOF
33574 else
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
33580 _ACEOF
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
33599 _ACEOF
33601 PCI_OBJ="$PCI_OBJ pcipnic.o"
33602 networking=yes
33603 else
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
33608 _ACEOF
33611 else
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
33617 _ACEOF
33624 NETLOW_OBJS=''
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; }
33635 else
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
33640 /* confdefs.h. */
33641 _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>
33647 _ACEOF
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;;
33653 esac
33654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33655 (eval "$ac_compile") 2>conftest.er1
33656 ac_status=$?
33657 grep -v '^ *+' conftest.er1 >conftest.err
33658 rm -f conftest.er1
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
33666 else
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
33681 /* confdefs.h. */
33682 _ACEOF
33683 cat confdefs.h >>conftest.$ac_ext
33684 cat >>conftest.$ac_ext <<_ACEOF
33685 /* end confdefs.h. */
33686 #include <net/bpf.h>
33687 _ACEOF
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;;
33692 esac
33693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33694 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33695 ac_status=$?
33696 grep -v '^ *+' conftest.er1 >conftest.err
33697 rm -f conftest.er1
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
33703 }; then
33704 ac_header_preproc=yes
33705 else
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
33718 yes:no: )
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
33725 no: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;}
33740 esac
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
33745 else
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; }
33765 else
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
33770 /* confdefs.h. */
33771 _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>
33777 _ACEOF
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;;
33783 esac
33784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33785 (eval "$ac_compile") 2>conftest.er1
33786 ac_status=$?
33787 grep -v '^ *+' conftest.er1 >conftest.err
33788 rm -f conftest.er1
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
33796 else
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
33811 /* confdefs.h. */
33812 _ACEOF
33813 cat confdefs.h >>conftest.$ac_ext
33814 cat >>conftest.$ac_ext <<_ACEOF
33815 /* end confdefs.h. */
33816 #include <netpacket/packet.h>
33817 _ACEOF
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;;
33822 esac
33823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33824 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33825 ac_status=$?
33826 grep -v '^ *+' conftest.er1 >conftest.err
33827 rm -f conftest.er1
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
33833 }; then
33834 ac_header_preproc=yes
33835 else
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
33848 yes:no: )
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
33855 no: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;}
33870 esac
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
33875 else
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"
33887 case "$target" in
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
33895 _ACEOF
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
33903 else
33904 cat >conftest.$ac_ext <<_ACEOF
33905 /* confdefs.h. */
33906 _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>
33916 _ACEOF
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;;
33922 esac
33923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33924 (eval "$ac_compile") 2>conftest.er1
33925 ac_status=$?
33926 grep -v '^ *+' conftest.er1 >conftest.err
33927 rm -f conftest.er1
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
33935 else
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
33948 use_ethertap=yes
33949 cat >>confdefs.h <<\_ACEOF
33950 #define BX_HAVE_NET_IF_H 1
33951 _ACEOF
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
33961 else
33962 cat >conftest.$ac_ext <<_ACEOF
33963 /* confdefs.h. */
33964 _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>
33974 _ACEOF
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;;
33980 esac
33981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33982 (eval "$ac_compile") 2>conftest.er1
33983 ac_status=$?
33984 grep -v '^ *+' conftest.er1 >conftest.err
33985 rm -f conftest.er1
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
33993 else
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
34006 use_ethertap=yes
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
34016 _ACEOF
34018 cat >>confdefs.h <<\_ACEOF
34019 #define HAVE_VDE 1
34020 _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
34028 else
34029 cat >conftest.$ac_ext <<_ACEOF
34030 /* confdefs.h. */
34031 _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>
34042 _ACEOF
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;;
34048 esac
34049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34050 (eval "$ac_compile") 2>conftest.er1
34051 ac_status=$?
34052 grep -v '^ *+' conftest.er1 >conftest.err
34053 rm -f conftest.er1
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
34061 else
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
34074 use_tuntap=yes
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
34083 else
34084 cat >conftest.$ac_ext <<_ACEOF
34085 /* confdefs.h. */
34086 _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>
34096 _ACEOF
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;;
34102 esac
34103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34104 (eval "$ac_compile") 2>conftest.er1
34105 ac_status=$?
34106 grep -v '^ *+' conftest.er1 >conftest.err
34107 rm -f conftest.er1
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
34115 else
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
34128 use_tuntap=yes
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
34137 _ACEOF
34142 esac
34143 cat >>confdefs.h <<\_ACEOF
34144 #define BX_NETWORKING 1
34145 _ACEOF
34147 else
34148 cat >>confdefs.h <<\_ACEOF
34149 #define BX_NETWORKING 0
34150 _ACEOF
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
34166 _ACEOF
34168 support_large_pages=1
34169 else
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
34174 _ACEOF
34176 support_large_pages=0
34178 else
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
34185 _ACEOF
34187 support_large_pages=1
34188 else
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
34193 _ACEOF
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
34212 _ACEOF
34214 support_pae=1
34215 else
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
34220 _ACEOF
34222 support_pae=0
34224 else
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
34231 _ACEOF
34233 support_pae=1
34234 else
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
34239 _ACEOF
34241 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
34257 _ACEOF
34259 support_global_pages=1
34260 else
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
34265 _ACEOF
34267 support_global_pages=0
34269 else
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
34277 _ACEOF
34279 support_global_pages=1
34280 else
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
34285 _ACEOF
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
34321 _ACEOF
34323 else
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
34328 _ACEOF
34331 else
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
34339 _ACEOF
34341 else
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
34346 _ACEOF
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
34362 else
34363 { echo "$as_me:$LINENO: result: no" >&5
34364 echo "${ECHO_T}no" >&6; }
34365 speedup_guest2host_tlb=0
34367 else
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; }
34384 speedup_repeat=1
34385 else
34386 { echo "$as_me:$LINENO: result: no" >&5
34387 echo "${ECHO_T}no" >&6; }
34388 speedup_repeat=0
34390 else
34392 { echo "$as_me:$LINENO: result: no" >&5
34393 echo "${ECHO_T}no" >&6; }
34394 speedup_repeat=0
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
34408 else
34409 { echo "$as_me:$LINENO: result: no" >&5
34410 echo "${ECHO_T}no" >&6; }
34411 speedup_TraceCache=0
34413 else
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
34419 else
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; }
34436 speedup_iCache=1
34437 else
34438 { echo "$as_me:$LINENO: result: no" >&5
34439 echo "${ECHO_T}no" >&6; }
34440 speedup_iCache=0
34442 else
34444 { echo "$as_me:$LINENO: result: no" >&5
34445 echo "${ECHO_T}no" >&6; }
34446 speedup_iCache=0
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; }
34459 speedup_fastcall=1
34460 else
34461 { echo "$as_me:$LINENO: result: no" >&5
34462 echo "${ECHO_T}no" >&6; }
34463 speedup_fastcall=0
34465 else
34467 { echo "$as_me:$LINENO: result: no" >&5
34468 echo "${ECHO_T}no" >&6; }
34469 speedup_fastcall=0
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
34483 else
34484 { echo "$as_me:$LINENO: result: no" >&5
34485 echo "${ECHO_T}no" >&6; }
34486 speedup_host_specific_asms=0
34488 else
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
34507 _ACEOF
34509 else
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
34514 _ACEOF
34517 else
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
34523 _ACEOF
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
34539 _ACEOF
34541 else
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
34546 _ACEOF
34549 else
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
34555 _ACEOF
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
34571 _ACEOF
34573 else
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
34578 _ACEOF
34581 else
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
34587 _ACEOF
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'
34602 CPP_SUFFIX='cpp'
34603 else
34604 { echo "$as_me:$LINENO: result: no" >&5
34605 echo "${ECHO_T}no" >&6; }
34606 SUFFIX_LINE='.SUFFIXES: .cc'
34607 CPP_SUFFIX='cc'
34609 else
34611 { echo "$as_me:$LINENO: result: no" >&5
34612 echo "${ECHO_T}no" >&6; }
34613 SUFFIX_LINE='.SUFFIXES: .cc'
34614 CPP_SUFFIX='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
34631 done
34632 else
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
34648 _ACEOF
34650 DEBUGGER_VAR='$(DEBUGGER_LIB)'
34651 bx_debugger=1
34652 else
34653 { echo "$as_me:$LINENO: result: no" >&5
34654 echo "${ECHO_T}no" >&6; }
34655 cat >>confdefs.h <<\_ACEOF
34656 #define BX_DEBUGGER 0
34657 _ACEOF
34659 DEBUGGER_VAR=''
34660 bx_debugger=0
34663 else
34665 { echo "$as_me:$LINENO: result: no" >&5
34666 echo "${ECHO_T}no" >&6; }
34667 cat >>confdefs.h <<\_ACEOF
34668 #define BX_DEBUGGER 0
34669 _ACEOF
34671 DEBUGGER_VAR=''
34672 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
34688 _ACEOF
34690 DISASM_VAR='$(DISASM_LIB)'
34691 else
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"
34696 exit 1
34698 cat >>confdefs.h <<\_ACEOF
34699 #define BX_DISASM 0
34700 _ACEOF
34702 DISASM_VAR=''
34704 else
34706 { echo "$as_me:$LINENO: result: yes" >&5
34707 echo "${ECHO_T}yes" >&6; }
34708 cat >>confdefs.h <<\_ACEOF
34709 #define BX_DISASM 1
34710 _ACEOF
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; }
34725 speedups_all=1
34726 else
34727 { echo "$as_me:$LINENO: result: no" >&5
34728 echo "${ECHO_T}no" >&6; }
34729 speedups_all=0
34732 else
34734 { echo "$as_me:$LINENO: result: no" >&5
34735 echo "${ECHO_T}no" >&6; }
34736 speedups_all=0
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
34750 speedup_repeat=1
34751 speedup_iCache=1
34752 speedup_TraceCache=1
34753 speedup_fastcall=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
34765 _ACEOF
34767 else
34768 cat >>confdefs.h <<\_ACEOF
34769 #define BX_SupportGuest2HostTLB 0
34770 _ACEOF
34774 if test "$speedup_repeat" = 1; then
34775 cat >>confdefs.h <<\_ACEOF
34776 #define BX_SupportRepeatSpeedups 1
34777 _ACEOF
34779 else
34780 cat >>confdefs.h <<\_ACEOF
34781 #define BX_SupportRepeatSpeedups 0
34782 _ACEOF
34786 if test "$speedup_iCache" = 1; then
34787 cat >>confdefs.h <<\_ACEOF
34788 #define BX_SUPPORT_ICACHE 1
34789 _ACEOF
34791 else
34792 cat >>confdefs.h <<\_ACEOF
34793 #define BX_SUPPORT_ICACHE 0
34794 _ACEOF
34798 if test "$speedup_host_specific_asms" = 1; then
34799 cat >>confdefs.h <<\_ACEOF
34800 #define BX_SupportHostAsms 1
34801 _ACEOF
34803 else
34804 cat >>confdefs.h <<\_ACEOF
34805 #define BX_SupportHostAsms 0
34806 _ACEOF
34810 if test "$speedup_fastcall" = 1; then
34811 cat >>confdefs.h <<\_ACEOF
34812 #define BX_FAST_FUNC_CALL 1
34813 _ACEOF
34815 else
34816 cat >>confdefs.h <<\_ACEOF
34817 #define BX_FAST_FUNC_CALL 0
34818 _ACEOF
34822 if test "$speedup_TraceCache" = 1; then
34823 cat >>confdefs.h <<\_ACEOF
34824 #define BX_SUPPORT_TRACE_CACHE 1
34825 _ACEOF
34827 else
34828 cat >>confdefs.h <<\_ACEOF
34829 #define BX_SUPPORT_TRACE_CACHE 0
34830 _ACEOF
34835 READLINE_LIB=""
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; }
34846 want_readline=yes
34847 else
34848 { echo "$as_me:$LINENO: result: no" >&5
34849 echo "${ECHO_T}no" >&6; }
34850 want_readline=no
34852 else
34854 { echo "$as_me:$LINENO: result: yes" >&5
34855 echo "${ECHO_T}yes" >&6; }
34856 want_readline=yes
34862 use_readline=0
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; }
34870 OLD_LIBS=$LIBS
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; }; }
34878 else
34879 cat >conftest.$ac_ext <<_ACEOF
34880 /* confdefs.h. */
34881 _ACEOF
34882 cat confdefs.h >>conftest.$ac_ext
34883 cat >>conftest.$ac_ext <<_ACEOF
34884 /* end confdefs.h. */
34886 #include <stdio.h>
34887 #include <readline/readline.h>
34888 int main() { rl_initialize(); exit(0); }
34890 _ACEOF
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;;
34896 esac
34897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34898 (eval "$ac_link") 2>&5
34899 ac_status=$?
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;;
34905 esac
34906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34907 (eval "$ac_try") 2>&5
34908 ac_status=$?
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
34914 else
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; }; }
34937 else
34938 cat >conftest.$ac_ext <<_ACEOF
34939 /* confdefs.h. */
34940 _ACEOF
34941 cat confdefs.h >>conftest.$ac_ext
34942 cat >>conftest.$ac_ext <<_ACEOF
34943 /* end confdefs.h. */
34945 #include <stdio.h>
34946 #include <readline/readline.h>
34947 int main() { rl_initialize(); exit(0); }
34949 _ACEOF
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;;
34955 esac
34956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34957 (eval "$ac_link") 2>&5
34958 ac_status=$?
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;;
34964 esac
34965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34966 (eval "$ac_try") 2>&5
34967 ac_status=$?
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
34973 else
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
34987 LIBS=$OLD_LIBS
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
34994 _ACEOF
34996 READLINE_LIB="-lreadline"
34997 use_readline=1
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
35003 _ACEOF
35005 READLINE_LIB="-lreadline -lcurses"
35006 use_readline=1
35007 else
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.
35012 else
35013 { echo "$as_me:$LINENO: result: no" >&5
35014 echo "${ECHO_T}no" >&6; }
35016 else
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; }
35030 else
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
35035 /* confdefs.h. */
35036 _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>
35042 _ACEOF
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;;
35048 esac
35049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35050 (eval "$ac_compile") 2>conftest.er1
35051 ac_status=$?
35052 grep -v '^ *+' conftest.er1 >conftest.err
35053 rm -f conftest.er1
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
35061 else
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
35076 /* confdefs.h. */
35077 _ACEOF
35078 cat confdefs.h >>conftest.$ac_ext
35079 cat >>conftest.$ac_ext <<_ACEOF
35080 /* end confdefs.h. */
35081 #include <readline/history.h>
35082 _ACEOF
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;;
35087 esac
35088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35089 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35090 ac_status=$?
35091 grep -v '^ *+' conftest.er1 >conftest.err
35092 rm -f conftest.er1
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
35098 }; then
35099 ac_header_preproc=yes
35100 else
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
35113 yes:no: )
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
35120 no: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;}
35135 esac
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
35140 else
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
35150 _ACEOF
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
35168 _ACEOF
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
35176 _ACEOF
35178 INSTRUMENT_VAR=''
35179 else
35180 { echo "$as_me:$LINENO: result: yes" >&5
35181 echo "${ECHO_T}yes" >&6; }
35182 cat >>confdefs.h <<\_ACEOF
35183 #define BX_INSTRUMENTATION 1
35184 _ACEOF
35186 INSTRUMENT_DIR=$enableval
35187 INSTRUMENT_VAR='$(INSTRUMENT_LIB)'
35189 else
35191 { echo "$as_me:$LINENO: result: no" >&5
35192 echo "${ECHO_T}no" >&6; }
35193 cat >>confdefs.h <<\_ACEOF
35194 #define BX_INSTRUMENTATION 0
35195 _ACEOF
35197 INSTRUMENT_VAR=''
35205 if test "$bx_plugins" = 0; then
35206 case $target in
35207 *-pc-windows*)
35208 DEVICE_LINK_OPTS="$DEVICE_LINK_OPTS wsock32.lib"
35210 *-cygwin* | *-mingw32*)
35211 DEVICE_LINK_OPTS="$DEVICE_LINK_OPTS -lwsock32"
35213 esac
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
35225 _ACEOF
35227 else
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
35232 _ACEOF
35235 else
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
35241 _ACEOF
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
35257 _ACEOF
35259 else
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
35264 _ACEOF
35267 else
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
35274 _ACEOF
35276 else
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
35281 _ACEOF
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
35298 _ACEOF
35300 else
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
35305 _ACEOF
35308 else
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
35314 _ACEOF
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
35330 _ACEOF
35332 if test "$pci" = 1; then
35333 cat >>confdefs.h <<\_ACEOF
35334 #define BX_SUPPORT_PCIVGA 1
35335 _ACEOF
35338 else
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
35343 _ACEOF
35346 else
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
35352 _ACEOF
35354 if test "$pci" = 1; then
35355 cat >>confdefs.h <<\_ACEOF
35356 #define BX_SUPPORT_PCIVGA 1
35357 _ACEOF
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
35374 _ACEOF
35376 else
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
35381 _ACEOF
35384 else
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
35390 _ACEOF
35397 support_fpu=1
35398 { echo "$as_me:$LINENO: checking for FPU emulation" >&5
35399 echo $ECHO_N "checking for FPU emulation... $ECHO_C" >&6; }
35400 FPU_VAR=''
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
35408 _ACEOF
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
35416 _ACEOF
35418 support_fpu=0
35419 else
35420 echo " "
35421 echo "ERROR: --enable-fpu does not accept a path"
35422 exit 1
35425 else
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
35431 _ACEOF
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
35449 _ACEOF
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
35456 _ACEOF
35460 else
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
35467 _ACEOF
35469 else
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
35474 _ACEOF
35482 support_mmx=1
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
35492 _ACEOF
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
35499 _ACEOF
35501 support_mmx=0
35504 else
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
35511 _ACEOF
35513 else
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
35518 _ACEOF
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
35535 _ACEOF
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
35542 _ACEOF
35546 else
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
35552 _ACEOF
35559 support_sse=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
35565 no | 0)
35566 support_sse=0
35567 { echo "$as_me:$LINENO: result: no" >&5
35568 echo "${ECHO_T}no" >&6; }
35570 yes | 1)
35571 support_sse=1
35572 { echo "$as_me:$LINENO: result: SSE1" >&5
35573 echo "${ECHO_T}SSE1" >&6; }
35576 support_sse=2
35577 { echo "$as_me:$LINENO: result: SSE2" >&5
35578 echo "${ECHO_T}SSE2" >&6; }
35581 support_sse=3
35582 { echo "$as_me:$LINENO: result: SSE3" >&5
35583 echo "${ECHO_T}SSE3" >&6; }
35586 support_sse=4
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"
35592 exit 1
35594 esac
35596 else
35598 if test "$use_x86_64" = 1; then
35599 support_sse=2
35600 { echo "$as_me:$LINENO: result: SSE2" >&5
35601 echo "${ECHO_T}SSE2" >&6; }
35602 else
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
35626 _ACEOF
35628 elif test "$support_sse" = 3; then
35629 cat >>confdefs.h <<\_ACEOF
35630 #define BX_SUPPORT_SSE 3
35631 _ACEOF
35633 elif test "$support_sse" = 2; then
35634 cat >>confdefs.h <<\_ACEOF
35635 #define BX_SUPPORT_SSE 2
35636 _ACEOF
35638 elif test "$support_sse" = 1; then
35639 cat >>confdefs.h <<\_ACEOF
35640 #define BX_SUPPORT_SSE 1
35641 _ACEOF
35643 else
35644 cat >>confdefs.h <<\_ACEOF
35645 #define BX_SUPPORT_SSE 0
35646 _ACEOF
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
35660 _ACEOF
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
35668 _ACEOF
35672 else
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
35678 _ACEOF
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
35694 _ACEOF
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
35701 _ACEOF
35705 else
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
35712 _ACEOF
35714 else
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
35719 _ACEOF
35727 use_xsave=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
35737 _ACEOF
35739 use_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
35745 _ACEOF
35749 else
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
35755 _ACEOF
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; }; }
35768 use_aes=0
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
35778 _ACEOF
35780 use_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
35786 _ACEOF
35790 else
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
35796 _ACEOF
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
35818 _ACEOF
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
35825 _ACEOF
35829 else
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
35836 _ACEOF
35838 else
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
35843 _ACEOF
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
35860 _ACEOF
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
35867 _ACEOF
35871 else
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
35877 _ACEOF
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
35893 _ACEOF
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
35900 _ACEOF
35904 else
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
35911 _ACEOF
35913 else
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
35918 _ACEOF
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
35935 _ACEOF
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
35942 _ACEOF
35946 else
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
35953 _ACEOF
35955 else
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
35960 _ACEOF
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
35977 _ACEOF
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
35984 _ACEOF
35988 else
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
35994 _ACEOF
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
36010 _ACEOF
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
36017 _ACEOF
36021 else
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
36027 _ACEOF
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
36043 _ACEOF
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
36050 _ACEOF
36054 else
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
36060 _ACEOF
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; }
36075 else
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
36080 /* confdefs.h. */
36081 _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>
36087 _ACEOF
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;;
36093 esac
36094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36095 (eval "$ac_compile") 2>conftest.er1
36096 ac_status=$?
36097 grep -v '^ *+' conftest.er1 >conftest.err
36098 rm -f conftest.er1
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
36106 else
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
36121 /* confdefs.h. */
36122 _ACEOF
36123 cat confdefs.h >>conftest.$ac_ext
36124 cat >>conftest.$ac_ext <<_ACEOF
36125 /* end confdefs.h. */
36126 #include <IOKit/storage/IOCDMedia.h>
36127 _ACEOF
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;;
36132 esac
36133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36134 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
36135 ac_status=$?
36136 grep -v '^ *+' conftest.er1 >conftest.err
36137 rm -f conftest.er1
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
36143 }; then
36144 ac_header_preproc=yes
36145 else
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
36158 yes:no: )
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
36165 no: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;}
36180 esac
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
36185 else
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
36204 bx_cdrom=0
36205 else
36206 bx_cdrom=1
36208 else
36209 bx_cdrom=1
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
36222 # use cdrom_osx
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)'
36228 case $target in
36229 *-beos*)
36230 # use the beos cdrom file instead
36231 CDROM_OBJS="$CDROM_OBJS cdrom_beos.o"
36232 esac
36233 cat >>confdefs.h <<\_ACEOF
36234 #define BX_SUPPORT_CDROM 1
36235 _ACEOF
36237 else
36238 { echo "$as_me:$LINENO: result: no" >&5
36239 echo "${ECHO_T}no" >&6; }
36240 CDROM_OBJS=''
36241 cat >>confdefs.h <<\_ACEOF
36242 #define BX_SUPPORT_CDROM 0
36243 _ACEOF
36250 bx_have_alsa=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; }
36259 else
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
36264 /* confdefs.h. */
36265 _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>
36271 _ACEOF
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;;
36277 esac
36278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36279 (eval "$ac_compile") 2>conftest.er1
36280 ac_status=$?
36281 grep -v '^ *+' conftest.er1 >conftest.err
36282 rm -f conftest.er1
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
36290 else
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
36305 /* confdefs.h. */
36306 _ACEOF
36307 cat confdefs.h >>conftest.$ac_ext
36308 cat >>conftest.$ac_ext <<_ACEOF
36309 /* end confdefs.h. */
36310 #include <alsa/asoundlib.h>
36311 _ACEOF
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;;
36316 esac
36317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36318 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
36319 ac_status=$?
36320 grep -v '^ *+' conftest.er1 >conftest.err
36321 rm -f conftest.er1
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
36327 }; then
36328 ac_header_preproc=yes
36329 else
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
36342 yes:no: )
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
36349 no: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;}
36364 esac
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
36369 else
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
36377 bx_have_alsa=1
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; }
36384 SB16_OBJS=''
36385 SOUNDLOW_OBJS=''
36386 GAME_OBJS=''
36387 gameport_present=0
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
36395 _ACEOF
36397 else
36398 case "$enableval" in
36399 dummy)
36400 SOUNDLOW_OBJS=''
36401 cat >>confdefs.h <<\_ACEOF
36402 #define BX_SOUND_OUTPUT_C bx_sound_output_c
36403 _ACEOF
36405 { echo "$as_me:$LINENO: result: dummy" >&5
36406 echo "${ECHO_T}dummy" >&6; }
36408 freebsd|linux)
36409 SOUNDLOW_OBJS='soundlnx.o'
36410 cat >>confdefs.h <<\_ACEOF
36411 #define BX_SOUND_OUTPUT_C bx_sound_linux_c
36412 _ACEOF
36414 if test "$bx_have_alsa" = 1; then
36415 cat >>confdefs.h <<\_ACEOF
36416 #define BX_HAVE_ALSASOUND 1
36417 _ACEOF
36419 if test "$bx_plugins" = 1; then
36420 SOUND_LINK_OPTS="$SOUND_LINK_OPTS -lasound"
36421 else
36422 DEVICE_LINK_OPTS="$DEVICE_LINK_OPTS -lasound"
36425 { echo "$as_me:$LINENO: result: linux" >&5
36426 echo "${ECHO_T}linux" >&6; }
36428 win)
36429 SOUNDLOW_OBJS='soundwin.o'
36430 cat >>confdefs.h <<\_ACEOF
36431 #define BX_SOUND_OUTPUT_C bx_sound_windows_c
36432 _ACEOF
36434 { echo "$as_me:$LINENO: result: win" >&5
36435 echo "${ECHO_T}win" >&6; }
36436 case $target in
36437 *-pc-windows*)
36438 DEVICE_LINK_OPTS="$DEVICE_LINK_OPTS winmm.lib"
36441 DEVICE_LINK_OPTS="$DEVICE_LINK_OPTS -lwinmm"
36443 esac
36445 osx)
36446 SOUNDLOW_OBJS='soundosx.o'
36447 cat >>confdefs.h <<\_ACEOF
36448 #define BX_SOUND_OUTPUT_C bx_sound_osx_c
36449 _ACEOF
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"
36455 yes)
36456 case "$target" in
36457 *-linux* | *-freebsd*)
36458 SOUNDLOW_OBJS='soundlnx.o'
36459 cat >>confdefs.h <<\_ACEOF
36460 #define BX_SOUND_OUTPUT_C bx_sound_linux_c
36461 _ACEOF
36463 if test "$bx_have_alsa" = 1; then
36464 cat >>confdefs.h <<\_ACEOF
36465 #define BX_HAVE_ALSASOUND 1
36466 _ACEOF
36468 if test "$bx_plugins" = 1; then
36469 SOUND_LINK_OPTS="$SOUND_LINK_OPTS -lasound"
36470 else
36471 DEVICE_LINK_OPTS="$DEVICE_LINK_OPTS -lasound"
36474 { echo "$as_me:$LINENO: result: linux" >&5
36475 echo "${ECHO_T}linux" >&6; }
36477 *-pc-windows*)
36478 SOUNDLOW_OBJS='soundwin.o'
36479 cat >>confdefs.h <<\_ACEOF
36480 #define BX_SOUND_OUTPUT_C bx_sound_windows_c
36481 _ACEOF
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
36491 _ACEOF
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
36501 _ACEOF
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"
36508 SOUNDLOW_OBJS=''
36509 cat >>confdefs.h <<\_ACEOF
36510 #define BX_SOUND_OUTPUT_C bx_sound_output_c
36511 _ACEOF
36513 { echo "$as_me:$LINENO: result: dummy" >&5
36514 echo "${ECHO_T}dummy" >&6; }
36516 esac
36519 echo " "
36520 echo \!\!\!Error\!\!\!
36521 echo "You must pass one of dummy, linux, win, freebsd, osx to --enable-sb16"
36522 exit 1 ;;
36523 esac
36524 SB16_OBJS='sb16.o'
36525 cat >>confdefs.h <<\_ACEOF
36526 #define BX_SUPPORT_SB16 1
36527 _ACEOF
36529 GAME_OBJS='gameport.o'
36530 gameport_present=1
36532 else
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
36538 _ACEOF
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
36558 _ACEOF
36560 if test "$gameport_present" = 0; then
36561 GAME_OBJS='gameport.o'
36562 case $target in
36563 *-cygwin* | *-mingw32*)
36564 DEVICE_LINK_OPTS="$DEVICE_LINK_OPTS -lwinmm"
36566 esac
36568 else
36569 { echo "$as_me:$LINENO: result: no" >&5
36570 echo "${ECHO_T}no" >&6; }
36571 GAME_OBJS=''
36572 cat >>confdefs.h <<\_ACEOF
36573 #define BX_SUPPORT_GAMEPORT 0
36574 _ACEOF
36577 else
36579 if test "$gameport_present" = 1; then
36580 cat >>confdefs.h <<\_ACEOF
36581 #define BX_SUPPORT_GAMEPORT 1
36582 _ACEOF
36584 { echo "$as_me:$LINENO: result: yes" >&5
36585 echo "${ECHO_T}yes" >&6; }
36586 else
36587 cat >>confdefs.h <<\_ACEOF
36588 #define BX_SUPPORT_GAMEPORT 0
36589 _ACEOF
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
36609 _ACEOF
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; }; }
36617 else
36618 { echo "$as_me:$LINENO: result: no" >&5
36619 echo "${ECHO_T}no" >&6; }
36620 cat >>confdefs.h <<\_ACEOF
36621 #define BX_GDBSTUB 0
36622 _ACEOF
36624 GDBSTUB_VAR=''
36626 else
36628 { echo "$as_me:$LINENO: result: no" >&5
36629 echo "${ECHO_T}no" >&6; }
36630 cat >>confdefs.h <<\_ACEOF
36631 #define BX_GDBSTUB 0
36632 _ACEOF
36634 GDBSTUB_VAR=''
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; }
36644 IODEBUG_OBJS=''
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
36652 _ACEOF
36654 IODEBUG_OBJS='iodebug.o'
36655 else
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
36660 _ACEOF
36664 else
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
36672 _ACEOF
36674 IODEBUG_OBJS='iodebug.o'
36675 else
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
36692 else
36693 case $DOCBOOK2HTML in
36694 [\\/]* | ?:[\\/]*)
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
36701 IFS=$as_save_IFS
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
36707 break 2
36709 done
36710 done
36711 IFS=$as_save_IFS
36713 test -z "$ac_cv_path_DOCBOOK2HTML" && ac_cv_path_DOCBOOK2HTML="not_found"
36715 esac
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; }
36721 else
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; }
36729 build_docbook=0
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
36735 else
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"
36750 exit 1
36752 else
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
36765 _ACEOF
36767 IODEV_LIB_VAR='iodev/libiodev.a'
36768 cat >>confdefs.h <<\_ACEOF
36769 #define BX_PROVIDE_CPU_MEMORY 1
36770 _ACEOF
36772 NONINLINE_VAR='$(NONINLINE_OBJS)'
36784 # Check whether --with-x11 was given.
36785 if test "${with_x11+set}" = set; then
36786 withval=$with_x11;
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
36835 withval=$with_rfb;
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
36849 withval=$with_sdl;
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
36863 withval=$with_wx;
36868 # Check whether --with-all-libs was given.
36869 if test "${with_all_libs+set}" = set; then
36870 withval=$with_all_libs;
36874 DASH="-"
36875 SLASH="/"
36876 CXXFP=""
36877 CFP=""
36878 OFP="-o "
36879 MAKELIB="ar rv \$@"
36880 RMCOMMAND="rm -f "
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"
36889 EXE=""
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
36907 else
36908 if test -n "$WX_CONFIG"; then
36909 ac_cv_prog_WX_CONFIG="$WX_CONFIG" # Let the user override the test.
36910 else
36911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36912 for as_dir in $PATH
36914 IFS=$as_save_IFS
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
36920 break 2
36922 done
36923 done
36924 IFS=$as_save_IFS
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; }
36933 else
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; }
36945 ok_wx_version=0
36946 wx_multi_lib=0
36947 wx_needs_gtk2=0
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
36961 ok_wx_version=1
36962 wx_multi_lib=1
36963 case x$WX_BASENAME in
36964 xwx_gtk2|xwx_gtk2u) wx_needs_gtk2=1 ;;
36965 *) ;;
36966 esac
36968 x[3-9]*) ok_wx_version=1 ;; # version 3 or greater
36969 *) ;; # who knows?
36970 esac
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
36979 with_wx=yes
36981 else
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;}
36986 with_wx=no
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; }
36995 display_libs=""
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
36999 # handled later.
37001 XPM_LIB=''
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.
37006 exit 1
37008 cat >>confdefs.h <<\_ACEOF
37009 #define BX_WITH_X11 1
37010 _ACEOF
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)"
37016 check_xpm=0
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
37022 check_xpm=0
37023 { echo "$as_me:$LINENO: result: yes" >&5
37024 echo "${ECHO_T}yes" >&6; }
37025 check_xpm=1
37026 else
37027 { echo "$as_me:$LINENO: result: no" >&5
37028 echo "${ECHO_T}no" >&6; }
37029 check_xpm=0
37031 else
37033 { echo "$as_me:$LINENO: result: yes" >&5
37034 echo "${ECHO_T}yes" >&6; }
37035 check_xpm=1
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; }
37049 else
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
37054 /* confdefs.h. */
37055 _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>
37061 _ACEOF
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;;
37067 esac
37068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37069 (eval "$ac_compile") 2>conftest.er1
37070 ac_status=$?
37071 grep -v '^ *+' conftest.er1 >conftest.err
37072 rm -f conftest.er1
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
37080 else
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
37095 /* confdefs.h. */
37096 _ACEOF
37097 cat confdefs.h >>conftest.$ac_ext
37098 cat >>conftest.$ac_ext <<_ACEOF
37099 /* end confdefs.h. */
37100 #include <X11/xpm.h>
37101 _ACEOF
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;;
37106 esac
37107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37108 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
37109 ac_status=$?
37110 grep -v '^ *+' conftest.er1 >conftest.err
37111 rm -f conftest.er1
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
37117 }; then
37118 ac_header_preproc=yes
37119 else
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
37132 yes:no: )
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
37139 no: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;}
37154 esac
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
37159 else
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
37170 _ACEOF
37172 XPM_LIB='-lXpm'
37181 if test "$with_beos" = yes; then
37182 display_libs="$display_libs beos"
37183 cat >>confdefs.h <<\_ACEOF
37184 #define BX_WITH_BEOS 1
37185 _ACEOF
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
37195 _ACEOF
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
37205 case $target in
37206 *-pc-windows*)
37207 RC_CMD="rc /fo"
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"
37214 esac
37218 if test "$with_svga" = yes; then
37219 display_libs="$display_libs svga"
37220 cat >>confdefs.h <<\_ACEOF
37221 #define BX_WITH_SVGA 1
37222 _ACEOF
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
37236 _ACEOF
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
37246 _ACEOF
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
37256 _ACEOF
37258 SPECIFIC_GUI_OBJS="$SPECIFIC_GUI_OBJS \$(GUI_OBJS_WIN32)"
37259 case $target in
37260 *-pc-windows*)
37261 if test "$with_wx" != yes; then
37262 RC_CMD="rc /fo"
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.
37276 esac
37279 if test "$with_macos" = yes; then
37280 display_libs="$display_libs macos"
37281 cat >>confdefs.h <<\_ACEOF
37282 #define BX_WITH_MACOS 1
37283 _ACEOF
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
37293 _ACEOF
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
37299 else
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
37309 _ACEOF
37311 SPECIFIC_GUI_OBJS="$SPECIFIC_GUI_OBJS \$(GUI_OBJS_TERM)"
37312 GUI_LINK_OPTS="$GUI_LINK_OPTS \$(GUI_LINK_OPTS_TERM)"
37313 use_curses=yes
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
37320 else
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.
37324 exit 1
37327 cat >>confdefs.h <<\_ACEOF
37328 #define BX_WITH_WX 1
37329 _ACEOF
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`"
37337 else
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
37351 else
37352 case $PKG_CONFIG in
37353 [\\/]* | ?:[\\/]*)
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
37360 IFS=$as_save_IFS
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
37366 break 2
37368 done
37369 done
37370 IFS=$as_save_IFS
37373 esac
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; }
37379 else
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
37394 else
37395 case $ac_pt_PKG_CONFIG in
37396 [\\/]* | ?:[\\/]*)
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
37403 IFS=$as_save_IFS
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
37409 break 2
37411 done
37412 done
37413 IFS=$as_save_IFS
37416 esac
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; }
37422 else
37423 { echo "$as_me:$LINENO: result: no" >&5
37424 echo "${ECHO_T}no" >&6; }
37427 if test "x$ac_pt_PKG_CONFIG" = x; then
37428 PKG_CONFIG=""
37429 else
37430 case $cross_compiling:$ac_tool_warned in
37431 yes:)
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 ;;
37439 esac
37440 PKG_CONFIG=$ac_pt_PKG_CONFIG
37442 else
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; }
37454 else
37455 { echo "$as_me:$LINENO: result: no" >&5
37456 echo "${ECHO_T}no" >&6; }
37457 PKG_CONFIG=""
37462 pkg_failed=no
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"
37469 else
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
37473 ac_status=$?
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`
37477 else
37478 pkg_failed=yes
37481 else
37482 pkg_failed=untried
37484 if test -n "$PKG_CONFIG"; then
37485 if test -n "$GTK_LIBS"; then
37486 pkg_cv_GTK_LIBS="$GTK_LIBS"
37487 else
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
37491 ac_status=$?
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`
37495 else
37496 pkg_failed=yes
37499 else
37500 pkg_failed=untried
37505 if test $pkg_failed = yes; then
37507 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
37508 _pkg_short_errors_supported=yes
37509 else
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"`
37514 else
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:
37522 $GTK_PKG_ERRORS
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.
37530 " >&5
37531 echo "$as_me: error: Package requirements (gtk+-2.0) were not met:
37533 $GTK_PKG_ERRORS
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.
37541 " >&2;}
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; }; }
37565 else
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"
37575 else
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
37586 # such as bximage.
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
37591 # problems.
37592 case $target in
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"
37597 esac
37600 if test "$with_nogui" = yes; then
37601 display_libs="$display_libs nogui"
37602 cat >>confdefs.h <<\_ACEOF
37603 #define BX_WITH_NOGUI 1
37604 _ACEOF
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."
37618 exit 1
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"
37632 _ACEOF
37634 cat >>confdefs.h <<\_ACEOF
37635 #define BX_DEFAULT_DISPLAY_LIBRARY "wx"
37636 _ACEOF
37638 cat >>confdefs.h <<\_ACEOF
37639 #define BX_USE_TEXTCONFIG 0
37640 _ACEOF
37642 else
37643 cat >>confdefs.h <<\_ACEOF
37644 #define BX_USE_TEXTCONFIG 1
37645 _ACEOF
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"
37653 else
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
37672 else
37673 if test -n "$WGET"; then
37674 ac_cv_prog_WGET="$WGET" # Let the user override the test.
37675 else
37676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37677 for as_dir in $PATH
37679 IFS=$as_save_IFS
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
37685 break 2
37687 done
37688 done
37689 IFS=$as_save_IFS
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; }
37697 else
37698 { echo "$as_me:$LINENO: result: no" >&5
37699 echo "${ECHO_T}no" >&6; }
37703 test -n "$WGET" && break
37704 done
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
37715 case "$target" in
37716 *-macosx*)
37717 cat >>confdefs.h <<\_ACEOF
37718 #define BX_HAVE_STRDUP 0
37719 _ACEOF
37722 *-macos*)
37723 cat >>confdefs.h <<\_ACEOF
37724 #define BX_HAVE_STRDUP 0
37725 _ACEOF
37727 cat >>confdefs.h <<\_ACEOF
37728 #define BX_PLUGINS 0
37729 _ACEOF
37731 cat >>confdefs.h <<\_ACEOF
37732 #define BX_HAVE_DLFCN_H 0
37733 _ACEOF
37735 cat >>confdefs.h <<\_ACEOF
37736 #define BX_HAVE_SOCKLEN_T 0
37737 _ACEOF
37739 cat >>confdefs.h <<\_ACEOF
37740 #define BX_HAVE_SELECT 0
37741 _ACEOF
37743 cat >>confdefs.h <<\_ACEOF
37744 #define BX_HAVE_GETTIMEOFDAY 0
37745 _ACEOF
37747 cat >>confdefs.h <<\_ACEOF
37748 #define BX_NO_ATTRIBUTES 1
37749 _ACEOF
37751 cat >>confdefs.h <<\_ACEOF
37752 #define HAVE_TUNTAP 0
37753 _ACEOF
37755 cat >>confdefs.h <<\_ACEOF
37756 #define HAVE_ETHERTAP 0
37757 _ACEOF
37759 cat >>confdefs.h <<\_ACEOF
37760 #define BX_HAVE_HASH_MAP 0
37761 _ACEOF
37764 *-pc-windows*)
37765 INSTALL_TARGET='install_win32'
37766 CC="cl"
37767 CXX="$CC"
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"
37771 CXXFLAGS="$CFLAGS"
37772 DASH="/"
37773 SLASH="\\"
37774 CXXFP="/Tp"
37775 CFP="/Tc"
37776 OFP="/Fo"
37777 MAKE=nmake
37778 MAKELIB="lib /nologo /subsystem:console /verbose /out:\$@"
37779 RMCOMMAND="-del"
37780 RANLIB="echo"
37781 #L_OPT="/debug" # for debugging
37782 L_OPT="" # no debug info
37783 LINK="link $L_OPT /nologo /subsystem:console /incremental:no /out:\$@ "
37784 LINK_CONSOLE=$LINK
37785 EXE=".exe"
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=""
37793 CD_UP_ONE="cd .."
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
37799 _ACEOF
37801 cat >>confdefs.h <<\_ACEOF
37802 #define inline __inline
37803 _ACEOF
37805 cat >>confdefs.h <<\_ACEOF
37806 #define BX_NO_EMPTY_STRUCTS 1
37807 _ACEOF
37809 cat >>confdefs.h <<\_ACEOF
37810 #define BX_NO_ATTRIBUTES 1
37811 _ACEOF
37813 cat >>confdefs.h <<\_ACEOF
37814 #define BX_HAVE_HASH_MAP 0
37815 _ACEOF
37817 cat >>confdefs.h <<\_ACEOF
37818 #define BX_HAVE_HASH_MAP_H 0
37819 _ACEOF
37821 cat >>confdefs.h <<\_ACEOF
37822 #define BX_HAVE_STRTOULL 0
37823 _ACEOF
37825 cat >>confdefs.h <<\_ACEOF
37826 #define BX_HAVE_STRTOUQ 0
37827 _ACEOF
37829 cat >>confdefs.h <<\_ACEOF
37830 #define HAVE_LIBREADLINE 0
37831 _ACEOF
37833 cat >>confdefs.h <<\_ACEOF
37834 #define BX_HAVE_GETTIMEOFDAY 0
37835 _ACEOF
37837 cat >>confdefs.h <<\_ACEOF
37838 #define BX_HAVE_DLFCN_H 0
37839 _ACEOF
37841 cat >>confdefs.h <<\_ACEOF
37842 #define BX_HAVE_MKSTEMP 0
37843 _ACEOF
37845 cat >>confdefs.h <<\_ACEOF
37846 #define BX_HAVE_SYS_MMAN_H 0
37847 _ACEOF
37849 cat >>confdefs.h <<\_ACEOF
37850 #define BX_HAVE_USLEEP 0
37851 _ACEOF
37853 cat >>confdefs.h <<\_ACEOF
37854 #define HAVE_ETHERTAP 0
37855 _ACEOF
37857 cat >>confdefs.h <<\_ACEOF
37858 #define BX_HAVE_SELECT 1
37859 _ACEOF
37861 cat >>confdefs.h <<\_ACEOF
37862 #define BX_HAVE_SOCKLEN_T 0
37863 _ACEOF
37866 *-pc-cygwin*)
37867 EXE=".exe"
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
37875 _ACEOF
37878 *-pc-mingw*)
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
37885 _ACEOF
37888 *-beos*)
37889 PRIMARY_TARGET=.bochs_beos_target
37891 esac
37893 DIALOG_OBJS=""
37894 EXPORT_DYNAMIC="-export-dynamic"
37895 case $target in
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
37902 else
37903 ac_check_lib_save_LIBS=$LIBS
37904 LIBS="-lmingwex $LIBS"
37905 cat >conftest.$ac_ext <<_ACEOF
37906 /* confdefs.h. */
37907 _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. */
37915 #ifdef __cplusplus
37916 extern "C"
37917 #endif
37918 char opendir ();
37920 main ()
37922 return opendir ();
37924 return 0;
37926 _ACEOF
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;;
37932 esac
37933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37934 (eval "$ac_link") 2>conftest.er1
37935 ac_status=$?
37936 grep -v '^ *+' conftest.er1 >conftest.err
37937 rm -f conftest.er1
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
37946 else
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
37967 else
37968 if test "$with_win32" != yes; then
37969 LIBS="$LIBS -lcomctl32"
37972 DIALOG_OBJS="win32dialog.o win32_enh_dbg.o"
37973 EXPORT_DYNAMIC=""
37975 esac
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
37984 else
37985 ac_check_lib_save_LIBS=$LIBS
37986 LIBS="-lcurses $LIBS"
37987 cat >conftest.$ac_ext <<_ACEOF
37988 /* confdefs.h. */
37989 _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. */
37997 #ifdef __cplusplus
37998 extern "C"
37999 #endif
38000 char mvaddch ();
38002 main ()
38004 return mvaddch ();
38006 return 0;
38008 _ACEOF
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;;
38014 esac
38015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38016 (eval "$ac_link") 2>conftest.er1
38017 ac_status=$?
38018 grep -v '^ *+' conftest.er1 >conftest.err
38019 rm -f conftest.er1
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
38028 else
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
38049 else
38050 ac_check_lib_save_LIBS=$LIBS
38051 LIBS="-lncurses $LIBS"
38052 cat >conftest.$ac_ext <<_ACEOF
38053 /* confdefs.h. */
38054 _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. */
38062 #ifdef __cplusplus
38063 extern "C"
38064 #endif
38065 char mvaddch ();
38067 main ()
38069 return mvaddch ();
38071 return 0;
38073 _ACEOF
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;;
38079 esac
38080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38081 (eval "$ac_link") 2>conftest.er1
38082 ac_status=$?
38083 grep -v '^ *+' conftest.er1 >conftest.err
38084 rm -f conftest.er1
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
38093 else
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
38114 else
38115 ac_check_lib_save_LIBS=$LIBS
38116 LIBS="-ltermlib $LIBS"
38117 cat >conftest.$ac_ext <<_ACEOF
38118 /* confdefs.h. */
38119 _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. */
38127 #ifdef __cplusplus
38128 extern "C"
38129 #endif
38130 char mvaddch ();
38132 main ()
38134 return mvaddch ();
38136 return 0;
38138 _ACEOF
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;;
38144 esac
38145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38146 (eval "$ac_link") 2>conftest.er1
38147 ac_status=$?
38148 grep -v '^ *+' conftest.er1 >conftest.err
38149 rm -f conftest.er1
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
38158 else
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
38179 else
38180 ac_check_lib_save_LIBS=$LIBS
38181 LIBS="-lpdcurses $LIBS"
38182 cat >conftest.$ac_ext <<_ACEOF
38183 /* confdefs.h. */
38184 _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. */
38192 #ifdef __cplusplus
38193 extern "C"
38194 #endif
38195 char mvaddch ();
38197 main ()
38199 return mvaddch ();
38201 return 0;
38203 _ACEOF
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;;
38209 esac
38210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38211 (eval "$ac_link") 2>conftest.er1
38212 ac_status=$?
38213 grep -v '^ *+' conftest.er1 >conftest.err
38214 rm -f conftest.er1
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
38223 else
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.
38242 exit 1
38246 if test "$with_term" = yes; then
38247 old_LIBS="$LIBS"
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
38257 else
38258 cat >conftest.$ac_ext <<_ACEOF
38259 /* confdefs.h. */
38260 _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. */
38273 #ifdef __STDC__
38274 # include <limits.h>
38275 #else
38276 # include <assert.h>
38277 #endif
38279 #undef $ac_func
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. */
38284 #ifdef __cplusplus
38285 extern "C"
38286 #endif
38287 char $ac_func ();
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
38292 choke me
38293 #endif
38296 main ()
38298 return $ac_func ();
38300 return 0;
38302 _ACEOF
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;;
38308 esac
38309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38310 (eval "$ac_link") 2>conftest.er1
38311 ac_status=$?
38312 grep -v '^ *+' conftest.er1 >conftest.err
38313 rm -f conftest.er1
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"
38322 else
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
38338 _ACEOF
38339 cat >>confdefs.h <<\_ACEOF
38340 #define BX_HAVE_COLOR_SET 1
38341 _ACEOF
38344 done
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
38354 else
38355 cat >conftest.$ac_ext <<_ACEOF
38356 /* confdefs.h. */
38357 _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. */
38370 #ifdef __STDC__
38371 # include <limits.h>
38372 #else
38373 # include <assert.h>
38374 #endif
38376 #undef $ac_func
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. */
38381 #ifdef __cplusplus
38382 extern "C"
38383 #endif
38384 char $ac_func ();
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
38389 choke me
38390 #endif
38393 main ()
38395 return $ac_func ();
38397 return 0;
38399 _ACEOF
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;;
38405 esac
38406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38407 (eval "$ac_link") 2>conftest.er1
38408 ac_status=$?
38409 grep -v '^ *+' conftest.er1 >conftest.err
38410 rm -f conftest.er1
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"
38419 else
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
38435 _ACEOF
38436 cat >>confdefs.h <<\_ACEOF
38437 #define BX_HAVE_MVHLINE 1
38438 _ACEOF
38441 done
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
38451 else
38452 cat >conftest.$ac_ext <<_ACEOF
38453 /* confdefs.h. */
38454 _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. */
38467 #ifdef __STDC__
38468 # include <limits.h>
38469 #else
38470 # include <assert.h>
38471 #endif
38473 #undef $ac_func
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. */
38478 #ifdef __cplusplus
38479 extern "C"
38480 #endif
38481 char $ac_func ();
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
38486 choke me
38487 #endif
38490 main ()
38492 return $ac_func ();
38494 return 0;
38496 _ACEOF
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;;
38502 esac
38503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38504 (eval "$ac_link") 2>conftest.er1
38505 ac_status=$?
38506 grep -v '^ *+' conftest.er1 >conftest.err
38507 rm -f conftest.er1
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"
38516 else
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
38532 _ACEOF
38533 cat >>confdefs.h <<\_ACEOF
38534 #define BX_HAVE_MVVLINE 1
38535 _ACEOF
38538 done
38540 LIBS="$old_LIBS"
38543 if test "$with_rfb" = yes; then
38544 # we need the socket function
38545 case $target in
38546 *-pc-windows*)
38547 # is this okay without a check ?
38548 RFB_LIBS="$RFB_LIBS wsock32.lib"
38549 have_socket=yes
38551 *-pc-winnt* | *-pc-cygwin* | *-pc-mingw32*)
38552 # is this okay without a check ?
38553 RFB_LIBS="$RFB_LIBS -lwsock32"
38554 have_socket=yes
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
38565 else
38566 cat >conftest.$ac_ext <<_ACEOF
38567 /* confdefs.h. */
38568 _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. */
38581 #ifdef __STDC__
38582 # include <limits.h>
38583 #else
38584 # include <assert.h>
38585 #endif
38587 #undef $ac_func
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. */
38592 #ifdef __cplusplus
38593 extern "C"
38594 #endif
38595 char $ac_func ();
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
38600 choke me
38601 #endif
38604 main ()
38606 return $ac_func ();
38608 return 0;
38610 _ACEOF
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;;
38616 esac
38617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38618 (eval "$ac_link") 2>conftest.er1
38619 ac_status=$?
38620 grep -v '^ *+' conftest.er1 >conftest.err
38621 rm -f conftest.er1
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"
38630 else
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
38646 _ACEOF
38647 have_socket=yes
38649 done
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
38656 else
38657 ac_check_lib_save_LIBS=$LIBS
38658 LIBS="-lsocket $LIBS"
38659 cat >conftest.$ac_ext <<_ACEOF
38660 /* confdefs.h. */
38661 _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. */
38669 #ifdef __cplusplus
38670 extern "C"
38671 #endif
38672 char socket ();
38674 main ()
38676 return socket ();
38678 return 0;
38680 _ACEOF
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;;
38686 esac
38687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38688 (eval "$ac_link") 2>conftest.er1
38689 ac_status=$?
38690 grep -v '^ *+' conftest.er1 >conftest.err
38691 rm -f conftest.er1
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
38700 else
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"
38716 have_socket=yes
38722 esac
38723 if test "$have_socket" != yes; then
38724 echo 'ERROR: socket function required for RFB compile'
38725 exit 1
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.
38735 pthread_ok=no
38738 acx_pthread_ok=no
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; }
38750 else
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
38755 /* confdefs.h. */
38756 _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>
38762 _ACEOF
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;;
38768 esac
38769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38770 (eval "$ac_compile") 2>conftest.er1
38771 ac_status=$?
38772 grep -v '^ *+' conftest.er1 >conftest.err
38773 rm -f conftest.er1
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
38781 else
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
38796 /* confdefs.h. */
38797 _ACEOF
38798 cat confdefs.h >>conftest.$ac_ext
38799 cat >>conftest.$ac_ext <<_ACEOF
38800 /* end confdefs.h. */
38801 #include <pthread.h>
38802 _ACEOF
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;;
38807 esac
38808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38809 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
38810 ac_status=$?
38811 grep -v '^ *+' conftest.er1 >conftest.err
38812 rm -f conftest.er1
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
38818 }; then
38819 ac_header_preproc=yes
38820 else
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
38833 yes:no: )
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
38840 no: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;}
38855 esac
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
38860 else
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
38869 else
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
38882 # them:
38883 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
38884 save_CFLAGS="$CFLAGS"
38885 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
38886 CXXFLAGS="$CXXFLAGS $PTHREAD_CFLAGS"
38887 save_LIBS="$LIBS"
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
38892 /* confdefs.h. */
38893 _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. */
38901 #ifdef __cplusplus
38902 extern "C"
38903 #endif
38904 char pthread_join ();
38906 main ()
38908 return pthread_join ();
38910 return 0;
38912 _ACEOF
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;;
38918 esac
38919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38920 (eval "$ac_link") 2>conftest.er1
38921 ac_status=$?
38922 grep -v '^ *+' conftest.er1 >conftest.err
38923 rm -f conftest.er1
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
38931 acx_pthread_ok=yes
38932 else
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
38944 PTHREAD_LIBS=""
38945 PTHREAD_CFLAGS=""
38947 LIBS="$save_LIBS"
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
38976 *solaris*)
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"
38988 esac
38990 if test x"$acx_pthread_ok" = xno; then
38991 for flag in $acx_pthread_flags; do
38993 case $flag in
38994 none)
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"
39010 esac
39012 save_LIBS="$LIBS"
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
39027 /* confdefs.h. */
39028 _ACEOF
39029 cat confdefs.h >>conftest.$ac_ext
39030 cat >>conftest.$ac_ext <<_ACEOF
39031 /* end confdefs.h. */
39032 #include <pthread.h>
39034 main ()
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);
39040 return 0;
39042 _ACEOF
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;;
39048 esac
39049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39050 (eval "$ac_link") 2>conftest.er1
39051 ac_status=$?
39052 grep -v '^ *+' conftest.er1 >conftest.err
39053 rm -f conftest.er1
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
39061 acx_pthread_ok=yes
39062 else
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
39072 LIBS="$save_LIBS"
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
39078 break;
39081 PTHREAD_LIBS=""
39082 PTHREAD_CFLAGS=""
39083 done
39086 # Various other checks:
39087 if test "x$acx_pthread_ok" = xyes; then
39088 save_LIBS="$LIBS"
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
39098 /* confdefs.h. */
39099 _ACEOF
39100 cat confdefs.h >>conftest.$ac_ext
39101 cat >>conftest.$ac_ext <<_ACEOF
39102 /* end confdefs.h. */
39103 #include <pthread.h>
39105 main ()
39107 int attr=PTHREAD_CREATE_JOINABLE;
39109 return 0;
39111 _ACEOF
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;;
39117 esac
39118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39119 (eval "$ac_link") 2>conftest.er1
39120 ac_status=$?
39121 grep -v '^ *+' conftest.er1 >conftest.err
39122 rm -f conftest.er1
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
39131 else
39132 echo "$as_me: failed program was:" >&5
39133 sed 's/^/| /' conftest.$ac_ext >&5
39135 ok=unknown
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
39142 /* confdefs.h. */
39143 _ACEOF
39144 cat confdefs.h >>conftest.$ac_ext
39145 cat >>conftest.$ac_ext <<_ACEOF
39146 /* end confdefs.h. */
39147 #include <pthread.h>
39149 main ()
39151 int attr=PTHREAD_CREATE_UNDETACHED;
39153 return 0;
39155 _ACEOF
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;;
39161 esac
39162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39163 (eval "$ac_link") 2>conftest.er1
39164 ac_status=$?
39165 grep -v '^ *+' conftest.er1 >conftest.err
39166 rm -f conftest.er1
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
39175 else
39176 echo "$as_me: failed program was:" >&5
39177 sed 's/^/| /' conftest.$ac_ext >&5
39179 ok=unknown
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
39189 _ACEOF
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; }
39201 flag=no
39202 case "${host_cpu}-${host_os}" in
39203 *-aix* | *-freebsd*) flag="-D_THREAD_SAFE";;
39204 *solaris* | alpha*-osf*) flag="-D_REENTRANT";;
39205 esac
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"
39212 LIBS="$save_LIBS"
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
39222 else
39223 if test -n "$PTHREAD_CC"; then
39224 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
39225 else
39226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39227 for as_dir in $PATH
39229 IFS=$as_save_IFS
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
39235 break 2
39237 done
39238 done
39239 IFS=$as_save_IFS
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; }
39248 else
39249 { echo "$as_me:$LINENO: result: no" >&5
39250 echo "${ECHO_T}no" >&6; }
39254 else
39255 PTHREAD_CC="$CC"
39262 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
39263 if test x"$acx_pthread_ok" = xyes; then
39265 pthread_ok=yes
39266 #echo Using PTHREAD_LIBS=$PTHREAD_LIBS
39267 #echo Using PTHREAD_CFLAGS=$PTHREAD_CFLAGS
39268 #echo Using PTHREAD_CC=$PTHREAD_CC
39271 else
39272 acx_pthread_ok=no
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"
39286 CC="$PTHREAD_CC"
39287 else
39288 case "$target" in
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
39294 esac
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; }; }
39309 else
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; }; }
39327 else
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; }; }
39345 else
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
39354 # directory.
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
39405 else
39406 case $GZIP in
39407 [\\/]* | ?:[\\/]*)
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
39414 IFS=$as_save_IFS
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
39420 break 2
39422 done
39423 done
39424 IFS=$as_save_IFS
39427 esac
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; }
39433 else
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
39445 else
39446 case $TAR in
39447 [\\/]* | ?:[\\/]*)
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
39454 IFS=$as_save_IFS
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
39460 break 2
39462 done
39463 done
39464 IFS=$as_save_IFS
39467 esac
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; }
39473 else
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.
39496 _ACEOF
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
39506 case $ac_val in #(
39507 *${as_nl}*)
39508 case $ac_var in #(
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;} ;;
39511 esac
39512 case $ac_var in #(
39513 _ | IFS | as_nl) ;; #(
39514 *) $as_unset $ac_var ;;
39515 esac ;;
39516 esac
39517 done
39519 (set) 2>&1 |
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 \).
39524 sed -n \
39525 "s/'/'\\\\''/g;
39526 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
39527 ;; #(
39529 # `set' quotes correctly as required by POSIX, so do not add quotes.
39530 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
39532 esac |
39533 sort
39535 sed '
39536 /^ac_cv_env_/b end
39537 t clear
39538 :clear
39539 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
39540 t end
39541 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
39542 :end' >>confcache
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
39549 else
39550 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
39551 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
39554 rm -f confcache
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
39562 ac_libobjs=
39563 ac_ltlibobjs=
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'
39572 done
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
39585 #! $SHELL
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.
39591 debug=false
39592 ac_cs_recheck=false
39593 ac_cs_silent=false
39594 SHELL=\${CONFIG_SHELL-$SHELL}
39595 _ACEOF
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
39605 emulate sh
39606 NULLCMD=:
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
39611 else
39612 case `(set -o) 2>/dev/null` in
39613 *posix*) set -o posix ;;
39614 esac
39621 # PATH needs CR
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
39633 chmod +x conf$$.sh
39634 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
39635 PATH_SEPARATOR=';'
39636 else
39637 PATH_SEPARATOR=:
39639 rm -f conf$$.sh
39642 # Support unset when possible.
39643 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
39644 as_unset=unset
39645 else
39646 as_unset=false
39650 # IFS
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.)
39655 as_nl='
39657 IFS=" "" $as_nl"
39659 # Find who we are. Look in the path if we contain no directory separator.
39660 case $0 in
39661 *[\\/]* ) as_myself=$0 ;;
39662 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39663 for as_dir in $PATH
39665 IFS=$as_save_IFS
39666 test -z "$as_dir" && as_dir=.
39667 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
39668 done
39669 IFS=$as_save_IFS
39672 esac
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
39676 as_myself=$0
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
39686 done
39687 PS1='$ '
39688 PS2='> '
39689 PS4='+ '
39691 # NLS nuisances.
39692 for as_var in \
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
39699 else
39700 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
39702 done
39704 # Required to use basename.
39705 if expr a : '\(a\)' >/dev/null 2>&1 &&
39706 test "X`expr 00001 : '.*\(...\)'`" = X001; then
39707 as_expr=expr
39708 else
39709 as_expr=false
39712 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
39713 as_basename=basename
39714 else
39715 as_basename=false
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 ||
39724 echo X/"$0" |
39725 sed '/^.*\/\([^/][^/]*\)\/*$/{
39726 s//\1/
39729 /^X\/\(\/\/\)$/{
39730 s//\1/
39733 /^X\/\(\/\).*/{
39734 s//\1/
39737 s/.*/./; q'`
39739 # CDPATH.
39740 $as_unset CDPATH
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. :-)
39759 sed -n '
39761 /[$]LINENO/=
39762 ' <$as_myself |
39763 sed '
39764 s/[$]LINENO.*/&-/
39765 t lineno
39767 :lineno
39769 :loop
39770 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
39771 t loop
39772 s/-\n.*//
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.
39783 exit
39787 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
39788 as_dirname=dirname
39789 else
39790 as_dirname=false
39793 ECHO_C= ECHO_N= ECHO_T=
39794 case `echo -n x` in
39795 -n*)
39796 case `echo 'x\c'` in
39797 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
39798 *) ECHO_C='\c';;
39799 esac;;
39801 ECHO_N='-n';;
39802 esac
39804 if expr a : '\(a\)' >/dev/null 2>&1 &&
39805 test "X`expr 00001 : '.*\(...\)'`" = X001; then
39806 as_expr=expr
39807 else
39808 as_expr=false
39811 rm -f conf$$ conf$$.exe conf$$.file
39812 if test -d conf$$.dir; then
39813 rm -f conf$$.dir/conf$$.file
39814 else
39815 rm -f conf$$.dir
39816 mkdir conf$$.dir
39818 echo >conf$$.file
39819 if ln -s conf$$.file conf$$ 2>/dev/null; then
39820 as_ln_s='ln -s'
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 ||
39826 as_ln_s='cp -p'
39827 elif ln conf$$.file conf$$ 2>/dev/null; then
39828 as_ln_s=ln
39829 else
39830 as_ln_s='cp -p'
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
39836 as_mkdir_p=:
39837 else
39838 test -d ./-p && rmdir ./-p
39839 as_mkdir_p=false
39842 if test -x / >/dev/null 2>&1; then
39843 as_test_x='test -x'
39844 else
39845 if ls -dL / >/dev/null 2>&1; then
39846 as_ls_L_option=L
39847 else
39848 as_ls_L_option=
39850 as_test_x='
39851 eval sh -c '\''
39852 if test -d "$1"; then
39853 test -d "$1/.";
39854 else
39855 case $1 in
39856 -*)set "./$1";;
39857 esac;
39858 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
39859 ???[sx]*):;;*)false;;esac;fi
39860 '\'' sh
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'"
39872 exec 6>&1
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.
39877 ac_log="
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
39885 $ $0 $@
39887 on `(hostname || uname -n) 2>/dev/null | sed 1q`
39890 _ACEOF
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"
39897 _ACEOF
39899 cat >>$CONFIG_STATUS <<\_ACEOF
39900 ac_cs_usage="\
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:
39917 $config_files
39919 Configuration headers:
39920 $config_headers
39922 Report bugs to <bug-autoconf@gnu.org>."
39924 _ACEOF
39925 cat >>$CONFIG_STATUS <<_ACEOF
39926 ac_cs_version="\\
39927 config.status
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."
39935 ac_pwd='$ac_pwd'
39936 srcdir='$srcdir'
39937 _ACEOF
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.
39942 ac_need_defaults=:
39943 while test $# != 0
39945 case $1 in
39946 --*=*)
39947 ac_option=`expr "X$1" : 'X\([^=]*\)='`
39948 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
39949 ac_shift=:
39952 ac_option=$1
39953 ac_optarg=$2
39954 ac_shift=shift
39956 esac
39958 case $ac_option in
39959 # Handling of the options.
39960 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
39961 ac_cs_recheck=: ;;
39962 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
39963 echo "$ac_cs_version"; exit ;;
39964 --debug | --debu | --deb | --de | --d | -d )
39965 debug=: ;;
39966 --file | --fil | --fi | --f )
39967 $ac_shift
39968 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
39969 ac_need_defaults=false;;
39970 --header | --heade | --head | --hea )
39971 $ac_shift
39972 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
39973 ac_need_defaults=false;;
39974 --he | --h)
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)
39983 ac_cs_silent=: ;;
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 ;;
39993 esac
39994 shift
39995 done
39997 ac_configure_extra_args=
39999 if $ac_cs_silent; then
40000 exec 6>/dev/null
40001 ac_configure_extra_args="$ac_configure_extra_args --silent"
40004 _ACEOF
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
40013 _ACEOF
40014 cat >>$CONFIG_STATUS <<\_ACEOF
40015 exec 5>>config.log
40017 echo
40018 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
40019 ## Running $as_me. ##
40020 _ASBOX
40021 echo "$ac_log"
40022 } >&5
40024 _ACEOF
40025 cat >>$CONFIG_STATUS <<_ACEOF
40026 _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; }; };;
40059 esac
40060 done
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'.
40078 $debug ||
40080 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"
40091 } ||
40093 tmp=./conf$$-$RANDOM
40094 (umask 077 && mkdir "$tmp")
40095 } ||
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
40109 _ACEOF
40113 ac_delim='%!_!# '
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
40165 CC!$CC$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
40172 CXX!$CXX$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
40180 AR!$AR$ac_delim
40181 RANLIB!$RANLIB$ac_delim
40182 STRIP!$STRIP$ac_delim
40183 CPP!$CPP$ac_delim
40184 CXXCPP!$CXXCPP$ac_delim
40185 F77!$F77$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
40213 _ACEOF
40215 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
40216 break
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; }; }
40221 else
40222 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
40224 done
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
40235 _ACEOF
40236 sed '
40237 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
40238 s/^/s,@/; s/!/@,|#_!!_#|/
40241 s/'"$ac_delim"'$/,g/; t
40242 s/$/\\/; p
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
40247 CEOF$ac_eof
40248 _ACEOF
40251 ac_delim='%!_!# '
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
40307 CFP!$CFP$ac_delim
40308 OFP!$OFP$ac_delim
40309 MAKELIB!$MAKELIB$ac_delim
40310 RMCOMMAND!$RMCOMMAND$ac_delim
40311 LINK!$LINK$ac_delim
40312 LINK_CONSOLE!$LINK_CONSOLE$ac_delim
40313 EXE!$EXE$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
40333 TAR!$TAR$ac_delim
40334 LIBOBJS!$LIBOBJS$ac_delim
40335 LTLIBOBJS!$LTLIBOBJS$ac_delim
40336 _ACEOF
40338 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 82; then
40339 break
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; }; }
40344 else
40345 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
40347 done
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
40358 _ACEOF
40359 sed '
40360 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
40361 s/^/s,@/; s/!/@,|#_!!_#|/
40364 s/'"$ac_delim"'$/,g/; t
40365 s/$/\\/; p
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
40370 :end
40371 s/|#_!!_#|//g
40372 CEOF$ac_eof
40373 _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}:*/:/
40384 s/:*@srcdir@:*/:/
40385 s/^\([^=]*=[ ]*\):*/\1/
40386 s/:*$//
40387 s/^[^=]*=[ ]*$//
40391 cat >>$CONFIG_STATUS <<\_ACEOF
40392 fi # test -n "$CONFIG_FILES"
40395 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
40397 case $ac_tag in
40398 :[FHLC]) ac_mode=$ac_tag; continue;;
40399 esac
40400 case $ac_mode$ac_tag in
40401 :[FHL]*:*);;
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;;
40407 esac
40408 ac_save_IFS=$IFS
40409 IFS=:
40410 set x $ac_tag
40411 IFS=$ac_save_IFS
40412 shift
40413 ac_file=$1
40414 shift
40416 case $ac_mode in
40417 :L) ac_source=$1;;
40418 :[FH])
40419 ac_file_inputs=
40420 for ac_f
40422 case $ac_f 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 `:'.
40427 test -f "$ac_f" ||
40428 case $ac_f in
40429 [\\/$]*) false;;
40430 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
40431 esac ||
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; }; };;
40435 esac
40436 ac_file_inputs="$ac_file_inputs $ac_f"
40437 done
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;}
40450 case $ac_tag in
40451 *:-:* | *:-) cat >"$tmp/stdin";;
40452 esac
40454 esac
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 ||
40461 echo X"$ac_file" |
40462 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
40463 s//\1/
40466 /^X\(\/\/\)[^/].*/{
40467 s//\1/
40470 /^X\(\/\/\)$/{
40471 s//\1/
40474 /^X\(\/\).*/{
40475 s//\1/
40478 s/.*/./; q'`
40479 { as_dir="$ac_dir"
40480 case $as_dir in #(
40481 -*) as_dir=./$as_dir;;
40482 esac
40483 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
40484 as_dirs=
40485 while :; do
40486 case $as_dir in #(
40487 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
40488 *) as_qdir=$as_dir;;
40489 esac
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 ||
40496 echo X"$as_dir" |
40497 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
40498 s//\1/
40501 /^X\(\/\/\)[^/].*/{
40502 s//\1/
40505 /^X\(\/\/\)$/{
40506 s//\1/
40509 /^X\(\/\).*/{
40510 s//\1/
40513 s/.*/./; q'`
40514 test -d "$as_dir" && break
40515 done
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; }; }; }
40520 ac_builddir=.
40522 case "$ac_dir" in
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/ ;;
40531 esac ;;
40532 esac
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
40538 case $srcdir in
40539 .) # We are building in place.
40540 ac_srcdir=.
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 ;;
40551 esac
40552 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
40555 case $ac_mode in
40558 # CONFIG_FILE
40561 _ACEOF
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/ {
40572 /@datadir@/p
40573 /@docdir@/p
40574 /@infodir@/p
40575 /@localedir@/p
40576 /@mandir@/p
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;}
40582 _ACEOF
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' ;;
40591 esac
40592 _ACEOF
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
40598 sed "$ac_vpsub
40599 $extrasub
40600 _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;}
40624 rm -f "$tmp/stdin"
40625 case $ac_file in
40626 -) cat "$tmp/out"; rm -f "$tmp/out";;
40627 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
40628 esac
40632 # CONFIG_HEADER
40634 _ACEOF
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'
40653 ac_dC=' '
40654 ac_dD=' ,'
40656 uniq confdefs.h |
40657 sed -n '
40658 t rset
40659 :rset
40660 s/^[ ]*#[ ]*define[ ][ ]*//
40661 t ok
40664 s/[\\&,]/\\&/g
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.)
40674 echo 's/ $//
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"
40683 # et cetera.
40684 ac_in='$ac_file_inputs'
40685 ac_out='"$tmp/out1"'
40686 ac_nxt='"$tmp/out2"'
40688 while :
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
40697 :def
40698 _ACEOF
40699 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
40700 echo 'CEOF
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
40707 done
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;}
40718 else
40719 rm -f $ac_file
40720 mv "$tmp/config.h" $ac_file
40722 else
40723 echo "/* $configure_input */"
40724 cat "$ac_result"
40726 rm -f "$tmp/out12"
40730 esac
40732 done # for ac_tag
40735 { (exit 0); exit 0; }
40736 _ACEOF
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
40750 ac_cs_success=:
40751 ac_config_status_args=
40752 test "$silent" = yes &&
40753 ac_config_status_args="$ac_config_status_args --quiet"
40754 exec 5>/dev/null
40755 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
40756 exec 5>>config.log
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; }